(change-log-search-tag-name)
[emacs.git] / configure
blob934ff01b5bbe77dd33e703ca2ec0ea2f9e72371c
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 LTLIBOBJS'
742 ac_subst_files=''
743 ac_precious_vars='build_alias
744 host_alias
745 target_alias
747 CFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
752 XMKMF'
755 # Initialize some variables set by options.
756 ac_init_help=
757 ac_init_version=false
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
760 cache_file=/dev/null
761 exec_prefix=NONE
762 no_create=
763 no_recursion=
764 prefix=NONE
765 program_prefix=NONE
766 program_suffix=NONE
767 program_transform_name=s,x,x,
768 silent=
769 site=
770 srcdir=
771 verbose=
772 x_includes=NONE
773 x_libraries=NONE
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir='${datarootdir}/info'
793 htmldir='${docdir}'
794 dvidir='${docdir}'
795 pdfdir='${docdir}'
796 psdir='${docdir}'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
801 ac_prev=
802 ac_dashdash=
803 for ac_option
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\$ac_option
808 ac_prev=
809 continue
812 case $ac_option in
813 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 *) ac_optarg=yes ;;
815 esac
817 # Accept the important Cygnus configure options, so we can diagnose typos.
819 case $ac_dashdash$ac_option in
821 ac_dashdash=yes ;;
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
840 --config-cache | -C)
841 cache_file=config.cache ;;
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
855 -disable-* | --disable-*)
856 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_$ac_feature=no ;;
864 -docdir | --docdir | --docdi | --doc | --do)
865 ac_prev=docdir ;;
866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867 docdir=$ac_optarg ;;
869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870 ac_prev=dvidir ;;
871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872 dvidir=$ac_optarg ;;
874 -enable-* | --enable-*)
875 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879 { (exit 1); exit 1; }; }
880 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
881 eval enable_$ac_feature=\$ac_optarg ;;
883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885 | --exec | --exe | --ex)
886 ac_prev=exec_prefix ;;
887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889 | --exec=* | --exe=* | --ex=*)
890 exec_prefix=$ac_optarg ;;
892 -gas | --gas | --ga | --g)
893 # Obsolete; use --with-gas.
894 with_gas=yes ;;
896 -help | --help | --hel | --he | -h)
897 ac_init_help=long ;;
898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899 ac_init_help=recursive ;;
900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901 ac_init_help=short ;;
903 -host | --host | --hos | --ho)
904 ac_prev=host_alias ;;
905 -host=* | --host=* | --hos=* | --ho=*)
906 host_alias=$ac_optarg ;;
908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909 ac_prev=htmldir ;;
910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911 | --ht=*)
912 htmldir=$ac_optarg ;;
914 -includedir | --includedir | --includedi | --included | --include \
915 | --includ | --inclu | --incl | --inc)
916 ac_prev=includedir ;;
917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918 | --includ=* | --inclu=* | --incl=* | --inc=*)
919 includedir=$ac_optarg ;;
921 -infodir | --infodir | --infodi | --infod | --info | --inf)
922 ac_prev=infodir ;;
923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924 infodir=$ac_optarg ;;
926 -libdir | --libdir | --libdi | --libd)
927 ac_prev=libdir ;;
928 -libdir=* | --libdir=* | --libdi=* | --libd=*)
929 libdir=$ac_optarg ;;
931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932 | --libexe | --libex | --libe)
933 ac_prev=libexecdir ;;
934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935 | --libexe=* | --libex=* | --libe=*)
936 libexecdir=$ac_optarg ;;
938 -localedir | --localedir | --localedi | --localed | --locale)
939 ac_prev=localedir ;;
940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941 localedir=$ac_optarg ;;
943 -localstatedir | --localstatedir | --localstatedi | --localstated \
944 | --localstate | --localstat | --localsta | --localst | --locals)
945 ac_prev=localstatedir ;;
946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
948 localstatedir=$ac_optarg ;;
950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951 ac_prev=mandir ;;
952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
953 mandir=$ac_optarg ;;
955 -nfp | --nfp | --nf)
956 # Obsolete; use --without-fp.
957 with_fp=no ;;
959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
960 | --no-cr | --no-c | -n)
961 no_create=yes ;;
963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965 no_recursion=yes ;;
967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969 | --oldin | --oldi | --old | --ol | --o)
970 ac_prev=oldincludedir ;;
971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
974 oldincludedir=$ac_optarg ;;
976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977 ac_prev=prefix ;;
978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979 prefix=$ac_optarg ;;
981 -program-prefix | --program-prefix | --program-prefi | --program-pref \
982 | --program-pre | --program-pr | --program-p)
983 ac_prev=program_prefix ;;
984 -program-prefix=* | --program-prefix=* | --program-prefi=* \
985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
986 program_prefix=$ac_optarg ;;
988 -program-suffix | --program-suffix | --program-suffi | --program-suff \
989 | --program-suf | --program-su | --program-s)
990 ac_prev=program_suffix ;;
991 -program-suffix=* | --program-suffix=* | --program-suffi=* \
992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
993 program_suffix=$ac_optarg ;;
995 -program-transform-name | --program-transform-name \
996 | --program-transform-nam | --program-transform-na \
997 | --program-transform-n | --program-transform- \
998 | --program-transform | --program-transfor \
999 | --program-transfo | --program-transf \
1000 | --program-trans | --program-tran \
1001 | --progr-tra | --program-tr | --program-t)
1002 ac_prev=program_transform_name ;;
1003 -program-transform-name=* | --program-transform-name=* \
1004 | --program-transform-nam=* | --program-transform-na=* \
1005 | --program-transform-n=* | --program-transform-=* \
1006 | --program-transform=* | --program-transfor=* \
1007 | --program-transfo=* | --program-transf=* \
1008 | --program-trans=* | --program-tran=* \
1009 | --progr-tra=* | --program-tr=* | --program-t=*)
1010 program_transform_name=$ac_optarg ;;
1012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013 ac_prev=pdfdir ;;
1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015 pdfdir=$ac_optarg ;;
1017 -psdir | --psdir | --psdi | --psd | --ps)
1018 ac_prev=psdir ;;
1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020 psdir=$ac_optarg ;;
1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023 | -silent | --silent | --silen | --sile | --sil)
1024 silent=yes ;;
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 ac_prev=sbindir ;;
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 | --sbi=* | --sb=*)
1030 sbindir=$ac_optarg ;;
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1035 | --sha | --sh)
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 | --sha=* | --sh=*)
1041 sharedstatedir=$ac_optarg ;;
1043 -site | --site | --sit)
1044 ac_prev=site ;;
1045 -site=* | --site=* | --sit=*)
1046 site=$ac_optarg ;;
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 ac_prev=srcdir ;;
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 verbose=yes ;;
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1071 -with-* | --with-*)
1072 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid package name: $ac_package" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1078 eval with_$ac_package=\$ac_optarg ;;
1080 -without-* | --without-*)
1081 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_$ac_package=no ;;
1089 --x)
1090 # Obsolete; use --with-x.
1091 with_x=yes ;;
1093 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1094 | --x-incl | --x-inc | --x-in | --x-i)
1095 ac_prev=x_includes ;;
1096 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1097 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1098 x_includes=$ac_optarg ;;
1100 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1101 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1102 ac_prev=x_libraries ;;
1103 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1104 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1105 x_libraries=$ac_optarg ;;
1107 -*) { echo "$as_me: error: unrecognized option: $ac_option
1108 Try \`$0 --help' for more information." >&2
1109 { (exit 1); exit 1; }; }
1112 *=*)
1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1116 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1117 { (exit 1); exit 1; }; }
1118 eval $ac_envvar=\$ac_optarg
1119 export $ac_envvar ;;
1122 # FIXME: should be removed in autoconf 3.0.
1123 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1129 esac
1130 done
1132 if test -n "$ac_prev"; then
1133 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1134 { echo "$as_me: error: missing argument to $ac_option" >&2
1135 { (exit 1); exit 1; }; }
1138 # Be sure to have absolute directory names.
1139 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
1144 eval ac_val=\$$ac_var
1145 case $ac_val in
1146 [\\/$]* | ?:[\\/]* ) continue;;
1147 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1148 esac
1149 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1150 { (exit 1); exit 1; }; }
1151 done
1153 # There might be people who depend on the old broken behavior: `$host'
1154 # used to hold the argument of --host etc.
1155 # FIXME: To remove some day.
1156 build=$build_alias
1157 host=$host_alias
1158 target=$target_alias
1160 # FIXME: To remove some day.
1161 if test "x$host_alias" != x; then
1162 if test "x$build_alias" = x; then
1163 cross_compiling=maybe
1164 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1165 If a cross compiler is detected then cross compile mode will be used." >&2
1166 elif test "x$build_alias" != "x$host_alias"; then
1167 cross_compiling=yes
1171 ac_tool_prefix=
1172 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1174 test "$silent" = yes && exec 6>/dev/null
1177 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1178 ac_ls_di=`ls -di .` &&
1179 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1180 { echo "$as_me: error: Working directory cannot be determined" >&2
1181 { (exit 1); exit 1; }; }
1182 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183 { echo "$as_me: error: pwd does not report name of working directory" >&2
1184 { (exit 1); exit 1; }; }
1187 # Find the source files, if location was not specified.
1188 if test -z "$srcdir"; then
1189 ac_srcdir_defaulted=yes
1190 # Try the directory containing this script, then the parent directory.
1191 ac_confdir=`$as_dirname -- "$0" ||
1192 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$0" : 'X\(//\)[^/]' \| \
1194 X"$0" : 'X\(//\)$' \| \
1195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1196 echo X"$0" |
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 s//\1/
1201 /^X\(\/\/\)[^/].*/{
1202 s//\1/
1205 /^X\(\/\/\)$/{
1206 s//\1/
1209 /^X\(\/\).*/{
1210 s//\1/
1213 s/.*/./; q'`
1214 srcdir=$ac_confdir
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 srcdir=..
1218 else
1219 ac_srcdir_defaulted=no
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1223 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1224 { (exit 1); exit 1; }; }
1226 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1227 ac_abs_confdir=`(
1228 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1229 { (exit 1); exit 1; }; }
1230 pwd)`
1231 # When building in place, set srcdir=.
1232 if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 srcdir=.
1235 # Remove unnecessary trailing slashes from srcdir.
1236 # Double slashes in file names in object file debugging info
1237 # mess up M-x gdb in Emacs.
1238 case $srcdir in
1239 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1240 esac
1241 for ac_var in $ac_precious_vars; do
1242 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_${ac_var}_value=\$${ac_var}
1244 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1246 done
1249 # Report the --help message.
1251 if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1254 cat <<_ACEOF
1255 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1257 Usage: $0 [OPTION]... [VAR=VALUE]...
1259 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260 VAR=VALUE. See below for descriptions of some of the useful variables.
1262 Defaults for the options are specified in brackets.
1264 Configuration:
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
1269 -q, --quiet, --silent do not print \`checking...' messages
1270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1275 Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
1277 [$ac_default_prefix]
1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1279 [PREFIX]
1281 By default, \`make install' will install all the files in
1282 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284 for instance \`--prefix=\$HOME'.
1286 For better control, use the options below.
1288 Fine tuning of the installation directories:
1289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
1303 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
1308 _ACEOF
1310 cat <<\_ACEOF
1312 Program names:
1313 --program-prefix=PREFIX prepend PREFIX to installed program names
1314 --program-suffix=SUFFIX append SUFFIX to installed program names
1315 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1317 X features:
1318 --x-includes=DIR X include files are in DIR
1319 --x-libraries=DIR X library files are in DIR
1321 System types:
1322 --build=BUILD configure for building on BUILD [guessed]
1323 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1324 _ACEOF
1327 if test -n "$ac_init_help"; then
1328 case $ac_init_help in
1329 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1330 esac
1331 cat <<\_ACEOF
1333 Optional Features:
1334 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1335 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1336 --enable-cocoa-experimental-ctrl-g
1337 enable experimental improved ctrl-g recognition
1338 --disable-ns-self-contained
1339 disable self contained build under NeXTstep
1340 --enable-asserts compile code with asserts enabled
1341 --enable-maintainer-mode
1342 enable make rules and dependencies not useful (and
1343 sometimes confusing) to the casual installer
1344 --enable-locallisppath=PATH
1345 directories Emacs should search for lisp files
1346 specific to this site
1347 --disable-largefile omit support for large files
1349 Optional Packages:
1350 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1351 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1352 --without-pop don't support POP mail retrieval with movemail
1353 --with-kerberos support Kerberos-authenticated POP
1354 --with-kerberos5 support Kerberos version 5 authenticated POP
1355 --with-hesiod support Hesiod to get the POP server host
1356 --without-sound don't compile with sound support
1357 --without-sync-input Process async input synchronously
1358 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1359 motif, gtk, no)
1360 --without-xpm don't compile with XPM image support
1361 --without-jpeg don't compile with JPEG image support
1362 --without-tiff don't compile with TIFF image support
1363 --without-gif don't compile with GIF image support
1364 --without-png don't compile with PNG image support
1365 --without-rsvg don't compile with SVG image support
1366 --without-freetype don't use Freetype for local font support
1367 --without-xft don't use XFT for anti aliased fonts
1368 --without-libotf don't use libotf for OpenType font support
1369 --without-m17n-flt don't use m17n-flt for text shaping
1370 --without-toolkit-scroll-bars
1371 don't use Motif or Xaw3d scroll bars
1372 --without-xaw3d don't use Xaw3d
1373 --without-xim don't use X11 XIM
1374 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1375 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1376 console
1377 --without-dbus don't compile with D-Bus support
1378 --without-makeinfo don't require makeinfo for building manuals
1380 --with-pkg-config-prog=PATH
1381 Path to pkg-config for finding GTK and librsvg
1382 --with-x use the X Window System
1384 Some influential environment variables:
1385 CC C compiler command
1386 CFLAGS C compiler flags
1387 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1388 nonstandard directory <lib dir>
1389 LIBS libraries to pass to the linker, e.g. -l<library>
1390 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1391 you have headers in a nonstandard directory <include dir>
1392 CPP C preprocessor
1393 XMKMF Path to xmkmf, Makefile generator for X Window System
1395 Use these variables to override the choices made by `configure' or to help
1396 it to find libraries and programs with nonstandard names/locations.
1398 _ACEOF
1399 ac_status=$?
1402 if test "$ac_init_help" = "recursive"; then
1403 # If there are subdirs, report their specific --help.
1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1405 test -d "$ac_dir" || continue
1406 ac_builddir=.
1408 case "$ac_dir" in
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1412 # A ".." for each directory in $ac_dir_suffix.
1413 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1414 case $ac_top_builddir_sub in
1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417 esac ;;
1418 esac
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1424 case $srcdir in
1425 .) # We are building in place.
1426 ac_srcdir=.
1427 ac_top_srcdir=$ac_top_builddir_sub
1428 ac_abs_top_srcdir=$ac_pwd ;;
1429 [\\/]* | ?:[\\/]* ) # Absolute name.
1430 ac_srcdir=$srcdir$ac_dir_suffix;
1431 ac_top_srcdir=$srcdir
1432 ac_abs_top_srcdir=$srcdir ;;
1433 *) # Relative name.
1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435 ac_top_srcdir=$ac_top_build_prefix$srcdir
1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1437 esac
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440 cd "$ac_dir" || { ac_status=$?; continue; }
1441 # Check for guested configure.
1442 if test -f "$ac_srcdir/configure.gnu"; then
1443 echo &&
1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445 elif test -f "$ac_srcdir/configure"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure" --help=recursive
1448 else
1449 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1450 fi || ac_status=$?
1451 cd "$ac_pwd" || { ac_status=$?; break; }
1452 done
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1457 cat <<\_ACEOF
1458 emacs configure 23.0.60
1459 generated by GNU Autoconf 2.61
1461 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1462 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1463 This configure script is free software; the Free Software Foundation
1464 gives unlimited permission to copy, distribute and modify it.
1465 _ACEOF
1466 exit
1468 cat >config.log <<_ACEOF
1469 This file contains any messages produced by compilers while
1470 running configure, to aid debugging if configure makes a mistake.
1472 It was created by emacs $as_me 23.0.60, which was
1473 generated by GNU Autoconf 2.61. Invocation command line was
1475 $ $0 $@
1477 _ACEOF
1478 exec 5>>config.log
1480 cat <<_ASUNAME
1481 ## --------- ##
1482 ## Platform. ##
1483 ## --------- ##
1485 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1486 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1487 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1488 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1489 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1491 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1492 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1494 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1495 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1496 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1497 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1498 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1499 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1500 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1502 _ASUNAME
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 for as_dir in $PATH
1507 IFS=$as_save_IFS
1508 test -z "$as_dir" && as_dir=.
1509 echo "PATH: $as_dir"
1510 done
1511 IFS=$as_save_IFS
1513 } >&5
1515 cat >&5 <<_ACEOF
1518 ## ----------- ##
1519 ## Core tests. ##
1520 ## ----------- ##
1522 _ACEOF
1525 # Keep a trace of the command line.
1526 # Strip out --no-create and --no-recursion so they do not pile up.
1527 # Strip out --silent because we don't want to record it for future runs.
1528 # Also quote any args containing shell meta-characters.
1529 # Make two passes to allow for proper duplicate-argument suppression.
1530 ac_configure_args=
1531 ac_configure_args0=
1532 ac_configure_args1=
1533 ac_must_keep_next=false
1534 for ac_pass in 1 2
1536 for ac_arg
1538 case $ac_arg in
1539 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1541 | -silent | --silent | --silen | --sile | --sil)
1542 continue ;;
1543 *\'*)
1544 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1545 esac
1546 case $ac_pass in
1547 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1549 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1550 if test $ac_must_keep_next = true; then
1551 ac_must_keep_next=false # Got value, back to normal.
1552 else
1553 case $ac_arg in
1554 *=* | --config-cache | -C | -disable-* | --disable-* \
1555 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1556 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1557 | -with-* | --with-* | -without-* | --without-* | --x)
1558 case "$ac_configure_args0 " in
1559 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1560 esac
1562 -* ) ac_must_keep_next=true ;;
1563 esac
1565 ac_configure_args="$ac_configure_args '$ac_arg'"
1567 esac
1568 done
1569 done
1570 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1571 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1573 # When interrupted or exit'd, cleanup temporary files, and complete
1574 # config.log. We remove comments because anyway the quotes in there
1575 # would cause problems or look ugly.
1576 # WARNING: Use '\'' to represent an apostrophe within the trap.
1577 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1578 trap 'exit_status=$?
1579 # Save into config.log some information that might help in debugging.
1581 echo
1583 cat <<\_ASBOX
1584 ## ---------------- ##
1585 ## Cache variables. ##
1586 ## ---------------- ##
1587 _ASBOX
1588 echo
1589 # The following way of writing the cache mishandles newlines in values,
1591 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1592 eval ac_val=\$$ac_var
1593 case $ac_val in #(
1594 *${as_nl}*)
1595 case $ac_var in #(
1596 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1597 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1598 esac
1599 case $ac_var in #(
1600 _ | IFS | as_nl) ;; #(
1601 *) $as_unset $ac_var ;;
1602 esac ;;
1603 esac
1604 done
1605 (set) 2>&1 |
1606 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1607 *${as_nl}ac_space=\ *)
1608 sed -n \
1609 "s/'\''/'\''\\\\'\'''\''/g;
1610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1611 ;; #(
1613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1615 esac |
1616 sort
1618 echo
1620 cat <<\_ASBOX
1621 ## ----------------- ##
1622 ## Output variables. ##
1623 ## ----------------- ##
1624 _ASBOX
1625 echo
1626 for ac_var in $ac_subst_vars
1628 eval ac_val=\$$ac_var
1629 case $ac_val in
1630 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631 esac
1632 echo "$ac_var='\''$ac_val'\''"
1633 done | sort
1634 echo
1636 if test -n "$ac_subst_files"; then
1637 cat <<\_ASBOX
1638 ## ------------------- ##
1639 ## File substitutions. ##
1640 ## ------------------- ##
1641 _ASBOX
1642 echo
1643 for ac_var in $ac_subst_files
1645 eval ac_val=\$$ac_var
1646 case $ac_val in
1647 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648 esac
1649 echo "$ac_var='\''$ac_val'\''"
1650 done | sort
1651 echo
1654 if test -s confdefs.h; then
1655 cat <<\_ASBOX
1656 ## ----------- ##
1657 ## confdefs.h. ##
1658 ## ----------- ##
1659 _ASBOX
1660 echo
1661 cat confdefs.h
1662 echo
1664 test "$ac_signal" != 0 &&
1665 echo "$as_me: caught signal $ac_signal"
1666 echo "$as_me: exit $exit_status"
1667 } >&5
1668 rm -f core *.core core.conftest.* &&
1669 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1670 exit $exit_status
1672 for ac_signal in 1 2 13 15; do
1673 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1674 done
1675 ac_signal=0
1677 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1678 rm -f -r conftest* confdefs.h
1680 # Predefined preprocessor variables.
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_NAME "$PACKAGE_NAME"
1684 _ACEOF
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1689 _ACEOF
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1694 _ACEOF
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_STRING "$PACKAGE_STRING"
1699 _ACEOF
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1704 _ACEOF
1707 # Let the site file select an alternate cache file if it wants to.
1708 # Prefer explicitly selected file to automatically selected ones.
1709 if test -n "$CONFIG_SITE"; then
1710 set x "$CONFIG_SITE"
1711 elif test "x$prefix" != xNONE; then
1712 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1713 else
1714 set x "$ac_default_prefix/share/config.site" \
1715 "$ac_default_prefix/etc/config.site"
1717 shift
1718 for ac_site_file
1720 if test -r "$ac_site_file"; then
1721 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1722 echo "$as_me: loading site script $ac_site_file" >&6;}
1723 sed 's/^/| /' "$ac_site_file" >&5
1724 . "$ac_site_file"
1726 done
1728 if test -r "$cache_file"; then
1729 # Some versions of bash will fail to source /dev/null (special
1730 # files actually), so we avoid doing that.
1731 if test -f "$cache_file"; then
1732 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1733 echo "$as_me: loading cache $cache_file" >&6;}
1734 case $cache_file in
1735 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1736 *) . "./$cache_file";;
1737 esac
1739 else
1740 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1741 echo "$as_me: creating cache $cache_file" >&6;}
1742 >$cache_file
1745 ac_header_list="$ac_header_list sys/time.h"
1746 ac_header_list="$ac_header_list unistd.h"
1747 ac_func_list="$ac_func_list alarm"
1748 # Check that the precious variables saved in the cache have kept the same
1749 # value.
1750 ac_cache_corrupted=false
1751 for ac_var in $ac_precious_vars; do
1752 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1753 eval ac_new_set=\$ac_env_${ac_var}_set
1754 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1755 eval ac_new_val=\$ac_env_${ac_var}_value
1756 case $ac_old_set,$ac_new_set in
1757 set,)
1758 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1759 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1760 ac_cache_corrupted=: ;;
1761 ,set)
1762 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1763 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1764 ac_cache_corrupted=: ;;
1765 ,);;
1767 if test "x$ac_old_val" != "x$ac_new_val"; then
1768 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1769 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1770 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1771 echo "$as_me: former value: $ac_old_val" >&2;}
1772 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1773 echo "$as_me: current value: $ac_new_val" >&2;}
1774 ac_cache_corrupted=:
1775 fi;;
1776 esac
1777 # Pass precious variables to config.status.
1778 if test "$ac_new_set" = set; then
1779 case $ac_new_val in
1780 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 *) ac_arg=$ac_var=$ac_new_val ;;
1782 esac
1783 case " $ac_configure_args " in
1784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1785 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1786 esac
1788 done
1789 if $ac_cache_corrupted; then
1790 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1791 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1792 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1793 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1794 { (exit 1); exit 1; }; }
1821 ac_ext=c
1822 ac_cpp='$CPP $CPPFLAGS'
1823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1832 test "$program_prefix" != NONE &&
1833 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1834 # Use a double $ so make ignores it.
1835 test "$program_suffix" != NONE &&
1836 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1837 # Double any \ or $. echo might interpret backslashes.
1838 # By default was `s,x,x', remove it if useless.
1839 cat <<\_ACEOF >conftest.sed
1840 s/[\\$]/&&/g;s/;s,x,x,$//
1841 _ACEOF
1842 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1843 rm -f conftest.sed
1846 lispdir='${datadir}/emacs/${version}/lisp'
1847 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1848 '${datadir}/emacs/site-lisp'
1849 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1850 etcdir='${datadir}/emacs/${version}/etc'
1851 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1852 docdir='${datadir}/emacs/${version}/etc'
1853 gamedir='${localstatedir}/games/emacs'
1855 gameuser=games
1860 # Check whether --with-pop was given.
1861 if test "${with_pop+set}" = set; then
1862 withval=$with_pop;
1863 else
1864 with_pop=yes
1867 if test "$with_pop" = yes; then
1868 cat >>confdefs.h <<\_ACEOF
1869 #define MAIL_USE_POP 1
1870 _ACEOF
1876 # Check whether --with-kerberos was given.
1877 if test "${with_kerberos+set}" = set; then
1878 withval=$with_kerberos;
1879 else
1880 with_kerberos=no
1883 if test "$with_kerberos" != no; then
1884 cat >>confdefs.h <<\_ACEOF
1885 #define KERBEROS 1
1886 _ACEOF
1892 # Check whether --with-kerberos5 was given.
1893 if test "${with_kerberos5+set}" = set; then
1894 withval=$with_kerberos5;
1895 else
1896 with_kerberos5=no
1899 if test "${with_kerberos5}" != no; then
1900 if test "${with_kerberos}" = no; then
1901 with_kerberos=yes
1902 cat >>confdefs.h <<\_ACEOF
1903 #define KERBEROS 1
1904 _ACEOF
1908 cat >>confdefs.h <<\_ACEOF
1909 #define KERBEROS5 1
1910 _ACEOF
1915 # Check whether --with-hesiod was given.
1916 if test "${with_hesiod+set}" = set; then
1917 withval=$with_hesiod;
1918 else
1919 with_hesiod=no
1922 if test "$with_hesiod" != no; then
1924 cat >>confdefs.h <<\_ACEOF
1925 #define HESIOD 1
1926 _ACEOF
1931 # Check whether --with-sound was given.
1932 if test "${with_sound+set}" = set; then
1933 withval=$with_sound;
1934 else
1935 with_sound=yes
1940 # Check whether --with-sync-input was given.
1941 if test "${with_sync_input+set}" = set; then
1942 withval=$with_sync_input;
1943 else
1944 with_sync_input=yes
1947 if test "$with_sync_input" = yes; then
1949 cat >>confdefs.h <<\_ACEOF
1950 #define SYNC_INPUT 1
1951 _ACEOF
1956 # Check whether --with-x-toolkit was given.
1957 if test "${with_x_toolkit+set}" = set; then
1958 withval=$with_x_toolkit; case "${withval}" in
1959 y | ye | yes ) val=gtk ;;
1960 n | no ) val=no ;;
1961 l | lu | luc | luci | lucid ) val=lucid ;;
1962 a | at | ath | athe | athen | athena ) val=athena ;;
1963 m | mo | mot | moti | motif ) val=motif ;;
1964 g | gt | gtk ) val=gtk ;;
1966 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1967 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1968 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1969 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1970 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1971 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1972 { (exit 1); exit 1; }; }
1974 esac
1975 with_x_toolkit=$val
1981 # Check whether --with-xpm was given.
1982 if test "${with_xpm+set}" = set; then
1983 withval=$with_xpm;
1984 else
1985 with_xpm=yes
1989 # Check whether --with-jpeg was given.
1990 if test "${with_jpeg+set}" = set; then
1991 withval=$with_jpeg;
1992 else
1993 with_jpeg=yes
1997 # Check whether --with-tiff was given.
1998 if test "${with_tiff+set}" = set; then
1999 withval=$with_tiff;
2000 else
2001 with_tiff=yes
2005 # Check whether --with-gif was given.
2006 if test "${with_gif+set}" = set; then
2007 withval=$with_gif;
2008 else
2009 with_gif=yes
2013 # Check whether --with-png was given.
2014 if test "${with_png+set}" = set; then
2015 withval=$with_png;
2016 else
2017 with_png=yes
2021 # Check whether --with-rsvg was given.
2022 if test "${with_rsvg+set}" = set; then
2023 withval=$with_rsvg;
2024 else
2025 with_rsvg=yes
2030 # Check whether --with-freetype was given.
2031 if test "${with_freetype+set}" = set; then
2032 withval=$with_freetype;
2033 else
2034 with_freetype=yes
2038 # Check whether --with-xft was given.
2039 if test "${with_xft+set}" = set; then
2040 withval=$with_xft;
2041 else
2042 with_xft=yes
2046 # Check whether --with-libotf was given.
2047 if test "${with_libotf+set}" = set; then
2048 withval=$with_libotf;
2049 else
2050 with_libotf=yes
2054 # Check whether --with-m17n-flt was given.
2055 if test "${with_m17n_flt+set}" = set; then
2056 withval=$with_m17n_flt;
2057 else
2058 with_m17n_flt=yes
2063 # Check whether --with-toolkit-scroll-bars was given.
2064 if test "${with_toolkit_scroll_bars+set}" = set; then
2065 withval=$with_toolkit_scroll_bars;
2066 else
2067 with_toolkit_scroll_bars=yes
2071 # Check whether --with-xaw3d was given.
2072 if test "${with_xaw3d+set}" = set; then
2073 withval=$with_xaw3d;
2074 else
2075 with_xaw3d=yes
2079 # Check whether --with-xim was given.
2080 if test "${with_xim+set}" = set; then
2081 withval=$with_xim;
2082 else
2083 with_xim=yes
2087 # Check whether --with-ns was given.
2088 if test "${with_ns+set}" = set; then
2089 withval=$with_ns;
2090 else
2091 with_ns=no
2096 # Check whether --with-gpm was given.
2097 if test "${with_gpm+set}" = set; then
2098 withval=$with_gpm;
2099 else
2100 with_gpm=yes
2104 # Check whether --with-dbus was given.
2105 if test "${with_dbus+set}" = set; then
2106 withval=$with_dbus;
2107 else
2108 with_dbus=yes
2112 ## For the times when you want to build Emacs but don't have
2113 ## a suitable makeinfo, and can live without the manuals.
2115 # Check whether --with-makeinfo was given.
2116 if test "${with_makeinfo+set}" = set; then
2117 withval=$with_makeinfo;
2118 else
2119 with_makeinfo=yes
2124 # Check whether --with-gtk was given.
2125 if test "${with_gtk+set}" = set; then
2126 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2127 specify a toolkit." >&5
2128 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2129 specify a toolkit." >&2;}
2130 { (exit 1); exit 1; }; }
2135 # Check whether --with-gcc was given.
2136 if test "${with_gcc+set}" = set; then
2137 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2138 variable to specify a compiler." >&5
2139 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2140 variable to specify a compiler." >&2;}
2141 { (exit 1); exit 1; }; }
2146 # Check whether --with-pkg-config-prog was given.
2147 if test "${with_pkg_config_prog+set}" = set; then
2148 withval=$with_pkg_config_prog;
2151 if test "X${with_pkg_config_prog}" != X; then
2152 if test "${with_pkg_config_prog}" != yes; then
2153 PKG_CONFIG="${with_pkg_config_prog}"
2157 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2158 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2159 enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=$enableval
2160 else
2161 EN_COCOA_EXPERIMENTAL_CTRL_G=no
2165 # Check whether --enable-ns-self-contained was given.
2166 if test "${enable_ns_self_contained+set}" = set; then
2167 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2168 else
2169 EN_NS_SELF_CONTAINED=yes
2173 # Check whether --enable-asserts was given.
2174 if test "${enable_asserts+set}" = set; then
2175 enableval=$enable_asserts; USE_XASSERTS=$enableval
2176 else
2177 USE_XASSERTS=no
2181 # Check whether --enable-maintainer-mode was given.
2182 if test "${enable_maintainer_mode+set}" = set; then
2183 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2184 else
2185 USE_MAINTAINER_MODE=no
2188 if test $USE_MAINTAINER_MODE = yes; then
2189 MAINT=
2190 else
2191 MAINT=#
2195 # Check whether --enable-locallisppath was given.
2196 if test "${enable_locallisppath+set}" = set; then
2197 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2198 locallisppath=
2199 elif test "${enableval}" != "yes"; then
2200 locallisppath=${enableval}
2205 #### Make srcdir absolute, if it isn't already. It's important to
2206 #### avoid running the path through pwd unnecessarily, since pwd can
2207 #### give you automounter prefixes, which can go away. We do all this
2208 #### so Emacs can find its files when run uninstalled.
2209 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2210 unset CDPATH
2211 case "${srcdir}" in
2212 /* ) ;;
2214 ## We may be able to use the $PWD environment variable to make this
2215 ## absolute. But sometimes PWD is inaccurate.
2216 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2217 ## but that tested only for a well-formed and valid PWD,
2218 ## it did not object when PWD was well-formed and valid but just wrong.
2219 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2220 then
2221 srcdir="$PWD"
2222 else
2223 srcdir="`(cd ${srcdir}; pwd)`"
2226 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2227 esac
2229 #### Check if the source directory already has a configured system in it.
2230 if test `pwd` != `(cd ${srcdir} && pwd)` \
2231 && test -f "${srcdir}/src/config.h" ; then
2232 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2233 as a build directory right now; it has been configured in its own
2234 right. To configure in another directory as well, you MUST
2235 use GNU make. If you do not have GNU make, then you must
2236 now do \`make distclean' in ${srcdir},
2237 and then run $0 again." >&5
2238 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2239 as a build directory right now; it has been configured in its own
2240 right. To configure in another directory as well, you MUST
2241 use GNU make. If you do not have GNU make, then you must
2242 now do \`make distclean' in ${srcdir},
2243 and then run $0 again." >&2;}
2246 #### Given the configuration name, set machfile and opsysfile to the
2247 #### names of the m/*.h and s/*.h files we should use.
2249 ### Canonicalize the configuration name.
2251 ac_aux_dir=
2252 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2253 if test -f "$ac_dir/install-sh"; then
2254 ac_aux_dir=$ac_dir
2255 ac_install_sh="$ac_aux_dir/install-sh -c"
2256 break
2257 elif 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/shtool"; then
2262 ac_aux_dir=$ac_dir
2263 ac_install_sh="$ac_aux_dir/shtool install -c"
2264 break
2266 done
2267 if test -z "$ac_aux_dir"; then
2268 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2269 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2270 { (exit 1); exit 1; }; }
2273 # These three variables are undocumented and unsupported,
2274 # and are intended to be withdrawn in a future Autoconf release.
2275 # They can cause serious problems if a builder's source tree is in a directory
2276 # whose full name contains unusual characters.
2277 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2278 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2279 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2282 # Make sure we can run config.sub.
2283 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2284 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2285 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2286 { (exit 1); exit 1; }; }
2288 { echo "$as_me:$LINENO: checking build system type" >&5
2289 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2290 if test "${ac_cv_build+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293 ac_build_alias=$build_alias
2294 test "x$ac_build_alias" = x &&
2295 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2296 test "x$ac_build_alias" = x &&
2297 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2298 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2299 { (exit 1); exit 1; }; }
2300 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2301 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2302 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2303 { (exit 1); exit 1; }; }
2306 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2307 echo "${ECHO_T}$ac_cv_build" >&6; }
2308 case $ac_cv_build in
2309 *-*-*) ;;
2310 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2311 echo "$as_me: error: invalid value of canonical build" >&2;}
2312 { (exit 1); exit 1; }; };;
2313 esac
2314 build=$ac_cv_build
2315 ac_save_IFS=$IFS; IFS='-'
2316 set x $ac_cv_build
2317 shift
2318 build_cpu=$1
2319 build_vendor=$2
2320 shift; shift
2321 # Remember, the first character of IFS is used to create $*,
2322 # except with old shells:
2323 build_os=$*
2324 IFS=$ac_save_IFS
2325 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2328 { echo "$as_me:$LINENO: checking host system type" >&5
2329 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2330 if test "${ac_cv_host+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333 if test "x$host_alias" = x; then
2334 ac_cv_host=$ac_cv_build
2335 else
2336 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2337 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2338 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2339 { (exit 1); exit 1; }; }
2343 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2344 echo "${ECHO_T}$ac_cv_host" >&6; }
2345 case $ac_cv_host in
2346 *-*-*) ;;
2347 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2348 echo "$as_me: error: invalid value of canonical host" >&2;}
2349 { (exit 1); exit 1; }; };;
2350 esac
2351 host=$ac_cv_host
2352 ac_save_IFS=$IFS; IFS='-'
2353 set x $ac_cv_host
2354 shift
2355 host_cpu=$1
2356 host_vendor=$2
2357 shift; shift
2358 # Remember, the first character of IFS is used to create $*,
2359 # except with old shells:
2360 host_os=$*
2361 IFS=$ac_save_IFS
2362 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2365 canonical=$host
2366 configuration=${host_alias-${build_alias-$host}}
2370 ### If you add support for a new configuration, add code to this
2371 ### switch statement to recognize your configuration name and select
2372 ### the appropriate operating system and machine description files.
2374 ### You would hope that you could choose an m/*.h file pretty much
2375 ### based on the machine portion of the configuration name, and an s-
2376 ### file based on the operating system portion. However, it turns out
2377 ### that each m/*.h file is pretty manufacturer-specific - for
2378 ### example mips.h is MIPS
2379 ### So we basically have to have a special case for each
2380 ### configuration name.
2382 ### As far as handling version numbers on operating systems is
2383 ### concerned, make sure things will fail in a fixable way. If
2384 ### /etc/MACHINES doesn't say anything about version numbers, be
2385 ### prepared to handle anything reasonably. If version numbers
2386 ### matter, be sure /etc/MACHINES says something about it.
2388 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2389 ### "System V Release 4"; he writes, "The old convention encouraged
2390 ### confusion between `system' and `release' levels'."
2392 machine='' opsys='' unported=no
2393 case "${canonical}" in
2395 ## FreeBSD ports
2396 *-*-freebsd* )
2397 opsys=freebsd
2398 case "${canonical}" in
2399 alpha*-*-freebsd*) machine=alpha ;;
2400 arm*-*-freebsd*) machine=arm ;;
2401 ia64-*-freebsd*) machine=ia64 ;;
2402 sparc-*-freebsd*) machine=sparc ;;
2403 sparc64-*-freebsd*) machine=sparc ;;
2404 powerpc-*-freebsd*) machine=macppc ;;
2405 i[3456]86-*-freebsd*) machine=intel386 ;;
2406 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2407 esac
2410 ## FreeBSD kernel + glibc based userland
2411 *-*-kfreebsd*gnu* )
2412 opsys=gnu-kfreebsd
2413 case "${canonical}" in
2414 alpha*-*-kfreebsd*) machine=alpha ;;
2415 ia64-*-kfreebsd*) machine=ia64 ;;
2416 sparc-*-kfreebsd*) machine=sparc ;;
2417 sparc64-*-kfreebsd*) machine=sparc ;;
2418 powerpc-*-kfreebsd*) machine=macppc ;;
2419 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2420 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2421 esac
2424 ## NetBSD ports
2425 *-*-netbsd* )
2426 opsys=netbsd
2427 if test -f /usr/lib/crti.o; then
2429 cat >>confdefs.h <<\_ACEOF
2430 #define HAVE_CRTIN
2431 _ACEOF
2435 case "${canonical}" in
2436 alpha*-*-netbsd*) machine=alpha ;;
2437 i[3456]86-*-netbsd*) machine=intel386 ;;
2438 powerpc-*-netbsd*) machine=macppc ;;
2439 sparc*-*-netbsd*) machine=sparc ;;
2440 vax-*-netbsd*) machine=vax ;;
2441 arm-*-netbsd*) machine=arm ;;
2442 x86_64-*-netbsd*) machine=amdx86-64 ;;
2443 hppa-*-netbsd*) machine=hp800 ;;
2444 esac
2447 ## OpenBSD ports
2448 *-*-openbsd* )
2449 opsys=openbsd
2450 case "${canonical}" in
2451 alpha*-*-openbsd*) machine=alpha ;;
2452 arm-*-openbsd*) machine=arm ;;
2453 i386-*-openbsd*) machine=intel386 ;;
2454 powerpc-*-openbsd*) machine=macppc ;;
2455 sparc*-*-openbsd*) machine=sparc ;;
2456 vax-*-openbsd*) machine=vax ;;
2457 x86_64-*-openbsd*) machine=amdx86-64 ;;
2458 esac
2461 ## LynxOS ports
2462 *-*-lynxos* )
2463 opsys=lynxos
2464 case "${canonical}" in
2465 i[3456]86-*-lynxos*) machine=intel386 ;;
2466 powerpc-*-lynxos*) machine=powerpc ;;
2467 esac
2470 alpha*-*-linux-gnu* )
2471 machine=alpha opsys=gnu-linux
2474 arm*-*-linux-gnu* )
2475 machine=arm opsys=gnu-linux
2478 ## Apple Darwin / Mac OS X
2479 *-apple-darwin* )
2480 case "${canonical}" in
2481 i[3456]86-* ) machine=intel386 ;;
2482 powerpc-* ) machine=macppc ;;
2483 * ) unported=yes ;;
2484 esac
2485 opsys=darwin
2486 # Define CPP as follows to make autoconf work correctly.
2487 CPP="${CC-cc} -E -no-cpp-precomp"
2488 # Use fink packages if available.
2489 if test -d /sw/include && test -d /sw/lib; then
2490 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2491 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2492 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2496 ## HP 9000 series 700 and 800, running HP/UX
2497 hppa*-hp-hpux10.2* )
2498 machine=hp800 opsys=hpux10-20
2500 hppa*-hp-hpux1[1-9]* )
2501 machine=hp800 opsys=hpux11
2502 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2505 hppa*-*-linux-gnu* )
2506 machine=hp800 opsys=gnu-linux
2509 ## IBM machines
2510 s390-*-linux-gnu* )
2511 machine=ibms390 opsys=gnu-linux
2513 s390x-*-linux-gnu* )
2514 machine=ibms390x opsys=gnu-linux
2516 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2517 machine=ibmrs6000 opsys=aix4-2
2519 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2520 machine=ibmrs6000 opsys=aix4-2
2522 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2523 machine=ibmrs6000 opsys=aix4-2
2525 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2526 machine=ibmrs6000 opsys=aix4-2
2529 ## Macintosh PowerPC
2530 powerpc*-*-linux-gnu* )
2531 machine=macppc opsys=gnu-linux
2534 ## Silicon Graphics machines
2535 ## Iris 4D
2536 mips-sgi-irix6.5 )
2537 machine=iris4d opsys=irix6-5
2538 # Without defining _LANGUAGE_C, things get masked out in the headers
2539 # so that, for instance, grepping for `free' in stdlib.h fails and
2540 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2541 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2542 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2545 ## Suns
2546 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2547 machine=sparc opsys=gnu-linux
2550 *-sun-solaris* \
2551 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2552 | rs6000-*-solaris2*)
2553 case "${canonical}" in
2554 i[3456]86-*-* ) machine=intel386 ;;
2555 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2556 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2557 sparc* ) machine=sparc ;;
2558 * ) unported=yes ;;
2559 esac
2560 case "${canonical}" in
2561 *-sunos5.3* | *-solaris2.3* )
2562 opsys=sol2-3
2563 NON_GNU_CPP=/usr/ccs/lib/cpp
2565 *-sunos5.4* | *-solaris2.4* )
2566 opsys=sol2-4
2567 NON_GNU_CPP=/usr/ccs/lib/cpp
2568 RANLIB="ar -ts"
2570 *-sunos5.5* | *-solaris2.5* )
2571 opsys=sol2-5
2572 NON_GNU_CPP=/usr/ccs/lib/cpp
2573 RANLIB="ar -ts"
2575 *-sunos5.6* | *-solaris2.6* )
2576 opsys=sol2-6
2577 NON_GNU_CPP=/usr/ccs/lib/cpp
2578 RANLIB="ar -ts"
2580 *-sunos5* | *-solaris* )
2581 opsys=sol2-6
2582 emacs_check_sunpro_c=yes
2583 NON_GNU_CPP=/usr/ccs/lib/cpp
2585 esac
2586 ## Watch out for a compiler that we know will not work.
2587 case "${canonical}" in
2588 *-solaris* | *-sunos5* )
2589 if [ "x$CC" = x/usr/ucb/cc ]; then
2590 ## /usr/ucb/cc doesn't work;
2591 ## we should find some other compiler that does work.
2592 unset CC
2595 *) ;;
2596 esac
2599 ## Vaxen.
2600 vax-dec-* )
2601 machine=vax
2602 case "${canonical}" in
2603 *-vms* ) opsys=vms ;;
2604 * ) unported=yes
2605 esac
2608 ## IA-64
2609 ia64*-*-linux* )
2610 machine=ia64 opsys=gnu-linux
2613 ## Intel 386 machines where we don't care about the manufacturer
2614 i[3456]86-*-* )
2615 machine=intel386
2616 case "${canonical}" in
2617 *-cygwin ) opsys=cygwin ;;
2618 *-darwin* ) opsys=darwin
2619 CPP="${CC-cc} -E -no-cpp-precomp"
2621 *-linux-gnu* ) opsys=gnu-linux ;;
2622 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2623 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2624 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2625 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2626 esac
2629 ## m68k Linux-based GNU system
2630 m68k-*-linux-gnu* )
2631 machine=m68k opsys=gnu-linux
2634 ## Mips Linux-based GNU system
2635 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2636 machine=mips opsys=gnu-linux
2639 ## AMD x86-64 Linux-based GNU system
2640 x86_64-*-linux-gnu* )
2641 machine=amdx86-64 opsys=gnu-linux
2644 ## Tensilica Xtensa Linux-based GNU system
2645 xtensa*-*-linux-gnu* )
2646 machine=xtensa opsys=gnu-linux
2650 unported=yes
2652 esac
2654 ### If the code above didn't choose an operating system, just choose
2655 ### an operating system based on the configuration name. You really
2656 ### only want to use this when you have no idea what the right
2657 ### operating system is; if you know what operating systems a machine
2658 ### runs, it's cleaner to make it explicit in the case statement
2659 ### above.
2660 if test x"${opsys}" = x; then
2661 case "${canonical}" in
2662 *-gnu* ) opsys=gnu ;;
2663 *-sysv4.2uw* ) opsys=unixware ;;
2664 *-sysv5uw* ) opsys=unixware ;;
2665 *-sysv5OpenUNIX* ) opsys=unixware ;;
2666 *-sysv4.1* | *-sysvr4.1* )
2667 NON_GNU_CPP=/usr/lib/cpp
2668 opsys=usg5-4 ;;
2669 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2670 if [ x$NON_GNU_CPP = x ]; then
2671 if [ -f /usr/ccs/lib/cpp ]; then
2672 NON_GNU_CPP=/usr/ccs/lib/cpp
2673 else
2674 NON_GNU_CPP=/lib/cpp
2677 opsys=usg5-4-2 ;;
2678 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2680 unported=yes
2682 esac
2687 if test $unported = yes; then
2688 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2689 Check \`etc/MACHINES' for recognized configuration names." >&5
2690 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2691 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2692 { (exit 1); exit 1; }; }
2695 machfile="m/${machine}.h"
2696 opsysfile="s/${opsys}.h"
2699 #### Choose a compiler.
2700 test -n "$CC" && cc_specified=yes
2702 # Save the value of CFLAGS that the user specified.
2703 SPECIFIED_CFLAGS="$CFLAGS"
2705 ac_ext=c
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710 if test -n "$ac_tool_prefix"; then
2711 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2712 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2715 if test "${ac_cv_prog_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2732 done
2733 done
2734 IFS=$as_save_IFS
2738 CC=$ac_cv_prog_CC
2739 if test -n "$CC"; then
2740 { echo "$as_me:$LINENO: result: $CC" >&5
2741 echo "${ECHO_T}$CC" >&6; }
2742 else
2743 { echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6; }
2749 if test -z "$ac_cv_prog_CC"; then
2750 ac_ct_CC=$CC
2751 # Extract the first word of "gcc", so it can be a program name with args.
2752 set dummy gcc; ac_word=$2
2753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_ac_ct_CC="gcc"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2772 done
2773 done
2774 IFS=$as_save_IFS
2778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779 if test -n "$ac_ct_CC"; then
2780 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2781 echo "${ECHO_T}$ac_ct_CC" >&6; }
2782 else
2783 { echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6; }
2787 if test "x$ac_ct_CC" = x; then
2788 CC=""
2789 else
2790 case $cross_compiling:$ac_tool_warned in
2791 yes:)
2792 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2793 whose name does not start with the host triplet. If you think this
2794 configuration is useful to you, please write to autoconf@gnu.org." >&5
2795 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2796 whose name does not start with the host triplet. If you think this
2797 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2798 ac_tool_warned=yes ;;
2799 esac
2800 CC=$ac_ct_CC
2802 else
2803 CC="$ac_cv_prog_CC"
2806 if test -z "$CC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2809 set dummy ${ac_tool_prefix}cc; ac_word=$2
2810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2812 if test "${ac_cv_prog_CC+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_CC="${ac_tool_prefix}cc"
2826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2829 done
2830 done
2831 IFS=$as_save_IFS
2835 CC=$ac_cv_prog_CC
2836 if test -n "$CC"; then
2837 { echo "$as_me:$LINENO: result: $CC" >&5
2838 echo "${ECHO_T}$CC" >&6; }
2839 else
2840 { echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6; }
2847 if test -z "$CC"; then
2848 # Extract the first word of "cc", so it can be a program name with args.
2849 set dummy cc; ac_word=$2
2850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2852 if test "${ac_cv_prog_CC+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC="$CC" # Let the user override the test.
2857 else
2858 ac_prog_rejected=no
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2867 ac_prog_rejected=yes
2868 continue
2870 ac_cv_prog_CC="cc"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 break 2
2874 done
2875 done
2876 IFS=$as_save_IFS
2878 if test $ac_prog_rejected = yes; then
2879 # We found a bogon in the path, so make sure we never use it.
2880 set dummy $ac_cv_prog_CC
2881 shift
2882 if test $# != 0; then
2883 # We chose a different compiler from the bogus one.
2884 # However, it has the same basename, so the bogon will be chosen
2885 # first if we set CC to just the basename; use the full file name.
2886 shift
2887 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2892 CC=$ac_cv_prog_CC
2893 if test -n "$CC"; then
2894 { echo "$as_me:$LINENO: result: $CC" >&5
2895 echo "${ECHO_T}$CC" >&6; }
2896 else
2897 { echo "$as_me:$LINENO: result: no" >&5
2898 echo "${ECHO_T}no" >&6; }
2903 if test -z "$CC"; then
2904 if test -n "$ac_tool_prefix"; then
2905 for ac_prog in cl.exe
2907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2908 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2911 if test "${ac_cv_prog_CC+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2928 done
2929 done
2930 IFS=$as_save_IFS
2934 CC=$ac_cv_prog_CC
2935 if test -n "$CC"; then
2936 { echo "$as_me:$LINENO: result: $CC" >&5
2937 echo "${ECHO_T}$CC" >&6; }
2938 else
2939 { echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6; }
2944 test -n "$CC" && break
2945 done
2947 if test -z "$CC"; then
2948 ac_ct_CC=$CC
2949 for ac_prog in cl.exe
2951 # Extract the first word of "$ac_prog", so it can be a program name with args.
2952 set dummy $ac_prog; ac_word=$2
2953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 ac_cv_prog_ac_ct_CC="$ac_prog"
2969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2972 done
2973 done
2974 IFS=$as_save_IFS
2978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2979 if test -n "$ac_ct_CC"; then
2980 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2981 echo "${ECHO_T}$ac_ct_CC" >&6; }
2982 else
2983 { echo "$as_me:$LINENO: result: no" >&5
2984 echo "${ECHO_T}no" >&6; }
2988 test -n "$ac_ct_CC" && break
2989 done
2991 if test "x$ac_ct_CC" = x; then
2992 CC=""
2993 else
2994 case $cross_compiling:$ac_tool_warned in
2995 yes:)
2996 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2997 whose name does not start with the host triplet. If you think this
2998 configuration is useful to you, please write to autoconf@gnu.org." >&5
2999 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3000 whose name does not start with the host triplet. If you think this
3001 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3002 ac_tool_warned=yes ;;
3003 esac
3004 CC=$ac_ct_CC
3011 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details." >&5
3013 echo "$as_me: error: no acceptable C compiler found in \$PATH
3014 See \`config.log' for more details." >&2;}
3015 { (exit 1); exit 1; }; }
3017 # Provide some information about the compiler.
3018 echo "$as_me:$LINENO: checking for C compiler version" >&5
3019 ac_compiler=`set X $ac_compile; echo $2`
3020 { (ac_try="$ac_compiler --version >&5"
3021 case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024 esac
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_compiler --version >&5") 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }
3030 { (ac_try="$ac_compiler -v >&5"
3031 case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034 esac
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compiler -v >&5") 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }
3040 { (ac_try="$ac_compiler -V >&5"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compiler -V >&5") 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }
3051 cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h. */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3059 main ()
3063 return 0;
3065 _ACEOF
3066 ac_clean_files_save=$ac_clean_files
3067 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3068 # Try to create an executable without -o first, disregard a.out.
3069 # It will help us diagnose broken compilers, and finding out an intuition
3070 # of exeext.
3071 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3072 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3073 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3075 # List of possible output files, starting from the most likely.
3076 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3077 # only as a last resort. b.out is created by i960 compilers.
3078 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3080 # The IRIX 6 linker writes into existing files which may not be
3081 # executable, retaining their permissions. Remove them first so a
3082 # subsequent execution test works.
3083 ac_rmfiles=
3084 for ac_file in $ac_files
3086 case $ac_file in
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3088 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3089 esac
3090 done
3091 rm -f $ac_rmfiles
3093 if { (ac_try="$ac_link_default"
3094 case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_link_default") 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; then
3103 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3104 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3105 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3106 # so that the user can short-circuit this test for compilers unknown to
3107 # Autoconf.
3108 for ac_file in $ac_files ''
3110 test -f "$ac_file" || continue
3111 case $ac_file in
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3114 [ab].out )
3115 # We found the default executable, but exeext='' is most
3116 # certainly right.
3117 break;;
3118 *.* )
3119 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3120 then :; else
3121 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3123 # We set ac_cv_exeext here because the later test for it is not
3124 # safe: cross compilers may not add the suffix if given an `-o'
3125 # argument, so we may need to know it at that point already.
3126 # Even if this section looks crufty: it has the advantage of
3127 # actually working.
3128 break;;
3130 break;;
3131 esac
3132 done
3133 test "$ac_cv_exeext" = no && ac_cv_exeext=
3135 else
3136 ac_file=''
3139 { echo "$as_me:$LINENO: result: $ac_file" >&5
3140 echo "${ECHO_T}$ac_file" >&6; }
3141 if test -z "$ac_file"; then
3142 echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3146 See \`config.log' for more details." >&5
3147 echo "$as_me: error: C compiler cannot create executables
3148 See \`config.log' for more details." >&2;}
3149 { (exit 77); exit 77; }; }
3152 ac_exeext=$ac_cv_exeext
3154 # Check that the compiler produces executables we can run. If not, either
3155 # the compiler is broken, or we cross compile.
3156 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3157 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3158 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3159 # If not cross compiling, check that we can run a simple program.
3160 if test "$cross_compiling" != yes; then
3161 if { ac_try='./$ac_file'
3162 { (case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_try") 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3171 cross_compiling=no
3172 else
3173 if test "$cross_compiling" = maybe; then
3174 cross_compiling=yes
3175 else
3176 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3177 If you meant to cross compile, use \`--host'.
3178 See \`config.log' for more details." >&5
3179 echo "$as_me: error: cannot run C compiled programs.
3180 If you meant to cross compile, use \`--host'.
3181 See \`config.log' for more details." >&2;}
3182 { (exit 1); exit 1; }; }
3186 { echo "$as_me:$LINENO: result: yes" >&5
3187 echo "${ECHO_T}yes" >&6; }
3189 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3190 ac_clean_files=$ac_clean_files_save
3191 # Check that the compiler produces executables we can run. If not, either
3192 # the compiler is broken, or we cross compile.
3193 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3194 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3195 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3196 echo "${ECHO_T}$cross_compiling" >&6; }
3198 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3199 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3200 if { (ac_try="$ac_link"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_link") 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; then
3210 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3211 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3212 # work properly (i.e., refer to `conftest.exe'), while it won't with
3213 # `rm'.
3214 for ac_file in conftest.exe conftest conftest.*; do
3215 test -f "$ac_file" || continue
3216 case $ac_file in
3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3218 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219 break;;
3220 * ) break;;
3221 esac
3222 done
3223 else
3224 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3225 See \`config.log' for more details." >&5
3226 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3227 See \`config.log' for more details." >&2;}
3228 { (exit 1); exit 1; }; }
3231 rm -f conftest$ac_cv_exeext
3232 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3233 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3235 rm -f conftest.$ac_ext
3236 EXEEXT=$ac_cv_exeext
3237 ac_exeext=$EXEEXT
3238 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3239 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3240 if test "${ac_cv_objext+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243 cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h. */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3251 main ()
3255 return 0;
3257 _ACEOF
3258 rm -f conftest.o conftest.obj
3259 if { (ac_try="$ac_compile"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265 (eval "$ac_compile") 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; then
3269 for ac_file in conftest.o conftest.obj conftest.*; do
3270 test -f "$ac_file" || continue;
3271 case $ac_file in
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3273 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3274 break;;
3275 esac
3276 done
3277 else
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3282 See \`config.log' for more details." >&5
3283 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3284 See \`config.log' for more details." >&2;}
3285 { (exit 1); exit 1; }; }
3288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3290 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3291 echo "${ECHO_T}$ac_cv_objext" >&6; }
3292 OBJEXT=$ac_cv_objext
3293 ac_objext=$OBJEXT
3294 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3295 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3296 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h. */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3307 main ()
3309 #ifndef __GNUC__
3310 choke me
3311 #endif
3314 return 0;
3316 _ACEOF
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } && {
3331 test -z "$ac_c_werror_flag" ||
3332 test ! -s conftest.err
3333 } && test -s conftest.$ac_objext; then
3334 ac_compiler_gnu=yes
3335 else
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 ac_compiler_gnu=no
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3346 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3347 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3348 GCC=`test $ac_compiler_gnu = yes && echo yes`
3349 ac_test_CFLAGS=${CFLAGS+set}
3350 ac_save_CFLAGS=$CFLAGS
3351 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3352 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3353 if test "${ac_cv_prog_cc_g+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356 ac_save_c_werror_flag=$ac_c_werror_flag
3357 ac_c_werror_flag=yes
3358 ac_cv_prog_cc_g=no
3359 CFLAGS="-g"
3360 cat >conftest.$ac_ext <<_ACEOF
3361 /* confdefs.h. */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3368 main ()
3372 return 0;
3374 _ACEOF
3375 rm -f conftest.$ac_objext
3376 if { (ac_try="$ac_compile"
3377 case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_compile") 2>conftest.er1
3383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } && {
3389 test -z "$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 } && test -s conftest.$ac_objext; then
3392 ac_cv_prog_cc_g=yes
3393 else
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 CFLAGS=""
3398 cat >conftest.$ac_ext <<_ACEOF
3399 /* confdefs.h. */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3406 main ()
3410 return 0;
3412 _ACEOF
3413 rm -f conftest.$ac_objext
3414 if { (ac_try="$ac_compile"
3415 case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418 esac
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 (eval "$ac_compile") 2>conftest.er1
3421 ac_status=$?
3422 grep -v '^ *+' conftest.er1 >conftest.err
3423 rm -f conftest.er1
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } && {
3427 test -z "$ac_c_werror_flag" ||
3428 test ! -s conftest.err
3429 } && test -s conftest.$ac_objext; then
3431 else
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3435 ac_c_werror_flag=$ac_save_c_werror_flag
3436 CFLAGS="-g"
3437 cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h. */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3445 main ()
3449 return 0;
3451 _ACEOF
3452 rm -f conftest.$ac_objext
3453 if { (ac_try="$ac_compile"
3454 case "(($ac_try" in
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3457 esac
3458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3459 (eval "$ac_compile") 2>conftest.er1
3460 ac_status=$?
3461 grep -v '^ *+' conftest.er1 >conftest.err
3462 rm -f conftest.er1
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } && {
3466 test -z "$ac_c_werror_flag" ||
3467 test ! -s conftest.err
3468 } && test -s conftest.$ac_objext; then
3469 ac_cv_prog_cc_g=yes
3470 else
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484 ac_c_werror_flag=$ac_save_c_werror_flag
3486 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3487 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3488 if test "$ac_test_CFLAGS" = set; then
3489 CFLAGS=$ac_save_CFLAGS
3490 elif test $ac_cv_prog_cc_g = yes; then
3491 if test "$GCC" = yes; then
3492 CFLAGS="-g -O2"
3493 else
3494 CFLAGS="-g"
3496 else
3497 if test "$GCC" = yes; then
3498 CFLAGS="-O2"
3499 else
3500 CFLAGS=
3503 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3504 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3505 if test "${ac_cv_prog_cc_c89+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508 ac_cv_prog_cc_c89=no
3509 ac_save_CC=$CC
3510 cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h. */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3516 #include <stdarg.h>
3517 #include <stdio.h>
3518 #include <sys/types.h>
3519 #include <sys/stat.h>
3520 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3521 struct buf { int x; };
3522 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3523 static char *e (p, i)
3524 char **p;
3525 int i;
3527 return p[i];
3529 static char *f (char * (*g) (char **, int), char **p, ...)
3531 char *s;
3532 va_list v;
3533 va_start (v,p);
3534 s = g (p, va_arg (v,int));
3535 va_end (v);
3536 return s;
3539 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3540 function prototypes and stuff, but not '\xHH' hex character constants.
3541 These don't provoke an error unfortunately, instead are silently treated
3542 as 'x'. The following induces an error, until -std is added to get
3543 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3544 array size at least. It's necessary to write '\x00'==0 to get something
3545 that's true only with -std. */
3546 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3548 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3549 inside strings and character constants. */
3550 #define FOO(x) 'x'
3551 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3553 int test (int i, double x);
3554 struct s1 {int (*f) (int a);};
3555 struct s2 {int (*f) (double a);};
3556 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3557 int argc;
3558 char **argv;
3560 main ()
3562 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3564 return 0;
3566 _ACEOF
3567 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3568 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3570 CC="$ac_save_CC $ac_arg"
3571 rm -f conftest.$ac_objext
3572 if { (ac_try="$ac_compile"
3573 case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_compile") 2>conftest.er1
3579 ac_status=$?
3580 grep -v '^ *+' conftest.er1 >conftest.err
3581 rm -f conftest.er1
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } && {
3585 test -z "$ac_c_werror_flag" ||
3586 test ! -s conftest.err
3587 } && test -s conftest.$ac_objext; then
3588 ac_cv_prog_cc_c89=$ac_arg
3589 else
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3596 rm -f core conftest.err conftest.$ac_objext
3597 test "x$ac_cv_prog_cc_c89" != "xno" && break
3598 done
3599 rm -f conftest.$ac_ext
3600 CC=$ac_save_CC
3603 # AC_CACHE_VAL
3604 case "x$ac_cv_prog_cc_c89" in
3606 { echo "$as_me:$LINENO: result: none needed" >&5
3607 echo "${ECHO_T}none needed" >&6; } ;;
3608 xno)
3609 { echo "$as_me:$LINENO: result: unsupported" >&5
3610 echo "${ECHO_T}unsupported" >&6; } ;;
3612 CC="$CC $ac_cv_prog_cc_c89"
3613 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3614 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3615 esac
3618 ac_ext=c
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 # On Suns, sometimes $CPP names a directory.
3626 if test -n "$CPP" && test -d "$CPP"; then
3627 CPP=
3630 ## If not using gcc, and on Solaris, and no CPP specified, see if
3631 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3632 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3633 test x"$CPP" = x; then
3634 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3635 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3637 if test "${emacs_cv_sunpro_c+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640 cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h. */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3648 main ()
3650 #ifndef __SUNPRO_C
3651 fail;
3652 #endif
3655 return 0;
3657 _ACEOF
3658 rm -f conftest.$ac_objext conftest$ac_exeext
3659 if { (ac_try="$ac_link"
3660 case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663 esac
3664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3665 (eval "$ac_link") 2>conftest.er1
3666 ac_status=$?
3667 grep -v '^ *+' conftest.er1 >conftest.err
3668 rm -f conftest.er1
3669 cat conftest.err >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } && {
3672 test -z "$ac_c_werror_flag" ||
3673 test ! -s conftest.err
3674 } && test -s conftest$ac_exeext &&
3675 $as_test_x conftest$ac_exeext; then
3676 emacs_cv_sunpro_c=yes
3677 else
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3681 emacs_cv_sunpro_c=no
3684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3685 conftest$ac_exeext conftest.$ac_ext
3688 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3689 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3691 if test x"$emacs_cv_sunpro_c" = xyes; then
3692 NON_GNU_CPP="$CC -E -Xs"
3696 #### Some systems specify a CPP to use unless we are using GCC.
3697 #### Now that we know whether we are using GCC, we can decide whether
3698 #### to use that one.
3699 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3700 then
3701 CPP="$NON_GNU_CPP"
3704 #### Some systems specify a CC to use unless we are using GCC.
3705 #### Now that we know whether we are using GCC, we can decide whether
3706 #### to use that one.
3707 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3708 test x$cc_specified != xyes
3709 then
3710 CC="$NON_GNU_CC"
3713 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3714 then
3715 CC="$CC $GCC_TEST_OPTIONS"
3718 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3719 then
3720 CC="$CC $NON_GCC_TEST_OPTIONS"
3724 cat >>confdefs.h <<\_ACEOF
3725 #define _GNU_SOURCE 1
3726 _ACEOF
3729 ac_ext=c
3730 ac_cpp='$CPP $CPPFLAGS'
3731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3735 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3736 # On Suns, sometimes $CPP names a directory.
3737 if test -n "$CPP" && test -d "$CPP"; then
3738 CPP=
3740 if test -z "$CPP"; then
3741 if test "${ac_cv_prog_CPP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744 # Double quotes because CPP needs to be expanded
3745 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3747 ac_preproc_ok=false
3748 for ac_c_preproc_warn_flag in '' yes
3750 # Use a header file that comes with gcc, so configuring glibc
3751 # with a fresh cross-compiler works.
3752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3753 # <limits.h> exists even on freestanding compilers.
3754 # On the NeXT, cc -E runs the code through the compiler's parser,
3755 # not just through cpp. "Syntax error" is here to catch this case.
3756 cat >conftest.$ac_ext <<_ACEOF
3757 /* confdefs.h. */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3762 #ifdef __STDC__
3763 # include <limits.h>
3764 #else
3765 # include <assert.h>
3766 #endif
3767 Syntax error
3768 _ACEOF
3769 if { (ac_try="$ac_cpp conftest.$ac_ext"
3770 case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773 esac
3774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3776 ac_status=$?
3777 grep -v '^ *+' conftest.er1 >conftest.err
3778 rm -f conftest.er1
3779 cat conftest.err >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } >/dev/null && {
3782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3783 test ! -s conftest.err
3784 }; then
3786 else
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3790 # Broken: fails on valid input.
3791 continue
3794 rm -f conftest.err conftest.$ac_ext
3796 # OK, works on sane cases. Now check whether nonexistent headers
3797 # can be detected and how.
3798 cat >conftest.$ac_ext <<_ACEOF
3799 /* confdefs.h. */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3804 #include <ac_nonexistent.h>
3805 _ACEOF
3806 if { (ac_try="$ac_cpp conftest.$ac_ext"
3807 case "(($ac_try" in
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3810 esac
3811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } >/dev/null && {
3819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 }; then
3822 # Broken: success on invalid input.
3823 continue
3824 else
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3828 # Passes both tests.
3829 ac_preproc_ok=:
3830 break
3833 rm -f conftest.err conftest.$ac_ext
3835 done
3836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3837 rm -f conftest.err conftest.$ac_ext
3838 if $ac_preproc_ok; then
3839 break
3842 done
3843 ac_cv_prog_CPP=$CPP
3846 CPP=$ac_cv_prog_CPP
3847 else
3848 ac_cv_prog_CPP=$CPP
3850 { echo "$as_me:$LINENO: result: $CPP" >&5
3851 echo "${ECHO_T}$CPP" >&6; }
3852 ac_preproc_ok=false
3853 for ac_c_preproc_warn_flag in '' yes
3855 # Use a header file that comes with gcc, so configuring glibc
3856 # with a fresh cross-compiler works.
3857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3858 # <limits.h> exists even on freestanding compilers.
3859 # On the NeXT, cc -E runs the code through the compiler's parser,
3860 # not just through cpp. "Syntax error" is here to catch this case.
3861 cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h. */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3867 #ifdef __STDC__
3868 # include <limits.h>
3869 #else
3870 # include <assert.h>
3871 #endif
3872 Syntax error
3873 _ACEOF
3874 if { (ac_try="$ac_cpp conftest.$ac_ext"
3875 case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3881 ac_status=$?
3882 grep -v '^ *+' conftest.er1 >conftest.err
3883 rm -f conftest.er1
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } >/dev/null && {
3887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3888 test ! -s conftest.err
3889 }; then
3891 else
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3895 # Broken: fails on valid input.
3896 continue
3899 rm -f conftest.err conftest.$ac_ext
3901 # OK, works on sane cases. Now check whether nonexistent headers
3902 # can be detected and how.
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h. */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 #include <ac_nonexistent.h>
3910 _ACEOF
3911 if { (ac_try="$ac_cpp conftest.$ac_ext"
3912 case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915 esac
3916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3918 ac_status=$?
3919 grep -v '^ *+' conftest.er1 >conftest.err
3920 rm -f conftest.er1
3921 cat conftest.err >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } >/dev/null && {
3924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3925 test ! -s conftest.err
3926 }; then
3927 # Broken: success on invalid input.
3928 continue
3929 else
3930 echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3933 # Passes both tests.
3934 ac_preproc_ok=:
3935 break
3938 rm -f conftest.err conftest.$ac_ext
3940 done
3941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3942 rm -f conftest.err conftest.$ac_ext
3943 if $ac_preproc_ok; then
3945 else
3946 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3947 See \`config.log' for more details." >&5
3948 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3949 See \`config.log' for more details." >&2;}
3950 { (exit 1); exit 1; }; }
3953 ac_ext=c
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3961 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3962 if test "${ac_cv_path_GREP+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965 # Extract the first word of "grep ggrep" to use in msg output
3966 if test -z "$GREP"; then
3967 set dummy grep ggrep; ac_prog_name=$2
3968 if test "${ac_cv_path_GREP+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971 ac_path_GREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_prog in grep ggrep; do
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3982 # Check for GNU ac_path_GREP and select it if it is found.
3983 # Check for GNU $ac_path_GREP
3984 case `"$ac_path_GREP" --version 2>&1` in
3985 *GNU*)
3986 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3988 ac_count=0
3989 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3990 while :
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
3995 echo 'GREP' >> "conftest.nl"
3996 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998 ac_count=`expr $ac_count + 1`
3999 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_GREP="$ac_path_GREP"
4002 ac_path_GREP_max=$ac_count
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4006 done
4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 esac
4011 $ac_path_GREP_found && break 3
4012 done
4013 done
4015 done
4016 IFS=$as_save_IFS
4021 GREP="$ac_cv_path_GREP"
4022 if test -z "$GREP"; then
4023 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4024 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4025 { (exit 1); exit 1; }; }
4028 else
4029 ac_cv_path_GREP=$GREP
4034 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4035 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4036 GREP="$ac_cv_path_GREP"
4039 { echo "$as_me:$LINENO: checking for egrep" >&5
4040 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4041 if test "${ac_cv_path_EGREP+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4045 then ac_cv_path_EGREP="$GREP -E"
4046 else
4047 # Extract the first word of "egrep" to use in msg output
4048 if test -z "$EGREP"; then
4049 set dummy egrep; ac_prog_name=$2
4050 if test "${ac_cv_path_EGREP+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053 ac_path_EGREP_found=false
4054 # Loop through the user's path and test for each of PROGNAME-LIST
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058 IFS=$as_save_IFS
4059 test -z "$as_dir" && as_dir=.
4060 for ac_prog in egrep; do
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4063 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4064 # Check for GNU ac_path_EGREP and select it if it is found.
4065 # Check for GNU $ac_path_EGREP
4066 case `"$ac_path_EGREP" --version 2>&1` in
4067 *GNU*)
4068 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4070 ac_count=0
4071 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4072 while :
4074 cat "conftest.in" "conftest.in" >"conftest.tmp"
4075 mv "conftest.tmp" "conftest.in"
4076 cp "conftest.in" "conftest.nl"
4077 echo 'EGREP' >> "conftest.nl"
4078 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4080 ac_count=`expr $ac_count + 1`
4081 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4082 # Best one so far, save it but keep looking for a better one
4083 ac_cv_path_EGREP="$ac_path_EGREP"
4084 ac_path_EGREP_max=$ac_count
4086 # 10*(2^10) chars as input seems more than enough
4087 test $ac_count -gt 10 && break
4088 done
4089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4090 esac
4093 $ac_path_EGREP_found && break 3
4094 done
4095 done
4097 done
4098 IFS=$as_save_IFS
4103 EGREP="$ac_cv_path_EGREP"
4104 if test -z "$EGREP"; then
4105 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4106 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4107 { (exit 1); exit 1; }; }
4110 else
4111 ac_cv_path_EGREP=$EGREP
4117 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4118 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4119 EGREP="$ac_cv_path_EGREP"
4123 { echo "$as_me:$LINENO: checking for AIX" >&5
4124 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 #ifdef _AIX
4133 #endif
4135 _ACEOF
4136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4137 $EGREP "yes" >/dev/null 2>&1; then
4138 { echo "$as_me:$LINENO: result: yes" >&5
4139 echo "${ECHO_T}yes" >&6; }
4140 cat >>confdefs.h <<\_ACEOF
4141 #define _ALL_SOURCE 1
4142 _ACEOF
4144 else
4145 { echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6; }
4148 rm -f conftest*
4151 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4152 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4153 if test "${ac_cv_header_stdc+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156 cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h. */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4162 #include <stdlib.h>
4163 #include <stdarg.h>
4164 #include <string.h>
4165 #include <float.h>
4168 main ()
4172 return 0;
4174 _ACEOF
4175 rm -f conftest.$ac_objext
4176 if { (ac_try="$ac_compile"
4177 case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4180 esac
4181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182 (eval "$ac_compile") 2>conftest.er1
4183 ac_status=$?
4184 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -f conftest.er1
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } && {
4189 test -z "$ac_c_werror_flag" ||
4190 test ! -s conftest.err
4191 } && test -s conftest.$ac_objext; then
4192 ac_cv_header_stdc=yes
4193 else
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 ac_cv_header_stdc=no
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 if test $ac_cv_header_stdc = yes; then
4203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h. */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 #include <string.h>
4212 _ACEOF
4213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4214 $EGREP "memchr" >/dev/null 2>&1; then
4216 else
4217 ac_cv_header_stdc=no
4219 rm -f conftest*
4223 if test $ac_cv_header_stdc = yes; then
4224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4225 cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h. */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231 #include <stdlib.h>
4233 _ACEOF
4234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4235 $EGREP "free" >/dev/null 2>&1; then
4237 else
4238 ac_cv_header_stdc=no
4240 rm -f conftest*
4244 if test $ac_cv_header_stdc = yes; then
4245 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4246 if test "$cross_compiling" = yes; then
4248 else
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h. */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 #include <ctype.h>
4256 #include <stdlib.h>
4257 #if ((' ' & 0x0FF) == 0x020)
4258 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4259 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4260 #else
4261 # define ISLOWER(c) \
4262 (('a' <= (c) && (c) <= 'i') \
4263 || ('j' <= (c) && (c) <= 'r') \
4264 || ('s' <= (c) && (c) <= 'z'))
4265 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4266 #endif
4268 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4270 main ()
4272 int i;
4273 for (i = 0; i < 256; i++)
4274 if (XOR (islower (i), ISLOWER (i))
4275 || toupper (i) != TOUPPER (i))
4276 return 2;
4277 return 0;
4279 _ACEOF
4280 rm -f conftest$ac_exeext
4281 if { (ac_try="$ac_link"
4282 case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_link") 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4291 { (case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294 esac
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4301 else
4302 echo "$as_me: program exited with status $ac_status" >&5
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 ( exit $ac_status )
4307 ac_cv_header_stdc=no
4309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4315 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4316 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4317 if test $ac_cv_header_stdc = yes; then
4319 cat >>confdefs.h <<\_ACEOF
4320 #define STDC_HEADERS 1
4321 _ACEOF
4325 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4335 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4336 inttypes.h stdint.h unistd.h
4338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344 cat >conftest.$ac_ext <<_ACEOF
4345 /* confdefs.h. */
4346 _ACEOF
4347 cat confdefs.h >>conftest.$ac_ext
4348 cat >>conftest.$ac_ext <<_ACEOF
4349 /* end confdefs.h. */
4350 $ac_includes_default
4352 #include <$ac_header>
4353 _ACEOF
4354 rm -f conftest.$ac_objext
4355 if { (ac_try="$ac_compile"
4356 case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_compile") 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } && {
4368 test -z "$ac_c_werror_flag" ||
4369 test ! -s conftest.err
4370 } && test -s conftest.$ac_objext; then
4371 eval "$as_ac_Header=yes"
4372 else
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 eval "$as_ac_Header=no"
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 ac_res=`eval echo '${'$as_ac_Header'}'`
4382 { echo "$as_me:$LINENO: result: $ac_res" >&5
4383 echo "${ECHO_T}$ac_res" >&6; }
4384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4385 cat >>confdefs.h <<_ACEOF
4386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4387 _ACEOF
4391 done
4394 if test "${ac_cv_header_minix_config_h+set}" = set; then
4395 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4396 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4397 if test "${ac_cv_header_minix_config_h+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4401 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4402 else
4403 # Is the header compilable?
4404 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4405 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h. */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 $ac_includes_default
4413 #include <minix/config.h>
4414 _ACEOF
4415 rm -f conftest.$ac_objext
4416 if { (ac_try="$ac_compile"
4417 case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4420 esac
4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_compile") 2>conftest.er1
4423 ac_status=$?
4424 grep -v '^ *+' conftest.er1 >conftest.err
4425 rm -f conftest.er1
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } && {
4429 test -z "$ac_c_werror_flag" ||
4430 test ! -s conftest.err
4431 } && test -s conftest.$ac_objext; then
4432 ac_header_compiler=yes
4433 else
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4437 ac_header_compiler=no
4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4442 echo "${ECHO_T}$ac_header_compiler" >&6; }
4444 # Is the header present?
4445 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4446 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 #include <minix/config.h>
4454 _ACEOF
4455 if { (ac_try="$ac_cpp conftest.$ac_ext"
4456 case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459 esac
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } >/dev/null && {
4468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4469 test ! -s conftest.err
4470 }; then
4471 ac_header_preproc=yes
4472 else
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4476 ac_header_preproc=no
4479 rm -f conftest.err conftest.$ac_ext
4480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4481 echo "${ECHO_T}$ac_header_preproc" >&6; }
4483 # So? What about this header?
4484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4485 yes:no: )
4486 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4487 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4488 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4489 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4490 ac_header_preproc=yes
4492 no:yes:* )
4493 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4494 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4496 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4498 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4500 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4502 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4504 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4507 esac
4508 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4509 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4510 if test "${ac_cv_header_minix_config_h+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 ac_cv_header_minix_config_h=$ac_header_preproc
4515 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4516 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4519 if test $ac_cv_header_minix_config_h = yes; then
4520 MINIX=yes
4521 else
4522 MINIX=
4526 if test "$MINIX" = yes; then
4528 cat >>confdefs.h <<\_ACEOF
4529 #define _POSIX_SOURCE 1
4530 _ACEOF
4533 cat >>confdefs.h <<\_ACEOF
4534 #define _POSIX_1_SOURCE 2
4535 _ACEOF
4538 cat >>confdefs.h <<\_ACEOF
4539 #define _MINIX 1
4540 _ACEOF
4554 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4555 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4556 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h. */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4566 # define __EXTENSIONS__ 1
4567 $ac_includes_default
4569 main ()
4573 return 0;
4575 _ACEOF
4576 rm -f conftest.$ac_objext
4577 if { (ac_try="$ac_compile"
4578 case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581 esac
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_compile") 2>conftest.er1
4584 ac_status=$?
4585 grep -v '^ *+' conftest.er1 >conftest.err
4586 rm -f conftest.er1
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } && {
4590 test -z "$ac_c_werror_flag" ||
4591 test ! -s conftest.err
4592 } && test -s conftest.$ac_objext; then
4593 ac_cv_safe_to_define___extensions__=yes
4594 else
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4598 ac_cv_safe_to_define___extensions__=no
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4604 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4605 test $ac_cv_safe_to_define___extensions__ = yes &&
4606 cat >>confdefs.h <<\_ACEOF
4607 #define __EXTENSIONS__ 1
4608 _ACEOF
4610 cat >>confdefs.h <<\_ACEOF
4611 #define _POSIX_PTHREAD_SEMANTICS 1
4612 _ACEOF
4614 cat >>confdefs.h <<\_ACEOF
4615 #define _TANDEM_SOURCE 1
4616 _ACEOF
4620 ### Use -Wno-pointer-sign if the compiler supports it
4621 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4622 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4623 SAVE_CFLAGS="$CFLAGS"
4624 CFLAGS="$CFLAGS -Wno-pointer-sign"
4625 cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h. */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4633 main ()
4637 return 0;
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4642 case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645 esac
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_compile") 2>conftest.er1
4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest.$ac_objext; then
4657 has_option=yes
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 has_option=no
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 if test $has_option = yes; then
4667 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4669 { echo "$as_me:$LINENO: result: $has_option" >&5
4670 echo "${ECHO_T}$has_option" >&6; }
4671 CFLAGS="$SAVE_CFLAGS"
4672 unset has_option
4673 unset SAVE_CFLAGS
4675 #### Some other nice autoconf tests.
4677 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4678 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4679 LN_S=$as_ln_s
4680 if test "$LN_S" = "ln -s"; then
4681 { echo "$as_me:$LINENO: result: yes" >&5
4682 echo "${ECHO_T}yes" >&6; }
4683 else
4684 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4685 echo "${ECHO_T}no, using $LN_S" >&6; }
4688 ac_ext=c
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4694 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4695 # On Suns, sometimes $CPP names a directory.
4696 if test -n "$CPP" && test -d "$CPP"; then
4697 CPP=
4699 if test -z "$CPP"; then
4700 if test "${ac_cv_prog_CPP+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703 # Double quotes because CPP needs to be expanded
4704 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4706 ac_preproc_ok=false
4707 for ac_c_preproc_warn_flag in '' yes
4709 # Use a header file that comes with gcc, so configuring glibc
4710 # with a fresh cross-compiler works.
4711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4712 # <limits.h> exists even on freestanding compilers.
4713 # On the NeXT, cc -E runs the code through the compiler's parser,
4714 # not just through cpp. "Syntax error" is here to catch this case.
4715 cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h. */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 #ifdef __STDC__
4722 # include <limits.h>
4723 #else
4724 # include <assert.h>
4725 #endif
4726 Syntax error
4727 _ACEOF
4728 if { (ac_try="$ac_cpp conftest.$ac_ext"
4729 case "(($ac_try" in
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4732 esac
4733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4735 ac_status=$?
4736 grep -v '^ *+' conftest.er1 >conftest.err
4737 rm -f conftest.er1
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } >/dev/null && {
4741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4742 test ! -s conftest.err
4743 }; then
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 # Broken: fails on valid input.
4750 continue
4753 rm -f conftest.err conftest.$ac_ext
4755 # OK, works on sane cases. Now check whether nonexistent headers
4756 # can be detected and how.
4757 cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h. */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 #include <ac_nonexistent.h>
4764 _ACEOF
4765 if { (ac_try="$ac_cpp conftest.$ac_ext"
4766 case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4769 esac
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } >/dev/null && {
4778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4779 test ! -s conftest.err
4780 }; then
4781 # Broken: success on invalid input.
4782 continue
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 # Passes both tests.
4788 ac_preproc_ok=:
4789 break
4792 rm -f conftest.err conftest.$ac_ext
4794 done
4795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4796 rm -f conftest.err conftest.$ac_ext
4797 if $ac_preproc_ok; then
4798 break
4801 done
4802 ac_cv_prog_CPP=$CPP
4805 CPP=$ac_cv_prog_CPP
4806 else
4807 ac_cv_prog_CPP=$CPP
4809 { echo "$as_me:$LINENO: result: $CPP" >&5
4810 echo "${ECHO_T}$CPP" >&6; }
4811 ac_preproc_ok=false
4812 for ac_c_preproc_warn_flag in '' yes
4814 # Use a header file that comes with gcc, so configuring glibc
4815 # with a fresh cross-compiler works.
4816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4817 # <limits.h> exists even on freestanding compilers.
4818 # On the NeXT, cc -E runs the code through the compiler's parser,
4819 # not just through cpp. "Syntax error" is here to catch this case.
4820 cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h. */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 #ifdef __STDC__
4827 # include <limits.h>
4828 #else
4829 # include <assert.h>
4830 #endif
4831 Syntax error
4832 _ACEOF
4833 if { (ac_try="$ac_cpp conftest.$ac_ext"
4834 case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837 esac
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } >/dev/null && {
4846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4847 test ! -s conftest.err
4848 }; then
4850 else
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 # Broken: fails on valid input.
4855 continue
4858 rm -f conftest.err conftest.$ac_ext
4860 # OK, works on sane cases. Now check whether nonexistent headers
4861 # can be detected and how.
4862 cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h. */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4868 #include <ac_nonexistent.h>
4869 _ACEOF
4870 if { (ac_try="$ac_cpp conftest.$ac_ext"
4871 case "(($ac_try" in
4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873 *) ac_try_echo=$ac_try;;
4874 esac
4875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4877 ac_status=$?
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } >/dev/null && {
4883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4884 test ! -s conftest.err
4885 }; then
4886 # Broken: success on invalid input.
4887 continue
4888 else
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4892 # Passes both tests.
4893 ac_preproc_ok=:
4894 break
4897 rm -f conftest.err conftest.$ac_ext
4899 done
4900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4901 rm -f conftest.err conftest.$ac_ext
4902 if $ac_preproc_ok; then
4904 else
4905 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4906 See \`config.log' for more details." >&5
4907 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4908 See \`config.log' for more details." >&2;}
4909 { (exit 1); exit 1; }; }
4912 ac_ext=c
4913 ac_cpp='$CPP $CPPFLAGS'
4914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918 # Find a good install program. We prefer a C program (faster),
4919 # so one script is as good as another. But avoid the broken or
4920 # incompatible versions:
4921 # SysV /etc/install, /usr/sbin/install
4922 # SunOS /usr/etc/install
4923 # IRIX /sbin/install
4924 # AIX /bin/install
4925 # AmigaOS /C/install, which installs bootblocks on floppy discs
4926 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4927 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4928 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4929 # OS/2's system install, which has a completely different semantic
4930 # ./install, which can be erroneously created by make from ./install.sh.
4931 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4932 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4933 if test -z "$INSTALL"; then
4934 if test "${ac_cv_path_install+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 # Account for people who put trailing slashes in PATH elements.
4943 case $as_dir/ in
4944 ./ | .// | /cC/* | \
4945 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4946 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4947 /usr/ucb/* ) ;;
4949 # OSF1 and SCO ODT 3.0 have their own names for install.
4950 # Don't use installbsd from OSF since it installs stuff as root
4951 # by default.
4952 for ac_prog in ginstall scoinst install; do
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4955 if test $ac_prog = install &&
4956 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4957 # AIX install. It has an incompatible calling convention.
4959 elif test $ac_prog = install &&
4960 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4961 # program-specific install script used by HP pwplus--don't use.
4963 else
4964 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4965 break 3
4968 done
4969 done
4971 esac
4972 done
4973 IFS=$as_save_IFS
4977 if test "${ac_cv_path_install+set}" = set; then
4978 INSTALL=$ac_cv_path_install
4979 else
4980 # As a last resort, use the slow shell script. Don't cache a
4981 # value for INSTALL within a source directory, because that will
4982 # break other packages using the cache if that directory is
4983 # removed, or if the value is a relative name.
4984 INSTALL=$ac_install_sh
4987 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4988 echo "${ECHO_T}$INSTALL" >&6; }
4990 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4991 # It thinks the first close brace ends the variable substitution.
4992 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4994 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4996 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4998 if test "x$RANLIB" = x; then
4999 if test -n "$ac_tool_prefix"; then
5000 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5001 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5004 if test "${ac_cv_prog_RANLIB+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 if test -n "$RANLIB"; then
5008 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5021 done
5022 done
5023 IFS=$as_save_IFS
5027 RANLIB=$ac_cv_prog_RANLIB
5028 if test -n "$RANLIB"; then
5029 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5030 echo "${ECHO_T}$RANLIB" >&6; }
5031 else
5032 { echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6; }
5038 if test -z "$ac_cv_prog_RANLIB"; then
5039 ac_ct_RANLIB=$RANLIB
5040 # Extract the first word of "ranlib", so it can be a program name with args.
5041 set dummy ranlib; ac_word=$2
5042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5044 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 else
5047 if test -n "$ac_ct_RANLIB"; then
5048 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_ac_ct_RANLIB="ranlib"
5058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5061 done
5062 done
5063 IFS=$as_save_IFS
5067 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5068 if test -n "$ac_ct_RANLIB"; then
5069 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5070 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5071 else
5072 { echo "$as_me:$LINENO: result: no" >&5
5073 echo "${ECHO_T}no" >&6; }
5076 if test "x$ac_ct_RANLIB" = x; then
5077 RANLIB=":"
5078 else
5079 case $cross_compiling:$ac_tool_warned in
5080 yes:)
5081 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5082 whose name does not start with the host triplet. If you think this
5083 configuration is useful to you, please write to autoconf@gnu.org." >&5
5084 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5085 whose name does not start with the host triplet. If you think this
5086 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5087 ac_tool_warned=yes ;;
5088 esac
5089 RANLIB=$ac_ct_RANLIB
5091 else
5092 RANLIB="$ac_cv_prog_RANLIB"
5096 # Extract the first word of "install-info", so it can be a program name with args.
5097 set dummy install-info; ac_word=$2
5098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5100 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103 case $INSTALL_INFO in
5104 [\\/]* | ?:[\\/]*)
5105 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5119 done
5120 done
5121 IFS=$as_save_IFS
5124 esac
5126 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5127 if test -n "$INSTALL_INFO"; then
5128 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5129 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5130 else
5131 { echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6; }
5136 # Extract the first word of "install-info", so it can be a program name with args.
5137 set dummy install-info; ac_word=$2
5138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5140 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143 case $INSTALL_INFO in
5144 [\\/]* | ?:[\\/]*)
5145 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in /usr/sbin
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5159 done
5160 done
5161 IFS=$as_save_IFS
5164 esac
5166 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5167 if test -n "$INSTALL_INFO"; then
5168 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5169 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5170 else
5171 { echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6; }
5176 # Extract the first word of "install-info", so it can be a program name with args.
5177 set dummy install-info; ac_word=$2
5178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5180 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183 case $INSTALL_INFO in
5184 [\\/]* | ?:[\\/]*)
5185 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in /sbin
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5201 IFS=$as_save_IFS
5203 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5205 esac
5207 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5208 if test -n "$INSTALL_INFO"; then
5209 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5210 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5211 else
5212 { echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6; }
5217 # Extract the first word of "gzip", so it can be a program name with args.
5218 set dummy gzip; ac_word=$2
5219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5221 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 case $GZIP_PROG in
5225 [\\/]* | ?:[\\/]*)
5226 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5240 done
5241 done
5242 IFS=$as_save_IFS
5245 esac
5247 GZIP_PROG=$ac_cv_path_GZIP_PROG
5248 if test -n "$GZIP_PROG"; then
5249 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5250 echo "${ECHO_T}$GZIP_PROG" >&6; }
5251 else
5252 { echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6; }
5259 ## Need makeinfo >= 4.6 (?) to build the manuals.
5260 # Extract the first word of "makeinfo", so it can be a program name with args.
5261 set dummy makeinfo; ac_word=$2
5262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5264 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267 case $MAKEINFO in
5268 [\\/]* | ?:[\\/]*)
5269 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5283 done
5284 done
5285 IFS=$as_save_IFS
5287 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5289 esac
5291 MAKEINFO=$ac_cv_path_MAKEINFO
5292 if test -n "$MAKEINFO"; then
5293 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5294 echo "${ECHO_T}$MAKEINFO" >&6; }
5295 else
5296 { echo "$as_me:$LINENO: result: no" >&5
5297 echo "${ECHO_T}no" >&6; }
5301 if test "$MAKEINFO" != "no" && \
5302 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
5303 MAKEINFO=no
5306 ## Makeinfo is unusual. For a released Emacs, the manuals are
5307 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5308 ## therefore in the category of "special tools" not normally required, which
5309 ## configure does not have to check for (eg autoconf itself).
5310 ## In a CVS checkout on the other hand, the manuals are not included.
5311 ## So makeinfo is a requirement to build from CVS, and configure
5312 ## should test for it as it does for any other build requirement.
5313 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5314 ## with pre-built manuals, from a CVS checkout.
5315 if test "$MAKEINFO" = "no"; then
5316 if test "x${with_makeinfo}" = "xno"; then
5317 MAKEINFO=off
5318 elif ! test -e $srcdir/info/emacs; then
5319 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5320 source tree does not seem to have pre-built manuals in the \`info' directory.
5321 Either install a suitable version of makeinfo, or re-run configure
5322 with the \`--without-makeinfo' option to build without the manuals. " >&5
5323 echo "$as_me: 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. " >&2;}
5327 { (exit 1); exit 1; }; }
5332 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5333 then
5334 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5337 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5338 then
5339 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5343 late_LDFLAGS=$LDFLAGS
5344 if test "$GCC" = yes; then
5345 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5346 else
5347 LDFLAGS="$LDFLAGS -znocombreloc"
5350 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5351 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5352 cat >conftest.$ac_ext <<_ACEOF
5353 main(){return 0;}
5354 _ACEOF
5355 rm -f conftest.$ac_objext conftest$ac_exeext
5356 if { (ac_try="$ac_link"
5357 case "(($ac_try" in
5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5360 esac
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_link") 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } && {
5369 test -z "$ac_c_werror_flag" ||
5370 test ! -s conftest.err
5371 } && test -s conftest$ac_exeext &&
5372 $as_test_x conftest$ac_exeext; then
5373 { echo "$as_me:$LINENO: result: yes" >&5
5374 echo "${ECHO_T}yes" >&6; }
5375 else
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5379 LDFLAGS=$late_LDFLAGS
5380 { echo "$as_me:$LINENO: result: no" >&5
5381 echo "${ECHO_T}no" >&6; }
5384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5385 conftest$ac_exeext conftest.$ac_ext
5387 #### Extract some information from the operating system and machine files.
5389 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5390 - which libraries the lib-src programs will want, and
5391 - whether the GNU malloc routines are usable..." >&5
5392 echo "$as_me: checking the machine- and system-dependent files to find out
5393 - which libraries the lib-src programs will want, and
5394 - whether the GNU malloc routines are usable..." >&6;}
5396 ### First figure out CFLAGS (which we use for running the compiler here)
5397 ### and REAL_CFLAGS (which we use for real compilation).
5398 ### The two are the same except on a few systems, where they are made
5399 ### different to work around various lossages. For example,
5400 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5401 ### as implying static linking.
5403 ### If the CFLAGS env var is specified, we use that value
5404 ### instead of the default.
5406 ### It's not important that this name contain the PID; you can't run
5407 ### two configures in the same directory and have anything work
5408 ### anyway.
5409 tempcname="conftest.c"
5411 echo '
5412 #include "'${srcdir}'/src/'${opsysfile}'"
5413 #include "'${srcdir}'/src/'${machfile}'"
5414 #ifndef LIBS_MACHINE
5415 #define LIBS_MACHINE
5416 #endif
5417 #ifndef LIBS_SYSTEM
5418 #define LIBS_SYSTEM
5419 #endif
5420 #ifndef C_SWITCH_SYSTEM
5421 #define C_SWITCH_SYSTEM
5422 #endif
5423 #ifndef C_SWITCH_MACHINE
5424 #define C_SWITCH_MACHINE
5425 #endif
5426 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5427 configure___ c_switch_system=C_SWITCH_SYSTEM
5428 configure___ c_switch_machine=C_SWITCH_MACHINE
5430 #ifndef LIB_X11_LIB
5431 #define LIB_X11_LIB -lX11
5432 #endif
5434 #ifndef LIBX11_SYSTEM
5435 #define LIBX11_SYSTEM
5436 #endif
5437 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5439 #ifdef UNEXEC
5440 configure___ unexec=UNEXEC
5441 #else
5442 configure___ unexec=unexec.o
5443 #endif
5445 #ifdef SYSTEM_MALLOC
5446 configure___ system_malloc=yes
5447 #else
5448 configure___ system_malloc=no
5449 #endif
5451 #ifdef USE_MMAP_FOR_BUFFERS
5452 configure___ use_mmap_for_buffers=yes
5453 #else
5454 configure___ use_mmap_for_buffers=no
5455 #endif
5457 #ifndef C_DEBUG_SWITCH
5458 #define C_DEBUG_SWITCH -g
5459 #endif
5461 #ifndef C_OPTIMIZE_SWITCH
5462 #ifdef __GNUC__
5463 #define C_OPTIMIZE_SWITCH -O2
5464 #else
5465 #define C_OPTIMIZE_SWITCH -O
5466 #endif
5467 #endif
5469 #ifndef C_WARNINGS_SWITCH
5470 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5471 #endif
5473 #ifndef LD_SWITCH_MACHINE
5474 #define LD_SWITCH_MACHINE
5475 #endif
5477 #ifndef LD_SWITCH_SYSTEM
5478 #define LD_SWITCH_SYSTEM
5479 #endif
5481 #ifndef LD_SWITCH_X_SITE_AUX
5482 #define LD_SWITCH_X_SITE_AUX
5483 #endif
5485 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5486 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5488 #ifdef THIS_IS_CONFIGURE
5490 /* Get the CFLAGS for tests in configure. */
5491 #ifdef __GNUC__
5492 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5493 #else
5494 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5495 #endif
5497 #else /* not THIS_IS_CONFIGURE */
5499 /* Get the CFLAGS for real compilation. */
5500 #ifdef __GNUC__
5501 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5502 #else
5503 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5504 #endif
5506 #endif /* not THIS_IS_CONFIGURE */
5507 ' > ${tempcname}
5509 # The value of CPP is a quoted variable reference, so we need to do this
5510 # to get its actual value...
5511 CPP=`eval "echo $CPP"`
5512 eval `${CPP} -Isrc ${tempcname} \
5513 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5514 if test "x$SPECIFIED_CFLAGS" = x; then
5515 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5516 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5517 else
5518 REAL_CFLAGS="$CFLAGS"
5520 rm ${tempcname}
5522 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5524 ### Make sure subsequent tests use flags consistent with the build flags.
5526 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5527 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5528 else
5529 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5534 # Check whether --enable-largefile was given.
5535 if test "${enable_largefile+set}" = set; then
5536 enableval=$enable_largefile;
5539 if test "$enable_largefile" != no; then
5541 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5542 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5543 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546 ac_cv_sys_largefile_CC=no
5547 if test "$GCC" != yes; then
5548 ac_save_CC=$CC
5549 while :; do
5550 # IRIX 6.2 and later do not support large files by default,
5551 # so use the C compiler's -n32 option if that helps.
5552 cat >conftest.$ac_ext <<_ACEOF
5553 /* confdefs.h. */
5554 _ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 #include <sys/types.h>
5559 /* Check that off_t can represent 2**63 - 1 correctly.
5560 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5561 since some C++ compilers masquerading as C compilers
5562 incorrectly reject 9223372036854775807. */
5563 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5564 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5565 && LARGE_OFF_T % 2147483647 == 1)
5566 ? 1 : -1];
5568 main ()
5572 return 0;
5574 _ACEOF
5575 rm -f conftest.$ac_objext
5576 if { (ac_try="$ac_compile"
5577 case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580 esac
5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_compile") 2>conftest.er1
5583 ac_status=$?
5584 grep -v '^ *+' conftest.er1 >conftest.err
5585 rm -f conftest.er1
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } && {
5589 test -z "$ac_c_werror_flag" ||
5590 test ! -s conftest.err
5591 } && test -s conftest.$ac_objext; then
5592 break
5593 else
5594 echo "$as_me: failed program was:" >&5
5595 sed 's/^/| /' conftest.$ac_ext >&5
5600 rm -f core conftest.err conftest.$ac_objext
5601 CC="$CC -n32"
5602 rm -f conftest.$ac_objext
5603 if { (ac_try="$ac_compile"
5604 case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607 esac
5608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_compile") 2>conftest.er1
5610 ac_status=$?
5611 grep -v '^ *+' conftest.er1 >conftest.err
5612 rm -f conftest.er1
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && {
5616 test -z "$ac_c_werror_flag" ||
5617 test ! -s conftest.err
5618 } && test -s conftest.$ac_objext; then
5619 ac_cv_sys_largefile_CC=' -n32'; break
5620 else
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5627 rm -f core conftest.err conftest.$ac_objext
5628 break
5629 done
5630 CC=$ac_save_CC
5631 rm -f conftest.$ac_ext
5634 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5635 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5636 if test "$ac_cv_sys_largefile_CC" != no; then
5637 CC=$CC$ac_cv_sys_largefile_CC
5640 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5641 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5642 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 while :; do
5646 cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h. */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 #include <sys/types.h>
5653 /* Check that off_t can represent 2**63 - 1 correctly.
5654 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5655 since some C++ compilers masquerading as C compilers
5656 incorrectly reject 9223372036854775807. */
5657 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5658 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5659 && LARGE_OFF_T % 2147483647 == 1)
5660 ? 1 : -1];
5662 main ()
5666 return 0;
5668 _ACEOF
5669 rm -f conftest.$ac_objext
5670 if { (ac_try="$ac_compile"
5671 case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5674 esac
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_compile") 2>conftest.er1
5677 ac_status=$?
5678 grep -v '^ *+' conftest.er1 >conftest.err
5679 rm -f conftest.er1
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } && {
5683 test -z "$ac_c_werror_flag" ||
5684 test ! -s conftest.err
5685 } && test -s conftest.$ac_objext; then
5686 ac_cv_sys_file_offset_bits=no; break
5687 else
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h. */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 #define _FILE_OFFSET_BITS 64
5702 #include <sys/types.h>
5703 /* Check that off_t can represent 2**63 - 1 correctly.
5704 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5705 since some C++ compilers masquerading as C compilers
5706 incorrectly reject 9223372036854775807. */
5707 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5708 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5709 && LARGE_OFF_T % 2147483647 == 1)
5710 ? 1 : -1];
5712 main ()
5716 return 0;
5718 _ACEOF
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5721 case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_compile") 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && {
5733 test -z "$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest.$ac_objext; then
5736 ac_cv_sys_file_offset_bits=64; break
5737 else
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 ac_cv_sys_file_offset_bits=unknown
5746 break
5747 done
5749 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5750 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5751 case $ac_cv_sys_file_offset_bits in #(
5752 no | unknown) ;;
5754 cat >>confdefs.h <<_ACEOF
5755 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5756 _ACEOF
5758 esac
5759 rm -f conftest*
5760 if test $ac_cv_sys_file_offset_bits = unknown; then
5761 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5762 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5763 if test "${ac_cv_sys_large_files+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766 while :; do
5767 cat >conftest.$ac_ext <<_ACEOF
5768 /* confdefs.h. */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 #include <sys/types.h>
5774 /* Check that off_t can represent 2**63 - 1 correctly.
5775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5776 since some C++ compilers masquerading as C compilers
5777 incorrectly reject 9223372036854775807. */
5778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5780 && LARGE_OFF_T % 2147483647 == 1)
5781 ? 1 : -1];
5783 main ()
5787 return 0;
5789 _ACEOF
5790 rm -f conftest.$ac_objext
5791 if { (ac_try="$ac_compile"
5792 case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795 esac
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compile") 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } && {
5804 test -z "$ac_c_werror_flag" ||
5805 test ! -s conftest.err
5806 } && test -s conftest.$ac_objext; then
5807 ac_cv_sys_large_files=no; break
5808 else
5809 echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 #define _LARGE_FILES 1
5823 #include <sys/types.h>
5824 /* Check that off_t can represent 2**63 - 1 correctly.
5825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5826 since some C++ compilers masquerading as C compilers
5827 incorrectly reject 9223372036854775807. */
5828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5830 && LARGE_OFF_T % 2147483647 == 1)
5831 ? 1 : -1];
5833 main ()
5837 return 0;
5839 _ACEOF
5840 rm -f conftest.$ac_objext
5841 if { (ac_try="$ac_compile"
5842 case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compile") 2>conftest.er1
5848 ac_status=$?
5849 grep -v '^ *+' conftest.er1 >conftest.err
5850 rm -f conftest.er1
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } && {
5854 test -z "$ac_c_werror_flag" ||
5855 test ! -s conftest.err
5856 } && test -s conftest.$ac_objext; then
5857 ac_cv_sys_large_files=1; break
5858 else
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 ac_cv_sys_large_files=unknown
5867 break
5868 done
5870 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5871 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5872 case $ac_cv_sys_large_files in #(
5873 no | unknown) ;;
5875 cat >>confdefs.h <<_ACEOF
5876 #define _LARGE_FILES $ac_cv_sys_large_files
5877 _ACEOF
5879 esac
5880 rm -f conftest*
5886 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5887 ### be located in either /usr/lib64 or /usr/lib.
5888 case "${canonical}" in
5889 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5890 if test -d /usr/lib64; then
5892 cat >>confdefs.h <<\_ACEOF
5893 #define HAVE_LIB64_DIR 1
5894 _ACEOF
5897 esac
5902 if test "${with_sound}" != "no"; then
5903 # Sound support for GNU/Linux and the free BSDs.
5907 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 ac_res=`eval echo '${'$as_ac_Header'}'`
5917 { echo "$as_me:$LINENO: result: $ac_res" >&5
5918 echo "${ECHO_T}$ac_res" >&6; }
5919 else
5920 # Is the header compilable?
5921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5923 cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h. */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 $ac_includes_default
5930 #include <$ac_header>
5931 _ACEOF
5932 rm -f conftest.$ac_objext
5933 if { (ac_try="$ac_compile"
5934 case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_compile") 2>conftest.er1
5940 ac_status=$?
5941 grep -v '^ *+' conftest.er1 >conftest.err
5942 rm -f conftest.er1
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } && {
5946 test -z "$ac_c_werror_flag" ||
5947 test ! -s conftest.err
5948 } && test -s conftest.$ac_objext; then
5949 ac_header_compiler=yes
5950 else
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5954 ac_header_compiler=no
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5959 echo "${ECHO_T}$ac_header_compiler" >&6; }
5961 # Is the header present?
5962 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5964 cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h. */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5970 #include <$ac_header>
5971 _ACEOF
5972 if { (ac_try="$ac_cpp conftest.$ac_ext"
5973 case "(($ac_try" in
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976 esac
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5979 ac_status=$?
5980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } >/dev/null && {
5985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 }; then
5988 ac_header_preproc=yes
5989 else
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 ac_header_preproc=no
5996 rm -f conftest.err conftest.$ac_ext
5997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5998 echo "${ECHO_T}$ac_header_preproc" >&6; }
6000 # So? What about this header?
6001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6002 yes:no: )
6003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6007 ac_header_preproc=yes
6009 no:yes:* )
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6024 esac
6025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030 eval "$as_ac_Header=\$ac_header_preproc"
6032 ac_res=`eval echo '${'$as_ac_Header'}'`
6033 { echo "$as_me:$LINENO: result: $ac_res" >&5
6034 echo "${ECHO_T}$ac_res" >&6; }
6037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6038 cat >>confdefs.h <<_ACEOF
6039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6040 _ACEOF
6044 done
6046 # Emulation library used on NetBSD.
6047 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6048 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6049 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052 ac_check_lib_save_LIBS=$LIBS
6053 LIBS="-lossaudio $LIBS"
6054 cat >conftest.$ac_ext <<_ACEOF
6055 /* confdefs.h. */
6056 _ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6061 /* Override any GCC internal prototype to avoid an error.
6062 Use char because int might match the return type of a GCC
6063 builtin and then its argument prototype would still apply. */
6064 #ifdef __cplusplus
6065 extern "C"
6066 #endif
6067 char _oss_ioctl ();
6069 main ()
6071 return _oss_ioctl ();
6073 return 0;
6075 _ACEOF
6076 rm -f conftest.$ac_objext conftest$ac_exeext
6077 if { (ac_try="$ac_link"
6078 case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081 esac
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_link") 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest$ac_exeext &&
6093 $as_test_x conftest$ac_exeext; then
6094 ac_cv_lib_ossaudio__oss_ioctl=yes
6095 else
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6099 ac_cv_lib_ossaudio__oss_ioctl=no
6102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6103 conftest$ac_exeext conftest.$ac_ext
6104 LIBS=$ac_check_lib_save_LIBS
6106 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6107 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6108 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6109 LIBSOUND=-lossaudio
6110 else
6111 LIBSOUND=
6116 ALSA_REQUIRED=1.0.0
6117 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6119 succeeded=no
6121 # Extract the first word of "pkg-config", so it can be a program name with args.
6122 set dummy pkg-config; ac_word=$2
6123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6125 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128 case $PKG_CONFIG in
6129 [\\/]* | ?:[\\/]*)
6130 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6140 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 break 2
6144 done
6145 done
6146 IFS=$as_save_IFS
6148 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6150 esac
6152 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6153 if test -n "$PKG_CONFIG"; then
6154 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6155 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6156 else
6157 { echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6; }
6163 if test "$PKG_CONFIG" = "no" ; then
6164 HAVE_ALSA=no
6165 else
6166 PKG_CONFIG_MIN_VERSION=0.9.0
6167 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6168 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6169 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6171 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6172 { echo "$as_me:$LINENO: result: yes" >&5
6173 echo "${ECHO_T}yes" >&6; }
6174 succeeded=yes
6176 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6177 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6178 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6179 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6180 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6182 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6183 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6184 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6185 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6186 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6187 else
6188 { echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6; }
6190 ALSA_CFLAGS=""
6191 ALSA_LIBS=""
6192 ## If we have a custom action on failure, don't print errors, but
6193 ## do set a variable so people can do so.
6194 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6200 else
6201 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6202 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6206 if test $succeeded = yes; then
6207 HAVE_ALSA=yes
6208 else
6209 HAVE_ALSA=no
6212 if test $HAVE_ALSA = yes; then
6213 SAVE_CFLAGS="$CFLAGS"
6214 SAVE_LDFLAGS="$LDFLAGS"
6215 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6216 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6217 cat >conftest.$ac_ext <<_ACEOF
6218 /* confdefs.h. */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 #include <asoundlib.h>
6225 main ()
6227 snd_lib_error_set_handler (0);
6229 return 0;
6231 _ACEOF
6232 rm -f conftest.$ac_objext
6233 if { (ac_try="$ac_compile"
6234 case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237 esac
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_compile") 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } && {
6246 test -z "$ac_c_werror_flag" ||
6247 test ! -s conftest.err
6248 } && test -s conftest.$ac_objext; then
6249 emacs_alsa_normal=yes
6250 else
6251 echo "$as_me: failed program was:" >&5
6252 sed 's/^/| /' conftest.$ac_ext >&5
6254 emacs_alsa_normal=no
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 if test "$emacs_alsa_normal" != yes; then
6259 cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h. */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 #include <alsa/asoundlib.h>
6267 main ()
6269 snd_lib_error_set_handler (0);
6271 return 0;
6273 _ACEOF
6274 rm -f conftest.$ac_objext
6275 if { (ac_try="$ac_compile"
6276 case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6279 esac
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_compile") 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } && {
6288 test -z "$ac_c_werror_flag" ||
6289 test ! -s conftest.err
6290 } && test -s conftest.$ac_objext; then
6291 emacs_alsa_subdir=yes
6292 else
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6296 emacs_alsa_subdir=no
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 if test "$emacs_alsa_subdir" != yes; then
6301 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6302 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6303 { (exit 1); exit 1; }; }
6305 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6308 CFLAGS="$SAVE_CFLAGS"
6309 LDFLAGS="$SAVE_LDFLAGS"
6310 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6311 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6313 cat >>confdefs.h <<\_ACEOF
6314 #define HAVE_ALSA 1
6315 _ACEOF
6346 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6347 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6348 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6349 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6350 sys/utsname.h pwd.h
6352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 ac_res=`eval echo '${'$as_ac_Header'}'`
6360 { echo "$as_me:$LINENO: result: $ac_res" >&5
6361 echo "${ECHO_T}$ac_res" >&6; }
6362 else
6363 # Is the header compilable?
6364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6366 cat >conftest.$ac_ext <<_ACEOF
6367 /* confdefs.h. */
6368 _ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 $ac_includes_default
6373 #include <$ac_header>
6374 _ACEOF
6375 rm -f conftest.$ac_objext
6376 if { (ac_try="$ac_compile"
6377 case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380 esac
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_compile") 2>conftest.er1
6383 ac_status=$?
6384 grep -v '^ *+' conftest.er1 >conftest.err
6385 rm -f conftest.er1
6386 cat conftest.err >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } && {
6389 test -z "$ac_c_werror_flag" ||
6390 test ! -s conftest.err
6391 } && test -s conftest.$ac_objext; then
6392 ac_header_compiler=yes
6393 else
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 ac_header_compiler=no
6400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6402 echo "${ECHO_T}$ac_header_compiler" >&6; }
6404 # Is the header present?
6405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 #include <$ac_header>
6414 _ACEOF
6415 if { (ac_try="$ac_cpp conftest.$ac_ext"
6416 case "(($ac_try" in
6417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6418 *) ac_try_echo=$ac_try;;
6419 esac
6420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6422 ac_status=$?
6423 grep -v '^ *+' conftest.er1 >conftest.err
6424 rm -f conftest.er1
6425 cat conftest.err >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } >/dev/null && {
6428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6429 test ! -s conftest.err
6430 }; then
6431 ac_header_preproc=yes
6432 else
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6436 ac_header_preproc=no
6439 rm -f conftest.err conftest.$ac_ext
6440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6441 echo "${ECHO_T}$ac_header_preproc" >&6; }
6443 # So? What about this header?
6444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6445 yes:no: )
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6450 ac_header_preproc=yes
6452 no:yes:* )
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6467 esac
6468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473 eval "$as_ac_Header=\$ac_header_preproc"
6475 ac_res=`eval echo '${'$as_ac_Header'}'`
6476 { echo "$as_me:$LINENO: result: $ac_res" >&5
6477 echo "${ECHO_T}$ac_res" >&6; }
6480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6481 cat >>confdefs.h <<_ACEOF
6482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6483 _ACEOF
6487 done
6490 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6491 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h. */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6498 #include <sys/personality.h>
6500 main ()
6502 personality (PER_LINUX32)
6504 return 0;
6506 _ACEOF
6507 rm -f conftest.$ac_objext
6508 if { (ac_try="$ac_compile"
6509 case "(($ac_try" in
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6512 esac
6513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6514 (eval "$ac_compile") 2>conftest.er1
6515 ac_status=$?
6516 grep -v '^ *+' conftest.er1 >conftest.err
6517 rm -f conftest.er1
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } && {
6521 test -z "$ac_c_werror_flag" ||
6522 test ! -s conftest.err
6523 } && test -s conftest.$ac_objext; then
6524 emacs_cv_personality_linux32=yes
6525 else
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6529 emacs_cv_personality_linux32=no
6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6534 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6536 if test $emacs_cv_personality_linux32 = yes; then
6538 cat >>confdefs.h <<\_ACEOF
6539 #define HAVE_PERSONALITY_LINUX32 1
6540 _ACEOF
6545 for ac_header in term.h
6547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 else
6553 cat >conftest.$ac_ext <<_ACEOF
6554 /* confdefs.h. */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6559 #include <$ac_header>
6560 _ACEOF
6561 if { (ac_try="$ac_cpp conftest.$ac_ext"
6562 case "(($ac_try" in
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6565 esac
6566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6568 ac_status=$?
6569 grep -v '^ *+' conftest.er1 >conftest.err
6570 rm -f conftest.er1
6571 cat conftest.err >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } >/dev/null && {
6574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6575 test ! -s conftest.err
6576 }; then
6577 eval "$as_ac_Header=yes"
6578 else
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6582 eval "$as_ac_Header=no"
6585 rm -f conftest.err conftest.$ac_ext
6587 ac_res=`eval echo '${'$as_ac_Header'}'`
6588 { echo "$as_me:$LINENO: result: $ac_res" >&5
6589 echo "${ECHO_T}$ac_res" >&6; }
6590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6591 cat >>confdefs.h <<_ACEOF
6592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6593 _ACEOF
6597 done
6599 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6600 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6601 if test "${ac_cv_header_stdc+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 #include <stdlib.h>
6611 #include <stdarg.h>
6612 #include <string.h>
6613 #include <float.h>
6616 main ()
6620 return 0;
6622 _ACEOF
6623 rm -f conftest.$ac_objext
6624 if { (ac_try="$ac_compile"
6625 case "(($ac_try" in
6626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6628 esac
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630 (eval "$ac_compile") 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && {
6637 test -z "$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6639 } && test -s conftest.$ac_objext; then
6640 ac_cv_header_stdc=yes
6641 else
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6645 ac_cv_header_stdc=no
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650 if test $ac_cv_header_stdc = yes; then
6651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6652 cat >conftest.$ac_ext <<_ACEOF
6653 /* confdefs.h. */
6654 _ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6658 #include <string.h>
6660 _ACEOF
6661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6662 $EGREP "memchr" >/dev/null 2>&1; then
6664 else
6665 ac_cv_header_stdc=no
6667 rm -f conftest*
6671 if test $ac_cv_header_stdc = yes; then
6672 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6673 cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h. */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 #include <stdlib.h>
6681 _ACEOF
6682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6683 $EGREP "free" >/dev/null 2>&1; then
6685 else
6686 ac_cv_header_stdc=no
6688 rm -f conftest*
6692 if test $ac_cv_header_stdc = yes; then
6693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6694 if test "$cross_compiling" = yes; then
6696 else
6697 cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h. */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 #include <ctype.h>
6704 #include <stdlib.h>
6705 #if ((' ' & 0x0FF) == 0x020)
6706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6708 #else
6709 # define ISLOWER(c) \
6710 (('a' <= (c) && (c) <= 'i') \
6711 || ('j' <= (c) && (c) <= 'r') \
6712 || ('s' <= (c) && (c) <= 'z'))
6713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6714 #endif
6716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6718 main ()
6720 int i;
6721 for (i = 0; i < 256; i++)
6722 if (XOR (islower (i), ISLOWER (i))
6723 || toupper (i) != TOUPPER (i))
6724 return 2;
6725 return 0;
6727 _ACEOF
6728 rm -f conftest$ac_exeext
6729 if { (ac_try="$ac_link"
6730 case "(($ac_try" in
6731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732 *) ac_try_echo=$ac_try;;
6733 esac
6734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6735 (eval "$ac_link") 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6739 { (case "(($ac_try" in
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6742 esac
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_try") 2>&5
6745 ac_status=$?
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; }; then
6749 else
6750 echo "$as_me: program exited with status $ac_status" >&5
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6754 ( exit $ac_status )
6755 ac_cv_header_stdc=no
6757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6763 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6764 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6765 if test $ac_cv_header_stdc = yes; then
6767 cat >>confdefs.h <<\_ACEOF
6768 #define STDC_HEADERS 1
6769 _ACEOF
6773 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6774 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6775 if test "${ac_cv_header_time+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778 cat >conftest.$ac_ext <<_ACEOF
6779 /* confdefs.h. */
6780 _ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6784 #include <sys/types.h>
6785 #include <sys/time.h>
6786 #include <time.h>
6789 main ()
6791 if ((struct tm *) 0)
6792 return 0;
6794 return 0;
6796 _ACEOF
6797 rm -f conftest.$ac_objext
6798 if { (ac_try="$ac_compile"
6799 case "(($ac_try" in
6800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6801 *) ac_try_echo=$ac_try;;
6802 esac
6803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6804 (eval "$ac_compile") 2>conftest.er1
6805 ac_status=$?
6806 grep -v '^ *+' conftest.er1 >conftest.err
6807 rm -f conftest.er1
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } && {
6811 test -z "$ac_c_werror_flag" ||
6812 test ! -s conftest.err
6813 } && test -s conftest.$ac_objext; then
6814 ac_cv_header_time=yes
6815 else
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6819 ac_cv_header_time=no
6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6825 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6826 if test $ac_cv_header_time = yes; then
6828 cat >>confdefs.h <<\_ACEOF
6829 #define TIME_WITH_SYS_TIME 1
6830 _ACEOF
6834 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6835 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6836 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 else
6839 cat >conftest.$ac_ext <<_ACEOF
6840 /* confdefs.h. */
6841 _ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 $ac_includes_default
6847 main ()
6849 #ifndef sys_siglist
6850 (void) sys_siglist;
6851 #endif
6854 return 0;
6856 _ACEOF
6857 rm -f conftest.$ac_objext
6858 if { (ac_try="$ac_compile"
6859 case "(($ac_try" in
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6862 esac
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864 (eval "$ac_compile") 2>conftest.er1
6865 ac_status=$?
6866 grep -v '^ *+' conftest.er1 >conftest.err
6867 rm -f conftest.er1
6868 cat conftest.err >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } && {
6871 test -z "$ac_c_werror_flag" ||
6872 test ! -s conftest.err
6873 } && test -s conftest.$ac_objext; then
6874 ac_cv_have_decl_sys_siglist=yes
6875 else
6876 echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6879 ac_cv_have_decl_sys_siglist=no
6882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6885 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6886 if test $ac_cv_have_decl_sys_siglist = yes; then
6888 cat >>confdefs.h <<_ACEOF
6889 #define HAVE_DECL_SYS_SIGLIST 1
6890 _ACEOF
6893 else
6894 cat >>confdefs.h <<_ACEOF
6895 #define HAVE_DECL_SYS_SIGLIST 0
6896 _ACEOF
6902 if test $ac_cv_have_decl_sys_siglist != yes; then
6903 # For Tru64, at least:
6904 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6905 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6906 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909 cat >conftest.$ac_ext <<_ACEOF
6910 /* confdefs.h. */
6911 _ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h. */
6915 $ac_includes_default
6917 main ()
6919 #ifndef __sys_siglist
6920 (void) __sys_siglist;
6921 #endif
6924 return 0;
6926 _ACEOF
6927 rm -f conftest.$ac_objext
6928 if { (ac_try="$ac_compile"
6929 case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6932 esac
6933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_compile") 2>conftest.er1
6935 ac_status=$?
6936 grep -v '^ *+' conftest.er1 >conftest.err
6937 rm -f conftest.er1
6938 cat conftest.err >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } && {
6941 test -z "$ac_c_werror_flag" ||
6942 test ! -s conftest.err
6943 } && test -s conftest.$ac_objext; then
6944 ac_cv_have_decl___sys_siglist=yes
6945 else
6946 echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6949 ac_cv_have_decl___sys_siglist=no
6952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6954 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6955 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6956 if test $ac_cv_have_decl___sys_siglist = yes; then
6958 cat >>confdefs.h <<_ACEOF
6959 #define HAVE_DECL___SYS_SIGLIST 1
6960 _ACEOF
6963 else
6964 cat >>confdefs.h <<_ACEOF
6965 #define HAVE_DECL___SYS_SIGLIST 0
6966 _ACEOF
6972 if test $ac_cv_have_decl___sys_siglist = yes; then
6974 cat >>confdefs.h <<\_ACEOF
6975 #define sys_siglist __sys_siglist
6976 _ACEOF
6980 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6981 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6982 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h. */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6991 #include <sys/types.h>
6992 #include <sys/wait.h>
6993 #ifndef WEXITSTATUS
6994 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6995 #endif
6996 #ifndef WIFEXITED
6997 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6998 #endif
7001 main ()
7003 int s;
7004 wait (&s);
7005 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7007 return 0;
7009 _ACEOF
7010 rm -f conftest.$ac_objext
7011 if { (ac_try="$ac_compile"
7012 case "(($ac_try" in
7013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7015 esac
7016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017 (eval "$ac_compile") 2>conftest.er1
7018 ac_status=$?
7019 grep -v '^ *+' conftest.er1 >conftest.err
7020 rm -f conftest.er1
7021 cat conftest.err >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } && {
7024 test -z "$ac_c_werror_flag" ||
7025 test ! -s conftest.err
7026 } && test -s conftest.$ac_objext; then
7027 ac_cv_header_sys_wait_h=yes
7028 else
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7032 ac_cv_header_sys_wait_h=no
7035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7038 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7039 if test $ac_cv_header_sys_wait_h = yes; then
7041 cat >>confdefs.h <<\_ACEOF
7042 #define HAVE_SYS_WAIT_H 1
7043 _ACEOF
7048 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7049 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7050 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053 cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h. */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 #ifdef TIME_WITH_SYS_TIME
7060 #include <sys/time.h>
7061 #include <time.h>
7062 #else
7063 #ifdef HAVE_SYS_TIME_H
7064 #include <sys/time.h>
7065 #else
7066 #include <time.h>
7067 #endif
7068 #endif
7069 #ifdef HAVE_UTIME_H
7070 #include <utime.h>
7071 #endif
7073 main ()
7075 static struct utimbuf x; x.actime = x.modtime;
7077 return 0;
7079 _ACEOF
7080 rm -f conftest.$ac_objext
7081 if { (ac_try="$ac_compile"
7082 case "(($ac_try" in
7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084 *) ac_try_echo=$ac_try;;
7085 esac
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087 (eval "$ac_compile") 2>conftest.er1
7088 ac_status=$?
7089 grep -v '^ *+' conftest.er1 >conftest.err
7090 rm -f conftest.er1
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && {
7094 test -z "$ac_c_werror_flag" ||
7095 test ! -s conftest.err
7096 } && test -s conftest.$ac_objext; then
7097 emacs_cv_struct_utimbuf=yes
7098 else
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7102 emacs_cv_struct_utimbuf=no
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7108 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7109 if test $emacs_cv_struct_utimbuf = yes; then
7111 cat >>confdefs.h <<\_ACEOF
7112 #define HAVE_STRUCT_UTIMBUF 1
7113 _ACEOF
7117 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7118 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7119 if test "${ac_cv_type_signal+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7122 cat >conftest.$ac_ext <<_ACEOF
7123 /* confdefs.h. */
7124 _ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 #include <sys/types.h>
7129 #include <signal.h>
7132 main ()
7134 return *(signal (0, 0)) (0) == 1;
7136 return 0;
7138 _ACEOF
7139 rm -f conftest.$ac_objext
7140 if { (ac_try="$ac_compile"
7141 case "(($ac_try" in
7142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7143 *) ac_try_echo=$ac_try;;
7144 esac
7145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7146 (eval "$ac_compile") 2>conftest.er1
7147 ac_status=$?
7148 grep -v '^ *+' conftest.er1 >conftest.err
7149 rm -f conftest.er1
7150 cat conftest.err >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } && {
7153 test -z "$ac_c_werror_flag" ||
7154 test ! -s conftest.err
7155 } && test -s conftest.$ac_objext; then
7156 ac_cv_type_signal=int
7157 else
7158 echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7161 ac_cv_type_signal=void
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7167 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7169 cat >>confdefs.h <<_ACEOF
7170 #define RETSIGTYPE $ac_cv_type_signal
7171 _ACEOF
7175 { echo "$as_me:$LINENO: checking for speed_t" >&5
7176 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7177 if test "${emacs_cv_speed_t+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180 cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h. */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 #include <termios.h>
7188 main ()
7190 speed_t x = 1;
7192 return 0;
7194 _ACEOF
7195 rm -f conftest.$ac_objext
7196 if { (ac_try="$ac_compile"
7197 case "(($ac_try" in
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7200 esac
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_compile") 2>conftest.er1
7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } && {
7209 test -z "$ac_c_werror_flag" ||
7210 test ! -s conftest.err
7211 } && test -s conftest.$ac_objext; then
7212 emacs_cv_speed_t=yes
7213 else
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7217 emacs_cv_speed_t=no
7220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7223 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7224 if test $emacs_cv_speed_t = yes; then
7226 cat >>confdefs.h <<\_ACEOF
7227 #define HAVE_SPEED_T 1
7228 _ACEOF
7232 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7233 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7234 if test "${emacs_cv_struct_timeval+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h. */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 #ifdef TIME_WITH_SYS_TIME
7244 #include <sys/time.h>
7245 #include <time.h>
7246 #else
7247 #ifdef HAVE_SYS_TIME_H
7248 #include <sys/time.h>
7249 #else
7250 #include <time.h>
7251 #endif
7252 #endif
7254 main ()
7256 static struct timeval x; x.tv_sec = x.tv_usec;
7258 return 0;
7260 _ACEOF
7261 rm -f conftest.$ac_objext
7262 if { (ac_try="$ac_compile"
7263 case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7266 esac
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compile") 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest.$ac_objext; then
7278 emacs_cv_struct_timeval=yes
7279 else
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7283 emacs_cv_struct_timeval=no
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7289 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7290 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7291 if test $emacs_cv_struct_timeval = yes; then
7293 cat >>confdefs.h <<\_ACEOF
7294 #define HAVE_TIMEVAL 1
7295 _ACEOF
7299 { echo "$as_me:$LINENO: checking for struct exception" >&5
7300 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7301 if test "${emacs_cv_struct_exception+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304 cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h. */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 #include <math.h>
7312 main ()
7314 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7316 return 0;
7318 _ACEOF
7319 rm -f conftest.$ac_objext
7320 if { (ac_try="$ac_compile"
7321 case "(($ac_try" in
7322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7323 *) ac_try_echo=$ac_try;;
7324 esac
7325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7326 (eval "$ac_compile") 2>conftest.er1
7327 ac_status=$?
7328 grep -v '^ *+' conftest.er1 >conftest.err
7329 rm -f conftest.er1
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } && {
7333 test -z "$ac_c_werror_flag" ||
7334 test ! -s conftest.err
7335 } && test -s conftest.$ac_objext; then
7336 emacs_cv_struct_exception=yes
7337 else
7338 echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.$ac_ext >&5
7341 emacs_cv_struct_exception=no
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7346 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7347 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7348 HAVE_EXCEPTION=$emacs_cv_struct_exception
7349 if test $emacs_cv_struct_exception != yes; then
7351 cat >>confdefs.h <<\_ACEOF
7352 #define NO_MATHERR 1
7353 _ACEOF
7358 for ac_header in sys/socket.h
7360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 ac_res=`eval echo '${'$as_ac_Header'}'`
7368 { echo "$as_me:$LINENO: result: $ac_res" >&5
7369 echo "${ECHO_T}$ac_res" >&6; }
7370 else
7371 # Is the header compilable?
7372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7374 cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h. */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 $ac_includes_default
7381 #include <$ac_header>
7382 _ACEOF
7383 rm -f conftest.$ac_objext
7384 if { (ac_try="$ac_compile"
7385 case "(($ac_try" in
7386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7388 esac
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_compile") 2>conftest.er1
7391 ac_status=$?
7392 grep -v '^ *+' conftest.er1 >conftest.err
7393 rm -f conftest.er1
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && {
7397 test -z "$ac_c_werror_flag" ||
7398 test ! -s conftest.err
7399 } && test -s conftest.$ac_objext; then
7400 ac_header_compiler=yes
7401 else
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 ac_header_compiler=no
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7410 echo "${ECHO_T}$ac_header_compiler" >&6; }
7412 # Is the header present?
7413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7415 cat >conftest.$ac_ext <<_ACEOF
7416 /* confdefs.h. */
7417 _ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h. */
7421 #include <$ac_header>
7422 _ACEOF
7423 if { (ac_try="$ac_cpp conftest.$ac_ext"
7424 case "(($ac_try" in
7425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7426 *) ac_try_echo=$ac_try;;
7427 esac
7428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7430 ac_status=$?
7431 grep -v '^ *+' conftest.er1 >conftest.err
7432 rm -f conftest.er1
7433 cat conftest.err >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); } >/dev/null && {
7436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7437 test ! -s conftest.err
7438 }; then
7439 ac_header_preproc=yes
7440 else
7441 echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7444 ac_header_preproc=no
7447 rm -f conftest.err conftest.$ac_ext
7448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7449 echo "${ECHO_T}$ac_header_preproc" >&6; }
7451 # So? What about this header?
7452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7453 yes:no: )
7454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7458 ac_header_preproc=yes
7460 no:yes:* )
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7475 esac
7476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481 eval "$as_ac_Header=\$ac_header_preproc"
7483 ac_res=`eval echo '${'$as_ac_Header'}'`
7484 { echo "$as_me:$LINENO: result: $ac_res" >&5
7485 echo "${ECHO_T}$ac_res" >&6; }
7488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7489 cat >>confdefs.h <<_ACEOF
7490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7491 _ACEOF
7495 done
7498 for ac_header in net/if.h
7500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506 cat >conftest.$ac_ext <<_ACEOF
7507 /* confdefs.h. */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7512 $ac_includes_default
7513 #if HAVE_SYS_SOCKET_H
7514 #include <sys/socket.h>
7515 #endif
7517 #include <$ac_header>
7518 _ACEOF
7519 rm -f conftest.$ac_objext
7520 if { (ac_try="$ac_compile"
7521 case "(($ac_try" in
7522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523 *) ac_try_echo=$ac_try;;
7524 esac
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526 (eval "$ac_compile") 2>conftest.er1
7527 ac_status=$?
7528 grep -v '^ *+' conftest.er1 >conftest.err
7529 rm -f conftest.er1
7530 cat conftest.err >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && {
7533 test -z "$ac_c_werror_flag" ||
7534 test ! -s conftest.err
7535 } && test -s conftest.$ac_objext; then
7536 eval "$as_ac_Header=yes"
7537 else
7538 echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7541 eval "$as_ac_Header=no"
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7546 ac_res=`eval echo '${'$as_ac_Header'}'`
7547 { echo "$as_me:$LINENO: result: $ac_res" >&5
7548 echo "${ECHO_T}$ac_res" >&6; }
7549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7550 cat >>confdefs.h <<_ACEOF
7551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7552 _ACEOF
7556 done
7559 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7560 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7561 if test "${ac_cv_struct_tm+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564 cat >conftest.$ac_ext <<_ACEOF
7565 /* confdefs.h. */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 #include <sys/types.h>
7571 #include <time.h>
7574 main ()
7576 struct tm tm;
7577 int *p = &tm.tm_sec;
7578 return !p;
7580 return 0;
7582 _ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (ac_try="$ac_compile"
7585 case "(($ac_try" in
7586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7588 esac
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_compile") 2>conftest.er1
7591 ac_status=$?
7592 grep -v '^ *+' conftest.er1 >conftest.err
7593 rm -f conftest.er1
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && {
7597 test -z "$ac_c_werror_flag" ||
7598 test ! -s conftest.err
7599 } && test -s conftest.$ac_objext; then
7600 ac_cv_struct_tm=time.h
7601 else
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7605 ac_cv_struct_tm=sys/time.h
7608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7611 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7612 if test $ac_cv_struct_tm = sys/time.h; then
7614 cat >>confdefs.h <<\_ACEOF
7615 #define TM_IN_SYS_TIME 1
7616 _ACEOF
7620 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7621 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7622 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625 cat >conftest.$ac_ext <<_ACEOF
7626 /* confdefs.h. */
7627 _ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 #include <sys/types.h>
7632 #include <$ac_cv_struct_tm>
7636 main ()
7638 static struct tm ac_aggr;
7639 if (ac_aggr.tm_zone)
7640 return 0;
7642 return 0;
7644 _ACEOF
7645 rm -f conftest.$ac_objext
7646 if { (ac_try="$ac_compile"
7647 case "(($ac_try" in
7648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7649 *) ac_try_echo=$ac_try;;
7650 esac
7651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7652 (eval "$ac_compile") 2>conftest.er1
7653 ac_status=$?
7654 grep -v '^ *+' conftest.er1 >conftest.err
7655 rm -f conftest.er1
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } && {
7659 test -z "$ac_c_werror_flag" ||
7660 test ! -s conftest.err
7661 } && test -s conftest.$ac_objext; then
7662 ac_cv_member_struct_tm_tm_zone=yes
7663 else
7664 echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.$ac_ext >&5
7667 cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h. */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 #include <sys/types.h>
7674 #include <$ac_cv_struct_tm>
7678 main ()
7680 static struct tm ac_aggr;
7681 if (sizeof ac_aggr.tm_zone)
7682 return 0;
7684 return 0;
7686 _ACEOF
7687 rm -f conftest.$ac_objext
7688 if { (ac_try="$ac_compile"
7689 case "(($ac_try" in
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7692 esac
7693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7694 (eval "$ac_compile") 2>conftest.er1
7695 ac_status=$?
7696 grep -v '^ *+' conftest.er1 >conftest.err
7697 rm -f conftest.er1
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } && {
7701 test -z "$ac_c_werror_flag" ||
7702 test ! -s conftest.err
7703 } && test -s conftest.$ac_objext; then
7704 ac_cv_member_struct_tm_tm_zone=yes
7705 else
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7709 ac_cv_member_struct_tm_tm_zone=no
7712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7718 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7719 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7721 cat >>confdefs.h <<_ACEOF
7722 #define HAVE_STRUCT_TM_TM_ZONE 1
7723 _ACEOF
7728 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7730 cat >>confdefs.h <<\_ACEOF
7731 #define HAVE_TM_ZONE 1
7732 _ACEOF
7734 else
7735 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7736 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7737 if test "${ac_cv_have_decl_tzname+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740 cat >conftest.$ac_ext <<_ACEOF
7741 /* confdefs.h. */
7742 _ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7746 #include <time.h>
7749 main ()
7751 #ifndef tzname
7752 (void) tzname;
7753 #endif
7756 return 0;
7758 _ACEOF
7759 rm -f conftest.$ac_objext
7760 if { (ac_try="$ac_compile"
7761 case "(($ac_try" in
7762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7763 *) ac_try_echo=$ac_try;;
7764 esac
7765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7766 (eval "$ac_compile") 2>conftest.er1
7767 ac_status=$?
7768 grep -v '^ *+' conftest.er1 >conftest.err
7769 rm -f conftest.er1
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && {
7773 test -z "$ac_c_werror_flag" ||
7774 test ! -s conftest.err
7775 } && test -s conftest.$ac_objext; then
7776 ac_cv_have_decl_tzname=yes
7777 else
7778 echo "$as_me: failed program was:" >&5
7779 sed 's/^/| /' conftest.$ac_ext >&5
7781 ac_cv_have_decl_tzname=no
7784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7787 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7788 if test $ac_cv_have_decl_tzname = yes; then
7790 cat >>confdefs.h <<_ACEOF
7791 #define HAVE_DECL_TZNAME 1
7792 _ACEOF
7795 else
7796 cat >>confdefs.h <<_ACEOF
7797 #define HAVE_DECL_TZNAME 0
7798 _ACEOF
7804 { echo "$as_me:$LINENO: checking for tzname" >&5
7805 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7806 if test "${ac_cv_var_tzname+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809 cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h. */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7815 #include <time.h>
7816 #if !HAVE_DECL_TZNAME
7817 extern char *tzname[];
7818 #endif
7821 main ()
7823 return tzname[0][0];
7825 return 0;
7827 _ACEOF
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (ac_try="$ac_link"
7830 case "(($ac_try" in
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7833 esac
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_link") 2>conftest.er1
7836 ac_status=$?
7837 grep -v '^ *+' conftest.er1 >conftest.err
7838 rm -f conftest.er1
7839 cat conftest.err >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } && {
7842 test -z "$ac_c_werror_flag" ||
7843 test ! -s conftest.err
7844 } && test -s conftest$ac_exeext &&
7845 $as_test_x conftest$ac_exeext; then
7846 ac_cv_var_tzname=yes
7847 else
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 ac_cv_var_tzname=no
7854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7855 conftest$ac_exeext conftest.$ac_ext
7857 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7858 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7859 if test $ac_cv_var_tzname = yes; then
7861 cat >>confdefs.h <<\_ACEOF
7862 #define HAVE_TZNAME 1
7863 _ACEOF
7868 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7869 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7870 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873 cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h. */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7879 #include <time.h>
7882 main ()
7884 static struct tm ac_aggr;
7885 if (ac_aggr.tm_gmtoff)
7886 return 0;
7888 return 0;
7890 _ACEOF
7891 rm -f conftest.$ac_objext
7892 if { (ac_try="$ac_compile"
7893 case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896 esac
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_compile") 2>conftest.er1
7899 ac_status=$?
7900 grep -v '^ *+' conftest.er1 >conftest.err
7901 rm -f conftest.er1
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } && {
7905 test -z "$ac_c_werror_flag" ||
7906 test ! -s conftest.err
7907 } && test -s conftest.$ac_objext; then
7908 ac_cv_member_struct_tm_tm_gmtoff=yes
7909 else
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7913 cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h. */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7919 #include <time.h>
7922 main ()
7924 static struct tm ac_aggr;
7925 if (sizeof ac_aggr.tm_gmtoff)
7926 return 0;
7928 return 0;
7930 _ACEOF
7931 rm -f conftest.$ac_objext
7932 if { (ac_try="$ac_compile"
7933 case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936 esac
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
7948 ac_cv_member_struct_tm_tm_gmtoff=yes
7949 else
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 ac_cv_member_struct_tm_tm_gmtoff=no
7956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7962 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7963 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7965 cat >>confdefs.h <<\_ACEOF
7966 #define HAVE_TM_GMTOFF 1
7967 _ACEOF
7971 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7972 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7973 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976 cat >conftest.$ac_ext <<_ACEOF
7977 /* confdefs.h. */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 $ac_includes_default
7983 #if HAVE_SYS_SOCKET_H
7984 #include <sys/socket.h>
7985 #endif
7986 #if HAVE_NET_IF_H
7987 #include <net/if.h>
7988 #endif
7991 main ()
7993 static struct ifreq ac_aggr;
7994 if (ac_aggr.ifr_flags)
7995 return 0;
7997 return 0;
7999 _ACEOF
8000 rm -f conftest.$ac_objext
8001 if { (ac_try="$ac_compile"
8002 case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest.$ac_objext; then
8017 ac_cv_member_struct_ifreq_ifr_flags=yes
8018 else
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h. */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 $ac_includes_default
8029 #if HAVE_SYS_SOCKET_H
8030 #include <sys/socket.h>
8031 #endif
8032 #if HAVE_NET_IF_H
8033 #include <net/if.h>
8034 #endif
8037 main ()
8039 static struct ifreq ac_aggr;
8040 if (sizeof ac_aggr.ifr_flags)
8041 return 0;
8043 return 0;
8045 _ACEOF
8046 rm -f conftest.$ac_objext
8047 if { (ac_try="$ac_compile"
8048 case "(($ac_try" in
8049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8050 *) ac_try_echo=$ac_try;;
8051 esac
8052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8053 (eval "$ac_compile") 2>conftest.er1
8054 ac_status=$?
8055 grep -v '^ *+' conftest.er1 >conftest.err
8056 rm -f conftest.er1
8057 cat conftest.err >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); } && {
8060 test -z "$ac_c_werror_flag" ||
8061 test ! -s conftest.err
8062 } && test -s conftest.$ac_objext; then
8063 ac_cv_member_struct_ifreq_ifr_flags=yes
8064 else
8065 echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8068 ac_cv_member_struct_ifreq_ifr_flags=no
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8076 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8077 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8078 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8080 cat >>confdefs.h <<_ACEOF
8081 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8082 _ACEOF
8086 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8087 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8088 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091 cat >conftest.$ac_ext <<_ACEOF
8092 /* confdefs.h. */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8097 $ac_includes_default
8098 #if HAVE_SYS_SOCKET_H
8099 #include <sys/socket.h>
8100 #endif
8101 #if HAVE_NET_IF_H
8102 #include <net/if.h>
8103 #endif
8106 main ()
8108 static struct ifreq ac_aggr;
8109 if (ac_aggr.ifr_hwaddr)
8110 return 0;
8112 return 0;
8114 _ACEOF
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8117 case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120 esac
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8132 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8133 else
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h. */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8143 $ac_includes_default
8144 #if HAVE_SYS_SOCKET_H
8145 #include <sys/socket.h>
8146 #endif
8147 #if HAVE_NET_IF_H
8148 #include <net/if.h>
8149 #endif
8152 main ()
8154 static struct ifreq ac_aggr;
8155 if (sizeof ac_aggr.ifr_hwaddr)
8156 return 0;
8158 return 0;
8160 _ACEOF
8161 rm -f conftest.$ac_objext
8162 if { (ac_try="$ac_compile"
8163 case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8166 esac
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_compile") 2>conftest.er1
8169 ac_status=$?
8170 grep -v '^ *+' conftest.er1 >conftest.err
8171 rm -f conftest.er1
8172 cat conftest.err >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } && {
8175 test -z "$ac_c_werror_flag" ||
8176 test ! -s conftest.err
8177 } && test -s conftest.$ac_objext; then
8178 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8179 else
8180 echo "$as_me: failed program was:" >&5
8181 sed 's/^/| /' conftest.$ac_ext >&5
8183 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8192 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8193 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8195 cat >>confdefs.h <<_ACEOF
8196 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8197 _ACEOF
8201 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8202 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8203 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206 cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h. */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 $ac_includes_default
8213 #if HAVE_SYS_SOCKET_H
8214 #include <sys/socket.h>
8215 #endif
8216 #if HAVE_NET_IF_H
8217 #include <net/if.h>
8218 #endif
8221 main ()
8223 static struct ifreq ac_aggr;
8224 if (ac_aggr.ifr_netmask)
8225 return 0;
8227 return 0;
8229 _ACEOF
8230 rm -f conftest.$ac_objext
8231 if { (ac_try="$ac_compile"
8232 case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8235 esac
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_compile") 2>conftest.er1
8238 ac_status=$?
8239 grep -v '^ *+' conftest.er1 >conftest.err
8240 rm -f conftest.er1
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && {
8244 test -z "$ac_c_werror_flag" ||
8245 test ! -s conftest.err
8246 } && test -s conftest.$ac_objext; then
8247 ac_cv_member_struct_ifreq_ifr_netmask=yes
8248 else
8249 echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8252 cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h. */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8258 $ac_includes_default
8259 #if HAVE_SYS_SOCKET_H
8260 #include <sys/socket.h>
8261 #endif
8262 #if HAVE_NET_IF_H
8263 #include <net/if.h>
8264 #endif
8267 main ()
8269 static struct ifreq ac_aggr;
8270 if (sizeof ac_aggr.ifr_netmask)
8271 return 0;
8273 return 0;
8275 _ACEOF
8276 rm -f conftest.$ac_objext
8277 if { (ac_try="$ac_compile"
8278 case "(($ac_try" in
8279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8281 esac
8282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_compile") 2>conftest.er1
8284 ac_status=$?
8285 grep -v '^ *+' conftest.er1 >conftest.err
8286 rm -f conftest.er1
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } && {
8290 test -z "$ac_c_werror_flag" ||
8291 test ! -s conftest.err
8292 } && test -s conftest.$ac_objext; then
8293 ac_cv_member_struct_ifreq_ifr_netmask=yes
8294 else
8295 echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8298 ac_cv_member_struct_ifreq_ifr_netmask=no
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8307 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8308 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8310 cat >>confdefs.h <<_ACEOF
8311 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8312 _ACEOF
8316 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8317 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8318 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321 cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h. */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 $ac_includes_default
8328 #if HAVE_SYS_SOCKET_H
8329 #include <sys/socket.h>
8330 #endif
8331 #if HAVE_NET_IF_H
8332 #include <net/if.h>
8333 #endif
8336 main ()
8338 static struct ifreq ac_aggr;
8339 if (ac_aggr.ifr_broadaddr)
8340 return 0;
8342 return 0;
8344 _ACEOF
8345 rm -f conftest.$ac_objext
8346 if { (ac_try="$ac_compile"
8347 case "(($ac_try" in
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8350 esac
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_compile") 2>conftest.er1
8353 ac_status=$?
8354 grep -v '^ *+' conftest.er1 >conftest.err
8355 rm -f conftest.er1
8356 cat conftest.err >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } && {
8359 test -z "$ac_c_werror_flag" ||
8360 test ! -s conftest.err
8361 } && test -s conftest.$ac_objext; then
8362 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8363 else
8364 echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h. */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 $ac_includes_default
8374 #if HAVE_SYS_SOCKET_H
8375 #include <sys/socket.h>
8376 #endif
8377 #if HAVE_NET_IF_H
8378 #include <net/if.h>
8379 #endif
8382 main ()
8384 static struct ifreq ac_aggr;
8385 if (sizeof ac_aggr.ifr_broadaddr)
8386 return 0;
8388 return 0;
8390 _ACEOF
8391 rm -f conftest.$ac_objext
8392 if { (ac_try="$ac_compile"
8393 case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8396 esac
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_compile") 2>conftest.er1
8399 ac_status=$?
8400 grep -v '^ *+' conftest.er1 >conftest.err
8401 rm -f conftest.er1
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } && {
8405 test -z "$ac_c_werror_flag" ||
8406 test ! -s conftest.err
8407 } && test -s conftest.$ac_objext; then
8408 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8409 else
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8421 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8422 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8423 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8425 cat >>confdefs.h <<_ACEOF
8426 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8427 _ACEOF
8431 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8432 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8433 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 else
8436 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h. */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8443 #if HAVE_SYS_SOCKET_H
8444 #include <sys/socket.h>
8445 #endif
8446 #if HAVE_NET_IF_H
8447 #include <net/if.h>
8448 #endif
8451 main ()
8453 static struct ifreq ac_aggr;
8454 if (ac_aggr.ifr_addr)
8455 return 0;
8457 return 0;
8459 _ACEOF
8460 rm -f conftest.$ac_objext
8461 if { (ac_try="$ac_compile"
8462 case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8465 esac
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_compile") 2>conftest.er1
8468 ac_status=$?
8469 grep -v '^ *+' conftest.er1 >conftest.err
8470 rm -f conftest.er1
8471 cat conftest.err >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } && {
8474 test -z "$ac_c_werror_flag" ||
8475 test ! -s conftest.err
8476 } && test -s conftest.$ac_objext; then
8477 ac_cv_member_struct_ifreq_ifr_addr=yes
8478 else
8479 echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8482 cat >conftest.$ac_ext <<_ACEOF
8483 /* confdefs.h. */
8484 _ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8488 $ac_includes_default
8489 #if HAVE_SYS_SOCKET_H
8490 #include <sys/socket.h>
8491 #endif
8492 #if HAVE_NET_IF_H
8493 #include <net/if.h>
8494 #endif
8497 main ()
8499 static struct ifreq ac_aggr;
8500 if (sizeof ac_aggr.ifr_addr)
8501 return 0;
8503 return 0;
8505 _ACEOF
8506 rm -f conftest.$ac_objext
8507 if { (ac_try="$ac_compile"
8508 case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8511 esac
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_compile") 2>conftest.er1
8514 ac_status=$?
8515 grep -v '^ *+' conftest.er1 >conftest.err
8516 rm -f conftest.er1
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } && {
8520 test -z "$ac_c_werror_flag" ||
8521 test ! -s conftest.err
8522 } && test -s conftest.$ac_objext; then
8523 ac_cv_member_struct_ifreq_ifr_addr=yes
8524 else
8525 echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8528 ac_cv_member_struct_ifreq_ifr_addr=no
8531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8537 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8538 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8540 cat >>confdefs.h <<_ACEOF
8541 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8542 _ACEOF
8549 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8550 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8551 if test "$ac_cv_prog_cc_c89" != no; then
8552 { echo "$as_me:$LINENO: result: yes" >&5
8553 echo "${ECHO_T}yes" >&6; }
8555 cat >>confdefs.h <<\_ACEOF
8556 #define PROTOTYPES 1
8557 _ACEOF
8560 cat >>confdefs.h <<\_ACEOF
8561 #define __PROTOTYPES 1
8562 _ACEOF
8564 else
8565 { echo "$as_me:$LINENO: result: no" >&5
8566 echo "${ECHO_T}no" >&6; }
8569 { echo "$as_me:$LINENO: checking for working volatile" >&5
8570 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8571 if test "${ac_cv_c_volatile+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8574 cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h. */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8582 main ()
8585 volatile int x;
8586 int * volatile y = (int *) 0;
8587 return !x && !y;
8589 return 0;
8591 _ACEOF
8592 rm -f conftest.$ac_objext
8593 if { (ac_try="$ac_compile"
8594 case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8597 esac
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_compile") 2>conftest.er1
8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } && {
8606 test -z "$ac_c_werror_flag" ||
8607 test ! -s conftest.err
8608 } && test -s conftest.$ac_objext; then
8609 ac_cv_c_volatile=yes
8610 else
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8614 ac_cv_c_volatile=no
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8620 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8621 if test $ac_cv_c_volatile = no; then
8623 cat >>confdefs.h <<\_ACEOF
8624 #define volatile
8625 _ACEOF
8629 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8631 if test "${ac_cv_c_const+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h. */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8642 main ()
8644 /* FIXME: Include the comments suggested by Paul. */
8645 #ifndef __cplusplus
8646 /* Ultrix mips cc rejects this. */
8647 typedef int charset[2];
8648 const charset cs;
8649 /* SunOS 4.1.1 cc rejects this. */
8650 char const *const *pcpcc;
8651 char **ppc;
8652 /* NEC SVR4.0.2 mips cc rejects this. */
8653 struct point {int x, y;};
8654 static struct point const zero = {0,0};
8655 /* AIX XL C 1.02.0.0 rejects this.
8656 It does not let you subtract one const X* pointer from another in
8657 an arm of an if-expression whose if-part is not a constant
8658 expression */
8659 const char *g = "string";
8660 pcpcc = &g + (g ? g-g : 0);
8661 /* HPUX 7.0 cc rejects these. */
8662 ++pcpcc;
8663 ppc = (char**) pcpcc;
8664 pcpcc = (char const *const *) ppc;
8665 { /* SCO 3.2v4 cc rejects this. */
8666 char *t;
8667 char const *s = 0 ? (char *) 0 : (char const *) 0;
8669 *t++ = 0;
8670 if (s) return 0;
8672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8673 int x[] = {25, 17};
8674 const int *foo = &x[0];
8675 ++foo;
8677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8678 typedef const int *iptr;
8679 iptr p = 0;
8680 ++p;
8682 { /* AIX XL C 1.02.0.0 rejects this saying
8683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8684 struct s { int j; const int *ap[3]; };
8685 struct s *b; b->j = 5;
8687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8688 const int foo = 10;
8689 if (!foo) return 0;
8691 return !cs[0] && !zero.x;
8692 #endif
8695 return 0;
8697 _ACEOF
8698 rm -f conftest.$ac_objext
8699 if { (ac_try="$ac_compile"
8700 case "(($ac_try" in
8701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702 *) ac_try_echo=$ac_try;;
8703 esac
8704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8705 (eval "$ac_compile") 2>conftest.er1
8706 ac_status=$?
8707 grep -v '^ *+' conftest.er1 >conftest.err
8708 rm -f conftest.er1
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } && {
8712 test -z "$ac_c_werror_flag" ||
8713 test ! -s conftest.err
8714 } && test -s conftest.$ac_objext; then
8715 ac_cv_c_const=yes
8716 else
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8720 ac_cv_c_const=no
8723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8726 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8727 if test $ac_cv_c_const = no; then
8729 cat >>confdefs.h <<\_ACEOF
8730 #define const
8731 _ACEOF
8735 { echo "$as_me:$LINENO: checking for void * support" >&5
8736 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8737 if test "${emacs_cv_void_star+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 else
8740 cat >conftest.$ac_ext <<_ACEOF
8741 /* confdefs.h. */
8742 _ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8748 main ()
8750 void * foo;
8752 return 0;
8754 _ACEOF
8755 rm -f conftest.$ac_objext
8756 if { (ac_try="$ac_compile"
8757 case "(($ac_try" in
8758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8759 *) ac_try_echo=$ac_try;;
8760 esac
8761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8762 (eval "$ac_compile") 2>conftest.er1
8763 ac_status=$?
8764 grep -v '^ *+' conftest.er1 >conftest.err
8765 rm -f conftest.er1
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } && {
8769 test -z "$ac_c_werror_flag" ||
8770 test ! -s conftest.err
8771 } && test -s conftest.$ac_objext; then
8772 emacs_cv_void_star=yes
8773 else
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 emacs_cv_void_star=no
8780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8782 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8783 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8784 if test $emacs_cv_void_star = yes; then
8785 cat >>confdefs.h <<\_ACEOF
8786 #define POINTER_TYPE void
8787 _ACEOF
8789 else
8790 cat >>confdefs.h <<\_ACEOF
8791 #define POINTER_TYPE char
8792 _ACEOF
8800 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8801 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8802 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8803 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806 cat >conftest.make <<\_ACEOF
8807 SHELL = /bin/sh
8808 all:
8809 @echo '@@@%%%=$(MAKE)=@@@%%%'
8810 _ACEOF
8811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8812 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8813 *@@@%%%=?*=@@@%%%*)
8814 eval ac_cv_prog_make_${ac_make}_set=yes;;
8816 eval ac_cv_prog_make_${ac_make}_set=no;;
8817 esac
8818 rm -f conftest.make
8820 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8821 { echo "$as_me:$LINENO: result: yes" >&5
8822 echo "${ECHO_T}yes" >&6; }
8823 SET_MAKE=
8824 else
8825 { echo "$as_me:$LINENO: result: no" >&5
8826 echo "${ECHO_T}no" >&6; }
8827 SET_MAKE="MAKE=${MAKE-make}"
8831 { echo "$as_me:$LINENO: checking for long file names" >&5
8832 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8833 if test "${ac_cv_sys_long_file_names+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836 ac_cv_sys_long_file_names=yes
8837 # Test for long file names in all the places we know might matter:
8838 # . the current directory, where building will happen
8839 # $prefix/lib where we will be installing things
8840 # $exec_prefix/lib likewise
8841 # $TMPDIR if set, where it might want to write temporary files
8842 # /tmp where it might want to write temporary files
8843 # /var/tmp likewise
8844 # /usr/tmp likewise
8845 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8846 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8847 # in the usual case where exec_prefix is '${prefix}'.
8848 case $ac_dir in #(
8849 . | /* | ?:[\\/]*) ;; #(
8850 *) continue;;
8851 esac
8852 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8853 ac_xdir=$ac_dir/cf$$
8854 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8855 ac_tf1=$ac_xdir/conftest9012345
8856 ac_tf2=$ac_xdir/conftest9012346
8857 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8858 ac_cv_sys_long_file_names=no
8859 rm -f -r "$ac_xdir" 2>/dev/null
8860 test $ac_cv_sys_long_file_names = no && break
8861 done
8863 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8864 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8865 if test $ac_cv_sys_long_file_names = yes; then
8867 cat >>confdefs.h <<\_ACEOF
8868 #define HAVE_LONG_FILE_NAMES 1
8869 _ACEOF
8874 #### Choose a window system.
8876 { echo "$as_me:$LINENO: checking for X" >&5
8877 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8880 # Check whether --with-x was given.
8881 if test "${with_x+set}" = set; then
8882 withval=$with_x;
8885 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8886 if test "x$with_x" = xno; then
8887 # The user explicitly disabled X.
8888 have_x=disabled
8889 else
8890 case $x_includes,$x_libraries in #(
8891 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8892 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8893 { (exit 1); exit 1; }; };; #(
8894 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897 # One or both of the vars are not set, and there is no cached value.
8898 ac_x_includes=no ac_x_libraries=no
8899 rm -f -r conftest.dir
8900 if mkdir conftest.dir; then
8901 cd conftest.dir
8902 cat >Imakefile <<'_ACEOF'
8903 incroot:
8904 @echo incroot='${INCROOT}'
8905 usrlibdir:
8906 @echo usrlibdir='${USRLIBDIR}'
8907 libdir:
8908 @echo libdir='${LIBDIR}'
8909 _ACEOF
8910 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8911 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8912 for ac_var in incroot usrlibdir libdir; do
8913 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8914 done
8915 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8916 for ac_extension in a so sl; do
8917 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8918 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8919 ac_im_usrlibdir=$ac_im_libdir; break
8921 done
8922 # Screen out bogus values from the imake configuration. They are
8923 # bogus both because they are the default anyway, and because
8924 # using them would break gcc on systems where it needs fixed includes.
8925 case $ac_im_incroot in
8926 /usr/include) ac_x_includes= ;;
8927 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8928 esac
8929 case $ac_im_usrlibdir in
8930 /usr/lib | /lib) ;;
8931 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8932 esac
8934 cd ..
8935 rm -f -r conftest.dir
8938 # Standard set of common directories for X headers.
8939 # Check X11 before X11Rn because it is often a symlink to the current release.
8940 ac_x_header_dirs='
8941 /usr/X11/include
8942 /usr/X11R6/include
8943 /usr/X11R5/include
8944 /usr/X11R4/include
8946 /usr/include/X11
8947 /usr/include/X11R6
8948 /usr/include/X11R5
8949 /usr/include/X11R4
8951 /usr/local/X11/include
8952 /usr/local/X11R6/include
8953 /usr/local/X11R5/include
8954 /usr/local/X11R4/include
8956 /usr/local/include/X11
8957 /usr/local/include/X11R6
8958 /usr/local/include/X11R5
8959 /usr/local/include/X11R4
8961 /usr/X386/include
8962 /usr/x386/include
8963 /usr/XFree86/include/X11
8965 /usr/include
8966 /usr/local/include
8967 /usr/unsupported/include
8968 /usr/athena/include
8969 /usr/local/x11r5/include
8970 /usr/lpp/Xamples/include
8972 /usr/openwin/include
8973 /usr/openwin/share/include'
8975 if test "$ac_x_includes" = no; then
8976 # Guess where to find include files, by looking for Xlib.h.
8977 # First, try using that file with no special directory specified.
8978 cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h. */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8984 #include <X11/Xlib.h>
8985 _ACEOF
8986 if { (ac_try="$ac_cpp conftest.$ac_ext"
8987 case "(($ac_try" in
8988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989 *) ac_try_echo=$ac_try;;
8990 esac
8991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8993 ac_status=$?
8994 grep -v '^ *+' conftest.er1 >conftest.err
8995 rm -f conftest.er1
8996 cat conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } >/dev/null && {
8999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9000 test ! -s conftest.err
9001 }; then
9002 # We can compile using X headers with no special include directory.
9003 ac_x_includes=
9004 else
9005 echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9008 for ac_dir in $ac_x_header_dirs; do
9009 if test -r "$ac_dir/X11/Xlib.h"; then
9010 ac_x_includes=$ac_dir
9011 break
9013 done
9016 rm -f conftest.err conftest.$ac_ext
9017 fi # $ac_x_includes = no
9019 if test "$ac_x_libraries" = no; then
9020 # Check for the libraries.
9021 # See if we find them without any special options.
9022 # Don't add to $LIBS permanently.
9023 ac_save_LIBS=$LIBS
9024 LIBS="-lX11 $LIBS"
9025 cat >conftest.$ac_ext <<_ACEOF
9026 /* confdefs.h. */
9027 _ACEOF
9028 cat confdefs.h >>conftest.$ac_ext
9029 cat >>conftest.$ac_ext <<_ACEOF
9030 /* end confdefs.h. */
9031 #include <X11/Xlib.h>
9033 main ()
9035 XrmInitialize ()
9037 return 0;
9039 _ACEOF
9040 rm -f conftest.$ac_objext conftest$ac_exeext
9041 if { (ac_try="$ac_link"
9042 case "(($ac_try" in
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9045 esac
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_link") 2>conftest.er1
9048 ac_status=$?
9049 grep -v '^ *+' conftest.er1 >conftest.err
9050 rm -f conftest.er1
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } && {
9054 test -z "$ac_c_werror_flag" ||
9055 test ! -s conftest.err
9056 } && test -s conftest$ac_exeext &&
9057 $as_test_x conftest$ac_exeext; then
9058 LIBS=$ac_save_LIBS
9059 # We can link X programs with no special library path.
9060 ac_x_libraries=
9061 else
9062 echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9065 LIBS=$ac_save_LIBS
9066 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9068 # Don't even attempt the hair of trying to link an X program!
9069 for ac_extension in a so sl; do
9070 if test -r "$ac_dir/libX11.$ac_extension"; then
9071 ac_x_libraries=$ac_dir
9072 break 2
9074 done
9075 done
9078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9079 conftest$ac_exeext conftest.$ac_ext
9080 fi # $ac_x_libraries = no
9082 case $ac_x_includes,$ac_x_libraries in #(
9083 no,* | *,no | *\'*)
9084 # Didn't find X, or a directory has "'" in its name.
9085 ac_cv_have_x="have_x=no";; #(
9087 # Record where we found X for the cache.
9088 ac_cv_have_x="have_x=yes\
9089 ac_x_includes='$ac_x_includes'\
9090 ac_x_libraries='$ac_x_libraries'"
9091 esac
9093 ;; #(
9094 *) have_x=yes;;
9095 esac
9096 eval "$ac_cv_have_x"
9097 fi # $with_x != no
9099 if test "$have_x" != yes; then
9100 { echo "$as_me:$LINENO: result: $have_x" >&5
9101 echo "${ECHO_T}$have_x" >&6; }
9102 no_x=yes
9103 else
9104 # If each of the values was on the command line, it overrides each guess.
9105 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9106 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9107 # Update the cache value to reflect the command line values.
9108 ac_cv_have_x="have_x=yes\
9109 ac_x_includes='$x_includes'\
9110 ac_x_libraries='$x_libraries'"
9111 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9112 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9115 if test "$no_x" = yes; then
9116 window_system=none
9117 else
9118 window_system=x11
9121 ## Workaround for bug in autoconf <= 2.62.
9122 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9123 ## No need to do anything special for these standard directories.
9124 ## This is an experiment, take it out if it causes problems.
9125 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9127 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9131 if test "${x_libraries}" != NONE; then
9132 if test -n "${x_libraries}"; then
9133 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9134 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9136 x_default_search_path=""
9137 x_search_path=${x_libraries}
9138 if test -z "${x_search_path}"; then
9139 x_search_path=/usr/lib
9141 for x_library in `echo ${x_search_path}: | \
9142 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9143 x_search_path="\
9144 ${x_library}/X11/%L/%T/%N%C%S:\
9145 ${x_library}/X11/%l/%T/%N%C%S:\
9146 ${x_library}/X11/%T/%N%C%S:\
9147 ${x_library}/X11/%L/%T/%N%S:\
9148 ${x_library}/X11/%l/%T/%N%S:\
9149 ${x_library}/X11/%T/%N%S"
9150 if test x"${x_default_search_path}" = x; then
9151 x_default_search_path=${x_search_path}
9152 else
9153 x_default_search_path="${x_search_path}:${x_default_search_path}"
9155 done
9157 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9158 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9161 if test x"${x_includes}" = x; then
9162 bitmapdir=/usr/include/X11/bitmaps
9163 else
9164 # accumulate include directories that have X11 bitmap subdirectories
9165 bmd_acc="dummyval"
9166 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9167 if test -d "${bmd}/X11/bitmaps"; then
9168 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9170 if test -d "${bmd}/bitmaps"; then
9171 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9173 done
9174 if test ${bmd_acc} != "dummyval"; then
9175 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9179 HAVE_NS=no
9180 NS_IMPL_COCOA=no
9181 NS_IMPL_GNUSTEP=no
9182 tmp_CPPFLAGS="$CPPFLAGS"
9183 tmp_CFLAGS="$CFLAGS"
9184 CPPFLAGS="$CPPFLAGS -x objective-c"
9185 CFLAGS="$CFLAGS -x objective-c"
9186 if test "${with_ns}" != no; then
9187 if test "${opsys}" = darwin; then
9188 NS_IMPL_COCOA=yes
9189 ns_appdir=`pwd`/nextstep/Emacs.app
9190 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9191 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9192 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9193 elif test -f /etc/GNUstep/GNUstep.conf; then
9194 NS_IMPL_GNUSTEP=yes
9195 ns_appdir=`pwd`/nextstep/Emacs.app
9196 ns_appbindir=`pwd`/nextstep/Emacs.app
9197 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9198 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9199 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9200 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9201 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9202 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9203 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9204 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9205 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9207 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9208 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9209 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9210 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9214 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9215 else
9216 # Is the header compilable?
9217 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9218 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9219 cat >conftest.$ac_ext <<_ACEOF
9220 /* confdefs.h. */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225 $ac_includes_default
9226 #include <AppKit/AppKit.h>
9227 _ACEOF
9228 rm -f conftest.$ac_objext
9229 if { (ac_try="$ac_compile"
9230 case "(($ac_try" in
9231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232 *) ac_try_echo=$ac_try;;
9233 esac
9234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235 (eval "$ac_compile") 2>conftest.er1
9236 ac_status=$?
9237 grep -v '^ *+' conftest.er1 >conftest.err
9238 rm -f conftest.er1
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } && {
9242 test -z "$ac_c_werror_flag" ||
9243 test ! -s conftest.err
9244 } && test -s conftest.$ac_objext; then
9245 ac_header_compiler=yes
9246 else
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9250 ac_header_compiler=no
9253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9255 echo "${ECHO_T}$ac_header_compiler" >&6; }
9257 # Is the header present?
9258 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9259 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9260 cat >conftest.$ac_ext <<_ACEOF
9261 /* confdefs.h. */
9262 _ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9266 #include <AppKit/AppKit.h>
9267 _ACEOF
9268 if { (ac_try="$ac_cpp conftest.$ac_ext"
9269 case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9272 esac
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } >/dev/null && {
9281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9282 test ! -s conftest.err
9283 }; then
9284 ac_header_preproc=yes
9285 else
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9289 ac_header_preproc=no
9292 rm -f conftest.err conftest.$ac_ext
9293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9294 echo "${ECHO_T}$ac_header_preproc" >&6; }
9296 # So? What about this header?
9297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9298 yes:no: )
9299 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9300 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9302 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9303 ac_header_preproc=yes
9305 no:yes:* )
9306 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9307 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9308 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9309 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9311 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9313 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9315 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9317 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9320 esac
9321 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9322 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9323 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 else
9326 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9328 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9329 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9332 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9333 HAVE_NS=yes
9337 NS_HAVE_NSINTEGER=yes
9338 cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h. */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 #include <Foundation/NSObjCRuntime.h>
9346 main ()
9348 NSInteger i;
9350 return 0;
9352 _ACEOF
9353 rm -f conftest.$ac_objext
9354 if { (ac_try="$ac_compile"
9355 case "(($ac_try" in
9356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357 *) ac_try_echo=$ac_try;;
9358 esac
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_compile") 2>conftest.er1
9361 ac_status=$?
9362 grep -v '^ *+' conftest.er1 >conftest.err
9363 rm -f conftest.er1
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest.$ac_objext; then
9370 ns_have_nsinteger=yes
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 ns_have_nsinteger=no
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379 if test $ns_have_nsinteger = no; then
9380 NS_HAVE_NSINTEGER=no
9383 if test "${HAVE_NS}" = yes; then
9384 window_system=nextstep
9385 with_xft=no
9386 with_freetype=no
9387 # set up packaging dirs
9388 exec_prefix=${ns_appbindir}
9389 libexecdir=${ns_appbindir}/libexec
9390 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9391 prefix=${ns_appresdir}
9394 CFLAGS="$tmp_CFLAGS"
9395 CPPFLAGS="$tmp_CPPFLAGS"
9397 case "${window_system}" in
9398 x11 )
9399 HAVE_X_WINDOWS=yes
9400 HAVE_X11=yes
9401 case "${with_x_toolkit}" in
9402 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9403 motif ) USE_X_TOOLKIT=MOTIF ;;
9404 gtk ) with_gtk=yes
9405 USE_X_TOOLKIT=none ;;
9406 no ) USE_X_TOOLKIT=none ;;
9407 * ) USE_X_TOOLKIT=maybe ;;
9408 esac
9410 nextstep | none )
9411 HAVE_X_WINDOWS=no
9412 HAVE_X11=no
9413 USE_X_TOOLKIT=none
9415 esac
9417 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9418 # Extract the first word of "X", so it can be a program name with args.
9419 set dummy X; ac_word=$2
9420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9422 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 else
9425 if test -n "$HAVE_XSERVER"; then
9426 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9427 else
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 for as_dir in $PATH
9431 IFS=$as_save_IFS
9432 test -z "$as_dir" && as_dir=.
9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9435 ac_cv_prog_HAVE_XSERVER="true"
9436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 break 2
9439 done
9440 done
9441 IFS=$as_save_IFS
9443 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9446 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9447 if test -n "$HAVE_XSERVER"; then
9448 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9449 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9450 else
9451 { echo "$as_me:$LINENO: result: no" >&5
9452 echo "${ECHO_T}no" >&6; }
9456 if test "$HAVE_XSERVER" = true ||
9457 test -n "$DISPLAY" ||
9458 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9459 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9460 were found. You should install the relevant development files for X
9461 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9462 sure you have development files for image handling, i.e.
9463 tiff, gif, jpeg, png and xpm.
9464 If you are sure you want Emacs compiled without X window support, pass
9465 --without-x
9466 to configure." >&5
9467 echo "$as_me: error: You seem to be running X, but no X development libraries
9468 were found. You should install the relevant development files for X
9469 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9470 sure you have development files for image handling, i.e.
9471 tiff, gif, jpeg, png and xpm.
9472 If you are sure you want Emacs compiled without X window support, pass
9473 --without-x
9474 to configure." >&2;}
9475 { (exit 1); exit 1; }; }
9479 ### If we're using X11, we should use the X menu package.
9480 HAVE_MENUS=no
9481 case ${HAVE_X11} in
9482 yes ) HAVE_MENUS=yes ;;
9483 esac
9485 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9486 # Assume not, until told otherwise.
9487 GNU_MALLOC=yes
9488 doug_lea_malloc=yes
9489 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9490 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9491 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494 cat >conftest.$ac_ext <<_ACEOF
9495 /* confdefs.h. */
9496 _ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h. */
9500 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9502 #define malloc_get_state innocuous_malloc_get_state
9504 /* System header to define __stub macros and hopefully few prototypes,
9505 which can conflict with char malloc_get_state (); below.
9506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9507 <limits.h> exists even on freestanding compilers. */
9509 #ifdef __STDC__
9510 # include <limits.h>
9511 #else
9512 # include <assert.h>
9513 #endif
9515 #undef malloc_get_state
9517 /* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
9520 #ifdef __cplusplus
9521 extern "C"
9522 #endif
9523 char malloc_get_state ();
9524 /* The GNU C library defines this for functions which it implements
9525 to always fail with ENOSYS. Some functions are actually named
9526 something starting with __ and the normal name is an alias. */
9527 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9528 choke me
9529 #endif
9532 main ()
9534 return malloc_get_state ();
9536 return 0;
9538 _ACEOF
9539 rm -f conftest.$ac_objext conftest$ac_exeext
9540 if { (ac_try="$ac_link"
9541 case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9544 esac
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_link") 2>conftest.er1
9547 ac_status=$?
9548 grep -v '^ *+' conftest.er1 >conftest.err
9549 rm -f conftest.er1
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } && {
9553 test -z "$ac_c_werror_flag" ||
9554 test ! -s conftest.err
9555 } && test -s conftest$ac_exeext &&
9556 $as_test_x conftest$ac_exeext; then
9557 ac_cv_func_malloc_get_state=yes
9558 else
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 ac_cv_func_malloc_get_state=no
9565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9566 conftest$ac_exeext conftest.$ac_ext
9568 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9569 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9570 if test $ac_cv_func_malloc_get_state = yes; then
9572 else
9573 doug_lea_malloc=no
9576 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9577 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9578 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581 cat >conftest.$ac_ext <<_ACEOF
9582 /* confdefs.h. */
9583 _ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9589 #define malloc_set_state innocuous_malloc_set_state
9591 /* System header to define __stub macros and hopefully few prototypes,
9592 which can conflict with char malloc_set_state (); below.
9593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9594 <limits.h> exists even on freestanding compilers. */
9596 #ifdef __STDC__
9597 # include <limits.h>
9598 #else
9599 # include <assert.h>
9600 #endif
9602 #undef malloc_set_state
9604 /* Override any GCC internal prototype to avoid an error.
9605 Use char because int might match the return type of a GCC
9606 builtin and then its argument prototype would still apply. */
9607 #ifdef __cplusplus
9608 extern "C"
9609 #endif
9610 char malloc_set_state ();
9611 /* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9615 choke me
9616 #endif
9619 main ()
9621 return malloc_set_state ();
9623 return 0;
9625 _ACEOF
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (ac_try="$ac_link"
9628 case "(($ac_try" in
9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9631 esac
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_link") 2>conftest.er1
9634 ac_status=$?
9635 grep -v '^ *+' conftest.er1 >conftest.err
9636 rm -f conftest.er1
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_c_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest$ac_exeext &&
9643 $as_test_x conftest$ac_exeext; then
9644 ac_cv_func_malloc_set_state=yes
9645 else
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9649 ac_cv_func_malloc_set_state=no
9652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9653 conftest$ac_exeext conftest.$ac_ext
9655 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9656 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9657 if test $ac_cv_func_malloc_set_state = yes; then
9659 else
9660 doug_lea_malloc=no
9663 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9664 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9665 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668 cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h. */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 extern void (* __after_morecore_hook)();
9676 main ()
9678 __after_morecore_hook = 0
9680 return 0;
9682 _ACEOF
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (ac_try="$ac_link"
9685 case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688 esac
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_link") 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && {
9697 test -z "$ac_c_werror_flag" ||
9698 test ! -s conftest.err
9699 } && test -s conftest$ac_exeext &&
9700 $as_test_x conftest$ac_exeext; then
9701 emacs_cv_var___after_morecore_hook=yes
9702 else
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 emacs_cv_var___after_morecore_hook=no
9709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9710 conftest$ac_exeext conftest.$ac_ext
9712 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9713 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9714 if test $emacs_cv_var___after_morecore_hook = no; then
9715 doug_lea_malloc=no
9717 if test "${system_malloc}" = "yes"; then
9718 GNU_MALLOC=no
9719 GNU_MALLOC_reason="
9720 (The GNU allocators don't work with this system configuration.)"
9722 if test "$doug_lea_malloc" = "yes" ; then
9723 if test "$GNU_MALLOC" = yes ; then
9724 GNU_MALLOC_reason="
9725 (Using Doug Lea's new malloc from the GNU C Library.)"
9728 cat >>confdefs.h <<\_ACEOF
9729 #define DOUG_LEA_MALLOC 1
9730 _ACEOF
9734 if test x"${REL_ALLOC}" = x; then
9735 REL_ALLOC=${GNU_MALLOC}
9741 for ac_header in stdlib.h unistd.h
9743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9750 ac_res=`eval echo '${'$as_ac_Header'}'`
9751 { echo "$as_me:$LINENO: result: $ac_res" >&5
9752 echo "${ECHO_T}$ac_res" >&6; }
9753 else
9754 # Is the header compilable?
9755 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9757 cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h. */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 $ac_includes_default
9764 #include <$ac_header>
9765 _ACEOF
9766 rm -f conftest.$ac_objext
9767 if { (ac_try="$ac_compile"
9768 case "(($ac_try" in
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9771 esac
9772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773 (eval "$ac_compile") 2>conftest.er1
9774 ac_status=$?
9775 grep -v '^ *+' conftest.er1 >conftest.err
9776 rm -f conftest.er1
9777 cat conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } && {
9780 test -z "$ac_c_werror_flag" ||
9781 test ! -s conftest.err
9782 } && test -s conftest.$ac_objext; then
9783 ac_header_compiler=yes
9784 else
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9788 ac_header_compiler=no
9791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9793 echo "${ECHO_T}$ac_header_compiler" >&6; }
9795 # Is the header present?
9796 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 #include <$ac_header>
9805 _ACEOF
9806 if { (ac_try="$ac_cpp conftest.$ac_ext"
9807 case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810 esac
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } >/dev/null && {
9819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9820 test ! -s conftest.err
9821 }; then
9822 ac_header_preproc=yes
9823 else
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 ac_header_preproc=no
9830 rm -f conftest.err conftest.$ac_ext
9831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9832 echo "${ECHO_T}$ac_header_preproc" >&6; }
9834 # So? What about this header?
9835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9836 yes:no: )
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9841 ac_header_preproc=yes
9843 no:yes:* )
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9858 esac
9859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864 eval "$as_ac_Header=\$ac_header_preproc"
9866 ac_res=`eval echo '${'$as_ac_Header'}'`
9867 { echo "$as_me:$LINENO: result: $ac_res" >&5
9868 echo "${ECHO_T}$ac_res" >&6; }
9871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9872 cat >>confdefs.h <<_ACEOF
9873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9874 _ACEOF
9878 done
9881 for ac_func in getpagesize
9883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889 cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h. */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9897 #define $ac_func innocuous_$ac_func
9899 /* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char $ac_func (); below.
9901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902 <limits.h> exists even on freestanding compilers. */
9904 #ifdef __STDC__
9905 # include <limits.h>
9906 #else
9907 # include <assert.h>
9908 #endif
9910 #undef $ac_func
9912 /* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
9915 #ifdef __cplusplus
9916 extern "C"
9917 #endif
9918 char $ac_func ();
9919 /* The GNU C library defines this for functions which it implements
9920 to always fail with ENOSYS. Some functions are actually named
9921 something starting with __ and the normal name is an alias. */
9922 #if defined __stub_$ac_func || defined __stub___$ac_func
9923 choke me
9924 #endif
9927 main ()
9929 return $ac_func ();
9931 return 0;
9933 _ACEOF
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (ac_try="$ac_link"
9936 case "(($ac_try" in
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9939 esac
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_link") 2>conftest.er1
9942 ac_status=$?
9943 grep -v '^ *+' conftest.er1 >conftest.err
9944 rm -f conftest.er1
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest$ac_exeext &&
9951 $as_test_x conftest$ac_exeext; then
9952 eval "$as_ac_var=yes"
9953 else
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9957 eval "$as_ac_var=no"
9960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9961 conftest$ac_exeext conftest.$ac_ext
9963 ac_res=`eval echo '${'$as_ac_var'}'`
9964 { echo "$as_me:$LINENO: result: $ac_res" >&5
9965 echo "${ECHO_T}$ac_res" >&6; }
9966 if test `eval echo '${'$as_ac_var'}'` = yes; then
9967 cat >>confdefs.h <<_ACEOF
9968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9969 _ACEOF
9972 done
9974 { echo "$as_me:$LINENO: checking for working mmap" >&5
9975 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9976 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979 if test "$cross_compiling" = yes; then
9980 ac_cv_func_mmap_fixed_mapped=no
9981 else
9982 cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h. */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 $ac_includes_default
9989 /* malloc might have been renamed as rpl_malloc. */
9990 #undef malloc
9992 /* Thanks to Mike Haertel and Jim Avera for this test.
9993 Here is a matrix of mmap possibilities:
9994 mmap private not fixed
9995 mmap private fixed at somewhere currently unmapped
9996 mmap private fixed at somewhere already mapped
9997 mmap shared not fixed
9998 mmap shared fixed at somewhere currently unmapped
9999 mmap shared fixed at somewhere already mapped
10000 For private mappings, we should verify that changes cannot be read()
10001 back from the file, nor mmap's back from the file at a different
10002 address. (There have been systems where private was not correctly
10003 implemented like the infamous i386 svr4.0, and systems where the
10004 VM page cache was not coherent with the file system buffer cache
10005 like early versions of FreeBSD and possibly contemporary NetBSD.)
10006 For shared mappings, we should conversely verify that changes get
10007 propagated back to all the places they're supposed to be.
10009 Grep wants private fixed already mapped.
10010 The main things grep needs to know about mmap are:
10011 * does it exist and is it safe to write into the mmap'd area
10012 * how to use it (BSD variants) */
10014 #include <fcntl.h>
10015 #include <sys/mman.h>
10017 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10018 char *malloc ();
10019 #endif
10021 /* This mess was copied from the GNU getpagesize.h. */
10022 #ifndef HAVE_GETPAGESIZE
10023 /* Assume that all systems that can run configure have sys/param.h. */
10024 # ifndef HAVE_SYS_PARAM_H
10025 # define HAVE_SYS_PARAM_H 1
10026 # endif
10028 # ifdef _SC_PAGESIZE
10029 # define getpagesize() sysconf(_SC_PAGESIZE)
10030 # else /* no _SC_PAGESIZE */
10031 # ifdef HAVE_SYS_PARAM_H
10032 # include <sys/param.h>
10033 # ifdef EXEC_PAGESIZE
10034 # define getpagesize() EXEC_PAGESIZE
10035 # else /* no EXEC_PAGESIZE */
10036 # ifdef NBPG
10037 # define getpagesize() NBPG * CLSIZE
10038 # ifndef CLSIZE
10039 # define CLSIZE 1
10040 # endif /* no CLSIZE */
10041 # else /* no NBPG */
10042 # ifdef NBPC
10043 # define getpagesize() NBPC
10044 # else /* no NBPC */
10045 # ifdef PAGESIZE
10046 # define getpagesize() PAGESIZE
10047 # endif /* PAGESIZE */
10048 # endif /* no NBPC */
10049 # endif /* no NBPG */
10050 # endif /* no EXEC_PAGESIZE */
10051 # else /* no HAVE_SYS_PARAM_H */
10052 # define getpagesize() 8192 /* punt totally */
10053 # endif /* no HAVE_SYS_PARAM_H */
10054 # endif /* no _SC_PAGESIZE */
10056 #endif /* no HAVE_GETPAGESIZE */
10059 main ()
10061 char *data, *data2, *data3;
10062 int i, pagesize;
10063 int fd;
10065 pagesize = getpagesize ();
10067 /* First, make a file with some known garbage in it. */
10068 data = (char *) malloc (pagesize);
10069 if (!data)
10070 return 1;
10071 for (i = 0; i < pagesize; ++i)
10072 *(data + i) = rand ();
10073 umask (0);
10074 fd = creat ("conftest.mmap", 0600);
10075 if (fd < 0)
10076 return 1;
10077 if (write (fd, data, pagesize) != pagesize)
10078 return 1;
10079 close (fd);
10081 /* Next, try to mmap the file at a fixed address which already has
10082 something else allocated at it. If we can, also make sure that
10083 we see the same garbage. */
10084 fd = open ("conftest.mmap", O_RDWR);
10085 if (fd < 0)
10086 return 1;
10087 data2 = (char *) malloc (2 * pagesize);
10088 if (!data2)
10089 return 1;
10090 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10091 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10092 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10093 return 1;
10094 for (i = 0; i < pagesize; ++i)
10095 if (*(data + i) != *(data2 + i))
10096 return 1;
10098 /* Finally, make sure that changes to the mapped area do not
10099 percolate back to the file as seen by read(). (This is a bug on
10100 some variants of i386 svr4.0.) */
10101 for (i = 0; i < pagesize; ++i)
10102 *(data2 + i) = *(data2 + i) + 1;
10103 data3 = (char *) malloc (pagesize);
10104 if (!data3)
10105 return 1;
10106 if (read (fd, data3, pagesize) != pagesize)
10107 return 1;
10108 for (i = 0; i < pagesize; ++i)
10109 if (*(data + i) != *(data3 + i))
10110 return 1;
10111 close (fd);
10112 return 0;
10114 _ACEOF
10115 rm -f conftest$ac_exeext
10116 if { (ac_try="$ac_link"
10117 case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_link") 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10126 { (case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10129 esac
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_try") 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10135 ac_cv_func_mmap_fixed_mapped=yes
10136 else
10137 echo "$as_me: program exited with status $ac_status" >&5
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ( exit $ac_status )
10142 ac_cv_func_mmap_fixed_mapped=no
10144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10149 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10150 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10151 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10153 cat >>confdefs.h <<\_ACEOF
10154 #define HAVE_MMAP 1
10155 _ACEOF
10158 rm -f conftest.mmap
10160 if test $use_mmap_for_buffers = yes; then
10161 REL_ALLOC=no
10164 LIBS="$libsrc_libs $LIBS"
10167 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10168 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10169 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 else
10172 ac_check_lib_save_LIBS=$LIBS
10173 LIBS="-ldnet $LIBS"
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h. */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10181 /* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
10184 #ifdef __cplusplus
10185 extern "C"
10186 #endif
10187 char dnet_ntoa ();
10189 main ()
10191 return dnet_ntoa ();
10193 return 0;
10195 _ACEOF
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (ac_try="$ac_link"
10198 case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10201 esac
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_link") 2>conftest.er1
10204 ac_status=$?
10205 grep -v '^ *+' conftest.er1 >conftest.err
10206 rm -f conftest.er1
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } && {
10210 test -z "$ac_c_werror_flag" ||
10211 test ! -s conftest.err
10212 } && test -s conftest$ac_exeext &&
10213 $as_test_x conftest$ac_exeext; then
10214 ac_cv_lib_dnet_dnet_ntoa=yes
10215 else
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 ac_cv_lib_dnet_dnet_ntoa=no
10222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10223 conftest$ac_exeext conftest.$ac_ext
10224 LIBS=$ac_check_lib_save_LIBS
10226 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10227 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10228 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10229 cat >>confdefs.h <<_ACEOF
10230 #define HAVE_LIBDNET 1
10231 _ACEOF
10233 LIBS="-ldnet $LIBS"
10238 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10239 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10240 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243 ac_check_lib_save_LIBS=$LIBS
10244 LIBS="-lXbsd $LIBS"
10245 cat >conftest.$ac_ext <<_ACEOF
10246 /* confdefs.h. */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10254 main ()
10256 return main ();
10258 return 0;
10260 _ACEOF
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (ac_try="$ac_link"
10263 case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10266 esac
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_link") 2>conftest.er1
10269 ac_status=$?
10270 grep -v '^ *+' conftest.er1 >conftest.err
10271 rm -f conftest.er1
10272 cat conftest.err >&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } && {
10275 test -z "$ac_c_werror_flag" ||
10276 test ! -s conftest.err
10277 } && test -s conftest$ac_exeext &&
10278 $as_test_x conftest$ac_exeext; then
10279 ac_cv_lib_Xbsd_main=yes
10280 else
10281 echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10284 ac_cv_lib_Xbsd_main=no
10287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10288 conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_lib_save_LIBS
10291 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10292 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10293 if test $ac_cv_lib_Xbsd_main = yes; then
10294 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10299 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10300 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10301 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304 ac_check_lib_save_LIBS=$LIBS
10305 LIBS="-lpthreads $LIBS"
10306 cat >conftest.$ac_ext <<_ACEOF
10307 /* confdefs.h. */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10313 /* Override any GCC internal prototype to avoid an error.
10314 Use char because int might match the return type of a GCC
10315 builtin and then its argument prototype would still apply. */
10316 #ifdef __cplusplus
10317 extern "C"
10318 #endif
10319 char cma_open ();
10321 main ()
10323 return cma_open ();
10325 return 0;
10327 _ACEOF
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (ac_try="$ac_link"
10330 case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10333 esac
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_link") 2>conftest.er1
10336 ac_status=$?
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && {
10342 test -z "$ac_c_werror_flag" ||
10343 test ! -s conftest.err
10344 } && test -s conftest$ac_exeext &&
10345 $as_test_x conftest$ac_exeext; then
10346 ac_cv_lib_pthreads_cma_open=yes
10347 else
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 ac_cv_lib_pthreads_cma_open=no
10354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10355 conftest$ac_exeext conftest.$ac_ext
10356 LIBS=$ac_check_lib_save_LIBS
10358 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10359 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10360 if test $ac_cv_lib_pthreads_cma_open = yes; then
10361 cat >>confdefs.h <<_ACEOF
10362 #define HAVE_LIBPTHREADS 1
10363 _ACEOF
10365 LIBS="-lpthreads $LIBS"
10371 case ${host_os} in
10372 aix*)
10373 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10374 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10375 if test "${gdb_cv_bigtoc+set}" = set; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 else
10379 case $GCC in
10380 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10381 *) gdb_cv_bigtoc=-bbigtoc ;;
10382 esac
10384 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10385 cat >conftest.$ac_ext <<_ACEOF
10386 /* confdefs.h. */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10393 main ()
10395 int i;
10397 return 0;
10399 _ACEOF
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10405 esac
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_link") 2>conftest.er1
10408 ac_status=$?
10409 grep -v '^ *+' conftest.er1 >conftest.err
10410 rm -f conftest.er1
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } && {
10414 test -z "$ac_c_werror_flag" ||
10415 test ! -s conftest.err
10416 } && test -s conftest$ac_exeext &&
10417 $as_test_x conftest$ac_exeext; then
10419 else
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 gdb_cv_bigtoc=
10426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10427 conftest$ac_exeext conftest.$ac_ext
10430 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10431 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10433 esac
10435 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10436 # used for the tests that follow. We set them back to REAL_CFLAGS and
10437 # REAL_CPPFLAGS later on.
10439 REAL_CPPFLAGS="$CPPFLAGS"
10441 if test "${HAVE_X11}" = "yes"; then
10442 DEFS="$C_SWITCH_X_SITE $DEFS"
10443 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10444 LIBS="$LIBX $LIBS"
10445 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10446 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10448 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10449 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10450 # but it's more convenient here to set LD_RUN_PATH
10451 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10452 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10453 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10454 export LD_RUN_PATH
10457 if test "${opsys}" = "gnu-linux"; then
10458 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10459 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10460 cat >conftest.$ac_ext <<_ACEOF
10461 /* confdefs.h. */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10468 main ()
10470 XOpenDisplay ("foo");
10472 return 0;
10474 _ACEOF
10475 rm -f conftest.$ac_objext conftest$ac_exeext
10476 if { (ac_try="$ac_link"
10477 case "(($ac_try" in
10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10480 esac
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482 (eval "$ac_link") 2>conftest.er1
10483 ac_status=$?
10484 grep -v '^ *+' conftest.er1 >conftest.err
10485 rm -f conftest.er1
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && {
10489 test -z "$ac_c_werror_flag" ||
10490 test ! -s conftest.err
10491 } && test -s conftest$ac_exeext &&
10492 $as_test_x conftest$ac_exeext; then
10493 xlinux_first_failure=no
10494 else
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 xlinux_first_failure=yes
10501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10502 conftest$ac_exeext conftest.$ac_ext
10503 if test "${xlinux_first_failure}" = "yes"; then
10504 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10505 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10506 OLD_CPPFLAGS="$CPPFLAGS"
10507 OLD_LIBS="$LIBS"
10508 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10509 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10510 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10511 LIBS="$LIBS -b i486-linuxaout"
10512 cat >conftest.$ac_ext <<_ACEOF
10513 /* confdefs.h. */
10514 _ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10520 main ()
10522 XOpenDisplay ("foo");
10524 return 0;
10526 _ACEOF
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (ac_try="$ac_link"
10529 case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10532 esac
10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534 (eval "$ac_link") 2>conftest.er1
10535 ac_status=$?
10536 grep -v '^ *+' conftest.er1 >conftest.err
10537 rm -f conftest.er1
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } && {
10541 test -z "$ac_c_werror_flag" ||
10542 test ! -s conftest.err
10543 } && test -s conftest$ac_exeext &&
10544 $as_test_x conftest$ac_exeext; then
10545 xlinux_second_failure=no
10546 else
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10550 xlinux_second_failure=yes
10553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10554 conftest$ac_exeext conftest.$ac_ext
10555 if test "${xlinux_second_failure}" = "yes"; then
10556 # If we get the same failure with -b, there is no use adding -b.
10557 # So take it out. This plays safe.
10558 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10559 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10560 CPPFLAGS="$OLD_CPPFLAGS"
10561 LIBS="$OLD_LIBS"
10562 { echo "$as_me:$LINENO: result: no" >&5
10563 echo "${ECHO_T}no" >&6; }
10564 else
10565 { echo "$as_me:$LINENO: result: yes" >&5
10566 echo "${ECHO_T}yes" >&6; }
10568 else
10569 { echo "$as_me:$LINENO: result: no" >&5
10570 echo "${ECHO_T}no" >&6; }
10574 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10575 # header files included from there.
10576 { echo "$as_me:$LINENO: checking for Xkb" >&5
10577 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10578 cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h. */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10584 #include <X11/Xlib.h>
10585 #include <X11/XKBlib.h>
10587 main ()
10589 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10591 return 0;
10593 _ACEOF
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (ac_try="$ac_link"
10596 case "(($ac_try" in
10597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10599 esac
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601 (eval "$ac_link") 2>conftest.er1
10602 ac_status=$?
10603 grep -v '^ *+' conftest.er1 >conftest.err
10604 rm -f conftest.er1
10605 cat conftest.err >&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } && {
10608 test -z "$ac_c_werror_flag" ||
10609 test ! -s conftest.err
10610 } && test -s conftest$ac_exeext &&
10611 $as_test_x conftest$ac_exeext; then
10612 emacs_xkb=yes
10613 else
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10617 emacs_xkb=no
10620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10621 conftest$ac_exeext conftest.$ac_ext
10622 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10623 echo "${ECHO_T}$emacs_xkb" >&6; }
10624 if test $emacs_xkb = yes; then
10626 cat >>confdefs.h <<\_ACEOF
10627 #define HAVE_XKBGETKEYBOARD 1
10628 _ACEOF
10636 for ac_func in XrmSetDatabase XScreenResourceString \
10637 XScreenNumberOfScreen XSetWMProtocols
10639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 else
10645 cat >conftest.$ac_ext <<_ACEOF
10646 /* confdefs.h. */
10647 _ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h. */
10651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10653 #define $ac_func innocuous_$ac_func
10655 /* System header to define __stub macros and hopefully few prototypes,
10656 which can conflict with char $ac_func (); below.
10657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10658 <limits.h> exists even on freestanding compilers. */
10660 #ifdef __STDC__
10661 # include <limits.h>
10662 #else
10663 # include <assert.h>
10664 #endif
10666 #undef $ac_func
10668 /* Override any GCC internal prototype to avoid an error.
10669 Use char because int might match the return type of a GCC
10670 builtin and then its argument prototype would still apply. */
10671 #ifdef __cplusplus
10672 extern "C"
10673 #endif
10674 char $ac_func ();
10675 /* The GNU C library defines this for functions which it implements
10676 to always fail with ENOSYS. Some functions are actually named
10677 something starting with __ and the normal name is an alias. */
10678 #if defined __stub_$ac_func || defined __stub___$ac_func
10679 choke me
10680 #endif
10683 main ()
10685 return $ac_func ();
10687 return 0;
10689 _ACEOF
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (ac_try="$ac_link"
10692 case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10695 esac
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_link") 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && {
10704 test -z "$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10706 } && test -s conftest$ac_exeext &&
10707 $as_test_x conftest$ac_exeext; then
10708 eval "$as_ac_var=yes"
10709 else
10710 echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10713 eval "$as_ac_var=no"
10716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10717 conftest$ac_exeext conftest.$ac_ext
10719 ac_res=`eval echo '${'$as_ac_var'}'`
10720 { echo "$as_me:$LINENO: result: $ac_res" >&5
10721 echo "${ECHO_T}$ac_res" >&6; }
10722 if test `eval echo '${'$as_ac_var'}'` = yes; then
10723 cat >>confdefs.h <<_ACEOF
10724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10725 _ACEOF
10728 done
10732 if test "${window_system}" = "x11"; then
10733 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10734 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10735 if test "${emacs_cv_x11_version_6+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 else
10738 cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h. */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744 #include <X11/Xlib.h>
10746 main ()
10748 #if XlibSpecificationRelease < 6
10749 fail;
10750 #endif
10753 return 0;
10755 _ACEOF
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (ac_try="$ac_link"
10758 case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10761 esac
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_link") 2>conftest.er1
10764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } && {
10770 test -z "$ac_c_werror_flag" ||
10771 test ! -s conftest.err
10772 } && test -s conftest$ac_exeext &&
10773 $as_test_x conftest$ac_exeext; then
10774 emacs_cv_x11_version_6=yes
10775 else
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 emacs_cv_x11_version_6=no
10782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10783 conftest$ac_exeext conftest.$ac_ext
10786 if test $emacs_cv_x11_version_6 = yes; then
10787 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10788 echo "${ECHO_T}6 or newer" >&6; }
10790 cat >>confdefs.h <<\_ACEOF
10791 #define HAVE_X11R6 1
10792 _ACEOF
10794 else
10795 { echo "$as_me:$LINENO: result: before 6" >&5
10796 echo "${ECHO_T}before 6" >&6; }
10801 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10802 HAVE_RSVG=no
10803 if test "${HAVE_X11}" = "yes"; then
10804 if test "${with_rsvg}" != "no"; then
10805 RSVG_REQUIRED=2.0.0
10806 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10809 succeeded=no
10811 # Extract the first word of "pkg-config", so it can be a program name with args.
10812 set dummy pkg-config; ac_word=$2
10813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10815 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 else
10818 case $PKG_CONFIG in
10819 [\\/]* | ?:[\\/]*)
10820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824 for as_dir in $PATH
10826 IFS=$as_save_IFS
10827 test -z "$as_dir" && as_dir=.
10828 for ac_exec_ext in '' $ac_executable_extensions; do
10829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10832 break 2
10834 done
10835 done
10836 IFS=$as_save_IFS
10838 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10840 esac
10842 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10843 if test -n "$PKG_CONFIG"; then
10844 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10845 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10846 else
10847 { echo "$as_me:$LINENO: result: no" >&5
10848 echo "${ECHO_T}no" >&6; }
10853 if test "$PKG_CONFIG" = "no" ; then
10855 else
10856 PKG_CONFIG_MIN_VERSION=0.9.0
10857 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10858 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10859 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10861 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10862 { echo "$as_me:$LINENO: result: yes" >&5
10863 echo "${ECHO_T}yes" >&6; }
10864 succeeded=yes
10866 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10867 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10868 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10869 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10870 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10872 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10873 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10874 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10875 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10876 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10877 else
10878 { echo "$as_me:$LINENO: result: no" >&5
10879 echo "${ECHO_T}no" >&6; }
10880 RSVG_CFLAGS=""
10881 RSVG_LIBS=""
10882 ## If we have a custom action on failure, don't print errors, but
10883 ## do set a variable so people can do so.
10884 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10890 else
10891 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10892 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10896 if test $succeeded = yes; then
10898 else
10905 if test ".${RSVG_CFLAGS}" != "."; then
10906 HAVE_RSVG=yes
10908 cat >>confdefs.h <<\_ACEOF
10909 #define HAVE_RSVG 1
10910 _ACEOF
10912 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10913 LIBS="$RSVG_LIBS $LIBS"
10919 HAVE_GTK=no
10920 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10921 GLIB_REQUIRED=2.6
10922 GTK_REQUIRED=2.6
10923 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10926 succeeded=no
10928 # Extract the first word of "pkg-config", so it can be a program name with args.
10929 set dummy pkg-config; ac_word=$2
10930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10932 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
10935 case $PKG_CONFIG in
10936 [\\/]* | ?:[\\/]*)
10937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10947 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 break 2
10951 done
10952 done
10953 IFS=$as_save_IFS
10955 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10957 esac
10959 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10960 if test -n "$PKG_CONFIG"; then
10961 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10962 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10963 else
10964 { echo "$as_me:$LINENO: result: no" >&5
10965 echo "${ECHO_T}no" >&6; }
10970 if test "$PKG_CONFIG" = "no" ; then
10971 pkg_check_gtk=no
10972 else
10973 PKG_CONFIG_MIN_VERSION=0.9.0
10974 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10975 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10976 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10978 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10979 { echo "$as_me:$LINENO: result: yes" >&5
10980 echo "${ECHO_T}yes" >&6; }
10981 succeeded=yes
10983 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10984 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10985 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10986 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10987 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10989 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10990 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10991 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10992 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10993 echo "${ECHO_T}$GTK_LIBS" >&6; }
10994 else
10995 { echo "$as_me:$LINENO: result: no" >&5
10996 echo "${ECHO_T}no" >&6; }
10997 GTK_CFLAGS=""
10998 GTK_LIBS=""
10999 ## If we have a custom action on failure, don't print errors, but
11000 ## do set a variable so people can do so.
11001 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11007 else
11008 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11009 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11013 if test $succeeded = yes; then
11014 pkg_check_gtk=yes
11015 else
11016 pkg_check_gtk=no
11019 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11020 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11021 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11022 { (exit 1); exit 1; }; }
11027 if test x"$pkg_check_gtk" = xyes; then
11031 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11032 CFLAGS="$CFLAGS $GTK_CFLAGS"
11033 LIBS="$GTK_LIBS $LIBS"
11034 GTK_COMPILES=no
11036 for ac_func in gtk_main
11038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 else
11044 cat >conftest.$ac_ext <<_ACEOF
11045 /* confdefs.h. */
11046 _ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11052 #define $ac_func innocuous_$ac_func
11054 /* System header to define __stub macros and hopefully few prototypes,
11055 which can conflict with char $ac_func (); below.
11056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11057 <limits.h> exists even on freestanding compilers. */
11059 #ifdef __STDC__
11060 # include <limits.h>
11061 #else
11062 # include <assert.h>
11063 #endif
11065 #undef $ac_func
11067 /* Override any GCC internal prototype to avoid an error.
11068 Use char because int might match the return type of a GCC
11069 builtin and then its argument prototype would still apply. */
11070 #ifdef __cplusplus
11071 extern "C"
11072 #endif
11073 char $ac_func ();
11074 /* The GNU C library defines this for functions which it implements
11075 to always fail with ENOSYS. Some functions are actually named
11076 something starting with __ and the normal name is an alias. */
11077 #if defined __stub_$ac_func || defined __stub___$ac_func
11078 choke me
11079 #endif
11082 main ()
11084 return $ac_func ();
11086 return 0;
11088 _ACEOF
11089 rm -f conftest.$ac_objext conftest$ac_exeext
11090 if { (ac_try="$ac_link"
11091 case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11094 esac
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096 (eval "$ac_link") 2>conftest.er1
11097 ac_status=$?
11098 grep -v '^ *+' conftest.er1 >conftest.err
11099 rm -f conftest.er1
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } && {
11103 test -z "$ac_c_werror_flag" ||
11104 test ! -s conftest.err
11105 } && test -s conftest$ac_exeext &&
11106 $as_test_x conftest$ac_exeext; then
11107 eval "$as_ac_var=yes"
11108 else
11109 echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11112 eval "$as_ac_var=no"
11115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11116 conftest$ac_exeext conftest.$ac_ext
11118 ac_res=`eval echo '${'$as_ac_var'}'`
11119 { echo "$as_me:$LINENO: result: $ac_res" >&5
11120 echo "${ECHO_T}$ac_res" >&6; }
11121 if test `eval echo '${'$as_ac_var'}'` = yes; then
11122 cat >>confdefs.h <<_ACEOF
11123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11124 _ACEOF
11125 GTK_COMPILES=yes
11127 done
11129 if test "${GTK_COMPILES}" != "yes"; then
11130 if test "$USE_X_TOOLKIT" != "maybe"; then
11131 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11132 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11133 { (exit 1); exit 1; }; };
11135 else
11136 HAVE_GTK=yes
11138 cat >>confdefs.h <<\_ACEOF
11139 #define USE_GTK 1
11140 _ACEOF
11142 USE_X_TOOLKIT=none
11143 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11145 else
11146 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11147 closing open displays. This is no problem if you just use
11148 one display, but if you use more than one and close one of them
11149 Emacs may crash." >&5
11150 echo "$as_me: 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." >&2;}
11154 sleep 3
11161 if test "${HAVE_GTK}" = "yes"; then
11163 if test "$with_toolkit_scroll_bars" != no; then
11164 with_toolkit_scroll_bars=yes
11167 HAVE_GTK_MULTIDISPLAY=no
11169 for ac_func in gdk_display_open
11171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177 cat >conftest.$ac_ext <<_ACEOF
11178 /* confdefs.h. */
11179 _ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h. */
11183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11185 #define $ac_func innocuous_$ac_func
11187 /* System header to define __stub macros and hopefully few prototypes,
11188 which can conflict with char $ac_func (); below.
11189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11190 <limits.h> exists even on freestanding compilers. */
11192 #ifdef __STDC__
11193 # include <limits.h>
11194 #else
11195 # include <assert.h>
11196 #endif
11198 #undef $ac_func
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11203 #ifdef __cplusplus
11204 extern "C"
11205 #endif
11206 char $ac_func ();
11207 /* The GNU C library defines this for functions which it implements
11208 to always fail with ENOSYS. Some functions are actually named
11209 something starting with __ and the normal name is an alias. */
11210 #if defined __stub_$ac_func || defined __stub___$ac_func
11211 choke me
11212 #endif
11215 main ()
11217 return $ac_func ();
11219 return 0;
11221 _ACEOF
11222 rm -f conftest.$ac_objext conftest$ac_exeext
11223 if { (ac_try="$ac_link"
11224 case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11227 esac
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_link") 2>conftest.er1
11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } && {
11236 test -z "$ac_c_werror_flag" ||
11237 test ! -s conftest.err
11238 } && test -s conftest$ac_exeext &&
11239 $as_test_x conftest$ac_exeext; then
11240 eval "$as_ac_var=yes"
11241 else
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11245 eval "$as_ac_var=no"
11248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11249 conftest$ac_exeext conftest.$ac_ext
11251 ac_res=`eval echo '${'$as_ac_var'}'`
11252 { echo "$as_me:$LINENO: result: $ac_res" >&5
11253 echo "${ECHO_T}$ac_res" >&6; }
11254 if test `eval echo '${'$as_ac_var'}'` = yes; then
11255 cat >>confdefs.h <<_ACEOF
11256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11257 _ACEOF
11258 HAVE_GTK_MULTIDISPLAY=yes
11260 done
11262 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11264 cat >>confdefs.h <<\_ACEOF
11265 #define HAVE_GTK_MULTIDISPLAY 1
11266 _ACEOF
11270 HAVE_GTK_FILE_SELECTION=no
11272 for ac_func in gtk_file_selection_new
11274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280 cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h. */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11288 #define $ac_func innocuous_$ac_func
11290 /* System header to define __stub macros and hopefully few prototypes,
11291 which can conflict with char $ac_func (); below.
11292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11293 <limits.h> exists even on freestanding compilers. */
11295 #ifdef __STDC__
11296 # include <limits.h>
11297 #else
11298 # include <assert.h>
11299 #endif
11301 #undef $ac_func
11303 /* Override any GCC internal prototype to avoid an error.
11304 Use char because int might match the return type of a GCC
11305 builtin and then its argument prototype would still apply. */
11306 #ifdef __cplusplus
11307 extern "C"
11308 #endif
11309 char $ac_func ();
11310 /* The GNU C library defines this for functions which it implements
11311 to always fail with ENOSYS. Some functions are actually named
11312 something starting with __ and the normal name is an alias. */
11313 #if defined __stub_$ac_func || defined __stub___$ac_func
11314 choke me
11315 #endif
11318 main ()
11320 return $ac_func ();
11322 return 0;
11324 _ACEOF
11325 rm -f conftest.$ac_objext conftest$ac_exeext
11326 if { (ac_try="$ac_link"
11327 case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11330 esac
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_link") 2>conftest.er1
11333 ac_status=$?
11334 grep -v '^ *+' conftest.er1 >conftest.err
11335 rm -f conftest.er1
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } && {
11339 test -z "$ac_c_werror_flag" ||
11340 test ! -s conftest.err
11341 } && test -s conftest$ac_exeext &&
11342 $as_test_x conftest$ac_exeext; then
11343 eval "$as_ac_var=yes"
11344 else
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11348 eval "$as_ac_var=no"
11351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11352 conftest$ac_exeext conftest.$ac_ext
11354 ac_res=`eval echo '${'$as_ac_var'}'`
11355 { echo "$as_me:$LINENO: result: $ac_res" >&5
11356 echo "${ECHO_T}$ac_res" >&6; }
11357 if test `eval echo '${'$as_ac_var'}'` = yes; then
11358 cat >>confdefs.h <<_ACEOF
11359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11360 _ACEOF
11361 HAVE_GTK_FILE_SELECTION=yes
11363 done
11366 HAVE_GTK_FILE_CHOOSER=no
11368 for ac_func in gtk_file_chooser_dialog_new
11370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 else
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h. */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11384 #define $ac_func innocuous_$ac_func
11386 /* System header to define __stub macros and hopefully few prototypes,
11387 which can conflict with char $ac_func (); below.
11388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11389 <limits.h> exists even on freestanding compilers. */
11391 #ifdef __STDC__
11392 # include <limits.h>
11393 #else
11394 # include <assert.h>
11395 #endif
11397 #undef $ac_func
11399 /* Override any GCC internal prototype to avoid an error.
11400 Use char because int might match the return type of a GCC
11401 builtin and then its argument prototype would still apply. */
11402 #ifdef __cplusplus
11403 extern "C"
11404 #endif
11405 char $ac_func ();
11406 /* The GNU C library defines this for functions which it implements
11407 to always fail with ENOSYS. Some functions are actually named
11408 something starting with __ and the normal name is an alias. */
11409 #if defined __stub_$ac_func || defined __stub___$ac_func
11410 choke me
11411 #endif
11414 main ()
11416 return $ac_func ();
11418 return 0;
11420 _ACEOF
11421 rm -f conftest.$ac_objext conftest$ac_exeext
11422 if { (ac_try="$ac_link"
11423 case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426 esac
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_link") 2>conftest.er1
11429 ac_status=$?
11430 grep -v '^ *+' conftest.er1 >conftest.err
11431 rm -f conftest.er1
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } && {
11435 test -z "$ac_c_werror_flag" ||
11436 test ! -s conftest.err
11437 } && test -s conftest$ac_exeext &&
11438 $as_test_x conftest$ac_exeext; then
11439 eval "$as_ac_var=yes"
11440 else
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11444 eval "$as_ac_var=no"
11447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11448 conftest$ac_exeext conftest.$ac_ext
11450 ac_res=`eval echo '${'$as_ac_var'}'`
11451 { echo "$as_me:$LINENO: result: $ac_res" >&5
11452 echo "${ECHO_T}$ac_res" >&6; }
11453 if test `eval echo '${'$as_ac_var'}'` = yes; then
11454 cat >>confdefs.h <<_ACEOF
11455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11456 _ACEOF
11457 HAVE_GTK_FILE_CHOOSER=yes
11459 done
11462 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11463 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11465 cat >>confdefs.h <<\_ACEOF
11466 #define HAVE_GTK_FILE_BOTH 1
11467 _ACEOF
11471 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11472 HAVE_GTK_AND_PTHREAD=no
11474 for ac_header in pthread.h
11476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 ac_res=`eval echo '${'$as_ac_Header'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485 echo "${ECHO_T}$ac_res" >&6; }
11486 else
11487 # Is the header compilable?
11488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11490 cat >conftest.$ac_ext <<_ACEOF
11491 /* confdefs.h. */
11492 _ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h. */
11496 $ac_includes_default
11497 #include <$ac_header>
11498 _ACEOF
11499 rm -f conftest.$ac_objext
11500 if { (ac_try="$ac_compile"
11501 case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_compile") 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } && {
11513 test -z "$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11515 } && test -s conftest.$ac_objext; then
11516 ac_header_compiler=yes
11517 else
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_header_compiler=no
11524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11526 echo "${ECHO_T}$ac_header_compiler" >&6; }
11528 # Is the header present?
11529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11531 cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h. */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 #include <$ac_header>
11538 _ACEOF
11539 if { (ac_try="$ac_cpp conftest.$ac_ext"
11540 case "(($ac_try" in
11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11542 *) ac_try_echo=$ac_try;;
11543 esac
11544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11546 ac_status=$?
11547 grep -v '^ *+' conftest.er1 >conftest.err
11548 rm -f conftest.er1
11549 cat conftest.err >&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } >/dev/null && {
11552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11553 test ! -s conftest.err
11554 }; then
11555 ac_header_preproc=yes
11556 else
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 ac_header_preproc=no
11563 rm -f conftest.err conftest.$ac_ext
11564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11565 echo "${ECHO_T}$ac_header_preproc" >&6; }
11567 # So? What about this header?
11568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11569 yes:no: )
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11574 ac_header_preproc=yes
11576 no:yes:* )
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11591 esac
11592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11597 eval "$as_ac_Header=\$ac_header_preproc"
11599 ac_res=`eval echo '${'$as_ac_Header'}'`
11600 { echo "$as_me:$LINENO: result: $ac_res" >&5
11601 echo "${ECHO_T}$ac_res" >&6; }
11604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11605 cat >>confdefs.h <<_ACEOF
11606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11607 _ACEOF
11611 done
11613 if test "$ac_cv_header_pthread_h"; then
11614 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11615 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11616 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 else
11619 ac_check_lib_save_LIBS=$LIBS
11620 LIBS="-lpthread $LIBS"
11621 cat >conftest.$ac_ext <<_ACEOF
11622 /* confdefs.h. */
11623 _ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11628 /* Override any GCC internal prototype to avoid an error.
11629 Use char because int might match the return type of a GCC
11630 builtin and then its argument prototype would still apply. */
11631 #ifdef __cplusplus
11632 extern "C"
11633 #endif
11634 char pthread_self ();
11636 main ()
11638 return pthread_self ();
11640 return 0;
11642 _ACEOF
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (ac_try="$ac_link"
11645 case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648 esac
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_link") 2>conftest.er1
11651 ac_status=$?
11652 grep -v '^ *+' conftest.er1 >conftest.err
11653 rm -f conftest.er1
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } && {
11657 test -z "$ac_c_werror_flag" ||
11658 test ! -s conftest.err
11659 } && test -s conftest$ac_exeext &&
11660 $as_test_x conftest$ac_exeext; then
11661 ac_cv_lib_pthread_pthread_self=yes
11662 else
11663 echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11666 ac_cv_lib_pthread_pthread_self=no
11669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11670 conftest$ac_exeext conftest.$ac_ext
11671 LIBS=$ac_check_lib_save_LIBS
11673 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11674 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11675 if test $ac_cv_lib_pthread_pthread_self = yes; then
11676 HAVE_GTK_AND_PTHREAD=yes
11680 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11681 case "${canonical}" in
11682 *-hpux*) ;;
11683 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11684 esac
11686 cat >>confdefs.h <<\_ACEOF
11687 #define HAVE_GTK_AND_PTHREAD 1
11688 _ACEOF
11694 HAVE_DBUS=no
11695 if test "${with_dbus}" = "yes"; then
11697 succeeded=no
11699 # Extract the first word of "pkg-config", so it can be a program name with args.
11700 set dummy pkg-config; ac_word=$2
11701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11703 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 else
11706 case $PKG_CONFIG in
11707 [\\/]* | ?:[\\/]*)
11708 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712 for as_dir in $PATH
11714 IFS=$as_save_IFS
11715 test -z "$as_dir" && as_dir=.
11716 for ac_exec_ext in '' $ac_executable_extensions; do
11717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11718 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11720 break 2
11722 done
11723 done
11724 IFS=$as_save_IFS
11726 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11728 esac
11730 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11731 if test -n "$PKG_CONFIG"; then
11732 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11733 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11734 else
11735 { echo "$as_me:$LINENO: result: no" >&5
11736 echo "${ECHO_T}no" >&6; }
11741 if test "$PKG_CONFIG" = "no" ; then
11742 HAVE_DBUS=no
11743 else
11744 PKG_CONFIG_MIN_VERSION=0.9.0
11745 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11746 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11747 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11749 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11750 { echo "$as_me:$LINENO: result: yes" >&5
11751 echo "${ECHO_T}yes" >&6; }
11752 succeeded=yes
11754 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11755 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11756 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11757 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11758 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11760 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11761 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11762 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11763 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11764 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11765 else
11766 { echo "$as_me:$LINENO: result: no" >&5
11767 echo "${ECHO_T}no" >&6; }
11768 DBUS_CFLAGS=""
11769 DBUS_LIBS=""
11770 ## If we have a custom action on failure, don't print errors, but
11771 ## do set a variable so people can do so.
11772 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11778 else
11779 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11780 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11784 if test $succeeded = yes; then
11785 HAVE_DBUS=yes
11786 else
11787 HAVE_DBUS=no
11790 if test "$HAVE_DBUS" = yes; then
11792 cat >>confdefs.h <<\_ACEOF
11793 #define HAVE_DBUS 1
11794 _ACEOF
11799 HAVE_XAW3D=no
11800 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11801 if test "$with_xaw3d" != no; then
11802 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11803 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11804 if test "${emacs_cv_xaw3d+set}" = set; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 else
11807 cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h. */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11814 #include <X11/Intrinsic.h>
11815 #include <X11/Xaw3d/Simple.h>
11817 main ()
11821 return 0;
11823 _ACEOF
11824 rm -f conftest.$ac_objext conftest$ac_exeext
11825 if { (ac_try="$ac_link"
11826 case "(($ac_try" in
11827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828 *) ac_try_echo=$ac_try;;
11829 esac
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831 (eval "$ac_link") 2>conftest.er1
11832 ac_status=$?
11833 grep -v '^ *+' conftest.er1 >conftest.err
11834 rm -f conftest.er1
11835 cat conftest.err >&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } && {
11838 test -z "$ac_c_werror_flag" ||
11839 test ! -s conftest.err
11840 } && test -s conftest$ac_exeext &&
11841 $as_test_x conftest$ac_exeext; then
11842 emacs_cv_xaw3d=yes
11843 else
11844 echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11847 emacs_cv_xaw3d=no
11850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11851 conftest$ac_exeext conftest.$ac_ext
11854 else
11855 emacs_cv_xaw3d=no
11857 if test $emacs_cv_xaw3d = yes; then
11858 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11859 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11860 USE_X_TOOLKIT=LUCID
11861 HAVE_XAW3D=yes
11863 cat >>confdefs.h <<\_ACEOF
11864 #define HAVE_XAW3D 1
11865 _ACEOF
11867 else
11868 { echo "$as_me:$LINENO: result: no" >&5
11869 echo "${ECHO_T}no" >&6; }
11870 { echo "$as_me:$LINENO: checking for libXaw" >&5
11871 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11872 if test "${emacs_cv_xaw+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 else
11875 cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h. */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11882 #include <X11/Intrinsic.h>
11883 #include <X11/Xaw/Simple.h>
11885 main ()
11889 return 0;
11891 _ACEOF
11892 rm -f conftest.$ac_objext conftest$ac_exeext
11893 if { (ac_try="$ac_link"
11894 case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11897 esac
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_link") 2>conftest.er1
11900 ac_status=$?
11901 grep -v '^ *+' conftest.er1 >conftest.err
11902 rm -f conftest.er1
11903 cat conftest.err >&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } && {
11906 test -z "$ac_c_werror_flag" ||
11907 test ! -s conftest.err
11908 } && test -s conftest$ac_exeext &&
11909 $as_test_x conftest$ac_exeext; then
11910 emacs_cv_xaw=yes
11911 else
11912 echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11915 emacs_cv_xaw=no
11918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11919 conftest$ac_exeext conftest.$ac_ext
11922 if test $emacs_cv_xaw = yes; then
11923 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11924 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11925 USE_X_TOOLKIT=LUCID
11926 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11927 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11928 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11929 { (exit 1); exit 1; }; }
11930 else
11931 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11932 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11933 USE_X_TOOLKIT=none
11938 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11940 if test "${USE_X_TOOLKIT}" != "none"; then
11941 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11942 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11943 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946 cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h. */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 #include <X11/Intrinsic.h>
11954 main ()
11956 #if XtSpecificationRelease < 6
11957 fail;
11958 #endif
11961 return 0;
11963 _ACEOF
11964 rm -f conftest.$ac_objext conftest$ac_exeext
11965 if { (ac_try="$ac_link"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969 esac
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_link") 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } && {
11978 test -z "$ac_c_werror_flag" ||
11979 test ! -s conftest.err
11980 } && test -s conftest$ac_exeext &&
11981 $as_test_x conftest$ac_exeext; then
11982 emacs_cv_x11_toolkit_version_6=yes
11983 else
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 emacs_cv_x11_toolkit_version_6=no
11990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11991 conftest$ac_exeext conftest.$ac_ext
11994 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11995 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11996 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11997 echo "${ECHO_T}6 or newer" >&6; }
11999 cat >>confdefs.h <<\_ACEOF
12000 #define HAVE_X11XTR6 1
12001 _ACEOF
12003 else
12004 { echo "$as_me:$LINENO: result: before 6" >&5
12005 echo "${ECHO_T}before 6" >&6; }
12008 OLDLIBS="$LIBS"
12009 if test x$HAVE_X11XTR6 = xyes; then
12010 LIBS="-lXt -lSM -lICE $LIBS"
12011 else
12012 LIBS="-lXt $LIBS"
12015 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12016 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12017 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020 ac_check_lib_save_LIBS=$LIBS
12021 LIBS="-lXmu $LIBS"
12022 cat >conftest.$ac_ext <<_ACEOF
12023 /* confdefs.h. */
12024 _ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h. */
12029 /* Override any GCC internal prototype to avoid an error.
12030 Use char because int might match the return type of a GCC
12031 builtin and then its argument prototype would still apply. */
12032 #ifdef __cplusplus
12033 extern "C"
12034 #endif
12035 char XmuConvertStandardSelection ();
12037 main ()
12039 return XmuConvertStandardSelection ();
12041 return 0;
12043 _ACEOF
12044 rm -f conftest.$ac_objext conftest$ac_exeext
12045 if { (ac_try="$ac_link"
12046 case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12049 esac
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_link") 2>conftest.er1
12052 ac_status=$?
12053 grep -v '^ *+' conftest.er1 >conftest.err
12054 rm -f conftest.er1
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } && {
12058 test -z "$ac_c_werror_flag" ||
12059 test ! -s conftest.err
12060 } && test -s conftest$ac_exeext &&
12061 $as_test_x conftest$ac_exeext; then
12062 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12063 else
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12071 conftest$ac_exeext conftest.$ac_ext
12072 LIBS=$ac_check_lib_save_LIBS
12074 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12075 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12076 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12077 cat >>confdefs.h <<_ACEOF
12078 #define HAVE_LIBXMU 1
12079 _ACEOF
12081 LIBS="-lXmu $LIBS"
12085 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12088 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12089 if test "${HAVE_X11}" = "yes"; then
12090 if test "${USE_X_TOOLKIT}" != "none"; then
12092 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12093 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12094 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 else
12097 ac_check_lib_save_LIBS=$LIBS
12098 LIBS="-lXext $LIBS"
12099 cat >conftest.$ac_ext <<_ACEOF
12100 /* confdefs.h. */
12101 _ACEOF
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h. */
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12109 #ifdef __cplusplus
12110 extern "C"
12111 #endif
12112 char XShapeQueryExtension ();
12114 main ()
12116 return XShapeQueryExtension ();
12118 return 0;
12120 _ACEOF
12121 rm -f conftest.$ac_objext conftest$ac_exeext
12122 if { (ac_try="$ac_link"
12123 case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12126 esac
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_link") 2>conftest.er1
12129 ac_status=$?
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } && {
12135 test -z "$ac_c_werror_flag" ||
12136 test ! -s conftest.err
12137 } && test -s conftest$ac_exeext &&
12138 $as_test_x conftest$ac_exeext; then
12139 ac_cv_lib_Xext_XShapeQueryExtension=yes
12140 else
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12144 ac_cv_lib_Xext_XShapeQueryExtension=no
12147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12148 conftest$ac_exeext conftest.$ac_ext
12149 LIBS=$ac_check_lib_save_LIBS
12151 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12152 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12153 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12154 cat >>confdefs.h <<_ACEOF
12155 #define HAVE_LIBXEXT 1
12156 _ACEOF
12158 LIBS="-lXext $LIBS"
12165 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12166 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12167 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12168 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171 cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h. */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12177 #include <Xm/Xm.h>
12179 main ()
12181 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12182 int x = 5;
12183 #else
12184 Motif version prior to 2.1.
12185 #endif
12187 return 0;
12189 _ACEOF
12190 rm -f conftest.$ac_objext
12191 if { (ac_try="$ac_compile"
12192 case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12195 esac
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_compile") 2>conftest.er1
12198 ac_status=$?
12199 grep -v '^ *+' conftest.er1 >conftest.err
12200 rm -f conftest.er1
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } && {
12204 test -z "$ac_c_werror_flag" ||
12205 test ! -s conftest.err
12206 } && test -s conftest.$ac_objext; then
12207 emacs_cv_motif_version_2_1=yes
12208 else
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12212 emacs_cv_motif_version_2_1=no
12215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12218 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12219 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12220 if test $emacs_cv_motif_version_2_1 = yes; then
12221 HAVE_LIBXP=no
12223 cat >>confdefs.h <<\_ACEOF
12224 #define HAVE_MOTIF_2_1 1
12225 _ACEOF
12227 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12228 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12229 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232 ac_check_lib_save_LIBS=$LIBS
12233 LIBS="-lXp $LIBS"
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h. */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12241 /* Override any GCC internal prototype to avoid an error.
12242 Use char because int might match the return type of a GCC
12243 builtin and then its argument prototype would still apply. */
12244 #ifdef __cplusplus
12245 extern "C"
12246 #endif
12247 char XpCreateContext ();
12249 main ()
12251 return XpCreateContext ();
12253 return 0;
12255 _ACEOF
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (ac_try="$ac_link"
12258 case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_link") 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest$ac_exeext &&
12273 $as_test_x conftest$ac_exeext; then
12274 ac_cv_lib_Xp_XpCreateContext=yes
12275 else
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12279 ac_cv_lib_Xp_XpCreateContext=no
12282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12283 conftest$ac_exeext conftest.$ac_ext
12284 LIBS=$ac_check_lib_save_LIBS
12286 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12287 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12288 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12289 HAVE_LIBXP=yes
12292 if test ${HAVE_LIBXP} = yes; then
12294 cat >>confdefs.h <<\_ACEOF
12295 #define HAVE_LIBXP 1
12296 _ACEOF
12299 else
12300 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12301 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12302 if test "${emacs_cv_lesstif+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 else
12305 # We put this in CFLAGS temporarily to precede other -I options
12306 # that might be in CFLAGS temporarily.
12307 # We put this in CPPFLAGS where it precedes the other -I options.
12308 OLD_CPPFLAGS=$CPPFLAGS
12309 OLD_CFLAGS=$CFLAGS
12310 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12311 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12312 cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h. */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12320 main ()
12322 int x = 5;
12324 return 0;
12326 _ACEOF
12327 rm -f conftest.$ac_objext
12328 if { (ac_try="$ac_compile"
12329 case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12332 esac
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_compile") 2>conftest.er1
12335 ac_status=$?
12336 grep -v '^ *+' conftest.er1 >conftest.err
12337 rm -f conftest.er1
12338 cat conftest.err >&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } && {
12341 test -z "$ac_c_werror_flag" ||
12342 test ! -s conftest.err
12343 } && test -s conftest.$ac_objext; then
12344 emacs_cv_lesstif=yes
12345 else
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12349 emacs_cv_lesstif=no
12352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12354 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12355 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12356 if test $emacs_cv_lesstif = yes; then
12357 # Make sure this -I option remains in CPPFLAGS after it is set
12358 # back to REAL_CPPFLAGS.
12359 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12360 # have those other -I options anyway. Ultimately, having this
12361 # directory ultimately in CPPFLAGS will be enough.
12362 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12363 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12364 else
12365 CFLAGS=$OLD_CFLAGS
12366 CPPFLAGS=$OLD_CPPFLAGS
12373 USE_TOOLKIT_SCROLL_BARS=no
12374 if test "${with_toolkit_scroll_bars}" != "no"; then
12375 if test "${USE_X_TOOLKIT}" != "none"; then
12376 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12377 cat >>confdefs.h <<\_ACEOF
12378 #define USE_TOOLKIT_SCROLL_BARS 1
12379 _ACEOF
12381 HAVE_XAW3D=no
12382 USE_TOOLKIT_SCROLL_BARS=yes
12383 elif test "${HAVE_XAW3D}" = "yes"; then
12384 cat >>confdefs.h <<\_ACEOF
12385 #define USE_TOOLKIT_SCROLL_BARS 1
12386 _ACEOF
12388 USE_TOOLKIT_SCROLL_BARS=yes
12390 elif test "${HAVE_GTK}" = "yes"; then
12391 cat >>confdefs.h <<\_ACEOF
12392 #define USE_TOOLKIT_SCROLL_BARS 1
12393 _ACEOF
12395 USE_TOOLKIT_SCROLL_BARS=yes
12396 elif test "${HAVE_NS}" = "yes"; then
12397 cat >>confdefs.h <<\_ACEOF
12398 #define USE_TOOLKIT_SCROLL_BARS 1
12399 _ACEOF
12401 USE_TOOLKIT_SCROLL_BARS=yes
12405 cat >conftest.$ac_ext <<_ACEOF
12406 /* confdefs.h. */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12412 #include <X11/Xlib.h>
12413 #include <X11/Xresource.h>
12415 main ()
12417 XIMProc callback;
12419 return 0;
12421 _ACEOF
12422 rm -f conftest.$ac_objext
12423 if { (ac_try="$ac_compile"
12424 case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_compile") 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } && {
12436 test -z "$ac_c_werror_flag" ||
12437 test ! -s conftest.err
12438 } && test -s conftest.$ac_objext; then
12439 HAVE_XIM=yes
12441 cat >>confdefs.h <<\_ACEOF
12442 #define HAVE_XIM 1
12443 _ACEOF
12445 else
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 HAVE_XIM=no
12452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455 if test "${with_xim}" != "no"; then
12457 cat >>confdefs.h <<\_ACEOF
12458 #define USE_XIM 1
12459 _ACEOF
12464 if test "${HAVE_XIM}" != "no"; then
12465 late_CFLAGS=$CFLAGS
12466 if test "$GCC" = yes; then
12467 CFLAGS="$CFLAGS --pedantic-errors"
12469 cat >conftest.$ac_ext <<_ACEOF
12470 /* confdefs.h. */
12471 _ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12476 #include <X11/Xlib.h>
12477 #include <X11/Xresource.h>
12479 main ()
12481 Display *display;
12482 XrmDatabase db;
12483 char *res_name;
12484 char *res_class;
12485 XIMProc callback;
12486 XPointer *client_data;
12487 #ifndef __GNUC__
12488 /* If we're not using GCC, it's probably not XFree86, and this is
12489 probably right, but we can't use something like --pedantic-errors. */
12490 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12491 char*, XIMProc, XPointer*);
12492 #endif
12493 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12494 client_data);
12496 return 0;
12498 _ACEOF
12499 rm -f conftest.$ac_objext
12500 if { (ac_try="$ac_compile"
12501 case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12504 esac
12505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506 (eval "$ac_compile") 2>conftest.er1
12507 ac_status=$?
12508 grep -v '^ *+' conftest.er1 >conftest.err
12509 rm -f conftest.er1
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } && {
12513 test -z "$ac_c_werror_flag" ||
12514 test ! -s conftest.err
12515 } && test -s conftest.$ac_objext; then
12516 emacs_cv_arg6_star=yes
12517 else
12518 echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526 if test "$emacs_cv_arg6_star" = yes; then
12527 cat >>confdefs.h <<\_ACEOF
12528 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12529 _ACEOF
12531 else
12532 cat >>confdefs.h <<\_ACEOF
12533 #define XRegisterIMInstantiateCallback_arg6 XPointer
12534 _ACEOF
12537 CFLAGS=$late_CFLAGS
12540 ### Start of font-backend section.
12542 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12543 HAVE_XFT=maybe
12544 if test "x${with_freetype}" = "xno"; then
12545 with_xft="no";
12547 if test "x${with_xft}" != "xno"; then
12550 succeeded=no
12552 # Extract the first word of "pkg-config", so it can be a program name with args.
12553 set dummy pkg-config; ac_word=$2
12554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559 case $PKG_CONFIG in
12560 [\\/]* | ?:[\\/]*)
12561 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12565 for as_dir in $PATH
12567 IFS=$as_save_IFS
12568 test -z "$as_dir" && as_dir=.
12569 for ac_exec_ext in '' $ac_executable_extensions; do
12570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12571 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12573 break 2
12575 done
12576 done
12577 IFS=$as_save_IFS
12579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12581 esac
12583 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12584 if test -n "$PKG_CONFIG"; then
12585 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12586 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12587 else
12588 { echo "$as_me:$LINENO: result: no" >&5
12589 echo "${ECHO_T}no" >&6; }
12594 if test "$PKG_CONFIG" = "no" ; then
12595 HAVE_XFT=no
12596 else
12597 PKG_CONFIG_MIN_VERSION=0.9.0
12598 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12599 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12600 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12602 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12603 { echo "$as_me:$LINENO: result: yes" >&5
12604 echo "${ECHO_T}yes" >&6; }
12605 succeeded=yes
12607 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12608 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12609 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12610 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12611 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12613 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12614 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12615 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12616 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12617 echo "${ECHO_T}$XFT_LIBS" >&6; }
12618 else
12619 { echo "$as_me:$LINENO: result: no" >&5
12620 echo "${ECHO_T}no" >&6; }
12621 XFT_CFLAGS=""
12622 XFT_LIBS=""
12623 ## If we have a custom action on failure, don't print errors, but
12624 ## do set a variable so people can do so.
12625 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12631 else
12632 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12633 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12637 if test $succeeded = yes; then
12639 else
12640 HAVE_XFT=no
12643 if test "$HAVE_XFT" != no; then
12644 OLD_CPPFLAGS="$CPPFLAGS"
12645 OLD_CFLAGS="$CFLAGS"
12646 OLD_LIBS="$LIBS"
12647 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12648 CFLAGS="$CFLAGS $XFT_CFLAGS"
12649 LIBS="$XFT_LIBS $LIBS"
12650 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12651 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12652 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12653 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12657 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12658 else
12659 # Is the header compilable?
12660 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12661 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12662 cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h. */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12668 $ac_includes_default
12669 #include <X11/Xft/Xft.h>
12670 _ACEOF
12671 rm -f conftest.$ac_objext
12672 if { (ac_try="$ac_compile"
12673 case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12676 esac
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_compile") 2>conftest.er1
12679 ac_status=$?
12680 grep -v '^ *+' conftest.er1 >conftest.err
12681 rm -f conftest.er1
12682 cat conftest.err >&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } && {
12685 test -z "$ac_c_werror_flag" ||
12686 test ! -s conftest.err
12687 } && test -s conftest.$ac_objext; then
12688 ac_header_compiler=yes
12689 else
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 ac_header_compiler=no
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12698 echo "${ECHO_T}$ac_header_compiler" >&6; }
12700 # Is the header present?
12701 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12702 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h. */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 #include <X11/Xft/Xft.h>
12710 _ACEOF
12711 if { (ac_try="$ac_cpp conftest.$ac_ext"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12718 ac_status=$?
12719 grep -v '^ *+' conftest.er1 >conftest.err
12720 rm -f conftest.er1
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } >/dev/null && {
12724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12725 test ! -s conftest.err
12726 }; then
12727 ac_header_preproc=yes
12728 else
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12732 ac_header_preproc=no
12735 rm -f conftest.err conftest.$ac_ext
12736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12737 echo "${ECHO_T}$ac_header_preproc" >&6; }
12739 # So? What about this header?
12740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12741 yes:no: )
12742 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12743 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12744 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12745 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12746 ac_header_preproc=yes
12748 no:yes:* )
12749 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12750 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12756 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12758 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12760 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12763 esac
12764 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12765 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12766 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12768 else
12769 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12771 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12772 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12775 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12776 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12777 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12778 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781 ac_check_lib_save_LIBS=$LIBS
12782 LIBS="-lXft $XFT_LIBS $LIBS"
12783 cat >conftest.$ac_ext <<_ACEOF
12784 /* confdefs.h. */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12790 /* Override any GCC internal prototype to avoid an error.
12791 Use char because int might match the return type of a GCC
12792 builtin and then its argument prototype would still apply. */
12793 #ifdef __cplusplus
12794 extern "C"
12795 #endif
12796 char XftFontOpen ();
12798 main ()
12800 return XftFontOpen ();
12802 return 0;
12804 _ACEOF
12805 rm -f conftest.$ac_objext conftest$ac_exeext
12806 if { (ac_try="$ac_link"
12807 case "(($ac_try" in
12808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809 *) ac_try_echo=$ac_try;;
12810 esac
12811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12812 (eval "$ac_link") 2>conftest.er1
12813 ac_status=$?
12814 grep -v '^ *+' conftest.er1 >conftest.err
12815 rm -f conftest.er1
12816 cat conftest.err >&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } && {
12819 test -z "$ac_c_werror_flag" ||
12820 test ! -s conftest.err
12821 } && test -s conftest$ac_exeext &&
12822 $as_test_x conftest$ac_exeext; then
12823 ac_cv_lib_Xft_XftFontOpen=yes
12824 else
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 ac_cv_lib_Xft_XftFontOpen=no
12831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12832 conftest$ac_exeext conftest.$ac_ext
12833 LIBS=$ac_check_lib_save_LIBS
12835 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12836 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12837 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12838 HAVE_XFT=yes
12845 if test "${HAVE_XFT}" = "yes"; then
12847 cat >>confdefs.h <<\_ACEOF
12848 #define HAVE_XFT 1
12849 _ACEOF
12852 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12853 else
12854 CPPFLAGS="$OLD_CPPFLAGS"
12855 CFLAGS="$OLD_CFLAGS"
12856 LIBS="$OLD_LIBS"
12857 fi # "${HAVE_XFT}" = "yes"
12858 fi # "$HAVE_XFT" != no
12859 fi # "x${with_xft}" != "xno"
12861 if test "$HAVE_XFT" != "yes"; then
12862 HAVE_XFT=no
12866 HAVE_FREETYPE=no
12867 ### Use -lfreetype if available, unless `--with-freetype=no'.
12868 if test "${HAVE_XFT}" = "yes"; then
12869 HAVE_FREETYPE=yes
12870 elif test "x${with_freetype}" != "xno"; then
12873 succeeded=no
12875 # Extract the first word of "pkg-config", so it can be a program name with args.
12876 set dummy pkg-config; ac_word=$2
12877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12879 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12881 else
12882 case $PKG_CONFIG in
12883 [\\/]* | ?:[\\/]*)
12884 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888 for as_dir in $PATH
12890 IFS=$as_save_IFS
12891 test -z "$as_dir" && as_dir=.
12892 for ac_exec_ext in '' $ac_executable_extensions; do
12893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12894 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12896 break 2
12898 done
12899 done
12900 IFS=$as_save_IFS
12902 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12904 esac
12906 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12907 if test -n "$PKG_CONFIG"; then
12908 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12909 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12910 else
12911 { echo "$as_me:$LINENO: result: no" >&5
12912 echo "${ECHO_T}no" >&6; }
12917 if test "$PKG_CONFIG" = "no" ; then
12918 HAVE_FREETYPE=no
12919 else
12920 PKG_CONFIG_MIN_VERSION=0.9.0
12921 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12922 { echo "$as_me:$LINENO: checking for freetype2" >&5
12923 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12925 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12926 { echo "$as_me:$LINENO: result: yes" >&5
12927 echo "${ECHO_T}yes" >&6; }
12928 succeeded=yes
12930 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12931 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12932 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12933 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12934 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12936 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12937 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12938 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12939 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12940 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12941 else
12942 { echo "$as_me:$LINENO: result: no" >&5
12943 echo "${ECHO_T}no" >&6; }
12944 FREETYPE_CFLAGS=""
12945 FREETYPE_LIBS=""
12946 ## If we have a custom action on failure, don't print errors, but
12947 ## do set a variable so people can do so.
12948 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12954 else
12955 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12956 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12960 if test $succeeded = yes; then
12961 HAVE_FREETYPE=yes
12962 else
12963 HAVE_FREETYPE=no
12966 if test "${HAVE_FREETYPE}" = "yes"; then
12968 succeeded=no
12970 # Extract the first word of "pkg-config", so it can be a program name with args.
12971 set dummy pkg-config; ac_word=$2
12972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12974 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977 case $PKG_CONFIG in
12978 [\\/]* | ?:[\\/]*)
12979 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12983 for as_dir in $PATH
12985 IFS=$as_save_IFS
12986 test -z "$as_dir" && as_dir=.
12987 for ac_exec_ext in '' $ac_executable_extensions; do
12988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12989 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12991 break 2
12993 done
12994 done
12995 IFS=$as_save_IFS
12997 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12999 esac
13001 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13002 if test -n "$PKG_CONFIG"; then
13003 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13004 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13005 else
13006 { echo "$as_me:$LINENO: result: no" >&5
13007 echo "${ECHO_T}no" >&6; }
13012 if test "$PKG_CONFIG" = "no" ; then
13013 HAVE_FC=no
13014 else
13015 PKG_CONFIG_MIN_VERSION=0.9.0
13016 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13017 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13018 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13020 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13021 { echo "$as_me:$LINENO: result: yes" >&5
13022 echo "${ECHO_T}yes" >&6; }
13023 succeeded=yes
13025 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13026 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13027 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13028 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13029 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13031 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13032 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13033 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13034 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13035 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13036 else
13037 { echo "$as_me:$LINENO: result: no" >&5
13038 echo "${ECHO_T}no" >&6; }
13039 FONTCONFIG_CFLAGS=""
13040 FONTCONFIG_LIBS=""
13041 ## If we have a custom action on failure, don't print errors, but
13042 ## do set a variable so people can do so.
13043 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13049 else
13050 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13051 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13055 if test $succeeded = yes; then
13056 HAVE_FC=yes
13057 else
13058 HAVE_FC=no
13061 if test "${HAVE_FC}" = "no"; then
13062 HAVE_FREETYPE=no
13067 HAVE_LIBOTF=no
13068 if test "${HAVE_FREETYPE}" = "yes"; then
13070 cat >>confdefs.h <<\_ACEOF
13071 #define HAVE_FREETYPE 1
13072 _ACEOF
13074 if test "${with_libotf}" != "no"; then
13076 succeeded=no
13078 # Extract the first word of "pkg-config", so it can be a program name with args.
13079 set dummy pkg-config; ac_word=$2
13080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13082 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 else
13085 case $PKG_CONFIG in
13086 [\\/]* | ?:[\\/]*)
13087 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091 for as_dir in $PATH
13093 IFS=$as_save_IFS
13094 test -z "$as_dir" && as_dir=.
13095 for ac_exec_ext in '' $ac_executable_extensions; do
13096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13097 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13099 break 2
13101 done
13102 done
13103 IFS=$as_save_IFS
13105 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13107 esac
13109 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13110 if test -n "$PKG_CONFIG"; then
13111 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13112 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13113 else
13114 { echo "$as_me:$LINENO: result: no" >&5
13115 echo "${ECHO_T}no" >&6; }
13120 if test "$PKG_CONFIG" = "no" ; then
13121 HAVE_LIBOTF=no
13122 else
13123 PKG_CONFIG_MIN_VERSION=0.9.0
13124 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13125 { echo "$as_me:$LINENO: checking for libotf" >&5
13126 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13128 if $PKG_CONFIG --exists "libotf" 2>&5; then
13129 { echo "$as_me:$LINENO: result: yes" >&5
13130 echo "${ECHO_T}yes" >&6; }
13131 succeeded=yes
13133 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13134 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13135 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13136 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13137 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13139 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13140 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13141 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13142 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13143 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13144 else
13145 { echo "$as_me:$LINENO: result: no" >&5
13146 echo "${ECHO_T}no" >&6; }
13147 LIBOTF_CFLAGS=""
13148 LIBOTF_LIBS=""
13149 ## If we have a custom action on failure, don't print errors, but
13150 ## do set a variable so people can do so.
13151 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13157 else
13158 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13159 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13163 if test $succeeded = yes; then
13164 HAVE_LIBOTF=yes
13165 else
13166 HAVE_LIBOTF=no
13169 if test "$HAVE_LIBOTF" = "yes"; then
13171 cat >>confdefs.h <<\_ACEOF
13172 #define HAVE_LIBOTF 1
13173 _ACEOF
13179 HAVE_M17N_FLT=no
13180 if test "${with_m17n_flt}" != "no"; then
13182 succeeded=no
13184 # Extract the first word of "pkg-config", so it can be a program name with args.
13185 set dummy pkg-config; ac_word=$2
13186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13188 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 else
13191 case $PKG_CONFIG in
13192 [\\/]* | ?:[\\/]*)
13193 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197 for as_dir in $PATH
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
13201 for ac_exec_ext in '' $ac_executable_extensions; do
13202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13203 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13205 break 2
13207 done
13208 done
13209 IFS=$as_save_IFS
13211 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13213 esac
13215 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13216 if test -n "$PKG_CONFIG"; then
13217 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13218 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13219 else
13220 { echo "$as_me:$LINENO: result: no" >&5
13221 echo "${ECHO_T}no" >&6; }
13226 if test "$PKG_CONFIG" = "no" ; then
13227 HAVE_M17N_FLT=no
13228 else
13229 PKG_CONFIG_MIN_VERSION=0.9.0
13230 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13231 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13232 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13234 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13235 { echo "$as_me:$LINENO: result: yes" >&5
13236 echo "${ECHO_T}yes" >&6; }
13237 succeeded=yes
13239 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13240 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13241 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13242 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13243 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13245 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13246 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13247 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13248 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13249 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13250 else
13251 { echo "$as_me:$LINENO: result: no" >&5
13252 echo "${ECHO_T}no" >&6; }
13253 M17N_FLT_CFLAGS=""
13254 M17N_FLT_LIBS=""
13255 ## If we have a custom action on failure, don't print errors, but
13256 ## do set a variable so people can do so.
13257 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13263 else
13264 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13265 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13269 if test $succeeded = yes; then
13270 HAVE_M17N_FLT=yes
13271 else
13272 HAVE_M17N_FLT=no
13275 if test "$HAVE_M17N_FLT" = "yes"; then
13277 cat >>confdefs.h <<\_ACEOF
13278 #define HAVE_M17N_FLT 1
13279 _ACEOF
13293 ### End of font-backend section.
13295 ### Use -lXpm if available, unless `--with-xpm=no'.
13296 HAVE_XPM=no
13297 if test "${HAVE_X11}" = "yes"; then
13298 if test "${with_xpm}" != "no"; then
13299 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13300 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13301 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13302 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13306 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13307 else
13308 # Is the header compilable?
13309 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13310 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13311 cat >conftest.$ac_ext <<_ACEOF
13312 /* confdefs.h. */
13313 _ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13317 $ac_includes_default
13318 #include <X11/xpm.h>
13319 _ACEOF
13320 rm -f conftest.$ac_objext
13321 if { (ac_try="$ac_compile"
13322 case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13325 esac
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_compile") 2>conftest.er1
13328 ac_status=$?
13329 grep -v '^ *+' conftest.er1 >conftest.err
13330 rm -f conftest.er1
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } && {
13334 test -z "$ac_c_werror_flag" ||
13335 test ! -s conftest.err
13336 } && test -s conftest.$ac_objext; then
13337 ac_header_compiler=yes
13338 else
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13342 ac_header_compiler=no
13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13347 echo "${ECHO_T}$ac_header_compiler" >&6; }
13349 # Is the header present?
13350 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13351 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13352 cat >conftest.$ac_ext <<_ACEOF
13353 /* confdefs.h. */
13354 _ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 #include <X11/xpm.h>
13359 _ACEOF
13360 if { (ac_try="$ac_cpp conftest.$ac_ext"
13361 case "(($ac_try" in
13362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363 *) ac_try_echo=$ac_try;;
13364 esac
13365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13367 ac_status=$?
13368 grep -v '^ *+' conftest.er1 >conftest.err
13369 rm -f conftest.er1
13370 cat conftest.err >&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } >/dev/null && {
13373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13374 test ! -s conftest.err
13375 }; then
13376 ac_header_preproc=yes
13377 else
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13381 ac_header_preproc=no
13384 rm -f conftest.err conftest.$ac_ext
13385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13386 echo "${ECHO_T}$ac_header_preproc" >&6; }
13388 # So? What about this header?
13389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13390 yes:no: )
13391 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13392 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13393 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13394 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13395 ac_header_preproc=yes
13397 no:yes:* )
13398 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13399 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13401 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13402 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13403 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13405 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13407 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13409 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13412 esac
13413 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13414 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13415 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13416 echo $ECHO_N "(cached) $ECHO_C" >&6
13417 else
13418 ac_cv_header_X11_xpm_h=$ac_header_preproc
13420 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13421 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13424 if test $ac_cv_header_X11_xpm_h = yes; then
13425 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13426 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13427 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430 ac_check_lib_save_LIBS=$LIBS
13431 LIBS="-lXpm -lX11 $LIBS"
13432 cat >conftest.$ac_ext <<_ACEOF
13433 /* confdefs.h. */
13434 _ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13439 /* Override any GCC internal prototype to avoid an error.
13440 Use char because int might match the return type of a GCC
13441 builtin and then its argument prototype would still apply. */
13442 #ifdef __cplusplus
13443 extern "C"
13444 #endif
13445 char XpmReadFileToPixmap ();
13447 main ()
13449 return XpmReadFileToPixmap ();
13451 return 0;
13453 _ACEOF
13454 rm -f conftest.$ac_objext conftest$ac_exeext
13455 if { (ac_try="$ac_link"
13456 case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13459 esac
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_link") 2>conftest.er1
13462 ac_status=$?
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } && {
13468 test -z "$ac_c_werror_flag" ||
13469 test ! -s conftest.err
13470 } && test -s conftest$ac_exeext &&
13471 $as_test_x conftest$ac_exeext; then
13472 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13473 else
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13477 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13481 conftest$ac_exeext conftest.$ac_ext
13482 LIBS=$ac_check_lib_save_LIBS
13484 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13485 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13486 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13487 HAVE_XPM=yes
13493 if test "${HAVE_XPM}" = "yes"; then
13494 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13495 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13496 cat >conftest.$ac_ext <<_ACEOF
13497 /* confdefs.h. */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13502 #include "X11/xpm.h"
13503 #ifndef XpmReturnAllocPixels
13504 no_return_alloc_pixels
13505 #endif
13507 _ACEOF
13508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13509 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13510 HAVE_XPM=no
13511 else
13512 HAVE_XPM=yes
13514 rm -f conftest*
13517 if test "${HAVE_XPM}" = "yes"; then
13518 { echo "$as_me:$LINENO: result: yes" >&5
13519 echo "${ECHO_T}yes" >&6; }
13520 else
13521 { echo "$as_me:$LINENO: result: no" >&5
13522 echo "${ECHO_T}no" >&6; }
13527 if test "${HAVE_XPM}" = "yes"; then
13529 cat >>confdefs.h <<\_ACEOF
13530 #define HAVE_XPM 1
13531 _ACEOF
13536 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13537 HAVE_JPEG=no
13538 if test "${HAVE_X11}" = "yes"; then
13539 if test "${with_jpeg}" != "no"; then
13540 if test "${ac_cv_header_jerror_h+set}" = set; then
13541 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13542 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13543 if test "${ac_cv_header_jerror_h+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13547 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13548 else
13549 # Is the header compilable?
13550 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13551 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13552 cat >conftest.$ac_ext <<_ACEOF
13553 /* confdefs.h. */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 $ac_includes_default
13559 #include <jerror.h>
13560 _ACEOF
13561 rm -f conftest.$ac_objext
13562 if { (ac_try="$ac_compile"
13563 case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13566 esac
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_compile") 2>conftest.er1
13569 ac_status=$?
13570 grep -v '^ *+' conftest.er1 >conftest.err
13571 rm -f conftest.er1
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } && {
13575 test -z "$ac_c_werror_flag" ||
13576 test ! -s conftest.err
13577 } && test -s conftest.$ac_objext; then
13578 ac_header_compiler=yes
13579 else
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_header_compiler=no
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13588 echo "${ECHO_T}$ac_header_compiler" >&6; }
13590 # Is the header present?
13591 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13592 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13593 cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h. */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 #include <jerror.h>
13600 _ACEOF
13601 if { (ac_try="$ac_cpp conftest.$ac_ext"
13602 case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605 esac
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13608 ac_status=$?
13609 grep -v '^ *+' conftest.er1 >conftest.err
13610 rm -f conftest.er1
13611 cat conftest.err >&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } >/dev/null && {
13614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13615 test ! -s conftest.err
13616 }; then
13617 ac_header_preproc=yes
13618 else
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13622 ac_header_preproc=no
13625 rm -f conftest.err conftest.$ac_ext
13626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13627 echo "${ECHO_T}$ac_header_preproc" >&6; }
13629 # So? What about this header?
13630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13631 yes:no: )
13632 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13633 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13634 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13635 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13636 ac_header_preproc=yes
13638 no:yes:* )
13639 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13640 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13641 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13642 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13644 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13646 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13648 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13650 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13653 esac
13654 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13655 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13656 if test "${ac_cv_header_jerror_h+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 else
13659 ac_cv_header_jerror_h=$ac_header_preproc
13661 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13662 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13665 if test $ac_cv_header_jerror_h = yes; then
13666 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13667 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13668 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 else
13671 ac_check_lib_save_LIBS=$LIBS
13672 LIBS="-ljpeg $LIBS"
13673 cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h. */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13680 /* Override any GCC internal prototype to avoid an error.
13681 Use char because int might match the return type of a GCC
13682 builtin and then its argument prototype would still apply. */
13683 #ifdef __cplusplus
13684 extern "C"
13685 #endif
13686 char jpeg_destroy_compress ();
13688 main ()
13690 return jpeg_destroy_compress ();
13692 return 0;
13694 _ACEOF
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (ac_try="$ac_link"
13697 case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13700 esac
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_link") 2>conftest.er1
13703 ac_status=$?
13704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } && {
13709 test -z "$ac_c_werror_flag" ||
13710 test ! -s conftest.err
13711 } && test -s conftest$ac_exeext &&
13712 $as_test_x conftest$ac_exeext; then
13713 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13714 else
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13718 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13722 conftest$ac_exeext conftest.$ac_ext
13723 LIBS=$ac_check_lib_save_LIBS
13725 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13726 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13727 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13728 HAVE_JPEG=yes
13737 if test "${HAVE_JPEG}" = "yes"; then
13738 cat >>confdefs.h <<\_ACEOF
13739 #define HAVE_JPEG 1
13740 _ACEOF
13742 cat >conftest.$ac_ext <<_ACEOF
13743 /* confdefs.h. */
13744 _ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13748 #include <jpeglib.h>
13749 version=JPEG_LIB_VERSION
13751 _ACEOF
13752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13753 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13754 cat >>confdefs.h <<\_ACEOF
13755 #define HAVE_JPEG 1
13756 _ACEOF
13758 else
13759 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13760 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13761 HAVE_JPEG=no
13763 rm -f conftest*
13768 ### Use -lpng if available, unless `--with-png=no'.
13769 HAVE_PNG=no
13770 if test "${HAVE_X11}" = "yes"; then
13771 if test "${with_png}" != "no"; then
13772 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13773 # in /usr/include/libpng.
13776 for ac_header in png.h libpng/png.h
13778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 ac_res=`eval echo '${'$as_ac_Header'}'`
13786 { echo "$as_me:$LINENO: result: $ac_res" >&5
13787 echo "${ECHO_T}$ac_res" >&6; }
13788 else
13789 # Is the header compilable?
13790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13792 cat >conftest.$ac_ext <<_ACEOF
13793 /* confdefs.h. */
13794 _ACEOF
13795 cat confdefs.h >>conftest.$ac_ext
13796 cat >>conftest.$ac_ext <<_ACEOF
13797 /* end confdefs.h. */
13798 $ac_includes_default
13799 #include <$ac_header>
13800 _ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (ac_try="$ac_compile"
13803 case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13806 esac
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_compile") 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } && {
13815 test -z "$ac_c_werror_flag" ||
13816 test ! -s conftest.err
13817 } && test -s conftest.$ac_objext; then
13818 ac_header_compiler=yes
13819 else
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 ac_header_compiler=no
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13828 echo "${ECHO_T}$ac_header_compiler" >&6; }
13830 # Is the header present?
13831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13833 cat >conftest.$ac_ext <<_ACEOF
13834 /* confdefs.h. */
13835 _ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13839 #include <$ac_header>
13840 _ACEOF
13841 if { (ac_try="$ac_cpp conftest.$ac_ext"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } >/dev/null && {
13854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13856 }; then
13857 ac_header_preproc=yes
13858 else
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13862 ac_header_preproc=no
13865 rm -f conftest.err conftest.$ac_ext
13866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13867 echo "${ECHO_T}$ac_header_preproc" >&6; }
13869 # So? What about this header?
13870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13871 yes:no: )
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13876 ac_header_preproc=yes
13878 no:yes:* )
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13893 esac
13894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899 eval "$as_ac_Header=\$ac_header_preproc"
13901 ac_res=`eval echo '${'$as_ac_Header'}'`
13902 { echo "$as_me:$LINENO: result: $ac_res" >&5
13903 echo "${ECHO_T}$ac_res" >&6; }
13906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13907 cat >>confdefs.h <<_ACEOF
13908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13909 _ACEOF
13913 done
13915 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13916 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13917 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13918 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13920 else
13921 ac_check_lib_save_LIBS=$LIBS
13922 LIBS="-lpng -lz -lm $LIBS"
13923 cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h. */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13930 /* Override any GCC internal prototype to avoid an error.
13931 Use char because int might match the return type of a GCC
13932 builtin and then its argument prototype would still apply. */
13933 #ifdef __cplusplus
13934 extern "C"
13935 #endif
13936 char png_get_channels ();
13938 main ()
13940 return png_get_channels ();
13942 return 0;
13944 _ACEOF
13945 rm -f conftest.$ac_objext conftest$ac_exeext
13946 if { (ac_try="$ac_link"
13947 case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13950 esac
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_link") 2>conftest.er1
13953 ac_status=$?
13954 grep -v '^ *+' conftest.er1 >conftest.err
13955 rm -f conftest.er1
13956 cat conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } && {
13959 test -z "$ac_c_werror_flag" ||
13960 test ! -s conftest.err
13961 } && test -s conftest$ac_exeext &&
13962 $as_test_x conftest$ac_exeext; then
13963 ac_cv_lib_png_png_get_channels=yes
13964 else
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 ac_cv_lib_png_png_get_channels=no
13971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13972 conftest$ac_exeext conftest.$ac_ext
13973 LIBS=$ac_check_lib_save_LIBS
13975 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13976 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13977 if test $ac_cv_lib_png_png_get_channels = yes; then
13978 HAVE_PNG=yes
13984 if test "${HAVE_PNG}" = "yes"; then
13986 cat >>confdefs.h <<\_ACEOF
13987 #define HAVE_PNG 1
13988 _ACEOF
13993 ### Use -ltiff if available, unless `--with-tiff=no'.
13994 HAVE_TIFF=no
13995 if test "${HAVE_X11}" = "yes"; then
13996 if test "${with_tiff}" != "no"; then
13997 if test "${ac_cv_header_tiffio_h+set}" = set; then
13998 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13999 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14000 if test "${ac_cv_header_tiffio_h+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14004 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14005 else
14006 # Is the header compilable?
14007 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14008 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14009 cat >conftest.$ac_ext <<_ACEOF
14010 /* confdefs.h. */
14011 _ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14015 $ac_includes_default
14016 #include <tiffio.h>
14017 _ACEOF
14018 rm -f conftest.$ac_objext
14019 if { (ac_try="$ac_compile"
14020 case "(($ac_try" in
14021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022 *) ac_try_echo=$ac_try;;
14023 esac
14024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025 (eval "$ac_compile") 2>conftest.er1
14026 ac_status=$?
14027 grep -v '^ *+' conftest.er1 >conftest.err
14028 rm -f conftest.er1
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } && {
14032 test -z "$ac_c_werror_flag" ||
14033 test ! -s conftest.err
14034 } && test -s conftest.$ac_objext; then
14035 ac_header_compiler=yes
14036 else
14037 echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14040 ac_header_compiler=no
14043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14045 echo "${ECHO_T}$ac_header_compiler" >&6; }
14047 # Is the header present?
14048 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14049 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14050 cat >conftest.$ac_ext <<_ACEOF
14051 /* confdefs.h. */
14052 _ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14056 #include <tiffio.h>
14057 _ACEOF
14058 if { (ac_try="$ac_cpp conftest.$ac_ext"
14059 case "(($ac_try" in
14060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061 *) ac_try_echo=$ac_try;;
14062 esac
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14065 ac_status=$?
14066 grep -v '^ *+' conftest.er1 >conftest.err
14067 rm -f conftest.er1
14068 cat conftest.err >&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } >/dev/null && {
14071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14072 test ! -s conftest.err
14073 }; then
14074 ac_header_preproc=yes
14075 else
14076 echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14079 ac_header_preproc=no
14082 rm -f conftest.err conftest.$ac_ext
14083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14084 echo "${ECHO_T}$ac_header_preproc" >&6; }
14086 # So? What about this header?
14087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14088 yes:no: )
14089 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14090 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14091 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14092 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14093 ac_header_preproc=yes
14095 no:yes:* )
14096 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14097 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14099 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14101 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14103 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14105 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14107 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14110 esac
14111 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14112 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14113 if test "${ac_cv_header_tiffio_h+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14116 ac_cv_header_tiffio_h=$ac_header_preproc
14118 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14119 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14122 if test $ac_cv_header_tiffio_h = yes; then
14123 tifflibs="-lz -lm"
14124 # At least one tiff package requires the jpeg library.
14125 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14126 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14127 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14128 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131 ac_check_lib_save_LIBS=$LIBS
14132 LIBS="-ltiff $tifflibs $LIBS"
14133 cat >conftest.$ac_ext <<_ACEOF
14134 /* confdefs.h. */
14135 _ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14140 /* Override any GCC internal prototype to avoid an error.
14141 Use char because int might match the return type of a GCC
14142 builtin and then its argument prototype would still apply. */
14143 #ifdef __cplusplus
14144 extern "C"
14145 #endif
14146 char TIFFGetVersion ();
14148 main ()
14150 return TIFFGetVersion ();
14152 return 0;
14154 _ACEOF
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (ac_try="$ac_link"
14157 case "(($ac_try" in
14158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14160 esac
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_link") 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } && {
14169 test -z "$ac_c_werror_flag" ||
14170 test ! -s conftest.err
14171 } && test -s conftest$ac_exeext &&
14172 $as_test_x conftest$ac_exeext; then
14173 ac_cv_lib_tiff_TIFFGetVersion=yes
14174 else
14175 echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14178 ac_cv_lib_tiff_TIFFGetVersion=no
14181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14182 conftest$ac_exeext conftest.$ac_ext
14183 LIBS=$ac_check_lib_save_LIBS
14185 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14186 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14187 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14188 HAVE_TIFF=yes
14196 if test "${HAVE_TIFF}" = "yes"; then
14198 cat >>confdefs.h <<\_ACEOF
14199 #define HAVE_TIFF 1
14200 _ACEOF
14205 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14206 HAVE_GIF=no
14207 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14208 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14209 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14210 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14211 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14215 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14216 else
14217 # Is the header compilable?
14218 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14219 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14220 cat >conftest.$ac_ext <<_ACEOF
14221 /* confdefs.h. */
14222 _ACEOF
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14226 $ac_includes_default
14227 #include <gif_lib.h>
14228 _ACEOF
14229 rm -f conftest.$ac_objext
14230 if { (ac_try="$ac_compile"
14231 case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14234 esac
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_compile") 2>conftest.er1
14237 ac_status=$?
14238 grep -v '^ *+' conftest.er1 >conftest.err
14239 rm -f conftest.er1
14240 cat conftest.err >&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); } && {
14243 test -z "$ac_c_werror_flag" ||
14244 test ! -s conftest.err
14245 } && test -s conftest.$ac_objext; then
14246 ac_header_compiler=yes
14247 else
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14251 ac_header_compiler=no
14254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14256 echo "${ECHO_T}$ac_header_compiler" >&6; }
14258 # Is the header present?
14259 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14260 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14261 cat >conftest.$ac_ext <<_ACEOF
14262 /* confdefs.h. */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 #include <gif_lib.h>
14268 _ACEOF
14269 if { (ac_try="$ac_cpp conftest.$ac_ext"
14270 case "(($ac_try" in
14271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272 *) ac_try_echo=$ac_try;;
14273 esac
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14276 ac_status=$?
14277 grep -v '^ *+' conftest.er1 >conftest.err
14278 rm -f conftest.er1
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } >/dev/null && {
14282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14283 test ! -s conftest.err
14284 }; then
14285 ac_header_preproc=yes
14286 else
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14290 ac_header_preproc=no
14293 rm -f conftest.err conftest.$ac_ext
14294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14295 echo "${ECHO_T}$ac_header_preproc" >&6; }
14297 # So? What about this header?
14298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14299 yes:no: )
14300 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14301 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14303 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14304 ac_header_preproc=yes
14306 no:yes:* )
14307 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14308 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14309 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14310 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14311 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14312 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14314 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14316 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14318 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14321 esac
14322 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14323 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14324 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 else
14327 ac_cv_header_gif_lib_h=$ac_header_preproc
14329 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14330 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14333 if test $ac_cv_header_gif_lib_h = yes; then
14334 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14335 # Earlier versions can crash Emacs.
14336 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14337 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14338 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 else
14341 ac_check_lib_save_LIBS=$LIBS
14342 LIBS="-lgif $LIBS"
14343 cat >conftest.$ac_ext <<_ACEOF
14344 /* confdefs.h. */
14345 _ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h. */
14350 /* Override any GCC internal prototype to avoid an error.
14351 Use char because int might match the return type of a GCC
14352 builtin and then its argument prototype would still apply. */
14353 #ifdef __cplusplus
14354 extern "C"
14355 #endif
14356 char EGifPutExtensionLast ();
14358 main ()
14360 return EGifPutExtensionLast ();
14362 return 0;
14364 _ACEOF
14365 rm -f conftest.$ac_objext conftest$ac_exeext
14366 if { (ac_try="$ac_link"
14367 case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14370 esac
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_link") 2>conftest.er1
14373 ac_status=$?
14374 grep -v '^ *+' conftest.er1 >conftest.err
14375 rm -f conftest.er1
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } && {
14379 test -z "$ac_c_werror_flag" ||
14380 test ! -s conftest.err
14381 } && test -s conftest$ac_exeext &&
14382 $as_test_x conftest$ac_exeext; then
14383 ac_cv_lib_gif_EGifPutExtensionLast=yes
14384 else
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14388 ac_cv_lib_gif_EGifPutExtensionLast=no
14391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14392 conftest$ac_exeext conftest.$ac_ext
14393 LIBS=$ac_check_lib_save_LIBS
14395 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14396 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14397 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14398 HAVE_GIF=yes
14399 else
14400 try_libungif=yes
14407 if test "$HAVE_GIF" = yes; then
14408 ac_gif_lib_name="-lgif"
14411 # If gif_lib.h but no libgif, try libungif.
14412 if test x"$try_libungif" = xyes; then
14413 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14414 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14415 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14417 else
14418 ac_check_lib_save_LIBS=$LIBS
14419 LIBS="-lungif $LIBS"
14420 cat >conftest.$ac_ext <<_ACEOF
14421 /* confdefs.h. */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14427 /* Override any GCC internal prototype to avoid an error.
14428 Use char because int might match the return type of a GCC
14429 builtin and then its argument prototype would still apply. */
14430 #ifdef __cplusplus
14431 extern "C"
14432 #endif
14433 char EGifPutExtensionLast ();
14435 main ()
14437 return EGifPutExtensionLast ();
14439 return 0;
14441 _ACEOF
14442 rm -f conftest.$ac_objext conftest$ac_exeext
14443 if { (ac_try="$ac_link"
14444 case "(($ac_try" in
14445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446 *) ac_try_echo=$ac_try;;
14447 esac
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_link") 2>conftest.er1
14450 ac_status=$?
14451 grep -v '^ *+' conftest.er1 >conftest.err
14452 rm -f conftest.er1
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } && {
14456 test -z "$ac_c_werror_flag" ||
14457 test ! -s conftest.err
14458 } && test -s conftest$ac_exeext &&
14459 $as_test_x conftest$ac_exeext; then
14460 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14461 else
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14465 ac_cv_lib_ungif_EGifPutExtensionLast=no
14468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14469 conftest$ac_exeext conftest.$ac_ext
14470 LIBS=$ac_check_lib_save_LIBS
14472 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14473 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14474 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14475 HAVE_GIF=yes
14479 if test "$HAVE_GIF" = yes; then
14481 cat >>confdefs.h <<\_ACEOF
14482 #define LIBGIF -lungif
14483 _ACEOF
14485 ac_gif_lib_name="-lungif"
14489 if test "${HAVE_GIF}" = "yes"; then
14491 cat >>confdefs.h <<\_ACEOF
14492 #define HAVE_GIF 1
14493 _ACEOF
14498 if test "${HAVE_X11}" = "yes"; then
14499 MISSING=""
14500 WITH_NO=""
14501 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14502 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14503 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14504 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14505 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14506 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14507 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14508 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14509 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14510 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14512 if test "X${MISSING}" != X; then
14513 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14514 $MISSING
14515 Maybe some development libraries/packages are missing?
14516 If you don't want to link with them give
14517 $WITH_NO
14518 as options to configure" >&5
14519 echo "$as_me: 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" >&2;}
14525 { (exit 1); exit 1; }; }
14529 ### Use -lgpm if available, unless `--with-gpm=no'.
14530 HAVE_GPM=no
14531 if test "${with_gpm}" != "no"; then
14532 if test "${ac_cv_header_gpm_h+set}" = set; then
14533 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14534 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14535 if test "${ac_cv_header_gpm_h+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14539 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14540 else
14541 # Is the header compilable?
14542 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14543 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14544 cat >conftest.$ac_ext <<_ACEOF
14545 /* confdefs.h. */
14546 _ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14550 $ac_includes_default
14551 #include <gpm.h>
14552 _ACEOF
14553 rm -f conftest.$ac_objext
14554 if { (ac_try="$ac_compile"
14555 case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14558 esac
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_compile") 2>conftest.er1
14561 ac_status=$?
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } && {
14567 test -z "$ac_c_werror_flag" ||
14568 test ! -s conftest.err
14569 } && test -s conftest.$ac_objext; then
14570 ac_header_compiler=yes
14571 else
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14575 ac_header_compiler=no
14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14580 echo "${ECHO_T}$ac_header_compiler" >&6; }
14582 # Is the header present?
14583 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14584 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14585 cat >conftest.$ac_ext <<_ACEOF
14586 /* confdefs.h. */
14587 _ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14591 #include <gpm.h>
14592 _ACEOF
14593 if { (ac_try="$ac_cpp conftest.$ac_ext"
14594 case "(($ac_try" in
14595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596 *) ac_try_echo=$ac_try;;
14597 esac
14598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14600 ac_status=$?
14601 grep -v '^ *+' conftest.er1 >conftest.err
14602 rm -f conftest.er1
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } >/dev/null && {
14606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14607 test ! -s conftest.err
14608 }; then
14609 ac_header_preproc=yes
14610 else
14611 echo "$as_me: failed program was:" >&5
14612 sed 's/^/| /' conftest.$ac_ext >&5
14614 ac_header_preproc=no
14617 rm -f conftest.err conftest.$ac_ext
14618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14619 echo "${ECHO_T}$ac_header_preproc" >&6; }
14621 # So? What about this header?
14622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14623 yes:no: )
14624 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14625 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14627 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14628 ac_header_preproc=yes
14630 no:yes:* )
14631 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14632 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14634 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14636 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14638 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14640 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14641 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14642 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14645 esac
14646 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14647 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14648 if test "${ac_cv_header_gpm_h+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14650 else
14651 ac_cv_header_gpm_h=$ac_header_preproc
14653 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14654 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14657 if test $ac_cv_header_gpm_h = yes; then
14658 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14659 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14660 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 else
14663 ac_check_lib_save_LIBS=$LIBS
14664 LIBS="-lgpm $LIBS"
14665 cat >conftest.$ac_ext <<_ACEOF
14666 /* confdefs.h. */
14667 _ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h. */
14672 /* Override any GCC internal prototype to avoid an error.
14673 Use char because int might match the return type of a GCC
14674 builtin and then its argument prototype would still apply. */
14675 #ifdef __cplusplus
14676 extern "C"
14677 #endif
14678 char Gpm_Open ();
14680 main ()
14682 return Gpm_Open ();
14684 return 0;
14686 _ACEOF
14687 rm -f conftest.$ac_objext conftest$ac_exeext
14688 if { (ac_try="$ac_link"
14689 case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14692 esac
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_link") 2>conftest.er1
14695 ac_status=$?
14696 grep -v '^ *+' conftest.er1 >conftest.err
14697 rm -f conftest.er1
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } && {
14701 test -z "$ac_c_werror_flag" ||
14702 test ! -s conftest.err
14703 } && test -s conftest$ac_exeext &&
14704 $as_test_x conftest$ac_exeext; then
14705 ac_cv_lib_gpm_Gpm_Open=yes
14706 else
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14710 ac_cv_lib_gpm_Gpm_Open=no
14713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14714 conftest$ac_exeext conftest.$ac_ext
14715 LIBS=$ac_check_lib_save_LIBS
14717 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14718 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14719 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14720 HAVE_GPM=yes
14728 if test "${HAVE_GPM}" = "yes"; then
14730 cat >>confdefs.h <<\_ACEOF
14731 #define HAVE_GPM 1
14732 _ACEOF
14736 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14737 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14738 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14739 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14743 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14744 else
14745 # Is the header compilable?
14746 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14747 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14748 cat >conftest.$ac_ext <<_ACEOF
14749 /* confdefs.h. */
14750 _ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14754 $ac_includes_default
14755 #include <malloc/malloc.h>
14756 _ACEOF
14757 rm -f conftest.$ac_objext
14758 if { (ac_try="$ac_compile"
14759 case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14762 esac
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_compile") 2>conftest.er1
14765 ac_status=$?
14766 grep -v '^ *+' conftest.er1 >conftest.err
14767 rm -f conftest.er1
14768 cat conftest.err >&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } && {
14771 test -z "$ac_c_werror_flag" ||
14772 test ! -s conftest.err
14773 } && test -s conftest.$ac_objext; then
14774 ac_header_compiler=yes
14775 else
14776 echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.$ac_ext >&5
14779 ac_header_compiler=no
14782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14784 echo "${ECHO_T}$ac_header_compiler" >&6; }
14786 # Is the header present?
14787 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14788 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14789 cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h. */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 #include <malloc/malloc.h>
14796 _ACEOF
14797 if { (ac_try="$ac_cpp conftest.$ac_ext"
14798 case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14801 esac
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14804 ac_status=$?
14805 grep -v '^ *+' conftest.er1 >conftest.err
14806 rm -f conftest.er1
14807 cat conftest.err >&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } >/dev/null && {
14810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14811 test ! -s conftest.err
14812 }; then
14813 ac_header_preproc=yes
14814 else
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 ac_header_preproc=no
14821 rm -f conftest.err conftest.$ac_ext
14822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823 echo "${ECHO_T}$ac_header_preproc" >&6; }
14825 # So? What about this header?
14826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14827 yes:no: )
14828 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14829 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14831 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14832 ac_header_preproc=yes
14834 no:yes:* )
14835 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14836 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14838 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14840 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14842 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14844 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14846 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14849 esac
14850 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14851 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14852 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14855 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14857 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14858 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14861 if test $ac_cv_header_malloc_malloc_h = yes; then
14863 cat >>confdefs.h <<\_ACEOF
14864 #define HAVE_MALLOC_MALLOC_H 1
14865 _ACEOF
14871 ### Use NeXTstep API to implement GUI.
14872 if test "${HAVE_NS}" = "yes"; then
14874 cat >>confdefs.h <<\_ACEOF
14875 #define HAVE_NS 1
14876 _ACEOF
14878 if test "${NS_IMPL_COCOA}" = "yes"; then
14880 cat >>confdefs.h <<\_ACEOF
14881 #define NS_IMPL_COCOA 1
14882 _ACEOF
14885 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14887 cat >>confdefs.h <<\_ACEOF
14888 #define COCOA_EXPERIMENTAL_CTRL_G 1
14889 _ACEOF
14892 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14894 cat >>confdefs.h <<\_ACEOF
14895 #define NS_IMPL_GNUSTEP 1
14896 _ACEOF
14899 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
14901 cat >>confdefs.h <<\_ACEOF
14902 #define NS_HAVE_NSINTEGER 1
14903 _ACEOF
14906 # We also have mouse menus.
14907 HAVE_MENUS=yes
14911 ### Use session management (-lSM -lICE) if available
14912 HAVE_X_SM=no
14913 if test "${HAVE_X11}" = "yes"; then
14914 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14915 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14916 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14917 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14921 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14922 else
14923 # Is the header compilable?
14924 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14925 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14926 cat >conftest.$ac_ext <<_ACEOF
14927 /* confdefs.h. */
14928 _ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h. */
14932 $ac_includes_default
14933 #include <X11/SM/SMlib.h>
14934 _ACEOF
14935 rm -f conftest.$ac_objext
14936 if { (ac_try="$ac_compile"
14937 case "(($ac_try" in
14938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14939 *) ac_try_echo=$ac_try;;
14940 esac
14941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14942 (eval "$ac_compile") 2>conftest.er1
14943 ac_status=$?
14944 grep -v '^ *+' conftest.er1 >conftest.err
14945 rm -f conftest.er1
14946 cat conftest.err >&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } && {
14949 test -z "$ac_c_werror_flag" ||
14950 test ! -s conftest.err
14951 } && test -s conftest.$ac_objext; then
14952 ac_header_compiler=yes
14953 else
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14957 ac_header_compiler=no
14960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14962 echo "${ECHO_T}$ac_header_compiler" >&6; }
14964 # Is the header present?
14965 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14966 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14967 cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h. */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 #include <X11/SM/SMlib.h>
14974 _ACEOF
14975 if { (ac_try="$ac_cpp conftest.$ac_ext"
14976 case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14979 esac
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14982 ac_status=$?
14983 grep -v '^ *+' conftest.er1 >conftest.err
14984 rm -f conftest.er1
14985 cat conftest.err >&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } >/dev/null && {
14988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14989 test ! -s conftest.err
14990 }; then
14991 ac_header_preproc=yes
14992 else
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ac_header_preproc=no
14999 rm -f conftest.err conftest.$ac_ext
15000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15001 echo "${ECHO_T}$ac_header_preproc" >&6; }
15003 # So? What about this header?
15004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15005 yes:no: )
15006 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15007 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15008 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15009 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15010 ac_header_preproc=yes
15012 no:yes:* )
15013 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15014 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15015 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15016 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15017 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15018 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15019 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15020 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15021 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15022 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15024 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15027 esac
15028 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15029 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15030 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15032 else
15033 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15035 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15036 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15039 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15040 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15041 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15042 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 else
15045 ac_check_lib_save_LIBS=$LIBS
15046 LIBS="-lSM -lICE $LIBS"
15047 cat >conftest.$ac_ext <<_ACEOF
15048 /* confdefs.h. */
15049 _ACEOF
15050 cat confdefs.h >>conftest.$ac_ext
15051 cat >>conftest.$ac_ext <<_ACEOF
15052 /* end confdefs.h. */
15054 /* Override any GCC internal prototype to avoid an error.
15055 Use char because int might match the return type of a GCC
15056 builtin and then its argument prototype would still apply. */
15057 #ifdef __cplusplus
15058 extern "C"
15059 #endif
15060 char SmcOpenConnection ();
15062 main ()
15064 return SmcOpenConnection ();
15066 return 0;
15068 _ACEOF
15069 rm -f conftest.$ac_objext conftest$ac_exeext
15070 if { (ac_try="$ac_link"
15071 case "(($ac_try" in
15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15074 esac
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_link") 2>conftest.er1
15077 ac_status=$?
15078 grep -v '^ *+' conftest.er1 >conftest.err
15079 rm -f conftest.er1
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } && {
15083 test -z "$ac_c_werror_flag" ||
15084 test ! -s conftest.err
15085 } && test -s conftest$ac_exeext &&
15086 $as_test_x conftest$ac_exeext; then
15087 ac_cv_lib_SM_SmcOpenConnection=yes
15088 else
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15092 ac_cv_lib_SM_SmcOpenConnection=no
15095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15096 conftest$ac_exeext conftest.$ac_ext
15097 LIBS=$ac_check_lib_save_LIBS
15099 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15100 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15101 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15102 HAVE_X_SM=yes
15109 if test "${HAVE_X_SM}" = "yes"; then
15111 cat >>confdefs.h <<\_ACEOF
15112 #define HAVE_X_SM 1
15113 _ACEOF
15115 case "$LIBS" in
15116 *-lSM*) ;;
15117 *) LIBS="-lSM -lICE $LIBS" ;;
15118 esac
15122 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15123 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15124 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15125 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 else
15128 cat >conftest.$ac_ext <<_ACEOF
15129 /* confdefs.h. */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134 #include <netdb.h>
15136 main ()
15138 return h_errno;
15140 return 0;
15142 _ACEOF
15143 rm -f conftest.$ac_objext conftest$ac_exeext
15144 if { (ac_try="$ac_link"
15145 case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15148 esac
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_link") 2>conftest.er1
15151 ac_status=$?
15152 grep -v '^ *+' conftest.er1 >conftest.err
15153 rm -f conftest.er1
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } && {
15157 test -z "$ac_c_werror_flag" ||
15158 test ! -s conftest.err
15159 } && test -s conftest$ac_exeext &&
15160 $as_test_x conftest$ac_exeext; then
15161 emacs_cv_netdb_declares_h_errno=yes
15162 else
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15166 emacs_cv_netdb_declares_h_errno=no
15169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15170 conftest$ac_exeext conftest.$ac_ext
15172 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15173 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15174 if test $emacs_cv_netdb_declares_h_errno = yes; then
15176 cat >>confdefs.h <<\_ACEOF
15177 #define HAVE_H_ERRNO 1
15178 _ACEOF
15182 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15183 # for constant arguments. Useless!
15184 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15185 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15186 if test "${ac_cv_working_alloca_h+set}" = set; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 else
15189 cat >conftest.$ac_ext <<_ACEOF
15190 /* confdefs.h. */
15191 _ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15195 #include <alloca.h>
15197 main ()
15199 char *p = (char *) alloca (2 * sizeof (int));
15200 if (p) return 0;
15202 return 0;
15204 _ACEOF
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210 esac
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_link") 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } && {
15219 test -z "$ac_c_werror_flag" ||
15220 test ! -s conftest.err
15221 } && test -s conftest$ac_exeext &&
15222 $as_test_x conftest$ac_exeext; then
15223 ac_cv_working_alloca_h=yes
15224 else
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15228 ac_cv_working_alloca_h=no
15231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15232 conftest$ac_exeext conftest.$ac_ext
15234 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15235 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15236 if test $ac_cv_working_alloca_h = yes; then
15238 cat >>confdefs.h <<\_ACEOF
15239 #define HAVE_ALLOCA_H 1
15240 _ACEOF
15244 { echo "$as_me:$LINENO: checking for alloca" >&5
15245 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15246 if test "${ac_cv_func_alloca_works+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 else
15249 cat >conftest.$ac_ext <<_ACEOF
15250 /* confdefs.h. */
15251 _ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15255 #ifdef __GNUC__
15256 # define alloca __builtin_alloca
15257 #else
15258 # ifdef _MSC_VER
15259 # include <malloc.h>
15260 # define alloca _alloca
15261 # else
15262 # ifdef HAVE_ALLOCA_H
15263 # include <alloca.h>
15264 # else
15265 # ifdef _AIX
15266 #pragma alloca
15267 # else
15268 # ifndef alloca /* predefined by HP cc +Olibcalls */
15269 char *alloca ();
15270 # endif
15271 # endif
15272 # endif
15273 # endif
15274 #endif
15277 main ()
15279 char *p = (char *) alloca (1);
15280 if (p) return 0;
15282 return 0;
15284 _ACEOF
15285 rm -f conftest.$ac_objext conftest$ac_exeext
15286 if { (ac_try="$ac_link"
15287 case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15290 esac
15291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292 (eval "$ac_link") 2>conftest.er1
15293 ac_status=$?
15294 grep -v '^ *+' conftest.er1 >conftest.err
15295 rm -f conftest.er1
15296 cat conftest.err >&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } && {
15299 test -z "$ac_c_werror_flag" ||
15300 test ! -s conftest.err
15301 } && test -s conftest$ac_exeext &&
15302 $as_test_x conftest$ac_exeext; then
15303 ac_cv_func_alloca_works=yes
15304 else
15305 echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15308 ac_cv_func_alloca_works=no
15311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15312 conftest$ac_exeext conftest.$ac_ext
15314 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15315 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15317 if test $ac_cv_func_alloca_works = yes; then
15319 cat >>confdefs.h <<\_ACEOF
15320 #define HAVE_ALLOCA 1
15321 _ACEOF
15323 else
15324 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15325 # that cause trouble. Some versions do not even contain alloca or
15326 # contain a buggy version. If you still want to use their alloca,
15327 # use ar to extract alloca.o from them instead of compiling alloca.c.
15329 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15331 cat >>confdefs.h <<\_ACEOF
15332 #define C_ALLOCA 1
15333 _ACEOF
15336 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15337 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15338 if test "${ac_cv_os_cray+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 else
15341 cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h. */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15347 #if defined CRAY && ! defined CRAY2
15348 webecray
15349 #else
15350 wenotbecray
15351 #endif
15353 _ACEOF
15354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15355 $EGREP "webecray" >/dev/null 2>&1; then
15356 ac_cv_os_cray=yes
15357 else
15358 ac_cv_os_cray=no
15360 rm -f conftest*
15363 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15364 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15365 if test $ac_cv_os_cray = yes; then
15366 for ac_func in _getb67 GETB67 getb67; do
15367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 else
15373 cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h. */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15381 #define $ac_func innocuous_$ac_func
15383 /* System header to define __stub macros and hopefully few prototypes,
15384 which can conflict with char $ac_func (); below.
15385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15386 <limits.h> exists even on freestanding compilers. */
15388 #ifdef __STDC__
15389 # include <limits.h>
15390 #else
15391 # include <assert.h>
15392 #endif
15394 #undef $ac_func
15396 /* Override any GCC internal prototype to avoid an error.
15397 Use char because int might match the return type of a GCC
15398 builtin and then its argument prototype would still apply. */
15399 #ifdef __cplusplus
15400 extern "C"
15401 #endif
15402 char $ac_func ();
15403 /* The GNU C library defines this for functions which it implements
15404 to always fail with ENOSYS. Some functions are actually named
15405 something starting with __ and the normal name is an alias. */
15406 #if defined __stub_$ac_func || defined __stub___$ac_func
15407 choke me
15408 #endif
15411 main ()
15413 return $ac_func ();
15415 return 0;
15417 _ACEOF
15418 rm -f conftest.$ac_objext conftest$ac_exeext
15419 if { (ac_try="$ac_link"
15420 case "(($ac_try" in
15421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422 *) ac_try_echo=$ac_try;;
15423 esac
15424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15425 (eval "$ac_link") 2>conftest.er1
15426 ac_status=$?
15427 grep -v '^ *+' conftest.er1 >conftest.err
15428 rm -f conftest.er1
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } && {
15432 test -z "$ac_c_werror_flag" ||
15433 test ! -s conftest.err
15434 } && test -s conftest$ac_exeext &&
15435 $as_test_x conftest$ac_exeext; then
15436 eval "$as_ac_var=yes"
15437 else
15438 echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15441 eval "$as_ac_var=no"
15444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15445 conftest$ac_exeext conftest.$ac_ext
15447 ac_res=`eval echo '${'$as_ac_var'}'`
15448 { echo "$as_me:$LINENO: result: $ac_res" >&5
15449 echo "${ECHO_T}$ac_res" >&6; }
15450 if test `eval echo '${'$as_ac_var'}'` = yes; then
15452 cat >>confdefs.h <<_ACEOF
15453 #define CRAY_STACKSEG_END $ac_func
15454 _ACEOF
15456 break
15459 done
15462 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15463 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15464 if test "${ac_cv_c_stack_direction+set}" = set; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 else
15467 if test "$cross_compiling" = yes; then
15468 ac_cv_c_stack_direction=0
15469 else
15470 cat >conftest.$ac_ext <<_ACEOF
15471 /* confdefs.h. */
15472 _ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 $ac_includes_default
15478 find_stack_direction ()
15480 static char *addr = 0;
15481 auto char dummy;
15482 if (addr == 0)
15484 addr = &dummy;
15485 return find_stack_direction ();
15487 else
15488 return (&dummy > addr) ? 1 : -1;
15492 main ()
15494 return find_stack_direction () < 0;
15496 _ACEOF
15497 rm -f conftest$ac_exeext
15498 if { (ac_try="$ac_link"
15499 case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15502 esac
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_link") 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; }; then
15517 ac_cv_c_stack_direction=1
15518 else
15519 echo "$as_me: program exited with status $ac_status" >&5
15520 echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15523 ( exit $ac_status )
15524 ac_cv_c_stack_direction=-1
15526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15531 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15532 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15534 cat >>confdefs.h <<_ACEOF
15535 #define STACK_DIRECTION $ac_cv_c_stack_direction
15536 _ACEOF
15542 if test x"$ac_cv_func_alloca_works" != xyes; then
15543 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15544 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15545 { (exit 1); exit 1; }; }
15548 # fmod, logb, and frexp are found in -lm on most systems.
15549 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15551 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15552 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15553 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15555 else
15556 ac_check_lib_save_LIBS=$LIBS
15557 LIBS="-lm $LIBS"
15558 cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h. */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15565 /* Override any GCC internal prototype to avoid an error.
15566 Use char because int might match the return type of a GCC
15567 builtin and then its argument prototype would still apply. */
15568 #ifdef __cplusplus
15569 extern "C"
15570 #endif
15571 char sqrt ();
15573 main ()
15575 return sqrt ();
15577 return 0;
15579 _ACEOF
15580 rm -f conftest.$ac_objext conftest$ac_exeext
15581 if { (ac_try="$ac_link"
15582 case "(($ac_try" in
15583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15585 esac
15586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587 (eval "$ac_link") 2>conftest.er1
15588 ac_status=$?
15589 grep -v '^ *+' conftest.er1 >conftest.err
15590 rm -f conftest.er1
15591 cat conftest.err >&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } && {
15594 test -z "$ac_c_werror_flag" ||
15595 test ! -s conftest.err
15596 } && test -s conftest$ac_exeext &&
15597 $as_test_x conftest$ac_exeext; then
15598 ac_cv_lib_m_sqrt=yes
15599 else
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 ac_cv_lib_m_sqrt=no
15606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15607 conftest$ac_exeext conftest.$ac_ext
15608 LIBS=$ac_check_lib_save_LIBS
15610 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15611 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15612 if test $ac_cv_lib_m_sqrt = yes; then
15613 cat >>confdefs.h <<_ACEOF
15614 #define HAVE_LIBM 1
15615 _ACEOF
15617 LIBS="-lm $LIBS"
15622 # Check for mail-locking functions in a "mail" library. Probably this should
15623 # have the same check as for liblockfile below.
15625 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15626 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15627 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 else
15630 ac_check_lib_save_LIBS=$LIBS
15631 LIBS="-lmail $LIBS"
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h. */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15639 /* Override any GCC internal prototype to avoid an error.
15640 Use char because int might match the return type of a GCC
15641 builtin and then its argument prototype would still apply. */
15642 #ifdef __cplusplus
15643 extern "C"
15644 #endif
15645 char maillock ();
15647 main ()
15649 return maillock ();
15651 return 0;
15653 _ACEOF
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_link") 2>conftest.er1
15662 ac_status=$?
15663 grep -v '^ *+' conftest.er1 >conftest.err
15664 rm -f conftest.er1
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } && {
15668 test -z "$ac_c_werror_flag" ||
15669 test ! -s conftest.err
15670 } && test -s conftest$ac_exeext &&
15671 $as_test_x conftest$ac_exeext; then
15672 ac_cv_lib_mail_maillock=yes
15673 else
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15677 ac_cv_lib_mail_maillock=no
15680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15681 conftest$ac_exeext conftest.$ac_ext
15682 LIBS=$ac_check_lib_save_LIBS
15684 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15685 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15686 if test $ac_cv_lib_mail_maillock = yes; then
15687 cat >>confdefs.h <<_ACEOF
15688 #define HAVE_LIBMAIL 1
15689 _ACEOF
15691 LIBS="-lmail $LIBS"
15696 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15697 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15698 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15700 else
15701 ac_check_lib_save_LIBS=$LIBS
15702 LIBS="-llockfile $LIBS"
15703 cat >conftest.$ac_ext <<_ACEOF
15704 /* confdefs.h. */
15705 _ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15710 /* Override any GCC internal prototype to avoid an error.
15711 Use char because int might match the return type of a GCC
15712 builtin and then its argument prototype would still apply. */
15713 #ifdef __cplusplus
15714 extern "C"
15715 #endif
15716 char maillock ();
15718 main ()
15720 return maillock ();
15722 return 0;
15724 _ACEOF
15725 rm -f conftest.$ac_objext conftest$ac_exeext
15726 if { (ac_try="$ac_link"
15727 case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15730 esac
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_link") 2>conftest.er1
15733 ac_status=$?
15734 grep -v '^ *+' conftest.er1 >conftest.err
15735 rm -f conftest.er1
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } && {
15739 test -z "$ac_c_werror_flag" ||
15740 test ! -s conftest.err
15741 } && test -s conftest$ac_exeext &&
15742 $as_test_x conftest$ac_exeext; then
15743 ac_cv_lib_lockfile_maillock=yes
15744 else
15745 echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15748 ac_cv_lib_lockfile_maillock=no
15751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15752 conftest$ac_exeext conftest.$ac_ext
15753 LIBS=$ac_check_lib_save_LIBS
15755 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15756 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15757 if test $ac_cv_lib_lockfile_maillock = yes; then
15758 cat >>confdefs.h <<_ACEOF
15759 #define HAVE_LIBLOCKFILE 1
15760 _ACEOF
15762 LIBS="-llockfile $LIBS"
15766 # If we have the shared liblockfile, assume we must use it for mail
15767 # locking (e.g. Debian). If we couldn't link against liblockfile
15768 # (no liblockfile.a installed), ensure that we don't need to.
15769 if test "$ac_cv_lib_lockfile_maillock" = no; then
15770 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15771 set dummy liblockfile.so; ac_word=$2
15772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15774 if test "${ac_cv_prog_liblockfile+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777 if test -n "$liblockfile"; then
15778 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15779 else
15780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15781 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15782 for as_dir in $as_dummy
15784 IFS=$as_save_IFS
15785 test -z "$as_dir" && as_dir=.
15786 for ac_exec_ext in '' $ac_executable_extensions; do
15787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15788 ac_cv_prog_liblockfile="yes"
15789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15790 break 2
15792 done
15793 done
15794 IFS=$as_save_IFS
15796 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15799 liblockfile=$ac_cv_prog_liblockfile
15800 if test -n "$liblockfile"; then
15801 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15802 echo "${ECHO_T}$liblockfile" >&6; }
15803 else
15804 { echo "$as_me:$LINENO: result: no" >&5
15805 echo "${ECHO_T}no" >&6; }
15809 if test $ac_cv_prog_liblockfile = yes; then
15810 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15811 This probably means that movemail could lose mail.
15812 There may be a \`development' package to install containing liblockfile." >&5
15813 echo "$as_me: error: Shared liblockfile found but can't link against it.
15814 This probably means that movemail could lose mail.
15815 There may be a \`development' package to install containing liblockfile." >&2;}
15816 { (exit 1); exit 1; }; }
15817 else :
15821 for ac_func in touchlock
15823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 else
15829 cat >conftest.$ac_ext <<_ACEOF
15830 /* confdefs.h. */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15837 #define $ac_func innocuous_$ac_func
15839 /* System header to define __stub macros and hopefully few prototypes,
15840 which can conflict with char $ac_func (); below.
15841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15842 <limits.h> exists even on freestanding compilers. */
15844 #ifdef __STDC__
15845 # include <limits.h>
15846 #else
15847 # include <assert.h>
15848 #endif
15850 #undef $ac_func
15852 /* Override any GCC internal prototype to avoid an error.
15853 Use char because int might match the return type of a GCC
15854 builtin and then its argument prototype would still apply. */
15855 #ifdef __cplusplus
15856 extern "C"
15857 #endif
15858 char $ac_func ();
15859 /* The GNU C library defines this for functions which it implements
15860 to always fail with ENOSYS. Some functions are actually named
15861 something starting with __ and the normal name is an alias. */
15862 #if defined __stub_$ac_func || defined __stub___$ac_func
15863 choke me
15864 #endif
15867 main ()
15869 return $ac_func ();
15871 return 0;
15873 _ACEOF
15874 rm -f conftest.$ac_objext conftest$ac_exeext
15875 if { (ac_try="$ac_link"
15876 case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15879 esac
15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881 (eval "$ac_link") 2>conftest.er1
15882 ac_status=$?
15883 grep -v '^ *+' conftest.er1 >conftest.err
15884 rm -f conftest.er1
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } && {
15888 test -z "$ac_c_werror_flag" ||
15889 test ! -s conftest.err
15890 } && test -s conftest$ac_exeext &&
15891 $as_test_x conftest$ac_exeext; then
15892 eval "$as_ac_var=yes"
15893 else
15894 echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15897 eval "$as_ac_var=no"
15900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15901 conftest$ac_exeext conftest.$ac_ext
15903 ac_res=`eval echo '${'$as_ac_var'}'`
15904 { echo "$as_me:$LINENO: result: $ac_res" >&5
15905 echo "${ECHO_T}$ac_res" >&6; }
15906 if test `eval echo '${'$as_ac_var'}'` = yes; then
15907 cat >>confdefs.h <<_ACEOF
15908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15909 _ACEOF
15912 done
15915 for ac_header in maillock.h
15917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15924 ac_res=`eval echo '${'$as_ac_Header'}'`
15925 { echo "$as_me:$LINENO: result: $ac_res" >&5
15926 echo "${ECHO_T}$ac_res" >&6; }
15927 else
15928 # Is the header compilable?
15929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15931 cat >conftest.$ac_ext <<_ACEOF
15932 /* confdefs.h. */
15933 _ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15937 $ac_includes_default
15938 #include <$ac_header>
15939 _ACEOF
15940 rm -f conftest.$ac_objext
15941 if { (ac_try="$ac_compile"
15942 case "(($ac_try" in
15943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15944 *) ac_try_echo=$ac_try;;
15945 esac
15946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15947 (eval "$ac_compile") 2>conftest.er1
15948 ac_status=$?
15949 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1
15951 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } && {
15954 test -z "$ac_c_werror_flag" ||
15955 test ! -s conftest.err
15956 } && test -s conftest.$ac_objext; then
15957 ac_header_compiler=yes
15958 else
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962 ac_header_compiler=no
15965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15967 echo "${ECHO_T}$ac_header_compiler" >&6; }
15969 # Is the header present?
15970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h. */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 #include <$ac_header>
15979 _ACEOF
15980 if { (ac_try="$ac_cpp conftest.$ac_ext"
15981 case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15984 esac
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15987 ac_status=$?
15988 grep -v '^ *+' conftest.er1 >conftest.err
15989 rm -f conftest.er1
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } >/dev/null && {
15993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15994 test ! -s conftest.err
15995 }; then
15996 ac_header_preproc=yes
15997 else
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16001 ac_header_preproc=no
16004 rm -f conftest.err conftest.$ac_ext
16005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16006 echo "${ECHO_T}$ac_header_preproc" >&6; }
16008 # So? What about this header?
16009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16010 yes:no: )
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16015 ac_header_preproc=yes
16017 no:yes:* )
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16032 esac
16033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16037 else
16038 eval "$as_ac_Header=\$ac_header_preproc"
16040 ac_res=`eval echo '${'$as_ac_Header'}'`
16041 { echo "$as_me:$LINENO: result: $ac_res" >&5
16042 echo "${ECHO_T}$ac_res" >&6; }
16045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16046 cat >>confdefs.h <<_ACEOF
16047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16048 _ACEOF
16052 done
16126 for ac_func in gethostname getdomainname dup2 \
16127 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16128 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16129 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16130 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16131 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16132 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16133 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16134 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16135 cfmakeraw cfsetspeed
16137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16142 else
16143 cat >conftest.$ac_ext <<_ACEOF
16144 /* confdefs.h. */
16145 _ACEOF
16146 cat confdefs.h >>conftest.$ac_ext
16147 cat >>conftest.$ac_ext <<_ACEOF
16148 /* end confdefs.h. */
16149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16151 #define $ac_func innocuous_$ac_func
16153 /* System header to define __stub macros and hopefully few prototypes,
16154 which can conflict with char $ac_func (); below.
16155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16156 <limits.h> exists even on freestanding compilers. */
16158 #ifdef __STDC__
16159 # include <limits.h>
16160 #else
16161 # include <assert.h>
16162 #endif
16164 #undef $ac_func
16166 /* Override any GCC internal prototype to avoid an error.
16167 Use char because int might match the return type of a GCC
16168 builtin and then its argument prototype would still apply. */
16169 #ifdef __cplusplus
16170 extern "C"
16171 #endif
16172 char $ac_func ();
16173 /* The GNU C library defines this for functions which it implements
16174 to always fail with ENOSYS. Some functions are actually named
16175 something starting with __ and the normal name is an alias. */
16176 #if defined __stub_$ac_func || defined __stub___$ac_func
16177 choke me
16178 #endif
16181 main ()
16183 return $ac_func ();
16185 return 0;
16187 _ACEOF
16188 rm -f conftest.$ac_objext conftest$ac_exeext
16189 if { (ac_try="$ac_link"
16190 case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16193 esac
16194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195 (eval "$ac_link") 2>conftest.er1
16196 ac_status=$?
16197 grep -v '^ *+' conftest.er1 >conftest.err
16198 rm -f conftest.er1
16199 cat conftest.err >&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); } && {
16202 test -z "$ac_c_werror_flag" ||
16203 test ! -s conftest.err
16204 } && test -s conftest$ac_exeext &&
16205 $as_test_x conftest$ac_exeext; then
16206 eval "$as_ac_var=yes"
16207 else
16208 echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211 eval "$as_ac_var=no"
16214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16215 conftest$ac_exeext conftest.$ac_ext
16217 ac_res=`eval echo '${'$as_ac_var'}'`
16218 { echo "$as_me:$LINENO: result: $ac_res" >&5
16219 echo "${ECHO_T}$ac_res" >&6; }
16220 if test `eval echo '${'$as_ac_var'}'` = yes; then
16221 cat >>confdefs.h <<_ACEOF
16222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16223 _ACEOF
16226 done
16230 for ac_header in sys/un.h
16232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16237 echo $ECHO_N "(cached) $ECHO_C" >&6
16239 ac_res=`eval echo '${'$as_ac_Header'}'`
16240 { echo "$as_me:$LINENO: result: $ac_res" >&5
16241 echo "${ECHO_T}$ac_res" >&6; }
16242 else
16243 # Is the header compilable?
16244 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16246 cat >conftest.$ac_ext <<_ACEOF
16247 /* confdefs.h. */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 $ac_includes_default
16253 #include <$ac_header>
16254 _ACEOF
16255 rm -f conftest.$ac_objext
16256 if { (ac_try="$ac_compile"
16257 case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16260 esac
16261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16262 (eval "$ac_compile") 2>conftest.er1
16263 ac_status=$?
16264 grep -v '^ *+' conftest.er1 >conftest.err
16265 rm -f conftest.er1
16266 cat conftest.err >&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } && {
16269 test -z "$ac_c_werror_flag" ||
16270 test ! -s conftest.err
16271 } && test -s conftest.$ac_objext; then
16272 ac_header_compiler=yes
16273 else
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 ac_header_compiler=no
16280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16282 echo "${ECHO_T}$ac_header_compiler" >&6; }
16284 # Is the header present?
16285 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16287 cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h. */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 #include <$ac_header>
16294 _ACEOF
16295 if { (ac_try="$ac_cpp conftest.$ac_ext"
16296 case "(($ac_try" in
16297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16298 *) ac_try_echo=$ac_try;;
16299 esac
16300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16302 ac_status=$?
16303 grep -v '^ *+' conftest.er1 >conftest.err
16304 rm -f conftest.er1
16305 cat conftest.err >&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } >/dev/null && {
16308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16309 test ! -s conftest.err
16310 }; then
16311 ac_header_preproc=yes
16312 else
16313 echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16316 ac_header_preproc=no
16319 rm -f conftest.err conftest.$ac_ext
16320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16321 echo "${ECHO_T}$ac_header_preproc" >&6; }
16323 # So? What about this header?
16324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16325 yes:no: )
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16330 ac_header_preproc=yes
16332 no:yes:* )
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16347 esac
16348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 else
16353 eval "$as_ac_Header=\$ac_header_preproc"
16355 ac_res=`eval echo '${'$as_ac_Header'}'`
16356 { echo "$as_me:$LINENO: result: $ac_res" >&5
16357 echo "${ECHO_T}$ac_res" >&6; }
16360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16361 cat >>confdefs.h <<_ACEOF
16362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16363 _ACEOF
16367 done
16374 for ac_header in $ac_header_list
16376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16383 ac_res=`eval echo '${'$as_ac_Header'}'`
16384 { echo "$as_me:$LINENO: result: $ac_res" >&5
16385 echo "${ECHO_T}$ac_res" >&6; }
16386 else
16387 # Is the header compilable?
16388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16390 cat >conftest.$ac_ext <<_ACEOF
16391 /* confdefs.h. */
16392 _ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16396 $ac_includes_default
16397 #include <$ac_header>
16398 _ACEOF
16399 rm -f conftest.$ac_objext
16400 if { (ac_try="$ac_compile"
16401 case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16404 esac
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_compile") 2>conftest.er1
16407 ac_status=$?
16408 grep -v '^ *+' conftest.er1 >conftest.err
16409 rm -f conftest.er1
16410 cat conftest.err >&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } && {
16413 test -z "$ac_c_werror_flag" ||
16414 test ! -s conftest.err
16415 } && test -s conftest.$ac_objext; then
16416 ac_header_compiler=yes
16417 else
16418 echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16421 ac_header_compiler=no
16424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16426 echo "${ECHO_T}$ac_header_compiler" >&6; }
16428 # Is the header present?
16429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16431 cat >conftest.$ac_ext <<_ACEOF
16432 /* confdefs.h. */
16433 _ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h. */
16437 #include <$ac_header>
16438 _ACEOF
16439 if { (ac_try="$ac_cpp conftest.$ac_ext"
16440 case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16443 esac
16444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16446 ac_status=$?
16447 grep -v '^ *+' conftest.er1 >conftest.err
16448 rm -f conftest.er1
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } >/dev/null && {
16452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16453 test ! -s conftest.err
16454 }; then
16455 ac_header_preproc=yes
16456 else
16457 echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16460 ac_header_preproc=no
16463 rm -f conftest.err conftest.$ac_ext
16464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16465 echo "${ECHO_T}$ac_header_preproc" >&6; }
16467 # So? What about this header?
16468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16469 yes:no: )
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16474 ac_header_preproc=yes
16476 no:yes:* )
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16491 esac
16492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16495 echo $ECHO_N "(cached) $ECHO_C" >&6
16496 else
16497 eval "$as_ac_Header=\$ac_header_preproc"
16499 ac_res=`eval echo '${'$as_ac_Header'}'`
16500 { echo "$as_me:$LINENO: result: $ac_res" >&5
16501 echo "${ECHO_T}$ac_res" >&6; }
16504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16505 cat >>confdefs.h <<_ACEOF
16506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16507 _ACEOF
16511 done
16521 for ac_func in $ac_func_list
16523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16524 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16528 else
16529 cat >conftest.$ac_ext <<_ACEOF
16530 /* confdefs.h. */
16531 _ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16537 #define $ac_func innocuous_$ac_func
16539 /* System header to define __stub macros and hopefully few prototypes,
16540 which can conflict with char $ac_func (); below.
16541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16542 <limits.h> exists even on freestanding compilers. */
16544 #ifdef __STDC__
16545 # include <limits.h>
16546 #else
16547 # include <assert.h>
16548 #endif
16550 #undef $ac_func
16552 /* Override any GCC internal prototype to avoid an error.
16553 Use char because int might match the return type of a GCC
16554 builtin and then its argument prototype would still apply. */
16555 #ifdef __cplusplus
16556 extern "C"
16557 #endif
16558 char $ac_func ();
16559 /* The GNU C library defines this for functions which it implements
16560 to always fail with ENOSYS. Some functions are actually named
16561 something starting with __ and the normal name is an alias. */
16562 #if defined __stub_$ac_func || defined __stub___$ac_func
16563 choke me
16564 #endif
16567 main ()
16569 return $ac_func ();
16571 return 0;
16573 _ACEOF
16574 rm -f conftest.$ac_objext conftest$ac_exeext
16575 if { (ac_try="$ac_link"
16576 case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16579 esac
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_link") 2>conftest.er1
16582 ac_status=$?
16583 grep -v '^ *+' conftest.er1 >conftest.err
16584 rm -f conftest.er1
16585 cat conftest.err >&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } && {
16588 test -z "$ac_c_werror_flag" ||
16589 test ! -s conftest.err
16590 } && test -s conftest$ac_exeext &&
16591 $as_test_x conftest$ac_exeext; then
16592 eval "$as_ac_var=yes"
16593 else
16594 echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16597 eval "$as_ac_var=no"
16600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16601 conftest$ac_exeext conftest.$ac_ext
16603 ac_res=`eval echo '${'$as_ac_var'}'`
16604 { echo "$as_me:$LINENO: result: $ac_res" >&5
16605 echo "${ECHO_T}$ac_res" >&6; }
16606 if test `eval echo '${'$as_ac_var'}'` = yes; then
16607 cat >>confdefs.h <<_ACEOF
16608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16609 _ACEOF
16612 done
16630 { echo "$as_me:$LINENO: checking for working mktime" >&5
16631 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16632 if test "${ac_cv_func_working_mktime+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635 if test "$cross_compiling" = yes; then
16636 ac_cv_func_working_mktime=no
16637 else
16638 cat >conftest.$ac_ext <<_ACEOF
16639 /* confdefs.h. */
16640 _ACEOF
16641 cat confdefs.h >>conftest.$ac_ext
16642 cat >>conftest.$ac_ext <<_ACEOF
16643 /* end confdefs.h. */
16644 /* Test program from Paul Eggert and Tony Leneis. */
16645 #ifdef TIME_WITH_SYS_TIME
16646 # include <sys/time.h>
16647 # include <time.h>
16648 #else
16649 # ifdef HAVE_SYS_TIME_H
16650 # include <sys/time.h>
16651 # else
16652 # include <time.h>
16653 # endif
16654 #endif
16656 #include <limits.h>
16657 #include <stdlib.h>
16659 #ifdef HAVE_UNISTD_H
16660 # include <unistd.h>
16661 #endif
16663 #ifndef HAVE_ALARM
16664 # define alarm(X) /* empty */
16665 #endif
16667 /* Work around redefinition to rpl_putenv by other config tests. */
16668 #undef putenv
16670 static time_t time_t_max;
16671 static time_t time_t_min;
16673 /* Values we'll use to set the TZ environment variable. */
16674 static char *tz_strings[] = {
16675 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16676 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16678 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16680 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16681 Based on a problem report from Andreas Jaeger. */
16682 static int
16683 spring_forward_gap ()
16685 /* glibc (up to about 1998-10-07) failed this test. */
16686 struct tm tm;
16688 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16689 instead of "TZ=America/Vancouver" in order to detect the bug even
16690 on systems that don't support the Olson extension, or don't have the
16691 full zoneinfo tables installed. */
16692 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16694 tm.tm_year = 98;
16695 tm.tm_mon = 3;
16696 tm.tm_mday = 5;
16697 tm.tm_hour = 2;
16698 tm.tm_min = 0;
16699 tm.tm_sec = 0;
16700 tm.tm_isdst = -1;
16701 return mktime (&tm) != (time_t) -1;
16704 static int
16705 mktime_test1 (now)
16706 time_t now;
16708 struct tm *lt;
16709 return ! (lt = localtime (&now)) || mktime (lt) == now;
16712 static int
16713 mktime_test (now)
16714 time_t now;
16716 return (mktime_test1 (now)
16717 && mktime_test1 ((time_t) (time_t_max - now))
16718 && mktime_test1 ((time_t) (time_t_min + now)));
16721 static int
16722 irix_6_4_bug ()
16724 /* Based on code from Ariel Faigon. */
16725 struct tm tm;
16726 tm.tm_year = 96;
16727 tm.tm_mon = 3;
16728 tm.tm_mday = 0;
16729 tm.tm_hour = 0;
16730 tm.tm_min = 0;
16731 tm.tm_sec = 0;
16732 tm.tm_isdst = -1;
16733 mktime (&tm);
16734 return tm.tm_mon == 2 && tm.tm_mday == 31;
16737 static int
16738 bigtime_test (j)
16739 int j;
16741 struct tm tm;
16742 time_t now;
16743 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16744 now = mktime (&tm);
16745 if (now != (time_t) -1)
16747 struct tm *lt = localtime (&now);
16748 if (! (lt
16749 && lt->tm_year == tm.tm_year
16750 && lt->tm_mon == tm.tm_mon
16751 && lt->tm_mday == tm.tm_mday
16752 && lt->tm_hour == tm.tm_hour
16753 && lt->tm_min == tm.tm_min
16754 && lt->tm_sec == tm.tm_sec
16755 && lt->tm_yday == tm.tm_yday
16756 && lt->tm_wday == tm.tm_wday
16757 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16758 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16759 return 0;
16761 return 1;
16764 static int
16765 year_2050_test ()
16767 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16768 ignoring leap seconds. */
16769 unsigned long int answer = 2527315200UL;
16771 struct tm tm;
16772 time_t t;
16773 tm.tm_year = 2050 - 1900;
16774 tm.tm_mon = 2 - 1;
16775 tm.tm_mday = 1;
16776 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16777 tm.tm_isdst = -1;
16779 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16780 instead of "TZ=America/Vancouver" in order to detect the bug even
16781 on systems that don't support the Olson extension, or don't have the
16782 full zoneinfo tables installed. */
16783 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16785 t = mktime (&tm);
16787 /* Check that the result is either a failure, or close enough
16788 to the correct answer that we can assume the discrepancy is
16789 due to leap seconds. */
16790 return (t == (time_t) -1
16791 || (0 < t && answer - 120 <= t && t <= answer + 120));
16795 main ()
16797 time_t t, delta;
16798 int i, j;
16800 /* This test makes some buggy mktime implementations loop.
16801 Give up after 60 seconds; a mktime slower than that
16802 isn't worth using anyway. */
16803 alarm (60);
16805 for (;;)
16807 t = (time_t_max << 1) + 1;
16808 if (t <= time_t_max)
16809 break;
16810 time_t_max = t;
16812 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16814 delta = time_t_max / 997; /* a suitable prime number */
16815 for (i = 0; i < N_STRINGS; i++)
16817 if (tz_strings[i])
16818 putenv (tz_strings[i]);
16820 for (t = 0; t <= time_t_max - delta; t += delta)
16821 if (! mktime_test (t))
16822 return 1;
16823 if (! (mktime_test ((time_t) 1)
16824 && mktime_test ((time_t) (60 * 60))
16825 && mktime_test ((time_t) (60 * 60 * 24))))
16826 return 1;
16828 for (j = 1; ; j <<= 1)
16829 if (! bigtime_test (j))
16830 return 1;
16831 else if (INT_MAX / 2 < j)
16832 break;
16833 if (! bigtime_test (INT_MAX))
16834 return 1;
16836 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16838 _ACEOF
16839 rm -f conftest$ac_exeext
16840 if { (ac_try="$ac_link"
16841 case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16844 esac
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_link") 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_cv_func_working_mktime=yes
16860 else
16861 echo "$as_me: program exited with status $ac_status" >&5
16862 echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16865 ( exit $ac_status )
16866 ac_cv_func_working_mktime=no
16868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16873 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16874 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16875 if test $ac_cv_func_working_mktime = no; then
16876 case " $LIBOBJS " in
16877 *" mktime.$ac_objext "* ) ;;
16878 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16880 esac
16884 if test "$ac_cv_func_working_mktime" = no; then
16886 cat >>confdefs.h <<\_ACEOF
16887 #define BROKEN_MKTIME 1
16888 _ACEOF
16892 ac_have_func=no # yes means we've found a way to get the load average.
16894 # Make sure getloadavg.c is where it belongs, at configure-time.
16895 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16896 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16897 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16898 { (exit 1); exit 1; }; }
16900 ac_save_LIBS=$LIBS
16902 # Check for getloadavg, but be sure not to touch the cache variable.
16903 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16904 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16905 if test "${ac_cv_func_getloadavg+set}" = set; then
16906 echo $ECHO_N "(cached) $ECHO_C" >&6
16907 else
16908 cat >conftest.$ac_ext <<_ACEOF
16909 /* confdefs.h. */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16914 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16916 #define getloadavg innocuous_getloadavg
16918 /* System header to define __stub macros and hopefully few prototypes,
16919 which can conflict with char getloadavg (); below.
16920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16921 <limits.h> exists even on freestanding compilers. */
16923 #ifdef __STDC__
16924 # include <limits.h>
16925 #else
16926 # include <assert.h>
16927 #endif
16929 #undef getloadavg
16931 /* Override any GCC internal prototype to avoid an error.
16932 Use char because int might match the return type of a GCC
16933 builtin and then its argument prototype would still apply. */
16934 #ifdef __cplusplus
16935 extern "C"
16936 #endif
16937 char getloadavg ();
16938 /* The GNU C library defines this for functions which it implements
16939 to always fail with ENOSYS. Some functions are actually named
16940 something starting with __ and the normal name is an alias. */
16941 #if defined __stub_getloadavg || defined __stub___getloadavg
16942 choke me
16943 #endif
16946 main ()
16948 return getloadavg ();
16950 return 0;
16952 _ACEOF
16953 rm -f conftest.$ac_objext conftest$ac_exeext
16954 if { (ac_try="$ac_link"
16955 case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16958 esac
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_link") 2>conftest.er1
16961 ac_status=$?
16962 grep -v '^ *+' conftest.er1 >conftest.err
16963 rm -f conftest.er1
16964 cat conftest.err >&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } && {
16967 test -z "$ac_c_werror_flag" ||
16968 test ! -s conftest.err
16969 } && test -s conftest$ac_exeext &&
16970 $as_test_x conftest$ac_exeext; then
16971 ac_cv_func_getloadavg=yes
16972 else
16973 echo "$as_me: failed program was:" >&5
16974 sed 's/^/| /' conftest.$ac_ext >&5
16976 ac_cv_func_getloadavg=no
16979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16980 conftest$ac_exeext conftest.$ac_ext
16982 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16983 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16984 if test $ac_cv_func_getloadavg = yes; then
16985 exit 0
16986 else
16987 exit 1
16989 ) && ac_have_func=yes
16991 # On HPUX9, an unprivileged user can get load averages through this function.
16993 for ac_func in pstat_getdynamic
16995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17000 else
17001 cat >conftest.$ac_ext <<_ACEOF
17002 /* confdefs.h. */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h. */
17007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17009 #define $ac_func innocuous_$ac_func
17011 /* System header to define __stub macros and hopefully few prototypes,
17012 which can conflict with char $ac_func (); below.
17013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17014 <limits.h> exists even on freestanding compilers. */
17016 #ifdef __STDC__
17017 # include <limits.h>
17018 #else
17019 # include <assert.h>
17020 #endif
17022 #undef $ac_func
17024 /* Override any GCC internal prototype to avoid an error.
17025 Use char because int might match the return type of a GCC
17026 builtin and then its argument prototype would still apply. */
17027 #ifdef __cplusplus
17028 extern "C"
17029 #endif
17030 char $ac_func ();
17031 /* The GNU C library defines this for functions which it implements
17032 to always fail with ENOSYS. Some functions are actually named
17033 something starting with __ and the normal name is an alias. */
17034 #if defined __stub_$ac_func || defined __stub___$ac_func
17035 choke me
17036 #endif
17039 main ()
17041 return $ac_func ();
17043 return 0;
17045 _ACEOF
17046 rm -f conftest.$ac_objext conftest$ac_exeext
17047 if { (ac_try="$ac_link"
17048 case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17051 esac
17052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_link") 2>conftest.er1
17054 ac_status=$?
17055 grep -v '^ *+' conftest.er1 >conftest.err
17056 rm -f conftest.er1
17057 cat conftest.err >&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } && {
17060 test -z "$ac_c_werror_flag" ||
17061 test ! -s conftest.err
17062 } && test -s conftest$ac_exeext &&
17063 $as_test_x conftest$ac_exeext; then
17064 eval "$as_ac_var=yes"
17065 else
17066 echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17069 eval "$as_ac_var=no"
17072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17073 conftest$ac_exeext conftest.$ac_ext
17075 ac_res=`eval echo '${'$as_ac_var'}'`
17076 { echo "$as_me:$LINENO: result: $ac_res" >&5
17077 echo "${ECHO_T}$ac_res" >&6; }
17078 if test `eval echo '${'$as_ac_var'}'` = yes; then
17079 cat >>confdefs.h <<_ACEOF
17080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17081 _ACEOF
17084 done
17087 # Solaris has libkstat which does not require root.
17089 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17090 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17091 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17092 echo $ECHO_N "(cached) $ECHO_C" >&6
17093 else
17094 ac_check_lib_save_LIBS=$LIBS
17095 LIBS="-lkstat $LIBS"
17096 cat >conftest.$ac_ext <<_ACEOF
17097 /* confdefs.h. */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17103 /* Override any GCC internal prototype to avoid an error.
17104 Use char because int might match the return type of a GCC
17105 builtin and then its argument prototype would still apply. */
17106 #ifdef __cplusplus
17107 extern "C"
17108 #endif
17109 char kstat_open ();
17111 main ()
17113 return kstat_open ();
17115 return 0;
17117 _ACEOF
17118 rm -f conftest.$ac_objext conftest$ac_exeext
17119 if { (ac_try="$ac_link"
17120 case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17123 esac
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_link") 2>conftest.er1
17126 ac_status=$?
17127 grep -v '^ *+' conftest.er1 >conftest.err
17128 rm -f conftest.er1
17129 cat conftest.err >&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } && {
17132 test -z "$ac_c_werror_flag" ||
17133 test ! -s conftest.err
17134 } && test -s conftest$ac_exeext &&
17135 $as_test_x conftest$ac_exeext; then
17136 ac_cv_lib_kstat_kstat_open=yes
17137 else
17138 echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17141 ac_cv_lib_kstat_kstat_open=no
17144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17145 conftest$ac_exeext conftest.$ac_ext
17146 LIBS=$ac_check_lib_save_LIBS
17148 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17149 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17150 if test $ac_cv_lib_kstat_kstat_open = yes; then
17151 cat >>confdefs.h <<_ACEOF
17152 #define HAVE_LIBKSTAT 1
17153 _ACEOF
17155 LIBS="-lkstat $LIBS"
17159 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17161 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17162 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17163 # to get the right answer into the cache.
17164 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17165 if test $ac_have_func = no; then
17166 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17167 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17168 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17171 ac_check_lib_save_LIBS=$LIBS
17172 LIBS="-lelf $LIBS"
17173 cat >conftest.$ac_ext <<_ACEOF
17174 /* confdefs.h. */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17180 /* Override any GCC internal prototype to avoid an error.
17181 Use char because int might match the return type of a GCC
17182 builtin and then its argument prototype would still apply. */
17183 #ifdef __cplusplus
17184 extern "C"
17185 #endif
17186 char elf_begin ();
17188 main ()
17190 return elf_begin ();
17192 return 0;
17194 _ACEOF
17195 rm -f conftest.$ac_objext conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17200 esac
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_link") 2>conftest.er1
17203 ac_status=$?
17204 grep -v '^ *+' conftest.er1 >conftest.err
17205 rm -f conftest.er1
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } && {
17209 test -z "$ac_c_werror_flag" ||
17210 test ! -s conftest.err
17211 } && test -s conftest$ac_exeext &&
17212 $as_test_x conftest$ac_exeext; then
17213 ac_cv_lib_elf_elf_begin=yes
17214 else
17215 echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218 ac_cv_lib_elf_elf_begin=no
17221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17222 conftest$ac_exeext conftest.$ac_ext
17223 LIBS=$ac_check_lib_save_LIBS
17225 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17226 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17227 if test $ac_cv_lib_elf_elf_begin = yes; then
17228 LIBS="-lelf $LIBS"
17232 if test $ac_have_func = no; then
17233 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17234 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17235 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17236 echo $ECHO_N "(cached) $ECHO_C" >&6
17237 else
17238 ac_check_lib_save_LIBS=$LIBS
17239 LIBS="-lkvm $LIBS"
17240 cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h. */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17247 /* Override any GCC internal prototype to avoid an error.
17248 Use char because int might match the return type of a GCC
17249 builtin and then its argument prototype would still apply. */
17250 #ifdef __cplusplus
17251 extern "C"
17252 #endif
17253 char kvm_open ();
17255 main ()
17257 return kvm_open ();
17259 return 0;
17261 _ACEOF
17262 rm -f conftest.$ac_objext conftest$ac_exeext
17263 if { (ac_try="$ac_link"
17264 case "(($ac_try" in
17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17267 esac
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269 (eval "$ac_link") 2>conftest.er1
17270 ac_status=$?
17271 grep -v '^ *+' conftest.er1 >conftest.err
17272 rm -f conftest.er1
17273 cat conftest.err >&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } && {
17276 test -z "$ac_c_werror_flag" ||
17277 test ! -s conftest.err
17278 } && test -s conftest$ac_exeext &&
17279 $as_test_x conftest$ac_exeext; then
17280 ac_cv_lib_kvm_kvm_open=yes
17281 else
17282 echo "$as_me: failed program was:" >&5
17283 sed 's/^/| /' conftest.$ac_ext >&5
17285 ac_cv_lib_kvm_kvm_open=no
17288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17289 conftest$ac_exeext conftest.$ac_ext
17290 LIBS=$ac_check_lib_save_LIBS
17292 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17293 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17294 if test $ac_cv_lib_kvm_kvm_open = yes; then
17295 LIBS="-lkvm $LIBS"
17298 # Check for the 4.4BSD definition of getloadavg.
17299 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17300 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17301 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17303 else
17304 ac_check_lib_save_LIBS=$LIBS
17305 LIBS="-lutil $LIBS"
17306 cat >conftest.$ac_ext <<_ACEOF
17307 /* confdefs.h. */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17313 /* Override any GCC internal prototype to avoid an error.
17314 Use char because int might match the return type of a GCC
17315 builtin and then its argument prototype would still apply. */
17316 #ifdef __cplusplus
17317 extern "C"
17318 #endif
17319 char getloadavg ();
17321 main ()
17323 return getloadavg ();
17325 return 0;
17327 _ACEOF
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (ac_try="$ac_link"
17330 case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17333 esac
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_link") 2>conftest.er1
17336 ac_status=$?
17337 grep -v '^ *+' conftest.er1 >conftest.err
17338 rm -f conftest.er1
17339 cat conftest.err >&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } && {
17342 test -z "$ac_c_werror_flag" ||
17343 test ! -s conftest.err
17344 } && test -s conftest$ac_exeext &&
17345 $as_test_x conftest$ac_exeext; then
17346 ac_cv_lib_util_getloadavg=yes
17347 else
17348 echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17351 ac_cv_lib_util_getloadavg=no
17354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17355 conftest$ac_exeext conftest.$ac_ext
17356 LIBS=$ac_check_lib_save_LIBS
17358 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17359 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17360 if test $ac_cv_lib_util_getloadavg = yes; then
17361 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17366 if test $ac_have_func = no; then
17367 # There is a commonly available library for RS/6000 AIX.
17368 # Since it is not a standard part of AIX, it might be installed locally.
17369 ac_getloadavg_LIBS=$LIBS
17370 LIBS="-L/usr/local/lib $LIBS"
17371 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17372 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17373 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17374 echo $ECHO_N "(cached) $ECHO_C" >&6
17375 else
17376 ac_check_lib_save_LIBS=$LIBS
17377 LIBS="-lgetloadavg $LIBS"
17378 cat >conftest.$ac_ext <<_ACEOF
17379 /* confdefs.h. */
17380 _ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h. */
17385 /* Override any GCC internal prototype to avoid an error.
17386 Use char because int might match the return type of a GCC
17387 builtin and then its argument prototype would still apply. */
17388 #ifdef __cplusplus
17389 extern "C"
17390 #endif
17391 char getloadavg ();
17393 main ()
17395 return getloadavg ();
17397 return 0;
17399 _ACEOF
17400 rm -f conftest.$ac_objext conftest$ac_exeext
17401 if { (ac_try="$ac_link"
17402 case "(($ac_try" in
17403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404 *) ac_try_echo=$ac_try;;
17405 esac
17406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17407 (eval "$ac_link") 2>conftest.er1
17408 ac_status=$?
17409 grep -v '^ *+' conftest.er1 >conftest.err
17410 rm -f conftest.er1
17411 cat conftest.err >&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } && {
17414 test -z "$ac_c_werror_flag" ||
17415 test ! -s conftest.err
17416 } && test -s conftest$ac_exeext &&
17417 $as_test_x conftest$ac_exeext; then
17418 ac_cv_lib_getloadavg_getloadavg=yes
17419 else
17420 echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17423 ac_cv_lib_getloadavg_getloadavg=no
17426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17427 conftest$ac_exeext conftest.$ac_ext
17428 LIBS=$ac_check_lib_save_LIBS
17430 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17431 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17432 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17433 LIBS="-lgetloadavg $LIBS"
17434 else
17435 LIBS=$ac_getloadavg_LIBS
17440 # Make sure it is really in the library, if we think we found it,
17441 # otherwise set up the replacement function.
17443 for ac_func in getloadavg
17445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17450 else
17451 cat >conftest.$ac_ext <<_ACEOF
17452 /* confdefs.h. */
17453 _ACEOF
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17459 #define $ac_func innocuous_$ac_func
17461 /* System header to define __stub macros and hopefully few prototypes,
17462 which can conflict with char $ac_func (); below.
17463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17464 <limits.h> exists even on freestanding compilers. */
17466 #ifdef __STDC__
17467 # include <limits.h>
17468 #else
17469 # include <assert.h>
17470 #endif
17472 #undef $ac_func
17474 /* Override any GCC internal prototype to avoid an error.
17475 Use char because int might match the return type of a GCC
17476 builtin and then its argument prototype would still apply. */
17477 #ifdef __cplusplus
17478 extern "C"
17479 #endif
17480 char $ac_func ();
17481 /* The GNU C library defines this for functions which it implements
17482 to always fail with ENOSYS. Some functions are actually named
17483 something starting with __ and the normal name is an alias. */
17484 #if defined __stub_$ac_func || defined __stub___$ac_func
17485 choke me
17486 #endif
17489 main ()
17491 return $ac_func ();
17493 return 0;
17495 _ACEOF
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (ac_try="$ac_link"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17501 esac
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_link") 2>conftest.er1
17504 ac_status=$?
17505 grep -v '^ *+' conftest.er1 >conftest.err
17506 rm -f conftest.er1
17507 cat conftest.err >&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); } && {
17510 test -z "$ac_c_werror_flag" ||
17511 test ! -s conftest.err
17512 } && test -s conftest$ac_exeext &&
17513 $as_test_x conftest$ac_exeext; then
17514 eval "$as_ac_var=yes"
17515 else
17516 echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17519 eval "$as_ac_var=no"
17522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17523 conftest$ac_exeext conftest.$ac_ext
17525 ac_res=`eval echo '${'$as_ac_var'}'`
17526 { echo "$as_me:$LINENO: result: $ac_res" >&5
17527 echo "${ECHO_T}$ac_res" >&6; }
17528 if test `eval echo '${'$as_ac_var'}'` = yes; then
17529 cat >>confdefs.h <<_ACEOF
17530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17531 _ACEOF
17533 else
17534 case " $LIBOBJS " in
17535 *" getloadavg.$ac_objext "* ) ;;
17536 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17538 esac
17541 cat >>confdefs.h <<\_ACEOF
17542 #define C_GETLOADAVG 1
17543 _ACEOF
17545 # Figure out what our getloadavg.c needs.
17546 ac_have_func=no
17547 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17548 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17549 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17550 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
17553 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17554 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17555 else
17556 # Is the header compilable?
17557 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17558 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17559 cat >conftest.$ac_ext <<_ACEOF
17560 /* confdefs.h. */
17561 _ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h. */
17565 $ac_includes_default
17566 #include <sys/dg_sys_info.h>
17567 _ACEOF
17568 rm -f conftest.$ac_objext
17569 if { (ac_try="$ac_compile"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_compile") 2>conftest.er1
17576 ac_status=$?
17577 grep -v '^ *+' conftest.er1 >conftest.err
17578 rm -f conftest.er1
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } && {
17582 test -z "$ac_c_werror_flag" ||
17583 test ! -s conftest.err
17584 } && test -s conftest.$ac_objext; then
17585 ac_header_compiler=yes
17586 else
17587 echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17590 ac_header_compiler=no
17593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17595 echo "${ECHO_T}$ac_header_compiler" >&6; }
17597 # Is the header present?
17598 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17599 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17600 cat >conftest.$ac_ext <<_ACEOF
17601 /* confdefs.h. */
17602 _ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17606 #include <sys/dg_sys_info.h>
17607 _ACEOF
17608 if { (ac_try="$ac_cpp conftest.$ac_ext"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17615 ac_status=$?
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } >/dev/null && {
17621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 }; then
17624 ac_header_preproc=yes
17625 else
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629 ac_header_preproc=no
17632 rm -f conftest.err conftest.$ac_ext
17633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17634 echo "${ECHO_T}$ac_header_preproc" >&6; }
17636 # So? What about this header?
17637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17638 yes:no: )
17639 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17640 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17641 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17642 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17643 ac_header_preproc=yes
17645 no:yes:* )
17646 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17647 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17648 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17649 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17650 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17651 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17652 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17653 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17654 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17655 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17656 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17657 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17660 esac
17661 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17662 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17663 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17665 else
17666 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17668 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17669 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17672 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17673 ac_have_func=yes
17675 cat >>confdefs.h <<\_ACEOF
17676 #define DGUX 1
17677 _ACEOF
17680 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17681 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17682 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 else
17685 ac_check_lib_save_LIBS=$LIBS
17686 LIBS="-ldgc $LIBS"
17687 cat >conftest.$ac_ext <<_ACEOF
17688 /* confdefs.h. */
17689 _ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h. */
17694 /* Override any GCC internal prototype to avoid an error.
17695 Use char because int might match the return type of a GCC
17696 builtin and then its argument prototype would still apply. */
17697 #ifdef __cplusplus
17698 extern "C"
17699 #endif
17700 char dg_sys_info ();
17702 main ()
17704 return dg_sys_info ();
17706 return 0;
17708 _ACEOF
17709 rm -f conftest.$ac_objext conftest$ac_exeext
17710 if { (ac_try="$ac_link"
17711 case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17714 esac
17715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_link") 2>conftest.er1
17717 ac_status=$?
17718 grep -v '^ *+' conftest.er1 >conftest.err
17719 rm -f conftest.er1
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); } && {
17723 test -z "$ac_c_werror_flag" ||
17724 test ! -s conftest.err
17725 } && test -s conftest$ac_exeext &&
17726 $as_test_x conftest$ac_exeext; then
17727 ac_cv_lib_dgc_dg_sys_info=yes
17728 else
17729 echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17732 ac_cv_lib_dgc_dg_sys_info=no
17735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17736 conftest$ac_exeext conftest.$ac_ext
17737 LIBS=$ac_check_lib_save_LIBS
17739 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17740 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17741 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17742 cat >>confdefs.h <<_ACEOF
17743 #define HAVE_LIBDGC 1
17744 _ACEOF
17746 LIBS="-ldgc $LIBS"
17754 if test "${ac_cv_header_locale_h+set}" = set; then
17755 { echo "$as_me:$LINENO: checking for locale.h" >&5
17756 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17757 if test "${ac_cv_header_locale_h+set}" = set; then
17758 echo $ECHO_N "(cached) $ECHO_C" >&6
17760 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17761 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17762 else
17763 # Is the header compilable?
17764 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17765 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17766 cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h. */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17772 $ac_includes_default
17773 #include <locale.h>
17774 _ACEOF
17775 rm -f conftest.$ac_objext
17776 if { (ac_try="$ac_compile"
17777 case "(($ac_try" in
17778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779 *) ac_try_echo=$ac_try;;
17780 esac
17781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782 (eval "$ac_compile") 2>conftest.er1
17783 ac_status=$?
17784 grep -v '^ *+' conftest.er1 >conftest.err
17785 rm -f conftest.er1
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } && {
17789 test -z "$ac_c_werror_flag" ||
17790 test ! -s conftest.err
17791 } && test -s conftest.$ac_objext; then
17792 ac_header_compiler=yes
17793 else
17794 echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17797 ac_header_compiler=no
17800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17802 echo "${ECHO_T}$ac_header_compiler" >&6; }
17804 # Is the header present?
17805 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17806 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17807 cat >conftest.$ac_ext <<_ACEOF
17808 /* confdefs.h. */
17809 _ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17813 #include <locale.h>
17814 _ACEOF
17815 if { (ac_try="$ac_cpp conftest.$ac_ext"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } >/dev/null && {
17828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17829 test ! -s conftest.err
17830 }; then
17831 ac_header_preproc=yes
17832 else
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17836 ac_header_preproc=no
17839 rm -f conftest.err conftest.$ac_ext
17840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17841 echo "${ECHO_T}$ac_header_preproc" >&6; }
17843 # So? What about this header?
17844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17845 yes:no: )
17846 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17847 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17848 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17849 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17850 ac_header_preproc=yes
17852 no:yes:* )
17853 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17854 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17855 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17856 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17857 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17858 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17859 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17860 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17861 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17862 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17863 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17864 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17867 esac
17868 { echo "$as_me:$LINENO: checking for locale.h" >&5
17869 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17870 if test "${ac_cv_header_locale_h+set}" = set; then
17871 echo $ECHO_N "(cached) $ECHO_C" >&6
17872 else
17873 ac_cv_header_locale_h=$ac_header_preproc
17875 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17876 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17882 for ac_func in setlocale
17884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17885 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17887 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17888 echo $ECHO_N "(cached) $ECHO_C" >&6
17889 else
17890 cat >conftest.$ac_ext <<_ACEOF
17891 /* confdefs.h. */
17892 _ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17898 #define $ac_func innocuous_$ac_func
17900 /* System header to define __stub macros and hopefully few prototypes,
17901 which can conflict with char $ac_func (); below.
17902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17903 <limits.h> exists even on freestanding compilers. */
17905 #ifdef __STDC__
17906 # include <limits.h>
17907 #else
17908 # include <assert.h>
17909 #endif
17911 #undef $ac_func
17913 /* Override any GCC internal prototype to avoid an error.
17914 Use char because int might match the return type of a GCC
17915 builtin and then its argument prototype would still apply. */
17916 #ifdef __cplusplus
17917 extern "C"
17918 #endif
17919 char $ac_func ();
17920 /* The GNU C library defines this for functions which it implements
17921 to always fail with ENOSYS. Some functions are actually named
17922 something starting with __ and the normal name is an alias. */
17923 #if defined __stub_$ac_func || defined __stub___$ac_func
17924 choke me
17925 #endif
17928 main ()
17930 return $ac_func ();
17932 return 0;
17934 _ACEOF
17935 rm -f conftest.$ac_objext conftest$ac_exeext
17936 if { (ac_try="$ac_link"
17937 case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17940 esac
17941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_link") 2>conftest.er1
17943 ac_status=$?
17944 grep -v '^ *+' conftest.er1 >conftest.err
17945 rm -f conftest.er1
17946 cat conftest.err >&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); } && {
17949 test -z "$ac_c_werror_flag" ||
17950 test ! -s conftest.err
17951 } && test -s conftest$ac_exeext &&
17952 $as_test_x conftest$ac_exeext; then
17953 eval "$as_ac_var=yes"
17954 else
17955 echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17958 eval "$as_ac_var=no"
17961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17962 conftest$ac_exeext conftest.$ac_ext
17964 ac_res=`eval echo '${'$as_ac_var'}'`
17965 { echo "$as_me:$LINENO: result: $ac_res" >&5
17966 echo "${ECHO_T}$ac_res" >&6; }
17967 if test `eval echo '${'$as_ac_var'}'` = yes; then
17968 cat >>confdefs.h <<_ACEOF
17969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17970 _ACEOF
17973 done
17976 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17977 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17978 # Irix 4.0.5F has the header but not the library.
17979 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17980 ac_have_func=yes
17982 cat >>confdefs.h <<\_ACEOF
17983 #define SVR4 1
17984 _ACEOF
17988 if test $ac_have_func = no; then
17989 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17990 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17991 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17992 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17996 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17997 else
17998 # Is the header compilable?
17999 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18000 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18001 cat >conftest.$ac_ext <<_ACEOF
18002 /* confdefs.h. */
18003 _ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18007 $ac_includes_default
18008 #include <inq_stats/cpustats.h>
18009 _ACEOF
18010 rm -f conftest.$ac_objext
18011 if { (ac_try="$ac_compile"
18012 case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_compile") 2>conftest.er1
18018 ac_status=$?
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } && {
18024 test -z "$ac_c_werror_flag" ||
18025 test ! -s conftest.err
18026 } && test -s conftest.$ac_objext; then
18027 ac_header_compiler=yes
18028 else
18029 echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_header_compiler=no
18035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18037 echo "${ECHO_T}$ac_header_compiler" >&6; }
18039 # Is the header present?
18040 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18041 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18042 cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h. */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 #include <inq_stats/cpustats.h>
18049 _ACEOF
18050 if { (ac_try="$ac_cpp conftest.$ac_ext"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18057 ac_status=$?
18058 grep -v '^ *+' conftest.er1 >conftest.err
18059 rm -f conftest.er1
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } >/dev/null && {
18063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 }; then
18066 ac_header_preproc=yes
18067 else
18068 echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 ac_header_preproc=no
18074 rm -f conftest.err conftest.$ac_ext
18075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18076 echo "${ECHO_T}$ac_header_preproc" >&6; }
18078 # So? What about this header?
18079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18080 yes:no: )
18081 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18082 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18084 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18085 ac_header_preproc=yes
18087 no:yes:* )
18088 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18089 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18090 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18091 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18092 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18093 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18094 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18095 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18096 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18097 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18098 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18099 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18102 esac
18103 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18104 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18105 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18110 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18111 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18114 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18115 ac_have_func=yes
18117 cat >>confdefs.h <<\_ACEOF
18118 #define UMAX 1
18119 _ACEOF
18122 cat >>confdefs.h <<\_ACEOF
18123 #define UMAX4_3 1
18124 _ACEOF
18131 if test $ac_have_func = no; then
18132 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18133 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18134 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18135 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18136 echo $ECHO_N "(cached) $ECHO_C" >&6
18138 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18139 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18140 else
18141 # Is the header compilable?
18142 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18143 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18144 cat >conftest.$ac_ext <<_ACEOF
18145 /* confdefs.h. */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150 $ac_includes_default
18151 #include <sys/cpustats.h>
18152 _ACEOF
18153 rm -f conftest.$ac_objext
18154 if { (ac_try="$ac_compile"
18155 case "(($ac_try" in
18156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157 *) ac_try_echo=$ac_try;;
18158 esac
18159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18160 (eval "$ac_compile") 2>conftest.er1
18161 ac_status=$?
18162 grep -v '^ *+' conftest.er1 >conftest.err
18163 rm -f conftest.er1
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } && {
18167 test -z "$ac_c_werror_flag" ||
18168 test ! -s conftest.err
18169 } && test -s conftest.$ac_objext; then
18170 ac_header_compiler=yes
18171 else
18172 echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18175 ac_header_compiler=no
18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18180 echo "${ECHO_T}$ac_header_compiler" >&6; }
18182 # Is the header present?
18183 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18184 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h. */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 #include <sys/cpustats.h>
18192 _ACEOF
18193 if { (ac_try="$ac_cpp conftest.$ac_ext"
18194 case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18197 esac
18198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18200 ac_status=$?
18201 grep -v '^ *+' conftest.er1 >conftest.err
18202 rm -f conftest.er1
18203 cat conftest.err >&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } >/dev/null && {
18206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18207 test ! -s conftest.err
18208 }; then
18209 ac_header_preproc=yes
18210 else
18211 echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18214 ac_header_preproc=no
18217 rm -f conftest.err conftest.$ac_ext
18218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18219 echo "${ECHO_T}$ac_header_preproc" >&6; }
18221 # So? What about this header?
18222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18223 yes:no: )
18224 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18225 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18226 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18227 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18228 ac_header_preproc=yes
18230 no:yes:* )
18231 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18232 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18233 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18234 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18235 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18236 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18237 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18238 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18239 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18240 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18241 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18242 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18245 esac
18246 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18247 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18248 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 else
18251 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18253 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18254 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18257 if test $ac_cv_header_sys_cpustats_h = yes; then
18258 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18259 #define UMAX 1
18260 _ACEOF
18267 if test $ac_have_func = no; then
18269 for ac_header in mach/mach.h
18271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18278 ac_res=`eval echo '${'$as_ac_Header'}'`
18279 { echo "$as_me:$LINENO: result: $ac_res" >&5
18280 echo "${ECHO_T}$ac_res" >&6; }
18281 else
18282 # Is the header compilable?
18283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18285 cat >conftest.$ac_ext <<_ACEOF
18286 /* confdefs.h. */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18291 $ac_includes_default
18292 #include <$ac_header>
18293 _ACEOF
18294 rm -f conftest.$ac_objext
18295 if { (ac_try="$ac_compile"
18296 case "(($ac_try" in
18297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18298 *) ac_try_echo=$ac_try;;
18299 esac
18300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18301 (eval "$ac_compile") 2>conftest.er1
18302 ac_status=$?
18303 grep -v '^ *+' conftest.er1 >conftest.err
18304 rm -f conftest.er1
18305 cat conftest.err >&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); } && {
18308 test -z "$ac_c_werror_flag" ||
18309 test ! -s conftest.err
18310 } && test -s conftest.$ac_objext; then
18311 ac_header_compiler=yes
18312 else
18313 echo "$as_me: failed program was:" >&5
18314 sed 's/^/| /' conftest.$ac_ext >&5
18316 ac_header_compiler=no
18319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18321 echo "${ECHO_T}$ac_header_compiler" >&6; }
18323 # Is the header present?
18324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18326 cat >conftest.$ac_ext <<_ACEOF
18327 /* confdefs.h. */
18328 _ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h. */
18332 #include <$ac_header>
18333 _ACEOF
18334 if { (ac_try="$ac_cpp conftest.$ac_ext"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } >/dev/null && {
18347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 }; then
18350 ac_header_preproc=yes
18351 else
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 ac_header_preproc=no
18358 rm -f conftest.err conftest.$ac_ext
18359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18360 echo "${ECHO_T}$ac_header_preproc" >&6; }
18362 # So? What about this header?
18363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18364 yes:no: )
18365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18369 ac_header_preproc=yes
18371 no:yes:* )
18372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18386 esac
18387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 else
18392 eval "$as_ac_Header=\$ac_header_preproc"
18394 ac_res=`eval echo '${'$as_ac_Header'}'`
18395 { echo "$as_me:$LINENO: result: $ac_res" >&5
18396 echo "${ECHO_T}$ac_res" >&6; }
18399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18400 cat >>confdefs.h <<_ACEOF
18401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18402 _ACEOF
18406 done
18411 for ac_header in nlist.h
18413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
18420 ac_res=`eval echo '${'$as_ac_Header'}'`
18421 { echo "$as_me:$LINENO: result: $ac_res" >&5
18422 echo "${ECHO_T}$ac_res" >&6; }
18423 else
18424 # Is the header compilable?
18425 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18427 cat >conftest.$ac_ext <<_ACEOF
18428 /* confdefs.h. */
18429 _ACEOF
18430 cat confdefs.h >>conftest.$ac_ext
18431 cat >>conftest.$ac_ext <<_ACEOF
18432 /* end confdefs.h. */
18433 $ac_includes_default
18434 #include <$ac_header>
18435 _ACEOF
18436 rm -f conftest.$ac_objext
18437 if { (ac_try="$ac_compile"
18438 case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18441 esac
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_compile") 2>conftest.er1
18444 ac_status=$?
18445 grep -v '^ *+' conftest.er1 >conftest.err
18446 rm -f conftest.er1
18447 cat conftest.err >&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } && {
18450 test -z "$ac_c_werror_flag" ||
18451 test ! -s conftest.err
18452 } && test -s conftest.$ac_objext; then
18453 ac_header_compiler=yes
18454 else
18455 echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18458 ac_header_compiler=no
18461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18463 echo "${ECHO_T}$ac_header_compiler" >&6; }
18465 # Is the header present?
18466 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18468 cat >conftest.$ac_ext <<_ACEOF
18469 /* confdefs.h. */
18470 _ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18474 #include <$ac_header>
18475 _ACEOF
18476 if { (ac_try="$ac_cpp conftest.$ac_ext"
18477 case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18480 esac
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18483 ac_status=$?
18484 grep -v '^ *+' conftest.er1 >conftest.err
18485 rm -f conftest.er1
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } >/dev/null && {
18489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18490 test ! -s conftest.err
18491 }; then
18492 ac_header_preproc=yes
18493 else
18494 echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18497 ac_header_preproc=no
18500 rm -f conftest.err conftest.$ac_ext
18501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18502 echo "${ECHO_T}$ac_header_preproc" >&6; }
18504 # So? What about this header?
18505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18506 yes:no: )
18507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18511 ac_header_preproc=yes
18513 no:yes:* )
18514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18528 esac
18529 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18532 echo $ECHO_N "(cached) $ECHO_C" >&6
18533 else
18534 eval "$as_ac_Header=\$ac_header_preproc"
18536 ac_res=`eval echo '${'$as_ac_Header'}'`
18537 { echo "$as_me:$LINENO: result: $ac_res" >&5
18538 echo "${ECHO_T}$ac_res" >&6; }
18541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18542 cat >>confdefs.h <<_ACEOF
18543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18544 _ACEOF
18545 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18546 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18547 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18549 else
18550 cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h. */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18556 #include <nlist.h>
18559 main ()
18561 static struct nlist ac_aggr;
18562 if (ac_aggr.n_un.n_name)
18563 return 0;
18565 return 0;
18567 _ACEOF
18568 rm -f conftest.$ac_objext
18569 if { (ac_try="$ac_compile"
18570 case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18573 esac
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_compile") 2>conftest.er1
18576 ac_status=$?
18577 grep -v '^ *+' conftest.er1 >conftest.err
18578 rm -f conftest.er1
18579 cat conftest.err >&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } && {
18582 test -z "$ac_c_werror_flag" ||
18583 test ! -s conftest.err
18584 } && test -s conftest.$ac_objext; then
18585 ac_cv_member_struct_nlist_n_un_n_name=yes
18586 else
18587 echo "$as_me: failed program was:" >&5
18588 sed 's/^/| /' conftest.$ac_ext >&5
18590 cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h. */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18596 #include <nlist.h>
18599 main ()
18601 static struct nlist ac_aggr;
18602 if (sizeof ac_aggr.n_un.n_name)
18603 return 0;
18605 return 0;
18607 _ACEOF
18608 rm -f conftest.$ac_objext
18609 if { (ac_try="$ac_compile"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18613 esac
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_compile") 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest.$ac_objext; then
18625 ac_cv_member_struct_nlist_n_un_n_name=yes
18626 else
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18630 ac_cv_member_struct_nlist_n_un_n_name=no
18633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18638 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18639 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18640 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18642 cat >>confdefs.h <<_ACEOF
18643 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18644 _ACEOF
18647 cat >>confdefs.h <<\_ACEOF
18648 #define NLIST_NAME_UNION 1
18649 _ACEOF
18656 done
18659 done
18662 # Some definitions of getloadavg require that the program be installed setgid.
18663 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18664 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18665 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18667 else
18668 cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h. */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18674 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18675 #ifdef LDAV_PRIVILEGED
18676 Yowza Am I SETGID yet
18677 #endif
18678 _ACEOF
18679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18680 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18681 ac_cv_func_getloadavg_setgid=yes
18682 else
18683 ac_cv_func_getloadavg_setgid=no
18685 rm -f conftest*
18688 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18689 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18690 if test $ac_cv_func_getloadavg_setgid = yes; then
18691 NEED_SETGID=true
18693 cat >>confdefs.h <<\_ACEOF
18694 #define GETLOADAVG_PRIVILEGED 1
18695 _ACEOF
18697 else
18698 NEED_SETGID=false
18701 if test $ac_cv_func_getloadavg_setgid = yes; then
18702 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18703 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18704 if test "${ac_cv_group_kmem+set}" = set; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18708 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18709 # If we got an error (system does not support symlinks), try without -L.
18710 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18711 ac_cv_group_kmem=`echo $ac_ls_output \
18712 | sed -ne 's/[ ][ ]*/ /g;
18713 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18714 / /s/.* //;p;'`
18717 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18718 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18719 KMEM_GROUP=$ac_cv_group_kmem
18721 if test "x$ac_save_LIBS" = x; then
18722 GETLOADAVG_LIBS=$LIBS
18723 else
18724 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18726 LIBS=$ac_save_LIBS
18730 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18731 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18732 if test "${ac_cv_sys_largefile_source+set}" = set; then
18733 echo $ECHO_N "(cached) $ECHO_C" >&6
18734 else
18735 while :; do
18736 cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h. */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18742 #include <stdio.h>
18744 main ()
18746 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18748 return 0;
18750 _ACEOF
18751 rm -f conftest.$ac_objext conftest$ac_exeext
18752 if { (ac_try="$ac_link"
18753 case "(($ac_try" in
18754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18756 esac
18757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18758 (eval "$ac_link") 2>conftest.er1
18759 ac_status=$?
18760 grep -v '^ *+' conftest.er1 >conftest.err
18761 rm -f conftest.er1
18762 cat conftest.err >&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); } && {
18765 test -z "$ac_c_werror_flag" ||
18766 test ! -s conftest.err
18767 } && test -s conftest$ac_exeext &&
18768 $as_test_x conftest$ac_exeext; then
18769 ac_cv_sys_largefile_source=no; break
18770 else
18771 echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18778 conftest$ac_exeext conftest.$ac_ext
18779 cat >conftest.$ac_ext <<_ACEOF
18780 /* confdefs.h. */
18781 _ACEOF
18782 cat confdefs.h >>conftest.$ac_ext
18783 cat >>conftest.$ac_ext <<_ACEOF
18784 /* end confdefs.h. */
18785 #define _LARGEFILE_SOURCE 1
18786 #include <stdio.h>
18788 main ()
18790 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18792 return 0;
18794 _ACEOF
18795 rm -f conftest.$ac_objext conftest$ac_exeext
18796 if { (ac_try="$ac_link"
18797 case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18800 esac
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_link") 2>conftest.er1
18803 ac_status=$?
18804 grep -v '^ *+' conftest.er1 >conftest.err
18805 rm -f conftest.er1
18806 cat conftest.err >&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } && {
18809 test -z "$ac_c_werror_flag" ||
18810 test ! -s conftest.err
18811 } && test -s conftest$ac_exeext &&
18812 $as_test_x conftest$ac_exeext; then
18813 ac_cv_sys_largefile_source=1; break
18814 else
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18822 conftest$ac_exeext conftest.$ac_ext
18823 ac_cv_sys_largefile_source=unknown
18824 break
18825 done
18827 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18828 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18829 case $ac_cv_sys_largefile_source in #(
18830 no | unknown) ;;
18832 cat >>confdefs.h <<_ACEOF
18833 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18834 _ACEOF
18836 esac
18837 rm -f conftest*
18839 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18840 # in glibc 2.1.3, but that breaks too many other things.
18841 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18842 if test $ac_cv_sys_largefile_source != unknown; then
18844 cat >>confdefs.h <<\_ACEOF
18845 #define HAVE_FSEEKO 1
18846 _ACEOF
18851 # Configure getopt.
18852 # getopt.m4 serial 10
18854 # The getopt module assume you want GNU getopt, with getopt_long etc,
18855 # rather than vanilla POSIX getopt. This means your your code should
18856 # always include <getopt.h> for the getopt prototypes.
18868 # Prerequisites of lib/getopt*.
18873 GETOPT_H=
18875 for ac_header in getopt.h
18877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18884 ac_res=`eval echo '${'$as_ac_Header'}'`
18885 { echo "$as_me:$LINENO: result: $ac_res" >&5
18886 echo "${ECHO_T}$ac_res" >&6; }
18887 else
18888 # Is the header compilable?
18889 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18891 cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h. */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897 $ac_includes_default
18898 #include <$ac_header>
18899 _ACEOF
18900 rm -f conftest.$ac_objext
18901 if { (ac_try="$ac_compile"
18902 case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18905 esac
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_compile") 2>conftest.er1
18908 ac_status=$?
18909 grep -v '^ *+' conftest.er1 >conftest.err
18910 rm -f conftest.er1
18911 cat conftest.err >&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } && {
18914 test -z "$ac_c_werror_flag" ||
18915 test ! -s conftest.err
18916 } && test -s conftest.$ac_objext; then
18917 ac_header_compiler=yes
18918 else
18919 echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18922 ac_header_compiler=no
18925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18927 echo "${ECHO_T}$ac_header_compiler" >&6; }
18929 # Is the header present?
18930 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18932 cat >conftest.$ac_ext <<_ACEOF
18933 /* confdefs.h. */
18934 _ACEOF
18935 cat confdefs.h >>conftest.$ac_ext
18936 cat >>conftest.$ac_ext <<_ACEOF
18937 /* end confdefs.h. */
18938 #include <$ac_header>
18939 _ACEOF
18940 if { (ac_try="$ac_cpp conftest.$ac_ext"
18941 case "(($ac_try" in
18942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943 *) ac_try_echo=$ac_try;;
18944 esac
18945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18947 ac_status=$?
18948 grep -v '^ *+' conftest.er1 >conftest.err
18949 rm -f conftest.er1
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } >/dev/null && {
18953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18954 test ! -s conftest.err
18955 }; then
18956 ac_header_preproc=yes
18957 else
18958 echo "$as_me: failed program was:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18961 ac_header_preproc=no
18964 rm -f conftest.err conftest.$ac_ext
18965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18966 echo "${ECHO_T}$ac_header_preproc" >&6; }
18968 # So? What about this header?
18969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18970 yes:no: )
18971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18975 ac_header_preproc=yes
18977 no:yes:* )
18978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18992 esac
18993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18997 else
18998 eval "$as_ac_Header=\$ac_header_preproc"
19000 ac_res=`eval echo '${'$as_ac_Header'}'`
19001 { echo "$as_me:$LINENO: result: $ac_res" >&5
19002 echo "${ECHO_T}$ac_res" >&6; }
19005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19006 cat >>confdefs.h <<_ACEOF
19007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19008 _ACEOF
19010 else
19011 GETOPT_H=getopt.h
19014 done
19016 if test -z "$GETOPT_H"; then
19018 for ac_func in getopt_long_only
19020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19024 echo $ECHO_N "(cached) $ECHO_C" >&6
19025 else
19026 cat >conftest.$ac_ext <<_ACEOF
19027 /* confdefs.h. */
19028 _ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h. */
19032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19034 #define $ac_func innocuous_$ac_func
19036 /* System header to define __stub macros and hopefully few prototypes,
19037 which can conflict with char $ac_func (); below.
19038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19039 <limits.h> exists even on freestanding compilers. */
19041 #ifdef __STDC__
19042 # include <limits.h>
19043 #else
19044 # include <assert.h>
19045 #endif
19047 #undef $ac_func
19049 /* Override any GCC internal prototype to avoid an error.
19050 Use char because int might match the return type of a GCC
19051 builtin and then its argument prototype would still apply. */
19052 #ifdef __cplusplus
19053 extern "C"
19054 #endif
19055 char $ac_func ();
19056 /* The GNU C library defines this for functions which it implements
19057 to always fail with ENOSYS. Some functions are actually named
19058 something starting with __ and the normal name is an alias. */
19059 #if defined __stub_$ac_func || defined __stub___$ac_func
19060 choke me
19061 #endif
19064 main ()
19066 return $ac_func ();
19068 return 0;
19070 _ACEOF
19071 rm -f conftest.$ac_objext conftest$ac_exeext
19072 if { (ac_try="$ac_link"
19073 case "(($ac_try" in
19074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075 *) ac_try_echo=$ac_try;;
19076 esac
19077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078 (eval "$ac_link") 2>conftest.er1
19079 ac_status=$?
19080 grep -v '^ *+' conftest.er1 >conftest.err
19081 rm -f conftest.er1
19082 cat conftest.err >&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } && {
19085 test -z "$ac_c_werror_flag" ||
19086 test ! -s conftest.err
19087 } && test -s conftest$ac_exeext &&
19088 $as_test_x conftest$ac_exeext; then
19089 eval "$as_ac_var=yes"
19090 else
19091 echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19094 eval "$as_ac_var=no"
19097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19098 conftest$ac_exeext conftest.$ac_ext
19100 ac_res=`eval echo '${'$as_ac_var'}'`
19101 { echo "$as_me:$LINENO: result: $ac_res" >&5
19102 echo "${ECHO_T}$ac_res" >&6; }
19103 if test `eval echo '${'$as_ac_var'}'` = yes; then
19104 cat >>confdefs.h <<_ACEOF
19105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19106 _ACEOF
19108 else
19109 GETOPT_H=getopt.h
19111 done
19115 if test -z "$GETOPT_H"; then
19116 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19117 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19118 if test "${ac_cv_have_decl_optreset+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19120 else
19121 cat >conftest.$ac_ext <<_ACEOF
19122 /* confdefs.h. */
19123 _ACEOF
19124 cat confdefs.h >>conftest.$ac_ext
19125 cat >>conftest.$ac_ext <<_ACEOF
19126 /* end confdefs.h. */
19127 #include <getopt.h>
19130 main ()
19132 #ifndef optreset
19133 (void) optreset;
19134 #endif
19137 return 0;
19139 _ACEOF
19140 rm -f conftest.$ac_objext
19141 if { (ac_try="$ac_compile"
19142 case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19145 esac
19146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_compile") 2>conftest.er1
19148 ac_status=$?
19149 grep -v '^ *+' conftest.er1 >conftest.err
19150 rm -f conftest.er1
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } && {
19154 test -z "$ac_c_werror_flag" ||
19155 test ! -s conftest.err
19156 } && test -s conftest.$ac_objext; then
19157 ac_cv_have_decl_optreset=yes
19158 else
19159 echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19162 ac_cv_have_decl_optreset=no
19165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19168 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19169 if test $ac_cv_have_decl_optreset = yes; then
19170 GETOPT_H=getopt.h
19175 if test -z "$GETOPT_H"; then
19176 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19177 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19178 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19179 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 else
19181 if test "$cross_compiling" = yes; then
19182 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19183 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19184 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 else
19187 cat >conftest.$ac_ext <<_ACEOF
19188 /* confdefs.h. */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19193 #include <getopt.h>
19196 main ()
19198 #ifndef getopt_clip
19199 (void) getopt_clip;
19200 #endif
19203 return 0;
19205 _ACEOF
19206 rm -f conftest.$ac_objext
19207 if { (ac_try="$ac_compile"
19208 case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_compile") 2>conftest.er1
19214 ac_status=$?
19215 grep -v '^ *+' conftest.er1 >conftest.err
19216 rm -f conftest.er1
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } && {
19220 test -z "$ac_c_werror_flag" ||
19221 test ! -s conftest.err
19222 } && test -s conftest.$ac_objext; then
19223 ac_cv_have_decl_getopt_clip=yes
19224 else
19225 echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19228 ac_cv_have_decl_getopt_clip=no
19231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19234 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19235 if test $ac_cv_have_decl_getopt_clip = yes; then
19236 gl_cv_func_gnu_getopt=no
19237 else
19238 gl_cv_func_gnu_getopt=yes
19241 else
19242 cat >conftest.$ac_ext <<_ACEOF
19243 /* confdefs.h. */
19244 _ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 #include <getopt.h>
19250 main ()
19253 char *myargv[3];
19254 myargv[0] = "conftest";
19255 myargv[1] = "-+";
19256 myargv[2] = 0;
19257 return getopt (2, myargv, "+a") != '?';
19260 return 0;
19262 _ACEOF
19263 rm -f conftest$ac_exeext
19264 if { (ac_try="$ac_link"
19265 case "(($ac_try" in
19266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267 *) ac_try_echo=$ac_try;;
19268 esac
19269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270 (eval "$ac_link") 2>&5
19271 ac_status=$?
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; }; then
19283 gl_cv_func_gnu_getopt=yes
19284 else
19285 echo "$as_me: program exited with status $ac_status" >&5
19286 echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19289 ( exit $ac_status )
19290 gl_cv_func_gnu_getopt=no
19292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19297 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19298 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19299 if test "$gl_cv_func_gnu_getopt" = "no"; then
19300 GETOPT_H=getopt.h
19306 if test -n "$GETOPT_H"; then
19309 GETOPT_H=getopt.h
19311 cat >>confdefs.h <<\_ACEOF
19312 #define __GETOPT_PREFIX rpl_
19313 _ACEOF
19318 GETOPTOBJS='getopt.o getopt1.o'
19325 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19326 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19327 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19329 else
19330 # Use it with a single arg.
19331 cat >conftest.$ac_ext <<_ACEOF
19332 /* confdefs.h. */
19333 _ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h. */
19337 $ac_includes_default
19339 main ()
19341 getpgrp (0);
19343 return 0;
19345 _ACEOF
19346 rm -f conftest.$ac_objext
19347 if { (ac_try="$ac_compile"
19348 case "(($ac_try" in
19349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350 *) ac_try_echo=$ac_try;;
19351 esac
19352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19353 (eval "$ac_compile") 2>conftest.er1
19354 ac_status=$?
19355 grep -v '^ *+' conftest.er1 >conftest.err
19356 rm -f conftest.er1
19357 cat conftest.err >&5
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } && {
19360 test -z "$ac_c_werror_flag" ||
19361 test ! -s conftest.err
19362 } && test -s conftest.$ac_objext; then
19363 ac_cv_func_getpgrp_void=no
19364 else
19365 echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19368 ac_cv_func_getpgrp_void=yes
19371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19374 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19375 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19376 if test $ac_cv_func_getpgrp_void = yes; then
19378 cat >>confdefs.h <<\_ACEOF
19379 #define GETPGRP_VOID 1
19380 _ACEOF
19386 for ac_func in strftime
19388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19393 else
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h. */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19402 #define $ac_func innocuous_$ac_func
19404 /* System header to define __stub macros and hopefully few prototypes,
19405 which can conflict with char $ac_func (); below.
19406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19407 <limits.h> exists even on freestanding compilers. */
19409 #ifdef __STDC__
19410 # include <limits.h>
19411 #else
19412 # include <assert.h>
19413 #endif
19415 #undef $ac_func
19417 /* Override any GCC internal prototype to avoid an error.
19418 Use char because int might match the return type of a GCC
19419 builtin and then its argument prototype would still apply. */
19420 #ifdef __cplusplus
19421 extern "C"
19422 #endif
19423 char $ac_func ();
19424 /* The GNU C library defines this for functions which it implements
19425 to always fail with ENOSYS. Some functions are actually named
19426 something starting with __ and the normal name is an alias. */
19427 #if defined __stub_$ac_func || defined __stub___$ac_func
19428 choke me
19429 #endif
19432 main ()
19434 return $ac_func ();
19436 return 0;
19438 _ACEOF
19439 rm -f conftest.$ac_objext conftest$ac_exeext
19440 if { (ac_try="$ac_link"
19441 case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19444 esac
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_link") 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } && {
19453 test -z "$ac_c_werror_flag" ||
19454 test ! -s conftest.err
19455 } && test -s conftest$ac_exeext &&
19456 $as_test_x conftest$ac_exeext; then
19457 eval "$as_ac_var=yes"
19458 else
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19462 eval "$as_ac_var=no"
19465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19466 conftest$ac_exeext conftest.$ac_ext
19468 ac_res=`eval echo '${'$as_ac_var'}'`
19469 { echo "$as_me:$LINENO: result: $ac_res" >&5
19470 echo "${ECHO_T}$ac_res" >&6; }
19471 if test `eval echo '${'$as_ac_var'}'` = yes; then
19472 cat >>confdefs.h <<_ACEOF
19473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19474 _ACEOF
19476 else
19477 # strftime is in -lintl on SCO UNIX.
19478 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19479 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19480 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
19482 else
19483 ac_check_lib_save_LIBS=$LIBS
19484 LIBS="-lintl $LIBS"
19485 cat >conftest.$ac_ext <<_ACEOF
19486 /* confdefs.h. */
19487 _ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h. */
19492 /* Override any GCC internal prototype to avoid an error.
19493 Use char because int might match the return type of a GCC
19494 builtin and then its argument prototype would still apply. */
19495 #ifdef __cplusplus
19496 extern "C"
19497 #endif
19498 char strftime ();
19500 main ()
19502 return strftime ();
19504 return 0;
19506 _ACEOF
19507 rm -f conftest.$ac_objext conftest$ac_exeext
19508 if { (ac_try="$ac_link"
19509 case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512 esac
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_link") 2>conftest.er1
19515 ac_status=$?
19516 grep -v '^ *+' conftest.er1 >conftest.err
19517 rm -f conftest.er1
19518 cat conftest.err >&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && {
19521 test -z "$ac_c_werror_flag" ||
19522 test ! -s conftest.err
19523 } && test -s conftest$ac_exeext &&
19524 $as_test_x conftest$ac_exeext; then
19525 ac_cv_lib_intl_strftime=yes
19526 else
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ac_cv_lib_intl_strftime=no
19533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19534 conftest$ac_exeext conftest.$ac_ext
19535 LIBS=$ac_check_lib_save_LIBS
19537 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19538 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19539 if test $ac_cv_lib_intl_strftime = yes; then
19540 cat >>confdefs.h <<\_ACEOF
19541 #define HAVE_STRFTIME 1
19542 _ACEOF
19544 LIBS="-lintl $LIBS"
19548 done
19551 # UNIX98 PTYs.
19553 for ac_func in grantpt
19555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19560 else
19561 cat >conftest.$ac_ext <<_ACEOF
19562 /* confdefs.h. */
19563 _ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19569 #define $ac_func innocuous_$ac_func
19571 /* System header to define __stub macros and hopefully few prototypes,
19572 which can conflict with char $ac_func (); below.
19573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19574 <limits.h> exists even on freestanding compilers. */
19576 #ifdef __STDC__
19577 # include <limits.h>
19578 #else
19579 # include <assert.h>
19580 #endif
19582 #undef $ac_func
19584 /* Override any GCC internal prototype to avoid an error.
19585 Use char because int might match the return type of a GCC
19586 builtin and then its argument prototype would still apply. */
19587 #ifdef __cplusplus
19588 extern "C"
19589 #endif
19590 char $ac_func ();
19591 /* The GNU C library defines this for functions which it implements
19592 to always fail with ENOSYS. Some functions are actually named
19593 something starting with __ and the normal name is an alias. */
19594 #if defined __stub_$ac_func || defined __stub___$ac_func
19595 choke me
19596 #endif
19599 main ()
19601 return $ac_func ();
19603 return 0;
19605 _ACEOF
19606 rm -f conftest.$ac_objext conftest$ac_exeext
19607 if { (ac_try="$ac_link"
19608 case "(($ac_try" in
19609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19611 esac
19612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19613 (eval "$ac_link") 2>conftest.er1
19614 ac_status=$?
19615 grep -v '^ *+' conftest.er1 >conftest.err
19616 rm -f conftest.er1
19617 cat conftest.err >&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } && {
19620 test -z "$ac_c_werror_flag" ||
19621 test ! -s conftest.err
19622 } && test -s conftest$ac_exeext &&
19623 $as_test_x conftest$ac_exeext; then
19624 eval "$as_ac_var=yes"
19625 else
19626 echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19629 eval "$as_ac_var=no"
19632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19633 conftest$ac_exeext conftest.$ac_ext
19635 ac_res=`eval echo '${'$as_ac_var'}'`
19636 { echo "$as_me:$LINENO: result: $ac_res" >&5
19637 echo "${ECHO_T}$ac_res" >&6; }
19638 if test `eval echo '${'$as_ac_var'}'` = yes; then
19639 cat >>confdefs.h <<_ACEOF
19640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19641 _ACEOF
19644 done
19647 # PTY-related GNU extensions.
19649 for ac_func in getpt
19651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657 cat >conftest.$ac_ext <<_ACEOF
19658 /* confdefs.h. */
19659 _ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h. */
19663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19665 #define $ac_func innocuous_$ac_func
19667 /* System header to define __stub macros and hopefully few prototypes,
19668 which can conflict with char $ac_func (); below.
19669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19670 <limits.h> exists even on freestanding compilers. */
19672 #ifdef __STDC__
19673 # include <limits.h>
19674 #else
19675 # include <assert.h>
19676 #endif
19678 #undef $ac_func
19680 /* Override any GCC internal prototype to avoid an error.
19681 Use char because int might match the return type of a GCC
19682 builtin and then its argument prototype would still apply. */
19683 #ifdef __cplusplus
19684 extern "C"
19685 #endif
19686 char $ac_func ();
19687 /* The GNU C library defines this for functions which it implements
19688 to always fail with ENOSYS. Some functions are actually named
19689 something starting with __ and the normal name is an alias. */
19690 #if defined __stub_$ac_func || defined __stub___$ac_func
19691 choke me
19692 #endif
19695 main ()
19697 return $ac_func ();
19699 return 0;
19701 _ACEOF
19702 rm -f conftest.$ac_objext conftest$ac_exeext
19703 if { (ac_try="$ac_link"
19704 case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19707 esac
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_link") 2>conftest.er1
19710 ac_status=$?
19711 grep -v '^ *+' conftest.er1 >conftest.err
19712 rm -f conftest.er1
19713 cat conftest.err >&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } && {
19716 test -z "$ac_c_werror_flag" ||
19717 test ! -s conftest.err
19718 } && test -s conftest$ac_exeext &&
19719 $as_test_x conftest$ac_exeext; then
19720 eval "$as_ac_var=yes"
19721 else
19722 echo "$as_me: failed program was:" >&5
19723 sed 's/^/| /' conftest.$ac_ext >&5
19725 eval "$as_ac_var=no"
19728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19729 conftest$ac_exeext conftest.$ac_ext
19731 ac_res=`eval echo '${'$as_ac_var'}'`
19732 { echo "$as_me:$LINENO: result: $ac_res" >&5
19733 echo "${ECHO_T}$ac_res" >&6; }
19734 if test `eval echo '${'$as_ac_var'}'` = yes; then
19735 cat >>confdefs.h <<_ACEOF
19736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19737 _ACEOF
19740 done
19743 # Check this now, so that we will NOT find the above functions in ncurses.
19744 # That is because we have not set up to link ncurses in lib-src.
19745 # It's better to believe a function is not available
19746 # than to expect to find it in ncurses.
19748 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19749 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19750 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753 ac_check_lib_save_LIBS=$LIBS
19754 LIBS="-lncurses $LIBS"
19755 cat >conftest.$ac_ext <<_ACEOF
19756 /* confdefs.h. */
19757 _ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19762 /* Override any GCC internal prototype to avoid an error.
19763 Use char because int might match the return type of a GCC
19764 builtin and then its argument prototype would still apply. */
19765 #ifdef __cplusplus
19766 extern "C"
19767 #endif
19768 char tparm ();
19770 main ()
19772 return tparm ();
19774 return 0;
19776 _ACEOF
19777 rm -f conftest.$ac_objext conftest$ac_exeext
19778 if { (ac_try="$ac_link"
19779 case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19782 esac
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_link") 2>conftest.er1
19785 ac_status=$?
19786 grep -v '^ *+' conftest.er1 >conftest.err
19787 rm -f conftest.er1
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } && {
19791 test -z "$ac_c_werror_flag" ||
19792 test ! -s conftest.err
19793 } && test -s conftest$ac_exeext &&
19794 $as_test_x conftest$ac_exeext; then
19795 ac_cv_lib_ncurses_tparm=yes
19796 else
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19800 ac_cv_lib_ncurses_tparm=no
19803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19804 conftest$ac_exeext conftest.$ac_ext
19805 LIBS=$ac_check_lib_save_LIBS
19807 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19808 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19809 if test $ac_cv_lib_ncurses_tparm = yes; then
19810 cat >>confdefs.h <<_ACEOF
19811 #define HAVE_LIBNCURSES 1
19812 _ACEOF
19814 LIBS="-lncurses $LIBS"
19819 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19821 resolv=no
19822 cat >conftest.$ac_ext <<_ACEOF
19823 /* confdefs.h. */
19824 _ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h. */
19828 #include <netinet/in.h>
19829 #include <arpa/nameser.h>
19830 #include <resolv.h>
19832 main ()
19834 return res_init();
19836 return 0;
19838 _ACEOF
19839 rm -f conftest.$ac_objext conftest$ac_exeext
19840 if { (ac_try="$ac_link"
19841 case "(($ac_try" in
19842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843 *) ac_try_echo=$ac_try;;
19844 esac
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846 (eval "$ac_link") 2>conftest.er1
19847 ac_status=$?
19848 grep -v '^ *+' conftest.er1 >conftest.err
19849 rm -f conftest.er1
19850 cat conftest.err >&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } && {
19853 test -z "$ac_c_werror_flag" ||
19854 test ! -s conftest.err
19855 } && test -s conftest$ac_exeext &&
19856 $as_test_x conftest$ac_exeext; then
19857 have_res_init=yes
19858 else
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19862 have_res_init=no
19865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19866 conftest$ac_exeext conftest.$ac_ext
19867 if test "$have_res_init" = no; then
19868 OLIBS="$LIBS"
19869 LIBS="$LIBS -lresolv"
19870 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19871 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19872 cat >conftest.$ac_ext <<_ACEOF
19873 /* confdefs.h. */
19874 _ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19878 #include <netinet/in.h>
19879 #include <arpa/nameser.h>
19880 #include <resolv.h>
19882 main ()
19884 return res_init();
19886 return 0;
19888 _ACEOF
19889 rm -f conftest.$ac_objext conftest$ac_exeext
19890 if { (ac_try="$ac_link"
19891 case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19894 esac
19895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_link") 2>conftest.er1
19897 ac_status=$?
19898 grep -v '^ *+' conftest.er1 >conftest.err
19899 rm -f conftest.er1
19900 cat conftest.err >&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } && {
19903 test -z "$ac_c_werror_flag" ||
19904 test ! -s conftest.err
19905 } && test -s conftest$ac_exeext &&
19906 $as_test_x conftest$ac_exeext; then
19907 have_res_init=yes
19908 else
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 have_res_init=no
19915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19916 conftest$ac_exeext conftest.$ac_ext
19917 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19918 echo "${ECHO_T}$have_res_init" >&6; }
19919 if test "$have_res_init" = yes ; then
19920 resolv=yes
19922 LIBS="$OLIBS"
19925 if test "$have_res_init" = yes; then
19927 cat >>confdefs.h <<\_ACEOF
19928 #define HAVE_RES_INIT 1
19929 _ACEOF
19933 # Do we need the Hesiod library to provide the support routines?
19934 if test "$with_hesiod" != no ; then
19935 # Don't set $LIBS here -- see comments above.
19936 { echo "$as_me:$LINENO: checking for res_send" >&5
19937 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19938 if test "${ac_cv_func_res_send+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 else
19941 cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h. */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19949 #define res_send innocuous_res_send
19951 /* System header to define __stub macros and hopefully few prototypes,
19952 which can conflict with char res_send (); below.
19953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19954 <limits.h> exists even on freestanding compilers. */
19956 #ifdef __STDC__
19957 # include <limits.h>
19958 #else
19959 # include <assert.h>
19960 #endif
19962 #undef res_send
19964 /* Override any GCC internal prototype to avoid an error.
19965 Use char because int might match the return type of a GCC
19966 builtin and then its argument prototype would still apply. */
19967 #ifdef __cplusplus
19968 extern "C"
19969 #endif
19970 char res_send ();
19971 /* The GNU C library defines this for functions which it implements
19972 to always fail with ENOSYS. Some functions are actually named
19973 something starting with __ and the normal name is an alias. */
19974 #if defined __stub_res_send || defined __stub___res_send
19975 choke me
19976 #endif
19979 main ()
19981 return res_send ();
19983 return 0;
19985 _ACEOF
19986 rm -f conftest.$ac_objext conftest$ac_exeext
19987 if { (ac_try="$ac_link"
19988 case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19991 esac
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_link") 2>conftest.er1
19994 ac_status=$?
19995 grep -v '^ *+' conftest.er1 >conftest.err
19996 rm -f conftest.er1
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } && {
20000 test -z "$ac_c_werror_flag" ||
20001 test ! -s conftest.err
20002 } && test -s conftest$ac_exeext &&
20003 $as_test_x conftest$ac_exeext; then
20004 ac_cv_func_res_send=yes
20005 else
20006 echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20009 ac_cv_func_res_send=no
20012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20013 conftest$ac_exeext conftest.$ac_ext
20015 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20016 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20017 if test $ac_cv_func_res_send = yes; then
20019 else
20020 { echo "$as_me:$LINENO: checking for __res_send" >&5
20021 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20022 if test "${ac_cv_func___res_send+set}" = set; then
20023 echo $ECHO_N "(cached) $ECHO_C" >&6
20024 else
20025 cat >conftest.$ac_ext <<_ACEOF
20026 /* confdefs.h. */
20027 _ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20031 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20033 #define __res_send innocuous___res_send
20035 /* System header to define __stub macros and hopefully few prototypes,
20036 which can conflict with char __res_send (); below.
20037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20038 <limits.h> exists even on freestanding compilers. */
20040 #ifdef __STDC__
20041 # include <limits.h>
20042 #else
20043 # include <assert.h>
20044 #endif
20046 #undef __res_send
20048 /* Override any GCC internal prototype to avoid an error.
20049 Use char because int might match the return type of a GCC
20050 builtin and then its argument prototype would still apply. */
20051 #ifdef __cplusplus
20052 extern "C"
20053 #endif
20054 char __res_send ();
20055 /* The GNU C library defines this for functions which it implements
20056 to always fail with ENOSYS. Some functions are actually named
20057 something starting with __ and the normal name is an alias. */
20058 #if defined __stub___res_send || defined __stub_____res_send
20059 choke me
20060 #endif
20063 main ()
20065 return __res_send ();
20067 return 0;
20069 _ACEOF
20070 rm -f conftest.$ac_objext conftest$ac_exeext
20071 if { (ac_try="$ac_link"
20072 case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20075 esac
20076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_link") 2>conftest.er1
20078 ac_status=$?
20079 grep -v '^ *+' conftest.er1 >conftest.err
20080 rm -f conftest.er1
20081 cat conftest.err >&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } && {
20084 test -z "$ac_c_werror_flag" ||
20085 test ! -s conftest.err
20086 } && test -s conftest$ac_exeext &&
20087 $as_test_x conftest$ac_exeext; then
20088 ac_cv_func___res_send=yes
20089 else
20090 echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20093 ac_cv_func___res_send=no
20096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20097 conftest$ac_exeext conftest.$ac_ext
20099 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20100 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20101 if test $ac_cv_func___res_send = yes; then
20103 else
20104 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20105 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20106 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20108 else
20109 ac_check_lib_save_LIBS=$LIBS
20110 LIBS="-lresolv $LIBS"
20111 cat >conftest.$ac_ext <<_ACEOF
20112 /* confdefs.h. */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20118 /* Override any GCC internal prototype to avoid an error.
20119 Use char because int might match the return type of a GCC
20120 builtin and then its argument prototype would still apply. */
20121 #ifdef __cplusplus
20122 extern "C"
20123 #endif
20124 char res_send ();
20126 main ()
20128 return res_send ();
20130 return 0;
20132 _ACEOF
20133 rm -f conftest.$ac_objext conftest$ac_exeext
20134 if { (ac_try="$ac_link"
20135 case "(($ac_try" in
20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20138 esac
20139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140 (eval "$ac_link") 2>conftest.er1
20141 ac_status=$?
20142 grep -v '^ *+' conftest.er1 >conftest.err
20143 rm -f conftest.er1
20144 cat conftest.err >&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } && {
20147 test -z "$ac_c_werror_flag" ||
20148 test ! -s conftest.err
20149 } && test -s conftest$ac_exeext &&
20150 $as_test_x conftest$ac_exeext; then
20151 ac_cv_lib_resolv_res_send=yes
20152 else
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20156 ac_cv_lib_resolv_res_send=no
20159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20160 conftest$ac_exeext conftest.$ac_ext
20161 LIBS=$ac_check_lib_save_LIBS
20163 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20164 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20165 if test $ac_cv_lib_resolv_res_send = yes; then
20166 resolv=yes
20167 else
20168 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20169 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20170 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20171 echo $ECHO_N "(cached) $ECHO_C" >&6
20172 else
20173 ac_check_lib_save_LIBS=$LIBS
20174 LIBS="-lresolv $LIBS"
20175 cat >conftest.$ac_ext <<_ACEOF
20176 /* confdefs.h. */
20177 _ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20182 /* Override any GCC internal prototype to avoid an error.
20183 Use char because int might match the return type of a GCC
20184 builtin and then its argument prototype would still apply. */
20185 #ifdef __cplusplus
20186 extern "C"
20187 #endif
20188 char __res_send ();
20190 main ()
20192 return __res_send ();
20194 return 0;
20196 _ACEOF
20197 rm -f conftest.$ac_objext conftest$ac_exeext
20198 if { (ac_try="$ac_link"
20199 case "(($ac_try" in
20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201 *) ac_try_echo=$ac_try;;
20202 esac
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204 (eval "$ac_link") 2>conftest.er1
20205 ac_status=$?
20206 grep -v '^ *+' conftest.er1 >conftest.err
20207 rm -f conftest.er1
20208 cat conftest.err >&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); } && {
20211 test -z "$ac_c_werror_flag" ||
20212 test ! -s conftest.err
20213 } && test -s conftest$ac_exeext &&
20214 $as_test_x conftest$ac_exeext; then
20215 ac_cv_lib_resolv___res_send=yes
20216 else
20217 echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20220 ac_cv_lib_resolv___res_send=no
20223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20224 conftest$ac_exeext conftest.$ac_ext
20225 LIBS=$ac_check_lib_save_LIBS
20227 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20228 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20229 if test $ac_cv_lib_resolv___res_send = yes; then
20230 resolv=yes
20239 if test "$resolv" = yes ; then
20240 RESOLVLIB=-lresolv
20241 else
20242 RESOLVLIB=
20244 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20245 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20246 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20248 else
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h. */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20257 #define hes_getmailhost innocuous_hes_getmailhost
20259 /* System header to define __stub macros and hopefully few prototypes,
20260 which can conflict with char hes_getmailhost (); below.
20261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20262 <limits.h> exists even on freestanding compilers. */
20264 #ifdef __STDC__
20265 # include <limits.h>
20266 #else
20267 # include <assert.h>
20268 #endif
20270 #undef hes_getmailhost
20272 /* Override any GCC internal prototype to avoid an error.
20273 Use char because int might match the return type of a GCC
20274 builtin and then its argument prototype would still apply. */
20275 #ifdef __cplusplus
20276 extern "C"
20277 #endif
20278 char hes_getmailhost ();
20279 /* The GNU C library defines this for functions which it implements
20280 to always fail with ENOSYS. Some functions are actually named
20281 something starting with __ and the normal name is an alias. */
20282 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20283 choke me
20284 #endif
20287 main ()
20289 return hes_getmailhost ();
20291 return 0;
20293 _ACEOF
20294 rm -f conftest.$ac_objext conftest$ac_exeext
20295 if { (ac_try="$ac_link"
20296 case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20299 esac
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_link") 2>conftest.er1
20302 ac_status=$?
20303 grep -v '^ *+' conftest.er1 >conftest.err
20304 rm -f conftest.er1
20305 cat conftest.err >&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } && {
20308 test -z "$ac_c_werror_flag" ||
20309 test ! -s conftest.err
20310 } && test -s conftest$ac_exeext &&
20311 $as_test_x conftest$ac_exeext; then
20312 ac_cv_func_hes_getmailhost=yes
20313 else
20314 echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20317 ac_cv_func_hes_getmailhost=no
20320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20321 conftest$ac_exeext conftest.$ac_ext
20323 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20324 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20325 if test $ac_cv_func_hes_getmailhost = yes; then
20327 else
20328 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20329 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20330 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20331 echo $ECHO_N "(cached) $ECHO_C" >&6
20332 else
20333 ac_check_lib_save_LIBS=$LIBS
20334 LIBS="-lhesiod $RESOLVLIB $LIBS"
20335 cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h. */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20342 /* Override any GCC internal prototype to avoid an error.
20343 Use char because int might match the return type of a GCC
20344 builtin and then its argument prototype would still apply. */
20345 #ifdef __cplusplus
20346 extern "C"
20347 #endif
20348 char hes_getmailhost ();
20350 main ()
20352 return hes_getmailhost ();
20354 return 0;
20356 _ACEOF
20357 rm -f conftest.$ac_objext conftest$ac_exeext
20358 if { (ac_try="$ac_link"
20359 case "(($ac_try" in
20360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361 *) ac_try_echo=$ac_try;;
20362 esac
20363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364 (eval "$ac_link") 2>conftest.er1
20365 ac_status=$?
20366 grep -v '^ *+' conftest.er1 >conftest.err
20367 rm -f conftest.er1
20368 cat conftest.err >&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); } && {
20371 test -z "$ac_c_werror_flag" ||
20372 test ! -s conftest.err
20373 } && test -s conftest$ac_exeext &&
20374 $as_test_x conftest$ac_exeext; then
20375 ac_cv_lib_hesiod_hes_getmailhost=yes
20376 else
20377 echo "$as_me: failed program was:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20380 ac_cv_lib_hesiod_hes_getmailhost=no
20383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20384 conftest$ac_exeext conftest.$ac_ext
20385 LIBS=$ac_check_lib_save_LIBS
20387 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20388 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20389 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20391 cat >>confdefs.h <<\_ACEOF
20392 #define HAVE_LIBHESIOD 1
20393 _ACEOF
20395 else
20403 # Do we need libresolv (due to res_init or Hesiod)?
20404 if test "$resolv" = yes ; then
20406 cat >>confdefs.h <<\_ACEOF
20407 #define HAVE_LIBRESOLV 1
20408 _ACEOF
20412 # These tell us which Kerberos-related libraries to use.
20413 if test "${with_kerberos}" != no; then
20415 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20416 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20417 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20419 else
20420 ac_check_lib_save_LIBS=$LIBS
20421 LIBS="-lcom_err $LIBS"
20422 cat >conftest.$ac_ext <<_ACEOF
20423 /* confdefs.h. */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20429 /* Override any GCC internal prototype to avoid an error.
20430 Use char because int might match the return type of a GCC
20431 builtin and then its argument prototype would still apply. */
20432 #ifdef __cplusplus
20433 extern "C"
20434 #endif
20435 char com_err ();
20437 main ()
20439 return com_err ();
20441 return 0;
20443 _ACEOF
20444 rm -f conftest.$ac_objext conftest$ac_exeext
20445 if { (ac_try="$ac_link"
20446 case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20449 esac
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_link") 2>conftest.er1
20452 ac_status=$?
20453 grep -v '^ *+' conftest.er1 >conftest.err
20454 rm -f conftest.er1
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } && {
20458 test -z "$ac_c_werror_flag" ||
20459 test ! -s conftest.err
20460 } && test -s conftest$ac_exeext &&
20461 $as_test_x conftest$ac_exeext; then
20462 ac_cv_lib_com_err_com_err=yes
20463 else
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 ac_cv_lib_com_err_com_err=no
20470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20471 conftest$ac_exeext conftest.$ac_ext
20472 LIBS=$ac_check_lib_save_LIBS
20474 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20475 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20476 if test $ac_cv_lib_com_err_com_err = yes; then
20477 cat >>confdefs.h <<_ACEOF
20478 #define HAVE_LIBCOM_ERR 1
20479 _ACEOF
20481 LIBS="-lcom_err $LIBS"
20486 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20487 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20488 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20490 else
20491 ac_check_lib_save_LIBS=$LIBS
20492 LIBS="-lk5crypto $LIBS"
20493 cat >conftest.$ac_ext <<_ACEOF
20494 /* confdefs.h. */
20495 _ACEOF
20496 cat confdefs.h >>conftest.$ac_ext
20497 cat >>conftest.$ac_ext <<_ACEOF
20498 /* end confdefs.h. */
20500 /* Override any GCC internal prototype to avoid an error.
20501 Use char because int might match the return type of a GCC
20502 builtin and then its argument prototype would still apply. */
20503 #ifdef __cplusplus
20504 extern "C"
20505 #endif
20506 char mit_des_cbc_encrypt ();
20508 main ()
20510 return mit_des_cbc_encrypt ();
20512 return 0;
20514 _ACEOF
20515 rm -f conftest.$ac_objext conftest$ac_exeext
20516 if { (ac_try="$ac_link"
20517 case "(($ac_try" in
20518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20519 *) ac_try_echo=$ac_try;;
20520 esac
20521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20522 (eval "$ac_link") 2>conftest.er1
20523 ac_status=$?
20524 grep -v '^ *+' conftest.er1 >conftest.err
20525 rm -f conftest.er1
20526 cat conftest.err >&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } && {
20529 test -z "$ac_c_werror_flag" ||
20530 test ! -s conftest.err
20531 } && test -s conftest$ac_exeext &&
20532 $as_test_x conftest$ac_exeext; then
20533 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20534 else
20535 echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20538 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20542 conftest$ac_exeext conftest.$ac_ext
20543 LIBS=$ac_check_lib_save_LIBS
20545 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20546 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20547 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20548 cat >>confdefs.h <<_ACEOF
20549 #define HAVE_LIBK5CRYPTO 1
20550 _ACEOF
20552 LIBS="-lk5crypto $LIBS"
20557 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20558 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20559 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 else
20562 ac_check_lib_save_LIBS=$LIBS
20563 LIBS="-lcrypto $LIBS"
20564 cat >conftest.$ac_ext <<_ACEOF
20565 /* confdefs.h. */
20566 _ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20571 /* Override any GCC internal prototype to avoid an error.
20572 Use char because int might match the return type of a GCC
20573 builtin and then its argument prototype would still apply. */
20574 #ifdef __cplusplus
20575 extern "C"
20576 #endif
20577 char mit_des_cbc_encrypt ();
20579 main ()
20581 return mit_des_cbc_encrypt ();
20583 return 0;
20585 _ACEOF
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (ac_try="$ac_link"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20591 esac
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_link") 2>conftest.er1
20594 ac_status=$?
20595 grep -v '^ *+' conftest.er1 >conftest.err
20596 rm -f conftest.er1
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); } && {
20600 test -z "$ac_c_werror_flag" ||
20601 test ! -s conftest.err
20602 } && test -s conftest$ac_exeext &&
20603 $as_test_x conftest$ac_exeext; then
20604 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20605 else
20606 echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20609 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20613 conftest$ac_exeext conftest.$ac_ext
20614 LIBS=$ac_check_lib_save_LIBS
20616 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20617 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20618 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20619 cat >>confdefs.h <<_ACEOF
20620 #define HAVE_LIBCRYPTO 1
20621 _ACEOF
20623 LIBS="-lcrypto $LIBS"
20628 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20629 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20630 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20631 echo $ECHO_N "(cached) $ECHO_C" >&6
20632 else
20633 ac_check_lib_save_LIBS=$LIBS
20634 LIBS="-lkrb5 $LIBS"
20635 cat >conftest.$ac_ext <<_ACEOF
20636 /* confdefs.h. */
20637 _ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h. */
20642 /* Override any GCC internal prototype to avoid an error.
20643 Use char because int might match the return type of a GCC
20644 builtin and then its argument prototype would still apply. */
20645 #ifdef __cplusplus
20646 extern "C"
20647 #endif
20648 char krb5_init_context ();
20650 main ()
20652 return krb5_init_context ();
20654 return 0;
20656 _ACEOF
20657 rm -f conftest.$ac_objext conftest$ac_exeext
20658 if { (ac_try="$ac_link"
20659 case "(($ac_try" in
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661 *) ac_try_echo=$ac_try;;
20662 esac
20663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664 (eval "$ac_link") 2>conftest.er1
20665 ac_status=$?
20666 grep -v '^ *+' conftest.er1 >conftest.err
20667 rm -f conftest.er1
20668 cat conftest.err >&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); } && {
20671 test -z "$ac_c_werror_flag" ||
20672 test ! -s conftest.err
20673 } && test -s conftest$ac_exeext &&
20674 $as_test_x conftest$ac_exeext; then
20675 ac_cv_lib_krb5_krb5_init_context=yes
20676 else
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_cv_lib_krb5_krb5_init_context=no
20683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20684 conftest$ac_exeext conftest.$ac_ext
20685 LIBS=$ac_check_lib_save_LIBS
20687 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20688 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20689 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20690 cat >>confdefs.h <<_ACEOF
20691 #define HAVE_LIBKRB5 1
20692 _ACEOF
20694 LIBS="-lkrb5 $LIBS"
20698 if test "${with_kerberos5}" = no; then
20700 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20701 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20702 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20703 echo $ECHO_N "(cached) $ECHO_C" >&6
20704 else
20705 ac_check_lib_save_LIBS=$LIBS
20706 LIBS="-ldes425 $LIBS"
20707 cat >conftest.$ac_ext <<_ACEOF
20708 /* confdefs.h. */
20709 _ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20714 /* Override any GCC internal prototype to avoid an error.
20715 Use char because int might match the return type of a GCC
20716 builtin and then its argument prototype would still apply. */
20717 #ifdef __cplusplus
20718 extern "C"
20719 #endif
20720 char des_cbc_encrypt ();
20722 main ()
20724 return des_cbc_encrypt ();
20726 return 0;
20728 _ACEOF
20729 rm -f conftest.$ac_objext conftest$ac_exeext
20730 if { (ac_try="$ac_link"
20731 case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20734 esac
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_link") 2>conftest.er1
20737 ac_status=$?
20738 grep -v '^ *+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } && {
20743 test -z "$ac_c_werror_flag" ||
20744 test ! -s conftest.err
20745 } && test -s conftest$ac_exeext &&
20746 $as_test_x conftest$ac_exeext; then
20747 ac_cv_lib_des425_des_cbc_encrypt=yes
20748 else
20749 echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20752 ac_cv_lib_des425_des_cbc_encrypt=no
20755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20756 conftest$ac_exeext conftest.$ac_ext
20757 LIBS=$ac_check_lib_save_LIBS
20759 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20760 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20761 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20762 cat >>confdefs.h <<_ACEOF
20763 #define HAVE_LIBDES425 1
20764 _ACEOF
20766 LIBS="-ldes425 $LIBS"
20768 else
20770 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20771 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20772 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20773 echo $ECHO_N "(cached) $ECHO_C" >&6
20774 else
20775 ac_check_lib_save_LIBS=$LIBS
20776 LIBS="-ldes $LIBS"
20777 cat >conftest.$ac_ext <<_ACEOF
20778 /* confdefs.h. */
20779 _ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20784 /* Override any GCC internal prototype to avoid an error.
20785 Use char because int might match the return type of a GCC
20786 builtin and then its argument prototype would still apply. */
20787 #ifdef __cplusplus
20788 extern "C"
20789 #endif
20790 char des_cbc_encrypt ();
20792 main ()
20794 return des_cbc_encrypt ();
20796 return 0;
20798 _ACEOF
20799 rm -f conftest.$ac_objext conftest$ac_exeext
20800 if { (ac_try="$ac_link"
20801 case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20804 esac
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_link") 2>conftest.er1
20807 ac_status=$?
20808 grep -v '^ *+' conftest.er1 >conftest.err
20809 rm -f conftest.er1
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } && {
20813 test -z "$ac_c_werror_flag" ||
20814 test ! -s conftest.err
20815 } && test -s conftest$ac_exeext &&
20816 $as_test_x conftest$ac_exeext; then
20817 ac_cv_lib_des_des_cbc_encrypt=yes
20818 else
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20822 ac_cv_lib_des_des_cbc_encrypt=no
20825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20826 conftest$ac_exeext conftest.$ac_ext
20827 LIBS=$ac_check_lib_save_LIBS
20829 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20830 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20831 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20832 cat >>confdefs.h <<_ACEOF
20833 #define HAVE_LIBDES 1
20834 _ACEOF
20836 LIBS="-ldes $LIBS"
20843 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20844 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20845 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20846 echo $ECHO_N "(cached) $ECHO_C" >&6
20847 else
20848 ac_check_lib_save_LIBS=$LIBS
20849 LIBS="-lkrb4 $LIBS"
20850 cat >conftest.$ac_ext <<_ACEOF
20851 /* confdefs.h. */
20852 _ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20857 /* Override any GCC internal prototype to avoid an error.
20858 Use char because int might match the return type of a GCC
20859 builtin and then its argument prototype would still apply. */
20860 #ifdef __cplusplus
20861 extern "C"
20862 #endif
20863 char krb_get_cred ();
20865 main ()
20867 return krb_get_cred ();
20869 return 0;
20871 _ACEOF
20872 rm -f conftest.$ac_objext conftest$ac_exeext
20873 if { (ac_try="$ac_link"
20874 case "(($ac_try" in
20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876 *) ac_try_echo=$ac_try;;
20877 esac
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879 (eval "$ac_link") 2>conftest.er1
20880 ac_status=$?
20881 grep -v '^ *+' conftest.er1 >conftest.err
20882 rm -f conftest.er1
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } && {
20886 test -z "$ac_c_werror_flag" ||
20887 test ! -s conftest.err
20888 } && test -s conftest$ac_exeext &&
20889 $as_test_x conftest$ac_exeext; then
20890 ac_cv_lib_krb4_krb_get_cred=yes
20891 else
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20895 ac_cv_lib_krb4_krb_get_cred=no
20898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20899 conftest$ac_exeext conftest.$ac_ext
20900 LIBS=$ac_check_lib_save_LIBS
20902 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20903 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20904 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20905 cat >>confdefs.h <<_ACEOF
20906 #define HAVE_LIBKRB4 1
20907 _ACEOF
20909 LIBS="-lkrb4 $LIBS"
20911 else
20913 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20914 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20915 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20916 echo $ECHO_N "(cached) $ECHO_C" >&6
20917 else
20918 ac_check_lib_save_LIBS=$LIBS
20919 LIBS="-lkrb $LIBS"
20920 cat >conftest.$ac_ext <<_ACEOF
20921 /* confdefs.h. */
20922 _ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20927 /* Override any GCC internal prototype to avoid an error.
20928 Use char because int might match the return type of a GCC
20929 builtin and then its argument prototype would still apply. */
20930 #ifdef __cplusplus
20931 extern "C"
20932 #endif
20933 char krb_get_cred ();
20935 main ()
20937 return krb_get_cred ();
20939 return 0;
20941 _ACEOF
20942 rm -f conftest.$ac_objext conftest$ac_exeext
20943 if { (ac_try="$ac_link"
20944 case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20947 esac
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_link") 2>conftest.er1
20950 ac_status=$?
20951 grep -v '^ *+' conftest.er1 >conftest.err
20952 rm -f conftest.er1
20953 cat conftest.err >&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); } && {
20956 test -z "$ac_c_werror_flag" ||
20957 test ! -s conftest.err
20958 } && test -s conftest$ac_exeext &&
20959 $as_test_x conftest$ac_exeext; then
20960 ac_cv_lib_krb_krb_get_cred=yes
20961 else
20962 echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20965 ac_cv_lib_krb_krb_get_cred=no
20968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20969 conftest$ac_exeext conftest.$ac_ext
20970 LIBS=$ac_check_lib_save_LIBS
20972 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20973 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20974 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20975 cat >>confdefs.h <<_ACEOF
20976 #define HAVE_LIBKRB 1
20977 _ACEOF
20979 LIBS="-lkrb $LIBS"
20987 if test "${with_kerberos5}" != no; then
20989 for ac_header in krb5.h
20991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20996 echo $ECHO_N "(cached) $ECHO_C" >&6
20998 ac_res=`eval echo '${'$as_ac_Header'}'`
20999 { echo "$as_me:$LINENO: result: $ac_res" >&5
21000 echo "${ECHO_T}$ac_res" >&6; }
21001 else
21002 # Is the header compilable?
21003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21005 cat >conftest.$ac_ext <<_ACEOF
21006 /* confdefs.h. */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21011 $ac_includes_default
21012 #include <$ac_header>
21013 _ACEOF
21014 rm -f conftest.$ac_objext
21015 if { (ac_try="$ac_compile"
21016 case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21019 esac
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_compile") 2>conftest.er1
21022 ac_status=$?
21023 grep -v '^ *+' conftest.er1 >conftest.err
21024 rm -f conftest.er1
21025 cat conftest.err >&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } && {
21028 test -z "$ac_c_werror_flag" ||
21029 test ! -s conftest.err
21030 } && test -s conftest.$ac_objext; then
21031 ac_header_compiler=yes
21032 else
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21036 ac_header_compiler=no
21039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21041 echo "${ECHO_T}$ac_header_compiler" >&6; }
21043 # Is the header present?
21044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21046 cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h. */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 #include <$ac_header>
21053 _ACEOF
21054 if { (ac_try="$ac_cpp conftest.$ac_ext"
21055 case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21061 ac_status=$?
21062 grep -v '^ *+' conftest.er1 >conftest.err
21063 rm -f conftest.er1
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } >/dev/null && {
21067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21068 test ! -s conftest.err
21069 }; then
21070 ac_header_preproc=yes
21071 else
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_header_preproc=no
21078 rm -f conftest.err conftest.$ac_ext
21079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21080 echo "${ECHO_T}$ac_header_preproc" >&6; }
21082 # So? What about this header?
21083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21084 yes:no: )
21085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21089 ac_header_preproc=yes
21091 no:yes:* )
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21106 esac
21107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21111 else
21112 eval "$as_ac_Header=\$ac_header_preproc"
21114 ac_res=`eval echo '${'$as_ac_Header'}'`
21115 { echo "$as_me:$LINENO: result: $ac_res" >&5
21116 echo "${ECHO_T}$ac_res" >&6; }
21119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21120 cat >>confdefs.h <<_ACEOF
21121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21122 _ACEOF
21123 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21124 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21125 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21126 echo $ECHO_N "(cached) $ECHO_C" >&6
21127 else
21128 cat >conftest.$ac_ext <<_ACEOF
21129 /* confdefs.h. */
21130 _ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h. */
21134 #include <krb5.h>
21137 main ()
21139 static krb5_error ac_aggr;
21140 if (ac_aggr.text)
21141 return 0;
21143 return 0;
21145 _ACEOF
21146 rm -f conftest.$ac_objext
21147 if { (ac_try="$ac_compile"
21148 case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21151 esac
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_compile") 2>conftest.er1
21154 ac_status=$?
21155 grep -v '^ *+' conftest.er1 >conftest.err
21156 rm -f conftest.er1
21157 cat conftest.err >&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } && {
21160 test -z "$ac_c_werror_flag" ||
21161 test ! -s conftest.err
21162 } && test -s conftest.$ac_objext; then
21163 ac_cv_member_krb5_error_text=yes
21164 else
21165 echo "$as_me: failed program was:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21168 cat >conftest.$ac_ext <<_ACEOF
21169 /* confdefs.h. */
21170 _ACEOF
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h. */
21174 #include <krb5.h>
21177 main ()
21179 static krb5_error ac_aggr;
21180 if (sizeof ac_aggr.text)
21181 return 0;
21183 return 0;
21185 _ACEOF
21186 rm -f conftest.$ac_objext
21187 if { (ac_try="$ac_compile"
21188 case "(($ac_try" in
21189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190 *) ac_try_echo=$ac_try;;
21191 esac
21192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21193 (eval "$ac_compile") 2>conftest.er1
21194 ac_status=$?
21195 grep -v '^ *+' conftest.er1 >conftest.err
21196 rm -f conftest.er1
21197 cat conftest.err >&5
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); } && {
21200 test -z "$ac_c_werror_flag" ||
21201 test ! -s conftest.err
21202 } && test -s conftest.$ac_objext; then
21203 ac_cv_member_krb5_error_text=yes
21204 else
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21208 ac_cv_member_krb5_error_text=no
21211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21216 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21217 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21218 if test $ac_cv_member_krb5_error_text = yes; then
21220 cat >>confdefs.h <<_ACEOF
21221 #define HAVE_KRB5_ERROR_TEXT 1
21222 _ACEOF
21226 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21227 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21228 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21229 echo $ECHO_N "(cached) $ECHO_C" >&6
21230 else
21231 cat >conftest.$ac_ext <<_ACEOF
21232 /* confdefs.h. */
21233 _ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21237 #include <krb5.h>
21240 main ()
21242 static krb5_error ac_aggr;
21243 if (ac_aggr.e_text)
21244 return 0;
21246 return 0;
21248 _ACEOF
21249 rm -f conftest.$ac_objext
21250 if { (ac_try="$ac_compile"
21251 case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21254 esac
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_compile") 2>conftest.er1
21257 ac_status=$?
21258 grep -v '^ *+' conftest.er1 >conftest.err
21259 rm -f conftest.er1
21260 cat conftest.err >&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); } && {
21263 test -z "$ac_c_werror_flag" ||
21264 test ! -s conftest.err
21265 } && test -s conftest.$ac_objext; then
21266 ac_cv_member_krb5_error_e_text=yes
21267 else
21268 echo "$as_me: failed program was:" >&5
21269 sed 's/^/| /' conftest.$ac_ext >&5
21271 cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h. */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 #include <krb5.h>
21280 main ()
21282 static krb5_error ac_aggr;
21283 if (sizeof ac_aggr.e_text)
21284 return 0;
21286 return 0;
21288 _ACEOF
21289 rm -f conftest.$ac_objext
21290 if { (ac_try="$ac_compile"
21291 case "(($ac_try" in
21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21294 esac
21295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296 (eval "$ac_compile") 2>conftest.er1
21297 ac_status=$?
21298 grep -v '^ *+' conftest.er1 >conftest.err
21299 rm -f conftest.er1
21300 cat conftest.err >&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } && {
21303 test -z "$ac_c_werror_flag" ||
21304 test ! -s conftest.err
21305 } && test -s conftest.$ac_objext; then
21306 ac_cv_member_krb5_error_e_text=yes
21307 else
21308 echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ac_cv_member_krb5_error_e_text=no
21314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21320 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21321 if test $ac_cv_member_krb5_error_e_text = yes; then
21323 cat >>confdefs.h <<_ACEOF
21324 #define HAVE_KRB5_ERROR_E_TEXT 1
21325 _ACEOF
21332 done
21334 else
21336 for ac_header in des.h
21338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21343 echo $ECHO_N "(cached) $ECHO_C" >&6
21345 ac_res=`eval echo '${'$as_ac_Header'}'`
21346 { echo "$as_me:$LINENO: result: $ac_res" >&5
21347 echo "${ECHO_T}$ac_res" >&6; }
21348 else
21349 # Is the header compilable?
21350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21352 cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h. */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21358 $ac_includes_default
21359 #include <$ac_header>
21360 _ACEOF
21361 rm -f conftest.$ac_objext
21362 if { (ac_try="$ac_compile"
21363 case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21366 esac
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_compile") 2>conftest.er1
21369 ac_status=$?
21370 grep -v '^ *+' conftest.er1 >conftest.err
21371 rm -f conftest.er1
21372 cat conftest.err >&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } && {
21375 test -z "$ac_c_werror_flag" ||
21376 test ! -s conftest.err
21377 } && test -s conftest.$ac_objext; then
21378 ac_header_compiler=yes
21379 else
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21383 ac_header_compiler=no
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21388 echo "${ECHO_T}$ac_header_compiler" >&6; }
21390 # Is the header present?
21391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21393 cat >conftest.$ac_ext <<_ACEOF
21394 /* confdefs.h. */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h. */
21399 #include <$ac_header>
21400 _ACEOF
21401 if { (ac_try="$ac_cpp conftest.$ac_ext"
21402 case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21405 esac
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21408 ac_status=$?
21409 grep -v '^ *+' conftest.er1 >conftest.err
21410 rm -f conftest.er1
21411 cat conftest.err >&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } >/dev/null && {
21414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21415 test ! -s conftest.err
21416 }; then
21417 ac_header_preproc=yes
21418 else
21419 echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21422 ac_header_preproc=no
21425 rm -f conftest.err conftest.$ac_ext
21426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21427 echo "${ECHO_T}$ac_header_preproc" >&6; }
21429 # So? What about this header?
21430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21431 yes:no: )
21432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21436 ac_header_preproc=yes
21438 no:yes:* )
21439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21453 esac
21454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21457 echo $ECHO_N "(cached) $ECHO_C" >&6
21458 else
21459 eval "$as_ac_Header=\$ac_header_preproc"
21461 ac_res=`eval echo '${'$as_ac_Header'}'`
21462 { echo "$as_me:$LINENO: result: $ac_res" >&5
21463 echo "${ECHO_T}$ac_res" >&6; }
21466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21467 cat >>confdefs.h <<_ACEOF
21468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21469 _ACEOF
21471 else
21473 for ac_header in kerberosIV/des.h
21475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21480 echo $ECHO_N "(cached) $ECHO_C" >&6
21482 ac_res=`eval echo '${'$as_ac_Header'}'`
21483 { echo "$as_me:$LINENO: result: $ac_res" >&5
21484 echo "${ECHO_T}$ac_res" >&6; }
21485 else
21486 # Is the header compilable?
21487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21489 cat >conftest.$ac_ext <<_ACEOF
21490 /* confdefs.h. */
21491 _ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21495 $ac_includes_default
21496 #include <$ac_header>
21497 _ACEOF
21498 rm -f conftest.$ac_objext
21499 if { (ac_try="$ac_compile"
21500 case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21503 esac
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505 (eval "$ac_compile") 2>conftest.er1
21506 ac_status=$?
21507 grep -v '^ *+' conftest.er1 >conftest.err
21508 rm -f conftest.er1
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } && {
21512 test -z "$ac_c_werror_flag" ||
21513 test ! -s conftest.err
21514 } && test -s conftest.$ac_objext; then
21515 ac_header_compiler=yes
21516 else
21517 echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 ac_header_compiler=no
21523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21525 echo "${ECHO_T}$ac_header_compiler" >&6; }
21527 # Is the header present?
21528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21530 cat >conftest.$ac_ext <<_ACEOF
21531 /* confdefs.h. */
21532 _ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21536 #include <$ac_header>
21537 _ACEOF
21538 if { (ac_try="$ac_cpp conftest.$ac_ext"
21539 case "(($ac_try" in
21540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541 *) ac_try_echo=$ac_try;;
21542 esac
21543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21545 ac_status=$?
21546 grep -v '^ *+' conftest.er1 >conftest.err
21547 rm -f conftest.er1
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } >/dev/null && {
21551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21552 test ! -s conftest.err
21553 }; then
21554 ac_header_preproc=yes
21555 else
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21559 ac_header_preproc=no
21562 rm -f conftest.err conftest.$ac_ext
21563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21564 echo "${ECHO_T}$ac_header_preproc" >&6; }
21566 # So? What about this header?
21567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21568 yes:no: )
21569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21573 ac_header_preproc=yes
21575 no:yes:* )
21576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21590 esac
21591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21595 else
21596 eval "$as_ac_Header=\$ac_header_preproc"
21598 ac_res=`eval echo '${'$as_ac_Header'}'`
21599 { echo "$as_me:$LINENO: result: $ac_res" >&5
21600 echo "${ECHO_T}$ac_res" >&6; }
21603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21604 cat >>confdefs.h <<_ACEOF
21605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21606 _ACEOF
21608 else
21610 for ac_header in kerberos/des.h
21612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21617 echo $ECHO_N "(cached) $ECHO_C" >&6
21619 ac_res=`eval echo '${'$as_ac_Header'}'`
21620 { echo "$as_me:$LINENO: result: $ac_res" >&5
21621 echo "${ECHO_T}$ac_res" >&6; }
21622 else
21623 # Is the header compilable?
21624 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21626 cat >conftest.$ac_ext <<_ACEOF
21627 /* confdefs.h. */
21628 _ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21632 $ac_includes_default
21633 #include <$ac_header>
21634 _ACEOF
21635 rm -f conftest.$ac_objext
21636 if { (ac_try="$ac_compile"
21637 case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21640 esac
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_compile") 2>conftest.er1
21643 ac_status=$?
21644 grep -v '^ *+' conftest.er1 >conftest.err
21645 rm -f conftest.er1
21646 cat conftest.err >&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } && {
21649 test -z "$ac_c_werror_flag" ||
21650 test ! -s conftest.err
21651 } && test -s conftest.$ac_objext; then
21652 ac_header_compiler=yes
21653 else
21654 echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21657 ac_header_compiler=no
21660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21662 echo "${ECHO_T}$ac_header_compiler" >&6; }
21664 # Is the header present?
21665 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21667 cat >conftest.$ac_ext <<_ACEOF
21668 /* confdefs.h. */
21669 _ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h. */
21673 #include <$ac_header>
21674 _ACEOF
21675 if { (ac_try="$ac_cpp conftest.$ac_ext"
21676 case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21679 esac
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21682 ac_status=$?
21683 grep -v '^ *+' conftest.er1 >conftest.err
21684 rm -f conftest.er1
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } >/dev/null && {
21688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21689 test ! -s conftest.err
21690 }; then
21691 ac_header_preproc=yes
21692 else
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21696 ac_header_preproc=no
21699 rm -f conftest.err conftest.$ac_ext
21700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21701 echo "${ECHO_T}$ac_header_preproc" >&6; }
21703 # So? What about this header?
21704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21705 yes:no: )
21706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21710 ac_header_preproc=yes
21712 no:yes:* )
21713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21727 esac
21728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21731 echo $ECHO_N "(cached) $ECHO_C" >&6
21732 else
21733 eval "$as_ac_Header=\$ac_header_preproc"
21735 ac_res=`eval echo '${'$as_ac_Header'}'`
21736 { echo "$as_me:$LINENO: result: $ac_res" >&5
21737 echo "${ECHO_T}$ac_res" >&6; }
21740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21741 cat >>confdefs.h <<_ACEOF
21742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21743 _ACEOF
21747 done
21751 done
21755 done
21758 for ac_header in krb.h
21760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21765 echo $ECHO_N "(cached) $ECHO_C" >&6
21767 ac_res=`eval echo '${'$as_ac_Header'}'`
21768 { echo "$as_me:$LINENO: result: $ac_res" >&5
21769 echo "${ECHO_T}$ac_res" >&6; }
21770 else
21771 # Is the header compilable?
21772 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21774 cat >conftest.$ac_ext <<_ACEOF
21775 /* confdefs.h. */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h. */
21780 $ac_includes_default
21781 #include <$ac_header>
21782 _ACEOF
21783 rm -f conftest.$ac_objext
21784 if { (ac_try="$ac_compile"
21785 case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21788 esac
21789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_compile") 2>conftest.er1
21791 ac_status=$?
21792 grep -v '^ *+' conftest.er1 >conftest.err
21793 rm -f conftest.er1
21794 cat conftest.err >&5
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); } && {
21797 test -z "$ac_c_werror_flag" ||
21798 test ! -s conftest.err
21799 } && test -s conftest.$ac_objext; then
21800 ac_header_compiler=yes
21801 else
21802 echo "$as_me: failed program was:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21805 ac_header_compiler=no
21808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21810 echo "${ECHO_T}$ac_header_compiler" >&6; }
21812 # Is the header present?
21813 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21815 cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h. */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 #include <$ac_header>
21822 _ACEOF
21823 if { (ac_try="$ac_cpp conftest.$ac_ext"
21824 case "(($ac_try" in
21825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21826 *) ac_try_echo=$ac_try;;
21827 esac
21828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21830 ac_status=$?
21831 grep -v '^ *+' conftest.er1 >conftest.err
21832 rm -f conftest.er1
21833 cat conftest.err >&5
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); } >/dev/null && {
21836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21837 test ! -s conftest.err
21838 }; then
21839 ac_header_preproc=yes
21840 else
21841 echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21844 ac_header_preproc=no
21847 rm -f conftest.err conftest.$ac_ext
21848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21849 echo "${ECHO_T}$ac_header_preproc" >&6; }
21851 # So? What about this header?
21852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21853 yes:no: )
21854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21858 ac_header_preproc=yes
21860 no:yes:* )
21861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21875 esac
21876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21879 echo $ECHO_N "(cached) $ECHO_C" >&6
21880 else
21881 eval "$as_ac_Header=\$ac_header_preproc"
21883 ac_res=`eval echo '${'$as_ac_Header'}'`
21884 { echo "$as_me:$LINENO: result: $ac_res" >&5
21885 echo "${ECHO_T}$ac_res" >&6; }
21888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21889 cat >>confdefs.h <<_ACEOF
21890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21891 _ACEOF
21893 else
21895 for ac_header in kerberosIV/krb.h
21897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21902 echo $ECHO_N "(cached) $ECHO_C" >&6
21904 ac_res=`eval echo '${'$as_ac_Header'}'`
21905 { echo "$as_me:$LINENO: result: $ac_res" >&5
21906 echo "${ECHO_T}$ac_res" >&6; }
21907 else
21908 # Is the header compilable?
21909 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21911 cat >conftest.$ac_ext <<_ACEOF
21912 /* confdefs.h. */
21913 _ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h. */
21917 $ac_includes_default
21918 #include <$ac_header>
21919 _ACEOF
21920 rm -f conftest.$ac_objext
21921 if { (ac_try="$ac_compile"
21922 case "(($ac_try" in
21923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924 *) ac_try_echo=$ac_try;;
21925 esac
21926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21927 (eval "$ac_compile") 2>conftest.er1
21928 ac_status=$?
21929 grep -v '^ *+' conftest.er1 >conftest.err
21930 rm -f conftest.er1
21931 cat conftest.err >&5
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); } && {
21934 test -z "$ac_c_werror_flag" ||
21935 test ! -s conftest.err
21936 } && test -s conftest.$ac_objext; then
21937 ac_header_compiler=yes
21938 else
21939 echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21942 ac_header_compiler=no
21945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21947 echo "${ECHO_T}$ac_header_compiler" >&6; }
21949 # Is the header present?
21950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21952 cat >conftest.$ac_ext <<_ACEOF
21953 /* confdefs.h. */
21954 _ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 #include <$ac_header>
21959 _ACEOF
21960 if { (ac_try="$ac_cpp conftest.$ac_ext"
21961 case "(($ac_try" in
21962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963 *) ac_try_echo=$ac_try;;
21964 esac
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21967 ac_status=$?
21968 grep -v '^ *+' conftest.er1 >conftest.err
21969 rm -f conftest.er1
21970 cat conftest.err >&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } >/dev/null && {
21973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21974 test ! -s conftest.err
21975 }; then
21976 ac_header_preproc=yes
21977 else
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21981 ac_header_preproc=no
21984 rm -f conftest.err conftest.$ac_ext
21985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21986 echo "${ECHO_T}$ac_header_preproc" >&6; }
21988 # So? What about this header?
21989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21990 yes:no: )
21991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21995 ac_header_preproc=yes
21997 no:yes:* )
21998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22012 esac
22013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
22017 else
22018 eval "$as_ac_Header=\$ac_header_preproc"
22020 ac_res=`eval echo '${'$as_ac_Header'}'`
22021 { echo "$as_me:$LINENO: result: $ac_res" >&5
22022 echo "${ECHO_T}$ac_res" >&6; }
22025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22026 cat >>confdefs.h <<_ACEOF
22027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22028 _ACEOF
22030 else
22032 for ac_header in kerberos/krb.h
22034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22039 echo $ECHO_N "(cached) $ECHO_C" >&6
22041 ac_res=`eval echo '${'$as_ac_Header'}'`
22042 { echo "$as_me:$LINENO: result: $ac_res" >&5
22043 echo "${ECHO_T}$ac_res" >&6; }
22044 else
22045 # Is the header compilable?
22046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22048 cat >conftest.$ac_ext <<_ACEOF
22049 /* confdefs.h. */
22050 _ACEOF
22051 cat confdefs.h >>conftest.$ac_ext
22052 cat >>conftest.$ac_ext <<_ACEOF
22053 /* end confdefs.h. */
22054 $ac_includes_default
22055 #include <$ac_header>
22056 _ACEOF
22057 rm -f conftest.$ac_objext
22058 if { (ac_try="$ac_compile"
22059 case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22062 esac
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_compile") 2>conftest.er1
22065 ac_status=$?
22066 grep -v '^ *+' conftest.er1 >conftest.err
22067 rm -f conftest.er1
22068 cat conftest.err >&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } && {
22071 test -z "$ac_c_werror_flag" ||
22072 test ! -s conftest.err
22073 } && test -s conftest.$ac_objext; then
22074 ac_header_compiler=yes
22075 else
22076 echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22079 ac_header_compiler=no
22082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22084 echo "${ECHO_T}$ac_header_compiler" >&6; }
22086 # Is the header present?
22087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22089 cat >conftest.$ac_ext <<_ACEOF
22090 /* confdefs.h. */
22091 _ACEOF
22092 cat confdefs.h >>conftest.$ac_ext
22093 cat >>conftest.$ac_ext <<_ACEOF
22094 /* end confdefs.h. */
22095 #include <$ac_header>
22096 _ACEOF
22097 if { (ac_try="$ac_cpp conftest.$ac_ext"
22098 case "(($ac_try" in
22099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100 *) ac_try_echo=$ac_try;;
22101 esac
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22104 ac_status=$?
22105 grep -v '^ *+' conftest.er1 >conftest.err
22106 rm -f conftest.er1
22107 cat conftest.err >&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } >/dev/null && {
22110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22111 test ! -s conftest.err
22112 }; then
22113 ac_header_preproc=yes
22114 else
22115 echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22118 ac_header_preproc=no
22121 rm -f conftest.err conftest.$ac_ext
22122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22123 echo "${ECHO_T}$ac_header_preproc" >&6; }
22125 # So? What about this header?
22126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22127 yes:no: )
22128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22132 ac_header_preproc=yes
22134 no:yes:* )
22135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22149 esac
22150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22154 else
22155 eval "$as_ac_Header=\$ac_header_preproc"
22157 ac_res=`eval echo '${'$as_ac_Header'}'`
22158 { echo "$as_me:$LINENO: result: $ac_res" >&5
22159 echo "${ECHO_T}$ac_res" >&6; }
22162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22163 cat >>confdefs.h <<_ACEOF
22164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22165 _ACEOF
22169 done
22173 done
22177 done
22181 for ac_header in com_err.h
22183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22188 echo $ECHO_N "(cached) $ECHO_C" >&6
22190 ac_res=`eval echo '${'$as_ac_Header'}'`
22191 { echo "$as_me:$LINENO: result: $ac_res" >&5
22192 echo "${ECHO_T}$ac_res" >&6; }
22193 else
22194 # Is the header compilable?
22195 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22197 cat >conftest.$ac_ext <<_ACEOF
22198 /* confdefs.h. */
22199 _ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h. */
22203 $ac_includes_default
22204 #include <$ac_header>
22205 _ACEOF
22206 rm -f conftest.$ac_objext
22207 if { (ac_try="$ac_compile"
22208 case "(($ac_try" in
22209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210 *) ac_try_echo=$ac_try;;
22211 esac
22212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22213 (eval "$ac_compile") 2>conftest.er1
22214 ac_status=$?
22215 grep -v '^ *+' conftest.er1 >conftest.err
22216 rm -f conftest.er1
22217 cat conftest.err >&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); } && {
22220 test -z "$ac_c_werror_flag" ||
22221 test ! -s conftest.err
22222 } && test -s conftest.$ac_objext; then
22223 ac_header_compiler=yes
22224 else
22225 echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22228 ac_header_compiler=no
22231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22233 echo "${ECHO_T}$ac_header_compiler" >&6; }
22235 # Is the header present?
22236 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22238 cat >conftest.$ac_ext <<_ACEOF
22239 /* confdefs.h. */
22240 _ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h. */
22244 #include <$ac_header>
22245 _ACEOF
22246 if { (ac_try="$ac_cpp conftest.$ac_ext"
22247 case "(($ac_try" in
22248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22249 *) ac_try_echo=$ac_try;;
22250 esac
22251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22253 ac_status=$?
22254 grep -v '^ *+' conftest.er1 >conftest.err
22255 rm -f conftest.er1
22256 cat conftest.err >&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); } >/dev/null && {
22259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22260 test ! -s conftest.err
22261 }; then
22262 ac_header_preproc=yes
22263 else
22264 echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22267 ac_header_preproc=no
22270 rm -f conftest.err conftest.$ac_ext
22271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22272 echo "${ECHO_T}$ac_header_preproc" >&6; }
22274 # So? What about this header?
22275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22276 yes:no: )
22277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22281 ac_header_preproc=yes
22283 no:yes:* )
22284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22291 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22298 esac
22299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22302 echo $ECHO_N "(cached) $ECHO_C" >&6
22303 else
22304 eval "$as_ac_Header=\$ac_header_preproc"
22306 ac_res=`eval echo '${'$as_ac_Header'}'`
22307 { echo "$as_me:$LINENO: result: $ac_res" >&5
22308 echo "${ECHO_T}$ac_res" >&6; }
22311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22312 cat >>confdefs.h <<_ACEOF
22313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22314 _ACEOF
22318 done
22322 # Solaris requires -lintl if you want strerror (which calls dgettext)
22323 # to return localized messages.
22325 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22326 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22327 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22329 else
22330 ac_check_lib_save_LIBS=$LIBS
22331 LIBS="-lintl $LIBS"
22332 cat >conftest.$ac_ext <<_ACEOF
22333 /* confdefs.h. */
22334 _ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h. */
22339 /* Override any GCC internal prototype to avoid an error.
22340 Use char because int might match the return type of a GCC
22341 builtin and then its argument prototype would still apply. */
22342 #ifdef __cplusplus
22343 extern "C"
22344 #endif
22345 char dgettext ();
22347 main ()
22349 return dgettext ();
22351 return 0;
22353 _ACEOF
22354 rm -f conftest.$ac_objext conftest$ac_exeext
22355 if { (ac_try="$ac_link"
22356 case "(($ac_try" in
22357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22358 *) ac_try_echo=$ac_try;;
22359 esac
22360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22361 (eval "$ac_link") 2>conftest.er1
22362 ac_status=$?
22363 grep -v '^ *+' conftest.er1 >conftest.err
22364 rm -f conftest.er1
22365 cat conftest.err >&5
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } && {
22368 test -z "$ac_c_werror_flag" ||
22369 test ! -s conftest.err
22370 } && test -s conftest$ac_exeext &&
22371 $as_test_x conftest$ac_exeext; then
22372 ac_cv_lib_intl_dgettext=yes
22373 else
22374 echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22377 ac_cv_lib_intl_dgettext=no
22380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22381 conftest$ac_exeext conftest.$ac_ext
22382 LIBS=$ac_check_lib_save_LIBS
22384 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22385 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22386 if test $ac_cv_lib_intl_dgettext = yes; then
22387 cat >>confdefs.h <<_ACEOF
22388 #define HAVE_LIBINTL 1
22389 _ACEOF
22391 LIBS="-lintl $LIBS"
22396 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22397 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22398 if test "${emacs_cv_localtime_cache+set}" = set; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 else
22401 if test x$ac_cv_func_tzset = xyes; then
22402 if test "$cross_compiling" = yes; then
22403 # If we have tzset, assume the worst when cross-compiling.
22404 emacs_cv_localtime_cache=yes
22405 else
22406 cat >conftest.$ac_ext <<_ACEOF
22407 /* confdefs.h. */
22408 _ACEOF
22409 cat confdefs.h >>conftest.$ac_ext
22410 cat >>conftest.$ac_ext <<_ACEOF
22411 /* end confdefs.h. */
22412 #include <time.h>
22413 extern char **environ;
22414 unset_TZ ()
22416 char **from, **to;
22417 for (to = from = environ; (*to = *from); from++)
22418 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22419 to++;
22421 char TZ_GMT0[] = "TZ=GMT0";
22422 char TZ_PST8[] = "TZ=PST8";
22423 main()
22425 time_t now = time ((time_t *) 0);
22426 int hour_GMT0, hour_unset;
22427 if (putenv (TZ_GMT0) != 0)
22428 exit (1);
22429 hour_GMT0 = localtime (&now)->tm_hour;
22430 unset_TZ ();
22431 hour_unset = localtime (&now)->tm_hour;
22432 if (putenv (TZ_PST8) != 0)
22433 exit (1);
22434 if (localtime (&now)->tm_hour == hour_GMT0)
22435 exit (1);
22436 unset_TZ ();
22437 if (localtime (&now)->tm_hour != hour_unset)
22438 exit (1);
22439 exit (0);
22441 _ACEOF
22442 rm -f conftest$ac_exeext
22443 if { (ac_try="$ac_link"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_link") 2>&5
22450 ac_status=$?
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
22459 ac_status=$?
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; }; then
22462 emacs_cv_localtime_cache=no
22463 else
22464 echo "$as_me: program exited with status $ac_status" >&5
22465 echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22468 ( exit $ac_status )
22469 emacs_cv_localtime_cache=yes
22471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22475 else
22476 # If we lack tzset, report that localtime does not cache TZ,
22477 # since we can't invalidate the cache if we don't have tzset.
22478 emacs_cv_localtime_cache=no
22481 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22482 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22483 if test $emacs_cv_localtime_cache = yes; then
22485 cat >>confdefs.h <<\_ACEOF
22486 #define LOCALTIME_CACHE 1
22487 _ACEOF
22491 if test "x$HAVE_TIMEVAL" = xyes; then
22493 for ac_func in gettimeofday
22495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22499 echo $ECHO_N "(cached) $ECHO_C" >&6
22500 else
22501 cat >conftest.$ac_ext <<_ACEOF
22502 /* confdefs.h. */
22503 _ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h. */
22507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22509 #define $ac_func innocuous_$ac_func
22511 /* System header to define __stub macros and hopefully few prototypes,
22512 which can conflict with char $ac_func (); below.
22513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22514 <limits.h> exists even on freestanding compilers. */
22516 #ifdef __STDC__
22517 # include <limits.h>
22518 #else
22519 # include <assert.h>
22520 #endif
22522 #undef $ac_func
22524 /* Override any GCC internal prototype to avoid an error.
22525 Use char because int might match the return type of a GCC
22526 builtin and then its argument prototype would still apply. */
22527 #ifdef __cplusplus
22528 extern "C"
22529 #endif
22530 char $ac_func ();
22531 /* The GNU C library defines this for functions which it implements
22532 to always fail with ENOSYS. Some functions are actually named
22533 something starting with __ and the normal name is an alias. */
22534 #if defined __stub_$ac_func || defined __stub___$ac_func
22535 choke me
22536 #endif
22539 main ()
22541 return $ac_func ();
22543 return 0;
22545 _ACEOF
22546 rm -f conftest.$ac_objext conftest$ac_exeext
22547 if { (ac_try="$ac_link"
22548 case "(($ac_try" in
22549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550 *) ac_try_echo=$ac_try;;
22551 esac
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553 (eval "$ac_link") 2>conftest.er1
22554 ac_status=$?
22555 grep -v '^ *+' conftest.er1 >conftest.err
22556 rm -f conftest.er1
22557 cat conftest.err >&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } && {
22560 test -z "$ac_c_werror_flag" ||
22561 test ! -s conftest.err
22562 } && test -s conftest$ac_exeext &&
22563 $as_test_x conftest$ac_exeext; then
22564 eval "$as_ac_var=yes"
22565 else
22566 echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22569 eval "$as_ac_var=no"
22572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22573 conftest$ac_exeext conftest.$ac_ext
22575 ac_res=`eval echo '${'$as_ac_var'}'`
22576 { echo "$as_me:$LINENO: result: $ac_res" >&5
22577 echo "${ECHO_T}$ac_res" >&6; }
22578 if test `eval echo '${'$as_ac_var'}'` = yes; then
22579 cat >>confdefs.h <<_ACEOF
22580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22581 _ACEOF
22584 done
22586 if test $ac_cv_func_gettimeofday = yes; then
22587 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22588 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22589 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22590 echo $ECHO_N "(cached) $ECHO_C" >&6
22591 else
22592 cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h. */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22599 #ifdef TIME_WITH_SYS_TIME
22600 #include <sys/time.h>
22601 #include <time.h>
22602 #else
22603 #ifdef HAVE_SYS_TIME_H
22604 #include <sys/time.h>
22605 #else
22606 #include <time.h>
22607 #endif
22608 #endif
22610 main ()
22612 struct timeval time;
22613 gettimeofday (&time, 0);
22615 return 0;
22617 _ACEOF
22618 rm -f conftest.$ac_objext
22619 if { (ac_try="$ac_compile"
22620 case "(($ac_try" in
22621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22622 *) ac_try_echo=$ac_try;;
22623 esac
22624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22625 (eval "$ac_compile") 2>conftest.er1
22626 ac_status=$?
22627 grep -v '^ *+' conftest.er1 >conftest.err
22628 rm -f conftest.er1
22629 cat conftest.err >&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } && {
22632 test -z "$ac_c_werror_flag" ||
22633 test ! -s conftest.err
22634 } && test -s conftest.$ac_objext; then
22635 emacs_cv_gettimeofday_two_arguments=yes
22636 else
22637 echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22640 emacs_cv_gettimeofday_two_arguments=no
22643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22645 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22646 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22647 if test $emacs_cv_gettimeofday_two_arguments = no; then
22649 cat >>confdefs.h <<\_ACEOF
22650 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22651 _ACEOF
22657 ok_so_far=yes
22658 { echo "$as_me:$LINENO: checking for socket" >&5
22659 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22660 if test "${ac_cv_func_socket+set}" = set; then
22661 echo $ECHO_N "(cached) $ECHO_C" >&6
22662 else
22663 cat >conftest.$ac_ext <<_ACEOF
22664 /* confdefs.h. */
22665 _ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22669 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22671 #define socket innocuous_socket
22673 /* System header to define __stub macros and hopefully few prototypes,
22674 which can conflict with char socket (); below.
22675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22676 <limits.h> exists even on freestanding compilers. */
22678 #ifdef __STDC__
22679 # include <limits.h>
22680 #else
22681 # include <assert.h>
22682 #endif
22684 #undef socket
22686 /* Override any GCC internal prototype to avoid an error.
22687 Use char because int might match the return type of a GCC
22688 builtin and then its argument prototype would still apply. */
22689 #ifdef __cplusplus
22690 extern "C"
22691 #endif
22692 char socket ();
22693 /* The GNU C library defines this for functions which it implements
22694 to always fail with ENOSYS. Some functions are actually named
22695 something starting with __ and the normal name is an alias. */
22696 #if defined __stub_socket || defined __stub___socket
22697 choke me
22698 #endif
22701 main ()
22703 return socket ();
22705 return 0;
22707 _ACEOF
22708 rm -f conftest.$ac_objext conftest$ac_exeext
22709 if { (ac_try="$ac_link"
22710 case "(($ac_try" in
22711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22713 esac
22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_link") 2>conftest.er1
22716 ac_status=$?
22717 grep -v '^ *+' conftest.er1 >conftest.err
22718 rm -f conftest.er1
22719 cat conftest.err >&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } && {
22722 test -z "$ac_c_werror_flag" ||
22723 test ! -s conftest.err
22724 } && test -s conftest$ac_exeext &&
22725 $as_test_x conftest$ac_exeext; then
22726 ac_cv_func_socket=yes
22727 else
22728 echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22731 ac_cv_func_socket=no
22734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22735 conftest$ac_exeext conftest.$ac_ext
22737 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22738 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22739 if test $ac_cv_func_socket = yes; then
22741 else
22742 ok_so_far=no
22745 if test $ok_so_far = yes; then
22746 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22747 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22748 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22749 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22750 echo $ECHO_N "(cached) $ECHO_C" >&6
22752 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22753 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22754 else
22755 # Is the header compilable?
22756 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22757 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22758 cat >conftest.$ac_ext <<_ACEOF
22759 /* confdefs.h. */
22760 _ACEOF
22761 cat confdefs.h >>conftest.$ac_ext
22762 cat >>conftest.$ac_ext <<_ACEOF
22763 /* end confdefs.h. */
22764 $ac_includes_default
22765 #include <netinet/in.h>
22766 _ACEOF
22767 rm -f conftest.$ac_objext
22768 if { (ac_try="$ac_compile"
22769 case "(($ac_try" in
22770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22771 *) ac_try_echo=$ac_try;;
22772 esac
22773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22774 (eval "$ac_compile") 2>conftest.er1
22775 ac_status=$?
22776 grep -v '^ *+' conftest.er1 >conftest.err
22777 rm -f conftest.er1
22778 cat conftest.err >&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); } && {
22781 test -z "$ac_c_werror_flag" ||
22782 test ! -s conftest.err
22783 } && test -s conftest.$ac_objext; then
22784 ac_header_compiler=yes
22785 else
22786 echo "$as_me: failed program was:" >&5
22787 sed 's/^/| /' conftest.$ac_ext >&5
22789 ac_header_compiler=no
22792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22794 echo "${ECHO_T}$ac_header_compiler" >&6; }
22796 # Is the header present?
22797 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22798 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22799 cat >conftest.$ac_ext <<_ACEOF
22800 /* confdefs.h. */
22801 _ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h. */
22805 #include <netinet/in.h>
22806 _ACEOF
22807 if { (ac_try="$ac_cpp conftest.$ac_ext"
22808 case "(($ac_try" in
22809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22810 *) ac_try_echo=$ac_try;;
22811 esac
22812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22814 ac_status=$?
22815 grep -v '^ *+' conftest.er1 >conftest.err
22816 rm -f conftest.er1
22817 cat conftest.err >&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } >/dev/null && {
22820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22821 test ! -s conftest.err
22822 }; then
22823 ac_header_preproc=yes
22824 else
22825 echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22828 ac_header_preproc=no
22831 rm -f conftest.err conftest.$ac_ext
22832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22833 echo "${ECHO_T}$ac_header_preproc" >&6; }
22835 # So? What about this header?
22836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22837 yes:no: )
22838 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22839 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22840 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22841 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22842 ac_header_preproc=yes
22844 no:yes:* )
22845 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22846 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22847 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22848 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22849 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22850 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22851 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22852 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22853 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22854 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22855 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22856 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22859 esac
22860 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22861 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22862 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22863 echo $ECHO_N "(cached) $ECHO_C" >&6
22864 else
22865 ac_cv_header_netinet_in_h=$ac_header_preproc
22867 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22868 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22871 if test $ac_cv_header_netinet_in_h = yes; then
22873 else
22874 ok_so_far=no
22879 if test $ok_so_far = yes; then
22880 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22881 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22882 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22883 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22884 echo $ECHO_N "(cached) $ECHO_C" >&6
22886 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22887 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22888 else
22889 # Is the header compilable?
22890 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22891 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22892 cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h. */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 $ac_includes_default
22899 #include <arpa/inet.h>
22900 _ACEOF
22901 rm -f conftest.$ac_objext
22902 if { (ac_try="$ac_compile"
22903 case "(($ac_try" in
22904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22905 *) ac_try_echo=$ac_try;;
22906 esac
22907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22908 (eval "$ac_compile") 2>conftest.er1
22909 ac_status=$?
22910 grep -v '^ *+' conftest.er1 >conftest.err
22911 rm -f conftest.er1
22912 cat conftest.err >&5
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); } && {
22915 test -z "$ac_c_werror_flag" ||
22916 test ! -s conftest.err
22917 } && test -s conftest.$ac_objext; then
22918 ac_header_compiler=yes
22919 else
22920 echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22923 ac_header_compiler=no
22926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22928 echo "${ECHO_T}$ac_header_compiler" >&6; }
22930 # Is the header present?
22931 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22932 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22933 cat >conftest.$ac_ext <<_ACEOF
22934 /* confdefs.h. */
22935 _ACEOF
22936 cat confdefs.h >>conftest.$ac_ext
22937 cat >>conftest.$ac_ext <<_ACEOF
22938 /* end confdefs.h. */
22939 #include <arpa/inet.h>
22940 _ACEOF
22941 if { (ac_try="$ac_cpp conftest.$ac_ext"
22942 case "(($ac_try" in
22943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22944 *) ac_try_echo=$ac_try;;
22945 esac
22946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22948 ac_status=$?
22949 grep -v '^ *+' conftest.er1 >conftest.err
22950 rm -f conftest.er1
22951 cat conftest.err >&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); } >/dev/null && {
22954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22955 test ! -s conftest.err
22956 }; then
22957 ac_header_preproc=yes
22958 else
22959 echo "$as_me: failed program was:" >&5
22960 sed 's/^/| /' conftest.$ac_ext >&5
22962 ac_header_preproc=no
22965 rm -f conftest.err conftest.$ac_ext
22966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22967 echo "${ECHO_T}$ac_header_preproc" >&6; }
22969 # So? What about this header?
22970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22971 yes:no: )
22972 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22973 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22974 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22975 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22976 ac_header_preproc=yes
22978 no:yes:* )
22979 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22980 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22981 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22982 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22983 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22984 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22985 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22986 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22987 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22988 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22989 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22990 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22993 esac
22994 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22995 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22996 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22997 echo $ECHO_N "(cached) $ECHO_C" >&6
22998 else
22999 ac_cv_header_arpa_inet_h=$ac_header_preproc
23001 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23002 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23005 if test $ac_cv_header_arpa_inet_h = yes; then
23007 else
23008 ok_so_far=no
23013 if test $ok_so_far = yes; then
23015 cat >>confdefs.h <<\_ACEOF
23016 #define HAVE_INET_SOCKETS 1
23017 _ACEOF
23022 for ac_header in sys/ioctl.h
23024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23029 echo $ECHO_N "(cached) $ECHO_C" >&6
23031 ac_res=`eval echo '${'$as_ac_Header'}'`
23032 { echo "$as_me:$LINENO: result: $ac_res" >&5
23033 echo "${ECHO_T}$ac_res" >&6; }
23034 else
23035 # Is the header compilable?
23036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23038 cat >conftest.$ac_ext <<_ACEOF
23039 /* confdefs.h. */
23040 _ACEOF
23041 cat confdefs.h >>conftest.$ac_ext
23042 cat >>conftest.$ac_ext <<_ACEOF
23043 /* end confdefs.h. */
23044 $ac_includes_default
23045 #include <$ac_header>
23046 _ACEOF
23047 rm -f conftest.$ac_objext
23048 if { (ac_try="$ac_compile"
23049 case "(($ac_try" in
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051 *) ac_try_echo=$ac_try;;
23052 esac
23053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23054 (eval "$ac_compile") 2>conftest.er1
23055 ac_status=$?
23056 grep -v '^ *+' conftest.er1 >conftest.err
23057 rm -f conftest.er1
23058 cat conftest.err >&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); } && {
23061 test -z "$ac_c_werror_flag" ||
23062 test ! -s conftest.err
23063 } && test -s conftest.$ac_objext; then
23064 ac_header_compiler=yes
23065 else
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ac_header_compiler=no
23072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23074 echo "${ECHO_T}$ac_header_compiler" >&6; }
23076 # Is the header present?
23077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23079 cat >conftest.$ac_ext <<_ACEOF
23080 /* confdefs.h. */
23081 _ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23085 #include <$ac_header>
23086 _ACEOF
23087 if { (ac_try="$ac_cpp conftest.$ac_ext"
23088 case "(($ac_try" in
23089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23090 *) ac_try_echo=$ac_try;;
23091 esac
23092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23094 ac_status=$?
23095 grep -v '^ *+' conftest.er1 >conftest.err
23096 rm -f conftest.er1
23097 cat conftest.err >&5
23098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099 (exit $ac_status); } >/dev/null && {
23100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23101 test ! -s conftest.err
23102 }; then
23103 ac_header_preproc=yes
23104 else
23105 echo "$as_me: failed program was:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23108 ac_header_preproc=no
23111 rm -f conftest.err conftest.$ac_ext
23112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23113 echo "${ECHO_T}$ac_header_preproc" >&6; }
23115 # So? What about this header?
23116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23117 yes:no: )
23118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23122 ac_header_preproc=yes
23124 no:yes:* )
23125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23139 esac
23140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23143 echo $ECHO_N "(cached) $ECHO_C" >&6
23144 else
23145 eval "$as_ac_Header=\$ac_header_preproc"
23147 ac_res=`eval echo '${'$as_ac_Header'}'`
23148 { echo "$as_me:$LINENO: result: $ac_res" >&5
23149 echo "${ECHO_T}$ac_res" >&6; }
23152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23153 cat >>confdefs.h <<_ACEOF
23154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23155 _ACEOF
23159 done
23162 if test -f /usr/lpp/X11/bin/smt.exp; then
23164 cat >>confdefs.h <<\_ACEOF
23165 #define HAVE_AIX_SMT_EXP 1
23166 _ACEOF
23170 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23171 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23172 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23173 { echo "$as_me:$LINENO: result: yes" >&5
23174 echo "${ECHO_T}yes" >&6; }
23176 cat >>confdefs.h <<\_ACEOF
23177 #define HAVE_DEV_PTMX 1
23178 _ACEOF
23180 else
23181 { echo "$as_me:$LINENO: result: no" >&5
23182 echo "${ECHO_T}no" >&6; }
23185 { echo "$as_me:$LINENO: checking for pid_t" >&5
23186 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23187 if test "${ac_cv_type_pid_t+set}" = set; then
23188 echo $ECHO_N "(cached) $ECHO_C" >&6
23189 else
23190 cat >conftest.$ac_ext <<_ACEOF
23191 /* confdefs.h. */
23192 _ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23196 $ac_includes_default
23197 typedef pid_t ac__type_new_;
23199 main ()
23201 if ((ac__type_new_ *) 0)
23202 return 0;
23203 if (sizeof (ac__type_new_))
23204 return 0;
23206 return 0;
23208 _ACEOF
23209 rm -f conftest.$ac_objext
23210 if { (ac_try="$ac_compile"
23211 case "(($ac_try" in
23212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213 *) ac_try_echo=$ac_try;;
23214 esac
23215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23216 (eval "$ac_compile") 2>conftest.er1
23217 ac_status=$?
23218 grep -v '^ *+' conftest.er1 >conftest.err
23219 rm -f conftest.er1
23220 cat conftest.err >&5
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); } && {
23223 test -z "$ac_c_werror_flag" ||
23224 test ! -s conftest.err
23225 } && test -s conftest.$ac_objext; then
23226 ac_cv_type_pid_t=yes
23227 else
23228 echo "$as_me: failed program was:" >&5
23229 sed 's/^/| /' conftest.$ac_ext >&5
23231 ac_cv_type_pid_t=no
23234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23236 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23237 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23238 if test $ac_cv_type_pid_t = yes; then
23240 else
23242 cat >>confdefs.h <<_ACEOF
23243 #define pid_t int
23244 _ACEOF
23249 for ac_header in vfork.h
23251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23256 echo $ECHO_N "(cached) $ECHO_C" >&6
23258 ac_res=`eval echo '${'$as_ac_Header'}'`
23259 { echo "$as_me:$LINENO: result: $ac_res" >&5
23260 echo "${ECHO_T}$ac_res" >&6; }
23261 else
23262 # Is the header compilable?
23263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23265 cat >conftest.$ac_ext <<_ACEOF
23266 /* confdefs.h. */
23267 _ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h. */
23271 $ac_includes_default
23272 #include <$ac_header>
23273 _ACEOF
23274 rm -f conftest.$ac_objext
23275 if { (ac_try="$ac_compile"
23276 case "(($ac_try" in
23277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278 *) ac_try_echo=$ac_try;;
23279 esac
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281 (eval "$ac_compile") 2>conftest.er1
23282 ac_status=$?
23283 grep -v '^ *+' conftest.er1 >conftest.err
23284 rm -f conftest.er1
23285 cat conftest.err >&5
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); } && {
23288 test -z "$ac_c_werror_flag" ||
23289 test ! -s conftest.err
23290 } && test -s conftest.$ac_objext; then
23291 ac_header_compiler=yes
23292 else
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23296 ac_header_compiler=no
23299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23301 echo "${ECHO_T}$ac_header_compiler" >&6; }
23303 # Is the header present?
23304 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23306 cat >conftest.$ac_ext <<_ACEOF
23307 /* confdefs.h. */
23308 _ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h. */
23312 #include <$ac_header>
23313 _ACEOF
23314 if { (ac_try="$ac_cpp conftest.$ac_ext"
23315 case "(($ac_try" in
23316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23317 *) ac_try_echo=$ac_try;;
23318 esac
23319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23321 ac_status=$?
23322 grep -v '^ *+' conftest.er1 >conftest.err
23323 rm -f conftest.er1
23324 cat conftest.err >&5
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); } >/dev/null && {
23327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23328 test ! -s conftest.err
23329 }; then
23330 ac_header_preproc=yes
23331 else
23332 echo "$as_me: failed program was:" >&5
23333 sed 's/^/| /' conftest.$ac_ext >&5
23335 ac_header_preproc=no
23338 rm -f conftest.err conftest.$ac_ext
23339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23340 echo "${ECHO_T}$ac_header_preproc" >&6; }
23342 # So? What about this header?
23343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23344 yes:no: )
23345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23349 ac_header_preproc=yes
23351 no:yes:* )
23352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23366 esac
23367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23370 echo $ECHO_N "(cached) $ECHO_C" >&6
23371 else
23372 eval "$as_ac_Header=\$ac_header_preproc"
23374 ac_res=`eval echo '${'$as_ac_Header'}'`
23375 { echo "$as_me:$LINENO: result: $ac_res" >&5
23376 echo "${ECHO_T}$ac_res" >&6; }
23379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23380 cat >>confdefs.h <<_ACEOF
23381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23382 _ACEOF
23386 done
23390 for ac_func in fork vfork
23392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23396 echo $ECHO_N "(cached) $ECHO_C" >&6
23397 else
23398 cat >conftest.$ac_ext <<_ACEOF
23399 /* confdefs.h. */
23400 _ACEOF
23401 cat confdefs.h >>conftest.$ac_ext
23402 cat >>conftest.$ac_ext <<_ACEOF
23403 /* end confdefs.h. */
23404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23406 #define $ac_func innocuous_$ac_func
23408 /* System header to define __stub macros and hopefully few prototypes,
23409 which can conflict with char $ac_func (); below.
23410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23411 <limits.h> exists even on freestanding compilers. */
23413 #ifdef __STDC__
23414 # include <limits.h>
23415 #else
23416 # include <assert.h>
23417 #endif
23419 #undef $ac_func
23421 /* Override any GCC internal prototype to avoid an error.
23422 Use char because int might match the return type of a GCC
23423 builtin and then its argument prototype would still apply. */
23424 #ifdef __cplusplus
23425 extern "C"
23426 #endif
23427 char $ac_func ();
23428 /* The GNU C library defines this for functions which it implements
23429 to always fail with ENOSYS. Some functions are actually named
23430 something starting with __ and the normal name is an alias. */
23431 #if defined __stub_$ac_func || defined __stub___$ac_func
23432 choke me
23433 #endif
23436 main ()
23438 return $ac_func ();
23440 return 0;
23442 _ACEOF
23443 rm -f conftest.$ac_objext conftest$ac_exeext
23444 if { (ac_try="$ac_link"
23445 case "(($ac_try" in
23446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447 *) ac_try_echo=$ac_try;;
23448 esac
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450 (eval "$ac_link") 2>conftest.er1
23451 ac_status=$?
23452 grep -v '^ *+' conftest.er1 >conftest.err
23453 rm -f conftest.er1
23454 cat conftest.err >&5
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); } && {
23457 test -z "$ac_c_werror_flag" ||
23458 test ! -s conftest.err
23459 } && test -s conftest$ac_exeext &&
23460 $as_test_x conftest$ac_exeext; then
23461 eval "$as_ac_var=yes"
23462 else
23463 echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23466 eval "$as_ac_var=no"
23469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23470 conftest$ac_exeext conftest.$ac_ext
23472 ac_res=`eval echo '${'$as_ac_var'}'`
23473 { echo "$as_me:$LINENO: result: $ac_res" >&5
23474 echo "${ECHO_T}$ac_res" >&6; }
23475 if test `eval echo '${'$as_ac_var'}'` = yes; then
23476 cat >>confdefs.h <<_ACEOF
23477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23478 _ACEOF
23481 done
23483 if test "x$ac_cv_func_fork" = xyes; then
23484 { echo "$as_me:$LINENO: checking for working fork" >&5
23485 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23486 if test "${ac_cv_func_fork_works+set}" = set; then
23487 echo $ECHO_N "(cached) $ECHO_C" >&6
23488 else
23489 if test "$cross_compiling" = yes; then
23490 ac_cv_func_fork_works=cross
23491 else
23492 cat >conftest.$ac_ext <<_ACEOF
23493 /* confdefs.h. */
23494 _ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h. */
23498 $ac_includes_default
23500 main ()
23503 /* By Ruediger Kuhlmann. */
23504 return fork () < 0;
23507 return 0;
23509 _ACEOF
23510 rm -f conftest$ac_exeext
23511 if { (ac_try="$ac_link"
23512 case "(($ac_try" in
23513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23514 *) ac_try_echo=$ac_try;;
23515 esac
23516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23517 (eval "$ac_link") 2>&5
23518 ac_status=$?
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
23527 ac_status=$?
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); }; }; then
23530 ac_cv_func_fork_works=yes
23531 else
23532 echo "$as_me: program exited with status $ac_status" >&5
23533 echo "$as_me: failed program was:" >&5
23534 sed 's/^/| /' conftest.$ac_ext >&5
23536 ( exit $ac_status )
23537 ac_cv_func_fork_works=no
23539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23544 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23545 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23547 else
23548 ac_cv_func_fork_works=$ac_cv_func_fork
23550 if test "x$ac_cv_func_fork_works" = xcross; then
23551 case $host in
23552 *-*-amigaos* | *-*-msdosdjgpp*)
23553 # Override, as these systems have only a dummy fork() stub
23554 ac_cv_func_fork_works=no
23557 ac_cv_func_fork_works=yes
23559 esac
23560 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23561 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23563 ac_cv_func_vfork_works=$ac_cv_func_vfork
23564 if test "x$ac_cv_func_vfork" = xyes; then
23565 { echo "$as_me:$LINENO: checking for working vfork" >&5
23566 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23567 if test "${ac_cv_func_vfork_works+set}" = set; then
23568 echo $ECHO_N "(cached) $ECHO_C" >&6
23569 else
23570 if test "$cross_compiling" = yes; then
23571 ac_cv_func_vfork_works=cross
23572 else
23573 cat >conftest.$ac_ext <<_ACEOF
23574 /* confdefs.h. */
23575 _ACEOF
23576 cat confdefs.h >>conftest.$ac_ext
23577 cat >>conftest.$ac_ext <<_ACEOF
23578 /* end confdefs.h. */
23579 /* Thanks to Paul Eggert for this test. */
23580 $ac_includes_default
23581 #include <sys/wait.h>
23582 #ifdef HAVE_VFORK_H
23583 # include <vfork.h>
23584 #endif
23585 /* On some sparc systems, changes by the child to local and incoming
23586 argument registers are propagated back to the parent. The compiler
23587 is told about this with #include <vfork.h>, but some compilers
23588 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23589 static variable whose address is put into a register that is
23590 clobbered by the vfork. */
23591 static void
23592 #ifdef __cplusplus
23593 sparc_address_test (int arg)
23594 # else
23595 sparc_address_test (arg) int arg;
23596 #endif
23598 static pid_t child;
23599 if (!child) {
23600 child = vfork ();
23601 if (child < 0) {
23602 perror ("vfork");
23603 _exit(2);
23605 if (!child) {
23606 arg = getpid();
23607 write(-1, "", 0);
23608 _exit (arg);
23614 main ()
23616 pid_t parent = getpid ();
23617 pid_t child;
23619 sparc_address_test (0);
23621 child = vfork ();
23623 if (child == 0) {
23624 /* Here is another test for sparc vfork register problems. This
23625 test uses lots of local variables, at least as many local
23626 variables as main has allocated so far including compiler
23627 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23628 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23629 reuse the register of parent for one of the local variables,
23630 since it will think that parent can't possibly be used any more
23631 in this routine. Assigning to the local variable will thus
23632 munge parent in the parent process. */
23633 pid_t
23634 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23635 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23636 /* Convince the compiler that p..p7 are live; otherwise, it might
23637 use the same hardware register for all 8 local variables. */
23638 if (p != p1 || p != p2 || p != p3 || p != p4
23639 || p != p5 || p != p6 || p != p7)
23640 _exit(1);
23642 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23643 from child file descriptors. If the child closes a descriptor
23644 before it execs or exits, this munges the parent's descriptor
23645 as well. Test for this by closing stdout in the child. */
23646 _exit(close(fileno(stdout)) != 0);
23647 } else {
23648 int status;
23649 struct stat st;
23651 while (wait(&status) != child)
23653 return (
23654 /* Was there some problem with vforking? */
23655 child < 0
23657 /* Did the child fail? (This shouldn't happen.) */
23658 || status
23660 /* Did the vfork/compiler bug occur? */
23661 || parent != getpid()
23663 /* Did the file descriptor bug occur? */
23664 || fstat(fileno(stdout), &st) != 0
23668 _ACEOF
23669 rm -f conftest$ac_exeext
23670 if { (ac_try="$ac_link"
23671 case "(($ac_try" in
23672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673 *) ac_try_echo=$ac_try;;
23674 esac
23675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23676 (eval "$ac_link") 2>&5
23677 ac_status=$?
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
23686 ac_status=$?
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; }; then
23689 ac_cv_func_vfork_works=yes
23690 else
23691 echo "$as_me: program exited with status $ac_status" >&5
23692 echo "$as_me: failed program was:" >&5
23693 sed 's/^/| /' conftest.$ac_ext >&5
23695 ( exit $ac_status )
23696 ac_cv_func_vfork_works=no
23698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23703 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23704 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23707 if test "x$ac_cv_func_fork_works" = xcross; then
23708 ac_cv_func_vfork_works=$ac_cv_func_vfork
23709 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23710 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23713 if test "x$ac_cv_func_vfork_works" = xyes; then
23715 cat >>confdefs.h <<\_ACEOF
23716 #define HAVE_WORKING_VFORK 1
23717 _ACEOF
23719 else
23721 cat >>confdefs.h <<\_ACEOF
23722 #define vfork fork
23723 _ACEOF
23726 if test "x$ac_cv_func_fork_works" = xyes; then
23728 cat >>confdefs.h <<\_ACEOF
23729 #define HAVE_WORKING_FORK 1
23730 _ACEOF
23735 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23736 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23737 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23738 echo $ECHO_N "(cached) $ECHO_C" >&6
23739 else
23740 cat >conftest.$ac_ext <<_ACEOF
23741 /* confdefs.h. */
23742 _ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h. */
23746 #include <langinfo.h>
23748 main ()
23750 char* cs = nl_langinfo(CODESET);
23752 return 0;
23754 _ACEOF
23755 rm -f conftest.$ac_objext conftest$ac_exeext
23756 if { (ac_try="$ac_link"
23757 case "(($ac_try" in
23758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759 *) ac_try_echo=$ac_try;;
23760 esac
23761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23762 (eval "$ac_link") 2>conftest.er1
23763 ac_status=$?
23764 grep -v '^ *+' conftest.er1 >conftest.err
23765 rm -f conftest.er1
23766 cat conftest.err >&5
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); } && {
23769 test -z "$ac_c_werror_flag" ||
23770 test ! -s conftest.err
23771 } && test -s conftest$ac_exeext &&
23772 $as_test_x conftest$ac_exeext; then
23773 emacs_cv_langinfo_codeset=yes
23774 else
23775 echo "$as_me: failed program was:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23778 emacs_cv_langinfo_codeset=no
23781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23782 conftest$ac_exeext conftest.$ac_ext
23785 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23786 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23787 if test $emacs_cv_langinfo_codeset = yes; then
23789 cat >>confdefs.h <<\_ACEOF
23790 #define HAVE_LANGINFO_CODESET 1
23791 _ACEOF
23795 { echo "$as_me:$LINENO: checking for size_t" >&5
23796 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23797 if test "${ac_cv_type_size_t+set}" = set; then
23798 echo $ECHO_N "(cached) $ECHO_C" >&6
23799 else
23800 cat >conftest.$ac_ext <<_ACEOF
23801 /* confdefs.h. */
23802 _ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h. */
23806 $ac_includes_default
23807 typedef size_t ac__type_new_;
23809 main ()
23811 if ((ac__type_new_ *) 0)
23812 return 0;
23813 if (sizeof (ac__type_new_))
23814 return 0;
23816 return 0;
23818 _ACEOF
23819 rm -f conftest.$ac_objext
23820 if { (ac_try="$ac_compile"
23821 case "(($ac_try" in
23822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823 *) ac_try_echo=$ac_try;;
23824 esac
23825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23826 (eval "$ac_compile") 2>conftest.er1
23827 ac_status=$?
23828 grep -v '^ *+' conftest.er1 >conftest.err
23829 rm -f conftest.er1
23830 cat conftest.err >&5
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); } && {
23833 test -z "$ac_c_werror_flag" ||
23834 test ! -s conftest.err
23835 } && test -s conftest.$ac_objext; then
23836 ac_cv_type_size_t=yes
23837 else
23838 echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23841 ac_cv_type_size_t=no
23844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23846 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23847 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23848 if test $ac_cv_type_size_t = yes; then
23850 cat >>confdefs.h <<_ACEOF
23851 #define HAVE_SIZE_T 1
23852 _ACEOF
23858 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23859 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23860 if test "${ac_cv_type_mbstate_t+set}" = set; then
23861 echo $ECHO_N "(cached) $ECHO_C" >&6
23862 else
23863 cat >conftest.$ac_ext <<_ACEOF
23864 /* confdefs.h. */
23865 _ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h. */
23869 $ac_includes_default
23870 # include <wchar.h>
23872 main ()
23874 mbstate_t x; return sizeof x;
23876 return 0;
23878 _ACEOF
23879 rm -f conftest.$ac_objext
23880 if { (ac_try="$ac_compile"
23881 case "(($ac_try" in
23882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23883 *) ac_try_echo=$ac_try;;
23884 esac
23885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23886 (eval "$ac_compile") 2>conftest.er1
23887 ac_status=$?
23888 grep -v '^ *+' conftest.er1 >conftest.err
23889 rm -f conftest.er1
23890 cat conftest.err >&5
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); } && {
23893 test -z "$ac_c_werror_flag" ||
23894 test ! -s conftest.err
23895 } && test -s conftest.$ac_objext; then
23896 ac_cv_type_mbstate_t=yes
23897 else
23898 echo "$as_me: failed program was:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23901 ac_cv_type_mbstate_t=no
23904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23906 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23907 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23908 if test $ac_cv_type_mbstate_t = yes; then
23910 cat >>confdefs.h <<\_ACEOF
23911 #define HAVE_MBSTATE_T 1
23912 _ACEOF
23914 else
23916 cat >>confdefs.h <<\_ACEOF
23917 #define mbstate_t int
23918 _ACEOF
23922 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23923 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23924 if test "${emacs_cv_c_restrict+set}" = set; then
23925 echo $ECHO_N "(cached) $ECHO_C" >&6
23926 else
23927 cat >conftest.$ac_ext <<_ACEOF
23928 /* confdefs.h. */
23929 _ACEOF
23930 cat confdefs.h >>conftest.$ac_ext
23931 cat >>conftest.$ac_ext <<_ACEOF
23932 /* end confdefs.h. */
23933 void fred (int *restrict x);
23935 main ()
23939 return 0;
23941 _ACEOF
23942 rm -f conftest.$ac_objext
23943 if { (ac_try="$ac_compile"
23944 case "(($ac_try" in
23945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23946 *) ac_try_echo=$ac_try;;
23947 esac
23948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23949 (eval "$ac_compile") 2>conftest.er1
23950 ac_status=$?
23951 grep -v '^ *+' conftest.er1 >conftest.err
23952 rm -f conftest.er1
23953 cat conftest.err >&5
23954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } && {
23956 test -z "$ac_c_werror_flag" ||
23957 test ! -s conftest.err
23958 } && test -s conftest.$ac_objext; then
23959 emacs_cv_c_restrict=yes
23960 else
23961 echo "$as_me: failed program was:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23964 cat >conftest.$ac_ext <<_ACEOF
23965 /* confdefs.h. */
23966 _ACEOF
23967 cat confdefs.h >>conftest.$ac_ext
23968 cat >>conftest.$ac_ext <<_ACEOF
23969 /* end confdefs.h. */
23970 void fred (int *__restrict x);
23972 main ()
23976 return 0;
23978 _ACEOF
23979 rm -f conftest.$ac_objext
23980 if { (ac_try="$ac_compile"
23981 case "(($ac_try" in
23982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23983 *) ac_try_echo=$ac_try;;
23984 esac
23985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23986 (eval "$ac_compile") 2>conftest.er1
23987 ac_status=$?
23988 grep -v '^ *+' conftest.er1 >conftest.err
23989 rm -f conftest.er1
23990 cat conftest.err >&5
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); } && {
23993 test -z "$ac_c_werror_flag" ||
23994 test ! -s conftest.err
23995 } && test -s conftest.$ac_objext; then
23996 emacs_cv_c_restrict=__restrict
23997 else
23998 echo "$as_me: failed program was:" >&5
23999 sed 's/^/| /' conftest.$ac_ext >&5
24001 emacs_cv_c_restrict=no
24004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24009 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24010 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24011 case "$emacs_cv_c_restrict" in
24012 yes) emacs_restrict=restrict;;
24013 no) emacs_restrict="";;
24014 *) emacs_restrict="$emacs_cv_c_restrict";;
24015 esac
24016 if test "$emacs_restrict" != __restrict; then
24018 cat >>confdefs.h <<_ACEOF
24019 #define __restrict $emacs_restrict
24020 _ACEOF
24024 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24025 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24026 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24027 echo $ECHO_N "(cached) $ECHO_C" >&6
24028 else
24029 cat >conftest.$ac_ext <<_ACEOF
24030 /* confdefs.h. */
24031 _ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h. */
24035 void fred (int x[__restrict]);
24037 main ()
24041 return 0;
24043 _ACEOF
24044 rm -f conftest.$ac_objext
24045 if { (ac_try="$ac_compile"
24046 case "(($ac_try" in
24047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24048 *) ac_try_echo=$ac_try;;
24049 esac
24050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24051 (eval "$ac_compile") 2>conftest.er1
24052 ac_status=$?
24053 grep -v '^ *+' conftest.er1 >conftest.err
24054 rm -f conftest.er1
24055 cat conftest.err >&5
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); } && {
24058 test -z "$ac_c_werror_flag" ||
24059 test ! -s conftest.err
24060 } && test -s conftest.$ac_objext; then
24061 emacs_cv_c_restrict_arr=yes
24062 else
24063 echo "$as_me: failed program was:" >&5
24064 sed 's/^/| /' conftest.$ac_ext >&5
24066 emacs_cv_c_restrict_arr=no
24069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24071 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24072 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24073 if test "$emacs_cv_c_restrict_arr" = yes; then
24075 cat >>confdefs.h <<\_ACEOF
24076 #define __restrict_arr __restrict
24077 _ACEOF
24083 # Set up the CFLAGS for real compilation, so we can substitute it.
24084 CFLAGS="$REAL_CFLAGS"
24085 CPPFLAGS="$REAL_CPPFLAGS"
24087 #### Find out which version of Emacs this is.
24088 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24089 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24090 if test x"${version}" = x; then
24091 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24092 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24093 { (exit 1); exit 1; }; }
24096 ### Specify what sort of things we'll be editing into Makefile and config.h.
24097 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24137 cat >>confdefs.h <<_ACEOF
24138 #define EMACS_CONFIGURATION "${canonical}"
24139 _ACEOF
24142 cat >>confdefs.h <<_ACEOF
24143 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24144 _ACEOF
24147 cat >>confdefs.h <<_ACEOF
24148 #define config_machfile "${machfile}"
24149 _ACEOF
24152 cat >>confdefs.h <<_ACEOF
24153 #define config_opsysfile "${opsysfile}"
24154 _ACEOF
24157 cat >>confdefs.h <<_ACEOF
24158 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24159 _ACEOF
24162 cat >>confdefs.h <<_ACEOF
24163 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24164 _ACEOF
24167 cat >>confdefs.h <<_ACEOF
24168 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24169 _ACEOF
24172 cat >>confdefs.h <<_ACEOF
24173 #define UNEXEC_SRC ${UNEXEC_SRC}
24174 _ACEOF
24177 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24179 cat >>confdefs.h <<\_ACEOF
24180 #define HAVE_X_WINDOWS 1
24181 _ACEOF
24184 if test "${USE_X_TOOLKIT}" != "none" ; then
24186 cat >>confdefs.h <<\_ACEOF
24187 #define USE_X_TOOLKIT 1
24188 _ACEOF
24190 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24192 cat >>confdefs.h <<\_ACEOF
24193 #define USE_LUCID 1
24194 _ACEOF
24196 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24198 cat >>confdefs.h <<\_ACEOF
24199 #define USE_MOTIF 1
24200 _ACEOF
24204 if test "${HAVE_X11}" = "yes" ; then
24206 cat >>confdefs.h <<\_ACEOF
24207 #define HAVE_X11 1
24208 _ACEOF
24211 if test "${HAVE_MENUS}" = "yes" ; then
24213 cat >>confdefs.h <<\_ACEOF
24214 #define HAVE_MENUS 1
24215 _ACEOF
24218 if test "${GNU_MALLOC}" = "yes" ; then
24220 cat >>confdefs.h <<\_ACEOF
24221 #define GNU_MALLOC 1
24222 _ACEOF
24225 if test "${REL_ALLOC}" = "yes" ; then
24227 cat >>confdefs.h <<\_ACEOF
24228 #define REL_ALLOC 1
24229 _ACEOF
24238 #### Report on what we decided to do.
24239 #### Report GTK as a toolkit, even if it doesn't use Xt.
24240 #### It makes printing result more understandable as using GTK sets
24241 #### toolkit_scroll_bars to yes by default.
24242 if test "${HAVE_GTK}" = "yes"; then
24243 USE_X_TOOLKIT=GTK
24246 echo "
24247 Configured for \`${canonical}'.
24249 Where should the build process find the source code? ${srcdir}
24250 What operating system and machine description files should Emacs use?
24251 \`${opsysfile}' and \`${machfile}'
24252 What compiler should emacs be built with? ${CC} ${CFLAGS}
24253 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24254 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24255 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24256 What window system should Emacs use? ${window_system}
24257 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24259 if test -n "${x_includes}"; then
24260 echo " Where do we find X Windows header files? ${x_includes}"
24261 else
24262 echo " Where do we find X Windows header files? Standard dirs"
24264 if test -n "${x_libraries}"; then
24265 echo " Where do we find X Windows libraries? ${x_libraries}"
24266 else
24267 echo " Where do we find X Windows libraries? Standard dirs"
24270 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24271 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24272 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24273 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24274 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24275 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24276 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24277 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24278 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24280 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24281 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24282 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24283 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24285 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24286 echo
24288 if test $USE_XASSERTS = yes; then
24289 echo " Compiling with asserts turned on."
24290 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24293 echo
24295 if test "$USE_X_TOOLKIT" = GTK; then
24296 case "$canonical" in
24297 *cygwin*)
24298 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24299 will probably get a crash on startup. If this happens, please use another
24300 toolkit for Emacs. See etc/PROBLEMS for more information."
24302 esac
24305 if test "$HAVE_NS" = "yes"; then
24306 echo
24307 echo "You must run \"make install\" in order to test the built application.
24308 The installed application will go to nextstep/Emacs.app and can be
24309 run or moved from there."
24310 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24311 echo "The application will be fully self-contained."
24312 else
24313 echo "The lisp resources for the application will be installed under ${prefix}.
24314 You may need to run \"make install\" with sudo. The application will fail
24315 to run if these resources are not installed."
24317 echo
24320 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24321 echo "D-Bus integration has been tested for GNU/Linux only."
24322 echo
24326 # Remove any trailing slashes in these variables.
24327 test "${prefix}" != NONE &&
24328 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24329 test "${exec_prefix}" != NONE &&
24330 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24332 # Now get this: Some word that is part of the ${srcdir} directory name
24333 # or the ${configuration} value might, just might, happen to be an
24334 # identifier like `sun4' or `i386' or something, and be predefined by
24335 # the C preprocessor to some helpful value like 1, or maybe the empty
24336 # string. Needless to say consequent macro substitutions are less
24337 # than conducive to the makefile finding the correct directory.
24338 cpp_undefs="`echo $srcdir $configuration $canonical |
24339 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24340 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24342 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24343 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24344 ## from Makefile.c can correctly provide the arg `-traditional' to the
24345 ## C preprocessor.
24347 cat >conftest.$ac_ext <<_ACEOF
24348 /* confdefs.h. */
24349 _ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h. */
24353 yes..yes
24354 _ACEOF
24355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24356 $EGREP "yes..yes" >/dev/null 2>&1; then
24357 CPP_NEED_TRADITIONAL=no
24358 else
24359 CPP_NEED_TRADITIONAL=yes
24361 rm -f conftest*
24364 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"
24366 ac_config_commands="$ac_config_commands default"
24368 cat >confcache <<\_ACEOF
24369 # This file is a shell script that caches the results of configure
24370 # tests run on this system so they can be shared between configure
24371 # scripts and configure runs, see configure's option --config-cache.
24372 # It is not useful on other systems. If it contains results you don't
24373 # want to keep, you may remove or edit it.
24375 # config.status only pays attention to the cache file if you give it
24376 # the --recheck option to rerun configure.
24378 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24379 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24380 # following values.
24382 _ACEOF
24384 # The following way of writing the cache mishandles newlines in values,
24385 # but we know of no workaround that is simple, portable, and efficient.
24386 # So, we kill variables containing newlines.
24387 # Ultrix sh set writes to stderr and can't be redirected directly,
24388 # and sets the high bit in the cache file unless we assign to the vars.
24390 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24391 eval ac_val=\$$ac_var
24392 case $ac_val in #(
24393 *${as_nl}*)
24394 case $ac_var in #(
24395 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24396 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24397 esac
24398 case $ac_var in #(
24399 _ | IFS | as_nl) ;; #(
24400 *) $as_unset $ac_var ;;
24401 esac ;;
24402 esac
24403 done
24405 (set) 2>&1 |
24406 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24407 *${as_nl}ac_space=\ *)
24408 # `set' does not quote correctly, so add quotes (double-quote
24409 # substitution turns \\\\ into \\, and sed turns \\ into \).
24410 sed -n \
24411 "s/'/'\\\\''/g;
24412 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24413 ;; #(
24415 # `set' quotes correctly as required by POSIX, so do not add quotes.
24416 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24418 esac |
24419 sort
24421 sed '
24422 /^ac_cv_env_/b end
24423 t clear
24424 :clear
24425 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24426 t end
24427 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24428 :end' >>confcache
24429 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24430 if test -w "$cache_file"; then
24431 test "x$cache_file" != "x/dev/null" &&
24432 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24433 echo "$as_me: updating cache $cache_file" >&6;}
24434 cat confcache >$cache_file
24435 else
24436 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24437 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24440 rm -f confcache
24442 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24443 # Let make expand exec_prefix.
24444 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24446 DEFS=-DHAVE_CONFIG_H
24448 ac_libobjs=
24449 ac_ltlibobjs=
24450 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24451 # 1. Remove the extension, and $U if already installed.
24452 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24453 ac_i=`echo "$ac_i" | sed "$ac_script"`
24454 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24455 # will be set to the directory where LIBOBJS objects are built.
24456 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24457 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24458 done
24459 LIBOBJS=$ac_libobjs
24461 LTLIBOBJS=$ac_ltlibobjs
24465 : ${CONFIG_STATUS=./config.status}
24466 ac_clean_files_save=$ac_clean_files
24467 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24468 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24469 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24470 cat >$CONFIG_STATUS <<_ACEOF
24471 #! $SHELL
24472 # Generated by $as_me.
24473 # Run this file to recreate the current configuration.
24474 # Compiler output produced by configure, useful for debugging
24475 # configure, is in config.log if it exists.
24477 debug=false
24478 ac_cs_recheck=false
24479 ac_cs_silent=false
24480 SHELL=\${CONFIG_SHELL-$SHELL}
24481 _ACEOF
24483 cat >>$CONFIG_STATUS <<\_ACEOF
24484 ## --------------------- ##
24485 ## M4sh Initialization. ##
24486 ## --------------------- ##
24488 # Be more Bourne compatible
24489 DUALCASE=1; export DUALCASE # for MKS sh
24490 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24491 emulate sh
24492 NULLCMD=:
24493 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24494 # is contrary to our usage. Disable this feature.
24495 alias -g '${1+"$@"}'='"$@"'
24496 setopt NO_GLOB_SUBST
24497 else
24498 case `(set -o) 2>/dev/null` in
24499 *posix*) set -o posix ;;
24500 esac
24507 # PATH needs CR
24508 # Avoid depending upon Character Ranges.
24509 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24510 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24511 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24512 as_cr_digits='0123456789'
24513 as_cr_alnum=$as_cr_Letters$as_cr_digits
24515 # The user is always right.
24516 if test "${PATH_SEPARATOR+set}" != set; then
24517 echo "#! /bin/sh" >conf$$.sh
24518 echo "exit 0" >>conf$$.sh
24519 chmod +x conf$$.sh
24520 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24521 PATH_SEPARATOR=';'
24522 else
24523 PATH_SEPARATOR=:
24525 rm -f conf$$.sh
24528 # Support unset when possible.
24529 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24530 as_unset=unset
24531 else
24532 as_unset=false
24536 # IFS
24537 # We need space, tab and new line, in precisely that order. Quoting is
24538 # there to prevent editors from complaining about space-tab.
24539 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24540 # splitting by setting IFS to empty value.)
24541 as_nl='
24543 IFS=" "" $as_nl"
24545 # Find who we are. Look in the path if we contain no directory separator.
24546 case $0 in
24547 *[\\/]* ) as_myself=$0 ;;
24548 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24549 for as_dir in $PATH
24551 IFS=$as_save_IFS
24552 test -z "$as_dir" && as_dir=.
24553 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24554 done
24555 IFS=$as_save_IFS
24558 esac
24559 # We did not find ourselves, most probably we were run as `sh COMMAND'
24560 # in which case we are not to be found in the path.
24561 if test "x$as_myself" = x; then
24562 as_myself=$0
24564 if test ! -f "$as_myself"; then
24565 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24566 { (exit 1); exit 1; }
24569 # Work around bugs in pre-3.0 UWIN ksh.
24570 for as_var in ENV MAIL MAILPATH
24571 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24572 done
24573 PS1='$ '
24574 PS2='> '
24575 PS4='+ '
24577 # NLS nuisances.
24578 for as_var in \
24579 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24580 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24581 LC_TELEPHONE LC_TIME
24583 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24584 eval $as_var=C; export $as_var
24585 else
24586 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24588 done
24590 # Required to use basename.
24591 if expr a : '\(a\)' >/dev/null 2>&1 &&
24592 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24593 as_expr=expr
24594 else
24595 as_expr=false
24598 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24599 as_basename=basename
24600 else
24601 as_basename=false
24605 # Name of the executable.
24606 as_me=`$as_basename -- "$0" ||
24607 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24608 X"$0" : 'X\(//\)$' \| \
24609 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24610 echo X/"$0" |
24611 sed '/^.*\/\([^/][^/]*\)\/*$/{
24612 s//\1/
24615 /^X\/\(\/\/\)$/{
24616 s//\1/
24619 /^X\/\(\/\).*/{
24620 s//\1/
24623 s/.*/./; q'`
24625 # CDPATH.
24626 $as_unset CDPATH
24630 as_lineno_1=$LINENO
24631 as_lineno_2=$LINENO
24632 test "x$as_lineno_1" != "x$as_lineno_2" &&
24633 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24635 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24636 # uniformly replaced by the line number. The first 'sed' inserts a
24637 # line-number line after each line using $LINENO; the second 'sed'
24638 # does the real work. The second script uses 'N' to pair each
24639 # line-number line with the line containing $LINENO, and appends
24640 # trailing '-' during substitution so that $LINENO is not a special
24641 # case at line end.
24642 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24643 # scripts with optimization help from Paolo Bonzini. Blame Lee
24644 # E. McMahon (1931-1989) for sed's syntax. :-)
24645 sed -n '
24647 /[$]LINENO/=
24648 ' <$as_myself |
24649 sed '
24650 s/[$]LINENO.*/&-/
24651 t lineno
24653 :lineno
24655 :loop
24656 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24657 t loop
24658 s/-\n.*//
24659 ' >$as_me.lineno &&
24660 chmod +x "$as_me.lineno" ||
24661 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24662 { (exit 1); exit 1; }; }
24664 # Don't try to exec as it changes $[0], causing all sort of problems
24665 # (the dirname of $[0] is not the place where we might find the
24666 # original and so on. Autoconf is especially sensitive to this).
24667 . "./$as_me.lineno"
24668 # Exit status is that of the last command.
24669 exit
24673 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24674 as_dirname=dirname
24675 else
24676 as_dirname=false
24679 ECHO_C= ECHO_N= ECHO_T=
24680 case `echo -n x` in
24681 -n*)
24682 case `echo 'x\c'` in
24683 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24684 *) ECHO_C='\c';;
24685 esac;;
24687 ECHO_N='-n';;
24688 esac
24690 if expr a : '\(a\)' >/dev/null 2>&1 &&
24691 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24692 as_expr=expr
24693 else
24694 as_expr=false
24697 rm -f conf$$ conf$$.exe conf$$.file
24698 if test -d conf$$.dir; then
24699 rm -f conf$$.dir/conf$$.file
24700 else
24701 rm -f conf$$.dir
24702 mkdir conf$$.dir
24704 echo >conf$$.file
24705 if ln -s conf$$.file conf$$ 2>/dev/null; then
24706 as_ln_s='ln -s'
24707 # ... but there are two gotchas:
24708 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24709 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24710 # In both cases, we have to default to `cp -p'.
24711 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24712 as_ln_s='cp -p'
24713 elif ln conf$$.file conf$$ 2>/dev/null; then
24714 as_ln_s=ln
24715 else
24716 as_ln_s='cp -p'
24718 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24719 rmdir conf$$.dir 2>/dev/null
24721 if mkdir -p . 2>/dev/null; then
24722 as_mkdir_p=:
24723 else
24724 test -d ./-p && rmdir ./-p
24725 as_mkdir_p=false
24728 if test -x / >/dev/null 2>&1; then
24729 as_test_x='test -x'
24730 else
24731 if ls -dL / >/dev/null 2>&1; then
24732 as_ls_L_option=L
24733 else
24734 as_ls_L_option=
24736 as_test_x='
24737 eval sh -c '\''
24738 if test -d "$1"; then
24739 test -d "$1/.";
24740 else
24741 case $1 in
24742 -*)set "./$1";;
24743 esac;
24744 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24745 ???[sx]*):;;*)false;;esac;fi
24746 '\'' sh
24749 as_executable_p=$as_test_x
24751 # Sed expression to map a string onto a valid CPP name.
24752 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24754 # Sed expression to map a string onto a valid variable name.
24755 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24758 exec 6>&1
24760 # Save the log message, to keep $[0] and so on meaningful, and to
24761 # report actual input values of CONFIG_FILES etc. instead of their
24762 # values after options handling.
24763 ac_log="
24764 This file was extended by emacs $as_me 23.0.60, which was
24765 generated by GNU Autoconf 2.61. Invocation command line was
24767 CONFIG_FILES = $CONFIG_FILES
24768 CONFIG_HEADERS = $CONFIG_HEADERS
24769 CONFIG_LINKS = $CONFIG_LINKS
24770 CONFIG_COMMANDS = $CONFIG_COMMANDS
24771 $ $0 $@
24773 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24776 _ACEOF
24778 cat >>$CONFIG_STATUS <<_ACEOF
24779 # Files that config.status was made for.
24780 config_files="$ac_config_files"
24781 config_headers="$ac_config_headers"
24782 config_commands="$ac_config_commands"
24784 _ACEOF
24786 cat >>$CONFIG_STATUS <<\_ACEOF
24787 ac_cs_usage="\
24788 \`$as_me' instantiates files from templates according to the
24789 current configuration.
24791 Usage: $0 [OPTIONS] [FILE]...
24793 -h, --help print this help, then exit
24794 -V, --version print version number and configuration settings, then exit
24795 -q, --quiet do not print progress messages
24796 -d, --debug don't remove temporary files
24797 --recheck update $as_me by reconfiguring in the same conditions
24798 --file=FILE[:TEMPLATE]
24799 instantiate the configuration file FILE
24800 --header=FILE[:TEMPLATE]
24801 instantiate the configuration header FILE
24803 Configuration files:
24804 $config_files
24806 Configuration headers:
24807 $config_headers
24809 Configuration commands:
24810 $config_commands
24812 Report bugs to <bug-autoconf@gnu.org>."
24814 _ACEOF
24815 cat >>$CONFIG_STATUS <<_ACEOF
24816 ac_cs_version="\\
24817 emacs config.status 23.0.60
24818 configured by $0, generated by GNU Autoconf 2.61,
24819 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24821 Copyright (C) 2006 Free Software Foundation, Inc.
24822 This config.status script is free software; the Free Software Foundation
24823 gives unlimited permission to copy, distribute and modify it."
24825 ac_pwd='$ac_pwd'
24826 srcdir='$srcdir'
24827 INSTALL='$INSTALL'
24828 _ACEOF
24830 cat >>$CONFIG_STATUS <<\_ACEOF
24831 # If no file are specified by the user, then we need to provide default
24832 # value. By we need to know if files were specified by the user.
24833 ac_need_defaults=:
24834 while test $# != 0
24836 case $1 in
24837 --*=*)
24838 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24839 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24840 ac_shift=:
24843 ac_option=$1
24844 ac_optarg=$2
24845 ac_shift=shift
24847 esac
24849 case $ac_option in
24850 # Handling of the options.
24851 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24852 ac_cs_recheck=: ;;
24853 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24854 echo "$ac_cs_version"; exit ;;
24855 --debug | --debu | --deb | --de | --d | -d )
24856 debug=: ;;
24857 --file | --fil | --fi | --f )
24858 $ac_shift
24859 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24860 ac_need_defaults=false;;
24861 --header | --heade | --head | --hea )
24862 $ac_shift
24863 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24864 ac_need_defaults=false;;
24865 --he | --h)
24866 # Conflict between --help and --header
24867 { echo "$as_me: error: ambiguous option: $1
24868 Try \`$0 --help' for more information." >&2
24869 { (exit 1); exit 1; }; };;
24870 --help | --hel | -h )
24871 echo "$ac_cs_usage"; exit ;;
24872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24873 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24874 ac_cs_silent=: ;;
24876 # This is an error.
24877 -*) { echo "$as_me: error: unrecognized option: $1
24878 Try \`$0 --help' for more information." >&2
24879 { (exit 1); exit 1; }; } ;;
24881 *) ac_config_targets="$ac_config_targets $1"
24882 ac_need_defaults=false ;;
24884 esac
24885 shift
24886 done
24888 ac_configure_extra_args=
24890 if $ac_cs_silent; then
24891 exec 6>/dev/null
24892 ac_configure_extra_args="$ac_configure_extra_args --silent"
24895 _ACEOF
24896 cat >>$CONFIG_STATUS <<_ACEOF
24897 if \$ac_cs_recheck; then
24898 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24899 CONFIG_SHELL=$SHELL
24900 export CONFIG_SHELL
24901 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24904 _ACEOF
24905 cat >>$CONFIG_STATUS <<\_ACEOF
24906 exec 5>>config.log
24908 echo
24909 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24910 ## Running $as_me. ##
24911 _ASBOX
24912 echo "$ac_log"
24913 } >&5
24915 _ACEOF
24916 cat >>$CONFIG_STATUS <<_ACEOF
24918 # INIT-COMMANDS
24920 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24922 _ACEOF
24924 cat >>$CONFIG_STATUS <<\_ACEOF
24926 # Handling of arguments.
24927 for ac_config_target in $ac_config_targets
24929 case $ac_config_target in
24930 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24931 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24932 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24933 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24934 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24935 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24936 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24937 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24938 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24939 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24940 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24941 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24942 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24944 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24945 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24946 { (exit 1); exit 1; }; };;
24947 esac
24948 done
24951 # If the user did not use the arguments to specify the items to instantiate,
24952 # then the envvar interface is used. Set only those that are not.
24953 # We use the long form for the default assignment because of an extremely
24954 # bizarre bug on SunOS 4.1.3.
24955 if $ac_need_defaults; then
24956 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24957 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24958 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24961 # Have a temporary directory for convenience. Make it in the build tree
24962 # simply because there is no reason against having it here, and in addition,
24963 # creating and moving files from /tmp can sometimes cause problems.
24964 # Hook for its removal unless debugging.
24965 # Note that there is a small window in which the directory will not be cleaned:
24966 # after its creation but before its name has been assigned to `$tmp'.
24967 $debug ||
24969 tmp=
24970 trap 'exit_status=$?
24971 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24973 trap '{ (exit 1); exit 1; }' 1 2 13 15
24975 # Create a (secure) tmp directory for tmp files.
24978 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24979 test -n "$tmp" && test -d "$tmp"
24980 } ||
24982 tmp=./conf$$-$RANDOM
24983 (umask 077 && mkdir "$tmp")
24984 } ||
24986 echo "$me: cannot create a temporary directory in ." >&2
24987 { (exit 1); exit 1; }
24991 # Set up the sed scripts for CONFIG_FILES section.
24994 # No need to generate the scripts if there are no CONFIG_FILES.
24995 # This happens for instance when ./config.status config.h
24996 if test -n "$CONFIG_FILES"; then
24998 _ACEOF
25002 ac_delim='%!_!# '
25003 for ac_last_try in false false false false false :; do
25004 cat >conf$$subs.sed <<_ACEOF
25005 SHELL!$SHELL$ac_delim
25006 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25007 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25008 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25009 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25010 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25011 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25012 exec_prefix!$exec_prefix$ac_delim
25013 prefix!$prefix$ac_delim
25014 program_transform_name!$program_transform_name$ac_delim
25015 bindir!$bindir$ac_delim
25016 sbindir!$sbindir$ac_delim
25017 libexecdir!$libexecdir$ac_delim
25018 datarootdir!$datarootdir$ac_delim
25019 datadir!$datadir$ac_delim
25020 sysconfdir!$sysconfdir$ac_delim
25021 sharedstatedir!$sharedstatedir$ac_delim
25022 localstatedir!$localstatedir$ac_delim
25023 includedir!$includedir$ac_delim
25024 oldincludedir!$oldincludedir$ac_delim
25025 docdir!$docdir$ac_delim
25026 infodir!$infodir$ac_delim
25027 htmldir!$htmldir$ac_delim
25028 dvidir!$dvidir$ac_delim
25029 pdfdir!$pdfdir$ac_delim
25030 psdir!$psdir$ac_delim
25031 libdir!$libdir$ac_delim
25032 localedir!$localedir$ac_delim
25033 mandir!$mandir$ac_delim
25034 DEFS!$DEFS$ac_delim
25035 ECHO_C!$ECHO_C$ac_delim
25036 ECHO_N!$ECHO_N$ac_delim
25037 ECHO_T!$ECHO_T$ac_delim
25038 LIBS!$LIBS$ac_delim
25039 build_alias!$build_alias$ac_delim
25040 host_alias!$host_alias$ac_delim
25041 target_alias!$target_alias$ac_delim
25042 MAINT!$MAINT$ac_delim
25043 build!$build$ac_delim
25044 build_cpu!$build_cpu$ac_delim
25045 build_vendor!$build_vendor$ac_delim
25046 build_os!$build_os$ac_delim
25047 host!$host$ac_delim
25048 host_cpu!$host_cpu$ac_delim
25049 host_vendor!$host_vendor$ac_delim
25050 host_os!$host_os$ac_delim
25051 CC!$CC$ac_delim
25052 CFLAGS!$CFLAGS$ac_delim
25053 LDFLAGS!$LDFLAGS$ac_delim
25054 CPPFLAGS!$CPPFLAGS$ac_delim
25055 ac_ct_CC!$ac_ct_CC$ac_delim
25056 EXEEXT!$EXEEXT$ac_delim
25057 OBJEXT!$OBJEXT$ac_delim
25058 CPP!$CPP$ac_delim
25059 GREP!$GREP$ac_delim
25060 EGREP!$EGREP$ac_delim
25061 LN_S!$LN_S$ac_delim
25062 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25063 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25064 INSTALL_DATA!$INSTALL_DATA$ac_delim
25065 RANLIB!$RANLIB$ac_delim
25066 INSTALL_INFO!$INSTALL_INFO$ac_delim
25067 GZIP_PROG!$GZIP_PROG$ac_delim
25068 MAKEINFO!$MAKEINFO$ac_delim
25069 LIBSOUND!$LIBSOUND$ac_delim
25070 PKG_CONFIG!$PKG_CONFIG$ac_delim
25071 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25072 ALSA_LIBS!$ALSA_LIBS$ac_delim
25073 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25074 SET_MAKE!$SET_MAKE$ac_delim
25075 XMKMF!$XMKMF$ac_delim
25076 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25077 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25078 RSVG_LIBS!$RSVG_LIBS$ac_delim
25079 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25080 GTK_LIBS!$GTK_LIBS$ac_delim
25081 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25082 DBUS_LIBS!$DBUS_LIBS$ac_delim
25083 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25084 XFT_LIBS!$XFT_LIBS$ac_delim
25085 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25086 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25087 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25088 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25089 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25090 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25091 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25092 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25093 ALLOCA!$ALLOCA$ac_delim
25094 liblockfile!$liblockfile$ac_delim
25095 LIBOBJS!$LIBOBJS$ac_delim
25096 NEED_SETGID!$NEED_SETGID$ac_delim
25097 KMEM_GROUP!$KMEM_GROUP$ac_delim
25098 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25099 GETOPT_H!$GETOPT_H$ac_delim
25100 GETOPTOBJS!$GETOPTOBJS$ac_delim
25101 version!$version$ac_delim
25102 _ACEOF
25104 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25105 break
25106 elif $ac_last_try; then
25107 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25108 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25109 { (exit 1); exit 1; }; }
25110 else
25111 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25113 done
25115 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25116 if test -n "$ac_eof"; then
25117 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25118 ac_eof=`expr $ac_eof + 1`
25121 cat >>$CONFIG_STATUS <<_ACEOF
25122 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25124 _ACEOF
25125 sed '
25126 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25127 s/^/s,@/; s/!/@,|#_!!_#|/
25130 s/'"$ac_delim"'$/,g/; t
25131 s/$/\\/; p
25132 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25133 ' >>$CONFIG_STATUS <conf$$subs.sed
25134 rm -f conf$$subs.sed
25135 cat >>$CONFIG_STATUS <<_ACEOF
25136 CEOF$ac_eof
25137 _ACEOF
25140 ac_delim='%!_!# '
25141 for ac_last_try in false false false false false :; do
25142 cat >conf$$subs.sed <<_ACEOF
25143 configuration!$configuration$ac_delim
25144 canonical!$canonical$ac_delim
25145 srcdir!$srcdir$ac_delim
25146 lispdir!$lispdir$ac_delim
25147 locallisppath!$locallisppath$ac_delim
25148 lisppath!$lisppath$ac_delim
25149 x_default_search_path!$x_default_search_path$ac_delim
25150 etcdir!$etcdir$ac_delim
25151 archlibdir!$archlibdir$ac_delim
25152 bitmapdir!$bitmapdir$ac_delim
25153 gamedir!$gamedir$ac_delim
25154 gameuser!$gameuser$ac_delim
25155 c_switch_system!$c_switch_system$ac_delim
25156 c_switch_machine!$c_switch_machine$ac_delim
25157 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25158 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25159 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25160 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25161 machfile!$machfile$ac_delim
25162 opsysfile!$opsysfile$ac_delim
25163 ns_appdir!$ns_appdir$ac_delim
25164 ns_appbindir!$ns_appbindir$ac_delim
25165 ns_appresdir!$ns_appresdir$ac_delim
25166 ns_appsrc!$ns_appsrc$ac_delim
25167 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25168 LTLIBOBJS!$LTLIBOBJS$ac_delim
25169 _ACEOF
25171 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
25172 break
25173 elif $ac_last_try; then
25174 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25175 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25176 { (exit 1); exit 1; }; }
25177 else
25178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25180 done
25182 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25183 if test -n "$ac_eof"; then
25184 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25185 ac_eof=`expr $ac_eof + 1`
25188 cat >>$CONFIG_STATUS <<_ACEOF
25189 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25191 _ACEOF
25192 sed '
25193 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25194 s/^/s,@/; s/!/@,|#_!!_#|/
25197 s/'"$ac_delim"'$/,g/; t
25198 s/$/\\/; p
25199 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25200 ' >>$CONFIG_STATUS <conf$$subs.sed
25201 rm -f conf$$subs.sed
25202 cat >>$CONFIG_STATUS <<_ACEOF
25203 :end
25204 s/|#_!!_#|//g
25205 CEOF$ac_eof
25206 _ACEOF
25209 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25210 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25211 # trailing colons and then remove the whole line if VPATH becomes empty
25212 # (actually we leave an empty line to preserve line numbers).
25213 if test "x$srcdir" = x.; then
25214 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25215 s/:*\$(srcdir):*/:/
25216 s/:*\${srcdir}:*/:/
25217 s/:*@srcdir@:*/:/
25218 s/^\([^=]*=[ ]*\):*/\1/
25219 s/:*$//
25220 s/^[^=]*=[ ]*$//
25224 cat >>$CONFIG_STATUS <<\_ACEOF
25225 fi # test -n "$CONFIG_FILES"
25228 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25230 case $ac_tag in
25231 :[FHLC]) ac_mode=$ac_tag; continue;;
25232 esac
25233 case $ac_mode$ac_tag in
25234 :[FHL]*:*);;
25235 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25236 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25237 { (exit 1); exit 1; }; };;
25238 :[FH]-) ac_tag=-:-;;
25239 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25240 esac
25241 ac_save_IFS=$IFS
25242 IFS=:
25243 set x $ac_tag
25244 IFS=$ac_save_IFS
25245 shift
25246 ac_file=$1
25247 shift
25249 case $ac_mode in
25250 :L) ac_source=$1;;
25251 :[FH])
25252 ac_file_inputs=
25253 for ac_f
25255 case $ac_f in
25256 -) ac_f="$tmp/stdin";;
25257 *) # Look for the file first in the build tree, then in the source tree
25258 # (if the path is not absolute). The absolute path cannot be DOS-style,
25259 # because $ac_f cannot contain `:'.
25260 test -f "$ac_f" ||
25261 case $ac_f in
25262 [\\/$]*) false;;
25263 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25264 esac ||
25265 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25266 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25267 { (exit 1); exit 1; }; };;
25268 esac
25269 ac_file_inputs="$ac_file_inputs $ac_f"
25270 done
25272 # Let's still pretend it is `configure' which instantiates (i.e., don't
25273 # use $as_me), people would be surprised to read:
25274 # /* config.h. Generated by config.status. */
25275 configure_input="Generated from "`IFS=:
25276 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25277 if test x"$ac_file" != x-; then
25278 configure_input="$ac_file. $configure_input"
25279 { echo "$as_me:$LINENO: creating $ac_file" >&5
25280 echo "$as_me: creating $ac_file" >&6;}
25283 case $ac_tag in
25284 *:-:* | *:-) cat >"$tmp/stdin";;
25285 esac
25287 esac
25289 ac_dir=`$as_dirname -- "$ac_file" ||
25290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25291 X"$ac_file" : 'X\(//\)[^/]' \| \
25292 X"$ac_file" : 'X\(//\)$' \| \
25293 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25294 echo X"$ac_file" |
25295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25296 s//\1/
25299 /^X\(\/\/\)[^/].*/{
25300 s//\1/
25303 /^X\(\/\/\)$/{
25304 s//\1/
25307 /^X\(\/\).*/{
25308 s//\1/
25311 s/.*/./; q'`
25312 { as_dir="$ac_dir"
25313 case $as_dir in #(
25314 -*) as_dir=./$as_dir;;
25315 esac
25316 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25317 as_dirs=
25318 while :; do
25319 case $as_dir in #(
25320 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25321 *) as_qdir=$as_dir;;
25322 esac
25323 as_dirs="'$as_qdir' $as_dirs"
25324 as_dir=`$as_dirname -- "$as_dir" ||
25325 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25326 X"$as_dir" : 'X\(//\)[^/]' \| \
25327 X"$as_dir" : 'X\(//\)$' \| \
25328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25329 echo X"$as_dir" |
25330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25331 s//\1/
25334 /^X\(\/\/\)[^/].*/{
25335 s//\1/
25338 /^X\(\/\/\)$/{
25339 s//\1/
25342 /^X\(\/\).*/{
25343 s//\1/
25346 s/.*/./; q'`
25347 test -d "$as_dir" && break
25348 done
25349 test -z "$as_dirs" || eval "mkdir $as_dirs"
25350 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25351 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25352 { (exit 1); exit 1; }; }; }
25353 ac_builddir=.
25355 case "$ac_dir" in
25356 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25358 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25359 # A ".." for each directory in $ac_dir_suffix.
25360 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25361 case $ac_top_builddir_sub in
25362 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25363 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25364 esac ;;
25365 esac
25366 ac_abs_top_builddir=$ac_pwd
25367 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25368 # for backward compatibility:
25369 ac_top_builddir=$ac_top_build_prefix
25371 case $srcdir in
25372 .) # We are building in place.
25373 ac_srcdir=.
25374 ac_top_srcdir=$ac_top_builddir_sub
25375 ac_abs_top_srcdir=$ac_pwd ;;
25376 [\\/]* | ?:[\\/]* ) # Absolute name.
25377 ac_srcdir=$srcdir$ac_dir_suffix;
25378 ac_top_srcdir=$srcdir
25379 ac_abs_top_srcdir=$srcdir ;;
25380 *) # Relative name.
25381 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25382 ac_top_srcdir=$ac_top_build_prefix$srcdir
25383 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25384 esac
25385 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25388 case $ac_mode in
25391 # CONFIG_FILE
25394 case $INSTALL in
25395 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25396 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25397 esac
25398 _ACEOF
25400 cat >>$CONFIG_STATUS <<\_ACEOF
25401 # If the template does not know about datarootdir, expand it.
25402 # FIXME: This hack should be removed a few years after 2.60.
25403 ac_datarootdir_hack=; ac_datarootdir_seen=
25405 case `sed -n '/datarootdir/ {
25409 /@datadir@/p
25410 /@docdir@/p
25411 /@infodir@/p
25412 /@localedir@/p
25413 /@mandir@/p
25414 ' $ac_file_inputs` in
25415 *datarootdir*) ac_datarootdir_seen=yes;;
25416 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25417 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25418 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25419 _ACEOF
25420 cat >>$CONFIG_STATUS <<_ACEOF
25421 ac_datarootdir_hack='
25422 s&@datadir@&$datadir&g
25423 s&@docdir@&$docdir&g
25424 s&@infodir@&$infodir&g
25425 s&@localedir@&$localedir&g
25426 s&@mandir@&$mandir&g
25427 s&\\\${datarootdir}&$datarootdir&g' ;;
25428 esac
25429 _ACEOF
25431 # Neutralize VPATH when `$srcdir' = `.'.
25432 # Shell code in configure.ac might set extrasub.
25433 # FIXME: do we really want to maintain this feature?
25434 cat >>$CONFIG_STATUS <<_ACEOF
25435 sed "$ac_vpsub
25436 $extrasub
25437 _ACEOF
25438 cat >>$CONFIG_STATUS <<\_ACEOF
25440 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25441 s&@configure_input@&$configure_input&;t t
25442 s&@top_builddir@&$ac_top_builddir_sub&;t t
25443 s&@srcdir@&$ac_srcdir&;t t
25444 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25445 s&@top_srcdir@&$ac_top_srcdir&;t t
25446 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25447 s&@builddir@&$ac_builddir&;t t
25448 s&@abs_builddir@&$ac_abs_builddir&;t t
25449 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25450 s&@INSTALL@&$ac_INSTALL&;t t
25451 $ac_datarootdir_hack
25452 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25454 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25455 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25456 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25457 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25458 which seems to be undefined. Please make sure it is defined." >&5
25459 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25460 which seems to be undefined. Please make sure it is defined." >&2;}
25462 rm -f "$tmp/stdin"
25463 case $ac_file in
25464 -) cat "$tmp/out"; rm -f "$tmp/out";;
25465 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25466 esac
25470 # CONFIG_HEADER
25472 _ACEOF
25474 # Transform confdefs.h into a sed script `conftest.defines', that
25475 # substitutes the proper values into config.h.in to produce config.h.
25476 rm -f conftest.defines conftest.tail
25477 # First, append a space to every undef/define line, to ease matching.
25478 echo 's/$/ /' >conftest.defines
25479 # Then, protect against being on the right side of a sed subst, or in
25480 # an unquoted here document, in config.status. If some macros were
25481 # called several times there might be several #defines for the same
25482 # symbol, which is useless. But do not sort them, since the last
25483 # AC_DEFINE must be honored.
25484 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25485 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25486 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25487 # PARAMS is the parameter list in the macro definition--in most cases, it's
25488 # just an empty string.
25489 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25490 ac_dB='\\)[ (].*,\\1define\\2'
25491 ac_dC=' '
25492 ac_dD=' ,'
25494 uniq confdefs.h |
25495 sed -n '
25496 t rset
25497 :rset
25498 s/^[ ]*#[ ]*define[ ][ ]*//
25499 t ok
25502 s/[\\&,]/\\&/g
25503 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25504 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25505 ' >>conftest.defines
25507 # Remove the space that was appended to ease matching.
25508 # Then replace #undef with comments. This is necessary, for
25509 # example, in the case of _POSIX_SOURCE, which is predefined and required
25510 # on some systems where configure will not decide to define it.
25511 # (The regexp can be short, since the line contains either #define or #undef.)
25512 echo 's/ $//
25513 s,^[ #]*u.*,/* & */,' >>conftest.defines
25515 # Break up conftest.defines:
25516 ac_max_sed_lines=50
25518 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25519 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25520 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25521 # et cetera.
25522 ac_in='$ac_file_inputs'
25523 ac_out='"$tmp/out1"'
25524 ac_nxt='"$tmp/out2"'
25526 while :
25528 # Write a here document:
25529 cat >>$CONFIG_STATUS <<_ACEOF
25530 # First, check the format of the line:
25531 cat >"\$tmp/defines.sed" <<\\CEOF
25532 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25533 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25535 :def
25536 _ACEOF
25537 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25538 echo 'CEOF
25539 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25540 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25541 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25542 grep . conftest.tail >/dev/null || break
25543 rm -f conftest.defines
25544 mv conftest.tail conftest.defines
25545 done
25546 rm -f conftest.defines conftest.tail
25548 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25549 cat >>$CONFIG_STATUS <<\_ACEOF
25550 if test x"$ac_file" != x-; then
25551 echo "/* $configure_input */" >"$tmp/config.h"
25552 cat "$ac_result" >>"$tmp/config.h"
25553 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25554 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25555 echo "$as_me: $ac_file is unchanged" >&6;}
25556 else
25557 rm -f $ac_file
25558 mv "$tmp/config.h" $ac_file
25560 else
25561 echo "/* $configure_input */"
25562 cat "$ac_result"
25564 rm -f "$tmp/out12"
25567 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25568 echo "$as_me: executing $ac_file commands" >&6;}
25570 esac
25573 case $ac_file$ac_mode in
25574 "default":C)
25576 ### Make the necessary directories, if they don't exist.
25577 for dir in etc lisp ; do
25578 test -d ${dir} || mkdir ${dir}
25579 done
25581 # Build src/Makefile from ${srcdir}/src/Makefile.c
25582 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25583 # This must be done after src/config.h is built, since we rely on that file.
25585 echo creating src/epaths.h
25586 ${MAKE-make} epaths-force
25588 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25589 # `..' to `. .' unless invoked with -traditional
25591 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25592 CPPFLAGS="$CPPFLAGS -traditional"
25595 echo creating lib-src/Makefile
25596 ( cd lib-src
25597 rm -f junk.c junk1.c junk2.c
25598 sed -e '/start of cpp stuff/q' \
25599 < Makefile.c > junk1.c
25600 sed -e '1,/start of cpp stuff/d'\
25601 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25602 < Makefile.c > junk.c
25603 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25604 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25605 cat junk1.c junk2.c > Makefile.new
25606 rm -f junk.c junk1.c junk2.c
25607 chmod 444 Makefile.new
25608 mv -f Makefile.new Makefile
25611 echo creating src/Makefile
25612 ( cd src
25613 rm -f junk.c junk1.c junk2.c
25614 sed -e '/start of cpp stuff/q' \
25615 < Makefile.c > junk1.c
25616 sed -e '1,/start of cpp stuff/d'\
25617 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25618 < Makefile.c > junk.c
25619 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25620 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25621 cat junk1.c junk2.c > Makefile.new
25622 rm -f junk.c junk1.c junk2.c
25623 chmod 444 Makefile.new
25624 mv -f Makefile.new Makefile
25627 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25628 echo creating src/.gdbinit
25629 echo source $srcdir/src/.gdbinit > src/.gdbinit
25634 esac
25635 done # for ac_tag
25638 { (exit 0); exit 0; }
25639 _ACEOF
25640 chmod +x $CONFIG_STATUS
25641 ac_clean_files=$ac_clean_files_save
25644 # configure is writing to config.log, and then calls config.status.
25645 # config.status does its own redirection, appending to config.log.
25646 # Unfortunately, on DOS this fails, as config.log is still kept open
25647 # by configure, so config.status won't be able to write to it; its
25648 # output is simply discarded. So we exec the FD to /dev/null,
25649 # effectively closing config.log, so it can be properly (re)opened and
25650 # appended to by config.status. When coming back to configure, we
25651 # need to make the FD available again.
25652 if test "$no_create" != yes; then
25653 ac_cs_success=:
25654 ac_config_status_args=
25655 test "$silent" = yes &&
25656 ac_config_status_args="$ac_config_status_args --quiet"
25657 exec 5>/dev/null
25658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25659 exec 5>>config.log
25660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25661 # would make configure fail if this is the last instruction.
25662 $ac_cs_success || { (exit 1); exit 1; }