Fix typo.
[emacs.git] / configure
blobee6871bf1a3852c25896e3152db5fc3aee095bcd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 23.1.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='23.1.50'
598 PACKAGE_STRING='emacs 23.1.50'
599 PACKAGE_BUGREPORT=''
601 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_config_libobj_dir=src
639 ac_header_list=
640 ac_func_list=
641 ac_subst_vars='SHELL
642 PATH_SEPARATOR
643 PACKAGE_NAME
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
695 GREP
696 EGREP
697 LN_S
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 RANLIB
702 INSTALL_INFO
703 GZIP_PROG
704 MAKEINFO
705 LIBSOUND
706 PKG_CONFIG
707 ALSA_CFLAGS
708 ALSA_LIBS
709 CFLAGS_SOUND
710 SET_MAKE
711 XMKMF
712 HAVE_XSERVER
713 RSVG_CFLAGS
714 RSVG_LIBS
715 GTK_CFLAGS
716 GTK_LIBS
717 DBUS_CFLAGS
718 DBUS_LIBS
719 FONTCONFIG_CFLAGS
720 FONTCONFIG_LIBS
721 XFT_CFLAGS
722 XFT_LIBS
723 LIBOTF_CFLAGS
724 LIBOTF_LIBS
725 M17N_FLT_CFLAGS
726 M17N_FLT_LIBS
727 FREETYPE_CFLAGS
728 FREETYPE_LIBS
729 ALLOCA
730 liblockfile
731 LIBOBJS
732 NEED_SETGID
733 KMEM_GROUP
734 GETLOADAVG_LIBS
735 GETOPT_H
736 GETOPTOBJS
737 version
738 configuration
739 canonical
740 srcdir
741 lispdir
742 locallisppath
743 lisppath
744 x_default_search_path
745 etcdir
746 archlibdir
747 bitmapdir
748 gamedir
749 gameuser
750 c_switch_system
751 c_switch_machine
752 LD_SWITCH_X_SITE
753 LD_SWITCH_X_SITE_AUX
754 C_SWITCH_X_SITE
755 X_TOOLKIT_TYPE
756 machfile
757 opsysfile
758 ns_appdir
759 ns_appbindir
760 ns_appresdir
761 ns_appsrc
762 GNUSTEP_MAKEFILES
763 GNUSTEP_SYSTEM_HEADERS
764 GNUSTEP_SYSTEM_LIBRARIES
765 GNU_OBJC_CFLAGS
766 LIB_SRC_EXTRA_INSTALLABLES
767 OTHER_FILES
768 LTLIBOBJS'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 with_pop
773 with_kerberos
774 with_kerberos5
775 with_hesiod
776 with_sound
777 with_sync_input
778 with_x_toolkit
779 with_xpm
780 with_jpeg
781 with_tiff
782 with_gif
783 with_png
784 with_rsvg
785 with_xft
786 with_libotf
787 with_m17n_flt
788 with_toolkit_scroll_bars
789 with_xaw3d
790 with_xim
791 with_ns
792 with_gpm
793 with_dbus
794 with_makeinfo
795 with_gtk
796 with_gcc
797 with_pkg_config_prog
798 with_gnustep_conf
799 enable_ns_self_contained
800 enable_asserts
801 enable_maintainer_mode
802 enable_locallisppath
803 enable_checking
804 enable_profiling
805 enable_largefile
806 with_x
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
817 XMKMF'
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 ac_unrecognized_opts=
824 ac_unrecognized_sep=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
868 ac_prev=
869 ac_dashdash=
870 for ac_option
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
875 ac_prev=
876 continue
879 case $ac_option in
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *) ac_optarg=yes ;;
882 esac
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
888 ac_dashdash=yes ;;
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
907 --config-cache | -C)
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
911 ac_prev=datadir ;;
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
927 { (exit 1); exit 1; }; }
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
932 "enable_$ac_useropt"
933 "*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=no ;;
939 -docdir | --docdir | --docdi | --doc | --do)
940 ac_prev=docdir ;;
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 docdir=$ac_optarg ;;
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 ac_prev=dvidir ;;
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 dvidir=$ac_optarg ;;
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
954 { (exit 1); exit 1; }; }
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1176 { (exit 1); exit 1; }; }
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=no ;;
1188 --x)
1189 # Obsolete; use --with-x.
1190 with_x=yes ;;
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1206 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1207 Try \`$0 --help' for more information." >&2
1208 { (exit 1); exit 1; }; }
1211 *=*)
1212 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1215 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1216 { (exit 1); exit 1; }; }
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1228 esac
1229 done
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1234 { (exit 1); exit 1; }; }
1237 if test -n "$ac_unrecognized_opts"; then
1238 case $enable_option_checking in
1239 no) ;;
1240 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1241 { (exit 1); exit 1; }; } ;;
1242 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243 esac
1246 # Check all directory arguments for consistency.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1252 eval ac_val=\$$ac_var
1253 # Remove trailing slashes.
1254 case $ac_val in
1255 */ )
1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\$ac_val;;
1258 esac
1259 # Be sure to have absolute directory names.
1260 case $ac_val in
1261 [\\/$]* | ?:[\\/]* ) continue;;
1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263 esac
1264 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1265 { (exit 1); exit 1; }; }
1266 done
1268 # There might be people who depend on the old broken behavior: `$host'
1269 # used to hold the argument of --host etc.
1270 # FIXME: To remove some day.
1271 build=$build_alias
1272 host=$host_alias
1273 target=$target_alias
1275 # FIXME: To remove some day.
1276 if test "x$host_alias" != x; then
1277 if test "x$build_alias" = x; then
1278 cross_compiling=maybe
1279 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1280 If a cross compiler is detected then cross compile mode will be used." >&2
1281 elif test "x$build_alias" != "x$host_alias"; then
1282 cross_compiling=yes
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289 test "$silent" = yes && exec 6>/dev/null
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1296 { (exit 1); exit 1; }; }
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1299 { (exit 1); exit 1; }; }
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304 ac_srcdir_defaulted=yes
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir=`$as_dirname -- "$as_myself" ||
1307 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311 $as_echo X"$as_myself" |
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 s//\1/
1316 /^X\(\/\/\)[^/].*/{
1317 s//\1/
1320 /^X\(\/\/\)$/{
1321 s//\1/
1324 /^X\(\/\).*/{
1325 s//\1/
1328 s/.*/./; q'`
1329 srcdir=$ac_confdir
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 srcdir=..
1333 else
1334 ac_srcdir_defaulted=no
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1339 { (exit 1); exit 1; }; }
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1344 { (exit 1); exit 1; }; }
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1364 # Report the --help message.
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1377 Defaults for the options are specified in brackets.
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1401 For better control, use the options below.
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1423 _ACEOF
1425 cat <<\_ACEOF
1427 Program names:
1428 --program-prefix=PREFIX prepend PREFIX to installed program names
1429 --program-suffix=SUFFIX append SUFFIX to installed program names
1430 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432 X features:
1433 --x-includes=DIR X include files are in DIR
1434 --x-libraries=DIR X library files are in DIR
1436 System types:
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 _ACEOF
1442 if test -n "$ac_init_help"; then
1443 case $ac_init_help in
1444 short | recursive ) echo "Configuration of emacs 23.1.50:";;
1445 esac
1446 cat <<\_ACEOF
1448 Optional Features:
1449 --disable-option-checking ignore unrecognized --enable/--with options
1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1452 --disable-ns-self-contained
1453 disable self contained build under NeXTstep
1454 --enable-asserts compile code with asserts enabled
1455 --enable-maintainer-mode
1456 enable make rules and dependencies not useful (and
1457 sometimes confusing) to the casual installer
1458 --enable-locallisppath=PATH
1459 directories Emacs should search for lisp files
1460 specific to this site
1461 --enable-checking[=LIST]
1462 enable expensive run-time checks. With LIST, enable
1463 only specific categories of checks. Categories are:
1464 all,yes,no. Flags are: stringbytes, stringoverrun,
1465 stringfreelist, xmallocoverrun, conslist
1466 --enable-profiling build emacs with profiling support. This might not
1467 work on all platforms
1468 --disable-largefile omit support for large files
1470 Optional Packages:
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1473 --without-pop don't support POP mail retrieval with movemail
1474 --with-kerberos support Kerberos-authenticated POP
1475 --with-kerberos5 support Kerberos version 5 authenticated POP
1476 --with-hesiod support Hesiod to get the POP server host
1477 --without-sound don't compile with sound support
1478 --without-sync-input process async input synchronously
1479 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1480 motif, gtk, no)
1481 --without-xpm don't compile with XPM image support
1482 --without-jpeg don't compile with JPEG image support
1483 --without-tiff don't compile with TIFF image support
1484 --without-gif don't compile with GIF image support
1485 --without-png don't compile with PNG image support
1486 --without-rsvg don't compile with SVG image support
1487 --without-xft don't use XFT for anti aliased fonts
1488 --without-libotf don't use libotf for OpenType font support
1489 --without-m17n-flt don't use m17n-flt for text shaping
1490 --without-toolkit-scroll-bars
1491 don't use Motif or Xaw3d scroll bars
1492 --without-xaw3d don't use Xaw3d
1493 --without-xim don't use X11 XIM
1494 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1495 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1496 console
1497 --without-dbus don't compile with D-Bus support
1498 --without-makeinfo don't require makeinfo for building manuals
1500 --with-pkg-config-prog=PATH
1501 path to pkg-config for finding GTK and librsvg
1502 --with-gnustep-conf=PATH
1503 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1504 or /etc/GNUstep/GNUstep.conf
1505 --with-x use the X Window System
1507 Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
1512 LIBS libraries to pass to the linker, e.g. -l<library>
1513 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
1515 CPP C preprocessor
1516 XMKMF Path to xmkmf, Makefile generator for X Window System
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1521 _ACEOF
1522 ac_status=$?
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 continue
1531 ac_builddir=.
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1549 case $srcdir in
1550 .) # We are building in place.
1551 ac_srcdir=.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1558 *) # Relative name.
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1573 else
1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 fi || ac_status=$?
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1577 done
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582 cat <<\_ACEOF
1583 emacs configure 23.1.50
1584 generated by GNU Autoconf 2.62
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591 exit
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1597 It was created by emacs $as_me 23.1.50, which was
1598 generated by GNU Autoconf 2.62. Invocation command line was
1600 $ $0 $@
1602 _ACEOF
1603 exec 5>>config.log
1605 cat <<_ASUNAME
1606 ## --------- ##
1607 ## Platform. ##
1608 ## --------- ##
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1619 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1620 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1623 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1624 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1625 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1627 _ASUNAME
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1632 IFS=$as_save_IFS
1633 test -z "$as_dir" && as_dir=.
1634 $as_echo "PATH: $as_dir"
1635 done
1636 IFS=$as_save_IFS
1638 } >&5
1640 cat >&5 <<_ACEOF
1643 ## ----------- ##
1644 ## Core tests. ##
1645 ## ----------- ##
1647 _ACEOF
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1655 ac_configure_args=
1656 ac_configure_args0=
1657 ac_configure_args1=
1658 ac_must_keep_next=false
1659 for ac_pass in 1 2
1661 for ac_arg
1663 case $ac_arg in
1664 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666 | -silent | --silent | --silen | --sile | --sil)
1667 continue ;;
1668 *\'*)
1669 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1670 esac
1671 case $ac_pass in
1672 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1674 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675 if test $ac_must_keep_next = true; then
1676 ac_must_keep_next=false # Got value, back to normal.
1677 else
1678 case $ac_arg in
1679 *=* | --config-cache | -C | -disable-* | --disable-* \
1680 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682 | -with-* | --with-* | -without-* | --without-* | --x)
1683 case "$ac_configure_args0 " in
1684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1685 esac
1687 -* ) ac_must_keep_next=true ;;
1688 esac
1690 ac_configure_args="$ac_configure_args '$ac_arg'"
1692 esac
1693 done
1694 done
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log. We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704 # Save into config.log some information that might help in debugging.
1706 echo
1708 cat <<\_ASBOX
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1712 _ASBOX
1713 echo
1714 # The following way of writing the cache mishandles newlines in values,
1716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717 eval ac_val=\$$ac_var
1718 case $ac_val in #(
1719 *${as_nl}*)
1720 case $ac_var in #(
1721 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1723 esac
1724 case $ac_var in #(
1725 _ | IFS | as_nl) ;; #(
1726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1727 *) $as_unset $ac_var ;;
1728 esac ;;
1729 esac
1730 done
1731 (set) 2>&1 |
1732 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1733 *${as_nl}ac_space=\ *)
1734 sed -n \
1735 "s/'\''/'\''\\\\'\'''\''/g;
1736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1737 ;; #(
1739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1741 esac |
1742 sort
1744 echo
1746 cat <<\_ASBOX
1747 ## ----------------- ##
1748 ## Output variables. ##
1749 ## ----------------- ##
1750 _ASBOX
1751 echo
1752 for ac_var in $ac_subst_vars
1754 eval ac_val=\$$ac_var
1755 case $ac_val in
1756 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 esac
1758 $as_echo "$ac_var='\''$ac_val'\''"
1759 done | sort
1760 echo
1762 if test -n "$ac_subst_files"; then
1763 cat <<\_ASBOX
1764 ## ------------------- ##
1765 ## File substitutions. ##
1766 ## ------------------- ##
1767 _ASBOX
1768 echo
1769 for ac_var in $ac_subst_files
1771 eval ac_val=\$$ac_var
1772 case $ac_val in
1773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 esac
1775 $as_echo "$ac_var='\''$ac_val'\''"
1776 done | sort
1777 echo
1780 if test -s confdefs.h; then
1781 cat <<\_ASBOX
1782 ## ----------- ##
1783 ## confdefs.h. ##
1784 ## ----------- ##
1785 _ASBOX
1786 echo
1787 cat confdefs.h
1788 echo
1790 test "$ac_signal" != 0 &&
1791 $as_echo "$as_me: caught signal $ac_signal"
1792 $as_echo "$as_me: exit $exit_status"
1793 } >&5
1794 rm -f core *.core core.conftest.* &&
1795 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1796 exit $exit_status
1798 for ac_signal in 1 2 13 15; do
1799 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1800 done
1801 ac_signal=0
1803 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1804 rm -f -r conftest* confdefs.h
1806 # Predefined preprocessor variables.
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_NAME "$PACKAGE_NAME"
1810 _ACEOF
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1815 _ACEOF
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1820 _ACEOF
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_STRING "$PACKAGE_STRING"
1825 _ACEOF
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1830 _ACEOF
1833 # Let the site file select an alternate cache file if it wants to.
1834 # Prefer an explicitly selected file to automatically selected ones.
1835 ac_site_file1=NONE
1836 ac_site_file2=NONE
1837 if test -n "$CONFIG_SITE"; then
1838 ac_site_file1=$CONFIG_SITE
1839 elif test "x$prefix" != xNONE; then
1840 ac_site_file1=$prefix/share/config.site
1841 ac_site_file2=$prefix/etc/config.site
1842 else
1843 ac_site_file1=$ac_default_prefix/share/config.site
1844 ac_site_file2=$ac_default_prefix/etc/config.site
1846 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1848 test "x$ac_site_file" = xNONE && continue
1849 if test -r "$ac_site_file"; then
1850 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1851 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1852 sed 's/^/| /' "$ac_site_file" >&5
1853 . "$ac_site_file"
1855 done
1857 if test -r "$cache_file"; then
1858 # Some versions of bash will fail to source /dev/null (special
1859 # files actually), so we avoid doing that.
1860 if test -f "$cache_file"; then
1861 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1862 $as_echo "$as_me: loading cache $cache_file" >&6;}
1863 case $cache_file in
1864 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1865 *) . "./$cache_file";;
1866 esac
1868 else
1869 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1870 $as_echo "$as_me: creating cache $cache_file" >&6;}
1871 >$cache_file
1874 ac_header_list="$ac_header_list sys/time.h"
1875 ac_header_list="$ac_header_list unistd.h"
1876 ac_func_list="$ac_func_list alarm"
1877 # Check that the precious variables saved in the cache have kept the same
1878 # value.
1879 ac_cache_corrupted=false
1880 for ac_var in $ac_precious_vars; do
1881 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1882 eval ac_new_set=\$ac_env_${ac_var}_set
1883 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1884 eval ac_new_val=\$ac_env_${ac_var}_value
1885 case $ac_old_set,$ac_new_set in
1886 set,)
1887 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1888 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1889 ac_cache_corrupted=: ;;
1890 ,set)
1891 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1892 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1893 ac_cache_corrupted=: ;;
1894 ,);;
1896 if test "x$ac_old_val" != "x$ac_new_val"; then
1897 # differences in whitespace do not lead to failure.
1898 ac_old_val_w=`echo x $ac_old_val`
1899 ac_new_val_w=`echo x $ac_new_val`
1900 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1902 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1903 ac_cache_corrupted=:
1904 else
1905 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1906 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1907 eval $ac_var=\$ac_old_val
1909 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1910 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1911 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1912 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1913 fi;;
1914 esac
1915 # Pass precious variables to config.status.
1916 if test "$ac_new_set" = set; then
1917 case $ac_new_val in
1918 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1919 *) ac_arg=$ac_var=$ac_new_val ;;
1920 esac
1921 case " $ac_configure_args " in
1922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1923 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1924 esac
1926 done
1927 if $ac_cache_corrupted; then
1928 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1929 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1930 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1931 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1932 { (exit 1); exit 1; }; }
1959 ac_ext=c
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1970 test "$program_prefix" != NONE &&
1971 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1972 # Use a double $ so make ignores it.
1973 test "$program_suffix" != NONE &&
1974 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1975 # Double any \ or $.
1976 # By default was `s,x,x', remove it if useless.
1977 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1978 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1981 lispdir='${datadir}/emacs/${version}/lisp'
1982 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1983 '${datadir}/emacs/site-lisp'
1984 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1985 etcdir='${datadir}/emacs/${version}/etc'
1986 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1987 docdir='${datadir}/emacs/${version}/etc'
1988 gamedir='${localstatedir}/games/emacs'
1990 gameuser=games
1995 # Check whether --with-pop was given.
1996 if test "${with_pop+set}" = set; then
1997 withval=$with_pop;
1998 else
1999 with_pop=yes
2002 if test "$with_pop" = yes; then
2003 cat >>confdefs.h <<\_ACEOF
2004 #define MAIL_USE_POP 1
2005 _ACEOF
2011 # Check whether --with-kerberos was given.
2012 if test "${with_kerberos+set}" = set; then
2013 withval=$with_kerberos;
2014 else
2015 with_kerberos=no
2018 if test "$with_kerberos" != no; then
2019 cat >>confdefs.h <<\_ACEOF
2020 #define KERBEROS 1
2021 _ACEOF
2027 # Check whether --with-kerberos5 was given.
2028 if test "${with_kerberos5+set}" = set; then
2029 withval=$with_kerberos5;
2030 else
2031 with_kerberos5=no
2034 if test "${with_kerberos5}" != no; then
2035 if test "${with_kerberos}" = no; then
2036 with_kerberos=yes
2037 cat >>confdefs.h <<\_ACEOF
2038 #define KERBEROS 1
2039 _ACEOF
2043 cat >>confdefs.h <<\_ACEOF
2044 #define KERBEROS5 1
2045 _ACEOF
2050 # Check whether --with-hesiod was given.
2051 if test "${with_hesiod+set}" = set; then
2052 withval=$with_hesiod;
2053 else
2054 with_hesiod=no
2057 if test "$with_hesiod" != no; then
2059 cat >>confdefs.h <<\_ACEOF
2060 #define HESIOD 1
2061 _ACEOF
2066 # Check whether --with-sound was given.
2067 if test "${with_sound+set}" = set; then
2068 withval=$with_sound;
2069 else
2070 with_sound=yes
2075 # Check whether --with-sync-input was given.
2076 if test "${with_sync_input+set}" = set; then
2077 withval=$with_sync_input;
2078 else
2079 with_sync_input=yes
2082 if test "$with_sync_input" = yes; then
2084 cat >>confdefs.h <<\_ACEOF
2085 #define SYNC_INPUT 1
2086 _ACEOF
2091 # Check whether --with-x-toolkit was given.
2092 if test "${with_x_toolkit+set}" = set; then
2093 withval=$with_x_toolkit; case "${withval}" in
2094 y | ye | yes ) val=gtk ;;
2095 n | no ) val=no ;;
2096 l | lu | luc | luci | lucid ) val=lucid ;;
2097 a | at | ath | athe | athen | athena ) val=athena ;;
2098 m | mo | mot | moti | motif ) val=motif ;;
2099 g | gt | gtk ) val=gtk ;;
2101 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2102 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2103 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2104 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2105 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2106 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2107 { (exit 1); exit 1; }; }
2109 esac
2110 with_x_toolkit=$val
2116 # Check whether --with-xpm was given.
2117 if test "${with_xpm+set}" = set; then
2118 withval=$with_xpm;
2119 else
2120 with_xpm=yes
2124 # Check whether --with-jpeg was given.
2125 if test "${with_jpeg+set}" = set; then
2126 withval=$with_jpeg;
2127 else
2128 with_jpeg=yes
2132 # Check whether --with-tiff was given.
2133 if test "${with_tiff+set}" = set; then
2134 withval=$with_tiff;
2135 else
2136 with_tiff=yes
2140 # Check whether --with-gif was given.
2141 if test "${with_gif+set}" = set; then
2142 withval=$with_gif;
2143 else
2144 with_gif=yes
2148 # Check whether --with-png was given.
2149 if test "${with_png+set}" = set; then
2150 withval=$with_png;
2151 else
2152 with_png=yes
2156 # Check whether --with-rsvg was given.
2157 if test "${with_rsvg+set}" = set; then
2158 withval=$with_rsvg;
2159 else
2160 with_rsvg=yes
2165 # Check whether --with-xft was given.
2166 if test "${with_xft+set}" = set; then
2167 withval=$with_xft;
2168 else
2169 with_xft=yes
2173 # Check whether --with-libotf was given.
2174 if test "${with_libotf+set}" = set; then
2175 withval=$with_libotf;
2176 else
2177 with_libotf=yes
2181 # Check whether --with-m17n-flt was given.
2182 if test "${with_m17n_flt+set}" = set; then
2183 withval=$with_m17n_flt;
2184 else
2185 with_m17n_flt=yes
2190 # Check whether --with-toolkit-scroll-bars was given.
2191 if test "${with_toolkit_scroll_bars+set}" = set; then
2192 withval=$with_toolkit_scroll_bars;
2193 else
2194 with_toolkit_scroll_bars=yes
2198 # Check whether --with-xaw3d was given.
2199 if test "${with_xaw3d+set}" = set; then
2200 withval=$with_xaw3d;
2201 else
2202 with_xaw3d=yes
2206 # Check whether --with-xim was given.
2207 if test "${with_xim+set}" = set; then
2208 withval=$with_xim;
2209 else
2210 with_xim=yes
2214 # Check whether --with-ns was given.
2215 if test "${with_ns+set}" = set; then
2216 withval=$with_ns;
2217 else
2218 with_ns=no
2223 # Check whether --with-gpm was given.
2224 if test "${with_gpm+set}" = set; then
2225 withval=$with_gpm;
2226 else
2227 with_gpm=yes
2231 # Check whether --with-dbus was given.
2232 if test "${with_dbus+set}" = set; then
2233 withval=$with_dbus;
2234 else
2235 with_dbus=yes
2239 ## For the times when you want to build Emacs but don't have
2240 ## a suitable makeinfo, and can live without the manuals.
2242 # Check whether --with-makeinfo was given.
2243 if test "${with_makeinfo+set}" = set; then
2244 withval=$with_makeinfo;
2245 else
2246 with_makeinfo=yes
2251 # Check whether --with-gtk was given.
2252 if test "${with_gtk+set}" = set; then
2253 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2254 specify a toolkit." >&5
2255 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2256 specify a toolkit." >&2;}
2257 { (exit 1); exit 1; }; }
2262 # Check whether --with-gcc was given.
2263 if test "${with_gcc+set}" = set; then
2264 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2265 variable to specify a compiler." >&5
2266 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2267 variable to specify a compiler." >&2;}
2268 { (exit 1); exit 1; }; }
2273 # Check whether --with-pkg-config-prog was given.
2274 if test "${with_pkg_config_prog+set}" = set; then
2275 withval=$with_pkg_config_prog;
2278 if test "X${with_pkg_config_prog}" != X; then
2279 if test "${with_pkg_config_prog}" != yes; then
2280 PKG_CONFIG="${with_pkg_config_prog}"
2285 # Check whether --with-gnustep-conf was given.
2286 if test "${with_gnustep_conf+set}" = set; then
2287 withval=$with_gnustep_conf;
2290 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2291 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2292 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2293 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2295 # Check whether --enable-ns-self-contained was given.
2296 if test "${enable_ns_self_contained+set}" = set; then
2297 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2298 else
2299 EN_NS_SELF_CONTAINED=yes
2303 # Check whether --enable-asserts was given.
2304 if test "${enable_asserts+set}" = set; then
2305 enableval=$enable_asserts; USE_XASSERTS=$enableval
2306 else
2307 USE_XASSERTS=no
2311 # Check whether --enable-maintainer-mode was given.
2312 if test "${enable_maintainer_mode+set}" = set; then
2313 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2314 else
2315 USE_MAINTAINER_MODE=no
2318 if test $USE_MAINTAINER_MODE = yes; then
2319 MAINT=
2320 else
2321 MAINT=#
2325 # Check whether --enable-locallisppath was given.
2326 if test "${enable_locallisppath+set}" = set; then
2327 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2328 locallisppath=
2329 elif test "${enableval}" != "yes"; then
2330 locallisppath=${enableval}
2335 # Check whether --enable-checking was given.
2336 if test "${enable_checking+set}" = set; then
2337 enableval=$enable_checking; ac_checking_flags="${enableval}"
2340 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2341 for check in $ac_checking_flags
2343 case $check in
2344 # these set all the flags to specific states
2345 yes) ac_enable_checking=1 ;;
2346 no) ac_enable_checking= ;
2347 ac_gc_check_stringbytes= ;
2348 ac_gc_check_string_overrun= ;
2349 ac_gc_check_string_free_list= ;
2350 ac_xmalloc_overrun= ;
2351 ac_gc_check_cons_list= ;;
2352 all) ac_enable_checking=1 ;
2353 ac_gc_check_stringbytes=1 ;
2354 ac_gc_check_string_overrun=1 ;
2355 ac_gc_check_string_free_list=1 ;
2356 ac_xmalloc_overrun=1 ;
2357 ac_gc_check_cons_list=1 ;;
2358 # these enable particular checks
2359 stringbytes) ac_gc_check_stringbytes=1 ;;
2360 stringoverrun) ac_gc_check_string_overrun=1 ;;
2361 stringfreelist) ac_gc_check_string_free_list=1 ;;
2362 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2363 conslist) ac_gc_check_cons_list=1 ;;
2364 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2365 $as_echo "$as_me: error: unknown check category $check" >&2;}
2366 { (exit 1); exit 1; }; } ;;
2367 esac
2368 done
2369 IFS="$ac_save_IFS"
2371 if test x$ac_enable_checking != x ; then
2373 cat >>confdefs.h <<\_ACEOF
2374 #define ENABLE_CHECKING 1
2375 _ACEOF
2378 if test x$ac_gc_check_stringbytes != x ; then
2380 cat >>confdefs.h <<\_ACEOF
2381 #define GC_CHECK_STRING_BYTES 1
2382 _ACEOF
2385 if test x$ac_gc_check_stringoverrun != x ; then
2387 cat >>confdefs.h <<\_ACEOF
2388 #define GC_CHECK_STRING_OVERRUN 1
2389 _ACEOF
2392 if test x$ac_gc_check_string_free_list != x ; then
2394 cat >>confdefs.h <<\_ACEOF
2395 #define GC_CHECK_STRING_FREE_LIST 1
2396 _ACEOF
2399 if test x$ac_xmalloc_overrun != x ; then
2401 cat >>confdefs.h <<\_ACEOF
2402 #define XMALLOC_OVERRUN_CHECK 1
2403 _ACEOF
2406 if test x$ac_gc_check_cons_list != x ; then
2408 cat >>confdefs.h <<\_ACEOF
2409 #define GC_CHECK_CONS_LIST 1
2410 _ACEOF
2414 # Check whether --enable-profiling was given.
2415 if test "${enable_profiling+set}" = set; then
2416 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2419 if test x$ac_enable_profiling != x ; then
2420 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2421 PROFILING_LDFLAGS="-pg"
2422 else
2423 PROFILING_CFLAGS=
2424 PROFILING_LDFLAGS=
2427 #### Make srcdir absolute, if it isn't already. It's important to
2428 #### avoid running the path through pwd unnecessarily, since pwd can
2429 #### give you automounter prefixes, which can go away. We do all this
2430 #### so Emacs can find its files when run uninstalled.
2431 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2432 unset CDPATH
2433 case "${srcdir}" in
2434 /* ) ;;
2436 ## We may be able to use the $PWD environment variable to make this
2437 ## absolute. But sometimes PWD is inaccurate.
2438 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2439 ## but that tested only for a well-formed and valid PWD,
2440 ## it did not object when PWD was well-formed and valid but just wrong.
2441 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2442 then
2443 srcdir="$PWD"
2444 else
2445 srcdir="`(cd ${srcdir}; pwd)`"
2448 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2449 esac
2451 #### Check if the source directory already has a configured system in it.
2452 if test `pwd` != `(cd ${srcdir} && pwd)` \
2453 && test -f "${srcdir}/src/config.h" ; then
2454 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2455 as a build directory right now; it has been configured in its own
2456 right. To configure in another directory as well, you MUST
2457 use GNU make. If you do not have GNU make, then you must
2458 now do \`make distclean' in ${srcdir},
2459 and then run $0 again." >&5
2460 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2461 as a build directory right now; it has been configured in its own
2462 right. To configure in another directory as well, you MUST
2463 use GNU make. If you do not have GNU make, then you must
2464 now do \`make distclean' in ${srcdir},
2465 and then run $0 again." >&2;}
2468 #### Given the configuration name, set machfile and opsysfile to the
2469 #### names of the m/*.h and s/*.h files we should use.
2471 ### Canonicalize the configuration name.
2473 ac_aux_dir=
2474 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2475 if test -f "$ac_dir/install-sh"; then
2476 ac_aux_dir=$ac_dir
2477 ac_install_sh="$ac_aux_dir/install-sh -c"
2478 break
2479 elif test -f "$ac_dir/install.sh"; then
2480 ac_aux_dir=$ac_dir
2481 ac_install_sh="$ac_aux_dir/install.sh -c"
2482 break
2483 elif test -f "$ac_dir/shtool"; then
2484 ac_aux_dir=$ac_dir
2485 ac_install_sh="$ac_aux_dir/shtool install -c"
2486 break
2488 done
2489 if test -z "$ac_aux_dir"; then
2490 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2491 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2492 { (exit 1); exit 1; }; }
2495 # These three variables are undocumented and unsupported,
2496 # and are intended to be withdrawn in a future Autoconf release.
2497 # They can cause serious problems if a builder's source tree is in a directory
2498 # whose full name contains unusual characters.
2499 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2500 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2501 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2504 # Make sure we can run config.sub.
2505 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2506 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2507 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2508 { (exit 1); exit 1; }; }
2510 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2511 $as_echo_n "checking build system type... " >&6; }
2512 if test "${ac_cv_build+set}" = set; then
2513 $as_echo_n "(cached) " >&6
2514 else
2515 ac_build_alias=$build_alias
2516 test "x$ac_build_alias" = x &&
2517 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2518 test "x$ac_build_alias" = x &&
2519 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2520 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2521 { (exit 1); exit 1; }; }
2522 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2523 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2524 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2525 { (exit 1); exit 1; }; }
2528 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2529 $as_echo "$ac_cv_build" >&6; }
2530 case $ac_cv_build in
2531 *-*-*) ;;
2532 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2533 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2534 { (exit 1); exit 1; }; };;
2535 esac
2536 build=$ac_cv_build
2537 ac_save_IFS=$IFS; IFS='-'
2538 set x $ac_cv_build
2539 shift
2540 build_cpu=$1
2541 build_vendor=$2
2542 shift; shift
2543 # Remember, the first character of IFS is used to create $*,
2544 # except with old shells:
2545 build_os=$*
2546 IFS=$ac_save_IFS
2547 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2550 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2551 $as_echo_n "checking host system type... " >&6; }
2552 if test "${ac_cv_host+set}" = set; then
2553 $as_echo_n "(cached) " >&6
2554 else
2555 if test "x$host_alias" = x; then
2556 ac_cv_host=$ac_cv_build
2557 else
2558 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2559 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2560 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2561 { (exit 1); exit 1; }; }
2565 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2566 $as_echo "$ac_cv_host" >&6; }
2567 case $ac_cv_host in
2568 *-*-*) ;;
2569 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2570 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2571 { (exit 1); exit 1; }; };;
2572 esac
2573 host=$ac_cv_host
2574 ac_save_IFS=$IFS; IFS='-'
2575 set x $ac_cv_host
2576 shift
2577 host_cpu=$1
2578 host_vendor=$2
2579 shift; shift
2580 # Remember, the first character of IFS is used to create $*,
2581 # except with old shells:
2582 host_os=$*
2583 IFS=$ac_save_IFS
2584 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2587 canonical=$host
2588 configuration=${host_alias-${build_alias-$host}}
2592 ### If you add support for a new configuration, add code to this
2593 ### switch statement to recognize your configuration name and select
2594 ### the appropriate operating system and machine description files.
2596 ### You would hope that you could choose an m/*.h file pretty much
2597 ### based on the machine portion of the configuration name, and an s-
2598 ### file based on the operating system portion. However, it turns out
2599 ### that each m/*.h file is pretty manufacturer-specific - for
2600 ### example mips.h is MIPS
2601 ### So we basically have to have a special case for each
2602 ### configuration name.
2604 ### As far as handling version numbers on operating systems is
2605 ### concerned, make sure things will fail in a fixable way. If
2606 ### /etc/MACHINES doesn't say anything about version numbers, be
2607 ### prepared to handle anything reasonably. If version numbers
2608 ### matter, be sure /etc/MACHINES says something about it.
2610 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2611 ### "System V Release 4"; he writes, "The old convention encouraged
2612 ### confusion between `system' and `release' levels'."
2614 machine='' opsys='' unported=no
2615 case "${canonical}" in
2617 ## FreeBSD ports
2618 *-*-freebsd* )
2619 opsys=freebsd
2620 case "${canonical}" in
2621 alpha*-*-freebsd*) machine=alpha ;;
2622 arm*-*-freebsd*) machine=arm ;;
2623 ia64-*-freebsd*) machine=ia64 ;;
2624 sparc-*-freebsd*) machine=sparc ;;
2625 sparc64-*-freebsd*) machine=sparc ;;
2626 powerpc-*-freebsd*) machine=macppc ;;
2627 i[3456]86-*-freebsd*) machine=intel386 ;;
2628 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2629 esac
2632 ## FreeBSD kernel + glibc based userland
2633 *-*-kfreebsd*gnu* )
2634 opsys=gnu-kfreebsd
2635 case "${canonical}" in
2636 alpha*-*-kfreebsd*) machine=alpha ;;
2637 ia64-*-kfreebsd*) machine=ia64 ;;
2638 sparc-*-kfreebsd*) machine=sparc ;;
2639 sparc64-*-kfreebsd*) machine=sparc ;;
2640 powerpc-*-kfreebsd*) machine=macppc ;;
2641 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2642 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2643 esac
2646 ## NetBSD ports
2647 *-*-netbsd* )
2648 opsys=netbsd
2649 if test -f /usr/lib/crti.o; then
2651 cat >>confdefs.h <<\_ACEOF
2652 #define HAVE_CRTIN /**/
2653 _ACEOF
2657 case "${canonical}" in
2658 alpha*-*-netbsd*) machine=alpha ;;
2659 i[3456]86-*-netbsd*) machine=intel386 ;;
2660 mips-*-netbsd*) machine=mips ;;
2661 mipsel-*-netbsd*) machine=mips ;;
2662 mipseb-*-netbsd*) machine=mips ;;
2663 powerpc-*-netbsd*) machine=macppc ;;
2664 sparc*-*-netbsd*) machine=sparc ;;
2665 vax-*-netbsd*) machine=vax ;;
2666 arm-*-netbsd*) machine=arm ;;
2667 x86_64-*-netbsd*) machine=amdx86-64 ;;
2668 hppa-*-netbsd*) machine=hp800 ;;
2669 m68k-*-netbsd*) machine=m68k ;;
2670 esac
2673 ## OpenBSD ports
2674 *-*-openbsd* )
2675 opsys=openbsd
2676 case "${canonical}" in
2677 alpha*-*-openbsd*) machine=alpha ;;
2678 arm-*-openbsd*) machine=arm ;;
2679 i386-*-openbsd*) machine=intel386 ;;
2680 powerpc-*-openbsd*) machine=macppc ;;
2681 sparc*-*-openbsd*) machine=sparc ;;
2682 vax-*-openbsd*) machine=vax ;;
2683 x86_64-*-openbsd*) machine=amdx86-64 ;;
2684 hppa-*-openbsd*) machine=hp800 ;;
2685 esac
2688 ## LynxOS ports
2689 *-*-lynxos* )
2690 opsys=lynxos
2691 case "${canonical}" in
2692 i[3456]86-*-lynxos*) machine=intel386 ;;
2693 powerpc-*-lynxos*) machine=powerpc ;;
2694 esac
2697 alpha*-*-linux-gnu* )
2698 machine=alpha opsys=gnu-linux
2701 arm*-*-linux-gnu* )
2702 machine=arm opsys=gnu-linux
2705 ## Apple Darwin / Mac OS X
2706 *-apple-darwin* )
2707 case "${canonical}" in
2708 i[3456]86-* ) machine=intel386 ;;
2709 powerpc-* ) machine=macppc ;;
2710 * ) unported=yes ;;
2711 esac
2712 opsys=darwin
2713 # Define CPP as follows to make autoconf work correctly.
2714 CPP="${CC-cc} -E -no-cpp-precomp"
2715 # Use fink packages if available.
2716 if test -d /sw/include && test -d /sw/lib; then
2717 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2718 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2719 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2723 ## HP 9000 series 700 and 800, running HP/UX
2724 hppa*-hp-hpux10.2* )
2725 machine=hp800 opsys=hpux10-20
2727 hppa*-hp-hpux1[1-9]* )
2728 machine=hp800 opsys=hpux11
2729 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2732 hppa*-*-linux-gnu* )
2733 machine=hp800 opsys=gnu-linux
2736 ## IBM machines
2737 s390-*-linux-gnu* )
2738 machine=ibms390 opsys=gnu-linux
2740 s390x-*-linux-gnu* )
2741 machine=ibms390x opsys=gnu-linux
2743 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2744 machine=ibmrs6000 opsys=aix4-2
2746 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2747 machine=ibmrs6000 opsys=aix4-2
2749 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2750 machine=ibmrs6000 opsys=aix4-2
2752 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2753 machine=ibmrs6000 opsys=aix4-2
2756 ## Macintosh PowerPC
2757 powerpc*-*-linux-gnu* )
2758 machine=macppc opsys=gnu-linux
2761 ## Silicon Graphics machines
2762 ## Iris 4D
2763 mips-sgi-irix6.5 )
2764 machine=iris4d opsys=irix6-5
2765 # Without defining _LANGUAGE_C, things get masked out in the headers
2766 # so that, for instance, grepping for `free' in stdlib.h fails and
2767 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2768 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2769 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2772 ## Suns
2773 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2774 machine=sparc opsys=gnu-linux
2777 *-sun-solaris* \
2778 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2779 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2780 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2781 case "${canonical}" in
2782 i[3456]86-*-* ) machine=intel386 ;;
2783 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2784 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2785 sparc* ) machine=sparc ;;
2786 * ) unported=yes ;;
2787 esac
2788 case "${canonical}" in
2789 *-sunos5.3* | *-solaris2.3* )
2790 opsys=sol2-3
2791 NON_GNU_CPP=/usr/ccs/lib/cpp
2793 *-sunos5.4* | *-solaris2.4* )
2794 opsys=sol2-4
2795 NON_GNU_CPP=/usr/ccs/lib/cpp
2796 RANLIB="ar -ts"
2798 *-sunos5.5* | *-solaris2.5* )
2799 opsys=sol2-5
2800 NON_GNU_CPP=/usr/ccs/lib/cpp
2801 RANLIB="ar -ts"
2803 *-sunos5.6* | *-solaris2.6* )
2804 opsys=sol2-6
2805 NON_GNU_CPP=/usr/ccs/lib/cpp
2806 RANLIB="ar -ts"
2808 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2809 opsys=sol2-6
2810 emacs_check_sunpro_c=yes
2811 NON_GNU_CPP=/usr/ccs/lib/cpp
2813 *-sunos5* | *-solaris* )
2814 opsys=sol2-10
2815 emacs_check_sunpro_c=yes
2816 NON_GNU_CPP=/usr/ccs/lib/cpp
2818 esac
2819 ## Watch out for a compiler that we know will not work.
2820 case "${canonical}" in
2821 *-solaris* | *-sunos5* )
2822 if [ "x$CC" = x/usr/ucb/cc ]; then
2823 ## /usr/ucb/cc doesn't work;
2824 ## we should find some other compiler that does work.
2825 unset CC
2828 *) ;;
2829 esac
2832 ## IA-64
2833 ia64*-*-linux* )
2834 machine=ia64 opsys=gnu-linux
2837 ## Intel 386 machines where we don't care about the manufacturer
2838 i[3456]86-*-* )
2839 machine=intel386
2840 case "${canonical}" in
2841 *-cygwin ) opsys=cygwin ;;
2842 *-darwin* ) opsys=darwin
2843 CPP="${CC-cc} -E -no-cpp-precomp"
2845 *-linux-gnu* ) opsys=gnu-linux ;;
2846 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2847 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2848 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2849 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2850 esac
2853 ## m68k Linux-based GNU system
2854 m68k-*-linux-gnu* )
2855 machine=m68k opsys=gnu-linux
2858 ## Mips Linux-based GNU system
2859 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2860 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2861 machine=mips opsys=gnu-linux
2864 ## AMD x86-64 Linux-based GNU system
2865 x86_64-*-linux-gnu* )
2866 machine=amdx86-64 opsys=gnu-linux
2869 ## Tensilica Xtensa Linux-based GNU system
2870 xtensa*-*-linux-gnu* )
2871 machine=xtensa opsys=gnu-linux
2874 ## SuperH Linux-based GNU system
2875 sh[34]*-*-linux-gnu* )
2876 machine=sh3 opsys=gnu-linux
2880 unported=yes
2882 esac
2884 ### If the code above didn't choose an operating system, just choose
2885 ### an operating system based on the configuration name. You really
2886 ### only want to use this when you have no idea what the right
2887 ### operating system is; if you know what operating systems a machine
2888 ### runs, it's cleaner to make it explicit in the case statement
2889 ### above.
2890 if test x"${opsys}" = x; then
2891 case "${canonical}" in
2892 *-gnu* ) opsys=gnu ;;
2893 *-sysv4.2uw* ) opsys=unixware ;;
2894 *-sysv5uw* ) opsys=unixware ;;
2895 *-sysv5OpenUNIX* ) opsys=unixware ;;
2896 *-sysv4.1* | *-sysvr4.1* )
2897 NON_GNU_CPP=/usr/lib/cpp
2898 opsys=usg5-4 ;;
2899 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2900 if [ x$NON_GNU_CPP = x ]; then
2901 if [ -f /usr/ccs/lib/cpp ]; then
2902 NON_GNU_CPP=/usr/ccs/lib/cpp
2903 else
2904 NON_GNU_CPP=/lib/cpp
2907 opsys=usg5-4-2 ;;
2908 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2910 unported=yes
2912 esac
2917 if test $unported = yes; then
2918 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2919 Check \`etc/MACHINES' for recognized configuration names." >&5
2920 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2921 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2922 { (exit 1); exit 1; }; }
2925 machfile="m/${machine}.h"
2926 opsysfile="s/${opsys}.h"
2929 #### Choose a compiler.
2930 test -n "$CC" && cc_specified=yes
2932 # Save the value of CFLAGS that the user specified.
2933 SPECIFIED_CFLAGS="$CFLAGS"
2935 ac_ext=c
2936 ac_cpp='$CPP $CPPFLAGS'
2937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2943 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if test "${ac_cv_prog_CC+set}" = set; then
2946 $as_echo_n "(cached) " >&6
2947 else
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2962 done
2963 done
2964 IFS=$as_save_IFS
2968 CC=$ac_cv_prog_CC
2969 if test -n "$CC"; then
2970 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2972 else
2973 { $as_echo "$as_me:$LINENO: result: no" >&5
2974 $as_echo "no" >&6; }
2979 if test -z "$ac_cv_prog_CC"; then
2980 ac_ct_CC=$CC
2981 # Extract the first word of "gcc", so it can be a program name with args.
2982 set dummy gcc; ac_word=$2
2983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2986 $as_echo_n "(cached) " >&6
2987 else
2988 if test -n "$ac_ct_CC"; then
2989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998 ac_cv_prog_ac_ct_CC="gcc"
2999 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3002 done
3003 done
3004 IFS=$as_save_IFS
3008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009 if test -n "$ac_ct_CC"; then
3010 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3011 $as_echo "$ac_ct_CC" >&6; }
3012 else
3013 { $as_echo "$as_me:$LINENO: result: no" >&5
3014 $as_echo "no" >&6; }
3017 if test "x$ac_ct_CC" = x; then
3018 CC=""
3019 else
3020 case $cross_compiling:$ac_tool_warned in
3021 yes:)
3022 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3023 whose name does not start with the host triplet. If you think this
3024 configuration is useful to you, please write to autoconf@gnu.org." >&5
3025 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3026 whose name does not start with the host triplet. If you think this
3027 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3028 ac_tool_warned=yes ;;
3029 esac
3030 CC=$ac_ct_CC
3032 else
3033 CC="$ac_cv_prog_CC"
3036 if test -z "$CC"; then
3037 if test -n "$ac_tool_prefix"; then
3038 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3039 set dummy ${ac_tool_prefix}cc; ac_word=$2
3040 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if test "${ac_cv_prog_CC+set}" = set; then
3043 $as_echo_n "(cached) " >&6
3044 else
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055 ac_cv_prog_CC="${ac_tool_prefix}cc"
3056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 break 2
3059 done
3060 done
3061 IFS=$as_save_IFS
3065 CC=$ac_cv_prog_CC
3066 if test -n "$CC"; then
3067 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3069 else
3070 { $as_echo "$as_me:$LINENO: result: no" >&5
3071 $as_echo "no" >&6; }
3077 if test -z "$CC"; then
3078 # Extract the first word of "cc", so it can be a program name with args.
3079 set dummy cc; ac_word=$2
3080 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if test "${ac_cv_prog_CC+set}" = set; then
3083 $as_echo_n "(cached) " >&6
3084 else
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 else
3088 ac_prog_rejected=no
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3097 ac_prog_rejected=yes
3098 continue
3100 ac_cv_prog_CC="cc"
3101 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3104 done
3105 done
3106 IFS=$as_save_IFS
3108 if test $ac_prog_rejected = yes; then
3109 # We found a bogon in the path, so make sure we never use it.
3110 set dummy $ac_cv_prog_CC
3111 shift
3112 if test $# != 0; then
3113 # We chose a different compiler from the bogus one.
3114 # However, it has the same basename, so the bogon will be chosen
3115 # first if we set CC to just the basename; use the full file name.
3116 shift
3117 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127 { $as_echo "$as_me:$LINENO: result: no" >&5
3128 $as_echo "no" >&6; }
3133 if test -z "$CC"; then
3134 if test -n "$ac_tool_prefix"; then
3135 for ac_prog in cl.exe
3137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3158 done
3159 done
3160 IFS=$as_save_IFS
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169 { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$CC" && break
3175 done
3177 if test -z "$CC"; then
3178 ac_ct_CC=$CC
3179 for ac_prog in cl.exe
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3186 $as_echo_n "(cached) " >&6
3187 else
3188 if test -n "$ac_ct_CC"; then
3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 ac_cv_prog_ac_ct_CC="$ac_prog"
3199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3202 done
3203 done
3204 IFS=$as_save_IFS
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3212 else
3213 { $as_echo "$as_me:$LINENO: result: no" >&5
3214 $as_echo "no" >&6; }
3218 test -n "$ac_ct_CC" && break
3219 done
3221 if test "x$ac_ct_CC" = x; then
3222 CC=""
3223 else
3224 case $cross_compiling:$ac_tool_warned in
3225 yes:)
3226 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3227 whose name does not start with the host triplet. If you think this
3228 configuration is useful to you, please write to autoconf@gnu.org." >&5
3229 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3230 whose name does not start with the host triplet. If you think this
3231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3232 ac_tool_warned=yes ;;
3233 esac
3234 CC=$ac_ct_CC
3241 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3242 See \`config.log' for more details." >&5
3243 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3244 See \`config.log' for more details." >&2;}
3245 { (exit 1); exit 1; }; }
3247 # Provide some information about the compiler.
3248 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3249 set X $ac_compile
3250 ac_compiler=$2
3251 { (ac_try="$ac_compiler --version >&5"
3252 case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3257 $as_echo "$ac_try_echo") >&5
3258 (eval "$ac_compiler --version >&5") 2>&5
3259 ac_status=$?
3260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }
3262 { (ac_try="$ac_compiler -v >&5"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3268 $as_echo "$ac_try_echo") >&5
3269 (eval "$ac_compiler -v >&5") 2>&5
3270 ac_status=$?
3271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }
3273 { (ac_try="$ac_compiler -V >&5"
3274 case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3279 $as_echo "$ac_try_echo") >&5
3280 (eval "$ac_compiler -V >&5") 2>&5
3281 ac_status=$?
3282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }
3285 cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h. */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3293 main ()
3297 return 0;
3299 _ACEOF
3300 ac_clean_files_save=$ac_clean_files
3301 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3302 # Try to create an executable without -o first, disregard a.out.
3303 # It will help us diagnose broken compilers, and finding out an intuition
3304 # of exeext.
3305 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3306 $as_echo_n "checking for C compiler default output file name... " >&6; }
3307 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3309 # The possible output files:
3310 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3312 ac_rmfiles=
3313 for ac_file in $ac_files
3315 case $ac_file in
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318 esac
3319 done
3320 rm -f $ac_rmfiles
3322 if { (ac_try="$ac_link_default"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3328 $as_echo "$ac_try_echo") >&5
3329 (eval "$ac_link_default") 2>&5
3330 ac_status=$?
3331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; then
3333 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3334 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3335 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3336 # so that the user can short-circuit this test for compilers unknown to
3337 # Autoconf.
3338 for ac_file in $ac_files ''
3340 test -f "$ac_file" || continue
3341 case $ac_file in
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3344 [ab].out )
3345 # We found the default executable, but exeext='' is most
3346 # certainly right.
3347 break;;
3348 *.* )
3349 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3350 then :; else
3351 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 # We set ac_cv_exeext here because the later test for it is not
3354 # safe: cross compilers may not add the suffix if given an `-o'
3355 # argument, so we may need to know it at that point already.
3356 # Even if this section looks crufty: it has the advantage of
3357 # actually working.
3358 break;;
3360 break;;
3361 esac
3362 done
3363 test "$ac_cv_exeext" = no && ac_cv_exeext=
3365 else
3366 ac_file=''
3369 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3370 $as_echo "$ac_file" >&6; }
3371 if test -z "$ac_file"; then
3372 $as_echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3376 See \`config.log' for more details." >&5
3377 $as_echo "$as_me: error: C compiler cannot create executables
3378 See \`config.log' for more details." >&2;}
3379 { (exit 77); exit 77; }; }
3382 ac_exeext=$ac_cv_exeext
3384 # Check that the compiler produces executables we can run. If not, either
3385 # the compiler is broken, or we cross compile.
3386 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3387 $as_echo_n "checking whether the C compiler works... " >&6; }
3388 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3389 # If not cross compiling, check that we can run a simple program.
3390 if test "$cross_compiling" != yes; then
3391 if { ac_try='./$ac_file'
3392 { (case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3397 $as_echo "$ac_try_echo") >&5
3398 (eval "$ac_try") 2>&5
3399 ac_status=$?
3400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; }; then
3402 cross_compiling=no
3403 else
3404 if test "$cross_compiling" = maybe; then
3405 cross_compiling=yes
3406 else
3407 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details." >&5
3410 $as_echo "$as_me: error: cannot run C compiled programs.
3411 If you meant to cross compile, use \`--host'.
3412 See \`config.log' for more details." >&2;}
3413 { (exit 1); exit 1; }; }
3417 { $as_echo "$as_me:$LINENO: result: yes" >&5
3418 $as_echo "yes" >&6; }
3420 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3421 ac_clean_files=$ac_clean_files_save
3422 # Check that the compiler produces executables we can run. If not, either
3423 # the compiler is broken, or we cross compile.
3424 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3425 $as_echo_n "checking whether we are cross compiling... " >&6; }
3426 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3427 $as_echo "$cross_compiling" >&6; }
3429 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3430 $as_echo_n "checking for suffix of executables... " >&6; }
3431 if { (ac_try="$ac_link"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3437 $as_echo "$ac_try_echo") >&5
3438 (eval "$ac_link") 2>&5
3439 ac_status=$?
3440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; then
3442 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3443 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3444 # work properly (i.e., refer to `conftest.exe'), while it won't with
3445 # `rm'.
3446 for ac_file in conftest.exe conftest conftest.*; do
3447 test -f "$ac_file" || continue
3448 case $ac_file in
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451 break;;
3452 * ) break;;
3453 esac
3454 done
3455 else
3456 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3457 See \`config.log' for more details." >&5
3458 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3459 See \`config.log' for more details." >&2;}
3460 { (exit 1); exit 1; }; }
3463 rm -f conftest$ac_cv_exeext
3464 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3465 $as_echo "$ac_cv_exeext" >&6; }
3467 rm -f conftest.$ac_ext
3468 EXEEXT=$ac_cv_exeext
3469 ac_exeext=$EXEEXT
3470 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3471 $as_echo_n "checking for suffix of object files... " >&6; }
3472 if test "${ac_cv_objext+set}" = set; then
3473 $as_echo_n "(cached) " >&6
3474 else
3475 cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h. */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3483 main ()
3487 return 0;
3489 _ACEOF
3490 rm -f conftest.o conftest.obj
3491 if { (ac_try="$ac_compile"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3497 $as_echo "$ac_try_echo") >&5
3498 (eval "$ac_compile") 2>&5
3499 ac_status=$?
3500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; then
3502 for ac_file in conftest.o conftest.obj conftest.*; do
3503 test -f "$ac_file" || continue;
3504 case $ac_file in
3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3506 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3507 break;;
3508 esac
3509 done
3510 else
3511 $as_echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3514 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3515 See \`config.log' for more details." >&5
3516 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3517 See \`config.log' for more details." >&2;}
3518 { (exit 1); exit 1; }; }
3521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3523 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3524 $as_echo "$ac_cv_objext" >&6; }
3525 OBJEXT=$ac_cv_objext
3526 ac_objext=$OBJEXT
3527 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3530 $as_echo_n "(cached) " >&6
3531 else
3532 cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h. */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3540 main ()
3542 #ifndef __GNUC__
3543 choke me
3544 #endif
3547 return 0;
3549 _ACEOF
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3552 case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557 $as_echo "$ac_try_echo") >&5
3558 (eval "$ac_compile") 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } && {
3565 test -z "$ac_c_werror_flag" ||
3566 test ! -s conftest.err
3567 } && test -s conftest.$ac_objext; then
3568 ac_compiler_gnu=yes
3569 else
3570 $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 ac_compiler_gnu=no
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3580 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3582 if test $ac_compiler_gnu = yes; then
3583 GCC=yes
3584 else
3585 GCC=
3587 ac_test_CFLAGS=${CFLAGS+set}
3588 ac_save_CFLAGS=$CFLAGS
3589 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3590 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3591 if test "${ac_cv_prog_cc_g+set}" = set; then
3592 $as_echo_n "(cached) " >&6
3593 else
3594 ac_save_c_werror_flag=$ac_c_werror_flag
3595 ac_c_werror_flag=yes
3596 ac_cv_prog_cc_g=no
3597 CFLAGS="-g"
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h. */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3606 main ()
3610 return 0;
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3631 ac_cv_prog_cc_g=yes
3632 else
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 CFLAGS=""
3637 cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3645 main ()
3649 return 0;
3651 _ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (ac_try="$ac_compile"
3654 case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest.$ac_objext; then
3671 else
3672 $as_echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 ac_c_werror_flag=$ac_save_c_werror_flag
3676 CFLAGS="-g"
3677 cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h. */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3685 main ()
3689 return 0;
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3694 case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699 $as_echo "$ac_try_echo") >&5
3700 (eval "$ac_compile") 2>conftest.er1
3701 ac_status=$?
3702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
3705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } && {
3707 test -z "$ac_c_werror_flag" ||
3708 test ! -s conftest.err
3709 } && test -s conftest.$ac_objext; then
3710 ac_cv_prog_cc_g=yes
3711 else
3712 $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_c_werror_flag=$ac_save_c_werror_flag
3727 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3728 $as_echo "$ac_cv_prog_cc_g" >&6; }
3729 if test "$ac_test_CFLAGS" = set; then
3730 CFLAGS=$ac_save_CFLAGS
3731 elif test $ac_cv_prog_cc_g = yes; then
3732 if test "$GCC" = yes; then
3733 CFLAGS="-g -O2"
3734 else
3735 CFLAGS="-g"
3737 else
3738 if test "$GCC" = yes; then
3739 CFLAGS="-O2"
3740 else
3741 CFLAGS=
3744 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3746 if test "${ac_cv_prog_cc_c89+set}" = set; then
3747 $as_echo_n "(cached) " >&6
3748 else
3749 ac_cv_prog_cc_c89=no
3750 ac_save_CC=$CC
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h. */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 #include <stdarg.h>
3758 #include <stdio.h>
3759 #include <sys/types.h>
3760 #include <sys/stat.h>
3761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3762 struct buf { int x; };
3763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764 static char *e (p, i)
3765 char **p;
3766 int i;
3768 return p[i];
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3772 char *s;
3773 va_list v;
3774 va_start (v,p);
3775 s = g (p, va_arg (v,int));
3776 va_end (v);
3777 return s;
3780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3781 function prototypes and stuff, but not '\xHH' hex character constants.
3782 These don't provoke an error unfortunately, instead are silently treated
3783 as 'x'. The following induces an error, until -std is added to get
3784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3785 array size at least. It's necessary to write '\x00'==0 to get something
3786 that's true only with -std. */
3787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790 inside strings and character constants. */
3791 #define FOO(x) 'x'
3792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3798 int argc;
3799 char **argv;
3801 main ()
3803 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3805 return 0;
3807 _ACEOF
3808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3811 CC="$ac_save_CC $ac_arg"
3812 rm -f conftest.$ac_objext
3813 if { (ac_try="$ac_compile"
3814 case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3819 $as_echo "$ac_try_echo") >&5
3820 (eval "$ac_compile") 2>conftest.er1
3821 ac_status=$?
3822 grep -v '^ *+' conftest.er1 >conftest.err
3823 rm -f conftest.er1
3824 cat conftest.err >&5
3825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } && {
3827 test -z "$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3829 } && test -s conftest.$ac_objext; then
3830 ac_cv_prog_cc_c89=$ac_arg
3831 else
3832 $as_echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3838 rm -f core conftest.err conftest.$ac_objext
3839 test "x$ac_cv_prog_cc_c89" != "xno" && break
3840 done
3841 rm -f conftest.$ac_ext
3842 CC=$ac_save_CC
3845 # AC_CACHE_VAL
3846 case "x$ac_cv_prog_cc_c89" in
3848 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3849 $as_echo "none needed" >&6; } ;;
3850 xno)
3851 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3852 $as_echo "unsupported" >&6; } ;;
3854 CC="$CC $ac_cv_prog_cc_c89"
3855 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3857 esac
3860 ac_ext=c
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 # On Suns, sometimes $CPP names a directory.
3868 if test -n "$CPP" && test -d "$CPP"; then
3869 CPP=
3872 ## If not using gcc, and on Solaris, and no CPP specified, see if
3873 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3874 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3875 test x"$CPP" = x; then
3876 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3877 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3879 if test "${emacs_cv_sunpro_c+set}" = set; then
3880 $as_echo_n "(cached) " >&6
3881 else
3882 cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h. */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3890 main ()
3892 #ifndef __SUNPRO_C
3893 fail;
3894 #endif
3897 return 0;
3899 _ACEOF
3900 rm -f conftest.$ac_objext conftest$ac_exeext
3901 if { (ac_try="$ac_link"
3902 case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3907 $as_echo "$ac_try_echo") >&5
3908 (eval "$ac_link") 2>conftest.er1
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } && {
3915 test -z "$ac_c_werror_flag" ||
3916 test ! -s conftest.err
3917 } && test -s conftest$ac_exeext && {
3918 test "$cross_compiling" = yes ||
3919 $as_test_x conftest$ac_exeext
3920 }; then
3921 emacs_cv_sunpro_c=yes
3922 else
3923 $as_echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 emacs_cv_sunpro_c=no
3929 rm -rf conftest.dSYM
3930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3931 conftest$ac_exeext conftest.$ac_ext
3934 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3935 $as_echo "$emacs_cv_sunpro_c" >&6; }
3937 if test x"$emacs_cv_sunpro_c" = xyes; then
3938 NON_GNU_CPP="$CC -E -Xs"
3942 #### Some systems specify a CPP to use unless we are using GCC.
3943 #### Now that we know whether we are using GCC, we can decide whether
3944 #### to use that one.
3945 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3946 then
3947 CPP="$NON_GNU_CPP"
3950 #### Some systems specify a CC to use unless we are using GCC.
3951 #### Now that we know whether we are using GCC, we can decide whether
3952 #### to use that one.
3953 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3954 test x$cc_specified != xyes
3955 then
3956 CC="$NON_GNU_CC"
3959 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3960 then
3961 CC="$CC $GCC_TEST_OPTIONS"
3964 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3965 then
3966 CC="$CC $NON_GCC_TEST_OPTIONS"
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3975 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3976 # On Suns, sometimes $CPP names a directory.
3977 if test -n "$CPP" && test -d "$CPP"; then
3978 CPP=
3980 if test -z "$CPP"; then
3981 if test "${ac_cv_prog_CPP+set}" = set; then
3982 $as_echo_n "(cached) " >&6
3983 else
3984 # Double quotes because CPP needs to be expanded
3985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3987 ac_preproc_ok=false
3988 for ac_c_preproc_warn_flag in '' yes
3990 # Use a header file that comes with gcc, so configuring glibc
3991 # with a fresh cross-compiler works.
3992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3993 # <limits.h> exists even on freestanding compilers.
3994 # On the NeXT, cc -E runs the code through the compiler's parser,
3995 # not just through cpp. "Syntax error" is here to catch this case.
3996 cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h. */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4002 #ifdef __STDC__
4003 # include <limits.h>
4004 #else
4005 # include <assert.h>
4006 #endif
4007 Syntax error
4008 _ACEOF
4009 if { (ac_try="$ac_cpp conftest.$ac_ext"
4010 case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4015 $as_echo "$ac_try_echo") >&5
4016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4017 ac_status=$?
4018 grep -v '^ *+' conftest.er1 >conftest.err
4019 rm -f conftest.er1
4020 cat conftest.err >&5
4021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } >/dev/null && {
4023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4024 test ! -s conftest.err
4025 }; then
4027 else
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 # Broken: fails on valid input.
4032 continue
4035 rm -f conftest.err conftest.$ac_ext
4037 # OK, works on sane cases. Now check whether nonexistent headers
4038 # can be detected and how.
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h. */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 #include <ac_nonexistent.h>
4046 _ACEOF
4047 if { (ac_try="$ac_cpp conftest.$ac_ext"
4048 case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4051 esac
4052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4053 $as_echo "$ac_try_echo") >&5
4054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4055 ac_status=$?
4056 grep -v '^ *+' conftest.er1 >conftest.err
4057 rm -f conftest.er1
4058 cat conftest.err >&5
4059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } >/dev/null && {
4061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4062 test ! -s conftest.err
4063 }; then
4064 # Broken: success on invalid input.
4065 continue
4066 else
4067 $as_echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 # Passes both tests.
4071 ac_preproc_ok=:
4072 break
4075 rm -f conftest.err conftest.$ac_ext
4077 done
4078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079 rm -f conftest.err conftest.$ac_ext
4080 if $ac_preproc_ok; then
4081 break
4084 done
4085 ac_cv_prog_CPP=$CPP
4088 CPP=$ac_cv_prog_CPP
4089 else
4090 ac_cv_prog_CPP=$CPP
4092 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4093 $as_echo "$CPP" >&6; }
4094 ac_preproc_ok=false
4095 for ac_c_preproc_warn_flag in '' yes
4097 # Use a header file that comes with gcc, so configuring glibc
4098 # with a fresh cross-compiler works.
4099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100 # <limits.h> exists even on freestanding compilers.
4101 # On the NeXT, cc -E runs the code through the compiler's parser,
4102 # not just through cpp. "Syntax error" is here to catch this case.
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h. */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #ifdef __STDC__
4110 # include <limits.h>
4111 #else
4112 # include <assert.h>
4113 #endif
4114 Syntax error
4115 _ACEOF
4116 if { (ac_try="$ac_cpp conftest.$ac_ext"
4117 case "(($ac_try" in
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4120 esac
4121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4122 $as_echo "$ac_try_echo") >&5
4123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } >/dev/null && {
4130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4131 test ! -s conftest.err
4132 }; then
4134 else
4135 $as_echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4138 # Broken: fails on valid input.
4139 continue
4142 rm -f conftest.err conftest.$ac_ext
4144 # OK, works on sane cases. Now check whether nonexistent headers
4145 # can be detected and how.
4146 cat >conftest.$ac_ext <<_ACEOF
4147 /* confdefs.h. */
4148 _ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4152 #include <ac_nonexistent.h>
4153 _ACEOF
4154 if { (ac_try="$ac_cpp conftest.$ac_ext"
4155 case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158 esac
4159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4160 $as_echo "$ac_try_echo") >&5
4161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } >/dev/null && {
4168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4169 test ! -s conftest.err
4170 }; then
4171 # Broken: success on invalid input.
4172 continue
4173 else
4174 $as_echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4177 # Passes both tests.
4178 ac_preproc_ok=:
4179 break
4182 rm -f conftest.err conftest.$ac_ext
4184 done
4185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4186 rm -f conftest.err conftest.$ac_ext
4187 if $ac_preproc_ok; then
4189 else
4190 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4191 See \`config.log' for more details." >&5
4192 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4193 See \`config.log' for more details." >&2;}
4194 { (exit 1); exit 1; }; }
4197 ac_ext=c
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4205 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4206 if test "${ac_cv_path_GREP+set}" = set; then
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -z "$GREP"; then
4210 ac_path_GREP_found=false
4211 # Loop through the user's path and test for each of PROGNAME-LIST
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_prog in grep ggrep; do
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4220 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4221 # Check for GNU ac_path_GREP and select it if it is found.
4222 # Check for GNU $ac_path_GREP
4223 case `"$ac_path_GREP" --version 2>&1` in
4224 *GNU*)
4225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4227 ac_count=0
4228 $as_echo_n 0123456789 >"conftest.in"
4229 while :
4231 cat "conftest.in" "conftest.in" >"conftest.tmp"
4232 mv "conftest.tmp" "conftest.in"
4233 cp "conftest.in" "conftest.nl"
4234 $as_echo 'GREP' >> "conftest.nl"
4235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4237 ac_count=`expr $ac_count + 1`
4238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4239 # Best one so far, save it but keep looking for a better one
4240 ac_cv_path_GREP="$ac_path_GREP"
4241 ac_path_GREP_max=$ac_count
4243 # 10*(2^10) chars as input seems more than enough
4244 test $ac_count -gt 10 && break
4245 done
4246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4247 esac
4249 $ac_path_GREP_found && break 3
4250 done
4251 done
4252 done
4253 IFS=$as_save_IFS
4254 if test -z "$ac_cv_path_GREP"; then
4255 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4256 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4257 { (exit 1); exit 1; }; }
4259 else
4260 ac_cv_path_GREP=$GREP
4264 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4265 $as_echo "$ac_cv_path_GREP" >&6; }
4266 GREP="$ac_cv_path_GREP"
4269 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4270 $as_echo_n "checking for egrep... " >&6; }
4271 if test "${ac_cv_path_EGREP+set}" = set; then
4272 $as_echo_n "(cached) " >&6
4273 else
4274 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4275 then ac_cv_path_EGREP="$GREP -E"
4276 else
4277 if test -z "$EGREP"; then
4278 ac_path_EGREP_found=false
4279 # Loop through the user's path and test for each of PROGNAME-LIST
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_prog in egrep; do
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4288 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4289 # Check for GNU ac_path_EGREP and select it if it is found.
4290 # Check for GNU $ac_path_EGREP
4291 case `"$ac_path_EGREP" --version 2>&1` in
4292 *GNU*)
4293 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4295 ac_count=0
4296 $as_echo_n 0123456789 >"conftest.in"
4297 while :
4299 cat "conftest.in" "conftest.in" >"conftest.tmp"
4300 mv "conftest.tmp" "conftest.in"
4301 cp "conftest.in" "conftest.nl"
4302 $as_echo 'EGREP' >> "conftest.nl"
4303 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4305 ac_count=`expr $ac_count + 1`
4306 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4307 # Best one so far, save it but keep looking for a better one
4308 ac_cv_path_EGREP="$ac_path_EGREP"
4309 ac_path_EGREP_max=$ac_count
4311 # 10*(2^10) chars as input seems more than enough
4312 test $ac_count -gt 10 && break
4313 done
4314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4315 esac
4317 $ac_path_EGREP_found && break 3
4318 done
4319 done
4320 done
4321 IFS=$as_save_IFS
4322 if test -z "$ac_cv_path_EGREP"; then
4323 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4324 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4325 { (exit 1); exit 1; }; }
4327 else
4328 ac_cv_path_EGREP=$EGREP
4333 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4334 $as_echo "$ac_cv_path_EGREP" >&6; }
4335 EGREP="$ac_cv_path_EGREP"
4338 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4339 $as_echo_n "checking for ANSI C header files... " >&6; }
4340 if test "${ac_cv_header_stdc+set}" = set; then
4341 $as_echo_n "(cached) " >&6
4342 else
4343 cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h. */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 #include <stdlib.h>
4350 #include <stdarg.h>
4351 #include <string.h>
4352 #include <float.h>
4355 main ()
4359 return 0;
4361 _ACEOF
4362 rm -f conftest.$ac_objext
4363 if { (ac_try="$ac_compile"
4364 case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367 esac
4368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4369 $as_echo "$ac_try_echo") >&5
4370 (eval "$ac_compile") 2>conftest.er1
4371 ac_status=$?
4372 grep -v '^ *+' conftest.er1 >conftest.err
4373 rm -f conftest.er1
4374 cat conftest.err >&5
4375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } && {
4377 test -z "$ac_c_werror_flag" ||
4378 test ! -s conftest.err
4379 } && test -s conftest.$ac_objext; then
4380 ac_cv_header_stdc=yes
4381 else
4382 $as_echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 ac_cv_header_stdc=no
4388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 if test $ac_cv_header_stdc = yes; then
4391 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4392 cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h. */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 #include <string.h>
4400 _ACEOF
4401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4402 $EGREP "memchr" >/dev/null 2>&1; then
4404 else
4405 ac_cv_header_stdc=no
4407 rm -f conftest*
4411 if test $ac_cv_header_stdc = yes; then
4412 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4413 cat >conftest.$ac_ext <<_ACEOF
4414 /* confdefs.h. */
4415 _ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4419 #include <stdlib.h>
4421 _ACEOF
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 $EGREP "free" >/dev/null 2>&1; then
4425 else
4426 ac_cv_header_stdc=no
4428 rm -f conftest*
4432 if test $ac_cv_header_stdc = yes; then
4433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4434 if test "$cross_compiling" = yes; then
4436 else
4437 cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 #include <ctype.h>
4444 #include <stdlib.h>
4445 #if ((' ' & 0x0FF) == 0x020)
4446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4448 #else
4449 # define ISLOWER(c) \
4450 (('a' <= (c) && (c) <= 'i') \
4451 || ('j' <= (c) && (c) <= 'r') \
4452 || ('s' <= (c) && (c) <= 'z'))
4453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4454 #endif
4456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4458 main ()
4460 int i;
4461 for (i = 0; i < 256; i++)
4462 if (XOR (islower (i), ISLOWER (i))
4463 || toupper (i) != TOUPPER (i))
4464 return 2;
4465 return 0;
4467 _ACEOF
4468 rm -f conftest$ac_exeext
4469 if { (ac_try="$ac_link"
4470 case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473 esac
4474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4475 $as_echo "$ac_try_echo") >&5
4476 (eval "$ac_link") 2>&5
4477 ac_status=$?
4478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4480 { (case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483 esac
4484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4485 $as_echo "$ac_try_echo") >&5
4486 (eval "$ac_try") 2>&5
4487 ac_status=$?
4488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4491 else
4492 $as_echo "$as_me: program exited with status $ac_status" >&5
4493 $as_echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4496 ( exit $ac_status )
4497 ac_cv_header_stdc=no
4499 rm -rf conftest.dSYM
4500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4506 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4507 $as_echo "$ac_cv_header_stdc" >&6; }
4508 if test $ac_cv_header_stdc = yes; then
4510 cat >>confdefs.h <<\_ACEOF
4511 #define STDC_HEADERS 1
4512 _ACEOF
4516 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4526 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4527 inttypes.h stdint.h unistd.h
4529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4531 $as_echo_n "checking for $ac_header... " >&6; }
4532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4533 $as_echo_n "(cached) " >&6
4534 else
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h. */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 $ac_includes_default
4543 #include <$ac_header>
4544 _ACEOF
4545 rm -f conftest.$ac_objext
4546 if { (ac_try="$ac_compile"
4547 case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550 esac
4551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4552 $as_echo "$ac_try_echo") >&5
4553 (eval "$ac_compile") 2>conftest.er1
4554 ac_status=$?
4555 grep -v '^ *+' conftest.er1 >conftest.err
4556 rm -f conftest.er1
4557 cat conftest.err >&5
4558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } && {
4560 test -z "$ac_c_werror_flag" ||
4561 test ! -s conftest.err
4562 } && test -s conftest.$ac_objext; then
4563 eval "$as_ac_Header=yes"
4564 else
4565 $as_echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 eval "$as_ac_Header=no"
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 ac_res=`eval 'as_val=${'$as_ac_Header'}
4574 $as_echo "$as_val"'`
4575 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4576 $as_echo "$ac_res" >&6; }
4577 if test `eval 'as_val=${'$as_ac_Header'}
4578 $as_echo "$as_val"'` = yes; then
4579 cat >>confdefs.h <<_ACEOF
4580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4581 _ACEOF
4585 done
4589 if test "${ac_cv_header_minix_config_h+set}" = set; then
4590 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4591 $as_echo_n "checking for minix/config.h... " >&6; }
4592 if test "${ac_cv_header_minix_config_h+set}" = set; then
4593 $as_echo_n "(cached) " >&6
4595 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4596 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4597 else
4598 # Is the header compilable?
4599 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4600 $as_echo_n "checking minix/config.h usability... " >&6; }
4601 cat >conftest.$ac_ext <<_ACEOF
4602 /* confdefs.h. */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 $ac_includes_default
4608 #include <minix/config.h>
4609 _ACEOF
4610 rm -f conftest.$ac_objext
4611 if { (ac_try="$ac_compile"
4612 case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615 esac
4616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4617 $as_echo "$ac_try_echo") >&5
4618 (eval "$ac_compile") 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } && {
4625 test -z "$ac_c_werror_flag" ||
4626 test ! -s conftest.err
4627 } && test -s conftest.$ac_objext; then
4628 ac_header_compiler=yes
4629 else
4630 $as_echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4633 ac_header_compiler=no
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4638 $as_echo "$ac_header_compiler" >&6; }
4640 # Is the header present?
4641 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4642 $as_echo_n "checking minix/config.h presence... " >&6; }
4643 cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h. */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 #include <minix/config.h>
4650 _ACEOF
4651 if { (ac_try="$ac_cpp conftest.$ac_ext"
4652 case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655 esac
4656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4657 $as_echo "$ac_try_echo") >&5
4658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4659 ac_status=$?
4660 grep -v '^ *+' conftest.er1 >conftest.err
4661 rm -f conftest.er1
4662 cat conftest.err >&5
4663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } >/dev/null && {
4665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4666 test ! -s conftest.err
4667 }; then
4668 ac_header_preproc=yes
4669 else
4670 $as_echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 ac_header_preproc=no
4676 rm -f conftest.err conftest.$ac_ext
4677 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4678 $as_echo "$ac_header_preproc" >&6; }
4680 # So? What about this header?
4681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4682 yes:no: )
4683 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4684 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4685 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4686 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4687 ac_header_preproc=yes
4689 no:yes:* )
4690 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4691 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4692 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4693 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4694 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4695 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4696 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4697 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4698 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4699 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4700 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4701 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4704 esac
4705 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4706 $as_echo_n "checking for minix/config.h... " >&6; }
4707 if test "${ac_cv_header_minix_config_h+set}" = set; then
4708 $as_echo_n "(cached) " >&6
4709 else
4710 ac_cv_header_minix_config_h=$ac_header_preproc
4712 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4713 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4716 if test $ac_cv_header_minix_config_h = yes; then
4717 MINIX=yes
4718 else
4719 MINIX=
4723 if test "$MINIX" = yes; then
4725 cat >>confdefs.h <<\_ACEOF
4726 #define _POSIX_SOURCE 1
4727 _ACEOF
4730 cat >>confdefs.h <<\_ACEOF
4731 #define _POSIX_1_SOURCE 2
4732 _ACEOF
4735 cat >>confdefs.h <<\_ACEOF
4736 #define _MINIX 1
4737 _ACEOF
4743 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4744 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4745 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4746 $as_echo_n "(cached) " >&6
4747 else
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h. */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4755 # define __EXTENSIONS__ 1
4756 $ac_includes_default
4758 main ()
4762 return 0;
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (ac_try="$ac_compile"
4767 case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770 esac
4771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4772 $as_echo "$ac_try_echo") >&5
4773 (eval "$ac_compile") 2>conftest.er1
4774 ac_status=$?
4775 grep -v '^ *+' conftest.er1 >conftest.err
4776 rm -f conftest.er1
4777 cat conftest.err >&5
4778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } && {
4780 test -z "$ac_c_werror_flag" ||
4781 test ! -s conftest.err
4782 } && test -s conftest.$ac_objext; then
4783 ac_cv_safe_to_define___extensions__=yes
4784 else
4785 $as_echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4788 ac_cv_safe_to_define___extensions__=no
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4794 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4795 test $ac_cv_safe_to_define___extensions__ = yes &&
4796 cat >>confdefs.h <<\_ACEOF
4797 #define __EXTENSIONS__ 1
4798 _ACEOF
4800 cat >>confdefs.h <<\_ACEOF
4801 #define _ALL_SOURCE 1
4802 _ACEOF
4804 cat >>confdefs.h <<\_ACEOF
4805 #define _GNU_SOURCE 1
4806 _ACEOF
4808 cat >>confdefs.h <<\_ACEOF
4809 #define _POSIX_PTHREAD_SEMANTICS 1
4810 _ACEOF
4812 cat >>confdefs.h <<\_ACEOF
4813 #define _TANDEM_SOURCE 1
4814 _ACEOF
4818 ### Use -Wno-pointer-sign if the compiler supports it
4819 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4820 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4821 SAVE_CFLAGS="$CFLAGS"
4822 CFLAGS="$CFLAGS -Wno-pointer-sign"
4823 cat >conftest.$ac_ext <<_ACEOF
4824 /* confdefs.h. */
4825 _ACEOF
4826 cat confdefs.h >>conftest.$ac_ext
4827 cat >>conftest.$ac_ext <<_ACEOF
4828 /* end confdefs.h. */
4831 main ()
4835 return 0;
4837 _ACEOF
4838 rm -f conftest.$ac_objext
4839 if { (ac_try="$ac_compile"
4840 case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843 esac
4844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4845 $as_echo "$ac_try_echo") >&5
4846 (eval "$ac_compile") 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } && {
4853 test -z "$ac_c_werror_flag" ||
4854 test ! -s conftest.err
4855 } && test -s conftest.$ac_objext; then
4856 has_option=yes
4857 else
4858 $as_echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4861 has_option=no
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 if test $has_option = yes; then
4866 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4868 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4869 $as_echo "$has_option" >&6; }
4870 CFLAGS="$SAVE_CFLAGS"
4871 unset has_option
4872 unset SAVE_CFLAGS
4874 #### Some other nice autoconf tests.
4876 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4877 $as_echo_n "checking whether ln -s works... " >&6; }
4878 LN_S=$as_ln_s
4879 if test "$LN_S" = "ln -s"; then
4880 { $as_echo "$as_me:$LINENO: result: yes" >&5
4881 $as_echo "yes" >&6; }
4882 else
4883 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4884 $as_echo "no, using $LN_S" >&6; }
4887 ac_ext=c
4888 ac_cpp='$CPP $CPPFLAGS'
4889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4892 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4893 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4894 # On Suns, sometimes $CPP names a directory.
4895 if test -n "$CPP" && test -d "$CPP"; then
4896 CPP=
4898 if test -z "$CPP"; then
4899 if test "${ac_cv_prog_CPP+set}" = set; then
4900 $as_echo_n "(cached) " >&6
4901 else
4902 # Double quotes because CPP needs to be expanded
4903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4905 ac_preproc_ok=false
4906 for ac_c_preproc_warn_flag in '' yes
4908 # Use a header file that comes with gcc, so configuring glibc
4909 # with a fresh cross-compiler works.
4910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4911 # <limits.h> exists even on freestanding compilers.
4912 # On the NeXT, cc -E runs the code through the compiler's parser,
4913 # not just through cpp. "Syntax error" is here to catch this case.
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h. */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920 #ifdef __STDC__
4921 # include <limits.h>
4922 #else
4923 # include <assert.h>
4924 #endif
4925 Syntax error
4926 _ACEOF
4927 if { (ac_try="$ac_cpp conftest.$ac_ext"
4928 case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931 esac
4932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4933 $as_echo "$ac_try_echo") >&5
4934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4935 ac_status=$?
4936 grep -v '^ *+' conftest.er1 >conftest.err
4937 rm -f conftest.er1
4938 cat conftest.err >&5
4939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } >/dev/null && {
4941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4942 test ! -s conftest.err
4943 }; then
4945 else
4946 $as_echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4949 # Broken: fails on valid input.
4950 continue
4953 rm -f conftest.err conftest.$ac_ext
4955 # OK, works on sane cases. Now check whether nonexistent headers
4956 # can be detected and how.
4957 cat >conftest.$ac_ext <<_ACEOF
4958 /* confdefs.h. */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 #include <ac_nonexistent.h>
4964 _ACEOF
4965 if { (ac_try="$ac_cpp conftest.$ac_ext"
4966 case "(($ac_try" in
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4969 esac
4970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4971 $as_echo "$ac_try_echo") >&5
4972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4973 ac_status=$?
4974 grep -v '^ *+' conftest.er1 >conftest.err
4975 rm -f conftest.er1
4976 cat conftest.err >&5
4977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } >/dev/null && {
4979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4980 test ! -s conftest.err
4981 }; then
4982 # Broken: success on invalid input.
4983 continue
4984 else
4985 $as_echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4988 # Passes both tests.
4989 ac_preproc_ok=:
4990 break
4993 rm -f conftest.err conftest.$ac_ext
4995 done
4996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4997 rm -f conftest.err conftest.$ac_ext
4998 if $ac_preproc_ok; then
4999 break
5002 done
5003 ac_cv_prog_CPP=$CPP
5006 CPP=$ac_cv_prog_CPP
5007 else
5008 ac_cv_prog_CPP=$CPP
5010 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5011 $as_echo "$CPP" >&6; }
5012 ac_preproc_ok=false
5013 for ac_c_preproc_warn_flag in '' yes
5015 # Use a header file that comes with gcc, so configuring glibc
5016 # with a fresh cross-compiler works.
5017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5018 # <limits.h> exists even on freestanding compilers.
5019 # On the NeXT, cc -E runs the code through the compiler's parser,
5020 # not just through cpp. "Syntax error" is here to catch this case.
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #ifdef __STDC__
5028 # include <limits.h>
5029 #else
5030 # include <assert.h>
5031 #endif
5032 Syntax error
5033 _ACEOF
5034 if { (ac_try="$ac_cpp conftest.$ac_ext"
5035 case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038 esac
5039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5040 $as_echo "$ac_try_echo") >&5
5041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } >/dev/null && {
5048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5049 test ! -s conftest.err
5050 }; then
5052 else
5053 $as_echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5056 # Broken: fails on valid input.
5057 continue
5060 rm -f conftest.err conftest.$ac_ext
5062 # OK, works on sane cases. Now check whether nonexistent headers
5063 # can be detected and how.
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 #include <ac_nonexistent.h>
5071 _ACEOF
5072 if { (ac_try="$ac_cpp conftest.$ac_ext"
5073 case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076 esac
5077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5078 $as_echo "$ac_try_echo") >&5
5079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev/null && {
5086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5087 test ! -s conftest.err
5088 }; then
5089 # Broken: success on invalid input.
5090 continue
5091 else
5092 $as_echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 # Passes both tests.
5096 ac_preproc_ok=:
5097 break
5100 rm -f conftest.err conftest.$ac_ext
5102 done
5103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5104 rm -f conftest.err conftest.$ac_ext
5105 if $ac_preproc_ok; then
5107 else
5108 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5109 See \`config.log' for more details." >&5
5110 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5111 See \`config.log' for more details." >&2;}
5112 { (exit 1); exit 1; }; }
5115 ac_ext=c
5116 ac_cpp='$CPP $CPPFLAGS'
5117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5121 # Find a good install program. We prefer a C program (faster),
5122 # so one script is as good as another. But avoid the broken or
5123 # incompatible versions:
5124 # SysV /etc/install, /usr/sbin/install
5125 # SunOS /usr/etc/install
5126 # IRIX /sbin/install
5127 # AIX /bin/install
5128 # AmigaOS /C/install, which installs bootblocks on floppy discs
5129 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5130 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5131 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5132 # OS/2's system install, which has a completely different semantic
5133 # ./install, which can be erroneously created by make from ./install.sh.
5134 # Reject install programs that cannot install multiple files.
5135 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5136 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5137 if test -z "$INSTALL"; then
5138 if test "${ac_cv_path_install+set}" = set; then
5139 $as_echo_n "(cached) " >&6
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 # Account for people who put trailing slashes in PATH elements.
5147 case $as_dir/ in
5148 ./ | .// | /cC/* | \
5149 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5150 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5151 /usr/ucb/* ) ;;
5153 # OSF1 and SCO ODT 3.0 have their own names for install.
5154 # Don't use installbsd from OSF since it installs stuff as root
5155 # by default.
5156 for ac_prog in ginstall scoinst install; do
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5159 if test $ac_prog = install &&
5160 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5161 # AIX install. It has an incompatible calling convention.
5163 elif test $ac_prog = install &&
5164 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5165 # program-specific install script used by HP pwplus--don't use.
5167 else
5168 rm -rf conftest.one conftest.two conftest.dir
5169 echo one > conftest.one
5170 echo two > conftest.two
5171 mkdir conftest.dir
5172 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5173 test -s conftest.one && test -s conftest.two &&
5174 test -s conftest.dir/conftest.one &&
5175 test -s conftest.dir/conftest.two
5176 then
5177 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5178 break 3
5182 done
5183 done
5185 esac
5187 done
5188 IFS=$as_save_IFS
5190 rm -rf conftest.one conftest.two conftest.dir
5193 if test "${ac_cv_path_install+set}" = set; then
5194 INSTALL=$ac_cv_path_install
5195 else
5196 # As a last resort, use the slow shell script. Don't cache a
5197 # value for INSTALL within a source directory, because that will
5198 # break other packages using the cache if that directory is
5199 # removed, or if the value is a relative name.
5200 INSTALL=$ac_install_sh
5203 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5204 $as_echo "$INSTALL" >&6; }
5206 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5207 # It thinks the first close brace ends the variable substitution.
5208 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5210 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5212 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5214 if test "x$RANLIB" = x; then
5215 if test -n "$ac_tool_prefix"; then
5216 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5217 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if test "${ac_cv_prog_RANLIB+set}" = set; then
5221 $as_echo_n "(cached) " >&6
5222 else
5223 if test -n "$RANLIB"; then
5224 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5237 done
5238 done
5239 IFS=$as_save_IFS
5243 RANLIB=$ac_cv_prog_RANLIB
5244 if test -n "$RANLIB"; then
5245 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5246 $as_echo "$RANLIB" >&6; }
5247 else
5248 { $as_echo "$as_me:$LINENO: result: no" >&5
5249 $as_echo "no" >&6; }
5254 if test -z "$ac_cv_prog_RANLIB"; then
5255 ac_ct_RANLIB=$RANLIB
5256 # Extract the first word of "ranlib", so it can be a program name with args.
5257 set dummy ranlib; ac_word=$2
5258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -n "$ac_ct_RANLIB"; then
5264 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273 ac_cv_prog_ac_ct_RANLIB="ranlib"
5274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5277 done
5278 done
5279 IFS=$as_save_IFS
5283 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5284 if test -n "$ac_ct_RANLIB"; then
5285 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5286 $as_echo "$ac_ct_RANLIB" >&6; }
5287 else
5288 { $as_echo "$as_me:$LINENO: result: no" >&5
5289 $as_echo "no" >&6; }
5292 if test "x$ac_ct_RANLIB" = x; then
5293 RANLIB=":"
5294 else
5295 case $cross_compiling:$ac_tool_warned in
5296 yes:)
5297 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5298 whose name does not start with the host triplet. If you think this
5299 configuration is useful to you, please write to autoconf@gnu.org." >&5
5300 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5301 whose name does not start with the host triplet. If you think this
5302 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5303 ac_tool_warned=yes ;;
5304 esac
5305 RANLIB=$ac_ct_RANLIB
5307 else
5308 RANLIB="$ac_cv_prog_RANLIB"
5312 # Extract the first word of "install-info", so it can be a program name with args.
5313 set dummy install-info; ac_word=$2
5314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5317 $as_echo_n "(cached) " >&6
5318 else
5319 case $INSTALL_INFO in
5320 [\\/]* | ?:[\\/]*)
5321 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5335 done
5336 done
5337 IFS=$as_save_IFS
5340 esac
5342 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5343 if test -n "$INSTALL_INFO"; then
5344 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5345 $as_echo "$INSTALL_INFO" >&6; }
5346 else
5347 { $as_echo "$as_me:$LINENO: result: no" >&5
5348 $as_echo "no" >&6; }
5352 # Extract the first word of "install-info", so it can be a program name with args.
5353 set dummy install-info; ac_word=$2
5354 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5357 $as_echo_n "(cached) " >&6
5358 else
5359 case $INSTALL_INFO in
5360 [\\/]* | ?:[\\/]*)
5361 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in /usr/sbin
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5375 done
5376 done
5377 IFS=$as_save_IFS
5380 esac
5382 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5383 if test -n "$INSTALL_INFO"; then
5384 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5385 $as_echo "$INSTALL_INFO" >&6; }
5386 else
5387 { $as_echo "$as_me:$LINENO: result: no" >&5
5388 $as_echo "no" >&6; }
5392 # Extract the first word of "install-info", so it can be a program name with args.
5393 set dummy install-info; ac_word=$2
5394 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5397 $as_echo_n "(cached) " >&6
5398 else
5399 case $INSTALL_INFO in
5400 [\\/]* | ?:[\\/]*)
5401 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in /sbin
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5415 done
5416 done
5417 IFS=$as_save_IFS
5419 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5421 esac
5423 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5424 if test -n "$INSTALL_INFO"; then
5425 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5426 $as_echo "$INSTALL_INFO" >&6; }
5427 else
5428 { $as_echo "$as_me:$LINENO: result: no" >&5
5429 $as_echo "no" >&6; }
5433 # Extract the first word of "gzip", so it can be a program name with args.
5434 set dummy gzip; ac_word=$2
5435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5438 $as_echo_n "(cached) " >&6
5439 else
5440 case $GZIP_PROG in
5441 [\\/]* | ?:[\\/]*)
5442 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH
5448 IFS=$as_save_IFS
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 break 2
5456 done
5457 done
5458 IFS=$as_save_IFS
5461 esac
5463 GZIP_PROG=$ac_cv_path_GZIP_PROG
5464 if test -n "$GZIP_PROG"; then
5465 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5466 $as_echo "$GZIP_PROG" >&6; }
5467 else
5468 { $as_echo "$as_me:$LINENO: result: no" >&5
5469 $as_echo "no" >&6; }
5475 ## Need makeinfo >= 4.6 (?) to build the manuals.
5476 # Extract the first word of "makeinfo", so it can be a program name with args.
5477 set dummy makeinfo; ac_word=$2
5478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5481 $as_echo_n "(cached) " >&6
5482 else
5483 case $MAKEINFO in
5484 [\\/]* | ?:[\\/]*)
5485 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5496 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 break 2
5499 done
5500 done
5501 IFS=$as_save_IFS
5503 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5505 esac
5507 MAKEINFO=$ac_cv_path_MAKEINFO
5508 if test -n "$MAKEINFO"; then
5509 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5510 $as_echo "$MAKEINFO" >&6; }
5511 else
5512 { $as_echo "$as_me:$LINENO: result: no" >&5
5513 $as_echo "no" >&6; }
5517 if test "$MAKEINFO" != "no" && \
5518 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
5519 MAKEINFO=no
5522 ## Makeinfo is unusual. For a released Emacs, the manuals are
5523 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5524 ## therefore in the category of "special tools" not normally required, which
5525 ## configure does not have to check for (eg autoconf itself).
5526 ## In a CVS checkout on the other hand, the manuals are not included.
5527 ## So makeinfo is a requirement to build from CVS, and configure
5528 ## should test for it as it does for any other build requirement.
5529 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5530 ## with pre-built manuals, from a CVS checkout.
5531 if test "$MAKEINFO" = "no"; then
5532 if test "x${with_makeinfo}" = "xno"; then
5533 MAKEINFO=off
5534 elif ! test -e $srcdir/info/emacs; then
5535 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5536 source tree does not seem to have pre-built manuals in the \`info' directory.
5537 Either install a suitable version of makeinfo, or re-run configure
5538 with the \`--without-makeinfo' option to build without the manuals. " >&5
5539 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5540 source tree does not seem to have pre-built manuals in the \`info' directory.
5541 Either install a suitable version of makeinfo, or re-run configure
5542 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5543 { (exit 1); exit 1; }; }
5548 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5549 then
5550 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5553 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5554 then
5555 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5559 late_LDFLAGS=$LDFLAGS
5560 if test "$GCC" = yes; then
5561 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5562 else
5563 LDFLAGS="$LDFLAGS -znocombreloc"
5566 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5567 $as_echo_n "checking for -znocombreloc... " >&6; }
5568 cat >conftest.$ac_ext <<_ACEOF
5569 main(){return 0;}
5570 _ACEOF
5571 rm -f conftest.$ac_objext conftest$ac_exeext
5572 if { (ac_try="$ac_link"
5573 case "(($ac_try" in
5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5576 esac
5577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5578 $as_echo "$ac_try_echo") >&5
5579 (eval "$ac_link") 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && {
5586 test -z "$ac_c_werror_flag" ||
5587 test ! -s conftest.err
5588 } && test -s conftest$ac_exeext && {
5589 test "$cross_compiling" = yes ||
5590 $as_test_x conftest$ac_exeext
5591 }; then
5592 { $as_echo "$as_me:$LINENO: result: yes" >&5
5593 $as_echo "yes" >&6; }
5594 else
5595 $as_echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5598 LDFLAGS=$late_LDFLAGS
5599 { $as_echo "$as_me:$LINENO: result: no" >&5
5600 $as_echo "no" >&6; }
5603 rm -rf conftest.dSYM
5604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5605 conftest$ac_exeext conftest.$ac_ext
5607 #### Extract some information from the operating system and machine files.
5609 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5610 - which libraries the lib-src programs will want, and
5611 - whether the GNU malloc routines are usable..." >&5
5612 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5613 - which libraries the lib-src programs will want, and
5614 - whether the GNU malloc routines are usable..." >&6;}
5616 ### First figure out CFLAGS (which we use for running the compiler here)
5617 ### and REAL_CFLAGS (which we use for real compilation).
5618 ### The two are the same except on a few systems, where they are made
5619 ### different to work around various lossages. For example,
5620 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5621 ### as implying static linking.
5623 ### If the CFLAGS env var is specified, we use that value
5624 ### instead of the default.
5626 ### It's not important that this name contain the PID; you can't run
5627 ### two configures in the same directory and have anything work
5628 ### anyway.
5629 tempcname="conftest.c"
5631 echo '
5632 #include "'${srcdir}'/src/'${opsysfile}'"
5633 #include "'${srcdir}'/src/'${machfile}'"
5634 #ifndef LIBS_MACHINE
5635 #define LIBS_MACHINE
5636 #endif
5637 #ifndef LIBS_SYSTEM
5638 #define LIBS_SYSTEM
5639 #endif
5640 #ifndef C_SWITCH_SYSTEM
5641 #define C_SWITCH_SYSTEM
5642 #endif
5643 #ifndef C_SWITCH_MACHINE
5644 #define C_SWITCH_MACHINE
5645 #endif
5646 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5647 configure___ c_switch_system=C_SWITCH_SYSTEM
5648 configure___ c_switch_machine=C_SWITCH_MACHINE
5650 #ifndef LIB_X11_LIB
5651 #define LIB_X11_LIB -lX11
5652 #endif
5654 #ifndef LIBX11_SYSTEM
5655 #define LIBX11_SYSTEM
5656 #endif
5657 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5659 #ifdef UNEXEC
5660 configure___ unexec=UNEXEC
5661 #else
5662 configure___ unexec=unexec.o
5663 #endif
5665 #ifdef SYSTEM_MALLOC
5666 configure___ system_malloc=yes
5667 #else
5668 configure___ system_malloc=no
5669 #endif
5671 #ifdef USE_MMAP_FOR_BUFFERS
5672 configure___ use_mmap_for_buffers=yes
5673 #else
5674 configure___ use_mmap_for_buffers=no
5675 #endif
5677 #ifndef C_DEBUG_SWITCH
5678 #define C_DEBUG_SWITCH -g
5679 #endif
5681 #ifndef C_OPTIMIZE_SWITCH
5682 #ifdef __GNUC__
5683 #define C_OPTIMIZE_SWITCH -O2
5684 #else
5685 #define C_OPTIMIZE_SWITCH -O
5686 #endif
5687 #endif
5689 #ifndef C_WARNINGS_SWITCH
5690 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5691 #endif
5693 #ifndef LD_SWITCH_MACHINE
5694 #define LD_SWITCH_MACHINE
5695 #endif
5697 #ifndef LD_SWITCH_SYSTEM
5698 #define LD_SWITCH_SYSTEM
5699 #endif
5701 #ifndef LD_SWITCH_X_SITE_AUX
5702 #define LD_SWITCH_X_SITE_AUX
5703 #endif
5705 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5706 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5708 #ifdef THIS_IS_CONFIGURE
5710 /* Get the CFLAGS for tests in configure. */
5711 #ifdef __GNUC__
5712 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5713 #else
5714 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5715 #endif
5717 #else /* not THIS_IS_CONFIGURE */
5719 /* Get the CFLAGS for real compilation. */
5720 #ifdef __GNUC__
5721 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5722 #else
5723 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5724 #endif
5726 #endif /* not THIS_IS_CONFIGURE */
5727 ' > ${tempcname}
5729 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5731 # The value of CPP is a quoted variable reference, so we need to do this
5732 # to get its actual value...
5733 CPP=`eval "echo $CPP"`
5734 eval `${CPP} -Isrc ${tempcname} \
5735 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5736 if test "x$SPECIFIED_CFLAGS" = x; then
5737 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5738 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5739 else
5740 REAL_CFLAGS="$CFLAGS"
5742 rm ${tempcname}
5744 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5746 ### Make sure subsequent tests use flags consistent with the build flags.
5748 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5749 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5750 else
5751 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5756 # Check whether --enable-largefile was given.
5757 if test "${enable_largefile+set}" = set; then
5758 enableval=$enable_largefile;
5761 if test "$enable_largefile" != no; then
5763 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5764 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5765 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5766 $as_echo_n "(cached) " >&6
5767 else
5768 ac_cv_sys_largefile_CC=no
5769 if test "$GCC" != yes; then
5770 ac_save_CC=$CC
5771 while :; do
5772 # IRIX 6.2 and later do not support large files by default,
5773 # so use the C compiler's -n32 option if that helps.
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 #include <sys/types.h>
5781 /* Check that off_t can represent 2**63 - 1 correctly.
5782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5783 since some C++ compilers masquerading as C compilers
5784 incorrectly reject 9223372036854775807. */
5785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5787 && LARGE_OFF_T % 2147483647 == 1)
5788 ? 1 : -1];
5790 main ()
5794 return 0;
5796 _ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5799 case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802 esac
5803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5804 $as_echo "$ac_try_echo") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5806 ac_status=$?
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
5810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest.$ac_objext; then
5815 break
5816 else
5817 $as_echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5823 rm -f core conftest.err conftest.$ac_objext
5824 CC="$CC -n32"
5825 rm -f conftest.$ac_objext
5826 if { (ac_try="$ac_compile"
5827 case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830 esac
5831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5832 $as_echo "$ac_try_echo") >&5
5833 (eval "$ac_compile") 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } && {
5840 test -z "$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 } && test -s conftest.$ac_objext; then
5843 ac_cv_sys_largefile_CC=' -n32'; break
5844 else
5845 $as_echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5851 rm -f core conftest.err conftest.$ac_objext
5852 break
5853 done
5854 CC=$ac_save_CC
5855 rm -f conftest.$ac_ext
5858 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5859 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5860 if test "$ac_cv_sys_largefile_CC" != no; then
5861 CC=$CC$ac_cv_sys_largefile_CC
5864 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5865 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5866 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5867 $as_echo_n "(cached) " >&6
5868 else
5869 while :; do
5870 cat >conftest.$ac_ext <<_ACEOF
5871 /* confdefs.h. */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 #include <sys/types.h>
5877 /* Check that off_t can represent 2**63 - 1 correctly.
5878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5879 since some C++ compilers masquerading as C compilers
5880 incorrectly reject 9223372036854775807. */
5881 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5883 && LARGE_OFF_T % 2147483647 == 1)
5884 ? 1 : -1];
5886 main ()
5890 return 0;
5892 _ACEOF
5893 rm -f conftest.$ac_objext
5894 if { (ac_try="$ac_compile"
5895 case "(($ac_try" in
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5898 esac
5899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5900 $as_echo "$ac_try_echo") >&5
5901 (eval "$ac_compile") 2>conftest.er1
5902 ac_status=$?
5903 grep -v '^ *+' conftest.er1 >conftest.err
5904 rm -f conftest.er1
5905 cat conftest.err >&5
5906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && {
5908 test -z "$ac_c_werror_flag" ||
5909 test ! -s conftest.err
5910 } && test -s conftest.$ac_objext; then
5911 ac_cv_sys_file_offset_bits=no; break
5912 else
5913 $as_echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920 cat >conftest.$ac_ext <<_ACEOF
5921 /* confdefs.h. */
5922 _ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5926 #define _FILE_OFFSET_BITS 64
5927 #include <sys/types.h>
5928 /* Check that off_t can represent 2**63 - 1 correctly.
5929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5930 since some C++ compilers masquerading as C compilers
5931 incorrectly reject 9223372036854775807. */
5932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5934 && LARGE_OFF_T % 2147483647 == 1)
5935 ? 1 : -1];
5937 main ()
5941 return 0;
5943 _ACEOF
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5946 case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949 esac
5950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5951 $as_echo "$ac_try_echo") >&5
5952 (eval "$ac_compile") 2>conftest.er1
5953 ac_status=$?
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
5957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } && {
5959 test -z "$ac_c_werror_flag" ||
5960 test ! -s conftest.err
5961 } && test -s conftest.$ac_objext; then
5962 ac_cv_sys_file_offset_bits=64; break
5963 else
5964 $as_echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 ac_cv_sys_file_offset_bits=unknown
5972 break
5973 done
5975 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5976 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5977 case $ac_cv_sys_file_offset_bits in #(
5978 no | unknown) ;;
5980 cat >>confdefs.h <<_ACEOF
5981 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5982 _ACEOF
5984 esac
5985 rm -rf conftest*
5986 if test $ac_cv_sys_file_offset_bits = unknown; then
5987 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5988 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5989 if test "${ac_cv_sys_large_files+set}" = set; then
5990 $as_echo_n "(cached) " >&6
5991 else
5992 while :; do
5993 cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h. */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 #include <sys/types.h>
6000 /* Check that off_t can represent 2**63 - 1 correctly.
6001 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6002 since some C++ compilers masquerading as C compilers
6003 incorrectly reject 9223372036854775807. */
6004 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6005 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6006 && LARGE_OFF_T % 2147483647 == 1)
6007 ? 1 : -1];
6009 main ()
6013 return 0;
6015 _ACEOF
6016 rm -f conftest.$ac_objext
6017 if { (ac_try="$ac_compile"
6018 case "(($ac_try" in
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6021 esac
6022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6023 $as_echo "$ac_try_echo") >&5
6024 (eval "$ac_compile") 2>conftest.er1
6025 ac_status=$?
6026 grep -v '^ *+' conftest.er1 >conftest.err
6027 rm -f conftest.er1
6028 cat conftest.err >&5
6029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } && {
6031 test -z "$ac_c_werror_flag" ||
6032 test ! -s conftest.err
6033 } && test -s conftest.$ac_objext; then
6034 ac_cv_sys_large_files=no; break
6035 else
6036 $as_echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h. */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 #define _LARGE_FILES 1
6050 #include <sys/types.h>
6051 /* Check that off_t can represent 2**63 - 1 correctly.
6052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6053 since some C++ compilers masquerading as C compilers
6054 incorrectly reject 9223372036854775807. */
6055 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6057 && LARGE_OFF_T % 2147483647 == 1)
6058 ? 1 : -1];
6060 main ()
6064 return 0;
6066 _ACEOF
6067 rm -f conftest.$ac_objext
6068 if { (ac_try="$ac_compile"
6069 case "(($ac_try" in
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6072 esac
6073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6074 $as_echo "$ac_try_echo") >&5
6075 (eval "$ac_compile") 2>conftest.er1
6076 ac_status=$?
6077 grep -v '^ *+' conftest.er1 >conftest.err
6078 rm -f conftest.er1
6079 cat conftest.err >&5
6080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } && {
6082 test -z "$ac_c_werror_flag" ||
6083 test ! -s conftest.err
6084 } && test -s conftest.$ac_objext; then
6085 ac_cv_sys_large_files=1; break
6086 else
6087 $as_echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 ac_cv_sys_large_files=unknown
6095 break
6096 done
6098 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6099 $as_echo "$ac_cv_sys_large_files" >&6; }
6100 case $ac_cv_sys_large_files in #(
6101 no | unknown) ;;
6103 cat >>confdefs.h <<_ACEOF
6104 #define _LARGE_FILES $ac_cv_sys_large_files
6105 _ACEOF
6107 esac
6108 rm -rf conftest*
6114 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6115 ### be located in either /usr/lib64 or /usr/lib.
6116 ### In some rare cases, /usr/lib64 exists but does not contain the
6117 ### relevant files (bug#1287). Hence test for crtn.o.
6118 case "${canonical}" in
6119 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6120 if test -e /usr/lib64/crtn.o; then
6122 cat >>confdefs.h <<\_ACEOF
6123 #define HAVE_LIB64_DIR 1
6124 _ACEOF
6127 esac
6132 if test "${with_sound}" != "no"; then
6133 # Sound support for GNU/Linux and the free BSDs.
6137 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6141 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6142 $as_echo_n "checking for $ac_header... " >&6; }
6143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6144 $as_echo_n "(cached) " >&6
6146 ac_res=`eval 'as_val=${'$as_ac_Header'}
6147 $as_echo "$as_val"'`
6148 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6149 $as_echo "$ac_res" >&6; }
6150 else
6151 # Is the header compilable?
6152 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6153 $as_echo_n "checking $ac_header usability... " >&6; }
6154 cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h. */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6160 $ac_includes_default
6161 #include <$ac_header>
6162 _ACEOF
6163 rm -f conftest.$ac_objext
6164 if { (ac_try="$ac_compile"
6165 case "(($ac_try" in
6166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167 *) ac_try_echo=$ac_try;;
6168 esac
6169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6170 $as_echo "$ac_try_echo") >&5
6171 (eval "$ac_compile") 2>conftest.er1
6172 ac_status=$?
6173 grep -v '^ *+' conftest.er1 >conftest.err
6174 rm -f conftest.er1
6175 cat conftest.err >&5
6176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } && {
6178 test -z "$ac_c_werror_flag" ||
6179 test ! -s conftest.err
6180 } && test -s conftest.$ac_objext; then
6181 ac_header_compiler=yes
6182 else
6183 $as_echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6186 ac_header_compiler=no
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6191 $as_echo "$ac_header_compiler" >&6; }
6193 # Is the header present?
6194 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6195 $as_echo_n "checking $ac_header presence... " >&6; }
6196 cat >conftest.$ac_ext <<_ACEOF
6197 /* confdefs.h. */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202 #include <$ac_header>
6203 _ACEOF
6204 if { (ac_try="$ac_cpp conftest.$ac_ext"
6205 case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208 esac
6209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6210 $as_echo "$ac_try_echo") >&5
6211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6212 ac_status=$?
6213 grep -v '^ *+' conftest.er1 >conftest.err
6214 rm -f conftest.er1
6215 cat conftest.err >&5
6216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } >/dev/null && {
6218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6219 test ! -s conftest.err
6220 }; then
6221 ac_header_preproc=yes
6222 else
6223 $as_echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6226 ac_header_preproc=no
6229 rm -f conftest.err conftest.$ac_ext
6230 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6231 $as_echo "$ac_header_preproc" >&6; }
6233 # So? What about this header?
6234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6235 yes:no: )
6236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6237 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6240 ac_header_preproc=yes
6242 no:yes:* )
6243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6244 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6246 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6248 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6250 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6252 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6254 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6257 esac
6258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6259 $as_echo_n "checking for $ac_header... " >&6; }
6260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6261 $as_echo_n "(cached) " >&6
6262 else
6263 eval "$as_ac_Header=\$ac_header_preproc"
6265 ac_res=`eval 'as_val=${'$as_ac_Header'}
6266 $as_echo "$as_val"'`
6267 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6268 $as_echo "$ac_res" >&6; }
6271 if test `eval 'as_val=${'$as_ac_Header'}
6272 $as_echo "$as_val"'` = yes; then
6273 cat >>confdefs.h <<_ACEOF
6274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6275 _ACEOF
6279 done
6281 # Emulation library used on NetBSD.
6282 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6283 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6284 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6285 $as_echo_n "(cached) " >&6
6286 else
6287 ac_check_lib_save_LIBS=$LIBS
6288 LIBS="-lossaudio $LIBS"
6289 cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h. */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6296 /* Override any GCC internal prototype to avoid an error.
6297 Use char because int might match the return type of a GCC
6298 builtin and then its argument prototype would still apply. */
6299 #ifdef __cplusplus
6300 extern "C"
6301 #endif
6302 char _oss_ioctl ();
6304 main ()
6306 return _oss_ioctl ();
6308 return 0;
6310 _ACEOF
6311 rm -f conftest.$ac_objext conftest$ac_exeext
6312 if { (ac_try="$ac_link"
6313 case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316 esac
6317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6318 $as_echo "$ac_try_echo") >&5
6319 (eval "$ac_link") 2>conftest.er1
6320 ac_status=$?
6321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
6324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } && {
6326 test -z "$ac_c_werror_flag" ||
6327 test ! -s conftest.err
6328 } && test -s conftest$ac_exeext && {
6329 test "$cross_compiling" = yes ||
6330 $as_test_x conftest$ac_exeext
6331 }; then
6332 ac_cv_lib_ossaudio__oss_ioctl=yes
6333 else
6334 $as_echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6337 ac_cv_lib_ossaudio__oss_ioctl=no
6340 rm -rf conftest.dSYM
6341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6342 conftest$ac_exeext conftest.$ac_ext
6343 LIBS=$ac_check_lib_save_LIBS
6345 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6346 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6347 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6348 LIBSOUND=-lossaudio
6349 else
6350 LIBSOUND=
6355 ALSA_REQUIRED=1.0.0
6356 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6358 succeeded=no
6360 # Extract the first word of "pkg-config", so it can be a program name with args.
6361 set dummy pkg-config; ac_word=$2
6362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 $as_echo_n "checking for $ac_word... " >&6; }
6364 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6365 $as_echo_n "(cached) " >&6
6366 else
6367 case $PKG_CONFIG in
6368 [\\/]* | ?:[\\/]*)
6369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 break 2
6383 done
6384 done
6385 IFS=$as_save_IFS
6387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6389 esac
6391 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6392 if test -n "$PKG_CONFIG"; then
6393 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6394 $as_echo "$PKG_CONFIG" >&6; }
6395 else
6396 { $as_echo "$as_me:$LINENO: result: no" >&5
6397 $as_echo "no" >&6; }
6402 if test "$PKG_CONFIG" = "no" ; then
6403 HAVE_ALSA=no
6404 else
6405 PKG_CONFIG_MIN_VERSION=0.9.0
6406 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6407 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6408 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6410 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6411 { $as_echo "$as_me:$LINENO: result: yes" >&5
6412 $as_echo "yes" >&6; }
6413 succeeded=yes
6415 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6416 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6417 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6418 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6419 $as_echo "$ALSA_CFLAGS" >&6; }
6421 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6422 $as_echo_n "checking ALSA_LIBS... " >&6; }
6423 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6424 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6425 $as_echo "$ALSA_LIBS" >&6; }
6426 else
6427 { $as_echo "$as_me:$LINENO: result: no" >&5
6428 $as_echo "no" >&6; }
6429 ALSA_CFLAGS=""
6430 ALSA_LIBS=""
6431 ## If we have a custom action on failure, don't print errors, but
6432 ## do set a variable so people can do so.
6433 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6439 else
6440 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6441 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6445 if test $succeeded = yes; then
6446 HAVE_ALSA=yes
6447 else
6448 HAVE_ALSA=no
6451 if test $HAVE_ALSA = yes; then
6452 SAVE_CFLAGS="$CFLAGS"
6453 SAVE_LDFLAGS="$LDFLAGS"
6454 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6455 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6456 cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h. */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 #include <asoundlib.h>
6464 main ()
6466 snd_lib_error_set_handler (0);
6468 return 0;
6470 _ACEOF
6471 rm -f conftest.$ac_objext
6472 if { (ac_try="$ac_compile"
6473 case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476 esac
6477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6478 $as_echo "$ac_try_echo") >&5
6479 (eval "$ac_compile") 2>conftest.er1
6480 ac_status=$?
6481 grep -v '^ *+' conftest.er1 >conftest.err
6482 rm -f conftest.er1
6483 cat conftest.err >&5
6484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } && {
6486 test -z "$ac_c_werror_flag" ||
6487 test ! -s conftest.err
6488 } && test -s conftest.$ac_objext; then
6489 emacs_alsa_normal=yes
6490 else
6491 $as_echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6494 emacs_alsa_normal=no
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 if test "$emacs_alsa_normal" != yes; then
6499 cat >conftest.$ac_ext <<_ACEOF
6500 /* confdefs.h. */
6501 _ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6505 #include <alsa/asoundlib.h>
6507 main ()
6509 snd_lib_error_set_handler (0);
6511 return 0;
6513 _ACEOF
6514 rm -f conftest.$ac_objext
6515 if { (ac_try="$ac_compile"
6516 case "(($ac_try" in
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6519 esac
6520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6521 $as_echo "$ac_try_echo") >&5
6522 (eval "$ac_compile") 2>conftest.er1
6523 ac_status=$?
6524 grep -v '^ *+' conftest.er1 >conftest.err
6525 rm -f conftest.er1
6526 cat conftest.err >&5
6527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } && {
6529 test -z "$ac_c_werror_flag" ||
6530 test ! -s conftest.err
6531 } && test -s conftest.$ac_objext; then
6532 emacs_alsa_subdir=yes
6533 else
6534 $as_echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6537 emacs_alsa_subdir=no
6540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 if test "$emacs_alsa_subdir" != yes; then
6542 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6543 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6544 { (exit 1); exit 1; }; }
6546 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6549 CFLAGS="$SAVE_CFLAGS"
6550 LDFLAGS="$SAVE_LDFLAGS"
6551 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6552 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6554 cat >>confdefs.h <<\_ACEOF
6555 #define HAVE_ALSA 1
6556 _ACEOF
6587 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6588 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6589 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6590 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6591 sys/utsname.h pwd.h
6593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6595 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6596 $as_echo_n "checking for $ac_header... " >&6; }
6597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6598 $as_echo_n "(cached) " >&6
6600 ac_res=`eval 'as_val=${'$as_ac_Header'}
6601 $as_echo "$as_val"'`
6602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6603 $as_echo "$ac_res" >&6; }
6604 else
6605 # Is the header compilable?
6606 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6607 $as_echo_n "checking $ac_header usability... " >&6; }
6608 cat >conftest.$ac_ext <<_ACEOF
6609 /* confdefs.h. */
6610 _ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6614 $ac_includes_default
6615 #include <$ac_header>
6616 _ACEOF
6617 rm -f conftest.$ac_objext
6618 if { (ac_try="$ac_compile"
6619 case "(($ac_try" in
6620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621 *) ac_try_echo=$ac_try;;
6622 esac
6623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6624 $as_echo "$ac_try_echo") >&5
6625 (eval "$ac_compile") 2>conftest.er1
6626 ac_status=$?
6627 grep -v '^ *+' conftest.er1 >conftest.err
6628 rm -f conftest.er1
6629 cat conftest.err >&5
6630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } && {
6632 test -z "$ac_c_werror_flag" ||
6633 test ! -s conftest.err
6634 } && test -s conftest.$ac_objext; then
6635 ac_header_compiler=yes
6636 else
6637 $as_echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6640 ac_header_compiler=no
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6645 $as_echo "$ac_header_compiler" >&6; }
6647 # Is the header present?
6648 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6649 $as_echo_n "checking $ac_header presence... " >&6; }
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h. */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 #include <$ac_header>
6657 _ACEOF
6658 if { (ac_try="$ac_cpp conftest.$ac_ext"
6659 case "(($ac_try" in
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6662 esac
6663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6664 $as_echo "$ac_try_echo") >&5
6665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6666 ac_status=$?
6667 grep -v '^ *+' conftest.er1 >conftest.err
6668 rm -f conftest.er1
6669 cat conftest.err >&5
6670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } >/dev/null && {
6672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6673 test ! -s conftest.err
6674 }; then
6675 ac_header_preproc=yes
6676 else
6677 $as_echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6680 ac_header_preproc=no
6683 rm -f conftest.err conftest.$ac_ext
6684 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6685 $as_echo "$ac_header_preproc" >&6; }
6687 # So? What about this header?
6688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6689 yes:no: )
6690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6691 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6693 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6694 ac_header_preproc=yes
6696 no:yes:* )
6697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6698 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6700 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6702 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6704 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6706 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6708 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6711 esac
6712 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6713 $as_echo_n "checking for $ac_header... " >&6; }
6714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6715 $as_echo_n "(cached) " >&6
6716 else
6717 eval "$as_ac_Header=\$ac_header_preproc"
6719 ac_res=`eval 'as_val=${'$as_ac_Header'}
6720 $as_echo "$as_val"'`
6721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6722 $as_echo "$ac_res" >&6; }
6725 if test `eval 'as_val=${'$as_ac_Header'}
6726 $as_echo "$as_val"'` = yes; then
6727 cat >>confdefs.h <<_ACEOF
6728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6729 _ACEOF
6733 done
6736 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6737 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h. */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 #include <sys/personality.h>
6746 main ()
6748 personality (PER_LINUX32)
6750 return 0;
6752 _ACEOF
6753 rm -f conftest.$ac_objext
6754 if { (ac_try="$ac_compile"
6755 case "(($ac_try" in
6756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757 *) ac_try_echo=$ac_try;;
6758 esac
6759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6760 $as_echo "$ac_try_echo") >&5
6761 (eval "$ac_compile") 2>conftest.er1
6762 ac_status=$?
6763 grep -v '^ *+' conftest.er1 >conftest.err
6764 rm -f conftest.er1
6765 cat conftest.err >&5
6766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } && {
6768 test -z "$ac_c_werror_flag" ||
6769 test ! -s conftest.err
6770 } && test -s conftest.$ac_objext; then
6771 emacs_cv_personality_linux32=yes
6772 else
6773 $as_echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 emacs_cv_personality_linux32=no
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6781 $as_echo "$emacs_cv_personality_linux32" >&6; }
6783 if test $emacs_cv_personality_linux32 = yes; then
6785 cat >>confdefs.h <<\_ACEOF
6786 #define HAVE_PERSONALITY_LINUX32 1
6787 _ACEOF
6792 for ac_header in term.h
6794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6795 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6796 $as_echo_n "checking for $ac_header... " >&6; }
6797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6798 $as_echo_n "(cached) " >&6
6799 else
6800 cat >conftest.$ac_ext <<_ACEOF
6801 /* confdefs.h. */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 #include <$ac_header>
6807 _ACEOF
6808 if { (ac_try="$ac_cpp conftest.$ac_ext"
6809 case "(($ac_try" in
6810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811 *) ac_try_echo=$ac_try;;
6812 esac
6813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6814 $as_echo "$ac_try_echo") >&5
6815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6816 ac_status=$?
6817 grep -v '^ *+' conftest.er1 >conftest.err
6818 rm -f conftest.er1
6819 cat conftest.err >&5
6820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } >/dev/null && {
6822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6823 test ! -s conftest.err
6824 }; then
6825 eval "$as_ac_Header=yes"
6826 else
6827 $as_echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6830 eval "$as_ac_Header=no"
6833 rm -f conftest.err conftest.$ac_ext
6835 ac_res=`eval 'as_val=${'$as_ac_Header'}
6836 $as_echo "$as_val"'`
6837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6838 $as_echo "$ac_res" >&6; }
6839 if test `eval 'as_val=${'$as_ac_Header'}
6840 $as_echo "$as_val"'` = yes; then
6841 cat >>confdefs.h <<_ACEOF
6842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6843 _ACEOF
6847 done
6849 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6850 $as_echo_n "checking for ANSI C header files... " >&6; }
6851 if test "${ac_cv_header_stdc+set}" = set; then
6852 $as_echo_n "(cached) " >&6
6853 else
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 #include <stdlib.h>
6861 #include <stdarg.h>
6862 #include <string.h>
6863 #include <float.h>
6866 main ()
6870 return 0;
6872 _ACEOF
6873 rm -f conftest.$ac_objext
6874 if { (ac_try="$ac_compile"
6875 case "(($ac_try" in
6876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6877 *) ac_try_echo=$ac_try;;
6878 esac
6879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6880 $as_echo "$ac_try_echo") >&5
6881 (eval "$ac_compile") 2>conftest.er1
6882 ac_status=$?
6883 grep -v '^ *+' conftest.er1 >conftest.err
6884 rm -f conftest.er1
6885 cat conftest.err >&5
6886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } && {
6888 test -z "$ac_c_werror_flag" ||
6889 test ! -s conftest.err
6890 } && test -s conftest.$ac_objext; then
6891 ac_cv_header_stdc=yes
6892 else
6893 $as_echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_cv_header_stdc=no
6899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6901 if test $ac_cv_header_stdc = yes; then
6902 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6903 cat >conftest.$ac_ext <<_ACEOF
6904 /* confdefs.h. */
6905 _ACEOF
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h. */
6909 #include <string.h>
6911 _ACEOF
6912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6913 $EGREP "memchr" >/dev/null 2>&1; then
6915 else
6916 ac_cv_header_stdc=no
6918 rm -f conftest*
6922 if test $ac_cv_header_stdc = yes; then
6923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6924 cat >conftest.$ac_ext <<_ACEOF
6925 /* confdefs.h. */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 #include <stdlib.h>
6932 _ACEOF
6933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6934 $EGREP "free" >/dev/null 2>&1; then
6936 else
6937 ac_cv_header_stdc=no
6939 rm -f conftest*
6943 if test $ac_cv_header_stdc = yes; then
6944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6945 if test "$cross_compiling" = yes; then
6947 else
6948 cat >conftest.$ac_ext <<_ACEOF
6949 /* confdefs.h. */
6950 _ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6954 #include <ctype.h>
6955 #include <stdlib.h>
6956 #if ((' ' & 0x0FF) == 0x020)
6957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6959 #else
6960 # define ISLOWER(c) \
6961 (('a' <= (c) && (c) <= 'i') \
6962 || ('j' <= (c) && (c) <= 'r') \
6963 || ('s' <= (c) && (c) <= 'z'))
6964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6965 #endif
6967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6969 main ()
6971 int i;
6972 for (i = 0; i < 256; i++)
6973 if (XOR (islower (i), ISLOWER (i))
6974 || toupper (i) != TOUPPER (i))
6975 return 2;
6976 return 0;
6978 _ACEOF
6979 rm -f conftest$ac_exeext
6980 if { (ac_try="$ac_link"
6981 case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984 esac
6985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6986 $as_echo "$ac_try_echo") >&5
6987 (eval "$ac_link") 2>&5
6988 ac_status=$?
6989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6991 { (case "(($ac_try" in
6992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993 *) ac_try_echo=$ac_try;;
6994 esac
6995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6996 $as_echo "$ac_try_echo") >&5
6997 (eval "$ac_try") 2>&5
6998 ac_status=$?
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; }; then
7002 else
7003 $as_echo "$as_me: program exited with status $ac_status" >&5
7004 $as_echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7007 ( exit $ac_status )
7008 ac_cv_header_stdc=no
7010 rm -rf conftest.dSYM
7011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7017 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7018 $as_echo "$ac_cv_header_stdc" >&6; }
7019 if test $ac_cv_header_stdc = yes; then
7021 cat >>confdefs.h <<\_ACEOF
7022 #define STDC_HEADERS 1
7023 _ACEOF
7027 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7028 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7029 if test "${ac_cv_header_time+set}" = set; then
7030 $as_echo_n "(cached) " >&6
7031 else
7032 cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h. */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 #include <sys/types.h>
7039 #include <sys/time.h>
7040 #include <time.h>
7043 main ()
7045 if ((struct tm *) 0)
7046 return 0;
7048 return 0;
7050 _ACEOF
7051 rm -f conftest.$ac_objext
7052 if { (ac_try="$ac_compile"
7053 case "(($ac_try" in
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7056 esac
7057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7058 $as_echo "$ac_try_echo") >&5
7059 (eval "$ac_compile") 2>conftest.er1
7060 ac_status=$?
7061 grep -v '^ *+' conftest.er1 >conftest.err
7062 rm -f conftest.er1
7063 cat conftest.err >&5
7064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } && {
7066 test -z "$ac_c_werror_flag" ||
7067 test ! -s conftest.err
7068 } && test -s conftest.$ac_objext; then
7069 ac_cv_header_time=yes
7070 else
7071 $as_echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7074 ac_cv_header_time=no
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7080 $as_echo "$ac_cv_header_time" >&6; }
7081 if test $ac_cv_header_time = yes; then
7083 cat >>confdefs.h <<\_ACEOF
7084 #define TIME_WITH_SYS_TIME 1
7085 _ACEOF
7089 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7090 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7091 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7092 $as_echo_n "(cached) " >&6
7093 else
7094 cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 $ac_includes_default
7102 main ()
7104 #ifndef sys_siglist
7105 (void) sys_siglist;
7106 #endif
7109 return 0;
7111 _ACEOF
7112 rm -f conftest.$ac_objext
7113 if { (ac_try="$ac_compile"
7114 case "(($ac_try" in
7115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7116 *) ac_try_echo=$ac_try;;
7117 esac
7118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7119 $as_echo "$ac_try_echo") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7121 ac_status=$?
7122 grep -v '^ *+' conftest.er1 >conftest.err
7123 rm -f conftest.er1
7124 cat conftest.err >&5
7125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.$ac_objext; then
7130 ac_cv_have_decl_sys_siglist=yes
7131 else
7132 $as_echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7135 ac_cv_have_decl_sys_siglist=no
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7141 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7142 if test $ac_cv_have_decl_sys_siglist = yes; then
7144 cat >>confdefs.h <<_ACEOF
7145 #define HAVE_DECL_SYS_SIGLIST 1
7146 _ACEOF
7149 else
7150 cat >>confdefs.h <<_ACEOF
7151 #define HAVE_DECL_SYS_SIGLIST 0
7152 _ACEOF
7158 if test $ac_cv_have_decl_sys_siglist != yes; then
7159 # For Tru64, at least:
7160 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7161 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7162 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7163 $as_echo_n "(cached) " >&6
7164 else
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 $ac_includes_default
7173 main ()
7175 #ifndef __sys_siglist
7176 (void) __sys_siglist;
7177 #endif
7180 return 0;
7182 _ACEOF
7183 rm -f conftest.$ac_objext
7184 if { (ac_try="$ac_compile"
7185 case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7188 esac
7189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7190 $as_echo "$ac_try_echo") >&5
7191 (eval "$ac_compile") 2>conftest.er1
7192 ac_status=$?
7193 grep -v '^ *+' conftest.er1 >conftest.err
7194 rm -f conftest.er1
7195 cat conftest.err >&5
7196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } && {
7198 test -z "$ac_c_werror_flag" ||
7199 test ! -s conftest.err
7200 } && test -s conftest.$ac_objext; then
7201 ac_cv_have_decl___sys_siglist=yes
7202 else
7203 $as_echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7206 ac_cv_have_decl___sys_siglist=no
7209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7211 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7212 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7213 if test $ac_cv_have_decl___sys_siglist = yes; then
7215 cat >>confdefs.h <<_ACEOF
7216 #define HAVE_DECL___SYS_SIGLIST 1
7217 _ACEOF
7220 else
7221 cat >>confdefs.h <<_ACEOF
7222 #define HAVE_DECL___SYS_SIGLIST 0
7223 _ACEOF
7229 if test $ac_cv_have_decl___sys_siglist = yes; then
7231 cat >>confdefs.h <<\_ACEOF
7232 #define sys_siglist __sys_siglist
7233 _ACEOF
7237 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7238 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7239 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7240 $as_echo_n "(cached) " >&6
7241 else
7242 cat >conftest.$ac_ext <<_ACEOF
7243 /* confdefs.h. */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 #include <sys/types.h>
7249 #include <sys/wait.h>
7250 #ifndef WEXITSTATUS
7251 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7252 #endif
7253 #ifndef WIFEXITED
7254 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7255 #endif
7258 main ()
7260 int s;
7261 wait (&s);
7262 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7264 return 0;
7266 _ACEOF
7267 rm -f conftest.$ac_objext
7268 if { (ac_try="$ac_compile"
7269 case "(($ac_try" in
7270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271 *) ac_try_echo=$ac_try;;
7272 esac
7273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7274 $as_echo "$ac_try_echo") >&5
7275 (eval "$ac_compile") 2>conftest.er1
7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } && {
7282 test -z "$ac_c_werror_flag" ||
7283 test ! -s conftest.err
7284 } && test -s conftest.$ac_objext; then
7285 ac_cv_header_sys_wait_h=yes
7286 else
7287 $as_echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7290 ac_cv_header_sys_wait_h=no
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7296 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7297 if test $ac_cv_header_sys_wait_h = yes; then
7299 cat >>confdefs.h <<\_ACEOF
7300 #define HAVE_SYS_WAIT_H 1
7301 _ACEOF
7306 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7307 $as_echo_n "checking for struct utimbuf... " >&6; }
7308 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7309 $as_echo_n "(cached) " >&6
7310 else
7311 cat >conftest.$ac_ext <<_ACEOF
7312 /* confdefs.h. */
7313 _ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h. */
7317 #ifdef TIME_WITH_SYS_TIME
7318 #include <sys/time.h>
7319 #include <time.h>
7320 #else
7321 #ifdef HAVE_SYS_TIME_H
7322 #include <sys/time.h>
7323 #else
7324 #include <time.h>
7325 #endif
7326 #endif
7327 #ifdef HAVE_UTIME_H
7328 #include <utime.h>
7329 #endif
7331 main ()
7333 static struct utimbuf x; x.actime = x.modtime;
7335 return 0;
7337 _ACEOF
7338 rm -f conftest.$ac_objext
7339 if { (ac_try="$ac_compile"
7340 case "(($ac_try" in
7341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342 *) ac_try_echo=$ac_try;;
7343 esac
7344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7345 $as_echo "$ac_try_echo") >&5
7346 (eval "$ac_compile") 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest.$ac_objext; then
7356 emacs_cv_struct_utimbuf=yes
7357 else
7358 $as_echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7361 emacs_cv_struct_utimbuf=no
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7367 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7368 if test $emacs_cv_struct_utimbuf = yes; then
7370 cat >>confdefs.h <<\_ACEOF
7371 #define HAVE_STRUCT_UTIMBUF 1
7372 _ACEOF
7376 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7377 $as_echo_n "checking return type of signal handlers... " >&6; }
7378 if test "${ac_cv_type_signal+set}" = set; then
7379 $as_echo_n "(cached) " >&6
7380 else
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 #include <sys/types.h>
7388 #include <signal.h>
7391 main ()
7393 return *(signal (0, 0)) (0) == 1;
7395 return 0;
7397 _ACEOF
7398 rm -f conftest.$ac_objext
7399 if { (ac_try="$ac_compile"
7400 case "(($ac_try" in
7401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7402 *) ac_try_echo=$ac_try;;
7403 esac
7404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7405 $as_echo "$ac_try_echo") >&5
7406 (eval "$ac_compile") 2>conftest.er1
7407 ac_status=$?
7408 grep -v '^ *+' conftest.er1 >conftest.err
7409 rm -f conftest.er1
7410 cat conftest.err >&5
7411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } && {
7413 test -z "$ac_c_werror_flag" ||
7414 test ! -s conftest.err
7415 } && test -s conftest.$ac_objext; then
7416 ac_cv_type_signal=int
7417 else
7418 $as_echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7421 ac_cv_type_signal=void
7424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7427 $as_echo "$ac_cv_type_signal" >&6; }
7429 cat >>confdefs.h <<_ACEOF
7430 #define RETSIGTYPE $ac_cv_type_signal
7431 _ACEOF
7435 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7436 $as_echo_n "checking for speed_t... " >&6; }
7437 if test "${emacs_cv_speed_t+set}" = set; then
7438 $as_echo_n "(cached) " >&6
7439 else
7440 cat >conftest.$ac_ext <<_ACEOF
7441 /* confdefs.h. */
7442 _ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7446 #include <termios.h>
7448 main ()
7450 speed_t x = 1;
7452 return 0;
7454 _ACEOF
7455 rm -f conftest.$ac_objext
7456 if { (ac_try="$ac_compile"
7457 case "(($ac_try" in
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7460 esac
7461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7462 $as_echo "$ac_try_echo") >&5
7463 (eval "$ac_compile") 2>conftest.er1
7464 ac_status=$?
7465 grep -v '^ *+' conftest.er1 >conftest.err
7466 rm -f conftest.er1
7467 cat conftest.err >&5
7468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } && {
7470 test -z "$ac_c_werror_flag" ||
7471 test ! -s conftest.err
7472 } && test -s conftest.$ac_objext; then
7473 emacs_cv_speed_t=yes
7474 else
7475 $as_echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7478 emacs_cv_speed_t=no
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7484 $as_echo "$emacs_cv_speed_t" >&6; }
7485 if test $emacs_cv_speed_t = yes; then
7487 cat >>confdefs.h <<\_ACEOF
7488 #define HAVE_SPEED_T 1
7489 _ACEOF
7493 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7494 $as_echo_n "checking for struct timeval... " >&6; }
7495 if test "${emacs_cv_struct_timeval+set}" = set; then
7496 $as_echo_n "(cached) " >&6
7497 else
7498 cat >conftest.$ac_ext <<_ACEOF
7499 /* confdefs.h. */
7500 _ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7504 #ifdef TIME_WITH_SYS_TIME
7505 #include <sys/time.h>
7506 #include <time.h>
7507 #else
7508 #ifdef HAVE_SYS_TIME_H
7509 #include <sys/time.h>
7510 #else
7511 #include <time.h>
7512 #endif
7513 #endif
7515 main ()
7517 static struct timeval x; x.tv_sec = x.tv_usec;
7519 return 0;
7521 _ACEOF
7522 rm -f conftest.$ac_objext
7523 if { (ac_try="$ac_compile"
7524 case "(($ac_try" in
7525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7526 *) ac_try_echo=$ac_try;;
7527 esac
7528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7529 $as_echo "$ac_try_echo") >&5
7530 (eval "$ac_compile") 2>conftest.er1
7531 ac_status=$?
7532 grep -v '^ *+' conftest.er1 >conftest.err
7533 rm -f conftest.er1
7534 cat conftest.err >&5
7535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } && {
7537 test -z "$ac_c_werror_flag" ||
7538 test ! -s conftest.err
7539 } && test -s conftest.$ac_objext; then
7540 emacs_cv_struct_timeval=yes
7541 else
7542 $as_echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7545 emacs_cv_struct_timeval=no
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7551 $as_echo "$emacs_cv_struct_timeval" >&6; }
7552 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7553 if test $emacs_cv_struct_timeval = yes; then
7555 cat >>confdefs.h <<\_ACEOF
7556 #define HAVE_TIMEVAL 1
7557 _ACEOF
7561 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7562 $as_echo_n "checking for struct exception... " >&6; }
7563 if test "${emacs_cv_struct_exception+set}" = set; then
7564 $as_echo_n "(cached) " >&6
7565 else
7566 cat >conftest.$ac_ext <<_ACEOF
7567 /* confdefs.h. */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7572 #include <math.h>
7574 main ()
7576 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7578 return 0;
7580 _ACEOF
7581 rm -f conftest.$ac_objext
7582 if { (ac_try="$ac_compile"
7583 case "(($ac_try" in
7584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7585 *) ac_try_echo=$ac_try;;
7586 esac
7587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7588 $as_echo "$ac_try_echo") >&5
7589 (eval "$ac_compile") 2>conftest.er1
7590 ac_status=$?
7591 grep -v '^ *+' conftest.er1 >conftest.err
7592 rm -f conftest.er1
7593 cat conftest.err >&5
7594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } && {
7596 test -z "$ac_c_werror_flag" ||
7597 test ! -s conftest.err
7598 } && test -s conftest.$ac_objext; then
7599 emacs_cv_struct_exception=yes
7600 else
7601 $as_echo "$as_me: failed program was:" >&5
7602 sed 's/^/| /' conftest.$ac_ext >&5
7604 emacs_cv_struct_exception=no
7607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7609 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7610 $as_echo "$emacs_cv_struct_exception" >&6; }
7611 HAVE_EXCEPTION=$emacs_cv_struct_exception
7612 if test $emacs_cv_struct_exception != yes; then
7614 cat >>confdefs.h <<\_ACEOF
7615 #define NO_MATHERR 1
7616 _ACEOF
7621 for ac_header in sys/socket.h
7623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7625 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7626 $as_echo_n "checking for $ac_header... " >&6; }
7627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7628 $as_echo_n "(cached) " >&6
7630 ac_res=`eval 'as_val=${'$as_ac_Header'}
7631 $as_echo "$as_val"'`
7632 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7633 $as_echo "$ac_res" >&6; }
7634 else
7635 # Is the header compilable?
7636 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7637 $as_echo_n "checking $ac_header usability... " >&6; }
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h. */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 $ac_includes_default
7645 #include <$ac_header>
7646 _ACEOF
7647 rm -f conftest.$ac_objext
7648 if { (ac_try="$ac_compile"
7649 case "(($ac_try" in
7650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651 *) ac_try_echo=$ac_try;;
7652 esac
7653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7654 $as_echo "$ac_try_echo") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
7665 ac_header_compiler=yes
7666 else
7667 $as_echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 ac_header_compiler=no
7673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7675 $as_echo "$ac_header_compiler" >&6; }
7677 # Is the header present?
7678 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7679 $as_echo_n "checking $ac_header presence... " >&6; }
7680 cat >conftest.$ac_ext <<_ACEOF
7681 /* confdefs.h. */
7682 _ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7686 #include <$ac_header>
7687 _ACEOF
7688 if { (ac_try="$ac_cpp conftest.$ac_ext"
7689 case "(($ac_try" in
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7692 esac
7693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7694 $as_echo "$ac_try_echo") >&5
7695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } >/dev/null && {
7702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7703 test ! -s conftest.err
7704 }; then
7705 ac_header_preproc=yes
7706 else
7707 $as_echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 ac_header_preproc=no
7713 rm -f conftest.err conftest.$ac_ext
7714 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7715 $as_echo "$ac_header_preproc" >&6; }
7717 # So? What about this header?
7718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7719 yes:no: )
7720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7721 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7723 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7724 ac_header_preproc=yes
7726 no:yes:* )
7727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7728 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7730 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7732 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7734 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7736 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7738 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7741 esac
7742 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7743 $as_echo_n "checking for $ac_header... " >&6; }
7744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7745 $as_echo_n "(cached) " >&6
7746 else
7747 eval "$as_ac_Header=\$ac_header_preproc"
7749 ac_res=`eval 'as_val=${'$as_ac_Header'}
7750 $as_echo "$as_val"'`
7751 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7752 $as_echo "$ac_res" >&6; }
7755 if test `eval 'as_val=${'$as_ac_Header'}
7756 $as_echo "$as_val"'` = yes; then
7757 cat >>confdefs.h <<_ACEOF
7758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7759 _ACEOF
7763 done
7766 for ac_header in net/if.h
7768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7769 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7770 $as_echo_n "checking for $ac_header... " >&6; }
7771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7772 $as_echo_n "(cached) " >&6
7773 else
7774 cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h. */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 $ac_includes_default
7781 #if HAVE_SYS_SOCKET_H
7782 #include <sys/socket.h>
7783 #endif
7785 #include <$ac_header>
7786 _ACEOF
7787 rm -f conftest.$ac_objext
7788 if { (ac_try="$ac_compile"
7789 case "(($ac_try" in
7790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791 *) ac_try_echo=$ac_try;;
7792 esac
7793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7794 $as_echo "$ac_try_echo") >&5
7795 (eval "$ac_compile") 2>conftest.er1
7796 ac_status=$?
7797 grep -v '^ *+' conftest.er1 >conftest.err
7798 rm -f conftest.er1
7799 cat conftest.err >&5
7800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } && {
7802 test -z "$ac_c_werror_flag" ||
7803 test ! -s conftest.err
7804 } && test -s conftest.$ac_objext; then
7805 eval "$as_ac_Header=yes"
7806 else
7807 $as_echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7810 eval "$as_ac_Header=no"
7813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815 ac_res=`eval 'as_val=${'$as_ac_Header'}
7816 $as_echo "$as_val"'`
7817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7818 $as_echo "$ac_res" >&6; }
7819 if test `eval 'as_val=${'$as_ac_Header'}
7820 $as_echo "$as_val"'` = yes; then
7821 cat >>confdefs.h <<_ACEOF
7822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7823 _ACEOF
7827 done
7830 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7831 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7832 if test "${ac_cv_struct_tm+set}" = set; then
7833 $as_echo_n "(cached) " >&6
7834 else
7835 cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h. */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 #include <sys/types.h>
7842 #include <time.h>
7845 main ()
7847 struct tm tm;
7848 int *p = &tm.tm_sec;
7849 return !p;
7851 return 0;
7853 _ACEOF
7854 rm -f conftest.$ac_objext
7855 if { (ac_try="$ac_compile"
7856 case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859 esac
7860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7861 $as_echo "$ac_try_echo") >&5
7862 (eval "$ac_compile") 2>conftest.er1
7863 ac_status=$?
7864 grep -v '^ *+' conftest.er1 >conftest.err
7865 rm -f conftest.er1
7866 cat conftest.err >&5
7867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); } && {
7869 test -z "$ac_c_werror_flag" ||
7870 test ! -s conftest.err
7871 } && test -s conftest.$ac_objext; then
7872 ac_cv_struct_tm=time.h
7873 else
7874 $as_echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7877 ac_cv_struct_tm=sys/time.h
7880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7883 $as_echo "$ac_cv_struct_tm" >&6; }
7884 if test $ac_cv_struct_tm = sys/time.h; then
7886 cat >>confdefs.h <<\_ACEOF
7887 #define TM_IN_SYS_TIME 1
7888 _ACEOF
7892 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7893 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7894 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7895 $as_echo_n "(cached) " >&6
7896 else
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 #include <sys/types.h>
7904 #include <$ac_cv_struct_tm>
7908 main ()
7910 static struct tm ac_aggr;
7911 if (ac_aggr.tm_zone)
7912 return 0;
7914 return 0;
7916 _ACEOF
7917 rm -f conftest.$ac_objext
7918 if { (ac_try="$ac_compile"
7919 case "(($ac_try" in
7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7922 esac
7923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7924 $as_echo "$ac_try_echo") >&5
7925 (eval "$ac_compile") 2>conftest.er1
7926 ac_status=$?
7927 grep -v '^ *+' conftest.er1 >conftest.err
7928 rm -f conftest.er1
7929 cat conftest.err >&5
7930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } && {
7932 test -z "$ac_c_werror_flag" ||
7933 test ! -s conftest.err
7934 } && test -s conftest.$ac_objext; then
7935 ac_cv_member_struct_tm_tm_zone=yes
7936 else
7937 $as_echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <sys/types.h>
7947 #include <$ac_cv_struct_tm>
7951 main ()
7953 static struct tm ac_aggr;
7954 if (sizeof ac_aggr.tm_zone)
7955 return 0;
7957 return 0;
7959 _ACEOF
7960 rm -f conftest.$ac_objext
7961 if { (ac_try="$ac_compile"
7962 case "(($ac_try" in
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7965 esac
7966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7967 $as_echo "$ac_try_echo") >&5
7968 (eval "$ac_compile") 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && {
7975 test -z "$ac_c_werror_flag" ||
7976 test ! -s conftest.err
7977 } && test -s conftest.$ac_objext; then
7978 ac_cv_member_struct_tm_tm_zone=yes
7979 else
7980 $as_echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 ac_cv_member_struct_tm_tm_zone=no
7986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7991 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7992 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
7993 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7995 cat >>confdefs.h <<_ACEOF
7996 #define HAVE_STRUCT_TM_TM_ZONE 1
7997 _ACEOF
8002 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8004 cat >>confdefs.h <<\_ACEOF
8005 #define HAVE_TM_ZONE 1
8006 _ACEOF
8008 else
8009 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8010 $as_echo_n "checking whether tzname is declared... " >&6; }
8011 if test "${ac_cv_have_decl_tzname+set}" = set; then
8012 $as_echo_n "(cached) " >&6
8013 else
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h. */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 #include <time.h>
8023 main ()
8025 #ifndef tzname
8026 (void) tzname;
8027 #endif
8030 return 0;
8032 _ACEOF
8033 rm -f conftest.$ac_objext
8034 if { (ac_try="$ac_compile"
8035 case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8038 esac
8039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8040 $as_echo "$ac_try_echo") >&5
8041 (eval "$ac_compile") 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } && {
8048 test -z "$ac_c_werror_flag" ||
8049 test ! -s conftest.err
8050 } && test -s conftest.$ac_objext; then
8051 ac_cv_have_decl_tzname=yes
8052 else
8053 $as_echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8056 ac_cv_have_decl_tzname=no
8059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8062 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8063 if test $ac_cv_have_decl_tzname = yes; then
8065 cat >>confdefs.h <<_ACEOF
8066 #define HAVE_DECL_TZNAME 1
8067 _ACEOF
8070 else
8071 cat >>confdefs.h <<_ACEOF
8072 #define HAVE_DECL_TZNAME 0
8073 _ACEOF
8079 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8080 $as_echo_n "checking for tzname... " >&6; }
8081 if test "${ac_cv_var_tzname+set}" = set; then
8082 $as_echo_n "(cached) " >&6
8083 else
8084 cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h. */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090 #include <time.h>
8091 #if !HAVE_DECL_TZNAME
8092 extern char *tzname[];
8093 #endif
8096 main ()
8098 return tzname[0][0];
8100 return 0;
8102 _ACEOF
8103 rm -f conftest.$ac_objext conftest$ac_exeext
8104 if { (ac_try="$ac_link"
8105 case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8108 esac
8109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8110 $as_echo "$ac_try_echo") >&5
8111 (eval "$ac_link") 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && {
8118 test -z "$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 } && test -s conftest$ac_exeext && {
8121 test "$cross_compiling" = yes ||
8122 $as_test_x conftest$ac_exeext
8123 }; then
8124 ac_cv_var_tzname=yes
8125 else
8126 $as_echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8129 ac_cv_var_tzname=no
8132 rm -rf conftest.dSYM
8133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8134 conftest$ac_exeext conftest.$ac_ext
8136 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8137 $as_echo "$ac_cv_var_tzname" >&6; }
8138 if test $ac_cv_var_tzname = yes; then
8140 cat >>confdefs.h <<\_ACEOF
8141 #define HAVE_TZNAME 1
8142 _ACEOF
8147 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8148 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8149 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8150 $as_echo_n "(cached) " >&6
8151 else
8152 cat >conftest.$ac_ext <<_ACEOF
8153 /* confdefs.h. */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8158 #include <time.h>
8161 main ()
8163 static struct tm ac_aggr;
8164 if (ac_aggr.tm_gmtoff)
8165 return 0;
8167 return 0;
8169 _ACEOF
8170 rm -f conftest.$ac_objext
8171 if { (ac_try="$ac_compile"
8172 case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8175 esac
8176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8177 $as_echo "$ac_try_echo") >&5
8178 (eval "$ac_compile") 2>conftest.er1
8179 ac_status=$?
8180 grep -v '^ *+' conftest.er1 >conftest.err
8181 rm -f conftest.er1
8182 cat conftest.err >&5
8183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } && {
8185 test -z "$ac_c_werror_flag" ||
8186 test ! -s conftest.err
8187 } && test -s conftest.$ac_objext; then
8188 ac_cv_member_struct_tm_tm_gmtoff=yes
8189 else
8190 $as_echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h. */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8199 #include <time.h>
8202 main ()
8204 static struct tm ac_aggr;
8205 if (sizeof ac_aggr.tm_gmtoff)
8206 return 0;
8208 return 0;
8210 _ACEOF
8211 rm -f conftest.$ac_objext
8212 if { (ac_try="$ac_compile"
8213 case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216 esac
8217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8218 $as_echo "$ac_try_echo") >&5
8219 (eval "$ac_compile") 2>conftest.er1
8220 ac_status=$?
8221 grep -v '^ *+' conftest.er1 >conftest.err
8222 rm -f conftest.er1
8223 cat conftest.err >&5
8224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } && {
8226 test -z "$ac_c_werror_flag" ||
8227 test ! -s conftest.err
8228 } && test -s conftest.$ac_objext; then
8229 ac_cv_member_struct_tm_tm_gmtoff=yes
8230 else
8231 $as_echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8234 ac_cv_member_struct_tm_tm_gmtoff=no
8237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8243 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8244 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8246 cat >>confdefs.h <<\_ACEOF
8247 #define HAVE_TM_GMTOFF 1
8248 _ACEOF
8252 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8253 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8254 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8255 $as_echo_n "(cached) " >&6
8256 else
8257 cat >conftest.$ac_ext <<_ACEOF
8258 /* confdefs.h. */
8259 _ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8263 $ac_includes_default
8264 #if HAVE_SYS_SOCKET_H
8265 #include <sys/socket.h>
8266 #endif
8267 #if HAVE_NET_IF_H
8268 #include <net/if.h>
8269 #endif
8272 main ()
8274 static struct ifreq ac_aggr;
8275 if (ac_aggr.ifr_flags)
8276 return 0;
8278 return 0;
8280 _ACEOF
8281 rm -f conftest.$ac_objext
8282 if { (ac_try="$ac_compile"
8283 case "(($ac_try" in
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8286 esac
8287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8288 $as_echo "$ac_try_echo") >&5
8289 (eval "$ac_compile") 2>conftest.er1
8290 ac_status=$?
8291 grep -v '^ *+' conftest.er1 >conftest.err
8292 rm -f conftest.er1
8293 cat conftest.err >&5
8294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } && {
8296 test -z "$ac_c_werror_flag" ||
8297 test ! -s conftest.err
8298 } && test -s conftest.$ac_objext; then
8299 ac_cv_member_struct_ifreq_ifr_flags=yes
8300 else
8301 $as_echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 cat >conftest.$ac_ext <<_ACEOF
8305 /* confdefs.h. */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 $ac_includes_default
8311 #if HAVE_SYS_SOCKET_H
8312 #include <sys/socket.h>
8313 #endif
8314 #if HAVE_NET_IF_H
8315 #include <net/if.h>
8316 #endif
8319 main ()
8321 static struct ifreq ac_aggr;
8322 if (sizeof ac_aggr.ifr_flags)
8323 return 0;
8325 return 0;
8327 _ACEOF
8328 rm -f conftest.$ac_objext
8329 if { (ac_try="$ac_compile"
8330 case "(($ac_try" in
8331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332 *) ac_try_echo=$ac_try;;
8333 esac
8334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8335 $as_echo "$ac_try_echo") >&5
8336 (eval "$ac_compile") 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest.$ac_objext; then
8346 ac_cv_member_struct_ifreq_ifr_flags=yes
8347 else
8348 $as_echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8351 ac_cv_member_struct_ifreq_ifr_flags=no
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8360 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8361 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8363 cat >>confdefs.h <<_ACEOF
8364 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8365 _ACEOF
8369 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8370 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8371 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8372 $as_echo_n "(cached) " >&6
8373 else
8374 cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h. */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 $ac_includes_default
8381 #if HAVE_SYS_SOCKET_H
8382 #include <sys/socket.h>
8383 #endif
8384 #if HAVE_NET_IF_H
8385 #include <net/if.h>
8386 #endif
8389 main ()
8391 static struct ifreq ac_aggr;
8392 if (ac_aggr.ifr_hwaddr)
8393 return 0;
8395 return 0;
8397 _ACEOF
8398 rm -f conftest.$ac_objext
8399 if { (ac_try="$ac_compile"
8400 case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403 esac
8404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8405 $as_echo "$ac_try_echo") >&5
8406 (eval "$ac_compile") 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } && {
8413 test -z "$ac_c_werror_flag" ||
8414 test ! -s conftest.err
8415 } && test -s conftest.$ac_objext; then
8416 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8417 else
8418 $as_echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h. */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 $ac_includes_default
8428 #if HAVE_SYS_SOCKET_H
8429 #include <sys/socket.h>
8430 #endif
8431 #if HAVE_NET_IF_H
8432 #include <net/if.h>
8433 #endif
8436 main ()
8438 static struct ifreq ac_aggr;
8439 if (sizeof ac_aggr.ifr_hwaddr)
8440 return 0;
8442 return 0;
8444 _ACEOF
8445 rm -f conftest.$ac_objext
8446 if { (ac_try="$ac_compile"
8447 case "(($ac_try" in
8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8450 esac
8451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8452 $as_echo "$ac_try_echo") >&5
8453 (eval "$ac_compile") 2>conftest.er1
8454 ac_status=$?
8455 grep -v '^ *+' conftest.er1 >conftest.err
8456 rm -f conftest.er1
8457 cat conftest.err >&5
8458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } && {
8460 test -z "$ac_c_werror_flag" ||
8461 test ! -s conftest.err
8462 } && test -s conftest.$ac_objext; then
8463 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8464 else
8465 $as_echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8468 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8477 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8478 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8480 cat >>confdefs.h <<_ACEOF
8481 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8482 _ACEOF
8486 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8487 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8488 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8489 $as_echo_n "(cached) " >&6
8490 else
8491 cat >conftest.$ac_ext <<_ACEOF
8492 /* confdefs.h. */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8497 $ac_includes_default
8498 #if HAVE_SYS_SOCKET_H
8499 #include <sys/socket.h>
8500 #endif
8501 #if HAVE_NET_IF_H
8502 #include <net/if.h>
8503 #endif
8506 main ()
8508 static struct ifreq ac_aggr;
8509 if (ac_aggr.ifr_netmask)
8510 return 0;
8512 return 0;
8514 _ACEOF
8515 rm -f conftest.$ac_objext
8516 if { (ac_try="$ac_compile"
8517 case "(($ac_try" in
8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519 *) ac_try_echo=$ac_try;;
8520 esac
8521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8522 $as_echo "$ac_try_echo") >&5
8523 (eval "$ac_compile") 2>conftest.er1
8524 ac_status=$?
8525 grep -v '^ *+' conftest.er1 >conftest.err
8526 rm -f conftest.er1
8527 cat conftest.err >&5
8528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } && {
8530 test -z "$ac_c_werror_flag" ||
8531 test ! -s conftest.err
8532 } && test -s conftest.$ac_objext; then
8533 ac_cv_member_struct_ifreq_ifr_netmask=yes
8534 else
8535 $as_echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8538 cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h. */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8544 $ac_includes_default
8545 #if HAVE_SYS_SOCKET_H
8546 #include <sys/socket.h>
8547 #endif
8548 #if HAVE_NET_IF_H
8549 #include <net/if.h>
8550 #endif
8553 main ()
8555 static struct ifreq ac_aggr;
8556 if (sizeof ac_aggr.ifr_netmask)
8557 return 0;
8559 return 0;
8561 _ACEOF
8562 rm -f conftest.$ac_objext
8563 if { (ac_try="$ac_compile"
8564 case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8567 esac
8568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8569 $as_echo "$ac_try_echo") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
8575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_c_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.$ac_objext; then
8580 ac_cv_member_struct_ifreq_ifr_netmask=yes
8581 else
8582 $as_echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_cv_member_struct_ifreq_ifr_netmask=no
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8594 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8595 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8597 cat >>confdefs.h <<_ACEOF
8598 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8599 _ACEOF
8603 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8604 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8605 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8606 $as_echo_n "(cached) " >&6
8607 else
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h. */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 $ac_includes_default
8615 #if HAVE_SYS_SOCKET_H
8616 #include <sys/socket.h>
8617 #endif
8618 #if HAVE_NET_IF_H
8619 #include <net/if.h>
8620 #endif
8623 main ()
8625 static struct ifreq ac_aggr;
8626 if (ac_aggr.ifr_broadaddr)
8627 return 0;
8629 return 0;
8631 _ACEOF
8632 rm -f conftest.$ac_objext
8633 if { (ac_try="$ac_compile"
8634 case "(($ac_try" in
8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8637 esac
8638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8639 $as_echo "$ac_try_echo") >&5
8640 (eval "$ac_compile") 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } && {
8647 test -z "$ac_c_werror_flag" ||
8648 test ! -s conftest.err
8649 } && test -s conftest.$ac_objext; then
8650 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8651 else
8652 $as_echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8655 cat >conftest.$ac_ext <<_ACEOF
8656 /* confdefs.h. */
8657 _ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8661 $ac_includes_default
8662 #if HAVE_SYS_SOCKET_H
8663 #include <sys/socket.h>
8664 #endif
8665 #if HAVE_NET_IF_H
8666 #include <net/if.h>
8667 #endif
8670 main ()
8672 static struct ifreq ac_aggr;
8673 if (sizeof ac_aggr.ifr_broadaddr)
8674 return 0;
8676 return 0;
8678 _ACEOF
8679 rm -f conftest.$ac_objext
8680 if { (ac_try="$ac_compile"
8681 case "(($ac_try" in
8682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683 *) ac_try_echo=$ac_try;;
8684 esac
8685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8686 $as_echo "$ac_try_echo") >&5
8687 (eval "$ac_compile") 2>conftest.er1
8688 ac_status=$?
8689 grep -v '^ *+' conftest.er1 >conftest.err
8690 rm -f conftest.er1
8691 cat conftest.err >&5
8692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } && {
8694 test -z "$ac_c_werror_flag" ||
8695 test ! -s conftest.err
8696 } && test -s conftest.$ac_objext; then
8697 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8698 else
8699 $as_echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8702 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8711 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8712 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8714 cat >>confdefs.h <<_ACEOF
8715 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8716 _ACEOF
8720 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8721 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8722 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8723 $as_echo_n "(cached) " >&6
8724 else
8725 cat >conftest.$ac_ext <<_ACEOF
8726 /* confdefs.h. */
8727 _ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 $ac_includes_default
8732 #if HAVE_SYS_SOCKET_H
8733 #include <sys/socket.h>
8734 #endif
8735 #if HAVE_NET_IF_H
8736 #include <net/if.h>
8737 #endif
8740 main ()
8742 static struct ifreq ac_aggr;
8743 if (ac_aggr.ifr_addr)
8744 return 0;
8746 return 0;
8748 _ACEOF
8749 rm -f conftest.$ac_objext
8750 if { (ac_try="$ac_compile"
8751 case "(($ac_try" in
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8754 esac
8755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8756 $as_echo "$ac_try_echo") >&5
8757 (eval "$ac_compile") 2>conftest.er1
8758 ac_status=$?
8759 grep -v '^ *+' conftest.er1 >conftest.err
8760 rm -f conftest.er1
8761 cat conftest.err >&5
8762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } && {
8764 test -z "$ac_c_werror_flag" ||
8765 test ! -s conftest.err
8766 } && test -s conftest.$ac_objext; then
8767 ac_cv_member_struct_ifreq_ifr_addr=yes
8768 else
8769 $as_echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 cat >conftest.$ac_ext <<_ACEOF
8773 /* confdefs.h. */
8774 _ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8778 $ac_includes_default
8779 #if HAVE_SYS_SOCKET_H
8780 #include <sys/socket.h>
8781 #endif
8782 #if HAVE_NET_IF_H
8783 #include <net/if.h>
8784 #endif
8787 main ()
8789 static struct ifreq ac_aggr;
8790 if (sizeof ac_aggr.ifr_addr)
8791 return 0;
8793 return 0;
8795 _ACEOF
8796 rm -f conftest.$ac_objext
8797 if { (ac_try="$ac_compile"
8798 case "(($ac_try" in
8799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8800 *) ac_try_echo=$ac_try;;
8801 esac
8802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8803 $as_echo "$ac_try_echo") >&5
8804 (eval "$ac_compile") 2>conftest.er1
8805 ac_status=$?
8806 grep -v '^ *+' conftest.er1 >conftest.err
8807 rm -f conftest.er1
8808 cat conftest.err >&5
8809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } && {
8811 test -z "$ac_c_werror_flag" ||
8812 test ! -s conftest.err
8813 } && test -s conftest.$ac_objext; then
8814 ac_cv_member_struct_ifreq_ifr_addr=yes
8815 else
8816 $as_echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8819 ac_cv_member_struct_ifreq_ifr_addr=no
8822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8827 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8828 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8829 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8831 cat >>confdefs.h <<_ACEOF
8832 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8833 _ACEOF
8840 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8841 $as_echo_n "checking for function prototypes... " >&6; }
8842 if test "$ac_cv_prog_cc_c89" != no; then
8843 { $as_echo "$as_me:$LINENO: result: yes" >&5
8844 $as_echo "yes" >&6; }
8846 cat >>confdefs.h <<\_ACEOF
8847 #define PROTOTYPES 1
8848 _ACEOF
8851 cat >>confdefs.h <<\_ACEOF
8852 #define __PROTOTYPES 1
8853 _ACEOF
8855 else
8856 { $as_echo "$as_me:$LINENO: result: no" >&5
8857 $as_echo "no" >&6; }
8860 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8861 $as_echo_n "checking for working volatile... " >&6; }
8862 if test "${ac_cv_c_volatile+set}" = set; then
8863 $as_echo_n "(cached) " >&6
8864 else
8865 cat >conftest.$ac_ext <<_ACEOF
8866 /* confdefs.h. */
8867 _ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8873 main ()
8876 volatile int x;
8877 int * volatile y = (int *) 0;
8878 return !x && !y;
8880 return 0;
8882 _ACEOF
8883 rm -f conftest.$ac_objext
8884 if { (ac_try="$ac_compile"
8885 case "(($ac_try" in
8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8888 esac
8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891 (eval "$ac_compile") 2>conftest.er1
8892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest.$ac_objext; then
8901 ac_cv_c_volatile=yes
8902 else
8903 $as_echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8906 ac_cv_c_volatile=no
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8912 $as_echo "$ac_cv_c_volatile" >&6; }
8913 if test $ac_cv_c_volatile = no; then
8915 cat >>confdefs.h <<\_ACEOF
8916 #define volatile /**/
8917 _ACEOF
8921 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8922 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8923 if test "${ac_cv_c_const+set}" = set; then
8924 $as_echo_n "(cached) " >&6
8925 else
8926 cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h. */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8934 main ()
8936 /* FIXME: Include the comments suggested by Paul. */
8937 #ifndef __cplusplus
8938 /* Ultrix mips cc rejects this. */
8939 typedef int charset[2];
8940 const charset cs;
8941 /* SunOS 4.1.1 cc rejects this. */
8942 char const *const *pcpcc;
8943 char **ppc;
8944 /* NEC SVR4.0.2 mips cc rejects this. */
8945 struct point {int x, y;};
8946 static struct point const zero = {0,0};
8947 /* AIX XL C 1.02.0.0 rejects this.
8948 It does not let you subtract one const X* pointer from another in
8949 an arm of an if-expression whose if-part is not a constant
8950 expression */
8951 const char *g = "string";
8952 pcpcc = &g + (g ? g-g : 0);
8953 /* HPUX 7.0 cc rejects these. */
8954 ++pcpcc;
8955 ppc = (char**) pcpcc;
8956 pcpcc = (char const *const *) ppc;
8957 { /* SCO 3.2v4 cc rejects this. */
8958 char *t;
8959 char const *s = 0 ? (char *) 0 : (char const *) 0;
8961 *t++ = 0;
8962 if (s) return 0;
8964 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8965 int x[] = {25, 17};
8966 const int *foo = &x[0];
8967 ++foo;
8969 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8970 typedef const int *iptr;
8971 iptr p = 0;
8972 ++p;
8974 { /* AIX XL C 1.02.0.0 rejects this saying
8975 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8976 struct s { int j; const int *ap[3]; };
8977 struct s *b; b->j = 5;
8979 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8980 const int foo = 10;
8981 if (!foo) return 0;
8983 return !cs[0] && !zero.x;
8984 #endif
8987 return 0;
8989 _ACEOF
8990 rm -f conftest.$ac_objext
8991 if { (ac_try="$ac_compile"
8992 case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8995 esac
8996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8997 $as_echo "$ac_try_echo") >&5
8998 (eval "$ac_compile") 2>conftest.er1
8999 ac_status=$?
9000 grep -v '^ *+' conftest.er1 >conftest.err
9001 rm -f conftest.er1
9002 cat conftest.err >&5
9003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } && {
9005 test -z "$ac_c_werror_flag" ||
9006 test ! -s conftest.err
9007 } && test -s conftest.$ac_objext; then
9008 ac_cv_c_const=yes
9009 else
9010 $as_echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9013 ac_cv_c_const=no
9016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9019 $as_echo "$ac_cv_c_const" >&6; }
9020 if test $ac_cv_c_const = no; then
9022 cat >>confdefs.h <<\_ACEOF
9023 #define const /**/
9024 _ACEOF
9028 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9029 $as_echo_n "checking for void * support... " >&6; }
9030 if test "${emacs_cv_void_star+set}" = set; then
9031 $as_echo_n "(cached) " >&6
9032 else
9033 cat >conftest.$ac_ext <<_ACEOF
9034 /* confdefs.h. */
9035 _ACEOF
9036 cat confdefs.h >>conftest.$ac_ext
9037 cat >>conftest.$ac_ext <<_ACEOF
9038 /* end confdefs.h. */
9041 main ()
9043 void * foo;
9045 return 0;
9047 _ACEOF
9048 rm -f conftest.$ac_objext
9049 if { (ac_try="$ac_compile"
9050 case "(($ac_try" in
9051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052 *) ac_try_echo=$ac_try;;
9053 esac
9054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9055 $as_echo "$ac_try_echo") >&5
9056 (eval "$ac_compile") 2>conftest.er1
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } && {
9063 test -z "$ac_c_werror_flag" ||
9064 test ! -s conftest.err
9065 } && test -s conftest.$ac_objext; then
9066 emacs_cv_void_star=yes
9067 else
9068 $as_echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 emacs_cv_void_star=no
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9077 $as_echo "$emacs_cv_void_star" >&6; }
9078 if test $emacs_cv_void_star = yes; then
9079 cat >>confdefs.h <<\_ACEOF
9080 #define POINTER_TYPE void
9081 _ACEOF
9083 else
9084 cat >>confdefs.h <<\_ACEOF
9085 #define POINTER_TYPE char
9086 _ACEOF
9094 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9095 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9096 set x ${MAKE-make}
9097 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9098 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9099 $as_echo_n "(cached) " >&6
9100 else
9101 cat >conftest.make <<\_ACEOF
9102 SHELL = /bin/sh
9103 all:
9104 @echo '@@@%%%=$(MAKE)=@@@%%%'
9105 _ACEOF
9106 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9107 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9108 *@@@%%%=?*=@@@%%%*)
9109 eval ac_cv_prog_make_${ac_make}_set=yes;;
9111 eval ac_cv_prog_make_${ac_make}_set=no;;
9112 esac
9113 rm -f conftest.make
9115 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9116 { $as_echo "$as_me:$LINENO: result: yes" >&5
9117 $as_echo "yes" >&6; }
9118 SET_MAKE=
9119 else
9120 { $as_echo "$as_me:$LINENO: result: no" >&5
9121 $as_echo "no" >&6; }
9122 SET_MAKE="MAKE=${MAKE-make}"
9126 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9127 $as_echo_n "checking for long file names... " >&6; }
9128 if test "${ac_cv_sys_long_file_names+set}" = set; then
9129 $as_echo_n "(cached) " >&6
9130 else
9131 ac_cv_sys_long_file_names=yes
9132 # Test for long file names in all the places we know might matter:
9133 # . the current directory, where building will happen
9134 # $prefix/lib where we will be installing things
9135 # $exec_prefix/lib likewise
9136 # $TMPDIR if set, where it might want to write temporary files
9137 # /tmp where it might want to write temporary files
9138 # /var/tmp likewise
9139 # /usr/tmp likewise
9140 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9141 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9142 # in the usual case where exec_prefix is '${prefix}'.
9143 case $ac_dir in #(
9144 . | /* | ?:[\\/]*) ;; #(
9145 *) continue;;
9146 esac
9147 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9148 ac_xdir=$ac_dir/cf$$
9149 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9150 ac_tf1=$ac_xdir/conftest9012345
9151 ac_tf2=$ac_xdir/conftest9012346
9152 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9153 ac_cv_sys_long_file_names=no
9154 rm -f -r "$ac_xdir" 2>/dev/null
9155 test $ac_cv_sys_long_file_names = no && break
9156 done
9158 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9159 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9160 if test $ac_cv_sys_long_file_names = yes; then
9162 cat >>confdefs.h <<\_ACEOF
9163 #define HAVE_LONG_FILE_NAMES 1
9164 _ACEOF
9169 #### Choose a window system.
9171 { $as_echo "$as_me:$LINENO: checking for X" >&5
9172 $as_echo_n "checking for X... " >&6; }
9175 # Check whether --with-x was given.
9176 if test "${with_x+set}" = set; then
9177 withval=$with_x;
9180 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9181 if test "x$with_x" = xno; then
9182 # The user explicitly disabled X.
9183 have_x=disabled
9184 else
9185 case $x_includes,$x_libraries in #(
9186 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9187 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9188 { (exit 1); exit 1; }; };; #(
9189 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9190 $as_echo_n "(cached) " >&6
9191 else
9192 # One or both of the vars are not set, and there is no cached value.
9193 ac_x_includes=no ac_x_libraries=no
9194 rm -f -r conftest.dir
9195 if mkdir conftest.dir; then
9196 cd conftest.dir
9197 cat >Imakefile <<'_ACEOF'
9198 incroot:
9199 @echo incroot='${INCROOT}'
9200 usrlibdir:
9201 @echo usrlibdir='${USRLIBDIR}'
9202 libdir:
9203 @echo libdir='${LIBDIR}'
9204 _ACEOF
9205 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9206 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9207 for ac_var in incroot usrlibdir libdir; do
9208 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9209 done
9210 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9211 for ac_extension in a so sl dylib la dll; do
9212 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9213 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9214 ac_im_usrlibdir=$ac_im_libdir; break
9216 done
9217 # Screen out bogus values from the imake configuration. They are
9218 # bogus both because they are the default anyway, and because
9219 # using them would break gcc on systems where it needs fixed includes.
9220 case $ac_im_incroot in
9221 /usr/include) ac_x_includes= ;;
9222 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9223 esac
9224 case $ac_im_usrlibdir in
9225 /usr/lib | /lib) ;;
9226 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9227 esac
9229 cd ..
9230 rm -f -r conftest.dir
9233 # Standard set of common directories for X headers.
9234 # Check X11 before X11Rn because it is often a symlink to the current release.
9235 ac_x_header_dirs='
9236 /usr/X11/include
9237 /usr/X11R6/include
9238 /usr/X11R5/include
9239 /usr/X11R4/include
9241 /usr/include/X11
9242 /usr/include/X11R6
9243 /usr/include/X11R5
9244 /usr/include/X11R4
9246 /usr/local/X11/include
9247 /usr/local/X11R6/include
9248 /usr/local/X11R5/include
9249 /usr/local/X11R4/include
9251 /usr/local/include/X11
9252 /usr/local/include/X11R6
9253 /usr/local/include/X11R5
9254 /usr/local/include/X11R4
9256 /usr/X386/include
9257 /usr/x386/include
9258 /usr/XFree86/include/X11
9260 /usr/include
9261 /usr/local/include
9262 /usr/unsupported/include
9263 /usr/athena/include
9264 /usr/local/x11r5/include
9265 /usr/lpp/Xamples/include
9267 /usr/openwin/include
9268 /usr/openwin/share/include'
9270 if test "$ac_x_includes" = no; then
9271 # Guess where to find include files, by looking for Xlib.h.
9272 # First, try using that file with no special directory specified.
9273 cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h. */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279 #include <X11/Xlib.h>
9280 _ACEOF
9281 if { (ac_try="$ac_cpp conftest.$ac_ext"
9282 case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9285 esac
9286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9287 $as_echo "$ac_try_echo") >&5
9288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9289 ac_status=$?
9290 grep -v '^ *+' conftest.er1 >conftest.err
9291 rm -f conftest.er1
9292 cat conftest.err >&5
9293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } >/dev/null && {
9295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9296 test ! -s conftest.err
9297 }; then
9298 # We can compile using X headers with no special include directory.
9299 ac_x_includes=
9300 else
9301 $as_echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9304 for ac_dir in $ac_x_header_dirs; do
9305 if test -r "$ac_dir/X11/Xlib.h"; then
9306 ac_x_includes=$ac_dir
9307 break
9309 done
9312 rm -f conftest.err conftest.$ac_ext
9313 fi # $ac_x_includes = no
9315 if test "$ac_x_libraries" = no; then
9316 # Check for the libraries.
9317 # See if we find them without any special options.
9318 # Don't add to $LIBS permanently.
9319 ac_save_LIBS=$LIBS
9320 LIBS="-lX11 $LIBS"
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h. */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9327 #include <X11/Xlib.h>
9329 main ()
9331 XrmInitialize ()
9333 return 0;
9335 _ACEOF
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (ac_try="$ac_link"
9338 case "(($ac_try" in
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9341 esac
9342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9343 $as_echo "$ac_try_echo") >&5
9344 (eval "$ac_link") 2>conftest.er1
9345 ac_status=$?
9346 grep -v '^ *+' conftest.er1 >conftest.err
9347 rm -f conftest.er1
9348 cat conftest.err >&5
9349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } && {
9351 test -z "$ac_c_werror_flag" ||
9352 test ! -s conftest.err
9353 } && test -s conftest$ac_exeext && {
9354 test "$cross_compiling" = yes ||
9355 $as_test_x conftest$ac_exeext
9356 }; then
9357 LIBS=$ac_save_LIBS
9358 # We can link X programs with no special library path.
9359 ac_x_libraries=
9360 else
9361 $as_echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9364 LIBS=$ac_save_LIBS
9365 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9367 # Don't even attempt the hair of trying to link an X program!
9368 for ac_extension in a so sl dylib la dll; do
9369 if test -r "$ac_dir/libX11.$ac_extension"; then
9370 ac_x_libraries=$ac_dir
9371 break 2
9373 done
9374 done
9377 rm -rf conftest.dSYM
9378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9379 conftest$ac_exeext conftest.$ac_ext
9380 fi # $ac_x_libraries = no
9382 case $ac_x_includes,$ac_x_libraries in #(
9383 no,* | *,no | *\'*)
9384 # Didn't find X, or a directory has "'" in its name.
9385 ac_cv_have_x="have_x=no";; #(
9387 # Record where we found X for the cache.
9388 ac_cv_have_x="have_x=yes\
9389 ac_x_includes='$ac_x_includes'\
9390 ac_x_libraries='$ac_x_libraries'"
9391 esac
9393 ;; #(
9394 *) have_x=yes;;
9395 esac
9396 eval "$ac_cv_have_x"
9397 fi # $with_x != no
9399 if test "$have_x" != yes; then
9400 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9401 $as_echo "$have_x" >&6; }
9402 no_x=yes
9403 else
9404 # If each of the values was on the command line, it overrides each guess.
9405 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9406 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9407 # Update the cache value to reflect the command line values.
9408 ac_cv_have_x="have_x=yes\
9409 ac_x_includes='$x_includes'\
9410 ac_x_libraries='$x_libraries'"
9411 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9412 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9415 if test "$no_x" = yes; then
9416 window_system=none
9417 else
9418 window_system=x11
9421 ## Workaround for bug in autoconf <= 2.62.
9422 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9423 ## No need to do anything special for these standard directories.
9424 ## This is an experiment, take it out if it causes problems.
9425 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9427 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9431 if test "${x_libraries}" != NONE; then
9432 if test -n "${x_libraries}"; then
9433 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9434 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9436 x_default_search_path=""
9437 x_search_path=${x_libraries}
9438 if test -z "${x_search_path}"; then
9439 x_search_path=/usr/lib
9441 for x_library in `echo ${x_search_path}: | \
9442 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9443 x_search_path="\
9444 ${x_library}/X11/%L/%T/%N%C%S:\
9445 ${x_library}/X11/%l/%T/%N%C%S:\
9446 ${x_library}/X11/%T/%N%C%S:\
9447 ${x_library}/X11/%L/%T/%N%S:\
9448 ${x_library}/X11/%l/%T/%N%S:\
9449 ${x_library}/X11/%T/%N%S"
9450 if test x"${x_default_search_path}" = x; then
9451 x_default_search_path=${x_search_path}
9452 else
9453 x_default_search_path="${x_search_path}:${x_default_search_path}"
9455 done
9457 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9458 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9461 if test x"${x_includes}" = x; then
9462 bitmapdir=/usr/include/X11/bitmaps
9463 else
9464 # accumulate include directories that have X11 bitmap subdirectories
9465 bmd_acc="dummyval"
9466 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9467 if test -d "${bmd}/X11/bitmaps"; then
9468 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9470 if test -d "${bmd}/bitmaps"; then
9471 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9473 done
9474 if test ${bmd_acc} != "dummyval"; then
9475 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9479 HAVE_NS=no
9480 NS_IMPL_COCOA=no
9481 NS_IMPL_GNUSTEP=no
9482 tmp_CPPFLAGS="$CPPFLAGS"
9483 tmp_CFLAGS="$CFLAGS"
9484 CPPFLAGS="$CPPFLAGS -x objective-c"
9485 CFLAGS="$CFLAGS -x objective-c"
9486 if test "${with_ns}" != no; then
9487 if test "${opsys}" = darwin; then
9488 NS_IMPL_COCOA=yes
9489 ns_appdir=`pwd`/nextstep/Emacs.app
9490 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9491 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9492 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9493 elif test -f $GNUSTEP_CONFIG_FILE; then
9494 NS_IMPL_GNUSTEP=yes
9495 ns_appdir=`pwd`/nextstep/Emacs.app
9496 ns_appbindir=`pwd`/nextstep/Emacs.app
9497 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9498 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9499 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9500 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9501 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9502 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9503 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9504 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9505 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9507 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9508 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9509 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9510 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9511 $as_echo_n "(cached) " >&6
9513 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9514 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9515 else
9516 # Is the header compilable?
9517 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9518 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9519 cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h. */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9525 $ac_includes_default
9526 #include <AppKit/AppKit.h>
9527 _ACEOF
9528 rm -f conftest.$ac_objext
9529 if { (ac_try="$ac_compile"
9530 case "(($ac_try" in
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9533 esac
9534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9535 $as_echo "$ac_try_echo") >&5
9536 (eval "$ac_compile") 2>conftest.er1
9537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest.$ac_objext; then
9546 ac_header_compiler=yes
9547 else
9548 $as_echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9551 ac_header_compiler=no
9554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9556 $as_echo "$ac_header_compiler" >&6; }
9558 # Is the header present?
9559 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9560 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9561 cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h. */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 #include <AppKit/AppKit.h>
9568 _ACEOF
9569 if { (ac_try="$ac_cpp conftest.$ac_ext"
9570 case "(($ac_try" in
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9573 esac
9574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9575 $as_echo "$ac_try_echo") >&5
9576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9577 ac_status=$?
9578 grep -v '^ *+' conftest.er1 >conftest.err
9579 rm -f conftest.er1
9580 cat conftest.err >&5
9581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } >/dev/null && {
9583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9584 test ! -s conftest.err
9585 }; then
9586 ac_header_preproc=yes
9587 else
9588 $as_echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9591 ac_header_preproc=no
9594 rm -f conftest.err conftest.$ac_ext
9595 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9596 $as_echo "$ac_header_preproc" >&6; }
9598 # So? What about this header?
9599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9600 yes:no: )
9601 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9602 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9603 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9604 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9605 ac_header_preproc=yes
9607 no:yes:* )
9608 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9609 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9610 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9611 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9612 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9613 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9614 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9615 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9616 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9617 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9618 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9619 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9622 esac
9623 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9624 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9625 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9626 $as_echo_n "(cached) " >&6
9627 else
9628 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9630 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9631 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9634 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9635 HAVE_NS=yes
9636 else
9637 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9638 files are missing or cannot be compiled." >&5
9639 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9640 files are missing or cannot be compiled." >&2;}
9641 { (exit 1); exit 1; }; }
9645 NS_HAVE_NSINTEGER=yes
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h. */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652 #include <Foundation/NSObjCRuntime.h>
9654 main ()
9656 NSInteger i;
9658 return 0;
9660 _ACEOF
9661 rm -f conftest.$ac_objext
9662 if { (ac_try="$ac_compile"
9663 case "(($ac_try" in
9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665 *) ac_try_echo=$ac_try;;
9666 esac
9667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9668 $as_echo "$ac_try_echo") >&5
9669 (eval "$ac_compile") 2>conftest.er1
9670 ac_status=$?
9671 grep -v '^ *+' conftest.er1 >conftest.err
9672 rm -f conftest.er1
9673 cat conftest.err >&5
9674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } && {
9676 test -z "$ac_c_werror_flag" ||
9677 test ! -s conftest.err
9678 } && test -s conftest.$ac_objext; then
9679 ns_have_nsinteger=yes
9680 else
9681 $as_echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9684 ns_have_nsinteger=no
9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9688 if test $ns_have_nsinteger = no; then
9689 NS_HAVE_NSINTEGER=no
9692 if test "${HAVE_NS}" = yes; then
9693 window_system=nextstep
9694 with_xft=no
9695 # set up packaging dirs
9696 exec_prefix=${ns_appbindir}
9697 libexecdir=${ns_appbindir}/libexec
9698 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9699 prefix=${ns_appresdir}
9702 CFLAGS="$tmp_CFLAGS"
9703 CPPFLAGS="$tmp_CPPFLAGS"
9705 case "${window_system}" in
9706 x11 )
9707 HAVE_X_WINDOWS=yes
9708 HAVE_X11=yes
9709 case "${with_x_toolkit}" in
9710 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9711 motif ) USE_X_TOOLKIT=MOTIF ;;
9712 gtk ) with_gtk=yes
9713 USE_X_TOOLKIT=none ;;
9714 no ) USE_X_TOOLKIT=none ;;
9715 * ) USE_X_TOOLKIT=maybe ;;
9716 esac
9718 nextstep | none )
9719 HAVE_X_WINDOWS=no
9720 HAVE_X11=no
9721 USE_X_TOOLKIT=none
9723 esac
9725 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9726 # Extract the first word of "X", so it can be a program name with args.
9727 set dummy X; ac_word=$2
9728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9729 $as_echo_n "checking for $ac_word... " >&6; }
9730 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9731 $as_echo_n "(cached) " >&6
9732 else
9733 if test -n "$HAVE_XSERVER"; then
9734 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9735 else
9736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737 for as_dir in $PATH
9739 IFS=$as_save_IFS
9740 test -z "$as_dir" && as_dir=.
9741 for ac_exec_ext in '' $ac_executable_extensions; do
9742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9743 ac_cv_prog_HAVE_XSERVER="true"
9744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9745 break 2
9747 done
9748 done
9749 IFS=$as_save_IFS
9751 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9754 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9755 if test -n "$HAVE_XSERVER"; then
9756 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9757 $as_echo "$HAVE_XSERVER" >&6; }
9758 else
9759 { $as_echo "$as_me:$LINENO: result: no" >&5
9760 $as_echo "no" >&6; }
9764 if test "$HAVE_XSERVER" = true ||
9765 test -n "$DISPLAY" ||
9766 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9767 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9768 were found. You should install the relevant development files for X
9769 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9770 sure you have development files for image handling, i.e.
9771 tiff, gif, jpeg, png and xpm.
9772 If you are sure you want Emacs compiled without X window support, pass
9773 --without-x
9774 to configure." >&5
9775 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9776 were found. You should install the relevant development files for X
9777 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9778 sure you have development files for image handling, i.e.
9779 tiff, gif, jpeg, png and xpm.
9780 If you are sure you want Emacs compiled without X window support, pass
9781 --without-x
9782 to configure." >&2;}
9783 { (exit 1); exit 1; }; }
9787 ### If we're using X11, we should use the X menu package.
9788 HAVE_MENUS=no
9789 case ${HAVE_X11} in
9790 yes ) HAVE_MENUS=yes ;;
9791 esac
9793 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9794 # Assume not, until told otherwise.
9795 GNU_MALLOC=yes
9796 doug_lea_malloc=yes
9797 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9798 $as_echo_n "checking for malloc_get_state... " >&6; }
9799 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9800 $as_echo_n "(cached) " >&6
9801 else
9802 cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h. */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9808 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9810 #define malloc_get_state innocuous_malloc_get_state
9812 /* System header to define __stub macros and hopefully few prototypes,
9813 which can conflict with char malloc_get_state (); below.
9814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9815 <limits.h> exists even on freestanding compilers. */
9817 #ifdef __STDC__
9818 # include <limits.h>
9819 #else
9820 # include <assert.h>
9821 #endif
9823 #undef malloc_get_state
9825 /* Override any GCC internal prototype to avoid an error.
9826 Use char because int might match the return type of a GCC
9827 builtin and then its argument prototype would still apply. */
9828 #ifdef __cplusplus
9829 extern "C"
9830 #endif
9831 char malloc_get_state ();
9832 /* The GNU C library defines this for functions which it implements
9833 to always fail with ENOSYS. Some functions are actually named
9834 something starting with __ and the normal name is an alias. */
9835 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9836 choke me
9837 #endif
9840 main ()
9842 return malloc_get_state ();
9844 return 0;
9846 _ACEOF
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (ac_try="$ac_link"
9849 case "(($ac_try" in
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9852 esac
9853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9854 $as_echo "$ac_try_echo") >&5
9855 (eval "$ac_link") 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } && {
9862 test -z "$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9864 } && test -s conftest$ac_exeext && {
9865 test "$cross_compiling" = yes ||
9866 $as_test_x conftest$ac_exeext
9867 }; then
9868 ac_cv_func_malloc_get_state=yes
9869 else
9870 $as_echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9873 ac_cv_func_malloc_get_state=no
9876 rm -rf conftest.dSYM
9877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9878 conftest$ac_exeext conftest.$ac_ext
9880 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9881 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9882 if test $ac_cv_func_malloc_get_state = yes; then
9884 else
9885 doug_lea_malloc=no
9888 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9889 $as_echo_n "checking for malloc_set_state... " >&6; }
9890 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9891 $as_echo_n "(cached) " >&6
9892 else
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h. */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9901 #define malloc_set_state innocuous_malloc_set_state
9903 /* System header to define __stub macros and hopefully few prototypes,
9904 which can conflict with char malloc_set_state (); below.
9905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9906 <limits.h> exists even on freestanding compilers. */
9908 #ifdef __STDC__
9909 # include <limits.h>
9910 #else
9911 # include <assert.h>
9912 #endif
9914 #undef malloc_set_state
9916 /* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9919 #ifdef __cplusplus
9920 extern "C"
9921 #endif
9922 char malloc_set_state ();
9923 /* The GNU C library defines this for functions which it implements
9924 to always fail with ENOSYS. Some functions are actually named
9925 something starting with __ and the normal name is an alias. */
9926 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9927 choke me
9928 #endif
9931 main ()
9933 return malloc_set_state ();
9935 return 0;
9937 _ACEOF
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9940 case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943 esac
9944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9945 $as_echo "$ac_try_echo") >&5
9946 (eval "$ac_link") 2>conftest.er1
9947 ac_status=$?
9948 grep -v '^ *+' conftest.er1 >conftest.err
9949 rm -f conftest.er1
9950 cat conftest.err >&5
9951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } && {
9953 test -z "$ac_c_werror_flag" ||
9954 test ! -s conftest.err
9955 } && test -s conftest$ac_exeext && {
9956 test "$cross_compiling" = yes ||
9957 $as_test_x conftest$ac_exeext
9958 }; then
9959 ac_cv_func_malloc_set_state=yes
9960 else
9961 $as_echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9964 ac_cv_func_malloc_set_state=no
9967 rm -rf conftest.dSYM
9968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9969 conftest$ac_exeext conftest.$ac_ext
9971 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9972 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
9973 if test $ac_cv_func_malloc_set_state = yes; then
9975 else
9976 doug_lea_malloc=no
9979 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9980 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9981 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9982 $as_echo_n "(cached) " >&6
9983 else
9984 cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h. */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 extern void (* __after_morecore_hook)();
9992 main ()
9994 __after_morecore_hook = 0
9996 return 0;
9998 _ACEOF
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (ac_try="$ac_link"
10001 case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004 esac
10005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10006 $as_echo "$ac_try_echo") >&5
10007 (eval "$ac_link") 2>conftest.er1
10008 ac_status=$?
10009 grep -v '^ *+' conftest.er1 >conftest.err
10010 rm -f conftest.er1
10011 cat conftest.err >&5
10012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } && {
10014 test -z "$ac_c_werror_flag" ||
10015 test ! -s conftest.err
10016 } && test -s conftest$ac_exeext && {
10017 test "$cross_compiling" = yes ||
10018 $as_test_x conftest$ac_exeext
10019 }; then
10020 emacs_cv_var___after_morecore_hook=yes
10021 else
10022 $as_echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 emacs_cv_var___after_morecore_hook=no
10028 rm -rf conftest.dSYM
10029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10030 conftest$ac_exeext conftest.$ac_ext
10032 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10033 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10034 if test $emacs_cv_var___after_morecore_hook = no; then
10035 doug_lea_malloc=no
10037 if test "${system_malloc}" = "yes"; then
10038 GNU_MALLOC=no
10039 GNU_MALLOC_reason="
10040 (The GNU allocators don't work with this system configuration.)"
10042 if test "$doug_lea_malloc" = "yes" ; then
10043 if test "$GNU_MALLOC" = yes ; then
10044 GNU_MALLOC_reason="
10045 (Using Doug Lea's new malloc from the GNU C Library.)"
10048 cat >>confdefs.h <<\_ACEOF
10049 #define DOUG_LEA_MALLOC 1
10050 _ACEOF
10054 if test x"${REL_ALLOC}" = x; then
10055 REL_ALLOC=${GNU_MALLOC}
10061 for ac_header in stdlib.h unistd.h
10063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10065 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10066 $as_echo_n "checking for $ac_header... " >&6; }
10067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10068 $as_echo_n "(cached) " >&6
10070 ac_res=`eval 'as_val=${'$as_ac_Header'}
10071 $as_echo "$as_val"'`
10072 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10073 $as_echo "$ac_res" >&6; }
10074 else
10075 # Is the header compilable?
10076 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10077 $as_echo_n "checking $ac_header usability... " >&6; }
10078 cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h. */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 $ac_includes_default
10085 #include <$ac_header>
10086 _ACEOF
10087 rm -f conftest.$ac_objext
10088 if { (ac_try="$ac_compile"
10089 case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10092 esac
10093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10094 $as_echo "$ac_try_echo") >&5
10095 (eval "$ac_compile") 2>conftest.er1
10096 ac_status=$?
10097 grep -v '^ *+' conftest.er1 >conftest.err
10098 rm -f conftest.er1
10099 cat conftest.err >&5
10100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } && {
10102 test -z "$ac_c_werror_flag" ||
10103 test ! -s conftest.err
10104 } && test -s conftest.$ac_objext; then
10105 ac_header_compiler=yes
10106 else
10107 $as_echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10110 ac_header_compiler=no
10113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10114 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10115 $as_echo "$ac_header_compiler" >&6; }
10117 # Is the header present?
10118 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10119 $as_echo_n "checking $ac_header presence... " >&6; }
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 #include <$ac_header>
10127 _ACEOF
10128 if { (ac_try="$ac_cpp conftest.$ac_ext"
10129 case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10132 esac
10133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10134 $as_echo "$ac_try_echo") >&5
10135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10136 ac_status=$?
10137 grep -v '^ *+' conftest.er1 >conftest.err
10138 rm -f conftest.er1
10139 cat conftest.err >&5
10140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } >/dev/null && {
10142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10143 test ! -s conftest.err
10144 }; then
10145 ac_header_preproc=yes
10146 else
10147 $as_echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10150 ac_header_preproc=no
10153 rm -f conftest.err conftest.$ac_ext
10154 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10155 $as_echo "$ac_header_preproc" >&6; }
10157 # So? What about this header?
10158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10159 yes:no: )
10160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10161 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10164 ac_header_preproc=yes
10166 no:yes:* )
10167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10168 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10170 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10172 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10174 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10176 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10178 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10181 esac
10182 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10183 $as_echo_n "checking for $ac_header... " >&6; }
10184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10185 $as_echo_n "(cached) " >&6
10186 else
10187 eval "$as_ac_Header=\$ac_header_preproc"
10189 ac_res=`eval 'as_val=${'$as_ac_Header'}
10190 $as_echo "$as_val"'`
10191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10192 $as_echo "$ac_res" >&6; }
10195 if test `eval 'as_val=${'$as_ac_Header'}
10196 $as_echo "$as_val"'` = yes; then
10197 cat >>confdefs.h <<_ACEOF
10198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10199 _ACEOF
10203 done
10206 for ac_func in getpagesize
10208 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10209 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10210 $as_echo_n "checking for $ac_func... " >&6; }
10211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10212 $as_echo_n "(cached) " >&6
10213 else
10214 cat >conftest.$ac_ext <<_ACEOF
10215 /* confdefs.h. */
10216 _ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10222 #define $ac_func innocuous_$ac_func
10224 /* System header to define __stub macros and hopefully few prototypes,
10225 which can conflict with char $ac_func (); below.
10226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10227 <limits.h> exists even on freestanding compilers. */
10229 #ifdef __STDC__
10230 # include <limits.h>
10231 #else
10232 # include <assert.h>
10233 #endif
10235 #undef $ac_func
10237 /* Override any GCC internal prototype to avoid an error.
10238 Use char because int might match the return type of a GCC
10239 builtin and then its argument prototype would still apply. */
10240 #ifdef __cplusplus
10241 extern "C"
10242 #endif
10243 char $ac_func ();
10244 /* The GNU C library defines this for functions which it implements
10245 to always fail with ENOSYS. Some functions are actually named
10246 something starting with __ and the normal name is an alias. */
10247 #if defined __stub_$ac_func || defined __stub___$ac_func
10248 choke me
10249 #endif
10252 main ()
10254 return $ac_func ();
10256 return 0;
10258 _ACEOF
10259 rm -f conftest.$ac_objext conftest$ac_exeext
10260 if { (ac_try="$ac_link"
10261 case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10264 esac
10265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10266 $as_echo "$ac_try_echo") >&5
10267 (eval "$ac_link") 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } && {
10274 test -z "$ac_c_werror_flag" ||
10275 test ! -s conftest.err
10276 } && test -s conftest$ac_exeext && {
10277 test "$cross_compiling" = yes ||
10278 $as_test_x conftest$ac_exeext
10279 }; then
10280 eval "$as_ac_var=yes"
10281 else
10282 $as_echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10285 eval "$as_ac_var=no"
10288 rm -rf conftest.dSYM
10289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10290 conftest$ac_exeext conftest.$ac_ext
10292 ac_res=`eval 'as_val=${'$as_ac_var'}
10293 $as_echo "$as_val"'`
10294 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10295 $as_echo "$ac_res" >&6; }
10296 if test `eval 'as_val=${'$as_ac_var'}
10297 $as_echo "$as_val"'` = yes; then
10298 cat >>confdefs.h <<_ACEOF
10299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10300 _ACEOF
10303 done
10305 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10306 $as_echo_n "checking for working mmap... " >&6; }
10307 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10308 $as_echo_n "(cached) " >&6
10309 else
10310 if test "$cross_compiling" = yes; then
10311 ac_cv_func_mmap_fixed_mapped=no
10312 else
10313 cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h. */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10319 $ac_includes_default
10320 /* malloc might have been renamed as rpl_malloc. */
10321 #undef malloc
10323 /* Thanks to Mike Haertel and Jim Avera for this test.
10324 Here is a matrix of mmap possibilities:
10325 mmap private not fixed
10326 mmap private fixed at somewhere currently unmapped
10327 mmap private fixed at somewhere already mapped
10328 mmap shared not fixed
10329 mmap shared fixed at somewhere currently unmapped
10330 mmap shared fixed at somewhere already mapped
10331 For private mappings, we should verify that changes cannot be read()
10332 back from the file, nor mmap's back from the file at a different
10333 address. (There have been systems where private was not correctly
10334 implemented like the infamous i386 svr4.0, and systems where the
10335 VM page cache was not coherent with the file system buffer cache
10336 like early versions of FreeBSD and possibly contemporary NetBSD.)
10337 For shared mappings, we should conversely verify that changes get
10338 propagated back to all the places they're supposed to be.
10340 Grep wants private fixed already mapped.
10341 The main things grep needs to know about mmap are:
10342 * does it exist and is it safe to write into the mmap'd area
10343 * how to use it (BSD variants) */
10345 #include <fcntl.h>
10346 #include <sys/mman.h>
10348 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10349 char *malloc ();
10350 #endif
10352 /* This mess was copied from the GNU getpagesize.h. */
10353 #ifndef HAVE_GETPAGESIZE
10354 /* Assume that all systems that can run configure have sys/param.h. */
10355 # ifndef HAVE_SYS_PARAM_H
10356 # define HAVE_SYS_PARAM_H 1
10357 # endif
10359 # ifdef _SC_PAGESIZE
10360 # define getpagesize() sysconf(_SC_PAGESIZE)
10361 # else /* no _SC_PAGESIZE */
10362 # ifdef HAVE_SYS_PARAM_H
10363 # include <sys/param.h>
10364 # ifdef EXEC_PAGESIZE
10365 # define getpagesize() EXEC_PAGESIZE
10366 # else /* no EXEC_PAGESIZE */
10367 # ifdef NBPG
10368 # define getpagesize() NBPG * CLSIZE
10369 # ifndef CLSIZE
10370 # define CLSIZE 1
10371 # endif /* no CLSIZE */
10372 # else /* no NBPG */
10373 # ifdef NBPC
10374 # define getpagesize() NBPC
10375 # else /* no NBPC */
10376 # ifdef PAGESIZE
10377 # define getpagesize() PAGESIZE
10378 # endif /* PAGESIZE */
10379 # endif /* no NBPC */
10380 # endif /* no NBPG */
10381 # endif /* no EXEC_PAGESIZE */
10382 # else /* no HAVE_SYS_PARAM_H */
10383 # define getpagesize() 8192 /* punt totally */
10384 # endif /* no HAVE_SYS_PARAM_H */
10385 # endif /* no _SC_PAGESIZE */
10387 #endif /* no HAVE_GETPAGESIZE */
10390 main ()
10392 char *data, *data2, *data3;
10393 int i, pagesize;
10394 int fd;
10396 pagesize = getpagesize ();
10398 /* First, make a file with some known garbage in it. */
10399 data = (char *) malloc (pagesize);
10400 if (!data)
10401 return 1;
10402 for (i = 0; i < pagesize; ++i)
10403 *(data + i) = rand ();
10404 umask (0);
10405 fd = creat ("conftest.mmap", 0600);
10406 if (fd < 0)
10407 return 1;
10408 if (write (fd, data, pagesize) != pagesize)
10409 return 1;
10410 close (fd);
10412 /* Next, try to mmap the file at a fixed address which already has
10413 something else allocated at it. If we can, also make sure that
10414 we see the same garbage. */
10415 fd = open ("conftest.mmap", O_RDWR);
10416 if (fd < 0)
10417 return 1;
10418 data2 = (char *) malloc (2 * pagesize);
10419 if (!data2)
10420 return 1;
10421 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10422 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10423 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10424 return 1;
10425 for (i = 0; i < pagesize; ++i)
10426 if (*(data + i) != *(data2 + i))
10427 return 1;
10429 /* Finally, make sure that changes to the mapped area do not
10430 percolate back to the file as seen by read(). (This is a bug on
10431 some variants of i386 svr4.0.) */
10432 for (i = 0; i < pagesize; ++i)
10433 *(data2 + i) = *(data2 + i) + 1;
10434 data3 = (char *) malloc (pagesize);
10435 if (!data3)
10436 return 1;
10437 if (read (fd, data3, pagesize) != pagesize)
10438 return 1;
10439 for (i = 0; i < pagesize; ++i)
10440 if (*(data + i) != *(data3 + i))
10441 return 1;
10442 close (fd);
10443 return 0;
10445 _ACEOF
10446 rm -f conftest$ac_exeext
10447 if { (ac_try="$ac_link"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10451 esac
10452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10453 $as_echo "$ac_try_echo") >&5
10454 (eval "$ac_link") 2>&5
10455 ac_status=$?
10456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10458 { (case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10461 esac
10462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10463 $as_echo "$ac_try_echo") >&5
10464 (eval "$ac_try") 2>&5
10465 ac_status=$?
10466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; }; then
10468 ac_cv_func_mmap_fixed_mapped=yes
10469 else
10470 $as_echo "$as_me: program exited with status $ac_status" >&5
10471 $as_echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ( exit $ac_status )
10475 ac_cv_func_mmap_fixed_mapped=no
10477 rm -rf conftest.dSYM
10478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10483 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10484 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10485 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10487 cat >>confdefs.h <<\_ACEOF
10488 #define HAVE_MMAP 1
10489 _ACEOF
10492 rm -f conftest.mmap
10494 if test $use_mmap_for_buffers = yes; then
10495 REL_ALLOC=no
10498 LIBS="$libsrc_libs $LIBS"
10501 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10502 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10503 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10504 $as_echo_n "(cached) " >&6
10505 else
10506 ac_check_lib_save_LIBS=$LIBS
10507 LIBS="-ldnet $LIBS"
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h. */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10515 /* Override any GCC internal prototype to avoid an error.
10516 Use char because int might match the return type of a GCC
10517 builtin and then its argument prototype would still apply. */
10518 #ifdef __cplusplus
10519 extern "C"
10520 #endif
10521 char dnet_ntoa ();
10523 main ()
10525 return dnet_ntoa ();
10527 return 0;
10529 _ACEOF
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535 esac
10536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10537 $as_echo "$ac_try_echo") >&5
10538 (eval "$ac_link") 2>conftest.er1
10539 ac_status=$?
10540 grep -v '^ *+' conftest.er1 >conftest.err
10541 rm -f conftest.er1
10542 cat conftest.err >&5
10543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest$ac_exeext && {
10548 test "$cross_compiling" = yes ||
10549 $as_test_x conftest$ac_exeext
10550 }; then
10551 ac_cv_lib_dnet_dnet_ntoa=yes
10552 else
10553 $as_echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ac_cv_lib_dnet_dnet_ntoa=no
10559 rm -rf conftest.dSYM
10560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10561 conftest$ac_exeext conftest.$ac_ext
10562 LIBS=$ac_check_lib_save_LIBS
10564 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10565 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10566 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10567 cat >>confdefs.h <<_ACEOF
10568 #define HAVE_LIBDNET 1
10569 _ACEOF
10571 LIBS="-ldnet $LIBS"
10576 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10577 $as_echo_n "checking for main in -lXbsd... " >&6; }
10578 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10579 $as_echo_n "(cached) " >&6
10580 else
10581 ac_check_lib_save_LIBS=$LIBS
10582 LIBS="-lXbsd $LIBS"
10583 cat >conftest.$ac_ext <<_ACEOF
10584 /* confdefs.h. */
10585 _ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h. */
10592 main ()
10594 return main ();
10596 return 0;
10598 _ACEOF
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (ac_try="$ac_link"
10601 case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10604 esac
10605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10606 $as_echo "$ac_try_echo") >&5
10607 (eval "$ac_link") 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest$ac_exeext && {
10617 test "$cross_compiling" = yes ||
10618 $as_test_x conftest$ac_exeext
10619 }; then
10620 ac_cv_lib_Xbsd_main=yes
10621 else
10622 $as_echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10625 ac_cv_lib_Xbsd_main=no
10628 rm -rf conftest.dSYM
10629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10630 conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10633 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10634 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10635 if test $ac_cv_lib_Xbsd_main = yes; then
10636 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10641 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10642 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10643 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10644 $as_echo_n "(cached) " >&6
10645 else
10646 ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-lpthreads $LIBS"
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h. */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10655 /* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 char cma_open ();
10663 main ()
10665 return cma_open ();
10667 return 0;
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (ac_try="$ac_link"
10672 case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10675 esac
10676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10677 $as_echo "$ac_try_echo") >&5
10678 (eval "$ac_link") 2>conftest.er1
10679 ac_status=$?
10680 grep -v '^ *+' conftest.er1 >conftest.err
10681 rm -f conftest.er1
10682 cat conftest.err >&5
10683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } && {
10685 test -z "$ac_c_werror_flag" ||
10686 test ! -s conftest.err
10687 } && test -s conftest$ac_exeext && {
10688 test "$cross_compiling" = yes ||
10689 $as_test_x conftest$ac_exeext
10690 }; then
10691 ac_cv_lib_pthreads_cma_open=yes
10692 else
10693 $as_echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10696 ac_cv_lib_pthreads_cma_open=no
10699 rm -rf conftest.dSYM
10700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10701 conftest$ac_exeext conftest.$ac_ext
10702 LIBS=$ac_check_lib_save_LIBS
10704 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10705 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10706 if test $ac_cv_lib_pthreads_cma_open = yes; then
10707 cat >>confdefs.h <<_ACEOF
10708 #define HAVE_LIBPTHREADS 1
10709 _ACEOF
10711 LIBS="-lpthreads $LIBS"
10717 case ${host_os} in
10718 aix*)
10719 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10720 $as_echo_n "checking for -bbigtoc option... " >&6; }
10721 if test "${gdb_cv_bigtoc+set}" = set; then
10722 $as_echo_n "(cached) " >&6
10723 else
10725 case $GCC in
10726 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10727 *) gdb_cv_bigtoc=-bbigtoc ;;
10728 esac
10730 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h. */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10739 main ()
10741 int i;
10743 return 0;
10745 _ACEOF
10746 rm -f conftest.$ac_objext conftest$ac_exeext
10747 if { (ac_try="$ac_link"
10748 case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10751 esac
10752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10753 $as_echo "$ac_try_echo") >&5
10754 (eval "$ac_link") 2>conftest.er1
10755 ac_status=$?
10756 grep -v '^ *+' conftest.er1 >conftest.err
10757 rm -f conftest.er1
10758 cat conftest.err >&5
10759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && {
10761 test -z "$ac_c_werror_flag" ||
10762 test ! -s conftest.err
10763 } && test -s conftest$ac_exeext && {
10764 test "$cross_compiling" = yes ||
10765 $as_test_x conftest$ac_exeext
10766 }; then
10768 else
10769 $as_echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10772 gdb_cv_bigtoc=
10775 rm -rf conftest.dSYM
10776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10777 conftest$ac_exeext conftest.$ac_ext
10780 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10781 $as_echo "$gdb_cv_bigtoc" >&6; }
10783 esac
10785 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10786 # used for the tests that follow. We set them back to REAL_CFLAGS and
10787 # REAL_CPPFLAGS later on.
10789 REAL_CPPFLAGS="$CPPFLAGS"
10791 if test "${HAVE_X11}" = "yes"; then
10792 DEFS="$C_SWITCH_X_SITE $DEFS"
10793 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10794 LIBS="$LIBX $LIBS"
10795 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10796 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10798 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10799 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10800 # but it's more convenient here to set LD_RUN_PATH
10801 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10802 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10803 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10804 export LD_RUN_PATH
10807 if test "${opsys}" = "gnu-linux"; then
10808 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10809 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10810 cat >conftest.$ac_ext <<_ACEOF
10811 /* confdefs.h. */
10812 _ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h. */
10818 main ()
10820 XOpenDisplay ("foo");
10822 return 0;
10824 _ACEOF
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10830 esac
10831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10832 $as_echo "$ac_try_echo") >&5
10833 (eval "$ac_link") 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest$ac_exeext && {
10843 test "$cross_compiling" = yes ||
10844 $as_test_x conftest$ac_exeext
10845 }; then
10846 xlinux_first_failure=no
10847 else
10848 $as_echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 xlinux_first_failure=yes
10854 rm -rf conftest.dSYM
10855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10856 conftest$ac_exeext conftest.$ac_ext
10857 if test "${xlinux_first_failure}" = "yes"; then
10858 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10859 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10860 OLD_CPPFLAGS="$CPPFLAGS"
10861 OLD_LIBS="$LIBS"
10862 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10863 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10864 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10865 LIBS="$LIBS -b i486-linuxaout"
10866 cat >conftest.$ac_ext <<_ACEOF
10867 /* confdefs.h. */
10868 _ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10874 main ()
10876 XOpenDisplay ("foo");
10878 return 0;
10880 _ACEOF
10881 rm -f conftest.$ac_objext conftest$ac_exeext
10882 if { (ac_try="$ac_link"
10883 case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10886 esac
10887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10888 $as_echo "$ac_try_echo") >&5
10889 (eval "$ac_link") 2>conftest.er1
10890 ac_status=$?
10891 grep -v '^ *+' conftest.er1 >conftest.err
10892 rm -f conftest.er1
10893 cat conftest.err >&5
10894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } && {
10896 test -z "$ac_c_werror_flag" ||
10897 test ! -s conftest.err
10898 } && test -s conftest$ac_exeext && {
10899 test "$cross_compiling" = yes ||
10900 $as_test_x conftest$ac_exeext
10901 }; then
10902 xlinux_second_failure=no
10903 else
10904 $as_echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10907 xlinux_second_failure=yes
10910 rm -rf conftest.dSYM
10911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10912 conftest$ac_exeext conftest.$ac_ext
10913 if test "${xlinux_second_failure}" = "yes"; then
10914 # If we get the same failure with -b, there is no use adding -b.
10915 # So take it out. This plays safe.
10916 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10917 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10918 CPPFLAGS="$OLD_CPPFLAGS"
10919 LIBS="$OLD_LIBS"
10920 { $as_echo "$as_me:$LINENO: result: no" >&5
10921 $as_echo "no" >&6; }
10922 else
10923 { $as_echo "$as_me:$LINENO: result: yes" >&5
10924 $as_echo "yes" >&6; }
10926 else
10927 { $as_echo "$as_me:$LINENO: result: no" >&5
10928 $as_echo "no" >&6; }
10932 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10933 # header files included from there.
10934 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
10935 $as_echo_n "checking for Xkb... " >&6; }
10936 cat >conftest.$ac_ext <<_ACEOF
10937 /* confdefs.h. */
10938 _ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h. */
10942 #include <X11/Xlib.h>
10943 #include <X11/XKBlib.h>
10945 main ()
10947 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10949 return 0;
10951 _ACEOF
10952 rm -f conftest.$ac_objext conftest$ac_exeext
10953 if { (ac_try="$ac_link"
10954 case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10957 esac
10958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10959 $as_echo "$ac_try_echo") >&5
10960 (eval "$ac_link") 2>conftest.er1
10961 ac_status=$?
10962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
10965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } && {
10967 test -z "$ac_c_werror_flag" ||
10968 test ! -s conftest.err
10969 } && test -s conftest$ac_exeext && {
10970 test "$cross_compiling" = yes ||
10971 $as_test_x conftest$ac_exeext
10972 }; then
10973 emacs_xkb=yes
10974 else
10975 $as_echo "$as_me: failed program was:" >&5
10976 sed 's/^/| /' conftest.$ac_ext >&5
10978 emacs_xkb=no
10981 rm -rf conftest.dSYM
10982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10983 conftest$ac_exeext conftest.$ac_ext
10984 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10985 $as_echo "$emacs_xkb" >&6; }
10986 if test $emacs_xkb = yes; then
10988 cat >>confdefs.h <<\_ACEOF
10989 #define HAVE_XKBGETKEYBOARD 1
10990 _ACEOF
10998 for ac_func in XrmSetDatabase XScreenResourceString \
10999 XScreenNumberOfScreen XSetWMProtocols
11001 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11002 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11003 $as_echo_n "checking for $ac_func... " >&6; }
11004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11005 $as_echo_n "(cached) " >&6
11006 else
11007 cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h. */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11015 #define $ac_func innocuous_$ac_func
11017 /* System header to define __stub macros and hopefully few prototypes,
11018 which can conflict with char $ac_func (); below.
11019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11020 <limits.h> exists even on freestanding compilers. */
11022 #ifdef __STDC__
11023 # include <limits.h>
11024 #else
11025 # include <assert.h>
11026 #endif
11028 #undef $ac_func
11030 /* Override any GCC internal prototype to avoid an error.
11031 Use char because int might match the return type of a GCC
11032 builtin and then its argument prototype would still apply. */
11033 #ifdef __cplusplus
11034 extern "C"
11035 #endif
11036 char $ac_func ();
11037 /* The GNU C library defines this for functions which it implements
11038 to always fail with ENOSYS. Some functions are actually named
11039 something starting with __ and the normal name is an alias. */
11040 #if defined __stub_$ac_func || defined __stub___$ac_func
11041 choke me
11042 #endif
11045 main ()
11047 return $ac_func ();
11049 return 0;
11051 _ACEOF
11052 rm -f conftest.$ac_objext conftest$ac_exeext
11053 if { (ac_try="$ac_link"
11054 case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057 esac
11058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11059 $as_echo "$ac_try_echo") >&5
11060 (eval "$ac_link") 2>conftest.er1
11061 ac_status=$?
11062 grep -v '^ *+' conftest.er1 >conftest.err
11063 rm -f conftest.er1
11064 cat conftest.err >&5
11065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } && {
11067 test -z "$ac_c_werror_flag" ||
11068 test ! -s conftest.err
11069 } && test -s conftest$ac_exeext && {
11070 test "$cross_compiling" = yes ||
11071 $as_test_x conftest$ac_exeext
11072 }; then
11073 eval "$as_ac_var=yes"
11074 else
11075 $as_echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 eval "$as_ac_var=no"
11081 rm -rf conftest.dSYM
11082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11083 conftest$ac_exeext conftest.$ac_ext
11085 ac_res=`eval 'as_val=${'$as_ac_var'}
11086 $as_echo "$as_val"'`
11087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11088 $as_echo "$ac_res" >&6; }
11089 if test `eval 'as_val=${'$as_ac_var'}
11090 $as_echo "$as_val"'` = yes; then
11091 cat >>confdefs.h <<_ACEOF
11092 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11093 _ACEOF
11096 done
11100 if test "${window_system}" = "x11"; then
11101 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11102 $as_echo_n "checking X11 version 6... " >&6; }
11103 if test "${emacs_cv_x11_version_6+set}" = set; then
11104 $as_echo_n "(cached) " >&6
11105 else
11106 cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h. */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11112 #include <X11/Xlib.h>
11114 main ()
11116 #if XlibSpecificationRelease < 6
11117 fail;
11118 #endif
11121 return 0;
11123 _ACEOF
11124 rm -f conftest.$ac_objext conftest$ac_exeext
11125 if { (ac_try="$ac_link"
11126 case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11129 esac
11130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11131 $as_echo "$ac_try_echo") >&5
11132 (eval "$ac_link") 2>conftest.er1
11133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } && {
11139 test -z "$ac_c_werror_flag" ||
11140 test ! -s conftest.err
11141 } && test -s conftest$ac_exeext && {
11142 test "$cross_compiling" = yes ||
11143 $as_test_x conftest$ac_exeext
11144 }; then
11145 emacs_cv_x11_version_6=yes
11146 else
11147 $as_echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 emacs_cv_x11_version_6=no
11153 rm -rf conftest.dSYM
11154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11155 conftest$ac_exeext conftest.$ac_ext
11158 if test $emacs_cv_x11_version_6 = yes; then
11159 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11160 $as_echo "6 or newer" >&6; }
11162 cat >>confdefs.h <<\_ACEOF
11163 #define HAVE_X11R6 1
11164 _ACEOF
11166 else
11167 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11168 $as_echo "before 6" >&6; }
11173 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11174 HAVE_RSVG=no
11175 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11176 if test "${with_rsvg}" != "no"; then
11177 RSVG_REQUIRED=2.11.0
11178 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11181 succeeded=no
11183 # Extract the first word of "pkg-config", so it can be a program name with args.
11184 set dummy pkg-config; ac_word=$2
11185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11186 $as_echo_n "checking for $ac_word... " >&6; }
11187 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11188 $as_echo_n "(cached) " >&6
11189 else
11190 case $PKG_CONFIG in
11191 [\\/]* | ?:[\\/]*)
11192 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196 for as_dir in $PATH
11198 IFS=$as_save_IFS
11199 test -z "$as_dir" && as_dir=.
11200 for ac_exec_ext in '' $ac_executable_extensions; do
11201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11202 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11204 break 2
11206 done
11207 done
11208 IFS=$as_save_IFS
11210 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11212 esac
11214 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11215 if test -n "$PKG_CONFIG"; then
11216 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11217 $as_echo "$PKG_CONFIG" >&6; }
11218 else
11219 { $as_echo "$as_me:$LINENO: result: no" >&5
11220 $as_echo "no" >&6; }
11225 if test "$PKG_CONFIG" = "no" ; then
11227 else
11228 PKG_CONFIG_MIN_VERSION=0.9.0
11229 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11230 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11231 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11233 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11234 { $as_echo "$as_me:$LINENO: result: yes" >&5
11235 $as_echo "yes" >&6; }
11236 succeeded=yes
11238 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11239 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11240 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11241 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11242 $as_echo "$RSVG_CFLAGS" >&6; }
11244 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11245 $as_echo_n "checking RSVG_LIBS... " >&6; }
11246 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11247 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11248 $as_echo "$RSVG_LIBS" >&6; }
11249 else
11250 { $as_echo "$as_me:$LINENO: result: no" >&5
11251 $as_echo "no" >&6; }
11252 RSVG_CFLAGS=""
11253 RSVG_LIBS=""
11254 ## If we have a custom action on failure, don't print errors, but
11255 ## do set a variable so people can do so.
11256 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11262 else
11263 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11264 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11268 if test $succeeded = yes; then
11270 else
11277 if test ".${RSVG_CFLAGS}" != "."; then
11278 HAVE_RSVG=yes
11280 cat >>confdefs.h <<\_ACEOF
11281 #define HAVE_RSVG 1
11282 _ACEOF
11284 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11285 LIBS="$RSVG_LIBS $LIBS"
11291 HAVE_GTK=no
11292 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11293 GLIB_REQUIRED=2.6
11294 GTK_REQUIRED=2.6
11295 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11298 succeeded=no
11300 # Extract the first word of "pkg-config", so it can be a program name with args.
11301 set dummy pkg-config; ac_word=$2
11302 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11303 $as_echo_n "checking for $ac_word... " >&6; }
11304 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11305 $as_echo_n "(cached) " >&6
11306 else
11307 case $PKG_CONFIG in
11308 [\\/]* | ?:[\\/]*)
11309 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313 for as_dir in $PATH
11315 IFS=$as_save_IFS
11316 test -z "$as_dir" && as_dir=.
11317 for ac_exec_ext in '' $ac_executable_extensions; do
11318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11319 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11321 break 2
11323 done
11324 done
11325 IFS=$as_save_IFS
11327 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11329 esac
11331 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11332 if test -n "$PKG_CONFIG"; then
11333 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11334 $as_echo "$PKG_CONFIG" >&6; }
11335 else
11336 { $as_echo "$as_me:$LINENO: result: no" >&5
11337 $as_echo "no" >&6; }
11342 if test "$PKG_CONFIG" = "no" ; then
11343 pkg_check_gtk=no
11344 else
11345 PKG_CONFIG_MIN_VERSION=0.9.0
11346 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11347 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11348 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11350 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11351 { $as_echo "$as_me:$LINENO: result: yes" >&5
11352 $as_echo "yes" >&6; }
11353 succeeded=yes
11355 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11356 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11357 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11358 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11359 $as_echo "$GTK_CFLAGS" >&6; }
11361 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11362 $as_echo_n "checking GTK_LIBS... " >&6; }
11363 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11364 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11365 $as_echo "$GTK_LIBS" >&6; }
11366 else
11367 { $as_echo "$as_me:$LINENO: result: no" >&5
11368 $as_echo "no" >&6; }
11369 GTK_CFLAGS=""
11370 GTK_LIBS=""
11371 ## If we have a custom action on failure, don't print errors, but
11372 ## do set a variable so people can do so.
11373 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11379 else
11380 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11381 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11385 if test $succeeded = yes; then
11386 pkg_check_gtk=yes
11387 else
11388 pkg_check_gtk=no
11391 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11392 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11393 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11394 { (exit 1); exit 1; }; }
11399 if test x"$pkg_check_gtk" = xyes; then
11403 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11404 CFLAGS="$CFLAGS $GTK_CFLAGS"
11405 LIBS="$GTK_LIBS $LIBS"
11406 GTK_COMPILES=no
11408 for ac_func in gtk_main
11410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11411 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11412 $as_echo_n "checking for $ac_func... " >&6; }
11413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11414 $as_echo_n "(cached) " >&6
11415 else
11416 cat >conftest.$ac_ext <<_ACEOF
11417 /* confdefs.h. */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11424 #define $ac_func innocuous_$ac_func
11426 /* System header to define __stub macros and hopefully few prototypes,
11427 which can conflict with char $ac_func (); below.
11428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11429 <limits.h> exists even on freestanding compilers. */
11431 #ifdef __STDC__
11432 # include <limits.h>
11433 #else
11434 # include <assert.h>
11435 #endif
11437 #undef $ac_func
11439 /* Override any GCC internal prototype to avoid an error.
11440 Use char because int might match the return type of a GCC
11441 builtin and then its argument prototype would still apply. */
11442 #ifdef __cplusplus
11443 extern "C"
11444 #endif
11445 char $ac_func ();
11446 /* The GNU C library defines this for functions which it implements
11447 to always fail with ENOSYS. Some functions are actually named
11448 something starting with __ and the normal name is an alias. */
11449 #if defined __stub_$ac_func || defined __stub___$ac_func
11450 choke me
11451 #endif
11454 main ()
11456 return $ac_func ();
11458 return 0;
11460 _ACEOF
11461 rm -f conftest.$ac_objext conftest$ac_exeext
11462 if { (ac_try="$ac_link"
11463 case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11466 esac
11467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11468 $as_echo "$ac_try_echo") >&5
11469 (eval "$ac_link") 2>conftest.er1
11470 ac_status=$?
11471 grep -v '^ *+' conftest.er1 >conftest.err
11472 rm -f conftest.er1
11473 cat conftest.err >&5
11474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } && {
11476 test -z "$ac_c_werror_flag" ||
11477 test ! -s conftest.err
11478 } && test -s conftest$ac_exeext && {
11479 test "$cross_compiling" = yes ||
11480 $as_test_x conftest$ac_exeext
11481 }; then
11482 eval "$as_ac_var=yes"
11483 else
11484 $as_echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 eval "$as_ac_var=no"
11490 rm -rf conftest.dSYM
11491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11492 conftest$ac_exeext conftest.$ac_ext
11494 ac_res=`eval 'as_val=${'$as_ac_var'}
11495 $as_echo "$as_val"'`
11496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11497 $as_echo "$ac_res" >&6; }
11498 if test `eval 'as_val=${'$as_ac_var'}
11499 $as_echo "$as_val"'` = yes; then
11500 cat >>confdefs.h <<_ACEOF
11501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11502 _ACEOF
11503 GTK_COMPILES=yes
11505 done
11507 if test "${GTK_COMPILES}" != "yes"; then
11508 if test "$USE_X_TOOLKIT" != "maybe"; then
11509 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11510 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11511 { (exit 1); exit 1; }; };
11513 else
11514 HAVE_GTK=yes
11516 cat >>confdefs.h <<\_ACEOF
11517 #define USE_GTK 1
11518 _ACEOF
11520 USE_X_TOOLKIT=none
11521 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11523 else
11524 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11525 closing open displays. This is no problem if you just use
11526 one display, but if you use more than one and close one of them
11527 Emacs may crash." >&5
11528 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11529 closing open displays. This is no problem if you just use
11530 one display, but if you use more than one and close one of them
11531 Emacs may crash." >&2;}
11532 sleep 3
11539 if test "${HAVE_GTK}" = "yes"; then
11541 if test "$with_toolkit_scroll_bars" != no; then
11542 with_toolkit_scroll_bars=yes
11545 HAVE_GTK_MULTIDISPLAY=no
11547 for ac_func in gdk_display_open
11549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11550 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11551 $as_echo_n "checking for $ac_func... " >&6; }
11552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11553 $as_echo_n "(cached) " >&6
11554 else
11555 cat >conftest.$ac_ext <<_ACEOF
11556 /* confdefs.h. */
11557 _ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11563 #define $ac_func innocuous_$ac_func
11565 /* System header to define __stub macros and hopefully few prototypes,
11566 which can conflict with char $ac_func (); below.
11567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11568 <limits.h> exists even on freestanding compilers. */
11570 #ifdef __STDC__
11571 # include <limits.h>
11572 #else
11573 # include <assert.h>
11574 #endif
11576 #undef $ac_func
11578 /* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
11581 #ifdef __cplusplus
11582 extern "C"
11583 #endif
11584 char $ac_func ();
11585 /* The GNU C library defines this for functions which it implements
11586 to always fail with ENOSYS. Some functions are actually named
11587 something starting with __ and the normal name is an alias. */
11588 #if defined __stub_$ac_func || defined __stub___$ac_func
11589 choke me
11590 #endif
11593 main ()
11595 return $ac_func ();
11597 return 0;
11599 _ACEOF
11600 rm -f conftest.$ac_objext conftest$ac_exeext
11601 if { (ac_try="$ac_link"
11602 case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11605 esac
11606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11607 $as_echo "$ac_try_echo") >&5
11608 (eval "$ac_link") 2>conftest.er1
11609 ac_status=$?
11610 grep -v '^ *+' conftest.er1 >conftest.err
11611 rm -f conftest.er1
11612 cat conftest.err >&5
11613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } && {
11615 test -z "$ac_c_werror_flag" ||
11616 test ! -s conftest.err
11617 } && test -s conftest$ac_exeext && {
11618 test "$cross_compiling" = yes ||
11619 $as_test_x conftest$ac_exeext
11620 }; then
11621 eval "$as_ac_var=yes"
11622 else
11623 $as_echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11626 eval "$as_ac_var=no"
11629 rm -rf conftest.dSYM
11630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11631 conftest$ac_exeext conftest.$ac_ext
11633 ac_res=`eval 'as_val=${'$as_ac_var'}
11634 $as_echo "$as_val"'`
11635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11636 $as_echo "$ac_res" >&6; }
11637 if test `eval 'as_val=${'$as_ac_var'}
11638 $as_echo "$as_val"'` = yes; then
11639 cat >>confdefs.h <<_ACEOF
11640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11641 _ACEOF
11642 HAVE_GTK_MULTIDISPLAY=yes
11644 done
11646 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11648 cat >>confdefs.h <<\_ACEOF
11649 #define HAVE_GTK_MULTIDISPLAY 1
11650 _ACEOF
11654 HAVE_GTK_FILE_SELECTION=no
11655 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11656 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11657 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11658 $as_echo_n "(cached) " >&6
11659 else
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h. */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11666 $ac_includes_default
11667 #include <gtk/gtk.h>
11670 main ()
11672 #ifndef GTK_TYPE_FILE_SELECTION
11673 (void) GTK_TYPE_FILE_SELECTION;
11674 #endif
11677 return 0;
11679 _ACEOF
11680 rm -f conftest.$ac_objext
11681 if { (ac_try="$ac_compile"
11682 case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11685 esac
11686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11687 $as_echo "$ac_try_echo") >&5
11688 (eval "$ac_compile") 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } && {
11695 test -z "$ac_c_werror_flag" ||
11696 test ! -s conftest.err
11697 } && test -s conftest.$ac_objext; then
11698 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11699 else
11700 $as_echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11708 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11709 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11710 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11711 HAVE_GTK_FILE_SELECTION=yes
11712 else
11713 HAVE_GTK_FILE_SELECTION=no
11716 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11718 for ac_func in gtk_file_selection_new
11720 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11721 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11722 $as_echo_n "checking for $ac_func... " >&6; }
11723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11724 $as_echo_n "(cached) " >&6
11725 else
11726 cat >conftest.$ac_ext <<_ACEOF
11727 /* confdefs.h. */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11734 #define $ac_func innocuous_$ac_func
11736 /* System header to define __stub macros and hopefully few prototypes,
11737 which can conflict with char $ac_func (); below.
11738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11739 <limits.h> exists even on freestanding compilers. */
11741 #ifdef __STDC__
11742 # include <limits.h>
11743 #else
11744 # include <assert.h>
11745 #endif
11747 #undef $ac_func
11749 /* Override any GCC internal prototype to avoid an error.
11750 Use char because int might match the return type of a GCC
11751 builtin and then its argument prototype would still apply. */
11752 #ifdef __cplusplus
11753 extern "C"
11754 #endif
11755 char $ac_func ();
11756 /* The GNU C library defines this for functions which it implements
11757 to always fail with ENOSYS. Some functions are actually named
11758 something starting with __ and the normal name is an alias. */
11759 #if defined __stub_$ac_func || defined __stub___$ac_func
11760 choke me
11761 #endif
11764 main ()
11766 return $ac_func ();
11768 return 0;
11770 _ACEOF
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (ac_try="$ac_link"
11773 case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11776 esac
11777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11778 $as_echo "$ac_try_echo") >&5
11779 (eval "$ac_link") 2>conftest.er1
11780 ac_status=$?
11781 grep -v '^ *+' conftest.er1 >conftest.err
11782 rm -f conftest.er1
11783 cat conftest.err >&5
11784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } && {
11786 test -z "$ac_c_werror_flag" ||
11787 test ! -s conftest.err
11788 } && test -s conftest$ac_exeext && {
11789 test "$cross_compiling" = yes ||
11790 $as_test_x conftest$ac_exeext
11791 }; then
11792 eval "$as_ac_var=yes"
11793 else
11794 $as_echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11797 eval "$as_ac_var=no"
11800 rm -rf conftest.dSYM
11801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11802 conftest$ac_exeext conftest.$ac_ext
11804 ac_res=`eval 'as_val=${'$as_ac_var'}
11805 $as_echo "$as_val"'`
11806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11807 $as_echo "$ac_res" >&6; }
11808 if test `eval 'as_val=${'$as_ac_var'}
11809 $as_echo "$as_val"'` = yes; then
11810 cat >>confdefs.h <<_ACEOF
11811 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11812 _ACEOF
11813 HAVE_GTK_FILE_SELECTION=yes
11814 else
11815 HAVE_GTK_FILE_SELECTION=no
11817 done
11821 HAVE_GTK_FILE_CHOOSER=no
11822 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11823 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
11824 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11825 $as_echo_n "(cached) " >&6
11826 else
11827 cat >conftest.$ac_ext <<_ACEOF
11828 /* confdefs.h. */
11829 _ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h. */
11833 $ac_includes_default
11834 #include <gtk/gtk.h>
11837 main ()
11839 #ifndef GTK_TYPE_FILE_CHOOSER
11840 (void) GTK_TYPE_FILE_CHOOSER;
11841 #endif
11844 return 0;
11846 _ACEOF
11847 rm -f conftest.$ac_objext
11848 if { (ac_try="$ac_compile"
11849 case "(($ac_try" in
11850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851 *) ac_try_echo=$ac_try;;
11852 esac
11853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11854 $as_echo "$ac_try_echo") >&5
11855 (eval "$ac_compile") 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } && {
11862 test -z "$ac_c_werror_flag" ||
11863 test ! -s conftest.err
11864 } && test -s conftest.$ac_objext; then
11865 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11866 else
11867 $as_echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11875 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11876 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11877 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11878 HAVE_GTK_FILE_CHOOSER=yes
11879 else
11880 HAVE_GTK_FILE_CHOOSER=no
11883 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11885 for ac_func in gtk_file_chooser_dialog_new
11887 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11888 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11889 $as_echo_n "checking for $ac_func... " >&6; }
11890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11891 $as_echo_n "(cached) " >&6
11892 else
11893 cat >conftest.$ac_ext <<_ACEOF
11894 /* confdefs.h. */
11895 _ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11901 #define $ac_func innocuous_$ac_func
11903 /* System header to define __stub macros and hopefully few prototypes,
11904 which can conflict with char $ac_func (); below.
11905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11906 <limits.h> exists even on freestanding compilers. */
11908 #ifdef __STDC__
11909 # include <limits.h>
11910 #else
11911 # include <assert.h>
11912 #endif
11914 #undef $ac_func
11916 /* Override any GCC internal prototype to avoid an error.
11917 Use char because int might match the return type of a GCC
11918 builtin and then its argument prototype would still apply. */
11919 #ifdef __cplusplus
11920 extern "C"
11921 #endif
11922 char $ac_func ();
11923 /* The GNU C library defines this for functions which it implements
11924 to always fail with ENOSYS. Some functions are actually named
11925 something starting with __ and the normal name is an alias. */
11926 #if defined __stub_$ac_func || defined __stub___$ac_func
11927 choke me
11928 #endif
11931 main ()
11933 return $ac_func ();
11935 return 0;
11937 _ACEOF
11938 rm -f conftest.$ac_objext conftest$ac_exeext
11939 if { (ac_try="$ac_link"
11940 case "(($ac_try" in
11941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942 *) ac_try_echo=$ac_try;;
11943 esac
11944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11945 $as_echo "$ac_try_echo") >&5
11946 (eval "$ac_link") 2>conftest.er1
11947 ac_status=$?
11948 grep -v '^ *+' conftest.er1 >conftest.err
11949 rm -f conftest.er1
11950 cat conftest.err >&5
11951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } && {
11953 test -z "$ac_c_werror_flag" ||
11954 test ! -s conftest.err
11955 } && test -s conftest$ac_exeext && {
11956 test "$cross_compiling" = yes ||
11957 $as_test_x conftest$ac_exeext
11958 }; then
11959 eval "$as_ac_var=yes"
11960 else
11961 $as_echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11964 eval "$as_ac_var=no"
11967 rm -rf conftest.dSYM
11968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11969 conftest$ac_exeext conftest.$ac_ext
11971 ac_res=`eval 'as_val=${'$as_ac_var'}
11972 $as_echo "$as_val"'`
11973 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11974 $as_echo "$ac_res" >&6; }
11975 if test `eval 'as_val=${'$as_ac_var'}
11976 $as_echo "$as_val"'` = yes; then
11977 cat >>confdefs.h <<_ACEOF
11978 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11979 _ACEOF
11980 HAVE_GTK_FILE_CHOOSER=yes
11981 else
11982 HAVE_GTK_FILE_CHOOSER=no
11984 done
11988 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11989 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11991 cat >>confdefs.h <<\_ACEOF
11992 #define HAVE_GTK_FILE_BOTH 1
11993 _ACEOF
11997 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11998 HAVE_GTK_AND_PTHREAD=no
12000 for ac_header in pthread.h
12002 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12004 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12005 $as_echo_n "checking for $ac_header... " >&6; }
12006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12007 $as_echo_n "(cached) " >&6
12009 ac_res=`eval 'as_val=${'$as_ac_Header'}
12010 $as_echo "$as_val"'`
12011 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12012 $as_echo "$ac_res" >&6; }
12013 else
12014 # Is the header compilable?
12015 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12016 $as_echo_n "checking $ac_header usability... " >&6; }
12017 cat >conftest.$ac_ext <<_ACEOF
12018 /* confdefs.h. */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12023 $ac_includes_default
12024 #include <$ac_header>
12025 _ACEOF
12026 rm -f conftest.$ac_objext
12027 if { (ac_try="$ac_compile"
12028 case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12031 esac
12032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12033 $as_echo "$ac_try_echo") >&5
12034 (eval "$ac_compile") 2>conftest.er1
12035 ac_status=$?
12036 grep -v '^ *+' conftest.er1 >conftest.err
12037 rm -f conftest.er1
12038 cat conftest.err >&5
12039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } && {
12041 test -z "$ac_c_werror_flag" ||
12042 test ! -s conftest.err
12043 } && test -s conftest.$ac_objext; then
12044 ac_header_compiler=yes
12045 else
12046 $as_echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 ac_header_compiler=no
12052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12053 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12054 $as_echo "$ac_header_compiler" >&6; }
12056 # Is the header present?
12057 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12058 $as_echo_n "checking $ac_header presence... " >&6; }
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 #include <$ac_header>
12066 _ACEOF
12067 if { (ac_try="$ac_cpp conftest.$ac_ext"
12068 case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12071 esac
12072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12073 $as_echo "$ac_try_echo") >&5
12074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } >/dev/null && {
12081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12083 }; then
12084 ac_header_preproc=yes
12085 else
12086 $as_echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12089 ac_header_preproc=no
12092 rm -f conftest.err conftest.$ac_ext
12093 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12094 $as_echo "$ac_header_preproc" >&6; }
12096 # So? What about this header?
12097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12098 yes:no: )
12099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12100 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12102 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12103 ac_header_preproc=yes
12105 no:yes:* )
12106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12107 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12109 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12111 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12113 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12115 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12117 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12120 esac
12121 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12122 $as_echo_n "checking for $ac_header... " >&6; }
12123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12124 $as_echo_n "(cached) " >&6
12125 else
12126 eval "$as_ac_Header=\$ac_header_preproc"
12128 ac_res=`eval 'as_val=${'$as_ac_Header'}
12129 $as_echo "$as_val"'`
12130 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12131 $as_echo "$ac_res" >&6; }
12134 if test `eval 'as_val=${'$as_ac_Header'}
12135 $as_echo "$as_val"'` = yes; then
12136 cat >>confdefs.h <<_ACEOF
12137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12138 _ACEOF
12142 done
12144 if test "$ac_cv_header_pthread_h"; then
12145 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12146 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12147 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12148 $as_echo_n "(cached) " >&6
12149 else
12150 ac_check_lib_save_LIBS=$LIBS
12151 LIBS="-lpthread $LIBS"
12152 cat >conftest.$ac_ext <<_ACEOF
12153 /* confdefs.h. */
12154 _ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12159 /* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12162 #ifdef __cplusplus
12163 extern "C"
12164 #endif
12165 char pthread_self ();
12167 main ()
12169 return pthread_self ();
12171 return 0;
12173 _ACEOF
12174 rm -f conftest.$ac_objext conftest$ac_exeext
12175 if { (ac_try="$ac_link"
12176 case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179 esac
12180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12181 $as_echo "$ac_try_echo") >&5
12182 (eval "$ac_link") 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } && {
12189 test -z "$ac_c_werror_flag" ||
12190 test ! -s conftest.err
12191 } && test -s conftest$ac_exeext && {
12192 test "$cross_compiling" = yes ||
12193 $as_test_x conftest$ac_exeext
12194 }; then
12195 ac_cv_lib_pthread_pthread_self=yes
12196 else
12197 $as_echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12200 ac_cv_lib_pthread_pthread_self=no
12203 rm -rf conftest.dSYM
12204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12208 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12209 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12210 if test $ac_cv_lib_pthread_pthread_self = yes; then
12211 HAVE_GTK_AND_PTHREAD=yes
12215 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12216 case "${canonical}" in
12217 *-hpux*) ;;
12218 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12219 esac
12221 cat >>confdefs.h <<\_ACEOF
12222 #define HAVE_GTK_AND_PTHREAD 1
12223 _ACEOF
12229 HAVE_DBUS=no
12230 if test "${with_dbus}" = "yes"; then
12232 succeeded=no
12234 # Extract the first word of "pkg-config", so it can be a program name with args.
12235 set dummy pkg-config; ac_word=$2
12236 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12239 $as_echo_n "(cached) " >&6
12240 else
12241 case $PKG_CONFIG in
12242 [\\/]* | ?:[\\/]*)
12243 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12249 IFS=$as_save_IFS
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12253 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12255 break 2
12257 done
12258 done
12259 IFS=$as_save_IFS
12261 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12263 esac
12265 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12266 if test -n "$PKG_CONFIG"; then
12267 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12268 $as_echo "$PKG_CONFIG" >&6; }
12269 else
12270 { $as_echo "$as_me:$LINENO: result: no" >&5
12271 $as_echo "no" >&6; }
12276 if test "$PKG_CONFIG" = "no" ; then
12277 HAVE_DBUS=no
12278 else
12279 PKG_CONFIG_MIN_VERSION=0.9.0
12280 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12281 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12282 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12284 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12285 { $as_echo "$as_me:$LINENO: result: yes" >&5
12286 $as_echo "yes" >&6; }
12287 succeeded=yes
12289 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12290 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12291 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12292 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12293 $as_echo "$DBUS_CFLAGS" >&6; }
12295 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12296 $as_echo_n "checking DBUS_LIBS... " >&6; }
12297 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12298 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12299 $as_echo "$DBUS_LIBS" >&6; }
12300 else
12301 { $as_echo "$as_me:$LINENO: result: no" >&5
12302 $as_echo "no" >&6; }
12303 DBUS_CFLAGS=""
12304 DBUS_LIBS=""
12305 ## If we have a custom action on failure, don't print errors, but
12306 ## do set a variable so people can do so.
12307 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12313 else
12314 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12315 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12319 if test $succeeded = yes; then
12320 HAVE_DBUS=yes
12321 else
12322 HAVE_DBUS=no
12325 if test "$HAVE_DBUS" = yes; then
12326 LIBS="$LIBS $DBUS_LIBS"
12328 cat >>confdefs.h <<\_ACEOF
12329 #define HAVE_DBUS 1
12330 _ACEOF
12333 for ac_func in dbus_watch_get_unix_fd
12335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12336 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12337 $as_echo_n "checking for $ac_func... " >&6; }
12338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12339 $as_echo_n "(cached) " >&6
12340 else
12341 cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h. */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12349 #define $ac_func innocuous_$ac_func
12351 /* System header to define __stub macros and hopefully few prototypes,
12352 which can conflict with char $ac_func (); below.
12353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12354 <limits.h> exists even on freestanding compilers. */
12356 #ifdef __STDC__
12357 # include <limits.h>
12358 #else
12359 # include <assert.h>
12360 #endif
12362 #undef $ac_func
12364 /* Override any GCC internal prototype to avoid an error.
12365 Use char because int might match the return type of a GCC
12366 builtin and then its argument prototype would still apply. */
12367 #ifdef __cplusplus
12368 extern "C"
12369 #endif
12370 char $ac_func ();
12371 /* The GNU C library defines this for functions which it implements
12372 to always fail with ENOSYS. Some functions are actually named
12373 something starting with __ and the normal name is an alias. */
12374 #if defined __stub_$ac_func || defined __stub___$ac_func
12375 choke me
12376 #endif
12379 main ()
12381 return $ac_func ();
12383 return 0;
12385 _ACEOF
12386 rm -f conftest.$ac_objext conftest$ac_exeext
12387 if { (ac_try="$ac_link"
12388 case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12391 esac
12392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12393 $as_echo "$ac_try_echo") >&5
12394 (eval "$ac_link") 2>conftest.er1
12395 ac_status=$?
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
12399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } && {
12401 test -z "$ac_c_werror_flag" ||
12402 test ! -s conftest.err
12403 } && test -s conftest$ac_exeext && {
12404 test "$cross_compiling" = yes ||
12405 $as_test_x conftest$ac_exeext
12406 }; then
12407 eval "$as_ac_var=yes"
12408 else
12409 $as_echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12412 eval "$as_ac_var=no"
12415 rm -rf conftest.dSYM
12416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12417 conftest$ac_exeext conftest.$ac_ext
12419 ac_res=`eval 'as_val=${'$as_ac_var'}
12420 $as_echo "$as_val"'`
12421 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12422 $as_echo "$ac_res" >&6; }
12423 if test `eval 'as_val=${'$as_ac_var'}
12424 $as_echo "$as_val"'` = yes; then
12425 cat >>confdefs.h <<_ACEOF
12426 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12427 _ACEOF
12430 done
12435 HAVE_XAW3D=no
12436 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12437 if test "$with_xaw3d" != no; then
12438 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12439 $as_echo_n "checking for xaw3d... " >&6; }
12440 if test "${emacs_cv_xaw3d+set}" = set; then
12441 $as_echo_n "(cached) " >&6
12442 else
12443 cat >conftest.$ac_ext <<_ACEOF
12444 /* confdefs.h. */
12445 _ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12450 #include <X11/Intrinsic.h>
12451 #include <X11/Xaw3d/Simple.h>
12453 main ()
12457 return 0;
12459 _ACEOF
12460 rm -f conftest.$ac_objext conftest$ac_exeext
12461 if { (ac_try="$ac_link"
12462 case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12465 esac
12466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12467 $as_echo "$ac_try_echo") >&5
12468 (eval "$ac_link") 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } && {
12475 test -z "$ac_c_werror_flag" ||
12476 test ! -s conftest.err
12477 } && test -s conftest$ac_exeext && {
12478 test "$cross_compiling" = yes ||
12479 $as_test_x conftest$ac_exeext
12480 }; then
12481 emacs_cv_xaw3d=yes
12482 else
12483 $as_echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12486 emacs_cv_xaw3d=no
12489 rm -rf conftest.dSYM
12490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12491 conftest$ac_exeext conftest.$ac_ext
12494 else
12495 emacs_cv_xaw3d=no
12497 if test $emacs_cv_xaw3d = yes; then
12498 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12499 $as_echo "yes; using Lucid toolkit" >&6; }
12500 USE_X_TOOLKIT=LUCID
12501 HAVE_XAW3D=yes
12503 cat >>confdefs.h <<\_ACEOF
12504 #define HAVE_XAW3D 1
12505 _ACEOF
12507 else
12508 { $as_echo "$as_me:$LINENO: result: no" >&5
12509 $as_echo "no" >&6; }
12510 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12511 $as_echo_n "checking for libXaw... " >&6; }
12512 if test "${emacs_cv_xaw+set}" = set; then
12513 $as_echo_n "(cached) " >&6
12514 else
12515 cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h. */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12522 #include <X11/Intrinsic.h>
12523 #include <X11/Xaw/Simple.h>
12525 main ()
12529 return 0;
12531 _ACEOF
12532 rm -f conftest.$ac_objext conftest$ac_exeext
12533 if { (ac_try="$ac_link"
12534 case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12537 esac
12538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12539 $as_echo "$ac_try_echo") >&5
12540 (eval "$ac_link") 2>conftest.er1
12541 ac_status=$?
12542 grep -v '^ *+' conftest.er1 >conftest.err
12543 rm -f conftest.er1
12544 cat conftest.err >&5
12545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } && {
12547 test -z "$ac_c_werror_flag" ||
12548 test ! -s conftest.err
12549 } && test -s conftest$ac_exeext && {
12550 test "$cross_compiling" = yes ||
12551 $as_test_x conftest$ac_exeext
12552 }; then
12553 emacs_cv_xaw=yes
12554 else
12555 $as_echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12558 emacs_cv_xaw=no
12561 rm -rf conftest.dSYM
12562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12563 conftest$ac_exeext conftest.$ac_ext
12566 if test $emacs_cv_xaw = yes; then
12567 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12568 $as_echo "yes; using Lucid toolkit" >&6; }
12569 USE_X_TOOLKIT=LUCID
12570 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12571 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12572 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12573 { (exit 1); exit 1; }; }
12574 else
12575 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12576 $as_echo "no; do not use toolkit by default" >&6; }
12577 USE_X_TOOLKIT=none
12582 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12584 if test "${USE_X_TOOLKIT}" != "none"; then
12585 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12586 $as_echo_n "checking X11 toolkit version... " >&6; }
12587 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12588 $as_echo_n "(cached) " >&6
12589 else
12590 cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h. */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12596 #include <X11/Intrinsic.h>
12598 main ()
12600 #if XtSpecificationRelease < 6
12601 fail;
12602 #endif
12605 return 0;
12607 _ACEOF
12608 rm -f conftest.$ac_objext conftest$ac_exeext
12609 if { (ac_try="$ac_link"
12610 case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12613 esac
12614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12615 $as_echo "$ac_try_echo") >&5
12616 (eval "$ac_link") 2>conftest.er1
12617 ac_status=$?
12618 grep -v '^ *+' conftest.er1 >conftest.err
12619 rm -f conftest.er1
12620 cat conftest.err >&5
12621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } && {
12623 test -z "$ac_c_werror_flag" ||
12624 test ! -s conftest.err
12625 } && test -s conftest$ac_exeext && {
12626 test "$cross_compiling" = yes ||
12627 $as_test_x conftest$ac_exeext
12628 }; then
12629 emacs_cv_x11_toolkit_version_6=yes
12630 else
12631 $as_echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12634 emacs_cv_x11_toolkit_version_6=no
12637 rm -rf conftest.dSYM
12638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12639 conftest$ac_exeext conftest.$ac_ext
12642 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12643 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12644 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12645 $as_echo "6 or newer" >&6; }
12647 cat >>confdefs.h <<\_ACEOF
12648 #define HAVE_X11XTR6 1
12649 _ACEOF
12651 else
12652 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12653 $as_echo "before 6" >&6; }
12656 OLDLIBS="$LIBS"
12657 if test x$HAVE_X11XTR6 = xyes; then
12658 LIBS="-lXt -lSM -lICE $LIBS"
12659 else
12660 LIBS="-lXt $LIBS"
12663 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12664 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12665 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12666 $as_echo_n "(cached) " >&6
12667 else
12668 ac_check_lib_save_LIBS=$LIBS
12669 LIBS="-lXmu $LIBS"
12670 cat >conftest.$ac_ext <<_ACEOF
12671 /* confdefs.h. */
12672 _ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h. */
12677 /* Override any GCC internal prototype to avoid an error.
12678 Use char because int might match the return type of a GCC
12679 builtin and then its argument prototype would still apply. */
12680 #ifdef __cplusplus
12681 extern "C"
12682 #endif
12683 char XmuConvertStandardSelection ();
12685 main ()
12687 return XmuConvertStandardSelection ();
12689 return 0;
12691 _ACEOF
12692 rm -f conftest.$ac_objext conftest$ac_exeext
12693 if { (ac_try="$ac_link"
12694 case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12697 esac
12698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12699 $as_echo "$ac_try_echo") >&5
12700 (eval "$ac_link") 2>conftest.er1
12701 ac_status=$?
12702 grep -v '^ *+' conftest.er1 >conftest.err
12703 rm -f conftest.er1
12704 cat conftest.err >&5
12705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } && {
12707 test -z "$ac_c_werror_flag" ||
12708 test ! -s conftest.err
12709 } && test -s conftest$ac_exeext && {
12710 test "$cross_compiling" = yes ||
12711 $as_test_x conftest$ac_exeext
12712 }; then
12713 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12714 else
12715 $as_echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12721 rm -rf conftest.dSYM
12722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12723 conftest$ac_exeext conftest.$ac_ext
12724 LIBS=$ac_check_lib_save_LIBS
12726 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12727 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12728 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12729 cat >>confdefs.h <<_ACEOF
12730 #define HAVE_LIBXMU 1
12731 _ACEOF
12733 LIBS="-lXmu $LIBS"
12737 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12740 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12741 if test "${HAVE_X11}" = "yes"; then
12742 if test "${USE_X_TOOLKIT}" != "none"; then
12744 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12745 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12746 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12747 $as_echo_n "(cached) " >&6
12748 else
12749 ac_check_lib_save_LIBS=$LIBS
12750 LIBS="-lXext $LIBS"
12751 cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h. */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12758 /* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
12761 #ifdef __cplusplus
12762 extern "C"
12763 #endif
12764 char XShapeQueryExtension ();
12766 main ()
12768 return XShapeQueryExtension ();
12770 return 0;
12772 _ACEOF
12773 rm -f conftest.$ac_objext conftest$ac_exeext
12774 if { (ac_try="$ac_link"
12775 case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778 esac
12779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12780 $as_echo "$ac_try_echo") >&5
12781 (eval "$ac_link") 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } && {
12788 test -z "$ac_c_werror_flag" ||
12789 test ! -s conftest.err
12790 } && test -s conftest$ac_exeext && {
12791 test "$cross_compiling" = yes ||
12792 $as_test_x conftest$ac_exeext
12793 }; then
12794 ac_cv_lib_Xext_XShapeQueryExtension=yes
12795 else
12796 $as_echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12799 ac_cv_lib_Xext_XShapeQueryExtension=no
12802 rm -rf conftest.dSYM
12803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12804 conftest$ac_exeext conftest.$ac_ext
12805 LIBS=$ac_check_lib_save_LIBS
12807 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12808 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12809 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12810 cat >>confdefs.h <<_ACEOF
12811 #define HAVE_LIBXEXT 1
12812 _ACEOF
12814 LIBS="-lXext $LIBS"
12821 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12822 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12823 $as_echo_n "checking for Motif version 2.1... " >&6; }
12824 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12825 $as_echo_n "(cached) " >&6
12826 else
12827 cat >conftest.$ac_ext <<_ACEOF
12828 /* confdefs.h. */
12829 _ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12833 #include <Xm/Xm.h>
12835 main ()
12837 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12838 int x = 5;
12839 #else
12840 Motif version prior to 2.1.
12841 #endif
12843 return 0;
12845 _ACEOF
12846 rm -f conftest.$ac_objext
12847 if { (ac_try="$ac_compile"
12848 case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12851 esac
12852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12853 $as_echo "$ac_try_echo") >&5
12854 (eval "$ac_compile") 2>conftest.er1
12855 ac_status=$?
12856 grep -v '^ *+' conftest.er1 >conftest.err
12857 rm -f conftest.er1
12858 cat conftest.err >&5
12859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } && {
12861 test -z "$ac_c_werror_flag" ||
12862 test ! -s conftest.err
12863 } && test -s conftest.$ac_objext; then
12864 emacs_cv_motif_version_2_1=yes
12865 else
12866 $as_echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12869 emacs_cv_motif_version_2_1=no
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12875 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12876 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12877 if test $emacs_cv_motif_version_2_1 = yes; then
12878 HAVE_LIBXP=no
12880 cat >>confdefs.h <<\_ACEOF
12881 #define HAVE_MOTIF_2_1 1
12882 _ACEOF
12884 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12885 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12886 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12887 $as_echo_n "(cached) " >&6
12888 else
12889 ac_check_lib_save_LIBS=$LIBS
12890 LIBS="-lXp $LIBS"
12891 cat >conftest.$ac_ext <<_ACEOF
12892 /* confdefs.h. */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12898 /* Override any GCC internal prototype to avoid an error.
12899 Use char because int might match the return type of a GCC
12900 builtin and then its argument prototype would still apply. */
12901 #ifdef __cplusplus
12902 extern "C"
12903 #endif
12904 char XpCreateContext ();
12906 main ()
12908 return XpCreateContext ();
12910 return 0;
12912 _ACEOF
12913 rm -f conftest.$ac_objext conftest$ac_exeext
12914 if { (ac_try="$ac_link"
12915 case "(($ac_try" in
12916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12918 esac
12919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12920 $as_echo "$ac_try_echo") >&5
12921 (eval "$ac_link") 2>conftest.er1
12922 ac_status=$?
12923 grep -v '^ *+' conftest.er1 >conftest.err
12924 rm -f conftest.er1
12925 cat conftest.err >&5
12926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); } && {
12928 test -z "$ac_c_werror_flag" ||
12929 test ! -s conftest.err
12930 } && test -s conftest$ac_exeext && {
12931 test "$cross_compiling" = yes ||
12932 $as_test_x conftest$ac_exeext
12933 }; then
12934 ac_cv_lib_Xp_XpCreateContext=yes
12935 else
12936 $as_echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12939 ac_cv_lib_Xp_XpCreateContext=no
12942 rm -rf conftest.dSYM
12943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12944 conftest$ac_exeext conftest.$ac_ext
12945 LIBS=$ac_check_lib_save_LIBS
12947 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12948 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12949 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12950 HAVE_LIBXP=yes
12953 if test ${HAVE_LIBXP} = yes; then
12955 cat >>confdefs.h <<\_ACEOF
12956 #define HAVE_LIBXP 1
12957 _ACEOF
12960 else
12961 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12962 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12963 if test "${emacs_cv_lesstif+set}" = set; then
12964 $as_echo_n "(cached) " >&6
12965 else
12966 # We put this in CFLAGS temporarily to precede other -I options
12967 # that might be in CFLAGS temporarily.
12968 # We put this in CPPFLAGS where it precedes the other -I options.
12969 OLD_CPPFLAGS=$CPPFLAGS
12970 OLD_CFLAGS=$CFLAGS
12971 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12972 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12973 cat >conftest.$ac_ext <<_ACEOF
12974 /* confdefs.h. */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12979 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12981 main ()
12983 int x = 5;
12985 return 0;
12987 _ACEOF
12988 rm -f conftest.$ac_objext
12989 if { (ac_try="$ac_compile"
12990 case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12993 esac
12994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12995 $as_echo "$ac_try_echo") >&5
12996 (eval "$ac_compile") 2>conftest.er1
12997 ac_status=$?
12998 grep -v '^ *+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
13001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } && {
13003 test -z "$ac_c_werror_flag" ||
13004 test ! -s conftest.err
13005 } && test -s conftest.$ac_objext; then
13006 emacs_cv_lesstif=yes
13007 else
13008 $as_echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13011 emacs_cv_lesstif=no
13014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13016 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13017 $as_echo "$emacs_cv_lesstif" >&6; }
13018 if test $emacs_cv_lesstif = yes; then
13019 # Make sure this -I option remains in CPPFLAGS after it is set
13020 # back to REAL_CPPFLAGS.
13021 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13022 # have those other -I options anyway. Ultimately, having this
13023 # directory ultimately in CPPFLAGS will be enough.
13024 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13025 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13026 else
13027 CFLAGS=$OLD_CFLAGS
13028 CPPFLAGS=$OLD_CPPFLAGS
13035 USE_TOOLKIT_SCROLL_BARS=no
13036 if test "${with_toolkit_scroll_bars}" != "no"; then
13037 if test "${USE_X_TOOLKIT}" != "none"; then
13038 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13039 cat >>confdefs.h <<\_ACEOF
13040 #define USE_TOOLKIT_SCROLL_BARS 1
13041 _ACEOF
13043 HAVE_XAW3D=no
13044 USE_TOOLKIT_SCROLL_BARS=yes
13045 elif test "${HAVE_XAW3D}" = "yes"; then
13046 cat >>confdefs.h <<\_ACEOF
13047 #define USE_TOOLKIT_SCROLL_BARS 1
13048 _ACEOF
13050 USE_TOOLKIT_SCROLL_BARS=yes
13052 elif test "${HAVE_GTK}" = "yes"; then
13053 cat >>confdefs.h <<\_ACEOF
13054 #define USE_TOOLKIT_SCROLL_BARS 1
13055 _ACEOF
13057 USE_TOOLKIT_SCROLL_BARS=yes
13058 elif test "${HAVE_NS}" = "yes"; then
13059 cat >>confdefs.h <<\_ACEOF
13060 #define USE_TOOLKIT_SCROLL_BARS 1
13061 _ACEOF
13063 USE_TOOLKIT_SCROLL_BARS=yes
13067 cat >conftest.$ac_ext <<_ACEOF
13068 /* confdefs.h. */
13069 _ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13074 #include <X11/Xlib.h>
13075 #include <X11/Xresource.h>
13077 main ()
13079 XIMProc callback;
13081 return 0;
13083 _ACEOF
13084 rm -f conftest.$ac_objext
13085 if { (ac_try="$ac_compile"
13086 case "(($ac_try" in
13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13089 esac
13090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13091 $as_echo "$ac_try_echo") >&5
13092 (eval "$ac_compile") 2>conftest.er1
13093 ac_status=$?
13094 grep -v '^ *+' conftest.er1 >conftest.err
13095 rm -f conftest.er1
13096 cat conftest.err >&5
13097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } && {
13099 test -z "$ac_c_werror_flag" ||
13100 test ! -s conftest.err
13101 } && test -s conftest.$ac_objext; then
13102 HAVE_XIM=yes
13104 cat >>confdefs.h <<\_ACEOF
13105 #define HAVE_XIM 1
13106 _ACEOF
13108 else
13109 $as_echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13112 HAVE_XIM=no
13115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13118 if test "${with_xim}" != "no"; then
13120 cat >>confdefs.h <<\_ACEOF
13121 #define USE_XIM 1
13122 _ACEOF
13127 if test "${HAVE_XIM}" != "no"; then
13128 late_CFLAGS=$CFLAGS
13129 if test "$GCC" = yes; then
13130 CFLAGS="$CFLAGS --pedantic-errors"
13132 cat >conftest.$ac_ext <<_ACEOF
13133 /* confdefs.h. */
13134 _ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13139 #include <X11/Xlib.h>
13140 #include <X11/Xresource.h>
13142 main ()
13144 Display *display;
13145 XrmDatabase db;
13146 char *res_name;
13147 char *res_class;
13148 XIMProc callback;
13149 XPointer *client_data;
13150 #ifndef __GNUC__
13151 /* If we're not using GCC, it's probably not XFree86, and this is
13152 probably right, but we can't use something like --pedantic-errors. */
13153 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13154 char*, XIMProc, XPointer*);
13155 #endif
13156 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13157 client_data);
13159 return 0;
13161 _ACEOF
13162 rm -f conftest.$ac_objext
13163 if { (ac_try="$ac_compile"
13164 case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13167 esac
13168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13169 $as_echo "$ac_try_echo") >&5
13170 (eval "$ac_compile") 2>conftest.er1
13171 ac_status=$?
13172 grep -v '^ *+' conftest.er1 >conftest.err
13173 rm -f conftest.er1
13174 cat conftest.err >&5
13175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } && {
13177 test -z "$ac_c_werror_flag" ||
13178 test ! -s conftest.err
13179 } && test -s conftest.$ac_objext; then
13180 emacs_cv_arg6_star=yes
13181 else
13182 $as_echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13190 if test "$emacs_cv_arg6_star" = yes; then
13191 cat >>confdefs.h <<\_ACEOF
13192 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13193 _ACEOF
13195 else
13196 cat >>confdefs.h <<\_ACEOF
13197 #define XRegisterIMInstantiateCallback_arg6 XPointer
13198 _ACEOF
13201 CFLAGS=$late_CFLAGS
13204 ### Start of font-backend (under any platform) section.
13205 # (nothing here yet -- this is a placeholder)
13206 ### End of font-backend (under any platform) section.
13208 ### Start of font-backend (under X11) section.
13209 if test "${HAVE_X11}" = "yes"; then
13211 succeeded=no
13213 # Extract the first word of "pkg-config", so it can be a program name with args.
13214 set dummy pkg-config; ac_word=$2
13215 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13216 $as_echo_n "checking for $ac_word... " >&6; }
13217 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13218 $as_echo_n "(cached) " >&6
13219 else
13220 case $PKG_CONFIG in
13221 [\\/]* | ?:[\\/]*)
13222 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13228 IFS=$as_save_IFS
13229 test -z "$as_dir" && as_dir=.
13230 for ac_exec_ext in '' $ac_executable_extensions; do
13231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13232 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13233 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13234 break 2
13236 done
13237 done
13238 IFS=$as_save_IFS
13240 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13242 esac
13244 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13245 if test -n "$PKG_CONFIG"; then
13246 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13247 $as_echo "$PKG_CONFIG" >&6; }
13248 else
13249 { $as_echo "$as_me:$LINENO: result: no" >&5
13250 $as_echo "no" >&6; }
13255 if test "$PKG_CONFIG" = "no" ; then
13256 HAVE_FC=no
13257 else
13258 PKG_CONFIG_MIN_VERSION=0.9.0
13259 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13260 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13261 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13263 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13264 { $as_echo "$as_me:$LINENO: result: yes" >&5
13265 $as_echo "yes" >&6; }
13266 succeeded=yes
13268 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13269 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13270 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13271 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13272 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13274 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13275 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13276 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13277 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13278 $as_echo "$FONTCONFIG_LIBS" >&6; }
13279 else
13280 { $as_echo "$as_me:$LINENO: result: no" >&5
13281 $as_echo "no" >&6; }
13282 FONTCONFIG_CFLAGS=""
13283 FONTCONFIG_LIBS=""
13284 ## If we have a custom action on failure, don't print errors, but
13285 ## do set a variable so people can do so.
13286 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13292 else
13293 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13294 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13298 if test $succeeded = yes; then
13299 HAVE_FC=yes
13300 else
13301 HAVE_FC=no
13305 ## Use -lXft if available, unless `--with-xft=no'.
13306 HAVE_XFT=maybe
13307 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13308 with_xft="no";
13310 if test "x${with_xft}" != "xno"; then
13313 succeeded=no
13315 # Extract the first word of "pkg-config", so it can be a program name with args.
13316 set dummy pkg-config; ac_word=$2
13317 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13318 $as_echo_n "checking for $ac_word... " >&6; }
13319 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13320 $as_echo_n "(cached) " >&6
13321 else
13322 case $PKG_CONFIG in
13323 [\\/]* | ?:[\\/]*)
13324 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13328 for as_dir in $PATH
13330 IFS=$as_save_IFS
13331 test -z "$as_dir" && as_dir=.
13332 for ac_exec_ext in '' $ac_executable_extensions; do
13333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13334 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13336 break 2
13338 done
13339 done
13340 IFS=$as_save_IFS
13342 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13344 esac
13346 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13347 if test -n "$PKG_CONFIG"; then
13348 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13349 $as_echo "$PKG_CONFIG" >&6; }
13350 else
13351 { $as_echo "$as_me:$LINENO: result: no" >&5
13352 $as_echo "no" >&6; }
13357 if test "$PKG_CONFIG" = "no" ; then
13358 HAVE_XFT=no
13359 else
13360 PKG_CONFIG_MIN_VERSION=0.9.0
13361 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13362 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13363 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13365 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13366 { $as_echo "$as_me:$LINENO: result: yes" >&5
13367 $as_echo "yes" >&6; }
13368 succeeded=yes
13370 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13371 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13372 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13373 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13374 $as_echo "$XFT_CFLAGS" >&6; }
13376 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13377 $as_echo_n "checking XFT_LIBS... " >&6; }
13378 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13379 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13380 $as_echo "$XFT_LIBS" >&6; }
13381 else
13382 { $as_echo "$as_me:$LINENO: result: no" >&5
13383 $as_echo "no" >&6; }
13384 XFT_CFLAGS=""
13385 XFT_LIBS=""
13386 ## If we have a custom action on failure, don't print errors, but
13387 ## do set a variable so people can do so.
13388 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13394 else
13395 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13396 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13400 if test $succeeded = yes; then
13402 else
13403 HAVE_XFT=no
13406 if test "$HAVE_XFT" != no; then
13407 OLD_CPPFLAGS="$CPPFLAGS"
13408 OLD_CFLAGS="$CFLAGS"
13409 OLD_LIBS="$LIBS"
13410 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13411 CFLAGS="$CFLAGS $XFT_CFLAGS"
13412 LIBS="$XFT_LIBS $LIBS"
13413 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13414 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13415 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13416 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13417 $as_echo_n "(cached) " >&6
13419 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13420 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13421 else
13422 # Is the header compilable?
13423 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13424 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13425 cat >conftest.$ac_ext <<_ACEOF
13426 /* confdefs.h. */
13427 _ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 $ac_includes_default
13432 #include <X11/Xft/Xft.h>
13433 _ACEOF
13434 rm -f conftest.$ac_objext
13435 if { (ac_try="$ac_compile"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439 esac
13440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13441 $as_echo "$ac_try_echo") >&5
13442 (eval "$ac_compile") 2>conftest.er1
13443 ac_status=$?
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
13447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } && {
13449 test -z "$ac_c_werror_flag" ||
13450 test ! -s conftest.err
13451 } && test -s conftest.$ac_objext; then
13452 ac_header_compiler=yes
13453 else
13454 $as_echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13457 ac_header_compiler=no
13460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13462 $as_echo "$ac_header_compiler" >&6; }
13464 # Is the header present?
13465 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13466 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13467 cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h. */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 #include <X11/Xft/Xft.h>
13474 _ACEOF
13475 if { (ac_try="$ac_cpp conftest.$ac_ext"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479 esac
13480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13481 $as_echo "$ac_try_echo") >&5
13482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13483 ac_status=$?
13484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
13487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } >/dev/null && {
13489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13490 test ! -s conftest.err
13491 }; then
13492 ac_header_preproc=yes
13493 else
13494 $as_echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ac_header_preproc=no
13500 rm -f conftest.err conftest.$ac_ext
13501 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13502 $as_echo "$ac_header_preproc" >&6; }
13504 # So? What about this header?
13505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13506 yes:no: )
13507 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13508 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13509 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13510 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13511 ac_header_preproc=yes
13513 no:yes:* )
13514 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13515 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13516 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13517 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13518 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13519 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13520 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13521 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13522 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13523 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13524 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13525 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13528 esac
13529 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13530 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13531 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13532 $as_echo_n "(cached) " >&6
13533 else
13534 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13536 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13537 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13540 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13541 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13542 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13543 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13544 $as_echo_n "(cached) " >&6
13545 else
13546 ac_check_lib_save_LIBS=$LIBS
13547 LIBS="-lXft $XFT_LIBS $LIBS"
13548 cat >conftest.$ac_ext <<_ACEOF
13549 /* confdefs.h. */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13555 /* Override any GCC internal prototype to avoid an error.
13556 Use char because int might match the return type of a GCC
13557 builtin and then its argument prototype would still apply. */
13558 #ifdef __cplusplus
13559 extern "C"
13560 #endif
13561 char XftFontOpen ();
13563 main ()
13565 return XftFontOpen ();
13567 return 0;
13569 _ACEOF
13570 rm -f conftest.$ac_objext conftest$ac_exeext
13571 if { (ac_try="$ac_link"
13572 case "(($ac_try" in
13573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13575 esac
13576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13577 $as_echo "$ac_try_echo") >&5
13578 (eval "$ac_link") 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } && {
13585 test -z "$ac_c_werror_flag" ||
13586 test ! -s conftest.err
13587 } && test -s conftest$ac_exeext && {
13588 test "$cross_compiling" = yes ||
13589 $as_test_x conftest$ac_exeext
13590 }; then
13591 ac_cv_lib_Xft_XftFontOpen=yes
13592 else
13593 $as_echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13596 ac_cv_lib_Xft_XftFontOpen=no
13599 rm -rf conftest.dSYM
13600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13601 conftest$ac_exeext conftest.$ac_ext
13602 LIBS=$ac_check_lib_save_LIBS
13604 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13605 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13606 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13607 HAVE_XFT=yes
13614 if test "${HAVE_XFT}" = "yes"; then
13616 cat >>confdefs.h <<\_ACEOF
13617 #define HAVE_XFT 1
13618 _ACEOF
13621 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13622 else
13623 CPPFLAGS="$OLD_CPPFLAGS"
13624 CFLAGS="$OLD_CFLAGS"
13625 LIBS="$OLD_LIBS"
13626 fi # "${HAVE_XFT}" = "yes"
13627 fi # "$HAVE_XFT" != no
13628 fi # "x${with_xft}" != "xno"
13630 if test "$HAVE_XFT" != "yes"; then
13631 HAVE_XFT=no
13635 HAVE_FREETYPE=no
13636 ## We used to allow building with FreeType and without Xft.
13637 ## However, the ftx font backend driver is not in good shape.
13638 if test "${HAVE_XFT}" = "yes"; then
13639 HAVE_FREETYPE=yes
13640 FONTCONFIG_CFLAGS=
13641 FONTCONFIG_LIBS=
13644 HAVE_LIBOTF=no
13645 if test "${HAVE_FREETYPE}" = "yes"; then
13647 cat >>confdefs.h <<\_ACEOF
13648 #define HAVE_FREETYPE 1
13649 _ACEOF
13651 if test "${with_libotf}" != "no"; then
13653 succeeded=no
13655 # Extract the first word of "pkg-config", so it can be a program name with args.
13656 set dummy pkg-config; ac_word=$2
13657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13658 $as_echo_n "checking for $ac_word... " >&6; }
13659 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13660 $as_echo_n "(cached) " >&6
13661 else
13662 case $PKG_CONFIG in
13663 [\\/]* | ?:[\\/]*)
13664 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13668 for as_dir in $PATH
13670 IFS=$as_save_IFS
13671 test -z "$as_dir" && as_dir=.
13672 for ac_exec_ext in '' $ac_executable_extensions; do
13673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13674 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13676 break 2
13678 done
13679 done
13680 IFS=$as_save_IFS
13682 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13684 esac
13686 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13687 if test -n "$PKG_CONFIG"; then
13688 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13689 $as_echo "$PKG_CONFIG" >&6; }
13690 else
13691 { $as_echo "$as_me:$LINENO: result: no" >&5
13692 $as_echo "no" >&6; }
13697 if test "$PKG_CONFIG" = "no" ; then
13698 HAVE_LIBOTF=no
13699 else
13700 PKG_CONFIG_MIN_VERSION=0.9.0
13701 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13702 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
13703 $as_echo_n "checking for libotf... " >&6; }
13705 if $PKG_CONFIG --exists "libotf" 2>&5; then
13706 { $as_echo "$as_me:$LINENO: result: yes" >&5
13707 $as_echo "yes" >&6; }
13708 succeeded=yes
13710 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13711 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
13712 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13713 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13714 $as_echo "$LIBOTF_CFLAGS" >&6; }
13716 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13717 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
13718 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13719 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13720 $as_echo "$LIBOTF_LIBS" >&6; }
13721 else
13722 { $as_echo "$as_me:$LINENO: result: no" >&5
13723 $as_echo "no" >&6; }
13724 LIBOTF_CFLAGS=""
13725 LIBOTF_LIBS=""
13726 ## If we have a custom action on failure, don't print errors, but
13727 ## do set a variable so people can do so.
13728 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13734 else
13735 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13736 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13740 if test $succeeded = yes; then
13741 HAVE_LIBOTF=yes
13742 else
13743 HAVE_LIBOTF=no
13746 if test "$HAVE_LIBOTF" = "yes"; then
13748 cat >>confdefs.h <<\_ACEOF
13749 #define HAVE_LIBOTF 1
13750 _ACEOF
13752 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13753 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13754 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13755 $as_echo_n "(cached) " >&6
13756 else
13757 ac_check_lib_save_LIBS=$LIBS
13758 LIBS="-lotf $LIBS"
13759 cat >conftest.$ac_ext <<_ACEOF
13760 /* confdefs.h. */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13766 /* Override any GCC internal prototype to avoid an error.
13767 Use char because int might match the return type of a GCC
13768 builtin and then its argument prototype would still apply. */
13769 #ifdef __cplusplus
13770 extern "C"
13771 #endif
13772 char OTF_get_variation_glyphs ();
13774 main ()
13776 return OTF_get_variation_glyphs ();
13778 return 0;
13780 _ACEOF
13781 rm -f conftest.$ac_objext conftest$ac_exeext
13782 if { (ac_try="$ac_link"
13783 case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13786 esac
13787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13788 $as_echo "$ac_try_echo") >&5
13789 (eval "$ac_link") 2>conftest.er1
13790 ac_status=$?
13791 grep -v '^ *+' conftest.er1 >conftest.err
13792 rm -f conftest.er1
13793 cat conftest.err >&5
13794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } && {
13796 test -z "$ac_c_werror_flag" ||
13797 test ! -s conftest.err
13798 } && test -s conftest$ac_exeext && {
13799 test "$cross_compiling" = yes ||
13800 $as_test_x conftest$ac_exeext
13801 }; then
13802 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13803 else
13804 $as_echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13807 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13810 rm -rf conftest.dSYM
13811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13812 conftest$ac_exeext conftest.$ac_ext
13813 LIBS=$ac_check_lib_save_LIBS
13815 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13816 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13817 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13818 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13819 else
13820 HAVE_OTF_GET_VARIATION_GLYPHS=no
13823 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13825 cat >>confdefs.h <<\_ACEOF
13826 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13827 _ACEOF
13834 HAVE_M17N_FLT=no
13835 if test "${HAVE_LIBOTF}" = yes; then
13836 if test "${with_m17n_flt}" != "no"; then
13838 succeeded=no
13840 # Extract the first word of "pkg-config", so it can be a program name with args.
13841 set dummy pkg-config; ac_word=$2
13842 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13843 $as_echo_n "checking for $ac_word... " >&6; }
13844 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13845 $as_echo_n "(cached) " >&6
13846 else
13847 case $PKG_CONFIG in
13848 [\\/]* | ?:[\\/]*)
13849 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13853 for as_dir in $PATH
13855 IFS=$as_save_IFS
13856 test -z "$as_dir" && as_dir=.
13857 for ac_exec_ext in '' $ac_executable_extensions; do
13858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13859 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13861 break 2
13863 done
13864 done
13865 IFS=$as_save_IFS
13867 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13869 esac
13871 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13872 if test -n "$PKG_CONFIG"; then
13873 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13874 $as_echo "$PKG_CONFIG" >&6; }
13875 else
13876 { $as_echo "$as_me:$LINENO: result: no" >&5
13877 $as_echo "no" >&6; }
13882 if test "$PKG_CONFIG" = "no" ; then
13883 HAVE_M17N_FLT=no
13884 else
13885 PKG_CONFIG_MIN_VERSION=0.9.0
13886 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13887 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
13888 $as_echo_n "checking for m17n-flt... " >&6; }
13890 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13891 { $as_echo "$as_me:$LINENO: result: yes" >&5
13892 $as_echo "yes" >&6; }
13893 succeeded=yes
13895 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13896 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13897 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13898 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13899 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13901 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13902 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13903 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13904 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13905 $as_echo "$M17N_FLT_LIBS" >&6; }
13906 else
13907 { $as_echo "$as_me:$LINENO: result: no" >&5
13908 $as_echo "no" >&6; }
13909 M17N_FLT_CFLAGS=""
13910 M17N_FLT_LIBS=""
13911 ## If we have a custom action on failure, don't print errors, but
13912 ## do set a variable so people can do so.
13913 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13919 else
13920 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13921 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13925 if test $succeeded = yes; then
13926 HAVE_M17N_FLT=yes
13927 else
13928 HAVE_M17N_FLT=no
13931 if test "$HAVE_M17N_FLT" = "yes"; then
13933 cat >>confdefs.h <<\_ACEOF
13934 #define HAVE_M17N_FLT 1
13935 _ACEOF
13940 else
13941 HAVE_XFT=no
13942 HAVE_FREETYPE=no
13943 HAVE_LIBOTF=no
13944 HAVE_M17N_FLT=no
13946 ### End of font-backend (under X11) section.
13957 ### Use -lXpm if available, unless `--with-xpm=no'.
13958 HAVE_XPM=no
13959 if test "${HAVE_X11}" = "yes"; then
13960 if test "${with_xpm}" != "no"; then
13961 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13962 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13963 $as_echo_n "checking for X11/xpm.h... " >&6; }
13964 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13965 $as_echo_n "(cached) " >&6
13967 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13968 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13969 else
13970 # Is the header compilable?
13971 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13972 $as_echo_n "checking X11/xpm.h usability... " >&6; }
13973 cat >conftest.$ac_ext <<_ACEOF
13974 /* confdefs.h. */
13975 _ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13979 $ac_includes_default
13980 #include <X11/xpm.h>
13981 _ACEOF
13982 rm -f conftest.$ac_objext
13983 if { (ac_try="$ac_compile"
13984 case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13987 esac
13988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13989 $as_echo "$ac_try_echo") >&5
13990 (eval "$ac_compile") 2>conftest.er1
13991 ac_status=$?
13992 grep -v '^ *+' conftest.er1 >conftest.err
13993 rm -f conftest.er1
13994 cat conftest.err >&5
13995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } && {
13997 test -z "$ac_c_werror_flag" ||
13998 test ! -s conftest.err
13999 } && test -s conftest.$ac_objext; then
14000 ac_header_compiler=yes
14001 else
14002 $as_echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_header_compiler=no
14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14010 $as_echo "$ac_header_compiler" >&6; }
14012 # Is the header present?
14013 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14014 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14015 cat >conftest.$ac_ext <<_ACEOF
14016 /* confdefs.h. */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 #include <X11/xpm.h>
14022 _ACEOF
14023 if { (ac_try="$ac_cpp conftest.$ac_ext"
14024 case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14027 esac
14028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14029 $as_echo "$ac_try_echo") >&5
14030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14031 ac_status=$?
14032 grep -v '^ *+' conftest.er1 >conftest.err
14033 rm -f conftest.er1
14034 cat conftest.err >&5
14035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } >/dev/null && {
14037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14038 test ! -s conftest.err
14039 }; then
14040 ac_header_preproc=yes
14041 else
14042 $as_echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_header_preproc=no
14048 rm -f conftest.err conftest.$ac_ext
14049 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14050 $as_echo "$ac_header_preproc" >&6; }
14052 # So? What about this header?
14053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14054 yes:no: )
14055 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14056 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14057 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14058 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14059 ac_header_preproc=yes
14061 no:yes:* )
14062 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14063 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14064 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14065 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14066 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14067 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14068 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14069 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14070 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14071 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14072 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14073 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14076 esac
14077 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14078 $as_echo_n "checking for X11/xpm.h... " >&6; }
14079 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14080 $as_echo_n "(cached) " >&6
14081 else
14082 ac_cv_header_X11_xpm_h=$ac_header_preproc
14084 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14085 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14088 if test $ac_cv_header_X11_xpm_h = yes; then
14089 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14090 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14091 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14092 $as_echo_n "(cached) " >&6
14093 else
14094 ac_check_lib_save_LIBS=$LIBS
14095 LIBS="-lXpm -lX11 $LIBS"
14096 cat >conftest.$ac_ext <<_ACEOF
14097 /* confdefs.h. */
14098 _ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h. */
14103 /* Override any GCC internal prototype to avoid an error.
14104 Use char because int might match the return type of a GCC
14105 builtin and then its argument prototype would still apply. */
14106 #ifdef __cplusplus
14107 extern "C"
14108 #endif
14109 char XpmReadFileToPixmap ();
14111 main ()
14113 return XpmReadFileToPixmap ();
14115 return 0;
14117 _ACEOF
14118 rm -f conftest.$ac_objext conftest$ac_exeext
14119 if { (ac_try="$ac_link"
14120 case "(($ac_try" in
14121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14122 *) ac_try_echo=$ac_try;;
14123 esac
14124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14125 $as_echo "$ac_try_echo") >&5
14126 (eval "$ac_link") 2>conftest.er1
14127 ac_status=$?
14128 grep -v '^ *+' conftest.er1 >conftest.err
14129 rm -f conftest.er1
14130 cat conftest.err >&5
14131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } && {
14133 test -z "$ac_c_werror_flag" ||
14134 test ! -s conftest.err
14135 } && test -s conftest$ac_exeext && {
14136 test "$cross_compiling" = yes ||
14137 $as_test_x conftest$ac_exeext
14138 }; then
14139 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14140 else
14141 $as_echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14144 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14147 rm -rf conftest.dSYM
14148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14149 conftest$ac_exeext conftest.$ac_ext
14150 LIBS=$ac_check_lib_save_LIBS
14152 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14153 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14154 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14155 HAVE_XPM=yes
14161 if test "${HAVE_XPM}" = "yes"; then
14162 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14163 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14164 cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h. */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 #include "X11/xpm.h"
14171 #ifndef XpmReturnAllocPixels
14172 no_return_alloc_pixels
14173 #endif
14175 _ACEOF
14176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14177 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14178 HAVE_XPM=no
14179 else
14180 HAVE_XPM=yes
14182 rm -f conftest*
14185 if test "${HAVE_XPM}" = "yes"; then
14186 { $as_echo "$as_me:$LINENO: result: yes" >&5
14187 $as_echo "yes" >&6; }
14188 else
14189 { $as_echo "$as_me:$LINENO: result: no" >&5
14190 $as_echo "no" >&6; }
14195 if test "${HAVE_XPM}" = "yes"; then
14197 cat >>confdefs.h <<\_ACEOF
14198 #define HAVE_XPM 1
14199 _ACEOF
14204 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14205 HAVE_JPEG=no
14206 if test "${HAVE_X11}" = "yes"; then
14207 if test "${with_jpeg}" != "no"; then
14208 if test "${ac_cv_header_jerror_h+set}" = set; then
14209 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14210 $as_echo_n "checking for jerror.h... " >&6; }
14211 if test "${ac_cv_header_jerror_h+set}" = set; then
14212 $as_echo_n "(cached) " >&6
14214 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14215 $as_echo "$ac_cv_header_jerror_h" >&6; }
14216 else
14217 # Is the header compilable?
14218 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14219 $as_echo_n "checking jerror.h usability... " >&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 <jerror.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14236 $as_echo "$ac_try_echo") >&5
14237 (eval "$ac_compile") 2>conftest.er1
14238 ac_status=$?
14239 grep -v '^ *+' conftest.er1 >conftest.err
14240 rm -f conftest.er1
14241 cat conftest.err >&5
14242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } && {
14244 test -z "$ac_c_werror_flag" ||
14245 test ! -s conftest.err
14246 } && test -s conftest.$ac_objext; then
14247 ac_header_compiler=yes
14248 else
14249 $as_echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14252 ac_header_compiler=no
14255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14256 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14257 $as_echo "$ac_header_compiler" >&6; }
14259 # Is the header present?
14260 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14261 $as_echo_n "checking jerror.h presence... " >&6; }
14262 cat >conftest.$ac_ext <<_ACEOF
14263 /* confdefs.h. */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 #include <jerror.h>
14269 _ACEOF
14270 if { (ac_try="$ac_cpp conftest.$ac_ext"
14271 case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14274 esac
14275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14276 $as_echo "$ac_try_echo") >&5
14277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14278 ac_status=$?
14279 grep -v '^ *+' conftest.er1 >conftest.err
14280 rm -f conftest.er1
14281 cat conftest.err >&5
14282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } >/dev/null && {
14284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14285 test ! -s conftest.err
14286 }; then
14287 ac_header_preproc=yes
14288 else
14289 $as_echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14292 ac_header_preproc=no
14295 rm -f conftest.err conftest.$ac_ext
14296 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14297 $as_echo "$ac_header_preproc" >&6; }
14299 # So? What about this header?
14300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14301 yes:no: )
14302 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14303 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14304 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14305 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14306 ac_header_preproc=yes
14308 no:yes:* )
14309 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14310 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14311 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14312 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14313 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14314 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14315 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14316 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14317 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14318 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14319 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14320 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14323 esac
14324 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14325 $as_echo_n "checking for jerror.h... " >&6; }
14326 if test "${ac_cv_header_jerror_h+set}" = set; then
14327 $as_echo_n "(cached) " >&6
14328 else
14329 ac_cv_header_jerror_h=$ac_header_preproc
14331 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14332 $as_echo "$ac_cv_header_jerror_h" >&6; }
14335 if test $ac_cv_header_jerror_h = yes; then
14336 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14337 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14338 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14339 $as_echo_n "(cached) " >&6
14340 else
14341 ac_check_lib_save_LIBS=$LIBS
14342 LIBS="-ljpeg $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 jpeg_destroy_compress ();
14358 main ()
14360 return jpeg_destroy_compress ();
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14372 $as_echo "$ac_try_echo") >&5
14373 (eval "$ac_link") 2>conftest.er1
14374 ac_status=$?
14375 grep -v '^ *+' conftest.er1 >conftest.err
14376 rm -f conftest.er1
14377 cat conftest.err >&5
14378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } && {
14380 test -z "$ac_c_werror_flag" ||
14381 test ! -s conftest.err
14382 } && test -s conftest$ac_exeext && {
14383 test "$cross_compiling" = yes ||
14384 $as_test_x conftest$ac_exeext
14385 }; then
14386 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14387 else
14388 $as_echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14391 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14394 rm -rf conftest.dSYM
14395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14396 conftest$ac_exeext conftest.$ac_ext
14397 LIBS=$ac_check_lib_save_LIBS
14399 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14400 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14401 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14402 HAVE_JPEG=yes
14411 if test "${HAVE_JPEG}" = "yes"; then
14412 cat >>confdefs.h <<\_ACEOF
14413 #define HAVE_JPEG 1
14414 _ACEOF
14416 cat >conftest.$ac_ext <<_ACEOF
14417 /* confdefs.h. */
14418 _ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14422 #include <jpeglib.h>
14423 version=JPEG_LIB_VERSION
14425 _ACEOF
14426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14427 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14428 cat >>confdefs.h <<\_ACEOF
14429 #define HAVE_JPEG 1
14430 _ACEOF
14432 else
14433 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14434 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14435 HAVE_JPEG=no
14437 rm -f conftest*
14442 ### Use -lpng if available, unless `--with-png=no'.
14443 HAVE_PNG=no
14444 if test "${HAVE_X11}" = "yes"; then
14445 if test "${with_png}" != "no"; then
14446 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14447 # in /usr/include/libpng.
14450 for ac_header in png.h libpng/png.h
14452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14454 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14455 $as_echo_n "checking for $ac_header... " >&6; }
14456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14457 $as_echo_n "(cached) " >&6
14459 ac_res=`eval 'as_val=${'$as_ac_Header'}
14460 $as_echo "$as_val"'`
14461 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14462 $as_echo "$ac_res" >&6; }
14463 else
14464 # Is the header compilable?
14465 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14466 $as_echo_n "checking $ac_header usability... " >&6; }
14467 cat >conftest.$ac_ext <<_ACEOF
14468 /* confdefs.h. */
14469 _ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h. */
14473 $ac_includes_default
14474 #include <$ac_header>
14475 _ACEOF
14476 rm -f conftest.$ac_objext
14477 if { (ac_try="$ac_compile"
14478 case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14481 esac
14482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14483 $as_echo "$ac_try_echo") >&5
14484 (eval "$ac_compile") 2>conftest.er1
14485 ac_status=$?
14486 grep -v '^ *+' conftest.er1 >conftest.err
14487 rm -f conftest.er1
14488 cat conftest.err >&5
14489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } && {
14491 test -z "$ac_c_werror_flag" ||
14492 test ! -s conftest.err
14493 } && test -s conftest.$ac_objext; then
14494 ac_header_compiler=yes
14495 else
14496 $as_echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14499 ac_header_compiler=no
14502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14503 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14504 $as_echo "$ac_header_compiler" >&6; }
14506 # Is the header present?
14507 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14508 $as_echo_n "checking $ac_header presence... " >&6; }
14509 cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h. */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14515 #include <$ac_header>
14516 _ACEOF
14517 if { (ac_try="$ac_cpp conftest.$ac_ext"
14518 case "(($ac_try" in
14519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520 *) ac_try_echo=$ac_try;;
14521 esac
14522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14523 $as_echo "$ac_try_echo") >&5
14524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14525 ac_status=$?
14526 grep -v '^ *+' conftest.er1 >conftest.err
14527 rm -f conftest.er1
14528 cat conftest.err >&5
14529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } >/dev/null && {
14531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14532 test ! -s conftest.err
14533 }; then
14534 ac_header_preproc=yes
14535 else
14536 $as_echo "$as_me: failed program was:" >&5
14537 sed 's/^/| /' conftest.$ac_ext >&5
14539 ac_header_preproc=no
14542 rm -f conftest.err conftest.$ac_ext
14543 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14544 $as_echo "$ac_header_preproc" >&6; }
14546 # So? What about this header?
14547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14548 yes:no: )
14549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14550 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14553 ac_header_preproc=yes
14555 no:yes:* )
14556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14557 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14559 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14561 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14563 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14565 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14567 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14570 esac
14571 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14572 $as_echo_n "checking for $ac_header... " >&6; }
14573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14574 $as_echo_n "(cached) " >&6
14575 else
14576 eval "$as_ac_Header=\$ac_header_preproc"
14578 ac_res=`eval 'as_val=${'$as_ac_Header'}
14579 $as_echo "$as_val"'`
14580 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14581 $as_echo "$ac_res" >&6; }
14584 if test `eval 'as_val=${'$as_ac_Header'}
14585 $as_echo "$as_val"'` = yes; then
14586 cat >>confdefs.h <<_ACEOF
14587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14588 _ACEOF
14592 done
14594 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14595 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14596 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
14597 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14598 $as_echo_n "(cached) " >&6
14599 else
14600 ac_check_lib_save_LIBS=$LIBS
14601 LIBS="-lpng -lz -lm $LIBS"
14602 cat >conftest.$ac_ext <<_ACEOF
14603 /* confdefs.h. */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14609 /* Override any GCC internal prototype to avoid an error.
14610 Use char because int might match the return type of a GCC
14611 builtin and then its argument prototype would still apply. */
14612 #ifdef __cplusplus
14613 extern "C"
14614 #endif
14615 char png_get_channels ();
14617 main ()
14619 return png_get_channels ();
14621 return 0;
14623 _ACEOF
14624 rm -f conftest.$ac_objext conftest$ac_exeext
14625 if { (ac_try="$ac_link"
14626 case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14629 esac
14630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14631 $as_echo "$ac_try_echo") >&5
14632 (eval "$ac_link") 2>conftest.er1
14633 ac_status=$?
14634 grep -v '^ *+' conftest.er1 >conftest.err
14635 rm -f conftest.er1
14636 cat conftest.err >&5
14637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } && {
14639 test -z "$ac_c_werror_flag" ||
14640 test ! -s conftest.err
14641 } && test -s conftest$ac_exeext && {
14642 test "$cross_compiling" = yes ||
14643 $as_test_x conftest$ac_exeext
14644 }; then
14645 ac_cv_lib_png_png_get_channels=yes
14646 else
14647 $as_echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14650 ac_cv_lib_png_png_get_channels=no
14653 rm -rf conftest.dSYM
14654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14655 conftest$ac_exeext conftest.$ac_ext
14656 LIBS=$ac_check_lib_save_LIBS
14658 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14659 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14660 if test $ac_cv_lib_png_png_get_channels = yes; then
14661 HAVE_PNG=yes
14667 if test "${HAVE_PNG}" = "yes"; then
14669 cat >>confdefs.h <<\_ACEOF
14670 #define HAVE_PNG 1
14671 _ACEOF
14676 ### Use -ltiff if available, unless `--with-tiff=no'.
14677 HAVE_TIFF=no
14678 if test "${HAVE_X11}" = "yes"; then
14679 if test "${with_tiff}" != "no"; then
14680 if test "${ac_cv_header_tiffio_h+set}" = set; then
14681 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14682 $as_echo_n "checking for tiffio.h... " >&6; }
14683 if test "${ac_cv_header_tiffio_h+set}" = set; then
14684 $as_echo_n "(cached) " >&6
14686 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14687 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14688 else
14689 # Is the header compilable?
14690 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14691 $as_echo_n "checking tiffio.h usability... " >&6; }
14692 cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h. */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 $ac_includes_default
14699 #include <tiffio.h>
14700 _ACEOF
14701 rm -f conftest.$ac_objext
14702 if { (ac_try="$ac_compile"
14703 case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14706 esac
14707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14708 $as_echo "$ac_try_echo") >&5
14709 (eval "$ac_compile") 2>conftest.er1
14710 ac_status=$?
14711 grep -v '^ *+' conftest.er1 >conftest.err
14712 rm -f conftest.er1
14713 cat conftest.err >&5
14714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } && {
14716 test -z "$ac_c_werror_flag" ||
14717 test ! -s conftest.err
14718 } && test -s conftest.$ac_objext; then
14719 ac_header_compiler=yes
14720 else
14721 $as_echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14724 ac_header_compiler=no
14727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14728 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14729 $as_echo "$ac_header_compiler" >&6; }
14731 # Is the header present?
14732 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14733 $as_echo_n "checking tiffio.h presence... " >&6; }
14734 cat >conftest.$ac_ext <<_ACEOF
14735 /* confdefs.h. */
14736 _ACEOF
14737 cat confdefs.h >>conftest.$ac_ext
14738 cat >>conftest.$ac_ext <<_ACEOF
14739 /* end confdefs.h. */
14740 #include <tiffio.h>
14741 _ACEOF
14742 if { (ac_try="$ac_cpp conftest.$ac_ext"
14743 case "(($ac_try" in
14744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745 *) ac_try_echo=$ac_try;;
14746 esac
14747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14748 $as_echo "$ac_try_echo") >&5
14749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14750 ac_status=$?
14751 grep -v '^ *+' conftest.er1 >conftest.err
14752 rm -f conftest.er1
14753 cat conftest.err >&5
14754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } >/dev/null && {
14756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14757 test ! -s conftest.err
14758 }; then
14759 ac_header_preproc=yes
14760 else
14761 $as_echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14764 ac_header_preproc=no
14767 rm -f conftest.err conftest.$ac_ext
14768 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14769 $as_echo "$ac_header_preproc" >&6; }
14771 # So? What about this header?
14772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14773 yes:no: )
14774 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14775 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14776 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14777 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14778 ac_header_preproc=yes
14780 no:yes:* )
14781 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14782 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14783 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14784 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14785 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14786 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14787 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14788 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14789 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14790 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14791 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14792 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14795 esac
14796 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14797 $as_echo_n "checking for tiffio.h... " >&6; }
14798 if test "${ac_cv_header_tiffio_h+set}" = set; then
14799 $as_echo_n "(cached) " >&6
14800 else
14801 ac_cv_header_tiffio_h=$ac_header_preproc
14803 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14804 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14807 if test $ac_cv_header_tiffio_h = yes; then
14808 tifflibs="-lz -lm"
14809 # At least one tiff package requires the jpeg library.
14810 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14811 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14812 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
14813 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14814 $as_echo_n "(cached) " >&6
14815 else
14816 ac_check_lib_save_LIBS=$LIBS
14817 LIBS="-ltiff $tifflibs $LIBS"
14818 cat >conftest.$ac_ext <<_ACEOF
14819 /* confdefs.h. */
14820 _ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h. */
14825 /* Override any GCC internal prototype to avoid an error.
14826 Use char because int might match the return type of a GCC
14827 builtin and then its argument prototype would still apply. */
14828 #ifdef __cplusplus
14829 extern "C"
14830 #endif
14831 char TIFFGetVersion ();
14833 main ()
14835 return TIFFGetVersion ();
14837 return 0;
14839 _ACEOF
14840 rm -f conftest.$ac_objext conftest$ac_exeext
14841 if { (ac_try="$ac_link"
14842 case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14845 esac
14846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14847 $as_echo "$ac_try_echo") >&5
14848 (eval "$ac_link") 2>conftest.er1
14849 ac_status=$?
14850 grep -v '^ *+' conftest.er1 >conftest.err
14851 rm -f conftest.er1
14852 cat conftest.err >&5
14853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } && {
14855 test -z "$ac_c_werror_flag" ||
14856 test ! -s conftest.err
14857 } && test -s conftest$ac_exeext && {
14858 test "$cross_compiling" = yes ||
14859 $as_test_x conftest$ac_exeext
14860 }; then
14861 ac_cv_lib_tiff_TIFFGetVersion=yes
14862 else
14863 $as_echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 ac_cv_lib_tiff_TIFFGetVersion=no
14869 rm -rf conftest.dSYM
14870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14871 conftest$ac_exeext conftest.$ac_ext
14872 LIBS=$ac_check_lib_save_LIBS
14874 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14875 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14876 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14877 HAVE_TIFF=yes
14885 if test "${HAVE_TIFF}" = "yes"; then
14887 cat >>confdefs.h <<\_ACEOF
14888 #define HAVE_TIFF 1
14889 _ACEOF
14894 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14895 HAVE_GIF=no
14896 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14897 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14898 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14899 $as_echo_n "checking for gif_lib.h... " >&6; }
14900 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14901 $as_echo_n "(cached) " >&6
14903 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14904 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14905 else
14906 # Is the header compilable?
14907 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14908 $as_echo_n "checking gif_lib.h usability... " >&6; }
14909 cat >conftest.$ac_ext <<_ACEOF
14910 /* confdefs.h. */
14911 _ACEOF
14912 cat confdefs.h >>conftest.$ac_ext
14913 cat >>conftest.$ac_ext <<_ACEOF
14914 /* end confdefs.h. */
14915 $ac_includes_default
14916 #include <gif_lib.h>
14917 _ACEOF
14918 rm -f conftest.$ac_objext
14919 if { (ac_try="$ac_compile"
14920 case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14923 esac
14924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14925 $as_echo "$ac_try_echo") >&5
14926 (eval "$ac_compile") 2>conftest.er1
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
14931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } && {
14933 test -z "$ac_c_werror_flag" ||
14934 test ! -s conftest.err
14935 } && test -s conftest.$ac_objext; then
14936 ac_header_compiler=yes
14937 else
14938 $as_echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 ac_header_compiler=no
14944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14945 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14946 $as_echo "$ac_header_compiler" >&6; }
14948 # Is the header present?
14949 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14950 $as_echo_n "checking gif_lib.h presence... " >&6; }
14951 cat >conftest.$ac_ext <<_ACEOF
14952 /* confdefs.h. */
14953 _ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14957 #include <gif_lib.h>
14958 _ACEOF
14959 if { (ac_try="$ac_cpp conftest.$ac_ext"
14960 case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14963 esac
14964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14965 $as_echo "$ac_try_echo") >&5
14966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } >/dev/null && {
14973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14974 test ! -s conftest.err
14975 }; then
14976 ac_header_preproc=yes
14977 else
14978 $as_echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14981 ac_header_preproc=no
14984 rm -f conftest.err conftest.$ac_ext
14985 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14986 $as_echo "$ac_header_preproc" >&6; }
14988 # So? What about this header?
14989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14990 yes:no: )
14991 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14992 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14993 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14994 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14995 ac_header_preproc=yes
14997 no:yes:* )
14998 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14999 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15000 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15001 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15002 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15003 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15004 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15005 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15006 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15007 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15008 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15009 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15012 esac
15013 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15014 $as_echo_n "checking for gif_lib.h... " >&6; }
15015 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15016 $as_echo_n "(cached) " >&6
15017 else
15018 ac_cv_header_gif_lib_h=$ac_header_preproc
15020 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15021 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15024 if test $ac_cv_header_gif_lib_h = yes; then
15025 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15026 # Earlier versions can crash Emacs.
15027 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15028 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15029 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15030 $as_echo_n "(cached) " >&6
15031 else
15032 ac_check_lib_save_LIBS=$LIBS
15033 LIBS="-lgif $LIBS"
15034 cat >conftest.$ac_ext <<_ACEOF
15035 /* confdefs.h. */
15036 _ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15041 /* Override any GCC internal prototype to avoid an error.
15042 Use char because int might match the return type of a GCC
15043 builtin and then its argument prototype would still apply. */
15044 #ifdef __cplusplus
15045 extern "C"
15046 #endif
15047 char EGifPutExtensionLast ();
15049 main ()
15051 return EGifPutExtensionLast ();
15053 return 0;
15055 _ACEOF
15056 rm -f conftest.$ac_objext conftest$ac_exeext
15057 if { (ac_try="$ac_link"
15058 case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15061 esac
15062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15063 $as_echo "$ac_try_echo") >&5
15064 (eval "$ac_link") 2>conftest.er1
15065 ac_status=$?
15066 grep -v '^ *+' conftest.er1 >conftest.err
15067 rm -f conftest.er1
15068 cat conftest.err >&5
15069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } && {
15071 test -z "$ac_c_werror_flag" ||
15072 test ! -s conftest.err
15073 } && test -s conftest$ac_exeext && {
15074 test "$cross_compiling" = yes ||
15075 $as_test_x conftest$ac_exeext
15076 }; then
15077 ac_cv_lib_gif_EGifPutExtensionLast=yes
15078 else
15079 $as_echo "$as_me: failed program was:" >&5
15080 sed 's/^/| /' conftest.$ac_ext >&5
15082 ac_cv_lib_gif_EGifPutExtensionLast=no
15085 rm -rf conftest.dSYM
15086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15087 conftest$ac_exeext conftest.$ac_ext
15088 LIBS=$ac_check_lib_save_LIBS
15090 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15091 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15092 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15093 HAVE_GIF=yes
15094 else
15095 try_libungif=yes
15102 if test "$HAVE_GIF" = yes; then
15103 ac_gif_lib_name="-lgif"
15106 # If gif_lib.h but no libgif, try libungif.
15107 if test x"$try_libungif" = xyes; then
15108 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15109 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15110 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15111 $as_echo_n "(cached) " >&6
15112 else
15113 ac_check_lib_save_LIBS=$LIBS
15114 LIBS="-lungif $LIBS"
15115 cat >conftest.$ac_ext <<_ACEOF
15116 /* confdefs.h. */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15122 /* Override any GCC internal prototype to avoid an error.
15123 Use char because int might match the return type of a GCC
15124 builtin and then its argument prototype would still apply. */
15125 #ifdef __cplusplus
15126 extern "C"
15127 #endif
15128 char EGifPutExtensionLast ();
15130 main ()
15132 return EGifPutExtensionLast ();
15134 return 0;
15136 _ACEOF
15137 rm -f conftest.$ac_objext conftest$ac_exeext
15138 if { (ac_try="$ac_link"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15142 esac
15143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15144 $as_echo "$ac_try_echo") >&5
15145 (eval "$ac_link") 2>conftest.er1
15146 ac_status=$?
15147 grep -v '^ *+' conftest.er1 >conftest.err
15148 rm -f conftest.er1
15149 cat conftest.err >&5
15150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } && {
15152 test -z "$ac_c_werror_flag" ||
15153 test ! -s conftest.err
15154 } && test -s conftest$ac_exeext && {
15155 test "$cross_compiling" = yes ||
15156 $as_test_x conftest$ac_exeext
15157 }; then
15158 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15159 else
15160 $as_echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 ac_cv_lib_ungif_EGifPutExtensionLast=no
15166 rm -rf conftest.dSYM
15167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15168 conftest$ac_exeext conftest.$ac_ext
15169 LIBS=$ac_check_lib_save_LIBS
15171 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15172 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15173 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15174 HAVE_GIF=yes
15178 if test "$HAVE_GIF" = yes; then
15180 cat >>confdefs.h <<\_ACEOF
15181 #define LIBGIF -lungif
15182 _ACEOF
15184 ac_gif_lib_name="-lungif"
15188 if test "${HAVE_GIF}" = "yes"; then
15190 cat >>confdefs.h <<\_ACEOF
15191 #define HAVE_GIF 1
15192 _ACEOF
15197 if test "${HAVE_X11}" = "yes"; then
15198 MISSING=""
15199 WITH_NO=""
15200 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15201 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15202 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15203 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15204 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15205 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15206 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15207 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15208 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15209 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15211 if test "X${MISSING}" != X; then
15212 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15213 $MISSING
15214 Maybe some development libraries/packages are missing?
15215 If you don't want to link with them give
15216 $WITH_NO
15217 as options to configure" >&5
15218 $as_echo "$as_me: error: The following required libraries were not found:
15219 $MISSING
15220 Maybe some development libraries/packages are missing?
15221 If you don't want to link with them give
15222 $WITH_NO
15223 as options to configure" >&2;}
15224 { (exit 1); exit 1; }; }
15228 ### Use -lgpm if available, unless `--with-gpm=no'.
15229 HAVE_GPM=no
15230 if test "${with_gpm}" != "no"; then
15231 if test "${ac_cv_header_gpm_h+set}" = set; then
15232 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15233 $as_echo_n "checking for gpm.h... " >&6; }
15234 if test "${ac_cv_header_gpm_h+set}" = set; then
15235 $as_echo_n "(cached) " >&6
15237 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15238 $as_echo "$ac_cv_header_gpm_h" >&6; }
15239 else
15240 # Is the header compilable?
15241 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15242 $as_echo_n "checking gpm.h usability... " >&6; }
15243 cat >conftest.$ac_ext <<_ACEOF
15244 /* confdefs.h. */
15245 _ACEOF
15246 cat confdefs.h >>conftest.$ac_ext
15247 cat >>conftest.$ac_ext <<_ACEOF
15248 /* end confdefs.h. */
15249 $ac_includes_default
15250 #include <gpm.h>
15251 _ACEOF
15252 rm -f conftest.$ac_objext
15253 if { (ac_try="$ac_compile"
15254 case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15257 esac
15258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15259 $as_echo "$ac_try_echo") >&5
15260 (eval "$ac_compile") 2>conftest.er1
15261 ac_status=$?
15262 grep -v '^ *+' conftest.er1 >conftest.err
15263 rm -f conftest.er1
15264 cat conftest.err >&5
15265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } && {
15267 test -z "$ac_c_werror_flag" ||
15268 test ! -s conftest.err
15269 } && test -s conftest.$ac_objext; then
15270 ac_header_compiler=yes
15271 else
15272 $as_echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ac_header_compiler=no
15278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15280 $as_echo "$ac_header_compiler" >&6; }
15282 # Is the header present?
15283 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15284 $as_echo_n "checking gpm.h presence... " >&6; }
15285 cat >conftest.$ac_ext <<_ACEOF
15286 /* confdefs.h. */
15287 _ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15291 #include <gpm.h>
15292 _ACEOF
15293 if { (ac_try="$ac_cpp conftest.$ac_ext"
15294 case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15297 esac
15298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15299 $as_echo "$ac_try_echo") >&5
15300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15301 ac_status=$?
15302 grep -v '^ *+' conftest.er1 >conftest.err
15303 rm -f conftest.er1
15304 cat conftest.err >&5
15305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } >/dev/null && {
15307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15308 test ! -s conftest.err
15309 }; then
15310 ac_header_preproc=yes
15311 else
15312 $as_echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15315 ac_header_preproc=no
15318 rm -f conftest.err conftest.$ac_ext
15319 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15320 $as_echo "$ac_header_preproc" >&6; }
15322 # So? What about this header?
15323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15324 yes:no: )
15325 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15326 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15327 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15328 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15329 ac_header_preproc=yes
15331 no:yes:* )
15332 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15333 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15334 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15335 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15336 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15337 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15338 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15339 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15340 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15341 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15342 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15343 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15346 esac
15347 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15348 $as_echo_n "checking for gpm.h... " >&6; }
15349 if test "${ac_cv_header_gpm_h+set}" = set; then
15350 $as_echo_n "(cached) " >&6
15351 else
15352 ac_cv_header_gpm_h=$ac_header_preproc
15354 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15355 $as_echo "$ac_cv_header_gpm_h" >&6; }
15358 if test $ac_cv_header_gpm_h = yes; then
15359 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15360 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15361 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15362 $as_echo_n "(cached) " >&6
15363 else
15364 ac_check_lib_save_LIBS=$LIBS
15365 LIBS="-lgpm $LIBS"
15366 cat >conftest.$ac_ext <<_ACEOF
15367 /* confdefs.h. */
15368 _ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15373 /* Override any GCC internal prototype to avoid an error.
15374 Use char because int might match the return type of a GCC
15375 builtin and then its argument prototype would still apply. */
15376 #ifdef __cplusplus
15377 extern "C"
15378 #endif
15379 char Gpm_Open ();
15381 main ()
15383 return Gpm_Open ();
15385 return 0;
15387 _ACEOF
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (ac_try="$ac_link"
15390 case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15393 esac
15394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15395 $as_echo "$ac_try_echo") >&5
15396 (eval "$ac_link") 2>conftest.er1
15397 ac_status=$?
15398 grep -v '^ *+' conftest.er1 >conftest.err
15399 rm -f conftest.er1
15400 cat conftest.err >&5
15401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } && {
15403 test -z "$ac_c_werror_flag" ||
15404 test ! -s conftest.err
15405 } && test -s conftest$ac_exeext && {
15406 test "$cross_compiling" = yes ||
15407 $as_test_x conftest$ac_exeext
15408 }; then
15409 ac_cv_lib_gpm_Gpm_Open=yes
15410 else
15411 $as_echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15414 ac_cv_lib_gpm_Gpm_Open=no
15417 rm -rf conftest.dSYM
15418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15419 conftest$ac_exeext conftest.$ac_ext
15420 LIBS=$ac_check_lib_save_LIBS
15422 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15423 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15424 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15425 HAVE_GPM=yes
15433 if test "${HAVE_GPM}" = "yes"; then
15435 cat >>confdefs.h <<\_ACEOF
15436 #define HAVE_GPM 1
15437 _ACEOF
15441 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15442 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15443 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15444 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15445 $as_echo_n "(cached) " >&6
15447 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15448 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15449 else
15450 # Is the header compilable?
15451 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15452 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15453 cat >conftest.$ac_ext <<_ACEOF
15454 /* confdefs.h. */
15455 _ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15459 $ac_includes_default
15460 #include <malloc/malloc.h>
15461 _ACEOF
15462 rm -f conftest.$ac_objext
15463 if { (ac_try="$ac_compile"
15464 case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15467 esac
15468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15469 $as_echo "$ac_try_echo") >&5
15470 (eval "$ac_compile") 2>conftest.er1
15471 ac_status=$?
15472 grep -v '^ *+' conftest.er1 >conftest.err
15473 rm -f conftest.er1
15474 cat conftest.err >&5
15475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } && {
15477 test -z "$ac_c_werror_flag" ||
15478 test ! -s conftest.err
15479 } && test -s conftest.$ac_objext; then
15480 ac_header_compiler=yes
15481 else
15482 $as_echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 ac_header_compiler=no
15488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15489 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15490 $as_echo "$ac_header_compiler" >&6; }
15492 # Is the header present?
15493 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15494 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15495 cat >conftest.$ac_ext <<_ACEOF
15496 /* confdefs.h. */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15501 #include <malloc/malloc.h>
15502 _ACEOF
15503 if { (ac_try="$ac_cpp conftest.$ac_ext"
15504 case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15507 esac
15508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15509 $as_echo "$ac_try_echo") >&5
15510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15511 ac_status=$?
15512 grep -v '^ *+' conftest.er1 >conftest.err
15513 rm -f conftest.er1
15514 cat conftest.err >&5
15515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } >/dev/null && {
15517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15518 test ! -s conftest.err
15519 }; then
15520 ac_header_preproc=yes
15521 else
15522 $as_echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15525 ac_header_preproc=no
15528 rm -f conftest.err conftest.$ac_ext
15529 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15530 $as_echo "$ac_header_preproc" >&6; }
15532 # So? What about this header?
15533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15534 yes:no: )
15535 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15536 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15537 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15538 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15539 ac_header_preproc=yes
15541 no:yes:* )
15542 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15543 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15544 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15545 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15546 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15547 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15548 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15549 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15550 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15551 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15552 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15553 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15556 esac
15557 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15558 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15559 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15560 $as_echo_n "(cached) " >&6
15561 else
15562 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15564 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15565 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15568 if test $ac_cv_header_malloc_malloc_h = yes; then
15570 cat >>confdefs.h <<\_ACEOF
15571 #define HAVE_MALLOC_MALLOC_H 1
15572 _ACEOF
15578 ### Use NeXTstep API to implement GUI.
15579 if test "${HAVE_NS}" = "yes"; then
15581 cat >>confdefs.h <<\_ACEOF
15582 #define HAVE_NS 1
15583 _ACEOF
15585 if test "${NS_IMPL_COCOA}" = "yes"; then
15587 cat >>confdefs.h <<\_ACEOF
15588 #define NS_IMPL_COCOA 1
15589 _ACEOF
15591 GNU_OBJC_CFLAGS=
15593 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15595 cat >>confdefs.h <<\_ACEOF
15596 #define NS_IMPL_GNUSTEP 1
15597 _ACEOF
15599 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15601 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15603 cat >>confdefs.h <<\_ACEOF
15604 #define NS_HAVE_NSINTEGER 1
15605 _ACEOF
15608 # We also have mouse menus.
15609 HAVE_MENUS=yes
15610 OTHER_FILES=ns-app
15614 ### Use session management (-lSM -lICE) if available
15615 HAVE_X_SM=no
15616 if test "${HAVE_X11}" = "yes"; then
15617 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15618 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15619 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15620 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15621 $as_echo_n "(cached) " >&6
15623 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15624 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15625 else
15626 # Is the header compilable?
15627 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15628 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
15629 cat >conftest.$ac_ext <<_ACEOF
15630 /* confdefs.h. */
15631 _ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h. */
15635 $ac_includes_default
15636 #include <X11/SM/SMlib.h>
15637 _ACEOF
15638 rm -f conftest.$ac_objext
15639 if { (ac_try="$ac_compile"
15640 case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15643 esac
15644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15645 $as_echo "$ac_try_echo") >&5
15646 (eval "$ac_compile") 2>conftest.er1
15647 ac_status=$?
15648 grep -v '^ *+' conftest.er1 >conftest.err
15649 rm -f conftest.er1
15650 cat conftest.err >&5
15651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } && {
15653 test -z "$ac_c_werror_flag" ||
15654 test ! -s conftest.err
15655 } && test -s conftest.$ac_objext; then
15656 ac_header_compiler=yes
15657 else
15658 $as_echo "$as_me: failed program was:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15661 ac_header_compiler=no
15664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15665 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15666 $as_echo "$ac_header_compiler" >&6; }
15668 # Is the header present?
15669 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15670 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
15671 cat >conftest.$ac_ext <<_ACEOF
15672 /* confdefs.h. */
15673 _ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 #include <X11/SM/SMlib.h>
15678 _ACEOF
15679 if { (ac_try="$ac_cpp conftest.$ac_ext"
15680 case "(($ac_try" in
15681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682 *) ac_try_echo=$ac_try;;
15683 esac
15684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15685 $as_echo "$ac_try_echo") >&5
15686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15687 ac_status=$?
15688 grep -v '^ *+' conftest.er1 >conftest.err
15689 rm -f conftest.er1
15690 cat conftest.err >&5
15691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } >/dev/null && {
15693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15694 test ! -s conftest.err
15695 }; then
15696 ac_header_preproc=yes
15697 else
15698 $as_echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15701 ac_header_preproc=no
15704 rm -f conftest.err conftest.$ac_ext
15705 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15706 $as_echo "$ac_header_preproc" >&6; }
15708 # So? What about this header?
15709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15710 yes:no: )
15711 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15712 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15713 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15714 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15715 ac_header_preproc=yes
15717 no:yes:* )
15718 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15719 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15720 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15721 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15722 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15723 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15724 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15725 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15726 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15727 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15728 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15729 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15732 esac
15733 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15734 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15735 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15736 $as_echo_n "(cached) " >&6
15737 else
15738 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15740 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15741 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15744 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15745 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15746 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
15747 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15748 $as_echo_n "(cached) " >&6
15749 else
15750 ac_check_lib_save_LIBS=$LIBS
15751 LIBS="-lSM -lICE $LIBS"
15752 cat >conftest.$ac_ext <<_ACEOF
15753 /* confdefs.h. */
15754 _ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15759 /* Override any GCC internal prototype to avoid an error.
15760 Use char because int might match the return type of a GCC
15761 builtin and then its argument prototype would still apply. */
15762 #ifdef __cplusplus
15763 extern "C"
15764 #endif
15765 char SmcOpenConnection ();
15767 main ()
15769 return SmcOpenConnection ();
15771 return 0;
15773 _ACEOF
15774 rm -f conftest.$ac_objext conftest$ac_exeext
15775 if { (ac_try="$ac_link"
15776 case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15779 esac
15780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15781 $as_echo "$ac_try_echo") >&5
15782 (eval "$ac_link") 2>conftest.er1
15783 ac_status=$?
15784 grep -v '^ *+' conftest.er1 >conftest.err
15785 rm -f conftest.er1
15786 cat conftest.err >&5
15787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } && {
15789 test -z "$ac_c_werror_flag" ||
15790 test ! -s conftest.err
15791 } && test -s conftest$ac_exeext && {
15792 test "$cross_compiling" = yes ||
15793 $as_test_x conftest$ac_exeext
15794 }; then
15795 ac_cv_lib_SM_SmcOpenConnection=yes
15796 else
15797 $as_echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15800 ac_cv_lib_SM_SmcOpenConnection=no
15803 rm -rf conftest.dSYM
15804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15805 conftest$ac_exeext conftest.$ac_ext
15806 LIBS=$ac_check_lib_save_LIBS
15808 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15809 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15810 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15811 HAVE_X_SM=yes
15818 if test "${HAVE_X_SM}" = "yes"; then
15820 cat >>confdefs.h <<\_ACEOF
15821 #define HAVE_X_SM 1
15822 _ACEOF
15824 case "$LIBS" in
15825 *-lSM*) ;;
15826 *) LIBS="-lSM -lICE $LIBS" ;;
15827 esac
15831 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15832 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15833 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
15834 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15835 $as_echo_n "(cached) " >&6
15836 else
15837 cat >conftest.$ac_ext <<_ACEOF
15838 /* confdefs.h. */
15839 _ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h. */
15843 #include <netdb.h>
15845 main ()
15847 return h_errno;
15849 return 0;
15851 _ACEOF
15852 rm -f conftest.$ac_objext conftest$ac_exeext
15853 if { (ac_try="$ac_link"
15854 case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15857 esac
15858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15859 $as_echo "$ac_try_echo") >&5
15860 (eval "$ac_link") 2>conftest.er1
15861 ac_status=$?
15862 grep -v '^ *+' conftest.er1 >conftest.err
15863 rm -f conftest.er1
15864 cat conftest.err >&5
15865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); } && {
15867 test -z "$ac_c_werror_flag" ||
15868 test ! -s conftest.err
15869 } && test -s conftest$ac_exeext && {
15870 test "$cross_compiling" = yes ||
15871 $as_test_x conftest$ac_exeext
15872 }; then
15873 emacs_cv_netdb_declares_h_errno=yes
15874 else
15875 $as_echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15878 emacs_cv_netdb_declares_h_errno=no
15881 rm -rf conftest.dSYM
15882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15883 conftest$ac_exeext conftest.$ac_ext
15885 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15886 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15887 if test $emacs_cv_netdb_declares_h_errno = yes; then
15889 cat >>confdefs.h <<\_ACEOF
15890 #define HAVE_H_ERRNO 1
15891 _ACEOF
15895 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15896 # for constant arguments. Useless!
15897 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
15898 $as_echo_n "checking for working alloca.h... " >&6; }
15899 if test "${ac_cv_working_alloca_h+set}" = set; then
15900 $as_echo_n "(cached) " >&6
15901 else
15902 cat >conftest.$ac_ext <<_ACEOF
15903 /* confdefs.h. */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 #include <alloca.h>
15910 main ()
15912 char *p = (char *) alloca (2 * sizeof (int));
15913 if (p) return 0;
15915 return 0;
15917 _ACEOF
15918 rm -f conftest.$ac_objext conftest$ac_exeext
15919 if { (ac_try="$ac_link"
15920 case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15923 esac
15924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15925 $as_echo "$ac_try_echo") >&5
15926 (eval "$ac_link") 2>conftest.er1
15927 ac_status=$?
15928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
15931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } && {
15933 test -z "$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15935 } && test -s conftest$ac_exeext && {
15936 test "$cross_compiling" = yes ||
15937 $as_test_x conftest$ac_exeext
15938 }; then
15939 ac_cv_working_alloca_h=yes
15940 else
15941 $as_echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15944 ac_cv_working_alloca_h=no
15947 rm -rf conftest.dSYM
15948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15949 conftest$ac_exeext conftest.$ac_ext
15951 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15952 $as_echo "$ac_cv_working_alloca_h" >&6; }
15953 if test $ac_cv_working_alloca_h = yes; then
15955 cat >>confdefs.h <<\_ACEOF
15956 #define HAVE_ALLOCA_H 1
15957 _ACEOF
15961 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
15962 $as_echo_n "checking for alloca... " >&6; }
15963 if test "${ac_cv_func_alloca_works+set}" = set; then
15964 $as_echo_n "(cached) " >&6
15965 else
15966 cat >conftest.$ac_ext <<_ACEOF
15967 /* confdefs.h. */
15968 _ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h. */
15972 #ifdef __GNUC__
15973 # define alloca __builtin_alloca
15974 #else
15975 # ifdef _MSC_VER
15976 # include <malloc.h>
15977 # define alloca _alloca
15978 # else
15979 # ifdef HAVE_ALLOCA_H
15980 # include <alloca.h>
15981 # else
15982 # ifdef _AIX
15983 #pragma alloca
15984 # else
15985 # ifndef alloca /* predefined by HP cc +Olibcalls */
15986 char *alloca ();
15987 # endif
15988 # endif
15989 # endif
15990 # endif
15991 #endif
15994 main ()
15996 char *p = (char *) alloca (1);
15997 if (p) return 0;
15999 return 0;
16001 _ACEOF
16002 rm -f conftest.$ac_objext conftest$ac_exeext
16003 if { (ac_try="$ac_link"
16004 case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16007 esac
16008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16009 $as_echo "$ac_try_echo") >&5
16010 (eval "$ac_link") 2>conftest.er1
16011 ac_status=$?
16012 grep -v '^ *+' conftest.er1 >conftest.err
16013 rm -f conftest.er1
16014 cat conftest.err >&5
16015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } && {
16017 test -z "$ac_c_werror_flag" ||
16018 test ! -s conftest.err
16019 } && test -s conftest$ac_exeext && {
16020 test "$cross_compiling" = yes ||
16021 $as_test_x conftest$ac_exeext
16022 }; then
16023 ac_cv_func_alloca_works=yes
16024 else
16025 $as_echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16028 ac_cv_func_alloca_works=no
16031 rm -rf conftest.dSYM
16032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16033 conftest$ac_exeext conftest.$ac_ext
16035 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16036 $as_echo "$ac_cv_func_alloca_works" >&6; }
16038 if test $ac_cv_func_alloca_works = yes; then
16040 cat >>confdefs.h <<\_ACEOF
16041 #define HAVE_ALLOCA 1
16042 _ACEOF
16044 else
16045 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16046 # that cause trouble. Some versions do not even contain alloca or
16047 # contain a buggy version. If you still want to use their alloca,
16048 # use ar to extract alloca.o from them instead of compiling alloca.c.
16050 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16052 cat >>confdefs.h <<\_ACEOF
16053 #define C_ALLOCA 1
16054 _ACEOF
16057 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16058 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16059 if test "${ac_cv_os_cray+set}" = set; then
16060 $as_echo_n "(cached) " >&6
16061 else
16062 cat >conftest.$ac_ext <<_ACEOF
16063 /* confdefs.h. */
16064 _ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16068 #if defined CRAY && ! defined CRAY2
16069 webecray
16070 #else
16071 wenotbecray
16072 #endif
16074 _ACEOF
16075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16076 $EGREP "webecray" >/dev/null 2>&1; then
16077 ac_cv_os_cray=yes
16078 else
16079 ac_cv_os_cray=no
16081 rm -f conftest*
16084 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16085 $as_echo "$ac_cv_os_cray" >&6; }
16086 if test $ac_cv_os_cray = yes; then
16087 for ac_func in _getb67 GETB67 getb67; do
16088 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16089 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16090 $as_echo_n "checking for $ac_func... " >&6; }
16091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16092 $as_echo_n "(cached) " >&6
16093 else
16094 cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h. */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16102 #define $ac_func innocuous_$ac_func
16104 /* System header to define __stub macros and hopefully few prototypes,
16105 which can conflict with char $ac_func (); below.
16106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16107 <limits.h> exists even on freestanding compilers. */
16109 #ifdef __STDC__
16110 # include <limits.h>
16111 #else
16112 # include <assert.h>
16113 #endif
16115 #undef $ac_func
16117 /* Override any GCC internal prototype to avoid an error.
16118 Use char because int might match the return type of a GCC
16119 builtin and then its argument prototype would still apply. */
16120 #ifdef __cplusplus
16121 extern "C"
16122 #endif
16123 char $ac_func ();
16124 /* The GNU C library defines this for functions which it implements
16125 to always fail with ENOSYS. Some functions are actually named
16126 something starting with __ and the normal name is an alias. */
16127 #if defined __stub_$ac_func || defined __stub___$ac_func
16128 choke me
16129 #endif
16132 main ()
16134 return $ac_func ();
16136 return 0;
16138 _ACEOF
16139 rm -f conftest.$ac_objext conftest$ac_exeext
16140 if { (ac_try="$ac_link"
16141 case "(($ac_try" in
16142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16144 esac
16145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16146 $as_echo "$ac_try_echo") >&5
16147 (eval "$ac_link") 2>conftest.er1
16148 ac_status=$?
16149 grep -v '^ *+' conftest.er1 >conftest.err
16150 rm -f conftest.er1
16151 cat conftest.err >&5
16152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } && {
16154 test -z "$ac_c_werror_flag" ||
16155 test ! -s conftest.err
16156 } && test -s conftest$ac_exeext && {
16157 test "$cross_compiling" = yes ||
16158 $as_test_x conftest$ac_exeext
16159 }; then
16160 eval "$as_ac_var=yes"
16161 else
16162 $as_echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16165 eval "$as_ac_var=no"
16168 rm -rf conftest.dSYM
16169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16170 conftest$ac_exeext conftest.$ac_ext
16172 ac_res=`eval 'as_val=${'$as_ac_var'}
16173 $as_echo "$as_val"'`
16174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16175 $as_echo "$ac_res" >&6; }
16176 if test `eval 'as_val=${'$as_ac_var'}
16177 $as_echo "$as_val"'` = yes; then
16179 cat >>confdefs.h <<_ACEOF
16180 #define CRAY_STACKSEG_END $ac_func
16181 _ACEOF
16183 break
16186 done
16189 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16190 $as_echo_n "checking stack direction for C alloca... " >&6; }
16191 if test "${ac_cv_c_stack_direction+set}" = set; then
16192 $as_echo_n "(cached) " >&6
16193 else
16194 if test "$cross_compiling" = yes; then
16195 ac_cv_c_stack_direction=0
16196 else
16197 cat >conftest.$ac_ext <<_ACEOF
16198 /* confdefs.h. */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16203 $ac_includes_default
16205 find_stack_direction ()
16207 static char *addr = 0;
16208 auto char dummy;
16209 if (addr == 0)
16211 addr = &dummy;
16212 return find_stack_direction ();
16214 else
16215 return (&dummy > addr) ? 1 : -1;
16219 main ()
16221 return find_stack_direction () < 0;
16223 _ACEOF
16224 rm -f conftest$ac_exeext
16225 if { (ac_try="$ac_link"
16226 case "(($ac_try" in
16227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16228 *) ac_try_echo=$ac_try;;
16229 esac
16230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16231 $as_echo "$ac_try_echo") >&5
16232 (eval "$ac_link") 2>&5
16233 ac_status=$?
16234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16236 { (case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16239 esac
16240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16241 $as_echo "$ac_try_echo") >&5
16242 (eval "$ac_try") 2>&5
16243 ac_status=$?
16244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }; }; then
16246 ac_cv_c_stack_direction=1
16247 else
16248 $as_echo "$as_me: program exited with status $ac_status" >&5
16249 $as_echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16252 ( exit $ac_status )
16253 ac_cv_c_stack_direction=-1
16255 rm -rf conftest.dSYM
16256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16261 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16262 $as_echo "$ac_cv_c_stack_direction" >&6; }
16264 cat >>confdefs.h <<_ACEOF
16265 #define STACK_DIRECTION $ac_cv_c_stack_direction
16266 _ACEOF
16272 if test x"$ac_cv_func_alloca_works" != xyes; then
16273 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16274 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16275 { (exit 1); exit 1; }; }
16278 # fmod, logb, and frexp are found in -lm on most systems.
16279 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16281 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16282 $as_echo_n "checking for sqrt in -lm... " >&6; }
16283 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16284 $as_echo_n "(cached) " >&6
16285 else
16286 ac_check_lib_save_LIBS=$LIBS
16287 LIBS="-lm $LIBS"
16288 cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h. */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16295 /* Override any GCC internal prototype to avoid an error.
16296 Use char because int might match the return type of a GCC
16297 builtin and then its argument prototype would still apply. */
16298 #ifdef __cplusplus
16299 extern "C"
16300 #endif
16301 char sqrt ();
16303 main ()
16305 return sqrt ();
16307 return 0;
16309 _ACEOF
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (ac_try="$ac_link"
16312 case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16315 esac
16316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16317 $as_echo "$ac_try_echo") >&5
16318 (eval "$ac_link") 2>conftest.er1
16319 ac_status=$?
16320 grep -v '^ *+' conftest.er1 >conftest.err
16321 rm -f conftest.er1
16322 cat conftest.err >&5
16323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } && {
16325 test -z "$ac_c_werror_flag" ||
16326 test ! -s conftest.err
16327 } && test -s conftest$ac_exeext && {
16328 test "$cross_compiling" = yes ||
16329 $as_test_x conftest$ac_exeext
16330 }; then
16331 ac_cv_lib_m_sqrt=yes
16332 else
16333 $as_echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16336 ac_cv_lib_m_sqrt=no
16339 rm -rf conftest.dSYM
16340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16341 conftest$ac_exeext conftest.$ac_ext
16342 LIBS=$ac_check_lib_save_LIBS
16344 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16345 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16346 if test $ac_cv_lib_m_sqrt = yes; then
16347 cat >>confdefs.h <<_ACEOF
16348 #define HAVE_LIBM 1
16349 _ACEOF
16351 LIBS="-lm $LIBS"
16356 # Check for mail-locking functions in a "mail" library. Probably this should
16357 # have the same check as for liblockfile below.
16359 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16360 $as_echo_n "checking for maillock in -lmail... " >&6; }
16361 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16362 $as_echo_n "(cached) " >&6
16363 else
16364 ac_check_lib_save_LIBS=$LIBS
16365 LIBS="-lmail $LIBS"
16366 cat >conftest.$ac_ext <<_ACEOF
16367 /* confdefs.h. */
16368 _ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16373 /* Override any GCC internal prototype to avoid an error.
16374 Use char because int might match the return type of a GCC
16375 builtin and then its argument prototype would still apply. */
16376 #ifdef __cplusplus
16377 extern "C"
16378 #endif
16379 char maillock ();
16381 main ()
16383 return maillock ();
16385 return 0;
16387 _ACEOF
16388 rm -f conftest.$ac_objext conftest$ac_exeext
16389 if { (ac_try="$ac_link"
16390 case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16393 esac
16394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16395 $as_echo "$ac_try_echo") >&5
16396 (eval "$ac_link") 2>conftest.er1
16397 ac_status=$?
16398 grep -v '^ *+' conftest.er1 >conftest.err
16399 rm -f conftest.er1
16400 cat conftest.err >&5
16401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } && {
16403 test -z "$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16405 } && test -s conftest$ac_exeext && {
16406 test "$cross_compiling" = yes ||
16407 $as_test_x conftest$ac_exeext
16408 }; then
16409 ac_cv_lib_mail_maillock=yes
16410 else
16411 $as_echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16414 ac_cv_lib_mail_maillock=no
16417 rm -rf conftest.dSYM
16418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16419 conftest$ac_exeext conftest.$ac_ext
16420 LIBS=$ac_check_lib_save_LIBS
16422 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16423 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16424 if test $ac_cv_lib_mail_maillock = yes; then
16425 cat >>confdefs.h <<_ACEOF
16426 #define HAVE_LIBMAIL 1
16427 _ACEOF
16429 LIBS="-lmail $LIBS"
16434 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16435 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16436 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16437 $as_echo_n "(cached) " >&6
16438 else
16439 ac_check_lib_save_LIBS=$LIBS
16440 LIBS="-llockfile $LIBS"
16441 cat >conftest.$ac_ext <<_ACEOF
16442 /* confdefs.h. */
16443 _ACEOF
16444 cat confdefs.h >>conftest.$ac_ext
16445 cat >>conftest.$ac_ext <<_ACEOF
16446 /* end confdefs.h. */
16448 /* Override any GCC internal prototype to avoid an error.
16449 Use char because int might match the return type of a GCC
16450 builtin and then its argument prototype would still apply. */
16451 #ifdef __cplusplus
16452 extern "C"
16453 #endif
16454 char maillock ();
16456 main ()
16458 return maillock ();
16460 return 0;
16462 _ACEOF
16463 rm -f conftest.$ac_objext conftest$ac_exeext
16464 if { (ac_try="$ac_link"
16465 case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16468 esac
16469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16470 $as_echo "$ac_try_echo") >&5
16471 (eval "$ac_link") 2>conftest.er1
16472 ac_status=$?
16473 grep -v '^ *+' conftest.er1 >conftest.err
16474 rm -f conftest.er1
16475 cat conftest.err >&5
16476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } && {
16478 test -z "$ac_c_werror_flag" ||
16479 test ! -s conftest.err
16480 } && test -s conftest$ac_exeext && {
16481 test "$cross_compiling" = yes ||
16482 $as_test_x conftest$ac_exeext
16483 }; then
16484 ac_cv_lib_lockfile_maillock=yes
16485 else
16486 $as_echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16489 ac_cv_lib_lockfile_maillock=no
16492 rm -rf conftest.dSYM
16493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16494 conftest$ac_exeext conftest.$ac_ext
16495 LIBS=$ac_check_lib_save_LIBS
16497 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16498 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16499 if test $ac_cv_lib_lockfile_maillock = yes; then
16500 cat >>confdefs.h <<_ACEOF
16501 #define HAVE_LIBLOCKFILE 1
16502 _ACEOF
16504 LIBS="-llockfile $LIBS"
16508 # If we have the shared liblockfile, assume we must use it for mail
16509 # locking (e.g. Debian). If we couldn't link against liblockfile
16510 # (no liblockfile.a installed), ensure that we don't need to.
16511 if test "$ac_cv_lib_lockfile_maillock" = no; then
16512 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16513 set dummy liblockfile.so; ac_word=$2
16514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16515 $as_echo_n "checking for $ac_word... " >&6; }
16516 if test "${ac_cv_prog_liblockfile+set}" = set; then
16517 $as_echo_n "(cached) " >&6
16518 else
16519 if test -n "$liblockfile"; then
16520 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16521 else
16522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16523 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16524 for as_dir in $as_dummy
16526 IFS=$as_save_IFS
16527 test -z "$as_dir" && as_dir=.
16528 for ac_exec_ext in '' $ac_executable_extensions; do
16529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16530 ac_cv_prog_liblockfile="yes"
16531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16532 break 2
16534 done
16535 done
16536 IFS=$as_save_IFS
16538 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16541 liblockfile=$ac_cv_prog_liblockfile
16542 if test -n "$liblockfile"; then
16543 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16544 $as_echo "$liblockfile" >&6; }
16545 else
16546 { $as_echo "$as_me:$LINENO: result: no" >&5
16547 $as_echo "no" >&6; }
16551 if test $ac_cv_prog_liblockfile = yes; then
16552 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16553 This probably means that movemail could lose mail.
16554 There may be a \`development' package to install containing liblockfile." >&5
16555 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16556 This probably means that movemail could lose mail.
16557 There may be a \`development' package to install containing liblockfile." >&2;}
16558 { (exit 1); exit 1; }; }
16559 else :
16563 for ac_func in touchlock
16565 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16566 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16567 $as_echo_n "checking for $ac_func... " >&6; }
16568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16569 $as_echo_n "(cached) " >&6
16570 else
16571 cat >conftest.$ac_ext <<_ACEOF
16572 /* confdefs.h. */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16579 #define $ac_func innocuous_$ac_func
16581 /* System header to define __stub macros and hopefully few prototypes,
16582 which can conflict with char $ac_func (); below.
16583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16584 <limits.h> exists even on freestanding compilers. */
16586 #ifdef __STDC__
16587 # include <limits.h>
16588 #else
16589 # include <assert.h>
16590 #endif
16592 #undef $ac_func
16594 /* Override any GCC internal prototype to avoid an error.
16595 Use char because int might match the return type of a GCC
16596 builtin and then its argument prototype would still apply. */
16597 #ifdef __cplusplus
16598 extern "C"
16599 #endif
16600 char $ac_func ();
16601 /* The GNU C library defines this for functions which it implements
16602 to always fail with ENOSYS. Some functions are actually named
16603 something starting with __ and the normal name is an alias. */
16604 #if defined __stub_$ac_func || defined __stub___$ac_func
16605 choke me
16606 #endif
16609 main ()
16611 return $ac_func ();
16613 return 0;
16615 _ACEOF
16616 rm -f conftest.$ac_objext conftest$ac_exeext
16617 if { (ac_try="$ac_link"
16618 case "(($ac_try" in
16619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620 *) ac_try_echo=$ac_try;;
16621 esac
16622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16623 $as_echo "$ac_try_echo") >&5
16624 (eval "$ac_link") 2>conftest.er1
16625 ac_status=$?
16626 grep -v '^ *+' conftest.er1 >conftest.err
16627 rm -f conftest.er1
16628 cat conftest.err >&5
16629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } && {
16631 test -z "$ac_c_werror_flag" ||
16632 test ! -s conftest.err
16633 } && test -s conftest$ac_exeext && {
16634 test "$cross_compiling" = yes ||
16635 $as_test_x conftest$ac_exeext
16636 }; then
16637 eval "$as_ac_var=yes"
16638 else
16639 $as_echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.$ac_ext >&5
16642 eval "$as_ac_var=no"
16645 rm -rf conftest.dSYM
16646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16647 conftest$ac_exeext conftest.$ac_ext
16649 ac_res=`eval 'as_val=${'$as_ac_var'}
16650 $as_echo "$as_val"'`
16651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16652 $as_echo "$ac_res" >&6; }
16653 if test `eval 'as_val=${'$as_ac_var'}
16654 $as_echo "$as_val"'` = yes; then
16655 cat >>confdefs.h <<_ACEOF
16656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16657 _ACEOF
16660 done
16663 for ac_header in maillock.h
16665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16667 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16668 $as_echo_n "checking for $ac_header... " >&6; }
16669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16670 $as_echo_n "(cached) " >&6
16672 ac_res=`eval 'as_val=${'$as_ac_Header'}
16673 $as_echo "$as_val"'`
16674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16675 $as_echo "$ac_res" >&6; }
16676 else
16677 # Is the header compilable?
16678 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16679 $as_echo_n "checking $ac_header usability... " >&6; }
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h. */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 $ac_includes_default
16687 #include <$ac_header>
16688 _ACEOF
16689 rm -f conftest.$ac_objext
16690 if { (ac_try="$ac_compile"
16691 case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16694 esac
16695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16696 $as_echo "$ac_try_echo") >&5
16697 (eval "$ac_compile") 2>conftest.er1
16698 ac_status=$?
16699 grep -v '^ *+' conftest.er1 >conftest.err
16700 rm -f conftest.er1
16701 cat conftest.err >&5
16702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } && {
16704 test -z "$ac_c_werror_flag" ||
16705 test ! -s conftest.err
16706 } && test -s conftest.$ac_objext; then
16707 ac_header_compiler=yes
16708 else
16709 $as_echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16712 ac_header_compiler=no
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16717 $as_echo "$ac_header_compiler" >&6; }
16719 # Is the header present?
16720 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16721 $as_echo_n "checking $ac_header presence... " >&6; }
16722 cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h. */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 #include <$ac_header>
16729 _ACEOF
16730 if { (ac_try="$ac_cpp conftest.$ac_ext"
16731 case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16734 esac
16735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16736 $as_echo "$ac_try_echo") >&5
16737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16738 ac_status=$?
16739 grep -v '^ *+' conftest.er1 >conftest.err
16740 rm -f conftest.er1
16741 cat conftest.err >&5
16742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } >/dev/null && {
16744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16745 test ! -s conftest.err
16746 }; then
16747 ac_header_preproc=yes
16748 else
16749 $as_echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16752 ac_header_preproc=no
16755 rm -f conftest.err conftest.$ac_ext
16756 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16757 $as_echo "$ac_header_preproc" >&6; }
16759 # So? What about this header?
16760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16761 yes:no: )
16762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16763 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16765 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16766 ac_header_preproc=yes
16768 no:yes:* )
16769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16770 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16772 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16774 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16776 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16778 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16780 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16783 esac
16784 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16785 $as_echo_n "checking for $ac_header... " >&6; }
16786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16787 $as_echo_n "(cached) " >&6
16788 else
16789 eval "$as_ac_Header=\$ac_header_preproc"
16791 ac_res=`eval 'as_val=${'$as_ac_Header'}
16792 $as_echo "$as_val"'`
16793 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16794 $as_echo "$ac_res" >&6; }
16797 if test `eval 'as_val=${'$as_ac_Header'}
16798 $as_echo "$as_val"'` = yes; then
16799 cat >>confdefs.h <<_ACEOF
16800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16801 _ACEOF
16805 done
16879 for ac_func in gethostname getdomainname dup2 \
16880 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16881 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16882 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16883 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16884 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16885 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16886 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16887 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16888 cfmakeraw cfsetspeed
16890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16891 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16892 $as_echo_n "checking for $ac_func... " >&6; }
16893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16894 $as_echo_n "(cached) " >&6
16895 else
16896 cat >conftest.$ac_ext <<_ACEOF
16897 /* confdefs.h. */
16898 _ACEOF
16899 cat confdefs.h >>conftest.$ac_ext
16900 cat >>conftest.$ac_ext <<_ACEOF
16901 /* end confdefs.h. */
16902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16904 #define $ac_func innocuous_$ac_func
16906 /* System header to define __stub macros and hopefully few prototypes,
16907 which can conflict with char $ac_func (); below.
16908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16909 <limits.h> exists even on freestanding compilers. */
16911 #ifdef __STDC__
16912 # include <limits.h>
16913 #else
16914 # include <assert.h>
16915 #endif
16917 #undef $ac_func
16919 /* Override any GCC internal prototype to avoid an error.
16920 Use char because int might match the return type of a GCC
16921 builtin and then its argument prototype would still apply. */
16922 #ifdef __cplusplus
16923 extern "C"
16924 #endif
16925 char $ac_func ();
16926 /* The GNU C library defines this for functions which it implements
16927 to always fail with ENOSYS. Some functions are actually named
16928 something starting with __ and the normal name is an alias. */
16929 #if defined __stub_$ac_func || defined __stub___$ac_func
16930 choke me
16931 #endif
16934 main ()
16936 return $ac_func ();
16938 return 0;
16940 _ACEOF
16941 rm -f conftest.$ac_objext conftest$ac_exeext
16942 if { (ac_try="$ac_link"
16943 case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16946 esac
16947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16948 $as_echo "$ac_try_echo") >&5
16949 (eval "$ac_link") 2>conftest.er1
16950 ac_status=$?
16951 grep -v '^ *+' conftest.er1 >conftest.err
16952 rm -f conftest.er1
16953 cat conftest.err >&5
16954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } && {
16956 test -z "$ac_c_werror_flag" ||
16957 test ! -s conftest.err
16958 } && test -s conftest$ac_exeext && {
16959 test "$cross_compiling" = yes ||
16960 $as_test_x conftest$ac_exeext
16961 }; then
16962 eval "$as_ac_var=yes"
16963 else
16964 $as_echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16967 eval "$as_ac_var=no"
16970 rm -rf conftest.dSYM
16971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16972 conftest$ac_exeext conftest.$ac_ext
16974 ac_res=`eval 'as_val=${'$as_ac_var'}
16975 $as_echo "$as_val"'`
16976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16977 $as_echo "$ac_res" >&6; }
16978 if test `eval 'as_val=${'$as_ac_var'}
16979 $as_echo "$as_val"'` = yes; then
16980 cat >>confdefs.h <<_ACEOF
16981 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16982 _ACEOF
16985 done
16989 for ac_header in sys/un.h
16991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16993 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16994 $as_echo_n "checking for $ac_header... " >&6; }
16995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16996 $as_echo_n "(cached) " >&6
16998 ac_res=`eval 'as_val=${'$as_ac_Header'}
16999 $as_echo "$as_val"'`
17000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17001 $as_echo "$ac_res" >&6; }
17002 else
17003 # Is the header compilable?
17004 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17005 $as_echo_n "checking $ac_header usability... " >&6; }
17006 cat >conftest.$ac_ext <<_ACEOF
17007 /* confdefs.h. */
17008 _ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012 $ac_includes_default
17013 #include <$ac_header>
17014 _ACEOF
17015 rm -f conftest.$ac_objext
17016 if { (ac_try="$ac_compile"
17017 case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17020 esac
17021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17022 $as_echo "$ac_try_echo") >&5
17023 (eval "$ac_compile") 2>conftest.er1
17024 ac_status=$?
17025 grep -v '^ *+' conftest.er1 >conftest.err
17026 rm -f conftest.er1
17027 cat conftest.err >&5
17028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); } && {
17030 test -z "$ac_c_werror_flag" ||
17031 test ! -s conftest.err
17032 } && test -s conftest.$ac_objext; then
17033 ac_header_compiler=yes
17034 else
17035 $as_echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17038 ac_header_compiler=no
17041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17043 $as_echo "$ac_header_compiler" >&6; }
17045 # Is the header present?
17046 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17047 $as_echo_n "checking $ac_header presence... " >&6; }
17048 cat >conftest.$ac_ext <<_ACEOF
17049 /* confdefs.h. */
17050 _ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h. */
17054 #include <$ac_header>
17055 _ACEOF
17056 if { (ac_try="$ac_cpp conftest.$ac_ext"
17057 case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17060 esac
17061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17062 $as_echo "$ac_try_echo") >&5
17063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17064 ac_status=$?
17065 grep -v '^ *+' conftest.er1 >conftest.err
17066 rm -f conftest.er1
17067 cat conftest.err >&5
17068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } >/dev/null && {
17070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17071 test ! -s conftest.err
17072 }; then
17073 ac_header_preproc=yes
17074 else
17075 $as_echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17078 ac_header_preproc=no
17081 rm -f conftest.err conftest.$ac_ext
17082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17083 $as_echo "$ac_header_preproc" >&6; }
17085 # So? What about this header?
17086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17087 yes:no: )
17088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17089 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17091 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17092 ac_header_preproc=yes
17094 no:yes:* )
17095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17096 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17098 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17100 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17102 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17104 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17106 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17109 esac
17110 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17111 $as_echo_n "checking for $ac_header... " >&6; }
17112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17113 $as_echo_n "(cached) " >&6
17114 else
17115 eval "$as_ac_Header=\$ac_header_preproc"
17117 ac_res=`eval 'as_val=${'$as_ac_Header'}
17118 $as_echo "$as_val"'`
17119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17120 $as_echo "$ac_res" >&6; }
17123 if test `eval 'as_val=${'$as_ac_Header'}
17124 $as_echo "$as_val"'` = yes; then
17125 cat >>confdefs.h <<_ACEOF
17126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17127 _ACEOF
17131 done
17138 for ac_header in $ac_header_list
17140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17142 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17143 $as_echo_n "checking for $ac_header... " >&6; }
17144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17145 $as_echo_n "(cached) " >&6
17147 ac_res=`eval 'as_val=${'$as_ac_Header'}
17148 $as_echo "$as_val"'`
17149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17150 $as_echo "$ac_res" >&6; }
17151 else
17152 # Is the header compilable?
17153 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17154 $as_echo_n "checking $ac_header usability... " >&6; }
17155 cat >conftest.$ac_ext <<_ACEOF
17156 /* confdefs.h. */
17157 _ACEOF
17158 cat confdefs.h >>conftest.$ac_ext
17159 cat >>conftest.$ac_ext <<_ACEOF
17160 /* end confdefs.h. */
17161 $ac_includes_default
17162 #include <$ac_header>
17163 _ACEOF
17164 rm -f conftest.$ac_objext
17165 if { (ac_try="$ac_compile"
17166 case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17169 esac
17170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17171 $as_echo "$ac_try_echo") >&5
17172 (eval "$ac_compile") 2>conftest.er1
17173 ac_status=$?
17174 grep -v '^ *+' conftest.er1 >conftest.err
17175 rm -f conftest.er1
17176 cat conftest.err >&5
17177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } && {
17179 test -z "$ac_c_werror_flag" ||
17180 test ! -s conftest.err
17181 } && test -s conftest.$ac_objext; then
17182 ac_header_compiler=yes
17183 else
17184 $as_echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17187 ac_header_compiler=no
17190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17191 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17192 $as_echo "$ac_header_compiler" >&6; }
17194 # Is the header present?
17195 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17196 $as_echo_n "checking $ac_header presence... " >&6; }
17197 cat >conftest.$ac_ext <<_ACEOF
17198 /* confdefs.h. */
17199 _ACEOF
17200 cat confdefs.h >>conftest.$ac_ext
17201 cat >>conftest.$ac_ext <<_ACEOF
17202 /* end confdefs.h. */
17203 #include <$ac_header>
17204 _ACEOF
17205 if { (ac_try="$ac_cpp conftest.$ac_ext"
17206 case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17209 esac
17210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17211 $as_echo "$ac_try_echo") >&5
17212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17213 ac_status=$?
17214 grep -v '^ *+' conftest.er1 >conftest.err
17215 rm -f conftest.er1
17216 cat conftest.err >&5
17217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } >/dev/null && {
17219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17220 test ! -s conftest.err
17221 }; then
17222 ac_header_preproc=yes
17223 else
17224 $as_echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17227 ac_header_preproc=no
17230 rm -f conftest.err conftest.$ac_ext
17231 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17232 $as_echo "$ac_header_preproc" >&6; }
17234 # So? What about this header?
17235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17236 yes:no: )
17237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17238 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17240 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17241 ac_header_preproc=yes
17243 no:yes:* )
17244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17245 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17247 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17249 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17251 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17253 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17255 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17258 esac
17259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17260 $as_echo_n "checking for $ac_header... " >&6; }
17261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17262 $as_echo_n "(cached) " >&6
17263 else
17264 eval "$as_ac_Header=\$ac_header_preproc"
17266 ac_res=`eval 'as_val=${'$as_ac_Header'}
17267 $as_echo "$as_val"'`
17268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17269 $as_echo "$ac_res" >&6; }
17272 if test `eval 'as_val=${'$as_ac_Header'}
17273 $as_echo "$as_val"'` = yes; then
17274 cat >>confdefs.h <<_ACEOF
17275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17276 _ACEOF
17280 done
17290 for ac_func in $ac_func_list
17292 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17293 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17294 $as_echo_n "checking for $ac_func... " >&6; }
17295 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17296 $as_echo_n "(cached) " >&6
17297 else
17298 cat >conftest.$ac_ext <<_ACEOF
17299 /* confdefs.h. */
17300 _ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17306 #define $ac_func innocuous_$ac_func
17308 /* System header to define __stub macros and hopefully few prototypes,
17309 which can conflict with char $ac_func (); below.
17310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17311 <limits.h> exists even on freestanding compilers. */
17313 #ifdef __STDC__
17314 # include <limits.h>
17315 #else
17316 # include <assert.h>
17317 #endif
17319 #undef $ac_func
17321 /* Override any GCC internal prototype to avoid an error.
17322 Use char because int might match the return type of a GCC
17323 builtin and then its argument prototype would still apply. */
17324 #ifdef __cplusplus
17325 extern "C"
17326 #endif
17327 char $ac_func ();
17328 /* The GNU C library defines this for functions which it implements
17329 to always fail with ENOSYS. Some functions are actually named
17330 something starting with __ and the normal name is an alias. */
17331 #if defined __stub_$ac_func || defined __stub___$ac_func
17332 choke me
17333 #endif
17336 main ()
17338 return $ac_func ();
17340 return 0;
17342 _ACEOF
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (ac_try="$ac_link"
17345 case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17348 esac
17349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17350 $as_echo "$ac_try_echo") >&5
17351 (eval "$ac_link") 2>conftest.er1
17352 ac_status=$?
17353 grep -v '^ *+' conftest.er1 >conftest.err
17354 rm -f conftest.er1
17355 cat conftest.err >&5
17356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } && {
17358 test -z "$ac_c_werror_flag" ||
17359 test ! -s conftest.err
17360 } && test -s conftest$ac_exeext && {
17361 test "$cross_compiling" = yes ||
17362 $as_test_x conftest$ac_exeext
17363 }; then
17364 eval "$as_ac_var=yes"
17365 else
17366 $as_echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17369 eval "$as_ac_var=no"
17372 rm -rf conftest.dSYM
17373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17374 conftest$ac_exeext conftest.$ac_ext
17376 ac_res=`eval 'as_val=${'$as_ac_var'}
17377 $as_echo "$as_val"'`
17378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17379 $as_echo "$ac_res" >&6; }
17380 if test `eval 'as_val=${'$as_ac_var'}
17381 $as_echo "$as_val"'` = yes; then
17382 cat >>confdefs.h <<_ACEOF
17383 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17384 _ACEOF
17387 done
17405 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17406 $as_echo_n "checking for working mktime... " >&6; }
17407 if test "${ac_cv_func_working_mktime+set}" = set; then
17408 $as_echo_n "(cached) " >&6
17409 else
17410 if test "$cross_compiling" = yes; then
17411 ac_cv_func_working_mktime=no
17412 else
17413 cat >conftest.$ac_ext <<_ACEOF
17414 /* confdefs.h. */
17415 _ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17419 /* Test program from Paul Eggert and Tony Leneis. */
17420 #ifdef TIME_WITH_SYS_TIME
17421 # include <sys/time.h>
17422 # include <time.h>
17423 #else
17424 # ifdef HAVE_SYS_TIME_H
17425 # include <sys/time.h>
17426 # else
17427 # include <time.h>
17428 # endif
17429 #endif
17431 #include <limits.h>
17432 #include <stdlib.h>
17434 #ifdef HAVE_UNISTD_H
17435 # include <unistd.h>
17436 #endif
17438 #ifndef HAVE_ALARM
17439 # define alarm(X) /* empty */
17440 #endif
17442 /* Work around redefinition to rpl_putenv by other config tests. */
17443 #undef putenv
17445 static time_t time_t_max;
17446 static time_t time_t_min;
17448 /* Values we'll use to set the TZ environment variable. */
17449 static char *tz_strings[] = {
17450 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17451 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17453 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17455 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17456 Based on a problem report from Andreas Jaeger. */
17457 static int
17458 spring_forward_gap ()
17460 /* glibc (up to about 1998-10-07) failed this test. */
17461 struct tm tm;
17463 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17464 instead of "TZ=America/Vancouver" in order to detect the bug even
17465 on systems that don't support the Olson extension, or don't have the
17466 full zoneinfo tables installed. */
17467 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17469 tm.tm_year = 98;
17470 tm.tm_mon = 3;
17471 tm.tm_mday = 5;
17472 tm.tm_hour = 2;
17473 tm.tm_min = 0;
17474 tm.tm_sec = 0;
17475 tm.tm_isdst = -1;
17476 return mktime (&tm) != (time_t) -1;
17479 static int
17480 mktime_test1 (now)
17481 time_t now;
17483 struct tm *lt;
17484 return ! (lt = localtime (&now)) || mktime (lt) == now;
17487 static int
17488 mktime_test (now)
17489 time_t now;
17491 return (mktime_test1 (now)
17492 && mktime_test1 ((time_t) (time_t_max - now))
17493 && mktime_test1 ((time_t) (time_t_min + now)));
17496 static int
17497 irix_6_4_bug ()
17499 /* Based on code from Ariel Faigon. */
17500 struct tm tm;
17501 tm.tm_year = 96;
17502 tm.tm_mon = 3;
17503 tm.tm_mday = 0;
17504 tm.tm_hour = 0;
17505 tm.tm_min = 0;
17506 tm.tm_sec = 0;
17507 tm.tm_isdst = -1;
17508 mktime (&tm);
17509 return tm.tm_mon == 2 && tm.tm_mday == 31;
17512 static int
17513 bigtime_test (j)
17514 int j;
17516 struct tm tm;
17517 time_t now;
17518 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17519 now = mktime (&tm);
17520 if (now != (time_t) -1)
17522 struct tm *lt = localtime (&now);
17523 if (! (lt
17524 && lt->tm_year == tm.tm_year
17525 && lt->tm_mon == tm.tm_mon
17526 && lt->tm_mday == tm.tm_mday
17527 && lt->tm_hour == tm.tm_hour
17528 && lt->tm_min == tm.tm_min
17529 && lt->tm_sec == tm.tm_sec
17530 && lt->tm_yday == tm.tm_yday
17531 && lt->tm_wday == tm.tm_wday
17532 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17533 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17534 return 0;
17536 return 1;
17539 static int
17540 year_2050_test ()
17542 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17543 ignoring leap seconds. */
17544 unsigned long int answer = 2527315200UL;
17546 struct tm tm;
17547 time_t t;
17548 tm.tm_year = 2050 - 1900;
17549 tm.tm_mon = 2 - 1;
17550 tm.tm_mday = 1;
17551 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17552 tm.tm_isdst = -1;
17554 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17555 instead of "TZ=America/Vancouver" in order to detect the bug even
17556 on systems that don't support the Olson extension, or don't have the
17557 full zoneinfo tables installed. */
17558 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17560 t = mktime (&tm);
17562 /* Check that the result is either a failure, or close enough
17563 to the correct answer that we can assume the discrepancy is
17564 due to leap seconds. */
17565 return (t == (time_t) -1
17566 || (0 < t && answer - 120 <= t && t <= answer + 120));
17570 main ()
17572 time_t t, delta;
17573 int i, j;
17575 /* This test makes some buggy mktime implementations loop.
17576 Give up after 60 seconds; a mktime slower than that
17577 isn't worth using anyway. */
17578 alarm (60);
17580 for (;;)
17582 t = (time_t_max << 1) + 1;
17583 if (t <= time_t_max)
17584 break;
17585 time_t_max = t;
17587 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17589 delta = time_t_max / 997; /* a suitable prime number */
17590 for (i = 0; i < N_STRINGS; i++)
17592 if (tz_strings[i])
17593 putenv (tz_strings[i]);
17595 for (t = 0; t <= time_t_max - delta; t += delta)
17596 if (! mktime_test (t))
17597 return 1;
17598 if (! (mktime_test ((time_t) 1)
17599 && mktime_test ((time_t) (60 * 60))
17600 && mktime_test ((time_t) (60 * 60 * 24))))
17601 return 1;
17603 for (j = 1; ; j <<= 1)
17604 if (! bigtime_test (j))
17605 return 1;
17606 else if (INT_MAX / 2 < j)
17607 break;
17608 if (! bigtime_test (INT_MAX))
17609 return 1;
17611 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17613 _ACEOF
17614 rm -f conftest$ac_exeext
17615 if { (ac_try="$ac_link"
17616 case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17619 esac
17620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17621 $as_echo "$ac_try_echo") >&5
17622 (eval "$ac_link") 2>&5
17623 ac_status=$?
17624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17626 { (case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17629 esac
17630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17631 $as_echo "$ac_try_echo") >&5
17632 (eval "$ac_try") 2>&5
17633 ac_status=$?
17634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; }; then
17636 ac_cv_func_working_mktime=yes
17637 else
17638 $as_echo "$as_me: program exited with status $ac_status" >&5
17639 $as_echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17642 ( exit $ac_status )
17643 ac_cv_func_working_mktime=no
17645 rm -rf conftest.dSYM
17646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17651 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17652 $as_echo "$ac_cv_func_working_mktime" >&6; }
17653 if test $ac_cv_func_working_mktime = no; then
17654 case " $LIBOBJS " in
17655 *" mktime.$ac_objext "* ) ;;
17656 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17658 esac
17662 if test "$ac_cv_func_working_mktime" = no; then
17664 cat >>confdefs.h <<\_ACEOF
17665 #define BROKEN_MKTIME 1
17666 _ACEOF
17670 ac_have_func=no # yes means we've found a way to get the load average.
17672 # Make sure getloadavg.c is where it belongs, at configure-time.
17673 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17674 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17675 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17676 { (exit 1); exit 1; }; }
17678 ac_save_LIBS=$LIBS
17680 # Check for getloadavg, but be sure not to touch the cache variable.
17681 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17682 $as_echo_n "checking for getloadavg... " >&6; }
17683 if test "${ac_cv_func_getloadavg+set}" = set; then
17684 $as_echo_n "(cached) " >&6
17685 else
17686 cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h. */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17692 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17694 #define getloadavg innocuous_getloadavg
17696 /* System header to define __stub macros and hopefully few prototypes,
17697 which can conflict with char getloadavg (); below.
17698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17699 <limits.h> exists even on freestanding compilers. */
17701 #ifdef __STDC__
17702 # include <limits.h>
17703 #else
17704 # include <assert.h>
17705 #endif
17707 #undef getloadavg
17709 /* Override any GCC internal prototype to avoid an error.
17710 Use char because int might match the return type of a GCC
17711 builtin and then its argument prototype would still apply. */
17712 #ifdef __cplusplus
17713 extern "C"
17714 #endif
17715 char getloadavg ();
17716 /* The GNU C library defines this for functions which it implements
17717 to always fail with ENOSYS. Some functions are actually named
17718 something starting with __ and the normal name is an alias. */
17719 #if defined __stub_getloadavg || defined __stub___getloadavg
17720 choke me
17721 #endif
17724 main ()
17726 return getloadavg ();
17728 return 0;
17730 _ACEOF
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (ac_try="$ac_link"
17733 case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736 esac
17737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17738 $as_echo "$ac_try_echo") >&5
17739 (eval "$ac_link") 2>conftest.er1
17740 ac_status=$?
17741 grep -v '^ *+' conftest.er1 >conftest.err
17742 rm -f conftest.er1
17743 cat conftest.err >&5
17744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } && {
17746 test -z "$ac_c_werror_flag" ||
17747 test ! -s conftest.err
17748 } && test -s conftest$ac_exeext && {
17749 test "$cross_compiling" = yes ||
17750 $as_test_x conftest$ac_exeext
17751 }; then
17752 ac_cv_func_getloadavg=yes
17753 else
17754 $as_echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 ac_cv_func_getloadavg=no
17760 rm -rf conftest.dSYM
17761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17762 conftest$ac_exeext conftest.$ac_ext
17764 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17765 $as_echo "$ac_cv_func_getloadavg" >&6; }
17766 if test $ac_cv_func_getloadavg = yes; then
17767 exit 0
17768 else
17769 exit 1
17771 ) && ac_have_func=yes
17773 # On HPUX9, an unprivileged user can get load averages through this function.
17775 for ac_func in pstat_getdynamic
17777 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17778 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17779 $as_echo_n "checking for $ac_func... " >&6; }
17780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17781 $as_echo_n "(cached) " >&6
17782 else
17783 cat >conftest.$ac_ext <<_ACEOF
17784 /* confdefs.h. */
17785 _ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17791 #define $ac_func innocuous_$ac_func
17793 /* System header to define __stub macros and hopefully few prototypes,
17794 which can conflict with char $ac_func (); below.
17795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17796 <limits.h> exists even on freestanding compilers. */
17798 #ifdef __STDC__
17799 # include <limits.h>
17800 #else
17801 # include <assert.h>
17802 #endif
17804 #undef $ac_func
17806 /* Override any GCC internal prototype to avoid an error.
17807 Use char because int might match the return type of a GCC
17808 builtin and then its argument prototype would still apply. */
17809 #ifdef __cplusplus
17810 extern "C"
17811 #endif
17812 char $ac_func ();
17813 /* The GNU C library defines this for functions which it implements
17814 to always fail with ENOSYS. Some functions are actually named
17815 something starting with __ and the normal name is an alias. */
17816 #if defined __stub_$ac_func || defined __stub___$ac_func
17817 choke me
17818 #endif
17821 main ()
17823 return $ac_func ();
17825 return 0;
17827 _ACEOF
17828 rm -f conftest.$ac_objext conftest$ac_exeext
17829 if { (ac_try="$ac_link"
17830 case "(($ac_try" in
17831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832 *) ac_try_echo=$ac_try;;
17833 esac
17834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17835 $as_echo "$ac_try_echo") >&5
17836 (eval "$ac_link") 2>conftest.er1
17837 ac_status=$?
17838 grep -v '^ *+' conftest.er1 >conftest.err
17839 rm -f conftest.er1
17840 cat conftest.err >&5
17841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } && {
17843 test -z "$ac_c_werror_flag" ||
17844 test ! -s conftest.err
17845 } && test -s conftest$ac_exeext && {
17846 test "$cross_compiling" = yes ||
17847 $as_test_x conftest$ac_exeext
17848 }; then
17849 eval "$as_ac_var=yes"
17850 else
17851 $as_echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17854 eval "$as_ac_var=no"
17857 rm -rf conftest.dSYM
17858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17859 conftest$ac_exeext conftest.$ac_ext
17861 ac_res=`eval 'as_val=${'$as_ac_var'}
17862 $as_echo "$as_val"'`
17863 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17864 $as_echo "$ac_res" >&6; }
17865 if test `eval 'as_val=${'$as_ac_var'}
17866 $as_echo "$as_val"'` = yes; then
17867 cat >>confdefs.h <<_ACEOF
17868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17869 _ACEOF
17872 done
17875 # Solaris has libkstat which does not require root.
17877 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17878 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17879 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17880 $as_echo_n "(cached) " >&6
17881 else
17882 ac_check_lib_save_LIBS=$LIBS
17883 LIBS="-lkstat $LIBS"
17884 cat >conftest.$ac_ext <<_ACEOF
17885 /* confdefs.h. */
17886 _ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17891 /* Override any GCC internal prototype to avoid an error.
17892 Use char because int might match the return type of a GCC
17893 builtin and then its argument prototype would still apply. */
17894 #ifdef __cplusplus
17895 extern "C"
17896 #endif
17897 char kstat_open ();
17899 main ()
17901 return kstat_open ();
17903 return 0;
17905 _ACEOF
17906 rm -f conftest.$ac_objext conftest$ac_exeext
17907 if { (ac_try="$ac_link"
17908 case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17911 esac
17912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17913 $as_echo "$ac_try_echo") >&5
17914 (eval "$ac_link") 2>conftest.er1
17915 ac_status=$?
17916 grep -v '^ *+' conftest.er1 >conftest.err
17917 rm -f conftest.er1
17918 cat conftest.err >&5
17919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } && {
17921 test -z "$ac_c_werror_flag" ||
17922 test ! -s conftest.err
17923 } && test -s conftest$ac_exeext && {
17924 test "$cross_compiling" = yes ||
17925 $as_test_x conftest$ac_exeext
17926 }; then
17927 ac_cv_lib_kstat_kstat_open=yes
17928 else
17929 $as_echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17932 ac_cv_lib_kstat_kstat_open=no
17935 rm -rf conftest.dSYM
17936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17937 conftest$ac_exeext conftest.$ac_ext
17938 LIBS=$ac_check_lib_save_LIBS
17940 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17941 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
17942 if test $ac_cv_lib_kstat_kstat_open = yes; then
17943 cat >>confdefs.h <<_ACEOF
17944 #define HAVE_LIBKSTAT 1
17945 _ACEOF
17947 LIBS="-lkstat $LIBS"
17951 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17953 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17954 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17955 # to get the right answer into the cache.
17956 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17957 if test $ac_have_func = no; then
17958 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17959 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
17960 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17961 $as_echo_n "(cached) " >&6
17962 else
17963 ac_check_lib_save_LIBS=$LIBS
17964 LIBS="-lelf $LIBS"
17965 cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h. */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17972 /* Override any GCC internal prototype to avoid an error.
17973 Use char because int might match the return type of a GCC
17974 builtin and then its argument prototype would still apply. */
17975 #ifdef __cplusplus
17976 extern "C"
17977 #endif
17978 char elf_begin ();
17980 main ()
17982 return elf_begin ();
17984 return 0;
17986 _ACEOF
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (ac_try="$ac_link"
17989 case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17992 esac
17993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17994 $as_echo "$ac_try_echo") >&5
17995 (eval "$ac_link") 2>conftest.er1
17996 ac_status=$?
17997 grep -v '^ *+' conftest.er1 >conftest.err
17998 rm -f conftest.er1
17999 cat conftest.err >&5
18000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } && {
18002 test -z "$ac_c_werror_flag" ||
18003 test ! -s conftest.err
18004 } && test -s conftest$ac_exeext && {
18005 test "$cross_compiling" = yes ||
18006 $as_test_x conftest$ac_exeext
18007 }; then
18008 ac_cv_lib_elf_elf_begin=yes
18009 else
18010 $as_echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18013 ac_cv_lib_elf_elf_begin=no
18016 rm -rf conftest.dSYM
18017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18018 conftest$ac_exeext conftest.$ac_ext
18019 LIBS=$ac_check_lib_save_LIBS
18021 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18022 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18023 if test $ac_cv_lib_elf_elf_begin = yes; then
18024 LIBS="-lelf $LIBS"
18028 if test $ac_have_func = no; then
18029 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18030 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18031 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18032 $as_echo_n "(cached) " >&6
18033 else
18034 ac_check_lib_save_LIBS=$LIBS
18035 LIBS="-lkvm $LIBS"
18036 cat >conftest.$ac_ext <<_ACEOF
18037 /* confdefs.h. */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18043 /* Override any GCC internal prototype to avoid an error.
18044 Use char because int might match the return type of a GCC
18045 builtin and then its argument prototype would still apply. */
18046 #ifdef __cplusplus
18047 extern "C"
18048 #endif
18049 char kvm_open ();
18051 main ()
18053 return kvm_open ();
18055 return 0;
18057 _ACEOF
18058 rm -f conftest.$ac_objext conftest$ac_exeext
18059 if { (ac_try="$ac_link"
18060 case "(($ac_try" in
18061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062 *) ac_try_echo=$ac_try;;
18063 esac
18064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18065 $as_echo "$ac_try_echo") >&5
18066 (eval "$ac_link") 2>conftest.er1
18067 ac_status=$?
18068 grep -v '^ *+' conftest.er1 >conftest.err
18069 rm -f conftest.er1
18070 cat conftest.err >&5
18071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); } && {
18073 test -z "$ac_c_werror_flag" ||
18074 test ! -s conftest.err
18075 } && test -s conftest$ac_exeext && {
18076 test "$cross_compiling" = yes ||
18077 $as_test_x conftest$ac_exeext
18078 }; then
18079 ac_cv_lib_kvm_kvm_open=yes
18080 else
18081 $as_echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18084 ac_cv_lib_kvm_kvm_open=no
18087 rm -rf conftest.dSYM
18088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18089 conftest$ac_exeext conftest.$ac_ext
18090 LIBS=$ac_check_lib_save_LIBS
18092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18093 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18094 if test $ac_cv_lib_kvm_kvm_open = yes; then
18095 LIBS="-lkvm $LIBS"
18098 # Check for the 4.4BSD definition of getloadavg.
18099 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18100 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18101 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18102 $as_echo_n "(cached) " >&6
18103 else
18104 ac_check_lib_save_LIBS=$LIBS
18105 LIBS="-lutil $LIBS"
18106 cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h. */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18113 /* Override any GCC internal prototype to avoid an error.
18114 Use char because int might match the return type of a GCC
18115 builtin and then its argument prototype would still apply. */
18116 #ifdef __cplusplus
18117 extern "C"
18118 #endif
18119 char getloadavg ();
18121 main ()
18123 return getloadavg ();
18125 return 0;
18127 _ACEOF
18128 rm -f conftest.$ac_objext conftest$ac_exeext
18129 if { (ac_try="$ac_link"
18130 case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18133 esac
18134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18135 $as_echo "$ac_try_echo") >&5
18136 (eval "$ac_link") 2>conftest.er1
18137 ac_status=$?
18138 grep -v '^ *+' conftest.er1 >conftest.err
18139 rm -f conftest.er1
18140 cat conftest.err >&5
18141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } && {
18143 test -z "$ac_c_werror_flag" ||
18144 test ! -s conftest.err
18145 } && test -s conftest$ac_exeext && {
18146 test "$cross_compiling" = yes ||
18147 $as_test_x conftest$ac_exeext
18148 }; then
18149 ac_cv_lib_util_getloadavg=yes
18150 else
18151 $as_echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18154 ac_cv_lib_util_getloadavg=no
18157 rm -rf conftest.dSYM
18158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18159 conftest$ac_exeext conftest.$ac_ext
18160 LIBS=$ac_check_lib_save_LIBS
18162 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18163 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18164 if test $ac_cv_lib_util_getloadavg = yes; then
18165 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18170 if test $ac_have_func = no; then
18171 # There is a commonly available library for RS/6000 AIX.
18172 # Since it is not a standard part of AIX, it might be installed locally.
18173 ac_getloadavg_LIBS=$LIBS
18174 LIBS="-L/usr/local/lib $LIBS"
18175 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18176 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18177 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18178 $as_echo_n "(cached) " >&6
18179 else
18180 ac_check_lib_save_LIBS=$LIBS
18181 LIBS="-lgetloadavg $LIBS"
18182 cat >conftest.$ac_ext <<_ACEOF
18183 /* confdefs.h. */
18184 _ACEOF
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h. */
18189 /* Override any GCC internal prototype to avoid an error.
18190 Use char because int might match the return type of a GCC
18191 builtin and then its argument prototype would still apply. */
18192 #ifdef __cplusplus
18193 extern "C"
18194 #endif
18195 char getloadavg ();
18197 main ()
18199 return getloadavg ();
18201 return 0;
18203 _ACEOF
18204 rm -f conftest.$ac_objext conftest$ac_exeext
18205 if { (ac_try="$ac_link"
18206 case "(($ac_try" in
18207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208 *) ac_try_echo=$ac_try;;
18209 esac
18210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18211 $as_echo "$ac_try_echo") >&5
18212 (eval "$ac_link") 2>conftest.er1
18213 ac_status=$?
18214 grep -v '^ *+' conftest.er1 >conftest.err
18215 rm -f conftest.er1
18216 cat conftest.err >&5
18217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } && {
18219 test -z "$ac_c_werror_flag" ||
18220 test ! -s conftest.err
18221 } && test -s conftest$ac_exeext && {
18222 test "$cross_compiling" = yes ||
18223 $as_test_x conftest$ac_exeext
18224 }; then
18225 ac_cv_lib_getloadavg_getloadavg=yes
18226 else
18227 $as_echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18230 ac_cv_lib_getloadavg_getloadavg=no
18233 rm -rf conftest.dSYM
18234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18235 conftest$ac_exeext conftest.$ac_ext
18236 LIBS=$ac_check_lib_save_LIBS
18238 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18239 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18240 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18241 LIBS="-lgetloadavg $LIBS"
18242 else
18243 LIBS=$ac_getloadavg_LIBS
18248 # Make sure it is really in the library, if we think we found it,
18249 # otherwise set up the replacement function.
18251 for ac_func in getloadavg
18253 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18254 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18255 $as_echo_n "checking for $ac_func... " >&6; }
18256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18257 $as_echo_n "(cached) " >&6
18258 else
18259 cat >conftest.$ac_ext <<_ACEOF
18260 /* confdefs.h. */
18261 _ACEOF
18262 cat confdefs.h >>conftest.$ac_ext
18263 cat >>conftest.$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18267 #define $ac_func innocuous_$ac_func
18269 /* System header to define __stub macros and hopefully few prototypes,
18270 which can conflict with char $ac_func (); below.
18271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18272 <limits.h> exists even on freestanding compilers. */
18274 #ifdef __STDC__
18275 # include <limits.h>
18276 #else
18277 # include <assert.h>
18278 #endif
18280 #undef $ac_func
18282 /* Override any GCC internal prototype to avoid an error.
18283 Use char because int might match the return type of a GCC
18284 builtin and then its argument prototype would still apply. */
18285 #ifdef __cplusplus
18286 extern "C"
18287 #endif
18288 char $ac_func ();
18289 /* The GNU C library defines this for functions which it implements
18290 to always fail with ENOSYS. Some functions are actually named
18291 something starting with __ and the normal name is an alias. */
18292 #if defined __stub_$ac_func || defined __stub___$ac_func
18293 choke me
18294 #endif
18297 main ()
18299 return $ac_func ();
18301 return 0;
18303 _ACEOF
18304 rm -f conftest.$ac_objext conftest$ac_exeext
18305 if { (ac_try="$ac_link"
18306 case "(($ac_try" in
18307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18309 esac
18310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18311 $as_echo "$ac_try_echo") >&5
18312 (eval "$ac_link") 2>conftest.er1
18313 ac_status=$?
18314 grep -v '^ *+' conftest.er1 >conftest.err
18315 rm -f conftest.er1
18316 cat conftest.err >&5
18317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } && {
18319 test -z "$ac_c_werror_flag" ||
18320 test ! -s conftest.err
18321 } && test -s conftest$ac_exeext && {
18322 test "$cross_compiling" = yes ||
18323 $as_test_x conftest$ac_exeext
18324 }; then
18325 eval "$as_ac_var=yes"
18326 else
18327 $as_echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18330 eval "$as_ac_var=no"
18333 rm -rf conftest.dSYM
18334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18335 conftest$ac_exeext conftest.$ac_ext
18337 ac_res=`eval 'as_val=${'$as_ac_var'}
18338 $as_echo "$as_val"'`
18339 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18340 $as_echo "$ac_res" >&6; }
18341 if test `eval 'as_val=${'$as_ac_var'}
18342 $as_echo "$as_val"'` = yes; then
18343 cat >>confdefs.h <<_ACEOF
18344 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18345 _ACEOF
18347 else
18348 case " $LIBOBJS " in
18349 *" getloadavg.$ac_objext "* ) ;;
18350 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18352 esac
18355 cat >>confdefs.h <<\_ACEOF
18356 #define C_GETLOADAVG 1
18357 _ACEOF
18359 # Figure out what our getloadavg.c needs.
18360 ac_have_func=no
18361 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18362 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18363 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18364 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18365 $as_echo_n "(cached) " >&6
18367 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18368 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18369 else
18370 # Is the header compilable?
18371 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18372 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18373 cat >conftest.$ac_ext <<_ACEOF
18374 /* confdefs.h. */
18375 _ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18379 $ac_includes_default
18380 #include <sys/dg_sys_info.h>
18381 _ACEOF
18382 rm -f conftest.$ac_objext
18383 if { (ac_try="$ac_compile"
18384 case "(($ac_try" in
18385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18386 *) ac_try_echo=$ac_try;;
18387 esac
18388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18389 $as_echo "$ac_try_echo") >&5
18390 (eval "$ac_compile") 2>conftest.er1
18391 ac_status=$?
18392 grep -v '^ *+' conftest.er1 >conftest.err
18393 rm -f conftest.er1
18394 cat conftest.err >&5
18395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); } && {
18397 test -z "$ac_c_werror_flag" ||
18398 test ! -s conftest.err
18399 } && test -s conftest.$ac_objext; then
18400 ac_header_compiler=yes
18401 else
18402 $as_echo "$as_me: failed program was:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18405 ac_header_compiler=no
18408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18409 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18410 $as_echo "$ac_header_compiler" >&6; }
18412 # Is the header present?
18413 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18414 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18415 cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h. */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 #include <sys/dg_sys_info.h>
18422 _ACEOF
18423 if { (ac_try="$ac_cpp conftest.$ac_ext"
18424 case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18427 esac
18428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18429 $as_echo "$ac_try_echo") >&5
18430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18431 ac_status=$?
18432 grep -v '^ *+' conftest.er1 >conftest.err
18433 rm -f conftest.er1
18434 cat conftest.err >&5
18435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } >/dev/null && {
18437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18438 test ! -s conftest.err
18439 }; then
18440 ac_header_preproc=yes
18441 else
18442 $as_echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 ac_header_preproc=no
18448 rm -f conftest.err conftest.$ac_ext
18449 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18450 $as_echo "$ac_header_preproc" >&6; }
18452 # So? What about this header?
18453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18454 yes:no: )
18455 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18456 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18457 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18458 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18459 ac_header_preproc=yes
18461 no:yes:* )
18462 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18463 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18464 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18465 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18466 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18467 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18468 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18469 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18470 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18471 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18472 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18473 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18476 esac
18477 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18478 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18479 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18480 $as_echo_n "(cached) " >&6
18481 else
18482 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18484 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18485 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18488 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18489 ac_have_func=yes
18491 cat >>confdefs.h <<\_ACEOF
18492 #define DGUX 1
18493 _ACEOF
18496 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18497 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18498 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18499 $as_echo_n "(cached) " >&6
18500 else
18501 ac_check_lib_save_LIBS=$LIBS
18502 LIBS="-ldgc $LIBS"
18503 cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h. */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18510 /* Override any GCC internal prototype to avoid an error.
18511 Use char because int might match the return type of a GCC
18512 builtin and then its argument prototype would still apply. */
18513 #ifdef __cplusplus
18514 extern "C"
18515 #endif
18516 char dg_sys_info ();
18518 main ()
18520 return dg_sys_info ();
18522 return 0;
18524 _ACEOF
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (ac_try="$ac_link"
18527 case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18530 esac
18531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18532 $as_echo "$ac_try_echo") >&5
18533 (eval "$ac_link") 2>conftest.er1
18534 ac_status=$?
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
18538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest$ac_exeext && {
18543 test "$cross_compiling" = yes ||
18544 $as_test_x conftest$ac_exeext
18545 }; then
18546 ac_cv_lib_dgc_dg_sys_info=yes
18547 else
18548 $as_echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551 ac_cv_lib_dgc_dg_sys_info=no
18554 rm -rf conftest.dSYM
18555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18556 conftest$ac_exeext conftest.$ac_ext
18557 LIBS=$ac_check_lib_save_LIBS
18559 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18560 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18561 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18562 cat >>confdefs.h <<_ACEOF
18563 #define HAVE_LIBDGC 1
18564 _ACEOF
18566 LIBS="-ldgc $LIBS"
18574 if test "${ac_cv_header_locale_h+set}" = set; then
18575 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18576 $as_echo_n "checking for locale.h... " >&6; }
18577 if test "${ac_cv_header_locale_h+set}" = set; then
18578 $as_echo_n "(cached) " >&6
18580 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18581 $as_echo "$ac_cv_header_locale_h" >&6; }
18582 else
18583 # Is the header compilable?
18584 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18585 $as_echo_n "checking locale.h usability... " >&6; }
18586 cat >conftest.$ac_ext <<_ACEOF
18587 /* confdefs.h. */
18588 _ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h. */
18592 $ac_includes_default
18593 #include <locale.h>
18594 _ACEOF
18595 rm -f conftest.$ac_objext
18596 if { (ac_try="$ac_compile"
18597 case "(($ac_try" in
18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599 *) ac_try_echo=$ac_try;;
18600 esac
18601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18602 $as_echo "$ac_try_echo") >&5
18603 (eval "$ac_compile") 2>conftest.er1
18604 ac_status=$?
18605 grep -v '^ *+' conftest.er1 >conftest.err
18606 rm -f conftest.er1
18607 cat conftest.err >&5
18608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } && {
18610 test -z "$ac_c_werror_flag" ||
18611 test ! -s conftest.err
18612 } && test -s conftest.$ac_objext; then
18613 ac_header_compiler=yes
18614 else
18615 $as_echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18618 ac_header_compiler=no
18621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18622 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18623 $as_echo "$ac_header_compiler" >&6; }
18625 # Is the header present?
18626 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18627 $as_echo_n "checking locale.h presence... " >&6; }
18628 cat >conftest.$ac_ext <<_ACEOF
18629 /* confdefs.h. */
18630 _ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18634 #include <locale.h>
18635 _ACEOF
18636 if { (ac_try="$ac_cpp conftest.$ac_ext"
18637 case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18640 esac
18641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18642 $as_echo "$ac_try_echo") >&5
18643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18644 ac_status=$?
18645 grep -v '^ *+' conftest.er1 >conftest.err
18646 rm -f conftest.er1
18647 cat conftest.err >&5
18648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } >/dev/null && {
18650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18651 test ! -s conftest.err
18652 }; then
18653 ac_header_preproc=yes
18654 else
18655 $as_echo "$as_me: failed program was:" >&5
18656 sed 's/^/| /' conftest.$ac_ext >&5
18658 ac_header_preproc=no
18661 rm -f conftest.err conftest.$ac_ext
18662 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18663 $as_echo "$ac_header_preproc" >&6; }
18665 # So? What about this header?
18666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18667 yes:no: )
18668 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18669 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18670 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18671 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18672 ac_header_preproc=yes
18674 no:yes:* )
18675 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18676 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18677 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18678 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18679 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18680 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18681 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18682 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18683 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18684 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18685 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18686 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18689 esac
18690 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18691 $as_echo_n "checking for locale.h... " >&6; }
18692 if test "${ac_cv_header_locale_h+set}" = set; then
18693 $as_echo_n "(cached) " >&6
18694 else
18695 ac_cv_header_locale_h=$ac_header_preproc
18697 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18698 $as_echo "$ac_cv_header_locale_h" >&6; }
18704 for ac_func in setlocale
18706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18707 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18708 $as_echo_n "checking for $ac_func... " >&6; }
18709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18710 $as_echo_n "(cached) " >&6
18711 else
18712 cat >conftest.$ac_ext <<_ACEOF
18713 /* confdefs.h. */
18714 _ACEOF
18715 cat confdefs.h >>conftest.$ac_ext
18716 cat >>conftest.$ac_ext <<_ACEOF
18717 /* end confdefs.h. */
18718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18720 #define $ac_func innocuous_$ac_func
18722 /* System header to define __stub macros and hopefully few prototypes,
18723 which can conflict with char $ac_func (); below.
18724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18725 <limits.h> exists even on freestanding compilers. */
18727 #ifdef __STDC__
18728 # include <limits.h>
18729 #else
18730 # include <assert.h>
18731 #endif
18733 #undef $ac_func
18735 /* Override any GCC internal prototype to avoid an error.
18736 Use char because int might match the return type of a GCC
18737 builtin and then its argument prototype would still apply. */
18738 #ifdef __cplusplus
18739 extern "C"
18740 #endif
18741 char $ac_func ();
18742 /* The GNU C library defines this for functions which it implements
18743 to always fail with ENOSYS. Some functions are actually named
18744 something starting with __ and the normal name is an alias. */
18745 #if defined __stub_$ac_func || defined __stub___$ac_func
18746 choke me
18747 #endif
18750 main ()
18752 return $ac_func ();
18754 return 0;
18756 _ACEOF
18757 rm -f conftest.$ac_objext conftest$ac_exeext
18758 if { (ac_try="$ac_link"
18759 case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18762 esac
18763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18764 $as_echo "$ac_try_echo") >&5
18765 (eval "$ac_link") 2>conftest.er1
18766 ac_status=$?
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
18770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } && {
18772 test -z "$ac_c_werror_flag" ||
18773 test ! -s conftest.err
18774 } && test -s conftest$ac_exeext && {
18775 test "$cross_compiling" = yes ||
18776 $as_test_x conftest$ac_exeext
18777 }; then
18778 eval "$as_ac_var=yes"
18779 else
18780 $as_echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18783 eval "$as_ac_var=no"
18786 rm -rf conftest.dSYM
18787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18788 conftest$ac_exeext conftest.$ac_ext
18790 ac_res=`eval 'as_val=${'$as_ac_var'}
18791 $as_echo "$as_val"'`
18792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18793 $as_echo "$ac_res" >&6; }
18794 if test `eval 'as_val=${'$as_ac_var'}
18795 $as_echo "$as_val"'` = yes; then
18796 cat >>confdefs.h <<_ACEOF
18797 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18798 _ACEOF
18801 done
18804 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18805 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18806 # Irix 4.0.5F has the header but not the library.
18807 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18808 ac_have_func=yes
18810 cat >>confdefs.h <<\_ACEOF
18811 #define SVR4 1
18812 _ACEOF
18816 if test $ac_have_func = no; then
18817 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18818 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18819 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18820 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18821 $as_echo_n "(cached) " >&6
18823 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18824 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18825 else
18826 # Is the header compilable?
18827 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18828 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
18829 cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h. */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 $ac_includes_default
18836 #include <inq_stats/cpustats.h>
18837 _ACEOF
18838 rm -f conftest.$ac_objext
18839 if { (ac_try="$ac_compile"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18843 esac
18844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18845 $as_echo "$ac_try_echo") >&5
18846 (eval "$ac_compile") 2>conftest.er1
18847 ac_status=$?
18848 grep -v '^ *+' conftest.er1 >conftest.err
18849 rm -f conftest.er1
18850 cat conftest.err >&5
18851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } && {
18853 test -z "$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18855 } && test -s conftest.$ac_objext; then
18856 ac_header_compiler=yes
18857 else
18858 $as_echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18861 ac_header_compiler=no
18864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18865 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18866 $as_echo "$ac_header_compiler" >&6; }
18868 # Is the header present?
18869 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18870 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
18871 cat >conftest.$ac_ext <<_ACEOF
18872 /* confdefs.h. */
18873 _ACEOF
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h. */
18877 #include <inq_stats/cpustats.h>
18878 _ACEOF
18879 if { (ac_try="$ac_cpp conftest.$ac_ext"
18880 case "(($ac_try" in
18881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18883 esac
18884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18885 $as_echo "$ac_try_echo") >&5
18886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18887 ac_status=$?
18888 grep -v '^ *+' conftest.er1 >conftest.err
18889 rm -f conftest.er1
18890 cat conftest.err >&5
18891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } >/dev/null && {
18893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18894 test ! -s conftest.err
18895 }; then
18896 ac_header_preproc=yes
18897 else
18898 $as_echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18901 ac_header_preproc=no
18904 rm -f conftest.err conftest.$ac_ext
18905 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18906 $as_echo "$ac_header_preproc" >&6; }
18908 # So? What about this header?
18909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18910 yes:no: )
18911 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18912 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18913 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18914 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18915 ac_header_preproc=yes
18917 no:yes:* )
18918 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18919 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18920 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18921 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18922 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18923 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18924 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18925 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18926 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18927 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18928 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18929 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18932 esac
18933 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18934 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18935 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18936 $as_echo_n "(cached) " >&6
18937 else
18938 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18940 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18941 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18944 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18945 ac_have_func=yes
18947 cat >>confdefs.h <<\_ACEOF
18948 #define UMAX 1
18949 _ACEOF
18952 cat >>confdefs.h <<\_ACEOF
18953 #define UMAX4_3 1
18954 _ACEOF
18961 if test $ac_have_func = no; then
18962 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18963 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18964 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18965 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18966 $as_echo_n "(cached) " >&6
18968 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18969 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18970 else
18971 # Is the header compilable?
18972 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18973 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
18974 cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h. */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18980 $ac_includes_default
18981 #include <sys/cpustats.h>
18982 _ACEOF
18983 rm -f conftest.$ac_objext
18984 if { (ac_try="$ac_compile"
18985 case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18988 esac
18989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18990 $as_echo "$ac_try_echo") >&5
18991 (eval "$ac_compile") 2>conftest.er1
18992 ac_status=$?
18993 grep -v '^ *+' conftest.er1 >conftest.err
18994 rm -f conftest.er1
18995 cat conftest.err >&5
18996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } && {
18998 test -z "$ac_c_werror_flag" ||
18999 test ! -s conftest.err
19000 } && test -s conftest.$ac_objext; then
19001 ac_header_compiler=yes
19002 else
19003 $as_echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19006 ac_header_compiler=no
19009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19010 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19011 $as_echo "$ac_header_compiler" >&6; }
19013 # Is the header present?
19014 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19015 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19016 cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h. */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 #include <sys/cpustats.h>
19023 _ACEOF
19024 if { (ac_try="$ac_cpp conftest.$ac_ext"
19025 case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19028 esac
19029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19030 $as_echo "$ac_try_echo") >&5
19031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19032 ac_status=$?
19033 grep -v '^ *+' conftest.er1 >conftest.err
19034 rm -f conftest.er1
19035 cat conftest.err >&5
19036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } >/dev/null && {
19038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19039 test ! -s conftest.err
19040 }; then
19041 ac_header_preproc=yes
19042 else
19043 $as_echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19046 ac_header_preproc=no
19049 rm -f conftest.err conftest.$ac_ext
19050 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19051 $as_echo "$ac_header_preproc" >&6; }
19053 # So? What about this header?
19054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19055 yes:no: )
19056 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19057 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19058 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19059 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19060 ac_header_preproc=yes
19062 no:yes:* )
19063 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19064 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19065 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19066 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19067 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19068 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19069 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19070 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19071 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19072 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19073 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19074 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19077 esac
19078 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19079 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19080 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19081 $as_echo_n "(cached) " >&6
19082 else
19083 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19085 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19086 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19089 if test $ac_cv_header_sys_cpustats_h = yes; then
19090 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19091 #define UMAX 1
19092 _ACEOF
19099 if test $ac_have_func = no; then
19101 for ac_header in mach/mach.h
19103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19106 $as_echo_n "checking for $ac_header... " >&6; }
19107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19108 $as_echo_n "(cached) " >&6
19110 ac_res=`eval 'as_val=${'$as_ac_Header'}
19111 $as_echo "$as_val"'`
19112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19113 $as_echo "$ac_res" >&6; }
19114 else
19115 # Is the header compilable?
19116 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19117 $as_echo_n "checking $ac_header usability... " >&6; }
19118 cat >conftest.$ac_ext <<_ACEOF
19119 /* confdefs.h. */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19124 $ac_includes_default
19125 #include <$ac_header>
19126 _ACEOF
19127 rm -f conftest.$ac_objext
19128 if { (ac_try="$ac_compile"
19129 case "(($ac_try" in
19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131 *) ac_try_echo=$ac_try;;
19132 esac
19133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19134 $as_echo "$ac_try_echo") >&5
19135 (eval "$ac_compile") 2>conftest.er1
19136 ac_status=$?
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
19140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } && {
19142 test -z "$ac_c_werror_flag" ||
19143 test ! -s conftest.err
19144 } && test -s conftest.$ac_objext; then
19145 ac_header_compiler=yes
19146 else
19147 $as_echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19150 ac_header_compiler=no
19153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19154 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19155 $as_echo "$ac_header_compiler" >&6; }
19157 # Is the header present?
19158 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19159 $as_echo_n "checking $ac_header presence... " >&6; }
19160 cat >conftest.$ac_ext <<_ACEOF
19161 /* confdefs.h. */
19162 _ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h. */
19166 #include <$ac_header>
19167 _ACEOF
19168 if { (ac_try="$ac_cpp conftest.$ac_ext"
19169 case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19172 esac
19173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19174 $as_echo "$ac_try_echo") >&5
19175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19176 ac_status=$?
19177 grep -v '^ *+' conftest.er1 >conftest.err
19178 rm -f conftest.er1
19179 cat conftest.err >&5
19180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } >/dev/null && {
19182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19183 test ! -s conftest.err
19184 }; then
19185 ac_header_preproc=yes
19186 else
19187 $as_echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19190 ac_header_preproc=no
19193 rm -f conftest.err conftest.$ac_ext
19194 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19195 $as_echo "$ac_header_preproc" >&6; }
19197 # So? What about this header?
19198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19199 yes:no: )
19200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19201 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19203 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19204 ac_header_preproc=yes
19206 no:yes:* )
19207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19208 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19210 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19212 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19214 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19218 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19221 esac
19222 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19223 $as_echo_n "checking for $ac_header... " >&6; }
19224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19225 $as_echo_n "(cached) " >&6
19226 else
19227 eval "$as_ac_Header=\$ac_header_preproc"
19229 ac_res=`eval 'as_val=${'$as_ac_Header'}
19230 $as_echo "$as_val"'`
19231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19232 $as_echo "$ac_res" >&6; }
19235 if test `eval 'as_val=${'$as_ac_Header'}
19236 $as_echo "$as_val"'` = yes; then
19237 cat >>confdefs.h <<_ACEOF
19238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19239 _ACEOF
19243 done
19248 for ac_header in nlist.h
19250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19252 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19253 $as_echo_n "checking for $ac_header... " >&6; }
19254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19255 $as_echo_n "(cached) " >&6
19257 ac_res=`eval 'as_val=${'$as_ac_Header'}
19258 $as_echo "$as_val"'`
19259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19260 $as_echo "$ac_res" >&6; }
19261 else
19262 # Is the header compilable?
19263 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19264 $as_echo_n "checking $ac_header usability... " >&6; }
19265 cat >conftest.$ac_ext <<_ACEOF
19266 /* confdefs.h. */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19271 $ac_includes_default
19272 #include <$ac_header>
19273 _ACEOF
19274 rm -f conftest.$ac_objext
19275 if { (ac_try="$ac_compile"
19276 case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19279 esac
19280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19281 $as_echo "$ac_try_echo") >&5
19282 (eval "$ac_compile") 2>conftest.er1
19283 ac_status=$?
19284 grep -v '^ *+' conftest.er1 >conftest.err
19285 rm -f conftest.er1
19286 cat conftest.err >&5
19287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } && {
19289 test -z "$ac_c_werror_flag" ||
19290 test ! -s conftest.err
19291 } && test -s conftest.$ac_objext; then
19292 ac_header_compiler=yes
19293 else
19294 $as_echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19297 ac_header_compiler=no
19300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19301 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19302 $as_echo "$ac_header_compiler" >&6; }
19304 # Is the header present?
19305 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19306 $as_echo_n "checking $ac_header presence... " >&6; }
19307 cat >conftest.$ac_ext <<_ACEOF
19308 /* confdefs.h. */
19309 _ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313 #include <$ac_header>
19314 _ACEOF
19315 if { (ac_try="$ac_cpp conftest.$ac_ext"
19316 case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19319 esac
19320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19321 $as_echo "$ac_try_echo") >&5
19322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19323 ac_status=$?
19324 grep -v '^ *+' conftest.er1 >conftest.err
19325 rm -f conftest.er1
19326 cat conftest.err >&5
19327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } >/dev/null && {
19329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19330 test ! -s conftest.err
19331 }; then
19332 ac_header_preproc=yes
19333 else
19334 $as_echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 ac_header_preproc=no
19340 rm -f conftest.err conftest.$ac_ext
19341 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19342 $as_echo "$ac_header_preproc" >&6; }
19344 # So? What about this header?
19345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19346 yes:no: )
19347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19348 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19350 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19351 ac_header_preproc=yes
19353 no:yes:* )
19354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19355 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19357 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19359 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19361 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19363 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19365 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19368 esac
19369 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19370 $as_echo_n "checking for $ac_header... " >&6; }
19371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19372 $as_echo_n "(cached) " >&6
19373 else
19374 eval "$as_ac_Header=\$ac_header_preproc"
19376 ac_res=`eval 'as_val=${'$as_ac_Header'}
19377 $as_echo "$as_val"'`
19378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19379 $as_echo "$ac_res" >&6; }
19382 if test `eval 'as_val=${'$as_ac_Header'}
19383 $as_echo "$as_val"'` = yes; then
19384 cat >>confdefs.h <<_ACEOF
19385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19386 _ACEOF
19387 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19388 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19389 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19390 $as_echo_n "(cached) " >&6
19391 else
19392 cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h. */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19398 #include <nlist.h>
19401 main ()
19403 static struct nlist ac_aggr;
19404 if (ac_aggr.n_un.n_name)
19405 return 0;
19407 return 0;
19409 _ACEOF
19410 rm -f conftest.$ac_objext
19411 if { (ac_try="$ac_compile"
19412 case "(($ac_try" in
19413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414 *) ac_try_echo=$ac_try;;
19415 esac
19416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19417 $as_echo "$ac_try_echo") >&5
19418 (eval "$ac_compile") 2>conftest.er1
19419 ac_status=$?
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
19423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } && {
19425 test -z "$ac_c_werror_flag" ||
19426 test ! -s conftest.err
19427 } && test -s conftest.$ac_objext; then
19428 ac_cv_member_struct_nlist_n_un_n_name=yes
19429 else
19430 $as_echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19433 cat >conftest.$ac_ext <<_ACEOF
19434 /* confdefs.h. */
19435 _ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h. */
19439 #include <nlist.h>
19442 main ()
19444 static struct nlist ac_aggr;
19445 if (sizeof ac_aggr.n_un.n_name)
19446 return 0;
19448 return 0;
19450 _ACEOF
19451 rm -f conftest.$ac_objext
19452 if { (ac_try="$ac_compile"
19453 case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19456 esac
19457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19458 $as_echo "$ac_try_echo") >&5
19459 (eval "$ac_compile") 2>conftest.er1
19460 ac_status=$?
19461 grep -v '^ *+' conftest.er1 >conftest.err
19462 rm -f conftest.er1
19463 cat conftest.err >&5
19464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } && {
19466 test -z "$ac_c_werror_flag" ||
19467 test ! -s conftest.err
19468 } && test -s conftest.$ac_objext; then
19469 ac_cv_member_struct_nlist_n_un_n_name=yes
19470 else
19471 $as_echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ac_cv_member_struct_nlist_n_un_n_name=no
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19482 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19483 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19484 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19486 cat >>confdefs.h <<_ACEOF
19487 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19488 _ACEOF
19491 cat >>confdefs.h <<\_ACEOF
19492 #define NLIST_NAME_UNION 1
19493 _ACEOF
19500 done
19503 done
19506 # Some definitions of getloadavg require that the program be installed setgid.
19507 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19508 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19509 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19510 $as_echo_n "(cached) " >&6
19511 else
19512 cat >conftest.$ac_ext <<_ACEOF
19513 /* confdefs.h. */
19514 _ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h. */
19518 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19519 #ifdef LDAV_PRIVILEGED
19520 Yowza Am I SETGID yet
19521 #endif
19522 _ACEOF
19523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19524 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19525 ac_cv_func_getloadavg_setgid=yes
19526 else
19527 ac_cv_func_getloadavg_setgid=no
19529 rm -f conftest*
19532 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19533 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19534 if test $ac_cv_func_getloadavg_setgid = yes; then
19535 NEED_SETGID=true
19537 cat >>confdefs.h <<\_ACEOF
19538 #define GETLOADAVG_PRIVILEGED 1
19539 _ACEOF
19541 else
19542 NEED_SETGID=false
19545 if test $ac_cv_func_getloadavg_setgid = yes; then
19546 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19547 $as_echo_n "checking group of /dev/kmem... " >&6; }
19548 if test "${ac_cv_group_kmem+set}" = set; then
19549 $as_echo_n "(cached) " >&6
19550 else
19551 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19552 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19553 # If we got an error (system does not support symlinks), try without -L.
19554 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19555 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19556 | sed -ne 's/[ ][ ]*/ /g;
19557 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19558 / /s/.* //;p;'`
19561 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19562 $as_echo "$ac_cv_group_kmem" >&6; }
19563 KMEM_GROUP=$ac_cv_group_kmem
19565 if test "x$ac_save_LIBS" = x; then
19566 GETLOADAVG_LIBS=$LIBS
19567 else
19568 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
19570 LIBS=$ac_save_LIBS
19574 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19575 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19576 if test "${ac_cv_sys_largefile_source+set}" = set; then
19577 $as_echo_n "(cached) " >&6
19578 else
19579 while :; do
19580 cat >conftest.$ac_ext <<_ACEOF
19581 /* confdefs.h. */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19586 #include <sys/types.h> /* for off_t */
19587 #include <stdio.h>
19589 main ()
19591 int (*fp) (FILE *, off_t, int) = fseeko;
19592 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19594 return 0;
19596 _ACEOF
19597 rm -f conftest.$ac_objext conftest$ac_exeext
19598 if { (ac_try="$ac_link"
19599 case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19602 esac
19603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19604 $as_echo "$ac_try_echo") >&5
19605 (eval "$ac_link") 2>conftest.er1
19606 ac_status=$?
19607 grep -v '^ *+' conftest.er1 >conftest.err
19608 rm -f conftest.er1
19609 cat conftest.err >&5
19610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } && {
19612 test -z "$ac_c_werror_flag" ||
19613 test ! -s conftest.err
19614 } && test -s conftest$ac_exeext && {
19615 test "$cross_compiling" = yes ||
19616 $as_test_x conftest$ac_exeext
19617 }; then
19618 ac_cv_sys_largefile_source=no; break
19619 else
19620 $as_echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19626 rm -rf conftest.dSYM
19627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19628 conftest$ac_exeext conftest.$ac_ext
19629 cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h. */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 #define _LARGEFILE_SOURCE 1
19636 #include <sys/types.h> /* for off_t */
19637 #include <stdio.h>
19639 main ()
19641 int (*fp) (FILE *, off_t, int) = fseeko;
19642 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19644 return 0;
19646 _ACEOF
19647 rm -f conftest.$ac_objext conftest$ac_exeext
19648 if { (ac_try="$ac_link"
19649 case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19652 esac
19653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19654 $as_echo "$ac_try_echo") >&5
19655 (eval "$ac_link") 2>conftest.er1
19656 ac_status=$?
19657 grep -v '^ *+' conftest.er1 >conftest.err
19658 rm -f conftest.er1
19659 cat conftest.err >&5
19660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } && {
19662 test -z "$ac_c_werror_flag" ||
19663 test ! -s conftest.err
19664 } && test -s conftest$ac_exeext && {
19665 test "$cross_compiling" = yes ||
19666 $as_test_x conftest$ac_exeext
19667 }; then
19668 ac_cv_sys_largefile_source=1; break
19669 else
19670 $as_echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19676 rm -rf conftest.dSYM
19677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19678 conftest$ac_exeext conftest.$ac_ext
19679 ac_cv_sys_largefile_source=unknown
19680 break
19681 done
19683 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19684 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19685 case $ac_cv_sys_largefile_source in #(
19686 no | unknown) ;;
19688 cat >>confdefs.h <<_ACEOF
19689 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19690 _ACEOF
19692 esac
19693 rm -rf conftest*
19695 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19696 # in glibc 2.1.3, but that breaks too many other things.
19697 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19698 if test $ac_cv_sys_largefile_source != unknown; then
19700 cat >>confdefs.h <<\_ACEOF
19701 #define HAVE_FSEEKO 1
19702 _ACEOF
19707 # Configure getopt.
19708 # getopt.m4 serial 10
19710 # The getopt module assume you want GNU getopt, with getopt_long etc,
19711 # rather than vanilla POSIX getopt. This means your your code should
19712 # always include <getopt.h> for the getopt prototypes.
19724 # Prerequisites of lib/getopt*.
19729 GETOPT_H=
19731 for ac_header in getopt.h
19733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19735 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19736 $as_echo_n "checking for $ac_header... " >&6; }
19737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19738 $as_echo_n "(cached) " >&6
19740 ac_res=`eval 'as_val=${'$as_ac_Header'}
19741 $as_echo "$as_val"'`
19742 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19743 $as_echo "$ac_res" >&6; }
19744 else
19745 # Is the header compilable?
19746 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19747 $as_echo_n "checking $ac_header usability... " >&6; }
19748 cat >conftest.$ac_ext <<_ACEOF
19749 /* confdefs.h. */
19750 _ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754 $ac_includes_default
19755 #include <$ac_header>
19756 _ACEOF
19757 rm -f conftest.$ac_objext
19758 if { (ac_try="$ac_compile"
19759 case "(($ac_try" in
19760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761 *) ac_try_echo=$ac_try;;
19762 esac
19763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19764 $as_echo "$ac_try_echo") >&5
19765 (eval "$ac_compile") 2>conftest.er1
19766 ac_status=$?
19767 grep -v '^ *+' conftest.er1 >conftest.err
19768 rm -f conftest.er1
19769 cat conftest.err >&5
19770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } && {
19772 test -z "$ac_c_werror_flag" ||
19773 test ! -s conftest.err
19774 } && test -s conftest.$ac_objext; then
19775 ac_header_compiler=yes
19776 else
19777 $as_echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19780 ac_header_compiler=no
19783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19784 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19785 $as_echo "$ac_header_compiler" >&6; }
19787 # Is the header present?
19788 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19789 $as_echo_n "checking $ac_header presence... " >&6; }
19790 cat >conftest.$ac_ext <<_ACEOF
19791 /* confdefs.h. */
19792 _ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h. */
19796 #include <$ac_header>
19797 _ACEOF
19798 if { (ac_try="$ac_cpp conftest.$ac_ext"
19799 case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19802 esac
19803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19804 $as_echo "$ac_try_echo") >&5
19805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } >/dev/null && {
19812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 }; then
19815 ac_header_preproc=yes
19816 else
19817 $as_echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19820 ac_header_preproc=no
19823 rm -f conftest.err conftest.$ac_ext
19824 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19825 $as_echo "$ac_header_preproc" >&6; }
19827 # So? What about this header?
19828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19829 yes:no: )
19830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19831 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19833 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19834 ac_header_preproc=yes
19836 no:yes:* )
19837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19838 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19840 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19842 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19844 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19846 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19848 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19851 esac
19852 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19853 $as_echo_n "checking for $ac_header... " >&6; }
19854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19855 $as_echo_n "(cached) " >&6
19856 else
19857 eval "$as_ac_Header=\$ac_header_preproc"
19859 ac_res=`eval 'as_val=${'$as_ac_Header'}
19860 $as_echo "$as_val"'`
19861 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19862 $as_echo "$ac_res" >&6; }
19865 if test `eval 'as_val=${'$as_ac_Header'}
19866 $as_echo "$as_val"'` = yes; then
19867 cat >>confdefs.h <<_ACEOF
19868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19869 _ACEOF
19871 else
19872 GETOPT_H=getopt.h
19875 done
19877 if test -z "$GETOPT_H"; then
19879 for ac_func in getopt_long_only
19881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19882 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19883 $as_echo_n "checking for $ac_func... " >&6; }
19884 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19885 $as_echo_n "(cached) " >&6
19886 else
19887 cat >conftest.$ac_ext <<_ACEOF
19888 /* confdefs.h. */
19889 _ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19895 #define $ac_func innocuous_$ac_func
19897 /* System header to define __stub macros and hopefully few prototypes,
19898 which can conflict with char $ac_func (); below.
19899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19900 <limits.h> exists even on freestanding compilers. */
19902 #ifdef __STDC__
19903 # include <limits.h>
19904 #else
19905 # include <assert.h>
19906 #endif
19908 #undef $ac_func
19910 /* Override any GCC internal prototype to avoid an error.
19911 Use char because int might match the return type of a GCC
19912 builtin and then its argument prototype would still apply. */
19913 #ifdef __cplusplus
19914 extern "C"
19915 #endif
19916 char $ac_func ();
19917 /* The GNU C library defines this for functions which it implements
19918 to always fail with ENOSYS. Some functions are actually named
19919 something starting with __ and the normal name is an alias. */
19920 #if defined __stub_$ac_func || defined __stub___$ac_func
19921 choke me
19922 #endif
19925 main ()
19927 return $ac_func ();
19929 return 0;
19931 _ACEOF
19932 rm -f conftest.$ac_objext conftest$ac_exeext
19933 if { (ac_try="$ac_link"
19934 case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19937 esac
19938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19939 $as_echo "$ac_try_echo") >&5
19940 (eval "$ac_link") 2>conftest.er1
19941 ac_status=$?
19942 grep -v '^ *+' conftest.er1 >conftest.err
19943 rm -f conftest.er1
19944 cat conftest.err >&5
19945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } && {
19947 test -z "$ac_c_werror_flag" ||
19948 test ! -s conftest.err
19949 } && test -s conftest$ac_exeext && {
19950 test "$cross_compiling" = yes ||
19951 $as_test_x conftest$ac_exeext
19952 }; then
19953 eval "$as_ac_var=yes"
19954 else
19955 $as_echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19958 eval "$as_ac_var=no"
19961 rm -rf conftest.dSYM
19962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19963 conftest$ac_exeext conftest.$ac_ext
19965 ac_res=`eval 'as_val=${'$as_ac_var'}
19966 $as_echo "$as_val"'`
19967 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19968 $as_echo "$ac_res" >&6; }
19969 if test `eval 'as_val=${'$as_ac_var'}
19970 $as_echo "$as_val"'` = yes; then
19971 cat >>confdefs.h <<_ACEOF
19972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19973 _ACEOF
19975 else
19976 GETOPT_H=getopt.h
19978 done
19982 if test -z "$GETOPT_H"; then
19983 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19984 $as_echo_n "checking whether optreset is declared... " >&6; }
19985 if test "${ac_cv_have_decl_optreset+set}" = set; then
19986 $as_echo_n "(cached) " >&6
19987 else
19988 cat >conftest.$ac_ext <<_ACEOF
19989 /* confdefs.h. */
19990 _ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19994 #include <getopt.h>
19997 main ()
19999 #ifndef optreset
20000 (void) optreset;
20001 #endif
20004 return 0;
20006 _ACEOF
20007 rm -f conftest.$ac_objext
20008 if { (ac_try="$ac_compile"
20009 case "(($ac_try" in
20010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011 *) ac_try_echo=$ac_try;;
20012 esac
20013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20014 $as_echo "$ac_try_echo") >&5
20015 (eval "$ac_compile") 2>conftest.er1
20016 ac_status=$?
20017 grep -v '^ *+' conftest.er1 >conftest.err
20018 rm -f conftest.er1
20019 cat conftest.err >&5
20020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } && {
20022 test -z "$ac_c_werror_flag" ||
20023 test ! -s conftest.err
20024 } && test -s conftest.$ac_objext; then
20025 ac_cv_have_decl_optreset=yes
20026 else
20027 $as_echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20030 ac_cv_have_decl_optreset=no
20033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20036 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20037 if test $ac_cv_have_decl_optreset = yes; then
20038 GETOPT_H=getopt.h
20043 if test -z "$GETOPT_H"; then
20044 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20045 $as_echo_n "checking for working GNU getopt function... " >&6; }
20046 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20047 $as_echo_n "(cached) " >&6
20048 else
20049 if test "$cross_compiling" = yes; then
20050 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20051 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20052 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20053 $as_echo_n "(cached) " >&6
20054 else
20055 cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h. */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 #include <getopt.h>
20064 main ()
20066 #ifndef getopt_clip
20067 (void) getopt_clip;
20068 #endif
20071 return 0;
20073 _ACEOF
20074 rm -f conftest.$ac_objext
20075 if { (ac_try="$ac_compile"
20076 case "(($ac_try" in
20077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078 *) ac_try_echo=$ac_try;;
20079 esac
20080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20081 $as_echo "$ac_try_echo") >&5
20082 (eval "$ac_compile") 2>conftest.er1
20083 ac_status=$?
20084 grep -v '^ *+' conftest.er1 >conftest.err
20085 rm -f conftest.er1
20086 cat conftest.err >&5
20087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } && {
20089 test -z "$ac_c_werror_flag" ||
20090 test ! -s conftest.err
20091 } && test -s conftest.$ac_objext; then
20092 ac_cv_have_decl_getopt_clip=yes
20093 else
20094 $as_echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20097 ac_cv_have_decl_getopt_clip=no
20100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20103 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20104 if test $ac_cv_have_decl_getopt_clip = yes; then
20105 gl_cv_func_gnu_getopt=no
20106 else
20107 gl_cv_func_gnu_getopt=yes
20110 else
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. */
20117 #include <getopt.h>
20119 main ()
20122 char *myargv[3];
20123 myargv[0] = "conftest";
20124 myargv[1] = "-+";
20125 myargv[2] = 0;
20126 return getopt (2, myargv, "+a") != '?';
20129 return 0;
20131 _ACEOF
20132 rm -f conftest$ac_exeext
20133 if { (ac_try="$ac_link"
20134 case "(($ac_try" in
20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20137 esac
20138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20139 $as_echo "$ac_try_echo") >&5
20140 (eval "$ac_link") 2>&5
20141 ac_status=$?
20142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20144 { (case "(($ac_try" in
20145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146 *) ac_try_echo=$ac_try;;
20147 esac
20148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20149 $as_echo "$ac_try_echo") >&5
20150 (eval "$ac_try") 2>&5
20151 ac_status=$?
20152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 gl_cv_func_gnu_getopt=yes
20155 else
20156 $as_echo "$as_me: program exited with status $ac_status" >&5
20157 $as_echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20160 ( exit $ac_status )
20161 gl_cv_func_gnu_getopt=no
20163 rm -rf conftest.dSYM
20164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20169 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20170 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20171 if test "$gl_cv_func_gnu_getopt" = "no"; then
20172 GETOPT_H=getopt.h
20178 if test -n "$GETOPT_H"; then
20181 GETOPT_H=getopt.h
20183 cat >>confdefs.h <<\_ACEOF
20184 #define __GETOPT_PREFIX rpl_
20185 _ACEOF
20190 GETOPTOBJS='getopt.o getopt1.o'
20197 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20198 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20199 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20200 $as_echo_n "(cached) " >&6
20201 else
20202 # Use it with a single arg.
20203 cat >conftest.$ac_ext <<_ACEOF
20204 /* confdefs.h. */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20209 $ac_includes_default
20211 main ()
20213 getpgrp (0);
20215 return 0;
20217 _ACEOF
20218 rm -f conftest.$ac_objext
20219 if { (ac_try="$ac_compile"
20220 case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20223 esac
20224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20225 $as_echo "$ac_try_echo") >&5
20226 (eval "$ac_compile") 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } && {
20233 test -z "$ac_c_werror_flag" ||
20234 test ! -s conftest.err
20235 } && test -s conftest.$ac_objext; then
20236 ac_cv_func_getpgrp_void=no
20237 else
20238 $as_echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20241 ac_cv_func_getpgrp_void=yes
20244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20247 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20248 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20249 if test $ac_cv_func_getpgrp_void = yes; then
20251 cat >>confdefs.h <<\_ACEOF
20252 #define GETPGRP_VOID 1
20253 _ACEOF
20259 for ac_func in strftime
20261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20262 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20263 $as_echo_n "checking for $ac_func... " >&6; }
20264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20265 $as_echo_n "(cached) " >&6
20266 else
20267 cat >conftest.$ac_ext <<_ACEOF
20268 /* confdefs.h. */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20275 #define $ac_func innocuous_$ac_func
20277 /* System header to define __stub macros and hopefully few prototypes,
20278 which can conflict with char $ac_func (); below.
20279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20280 <limits.h> exists even on freestanding compilers. */
20282 #ifdef __STDC__
20283 # include <limits.h>
20284 #else
20285 # include <assert.h>
20286 #endif
20288 #undef $ac_func
20290 /* Override any GCC internal prototype to avoid an error.
20291 Use char because int might match the return type of a GCC
20292 builtin and then its argument prototype would still apply. */
20293 #ifdef __cplusplus
20294 extern "C"
20295 #endif
20296 char $ac_func ();
20297 /* The GNU C library defines this for functions which it implements
20298 to always fail with ENOSYS. Some functions are actually named
20299 something starting with __ and the normal name is an alias. */
20300 #if defined __stub_$ac_func || defined __stub___$ac_func
20301 choke me
20302 #endif
20305 main ()
20307 return $ac_func ();
20309 return 0;
20311 _ACEOF
20312 rm -f conftest.$ac_objext conftest$ac_exeext
20313 if { (ac_try="$ac_link"
20314 case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20317 esac
20318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20319 $as_echo "$ac_try_echo") >&5
20320 (eval "$ac_link") 2>conftest.er1
20321 ac_status=$?
20322 grep -v '^ *+' conftest.er1 >conftest.err
20323 rm -f conftest.er1
20324 cat conftest.err >&5
20325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); } && {
20327 test -z "$ac_c_werror_flag" ||
20328 test ! -s conftest.err
20329 } && test -s conftest$ac_exeext && {
20330 test "$cross_compiling" = yes ||
20331 $as_test_x conftest$ac_exeext
20332 }; then
20333 eval "$as_ac_var=yes"
20334 else
20335 $as_echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20338 eval "$as_ac_var=no"
20341 rm -rf conftest.dSYM
20342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20343 conftest$ac_exeext conftest.$ac_ext
20345 ac_res=`eval 'as_val=${'$as_ac_var'}
20346 $as_echo "$as_val"'`
20347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20348 $as_echo "$ac_res" >&6; }
20349 if test `eval 'as_val=${'$as_ac_var'}
20350 $as_echo "$as_val"'` = yes; then
20351 cat >>confdefs.h <<_ACEOF
20352 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20353 _ACEOF
20355 else
20356 # strftime is in -lintl on SCO UNIX.
20357 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20358 $as_echo_n "checking for strftime in -lintl... " >&6; }
20359 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20360 $as_echo_n "(cached) " >&6
20361 else
20362 ac_check_lib_save_LIBS=$LIBS
20363 LIBS="-lintl $LIBS"
20364 cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h. */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20371 /* Override any GCC internal prototype to avoid an error.
20372 Use char because int might match the return type of a GCC
20373 builtin and then its argument prototype would still apply. */
20374 #ifdef __cplusplus
20375 extern "C"
20376 #endif
20377 char strftime ();
20379 main ()
20381 return strftime ();
20383 return 0;
20385 _ACEOF
20386 rm -f conftest.$ac_objext conftest$ac_exeext
20387 if { (ac_try="$ac_link"
20388 case "(($ac_try" in
20389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390 *) ac_try_echo=$ac_try;;
20391 esac
20392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20393 $as_echo "$ac_try_echo") >&5
20394 (eval "$ac_link") 2>conftest.er1
20395 ac_status=$?
20396 grep -v '^ *+' conftest.er1 >conftest.err
20397 rm -f conftest.er1
20398 cat conftest.err >&5
20399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_c_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest$ac_exeext && {
20404 test "$cross_compiling" = yes ||
20405 $as_test_x conftest$ac_exeext
20406 }; then
20407 ac_cv_lib_intl_strftime=yes
20408 else
20409 $as_echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20412 ac_cv_lib_intl_strftime=no
20415 rm -rf conftest.dSYM
20416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20417 conftest$ac_exeext conftest.$ac_ext
20418 LIBS=$ac_check_lib_save_LIBS
20420 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20421 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20422 if test $ac_cv_lib_intl_strftime = yes; then
20423 cat >>confdefs.h <<\_ACEOF
20424 #define HAVE_STRFTIME 1
20425 _ACEOF
20427 LIBS="-lintl $LIBS"
20431 done
20434 # UNIX98 PTYs.
20436 for ac_func in grantpt
20438 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20439 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20440 $as_echo_n "checking for $ac_func... " >&6; }
20441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20442 $as_echo_n "(cached) " >&6
20443 else
20444 cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h. */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20452 #define $ac_func innocuous_$ac_func
20454 /* System header to define __stub macros and hopefully few prototypes,
20455 which can conflict with char $ac_func (); below.
20456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20457 <limits.h> exists even on freestanding compilers. */
20459 #ifdef __STDC__
20460 # include <limits.h>
20461 #else
20462 # include <assert.h>
20463 #endif
20465 #undef $ac_func
20467 /* Override any GCC internal prototype to avoid an error.
20468 Use char because int might match the return type of a GCC
20469 builtin and then its argument prototype would still apply. */
20470 #ifdef __cplusplus
20471 extern "C"
20472 #endif
20473 char $ac_func ();
20474 /* The GNU C library defines this for functions which it implements
20475 to always fail with ENOSYS. Some functions are actually named
20476 something starting with __ and the normal name is an alias. */
20477 #if defined __stub_$ac_func || defined __stub___$ac_func
20478 choke me
20479 #endif
20482 main ()
20484 return $ac_func ();
20486 return 0;
20488 _ACEOF
20489 rm -f conftest.$ac_objext conftest$ac_exeext
20490 if { (ac_try="$ac_link"
20491 case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20494 esac
20495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20496 $as_echo "$ac_try_echo") >&5
20497 (eval "$ac_link") 2>conftest.er1
20498 ac_status=$?
20499 grep -v '^ *+' conftest.er1 >conftest.err
20500 rm -f conftest.er1
20501 cat conftest.err >&5
20502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } && {
20504 test -z "$ac_c_werror_flag" ||
20505 test ! -s conftest.err
20506 } && test -s conftest$ac_exeext && {
20507 test "$cross_compiling" = yes ||
20508 $as_test_x conftest$ac_exeext
20509 }; then
20510 eval "$as_ac_var=yes"
20511 else
20512 $as_echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20515 eval "$as_ac_var=no"
20518 rm -rf conftest.dSYM
20519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20520 conftest$ac_exeext conftest.$ac_ext
20522 ac_res=`eval 'as_val=${'$as_ac_var'}
20523 $as_echo "$as_val"'`
20524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20525 $as_echo "$ac_res" >&6; }
20526 if test `eval 'as_val=${'$as_ac_var'}
20527 $as_echo "$as_val"'` = yes; then
20528 cat >>confdefs.h <<_ACEOF
20529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20530 _ACEOF
20533 done
20536 # PTY-related GNU extensions.
20538 for ac_func in getpt
20540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20542 $as_echo_n "checking for $ac_func... " >&6; }
20543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20544 $as_echo_n "(cached) " >&6
20545 else
20546 cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h. */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h. */
20552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20554 #define $ac_func innocuous_$ac_func
20556 /* System header to define __stub macros and hopefully few prototypes,
20557 which can conflict with char $ac_func (); below.
20558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20559 <limits.h> exists even on freestanding compilers. */
20561 #ifdef __STDC__
20562 # include <limits.h>
20563 #else
20564 # include <assert.h>
20565 #endif
20567 #undef $ac_func
20569 /* Override any GCC internal prototype to avoid an error.
20570 Use char because int might match the return type of a GCC
20571 builtin and then its argument prototype would still apply. */
20572 #ifdef __cplusplus
20573 extern "C"
20574 #endif
20575 char $ac_func ();
20576 /* The GNU C library defines this for functions which it implements
20577 to always fail with ENOSYS. Some functions are actually named
20578 something starting with __ and the normal name is an alias. */
20579 #if defined __stub_$ac_func || defined __stub___$ac_func
20580 choke me
20581 #endif
20584 main ()
20586 return $ac_func ();
20588 return 0;
20590 _ACEOF
20591 rm -f conftest.$ac_objext conftest$ac_exeext
20592 if { (ac_try="$ac_link"
20593 case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20596 esac
20597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20598 $as_echo "$ac_try_echo") >&5
20599 (eval "$ac_link") 2>conftest.er1
20600 ac_status=$?
20601 grep -v '^ *+' conftest.er1 >conftest.err
20602 rm -f conftest.er1
20603 cat conftest.err >&5
20604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); } && {
20606 test -z "$ac_c_werror_flag" ||
20607 test ! -s conftest.err
20608 } && test -s conftest$ac_exeext && {
20609 test "$cross_compiling" = yes ||
20610 $as_test_x conftest$ac_exeext
20611 }; then
20612 eval "$as_ac_var=yes"
20613 else
20614 $as_echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20617 eval "$as_ac_var=no"
20620 rm -rf conftest.dSYM
20621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20622 conftest$ac_exeext conftest.$ac_ext
20624 ac_res=`eval 'as_val=${'$as_ac_var'}
20625 $as_echo "$as_val"'`
20626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20627 $as_echo "$ac_res" >&6; }
20628 if test `eval 'as_val=${'$as_ac_var'}
20629 $as_echo "$as_val"'` = yes; then
20630 cat >>confdefs.h <<_ACEOF
20631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20632 _ACEOF
20635 done
20638 # Check this now, so that we will NOT find the above functions in ncurses.
20639 # That is because we have not set up to link ncurses in lib-src.
20640 # It's better to believe a function is not available
20641 # than to expect to find it in ncurses.
20643 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20644 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20645 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20646 $as_echo_n "(cached) " >&6
20647 else
20648 ac_check_lib_save_LIBS=$LIBS
20649 LIBS="-lncurses $LIBS"
20650 cat >conftest.$ac_ext <<_ACEOF
20651 /* confdefs.h. */
20652 _ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20657 /* Override any GCC internal prototype to avoid an error.
20658 Use char because int might match the return type of a GCC
20659 builtin and then its argument prototype would still apply. */
20660 #ifdef __cplusplus
20661 extern "C"
20662 #endif
20663 char tparm ();
20665 main ()
20667 return tparm ();
20669 return 0;
20671 _ACEOF
20672 rm -f conftest.$ac_objext conftest$ac_exeext
20673 if { (ac_try="$ac_link"
20674 case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20677 esac
20678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20679 $as_echo "$ac_try_echo") >&5
20680 (eval "$ac_link") 2>conftest.er1
20681 ac_status=$?
20682 grep -v '^ *+' conftest.er1 >conftest.err
20683 rm -f conftest.er1
20684 cat conftest.err >&5
20685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } && {
20687 test -z "$ac_c_werror_flag" ||
20688 test ! -s conftest.err
20689 } && test -s conftest$ac_exeext && {
20690 test "$cross_compiling" = yes ||
20691 $as_test_x conftest$ac_exeext
20692 }; then
20693 ac_cv_lib_ncurses_tparm=yes
20694 else
20695 $as_echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20698 ac_cv_lib_ncurses_tparm=no
20701 rm -rf conftest.dSYM
20702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20703 conftest$ac_exeext conftest.$ac_ext
20704 LIBS=$ac_check_lib_save_LIBS
20706 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20707 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20708 if test $ac_cv_lib_ncurses_tparm = yes; then
20709 cat >>confdefs.h <<_ACEOF
20710 #define HAVE_LIBNCURSES 1
20711 _ACEOF
20713 LIBS="-lncurses $LIBS"
20718 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20720 resolv=no
20721 cat >conftest.$ac_ext <<_ACEOF
20722 /* confdefs.h. */
20723 _ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20727 #include <netinet/in.h>
20728 #include <arpa/nameser.h>
20729 #include <resolv.h>
20731 main ()
20733 return res_init();
20735 return 0;
20737 _ACEOF
20738 rm -f conftest.$ac_objext conftest$ac_exeext
20739 if { (ac_try="$ac_link"
20740 case "(($ac_try" in
20741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742 *) ac_try_echo=$ac_try;;
20743 esac
20744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20745 $as_echo "$ac_try_echo") >&5
20746 (eval "$ac_link") 2>conftest.er1
20747 ac_status=$?
20748 grep -v '^ *+' conftest.er1 >conftest.err
20749 rm -f conftest.er1
20750 cat conftest.err >&5
20751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } && {
20753 test -z "$ac_c_werror_flag" ||
20754 test ! -s conftest.err
20755 } && test -s conftest$ac_exeext && {
20756 test "$cross_compiling" = yes ||
20757 $as_test_x conftest$ac_exeext
20758 }; then
20759 have_res_init=yes
20760 else
20761 $as_echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20764 have_res_init=no
20767 rm -rf conftest.dSYM
20768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20769 conftest$ac_exeext conftest.$ac_ext
20770 if test "$have_res_init" = no; then
20771 OLIBS="$LIBS"
20772 LIBS="$LIBS -lresolv"
20773 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20774 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20775 cat >conftest.$ac_ext <<_ACEOF
20776 /* confdefs.h. */
20777 _ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h. */
20781 #include <netinet/in.h>
20782 #include <arpa/nameser.h>
20783 #include <resolv.h>
20785 main ()
20787 return res_init();
20789 return 0;
20791 _ACEOF
20792 rm -f conftest.$ac_objext conftest$ac_exeext
20793 if { (ac_try="$ac_link"
20794 case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20797 esac
20798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20799 $as_echo "$ac_try_echo") >&5
20800 (eval "$ac_link") 2>conftest.er1
20801 ac_status=$?
20802 grep -v '^ *+' conftest.er1 >conftest.err
20803 rm -f conftest.er1
20804 cat conftest.err >&5
20805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } && {
20807 test -z "$ac_c_werror_flag" ||
20808 test ! -s conftest.err
20809 } && test -s conftest$ac_exeext && {
20810 test "$cross_compiling" = yes ||
20811 $as_test_x conftest$ac_exeext
20812 }; then
20813 have_res_init=yes
20814 else
20815 $as_echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 have_res_init=no
20821 rm -rf conftest.dSYM
20822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20823 conftest$ac_exeext conftest.$ac_ext
20824 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
20825 $as_echo "$have_res_init" >&6; }
20826 if test "$have_res_init" = yes ; then
20827 resolv=yes
20829 LIBS="$OLIBS"
20832 if test "$have_res_init" = yes; then
20834 cat >>confdefs.h <<\_ACEOF
20835 #define HAVE_RES_INIT 1
20836 _ACEOF
20840 # Do we need the Hesiod library to provide the support routines?
20841 if test "$with_hesiod" != no ; then
20842 # Don't set $LIBS here -- see comments above.
20843 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
20844 $as_echo_n "checking for res_send... " >&6; }
20845 if test "${ac_cv_func_res_send+set}" = set; then
20846 $as_echo_n "(cached) " >&6
20847 else
20848 cat >conftest.$ac_ext <<_ACEOF
20849 /* confdefs.h. */
20850 _ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20856 #define res_send innocuous_res_send
20858 /* System header to define __stub macros and hopefully few prototypes,
20859 which can conflict with char res_send (); below.
20860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20861 <limits.h> exists even on freestanding compilers. */
20863 #ifdef __STDC__
20864 # include <limits.h>
20865 #else
20866 # include <assert.h>
20867 #endif
20869 #undef res_send
20871 /* Override any GCC internal prototype to avoid an error.
20872 Use char because int might match the return type of a GCC
20873 builtin and then its argument prototype would still apply. */
20874 #ifdef __cplusplus
20875 extern "C"
20876 #endif
20877 char res_send ();
20878 /* The GNU C library defines this for functions which it implements
20879 to always fail with ENOSYS. Some functions are actually named
20880 something starting with __ and the normal name is an alias. */
20881 #if defined __stub_res_send || defined __stub___res_send
20882 choke me
20883 #endif
20886 main ()
20888 return res_send ();
20890 return 0;
20892 _ACEOF
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (ac_try="$ac_link"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20898 esac
20899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20900 $as_echo "$ac_try_echo") >&5
20901 (eval "$ac_link") 2>conftest.er1
20902 ac_status=$?
20903 grep -v '^ *+' conftest.er1 >conftest.err
20904 rm -f conftest.er1
20905 cat conftest.err >&5
20906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } && {
20908 test -z "$ac_c_werror_flag" ||
20909 test ! -s conftest.err
20910 } && test -s conftest$ac_exeext && {
20911 test "$cross_compiling" = yes ||
20912 $as_test_x conftest$ac_exeext
20913 }; then
20914 ac_cv_func_res_send=yes
20915 else
20916 $as_echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 ac_cv_func_res_send=no
20922 rm -rf conftest.dSYM
20923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20924 conftest$ac_exeext conftest.$ac_ext
20926 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20927 $as_echo "$ac_cv_func_res_send" >&6; }
20928 if test $ac_cv_func_res_send = yes; then
20930 else
20931 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
20932 $as_echo_n "checking for __res_send... " >&6; }
20933 if test "${ac_cv_func___res_send+set}" = set; then
20934 $as_echo_n "(cached) " >&6
20935 else
20936 cat >conftest.$ac_ext <<_ACEOF
20937 /* confdefs.h. */
20938 _ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h. */
20942 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20944 #define __res_send innocuous___res_send
20946 /* System header to define __stub macros and hopefully few prototypes,
20947 which can conflict with char __res_send (); below.
20948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20949 <limits.h> exists even on freestanding compilers. */
20951 #ifdef __STDC__
20952 # include <limits.h>
20953 #else
20954 # include <assert.h>
20955 #endif
20957 #undef __res_send
20959 /* Override any GCC internal prototype to avoid an error.
20960 Use char because int might match the return type of a GCC
20961 builtin and then its argument prototype would still apply. */
20962 #ifdef __cplusplus
20963 extern "C"
20964 #endif
20965 char __res_send ();
20966 /* The GNU C library defines this for functions which it implements
20967 to always fail with ENOSYS. Some functions are actually named
20968 something starting with __ and the normal name is an alias. */
20969 #if defined __stub___res_send || defined __stub_____res_send
20970 choke me
20971 #endif
20974 main ()
20976 return __res_send ();
20978 return 0;
20980 _ACEOF
20981 rm -f conftest.$ac_objext conftest$ac_exeext
20982 if { (ac_try="$ac_link"
20983 case "(($ac_try" in
20984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985 *) ac_try_echo=$ac_try;;
20986 esac
20987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20988 $as_echo "$ac_try_echo") >&5
20989 (eval "$ac_link") 2>conftest.er1
20990 ac_status=$?
20991 grep -v '^ *+' conftest.er1 >conftest.err
20992 rm -f conftest.er1
20993 cat conftest.err >&5
20994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } && {
20996 test -z "$ac_c_werror_flag" ||
20997 test ! -s conftest.err
20998 } && test -s conftest$ac_exeext && {
20999 test "$cross_compiling" = yes ||
21000 $as_test_x conftest$ac_exeext
21001 }; then
21002 ac_cv_func___res_send=yes
21003 else
21004 $as_echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21007 ac_cv_func___res_send=no
21010 rm -rf conftest.dSYM
21011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21012 conftest$ac_exeext conftest.$ac_ext
21014 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21015 $as_echo "$ac_cv_func___res_send" >&6; }
21016 if test $ac_cv_func___res_send = yes; then
21018 else
21019 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21020 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21021 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21022 $as_echo_n "(cached) " >&6
21023 else
21024 ac_check_lib_save_LIBS=$LIBS
21025 LIBS="-lresolv $LIBS"
21026 cat >conftest.$ac_ext <<_ACEOF
21027 /* confdefs.h. */
21028 _ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21033 /* Override any GCC internal prototype to avoid an error.
21034 Use char because int might match the return type of a GCC
21035 builtin and then its argument prototype would still apply. */
21036 #ifdef __cplusplus
21037 extern "C"
21038 #endif
21039 char res_send ();
21041 main ()
21043 return res_send ();
21045 return 0;
21047 _ACEOF
21048 rm -f conftest.$ac_objext conftest$ac_exeext
21049 if { (ac_try="$ac_link"
21050 case "(($ac_try" in
21051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052 *) ac_try_echo=$ac_try;;
21053 esac
21054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21055 $as_echo "$ac_try_echo") >&5
21056 (eval "$ac_link") 2>conftest.er1
21057 ac_status=$?
21058 grep -v '^ *+' conftest.er1 >conftest.err
21059 rm -f conftest.er1
21060 cat conftest.err >&5
21061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && {
21063 test -z "$ac_c_werror_flag" ||
21064 test ! -s conftest.err
21065 } && test -s conftest$ac_exeext && {
21066 test "$cross_compiling" = yes ||
21067 $as_test_x conftest$ac_exeext
21068 }; then
21069 ac_cv_lib_resolv_res_send=yes
21070 else
21071 $as_echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 ac_cv_lib_resolv_res_send=no
21077 rm -rf conftest.dSYM
21078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21079 conftest$ac_exeext conftest.$ac_ext
21080 LIBS=$ac_check_lib_save_LIBS
21082 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21083 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21084 if test $ac_cv_lib_resolv_res_send = yes; then
21085 resolv=yes
21086 else
21087 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21088 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21089 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21090 $as_echo_n "(cached) " >&6
21091 else
21092 ac_check_lib_save_LIBS=$LIBS
21093 LIBS="-lresolv $LIBS"
21094 cat >conftest.$ac_ext <<_ACEOF
21095 /* confdefs.h. */
21096 _ACEOF
21097 cat confdefs.h >>conftest.$ac_ext
21098 cat >>conftest.$ac_ext <<_ACEOF
21099 /* end confdefs.h. */
21101 /* Override any GCC internal prototype to avoid an error.
21102 Use char because int might match the return type of a GCC
21103 builtin and then its argument prototype would still apply. */
21104 #ifdef __cplusplus
21105 extern "C"
21106 #endif
21107 char __res_send ();
21109 main ()
21111 return __res_send ();
21113 return 0;
21115 _ACEOF
21116 rm -f conftest.$ac_objext conftest$ac_exeext
21117 if { (ac_try="$ac_link"
21118 case "(($ac_try" in
21119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120 *) ac_try_echo=$ac_try;;
21121 esac
21122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21123 $as_echo "$ac_try_echo") >&5
21124 (eval "$ac_link") 2>conftest.er1
21125 ac_status=$?
21126 grep -v '^ *+' conftest.er1 >conftest.err
21127 rm -f conftest.er1
21128 cat conftest.err >&5
21129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); } && {
21131 test -z "$ac_c_werror_flag" ||
21132 test ! -s conftest.err
21133 } && test -s conftest$ac_exeext && {
21134 test "$cross_compiling" = yes ||
21135 $as_test_x conftest$ac_exeext
21136 }; then
21137 ac_cv_lib_resolv___res_send=yes
21138 else
21139 $as_echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21142 ac_cv_lib_resolv___res_send=no
21145 rm -rf conftest.dSYM
21146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21147 conftest$ac_exeext conftest.$ac_ext
21148 LIBS=$ac_check_lib_save_LIBS
21150 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21151 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21152 if test $ac_cv_lib_resolv___res_send = yes; then
21153 resolv=yes
21162 if test "$resolv" = yes ; then
21163 RESOLVLIB=-lresolv
21164 else
21165 RESOLVLIB=
21167 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21168 $as_echo_n "checking for hes_getmailhost... " >&6; }
21169 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21170 $as_echo_n "(cached) " >&6
21171 else
21172 cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h. */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21180 #define hes_getmailhost innocuous_hes_getmailhost
21182 /* System header to define __stub macros and hopefully few prototypes,
21183 which can conflict with char hes_getmailhost (); below.
21184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21185 <limits.h> exists even on freestanding compilers. */
21187 #ifdef __STDC__
21188 # include <limits.h>
21189 #else
21190 # include <assert.h>
21191 #endif
21193 #undef hes_getmailhost
21195 /* Override any GCC internal prototype to avoid an error.
21196 Use char because int might match the return type of a GCC
21197 builtin and then its argument prototype would still apply. */
21198 #ifdef __cplusplus
21199 extern "C"
21200 #endif
21201 char hes_getmailhost ();
21202 /* The GNU C library defines this for functions which it implements
21203 to always fail with ENOSYS. Some functions are actually named
21204 something starting with __ and the normal name is an alias. */
21205 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21206 choke me
21207 #endif
21210 main ()
21212 return hes_getmailhost ();
21214 return 0;
21216 _ACEOF
21217 rm -f conftest.$ac_objext conftest$ac_exeext
21218 if { (ac_try="$ac_link"
21219 case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21222 esac
21223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21224 $as_echo "$ac_try_echo") >&5
21225 (eval "$ac_link") 2>conftest.er1
21226 ac_status=$?
21227 grep -v '^ *+' conftest.er1 >conftest.err
21228 rm -f conftest.er1
21229 cat conftest.err >&5
21230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } && {
21232 test -z "$ac_c_werror_flag" ||
21233 test ! -s conftest.err
21234 } && test -s conftest$ac_exeext && {
21235 test "$cross_compiling" = yes ||
21236 $as_test_x conftest$ac_exeext
21237 }; then
21238 ac_cv_func_hes_getmailhost=yes
21239 else
21240 $as_echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21243 ac_cv_func_hes_getmailhost=no
21246 rm -rf conftest.dSYM
21247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21248 conftest$ac_exeext conftest.$ac_ext
21250 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21251 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21252 if test $ac_cv_func_hes_getmailhost = yes; then
21254 else
21255 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21256 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21257 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21258 $as_echo_n "(cached) " >&6
21259 else
21260 ac_check_lib_save_LIBS=$LIBS
21261 LIBS="-lhesiod $RESOLVLIB $LIBS"
21262 cat >conftest.$ac_ext <<_ACEOF
21263 /* confdefs.h. */
21264 _ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21269 /* Override any GCC internal prototype to avoid an error.
21270 Use char because int might match the return type of a GCC
21271 builtin and then its argument prototype would still apply. */
21272 #ifdef __cplusplus
21273 extern "C"
21274 #endif
21275 char hes_getmailhost ();
21277 main ()
21279 return hes_getmailhost ();
21281 return 0;
21283 _ACEOF
21284 rm -f conftest.$ac_objext conftest$ac_exeext
21285 if { (ac_try="$ac_link"
21286 case "(($ac_try" in
21287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21288 *) ac_try_echo=$ac_try;;
21289 esac
21290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21291 $as_echo "$ac_try_echo") >&5
21292 (eval "$ac_link") 2>conftest.er1
21293 ac_status=$?
21294 grep -v '^ *+' conftest.er1 >conftest.err
21295 rm -f conftest.er1
21296 cat conftest.err >&5
21297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && {
21299 test -z "$ac_c_werror_flag" ||
21300 test ! -s conftest.err
21301 } && test -s conftest$ac_exeext && {
21302 test "$cross_compiling" = yes ||
21303 $as_test_x conftest$ac_exeext
21304 }; then
21305 ac_cv_lib_hesiod_hes_getmailhost=yes
21306 else
21307 $as_echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21310 ac_cv_lib_hesiod_hes_getmailhost=no
21313 rm -rf conftest.dSYM
21314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21315 conftest$ac_exeext conftest.$ac_ext
21316 LIBS=$ac_check_lib_save_LIBS
21318 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21319 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21320 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21322 cat >>confdefs.h <<\_ACEOF
21323 #define HAVE_LIBHESIOD 1
21324 _ACEOF
21326 else
21334 # Do we need libresolv (due to res_init or Hesiod)?
21335 if test "$resolv" = yes ; then
21337 cat >>confdefs.h <<\_ACEOF
21338 #define HAVE_LIBRESOLV 1
21339 _ACEOF
21343 # These tell us which Kerberos-related libraries to use.
21344 if test "${with_kerberos}" != no; then
21346 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21347 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21348 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21349 $as_echo_n "(cached) " >&6
21350 else
21351 ac_check_lib_save_LIBS=$LIBS
21352 LIBS="-lcom_err $LIBS"
21353 cat >conftest.$ac_ext <<_ACEOF
21354 /* confdefs.h. */
21355 _ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h. */
21360 /* Override any GCC internal prototype to avoid an error.
21361 Use char because int might match the return type of a GCC
21362 builtin and then its argument prototype would still apply. */
21363 #ifdef __cplusplus
21364 extern "C"
21365 #endif
21366 char com_err ();
21368 main ()
21370 return com_err ();
21372 return 0;
21374 _ACEOF
21375 rm -f conftest.$ac_objext conftest$ac_exeext
21376 if { (ac_try="$ac_link"
21377 case "(($ac_try" in
21378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379 *) ac_try_echo=$ac_try;;
21380 esac
21381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21382 $as_echo "$ac_try_echo") >&5
21383 (eval "$ac_link") 2>conftest.er1
21384 ac_status=$?
21385 grep -v '^ *+' conftest.er1 >conftest.err
21386 rm -f conftest.er1
21387 cat conftest.err >&5
21388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); } && {
21390 test -z "$ac_c_werror_flag" ||
21391 test ! -s conftest.err
21392 } && test -s conftest$ac_exeext && {
21393 test "$cross_compiling" = yes ||
21394 $as_test_x conftest$ac_exeext
21395 }; then
21396 ac_cv_lib_com_err_com_err=yes
21397 else
21398 $as_echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21401 ac_cv_lib_com_err_com_err=no
21404 rm -rf conftest.dSYM
21405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21406 conftest$ac_exeext conftest.$ac_ext
21407 LIBS=$ac_check_lib_save_LIBS
21409 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21410 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21411 if test $ac_cv_lib_com_err_com_err = yes; then
21412 cat >>confdefs.h <<_ACEOF
21413 #define HAVE_LIBCOM_ERR 1
21414 _ACEOF
21416 LIBS="-lcom_err $LIBS"
21421 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21422 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21423 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21424 $as_echo_n "(cached) " >&6
21425 else
21426 ac_check_lib_save_LIBS=$LIBS
21427 LIBS="-lk5crypto $LIBS"
21428 cat >conftest.$ac_ext <<_ACEOF
21429 /* confdefs.h. */
21430 _ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h. */
21435 /* Override any GCC internal prototype to avoid an error.
21436 Use char because int might match the return type of a GCC
21437 builtin and then its argument prototype would still apply. */
21438 #ifdef __cplusplus
21439 extern "C"
21440 #endif
21441 char mit_des_cbc_encrypt ();
21443 main ()
21445 return mit_des_cbc_encrypt ();
21447 return 0;
21449 _ACEOF
21450 rm -f conftest.$ac_objext conftest$ac_exeext
21451 if { (ac_try="$ac_link"
21452 case "(($ac_try" in
21453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454 *) ac_try_echo=$ac_try;;
21455 esac
21456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21457 $as_echo "$ac_try_echo") >&5
21458 (eval "$ac_link") 2>conftest.er1
21459 ac_status=$?
21460 grep -v '^ *+' conftest.er1 >conftest.err
21461 rm -f conftest.er1
21462 cat conftest.err >&5
21463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); } && {
21465 test -z "$ac_c_werror_flag" ||
21466 test ! -s conftest.err
21467 } && test -s conftest$ac_exeext && {
21468 test "$cross_compiling" = yes ||
21469 $as_test_x conftest$ac_exeext
21470 }; then
21471 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21472 else
21473 $as_echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21476 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21479 rm -rf conftest.dSYM
21480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21481 conftest$ac_exeext conftest.$ac_ext
21482 LIBS=$ac_check_lib_save_LIBS
21484 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21485 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21486 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21487 cat >>confdefs.h <<_ACEOF
21488 #define HAVE_LIBK5CRYPTO 1
21489 _ACEOF
21491 LIBS="-lk5crypto $LIBS"
21496 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21497 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21498 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21499 $as_echo_n "(cached) " >&6
21500 else
21501 ac_check_lib_save_LIBS=$LIBS
21502 LIBS="-lcrypto $LIBS"
21503 cat >conftest.$ac_ext <<_ACEOF
21504 /* confdefs.h. */
21505 _ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21510 /* Override any GCC internal prototype to avoid an error.
21511 Use char because int might match the return type of a GCC
21512 builtin and then its argument prototype would still apply. */
21513 #ifdef __cplusplus
21514 extern "C"
21515 #endif
21516 char mit_des_cbc_encrypt ();
21518 main ()
21520 return mit_des_cbc_encrypt ();
21522 return 0;
21524 _ACEOF
21525 rm -f conftest.$ac_objext conftest$ac_exeext
21526 if { (ac_try="$ac_link"
21527 case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21530 esac
21531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21532 $as_echo "$ac_try_echo") >&5
21533 (eval "$ac_link") 2>conftest.er1
21534 ac_status=$?
21535 grep -v '^ *+' conftest.er1 >conftest.err
21536 rm -f conftest.er1
21537 cat conftest.err >&5
21538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } && {
21540 test -z "$ac_c_werror_flag" ||
21541 test ! -s conftest.err
21542 } && test -s conftest$ac_exeext && {
21543 test "$cross_compiling" = yes ||
21544 $as_test_x conftest$ac_exeext
21545 }; then
21546 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21547 else
21548 $as_echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21551 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21554 rm -rf conftest.dSYM
21555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21556 conftest$ac_exeext conftest.$ac_ext
21557 LIBS=$ac_check_lib_save_LIBS
21559 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21560 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21561 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21562 cat >>confdefs.h <<_ACEOF
21563 #define HAVE_LIBCRYPTO 1
21564 _ACEOF
21566 LIBS="-lcrypto $LIBS"
21571 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21572 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21573 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21574 $as_echo_n "(cached) " >&6
21575 else
21576 ac_check_lib_save_LIBS=$LIBS
21577 LIBS="-lkrb5 $LIBS"
21578 cat >conftest.$ac_ext <<_ACEOF
21579 /* confdefs.h. */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21585 /* Override any GCC internal prototype to avoid an error.
21586 Use char because int might match the return type of a GCC
21587 builtin and then its argument prototype would still apply. */
21588 #ifdef __cplusplus
21589 extern "C"
21590 #endif
21591 char krb5_init_context ();
21593 main ()
21595 return krb5_init_context ();
21597 return 0;
21599 _ACEOF
21600 rm -f conftest.$ac_objext conftest$ac_exeext
21601 if { (ac_try="$ac_link"
21602 case "(($ac_try" in
21603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604 *) ac_try_echo=$ac_try;;
21605 esac
21606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21607 $as_echo "$ac_try_echo") >&5
21608 (eval "$ac_link") 2>conftest.er1
21609 ac_status=$?
21610 grep -v '^ *+' conftest.er1 >conftest.err
21611 rm -f conftest.er1
21612 cat conftest.err >&5
21613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } && {
21615 test -z "$ac_c_werror_flag" ||
21616 test ! -s conftest.err
21617 } && test -s conftest$ac_exeext && {
21618 test "$cross_compiling" = yes ||
21619 $as_test_x conftest$ac_exeext
21620 }; then
21621 ac_cv_lib_krb5_krb5_init_context=yes
21622 else
21623 $as_echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21626 ac_cv_lib_krb5_krb5_init_context=no
21629 rm -rf conftest.dSYM
21630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21631 conftest$ac_exeext conftest.$ac_ext
21632 LIBS=$ac_check_lib_save_LIBS
21634 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21635 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21636 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21637 cat >>confdefs.h <<_ACEOF
21638 #define HAVE_LIBKRB5 1
21639 _ACEOF
21641 LIBS="-lkrb5 $LIBS"
21645 if test "${with_kerberos5}" = no; then
21647 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21648 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21649 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21650 $as_echo_n "(cached) " >&6
21651 else
21652 ac_check_lib_save_LIBS=$LIBS
21653 LIBS="-ldes425 $LIBS"
21654 cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h. */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21661 /* Override any GCC internal prototype to avoid an error.
21662 Use char because int might match the return type of a GCC
21663 builtin and then its argument prototype would still apply. */
21664 #ifdef __cplusplus
21665 extern "C"
21666 #endif
21667 char des_cbc_encrypt ();
21669 main ()
21671 return des_cbc_encrypt ();
21673 return 0;
21675 _ACEOF
21676 rm -f conftest.$ac_objext conftest$ac_exeext
21677 if { (ac_try="$ac_link"
21678 case "(($ac_try" in
21679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21680 *) ac_try_echo=$ac_try;;
21681 esac
21682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21683 $as_echo "$ac_try_echo") >&5
21684 (eval "$ac_link") 2>conftest.er1
21685 ac_status=$?
21686 grep -v '^ *+' conftest.er1 >conftest.err
21687 rm -f conftest.er1
21688 cat conftest.err >&5
21689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); } && {
21691 test -z "$ac_c_werror_flag" ||
21692 test ! -s conftest.err
21693 } && test -s conftest$ac_exeext && {
21694 test "$cross_compiling" = yes ||
21695 $as_test_x conftest$ac_exeext
21696 }; then
21697 ac_cv_lib_des425_des_cbc_encrypt=yes
21698 else
21699 $as_echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21702 ac_cv_lib_des425_des_cbc_encrypt=no
21705 rm -rf conftest.dSYM
21706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21707 conftest$ac_exeext conftest.$ac_ext
21708 LIBS=$ac_check_lib_save_LIBS
21710 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21711 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21712 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21713 cat >>confdefs.h <<_ACEOF
21714 #define HAVE_LIBDES425 1
21715 _ACEOF
21717 LIBS="-ldes425 $LIBS"
21719 else
21721 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21722 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21723 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21724 $as_echo_n "(cached) " >&6
21725 else
21726 ac_check_lib_save_LIBS=$LIBS
21727 LIBS="-ldes $LIBS"
21728 cat >conftest.$ac_ext <<_ACEOF
21729 /* confdefs.h. */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21735 /* Override any GCC internal prototype to avoid an error.
21736 Use char because int might match the return type of a GCC
21737 builtin and then its argument prototype would still apply. */
21738 #ifdef __cplusplus
21739 extern "C"
21740 #endif
21741 char des_cbc_encrypt ();
21743 main ()
21745 return des_cbc_encrypt ();
21747 return 0;
21749 _ACEOF
21750 rm -f conftest.$ac_objext conftest$ac_exeext
21751 if { (ac_try="$ac_link"
21752 case "(($ac_try" in
21753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754 *) ac_try_echo=$ac_try;;
21755 esac
21756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21757 $as_echo "$ac_try_echo") >&5
21758 (eval "$ac_link") 2>conftest.er1
21759 ac_status=$?
21760 grep -v '^ *+' conftest.er1 >conftest.err
21761 rm -f conftest.er1
21762 cat conftest.err >&5
21763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } && {
21765 test -z "$ac_c_werror_flag" ||
21766 test ! -s conftest.err
21767 } && test -s conftest$ac_exeext && {
21768 test "$cross_compiling" = yes ||
21769 $as_test_x conftest$ac_exeext
21770 }; then
21771 ac_cv_lib_des_des_cbc_encrypt=yes
21772 else
21773 $as_echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21776 ac_cv_lib_des_des_cbc_encrypt=no
21779 rm -rf conftest.dSYM
21780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21781 conftest$ac_exeext conftest.$ac_ext
21782 LIBS=$ac_check_lib_save_LIBS
21784 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21785 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21786 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21787 cat >>confdefs.h <<_ACEOF
21788 #define HAVE_LIBDES 1
21789 _ACEOF
21791 LIBS="-ldes $LIBS"
21798 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21799 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21800 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21801 $as_echo_n "(cached) " >&6
21802 else
21803 ac_check_lib_save_LIBS=$LIBS
21804 LIBS="-lkrb4 $LIBS"
21805 cat >conftest.$ac_ext <<_ACEOF
21806 /* confdefs.h. */
21807 _ACEOF
21808 cat confdefs.h >>conftest.$ac_ext
21809 cat >>conftest.$ac_ext <<_ACEOF
21810 /* end confdefs.h. */
21812 /* Override any GCC internal prototype to avoid an error.
21813 Use char because int might match the return type of a GCC
21814 builtin and then its argument prototype would still apply. */
21815 #ifdef __cplusplus
21816 extern "C"
21817 #endif
21818 char krb_get_cred ();
21820 main ()
21822 return krb_get_cred ();
21824 return 0;
21826 _ACEOF
21827 rm -f conftest.$ac_objext conftest$ac_exeext
21828 if { (ac_try="$ac_link"
21829 case "(($ac_try" in
21830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831 *) ac_try_echo=$ac_try;;
21832 esac
21833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21834 $as_echo "$ac_try_echo") >&5
21835 (eval "$ac_link") 2>conftest.er1
21836 ac_status=$?
21837 grep -v '^ *+' conftest.er1 >conftest.err
21838 rm -f conftest.er1
21839 cat conftest.err >&5
21840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } && {
21842 test -z "$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21844 } && test -s conftest$ac_exeext && {
21845 test "$cross_compiling" = yes ||
21846 $as_test_x conftest$ac_exeext
21847 }; then
21848 ac_cv_lib_krb4_krb_get_cred=yes
21849 else
21850 $as_echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21853 ac_cv_lib_krb4_krb_get_cred=no
21856 rm -rf conftest.dSYM
21857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21858 conftest$ac_exeext conftest.$ac_ext
21859 LIBS=$ac_check_lib_save_LIBS
21861 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21862 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21863 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21864 cat >>confdefs.h <<_ACEOF
21865 #define HAVE_LIBKRB4 1
21866 _ACEOF
21868 LIBS="-lkrb4 $LIBS"
21870 else
21872 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21873 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21874 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21875 $as_echo_n "(cached) " >&6
21876 else
21877 ac_check_lib_save_LIBS=$LIBS
21878 LIBS="-lkrb $LIBS"
21879 cat >conftest.$ac_ext <<_ACEOF
21880 /* confdefs.h. */
21881 _ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h. */
21886 /* Override any GCC internal prototype to avoid an error.
21887 Use char because int might match the return type of a GCC
21888 builtin and then its argument prototype would still apply. */
21889 #ifdef __cplusplus
21890 extern "C"
21891 #endif
21892 char krb_get_cred ();
21894 main ()
21896 return krb_get_cred ();
21898 return 0;
21900 _ACEOF
21901 rm -f conftest.$ac_objext conftest$ac_exeext
21902 if { (ac_try="$ac_link"
21903 case "(($ac_try" in
21904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905 *) ac_try_echo=$ac_try;;
21906 esac
21907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21908 $as_echo "$ac_try_echo") >&5
21909 (eval "$ac_link") 2>conftest.er1
21910 ac_status=$?
21911 grep -v '^ *+' conftest.er1 >conftest.err
21912 rm -f conftest.er1
21913 cat conftest.err >&5
21914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } && {
21916 test -z "$ac_c_werror_flag" ||
21917 test ! -s conftest.err
21918 } && test -s conftest$ac_exeext && {
21919 test "$cross_compiling" = yes ||
21920 $as_test_x conftest$ac_exeext
21921 }; then
21922 ac_cv_lib_krb_krb_get_cred=yes
21923 else
21924 $as_echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21927 ac_cv_lib_krb_krb_get_cred=no
21930 rm -rf conftest.dSYM
21931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21932 conftest$ac_exeext conftest.$ac_ext
21933 LIBS=$ac_check_lib_save_LIBS
21935 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21936 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21937 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21938 cat >>confdefs.h <<_ACEOF
21939 #define HAVE_LIBKRB 1
21940 _ACEOF
21942 LIBS="-lkrb $LIBS"
21950 if test "${with_kerberos5}" != no; then
21952 for ac_header in krb5.h
21954 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21956 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21957 $as_echo_n "checking for $ac_header... " >&6; }
21958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21959 $as_echo_n "(cached) " >&6
21961 ac_res=`eval 'as_val=${'$as_ac_Header'}
21962 $as_echo "$as_val"'`
21963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21964 $as_echo "$ac_res" >&6; }
21965 else
21966 # Is the header compilable?
21967 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21968 $as_echo_n "checking $ac_header usability... " >&6; }
21969 cat >conftest.$ac_ext <<_ACEOF
21970 /* confdefs.h. */
21971 _ACEOF
21972 cat confdefs.h >>conftest.$ac_ext
21973 cat >>conftest.$ac_ext <<_ACEOF
21974 /* end confdefs.h. */
21975 $ac_includes_default
21976 #include <$ac_header>
21977 _ACEOF
21978 rm -f conftest.$ac_objext
21979 if { (ac_try="$ac_compile"
21980 case "(($ac_try" in
21981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982 *) ac_try_echo=$ac_try;;
21983 esac
21984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21985 $as_echo "$ac_try_echo") >&5
21986 (eval "$ac_compile") 2>conftest.er1
21987 ac_status=$?
21988 grep -v '^ *+' conftest.er1 >conftest.err
21989 rm -f conftest.er1
21990 cat conftest.err >&5
21991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } && {
21993 test -z "$ac_c_werror_flag" ||
21994 test ! -s conftest.err
21995 } && test -s conftest.$ac_objext; then
21996 ac_header_compiler=yes
21997 else
21998 $as_echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22001 ac_header_compiler=no
22004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22005 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22006 $as_echo "$ac_header_compiler" >&6; }
22008 # Is the header present?
22009 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22010 $as_echo_n "checking $ac_header presence... " >&6; }
22011 cat >conftest.$ac_ext <<_ACEOF
22012 /* confdefs.h. */
22013 _ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h. */
22017 #include <$ac_header>
22018 _ACEOF
22019 if { (ac_try="$ac_cpp conftest.$ac_ext"
22020 case "(($ac_try" in
22021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022 *) ac_try_echo=$ac_try;;
22023 esac
22024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22025 $as_echo "$ac_try_echo") >&5
22026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22027 ac_status=$?
22028 grep -v '^ *+' conftest.er1 >conftest.err
22029 rm -f conftest.er1
22030 cat conftest.err >&5
22031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } >/dev/null && {
22033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22034 test ! -s conftest.err
22035 }; then
22036 ac_header_preproc=yes
22037 else
22038 $as_echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22041 ac_header_preproc=no
22044 rm -f conftest.err conftest.$ac_ext
22045 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22046 $as_echo "$ac_header_preproc" >&6; }
22048 # So? What about this header?
22049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22050 yes:no: )
22051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22052 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22054 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22055 ac_header_preproc=yes
22057 no:yes:* )
22058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22059 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22061 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22063 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22065 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22067 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22069 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22072 esac
22073 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22074 $as_echo_n "checking for $ac_header... " >&6; }
22075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22076 $as_echo_n "(cached) " >&6
22077 else
22078 eval "$as_ac_Header=\$ac_header_preproc"
22080 ac_res=`eval 'as_val=${'$as_ac_Header'}
22081 $as_echo "$as_val"'`
22082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22083 $as_echo "$ac_res" >&6; }
22086 if test `eval 'as_val=${'$as_ac_Header'}
22087 $as_echo "$as_val"'` = yes; then
22088 cat >>confdefs.h <<_ACEOF
22089 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22090 _ACEOF
22091 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22092 $as_echo_n "checking for krb5_error.text... " >&6; }
22093 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22094 $as_echo_n "(cached) " >&6
22095 else
22096 cat >conftest.$ac_ext <<_ACEOF
22097 /* confdefs.h. */
22098 _ACEOF
22099 cat confdefs.h >>conftest.$ac_ext
22100 cat >>conftest.$ac_ext <<_ACEOF
22101 /* end confdefs.h. */
22102 #include <krb5.h>
22105 main ()
22107 static krb5_error ac_aggr;
22108 if (ac_aggr.text)
22109 return 0;
22111 return 0;
22113 _ACEOF
22114 rm -f conftest.$ac_objext
22115 if { (ac_try="$ac_compile"
22116 case "(($ac_try" in
22117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22119 esac
22120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22121 $as_echo "$ac_try_echo") >&5
22122 (eval "$ac_compile") 2>conftest.er1
22123 ac_status=$?
22124 grep -v '^ *+' conftest.er1 >conftest.err
22125 rm -f conftest.er1
22126 cat conftest.err >&5
22127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); } && {
22129 test -z "$ac_c_werror_flag" ||
22130 test ! -s conftest.err
22131 } && test -s conftest.$ac_objext; then
22132 ac_cv_member_krb5_error_text=yes
22133 else
22134 $as_echo "$as_me: failed program was:" >&5
22135 sed 's/^/| /' conftest.$ac_ext >&5
22137 cat >conftest.$ac_ext <<_ACEOF
22138 /* confdefs.h. */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22143 #include <krb5.h>
22146 main ()
22148 static krb5_error ac_aggr;
22149 if (sizeof ac_aggr.text)
22150 return 0;
22152 return 0;
22154 _ACEOF
22155 rm -f conftest.$ac_objext
22156 if { (ac_try="$ac_compile"
22157 case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22160 esac
22161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22162 $as_echo "$ac_try_echo") >&5
22163 (eval "$ac_compile") 2>conftest.er1
22164 ac_status=$?
22165 grep -v '^ *+' conftest.er1 >conftest.err
22166 rm -f conftest.er1
22167 cat conftest.err >&5
22168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } && {
22170 test -z "$ac_c_werror_flag" ||
22171 test ! -s conftest.err
22172 } && test -s conftest.$ac_objext; then
22173 ac_cv_member_krb5_error_text=yes
22174 else
22175 $as_echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22178 ac_cv_member_krb5_error_text=no
22181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22186 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22187 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22188 if test $ac_cv_member_krb5_error_text = yes; then
22190 cat >>confdefs.h <<_ACEOF
22191 #define HAVE_KRB5_ERROR_TEXT 1
22192 _ACEOF
22196 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22197 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22198 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22199 $as_echo_n "(cached) " >&6
22200 else
22201 cat >conftest.$ac_ext <<_ACEOF
22202 /* confdefs.h. */
22203 _ACEOF
22204 cat confdefs.h >>conftest.$ac_ext
22205 cat >>conftest.$ac_ext <<_ACEOF
22206 /* end confdefs.h. */
22207 #include <krb5.h>
22210 main ()
22212 static krb5_error ac_aggr;
22213 if (ac_aggr.e_text)
22214 return 0;
22216 return 0;
22218 _ACEOF
22219 rm -f conftest.$ac_objext
22220 if { (ac_try="$ac_compile"
22221 case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22224 esac
22225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22226 $as_echo "$ac_try_echo") >&5
22227 (eval "$ac_compile") 2>conftest.er1
22228 ac_status=$?
22229 grep -v '^ *+' conftest.er1 >conftest.err
22230 rm -f conftest.er1
22231 cat conftest.err >&5
22232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); } && {
22234 test -z "$ac_c_werror_flag" ||
22235 test ! -s conftest.err
22236 } && test -s conftest.$ac_objext; then
22237 ac_cv_member_krb5_error_e_text=yes
22238 else
22239 $as_echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22242 cat >conftest.$ac_ext <<_ACEOF
22243 /* confdefs.h. */
22244 _ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22248 #include <krb5.h>
22251 main ()
22253 static krb5_error ac_aggr;
22254 if (sizeof ac_aggr.e_text)
22255 return 0;
22257 return 0;
22259 _ACEOF
22260 rm -f conftest.$ac_objext
22261 if { (ac_try="$ac_compile"
22262 case "(($ac_try" in
22263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 *) ac_try_echo=$ac_try;;
22265 esac
22266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22267 $as_echo "$ac_try_echo") >&5
22268 (eval "$ac_compile") 2>conftest.er1
22269 ac_status=$?
22270 grep -v '^ *+' conftest.er1 >conftest.err
22271 rm -f conftest.er1
22272 cat conftest.err >&5
22273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); } && {
22275 test -z "$ac_c_werror_flag" ||
22276 test ! -s conftest.err
22277 } && test -s conftest.$ac_objext; then
22278 ac_cv_member_krb5_error_e_text=yes
22279 else
22280 $as_echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22283 ac_cv_member_krb5_error_e_text=no
22286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22292 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22293 if test $ac_cv_member_krb5_error_e_text = yes; then
22295 cat >>confdefs.h <<_ACEOF
22296 #define HAVE_KRB5_ERROR_E_TEXT 1
22297 _ACEOF
22304 done
22306 else
22308 for ac_header in des.h
22310 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22312 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22313 $as_echo_n "checking for $ac_header... " >&6; }
22314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22315 $as_echo_n "(cached) " >&6
22317 ac_res=`eval 'as_val=${'$as_ac_Header'}
22318 $as_echo "$as_val"'`
22319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22320 $as_echo "$ac_res" >&6; }
22321 else
22322 # Is the header compilable?
22323 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22324 $as_echo_n "checking $ac_header usability... " >&6; }
22325 cat >conftest.$ac_ext <<_ACEOF
22326 /* confdefs.h. */
22327 _ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22331 $ac_includes_default
22332 #include <$ac_header>
22333 _ACEOF
22334 rm -f conftest.$ac_objext
22335 if { (ac_try="$ac_compile"
22336 case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22339 esac
22340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22341 $as_echo "$ac_try_echo") >&5
22342 (eval "$ac_compile") 2>conftest.er1
22343 ac_status=$?
22344 grep -v '^ *+' conftest.er1 >conftest.err
22345 rm -f conftest.er1
22346 cat conftest.err >&5
22347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } && {
22349 test -z "$ac_c_werror_flag" ||
22350 test ! -s conftest.err
22351 } && test -s conftest.$ac_objext; then
22352 ac_header_compiler=yes
22353 else
22354 $as_echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22357 ac_header_compiler=no
22360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22362 $as_echo "$ac_header_compiler" >&6; }
22364 # Is the header present?
22365 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22366 $as_echo_n "checking $ac_header presence... " >&6; }
22367 cat >conftest.$ac_ext <<_ACEOF
22368 /* confdefs.h. */
22369 _ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h. */
22373 #include <$ac_header>
22374 _ACEOF
22375 if { (ac_try="$ac_cpp conftest.$ac_ext"
22376 case "(($ac_try" in
22377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378 *) ac_try_echo=$ac_try;;
22379 esac
22380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22381 $as_echo "$ac_try_echo") >&5
22382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22383 ac_status=$?
22384 grep -v '^ *+' conftest.er1 >conftest.err
22385 rm -f conftest.er1
22386 cat conftest.err >&5
22387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } >/dev/null && {
22389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22391 }; then
22392 ac_header_preproc=yes
22393 else
22394 $as_echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22397 ac_header_preproc=no
22400 rm -f conftest.err conftest.$ac_ext
22401 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22402 $as_echo "$ac_header_preproc" >&6; }
22404 # So? What about this header?
22405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22406 yes:no: )
22407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22408 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22410 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22411 ac_header_preproc=yes
22413 no:yes:* )
22414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22415 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22417 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22419 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22421 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22423 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22425 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22428 esac
22429 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22430 $as_echo_n "checking for $ac_header... " >&6; }
22431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22432 $as_echo_n "(cached) " >&6
22433 else
22434 eval "$as_ac_Header=\$ac_header_preproc"
22436 ac_res=`eval 'as_val=${'$as_ac_Header'}
22437 $as_echo "$as_val"'`
22438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22439 $as_echo "$ac_res" >&6; }
22442 if test `eval 'as_val=${'$as_ac_Header'}
22443 $as_echo "$as_val"'` = yes; then
22444 cat >>confdefs.h <<_ACEOF
22445 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22446 _ACEOF
22448 else
22450 for ac_header in kerberosIV/des.h
22452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22454 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22455 $as_echo_n "checking for $ac_header... " >&6; }
22456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22457 $as_echo_n "(cached) " >&6
22459 ac_res=`eval 'as_val=${'$as_ac_Header'}
22460 $as_echo "$as_val"'`
22461 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22462 $as_echo "$ac_res" >&6; }
22463 else
22464 # Is the header compilable?
22465 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22466 $as_echo_n "checking $ac_header usability... " >&6; }
22467 cat >conftest.$ac_ext <<_ACEOF
22468 /* confdefs.h. */
22469 _ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h. */
22473 $ac_includes_default
22474 #include <$ac_header>
22475 _ACEOF
22476 rm -f conftest.$ac_objext
22477 if { (ac_try="$ac_compile"
22478 case "(($ac_try" in
22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22481 esac
22482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22483 $as_echo "$ac_try_echo") >&5
22484 (eval "$ac_compile") 2>conftest.er1
22485 ac_status=$?
22486 grep -v '^ *+' conftest.er1 >conftest.err
22487 rm -f conftest.er1
22488 cat conftest.err >&5
22489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); } && {
22491 test -z "$ac_c_werror_flag" ||
22492 test ! -s conftest.err
22493 } && test -s conftest.$ac_objext; then
22494 ac_header_compiler=yes
22495 else
22496 $as_echo "$as_me: failed program was:" >&5
22497 sed 's/^/| /' conftest.$ac_ext >&5
22499 ac_header_compiler=no
22502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22503 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22504 $as_echo "$ac_header_compiler" >&6; }
22506 # Is the header present?
22507 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22508 $as_echo_n "checking $ac_header presence... " >&6; }
22509 cat >conftest.$ac_ext <<_ACEOF
22510 /* confdefs.h. */
22511 _ACEOF
22512 cat confdefs.h >>conftest.$ac_ext
22513 cat >>conftest.$ac_ext <<_ACEOF
22514 /* end confdefs.h. */
22515 #include <$ac_header>
22516 _ACEOF
22517 if { (ac_try="$ac_cpp conftest.$ac_ext"
22518 case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22521 esac
22522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22523 $as_echo "$ac_try_echo") >&5
22524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22525 ac_status=$?
22526 grep -v '^ *+' conftest.er1 >conftest.err
22527 rm -f conftest.er1
22528 cat conftest.err >&5
22529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } >/dev/null && {
22531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22532 test ! -s conftest.err
22533 }; then
22534 ac_header_preproc=yes
22535 else
22536 $as_echo "$as_me: failed program was:" >&5
22537 sed 's/^/| /' conftest.$ac_ext >&5
22539 ac_header_preproc=no
22542 rm -f conftest.err conftest.$ac_ext
22543 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22544 $as_echo "$ac_header_preproc" >&6; }
22546 # So? What about this header?
22547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22548 yes:no: )
22549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22550 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22553 ac_header_preproc=yes
22555 no:yes:* )
22556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22557 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22559 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22561 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22563 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22565 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22567 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22570 esac
22571 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22572 $as_echo_n "checking for $ac_header... " >&6; }
22573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22574 $as_echo_n "(cached) " >&6
22575 else
22576 eval "$as_ac_Header=\$ac_header_preproc"
22578 ac_res=`eval 'as_val=${'$as_ac_Header'}
22579 $as_echo "$as_val"'`
22580 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22581 $as_echo "$ac_res" >&6; }
22584 if test `eval 'as_val=${'$as_ac_Header'}
22585 $as_echo "$as_val"'` = yes; then
22586 cat >>confdefs.h <<_ACEOF
22587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22588 _ACEOF
22590 else
22592 for ac_header in kerberos/des.h
22594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22596 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22597 $as_echo_n "checking for $ac_header... " >&6; }
22598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22599 $as_echo_n "(cached) " >&6
22601 ac_res=`eval 'as_val=${'$as_ac_Header'}
22602 $as_echo "$as_val"'`
22603 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22604 $as_echo "$ac_res" >&6; }
22605 else
22606 # Is the header compilable?
22607 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22608 $as_echo_n "checking $ac_header usability... " >&6; }
22609 cat >conftest.$ac_ext <<_ACEOF
22610 /* confdefs.h. */
22611 _ACEOF
22612 cat confdefs.h >>conftest.$ac_ext
22613 cat >>conftest.$ac_ext <<_ACEOF
22614 /* end confdefs.h. */
22615 $ac_includes_default
22616 #include <$ac_header>
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22625 $as_echo "$ac_try_echo") >&5
22626 (eval "$ac_compile") 2>conftest.er1
22627 ac_status=$?
22628 grep -v '^ *+' conftest.er1 >conftest.err
22629 rm -f conftest.er1
22630 cat conftest.err >&5
22631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } && {
22633 test -z "$ac_c_werror_flag" ||
22634 test ! -s conftest.err
22635 } && test -s conftest.$ac_objext; then
22636 ac_header_compiler=yes
22637 else
22638 $as_echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22641 ac_header_compiler=no
22644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22645 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22646 $as_echo "$ac_header_compiler" >&6; }
22648 # Is the header present?
22649 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22650 $as_echo_n "checking $ac_header presence... " >&6; }
22651 cat >conftest.$ac_ext <<_ACEOF
22652 /* confdefs.h. */
22653 _ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h. */
22657 #include <$ac_header>
22658 _ACEOF
22659 if { (ac_try="$ac_cpp conftest.$ac_ext"
22660 case "(($ac_try" in
22661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22662 *) ac_try_echo=$ac_try;;
22663 esac
22664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22665 $as_echo "$ac_try_echo") >&5
22666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22667 ac_status=$?
22668 grep -v '^ *+' conftest.er1 >conftest.err
22669 rm -f conftest.er1
22670 cat conftest.err >&5
22671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); } >/dev/null && {
22673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22674 test ! -s conftest.err
22675 }; then
22676 ac_header_preproc=yes
22677 else
22678 $as_echo "$as_me: failed program was:" >&5
22679 sed 's/^/| /' conftest.$ac_ext >&5
22681 ac_header_preproc=no
22684 rm -f conftest.err conftest.$ac_ext
22685 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22686 $as_echo "$ac_header_preproc" >&6; }
22688 # So? What about this header?
22689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22690 yes:no: )
22691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22692 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22694 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22695 ac_header_preproc=yes
22697 no:yes:* )
22698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22699 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22701 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22703 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22705 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22709 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22712 esac
22713 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22714 $as_echo_n "checking for $ac_header... " >&6; }
22715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22716 $as_echo_n "(cached) " >&6
22717 else
22718 eval "$as_ac_Header=\$ac_header_preproc"
22720 ac_res=`eval 'as_val=${'$as_ac_Header'}
22721 $as_echo "$as_val"'`
22722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22723 $as_echo "$ac_res" >&6; }
22726 if test `eval 'as_val=${'$as_ac_Header'}
22727 $as_echo "$as_val"'` = yes; then
22728 cat >>confdefs.h <<_ACEOF
22729 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22730 _ACEOF
22734 done
22738 done
22742 done
22745 for ac_header in krb.h
22747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22749 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22750 $as_echo_n "checking for $ac_header... " >&6; }
22751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22752 $as_echo_n "(cached) " >&6
22754 ac_res=`eval 'as_val=${'$as_ac_Header'}
22755 $as_echo "$as_val"'`
22756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22757 $as_echo "$ac_res" >&6; }
22758 else
22759 # Is the header compilable?
22760 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22761 $as_echo_n "checking $ac_header usability... " >&6; }
22762 cat >conftest.$ac_ext <<_ACEOF
22763 /* confdefs.h. */
22764 _ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22768 $ac_includes_default
22769 #include <$ac_header>
22770 _ACEOF
22771 rm -f conftest.$ac_objext
22772 if { (ac_try="$ac_compile"
22773 case "(($ac_try" in
22774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775 *) ac_try_echo=$ac_try;;
22776 esac
22777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22778 $as_echo "$ac_try_echo") >&5
22779 (eval "$ac_compile") 2>conftest.er1
22780 ac_status=$?
22781 grep -v '^ *+' conftest.er1 >conftest.err
22782 rm -f conftest.er1
22783 cat conftest.err >&5
22784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); } && {
22786 test -z "$ac_c_werror_flag" ||
22787 test ! -s conftest.err
22788 } && test -s conftest.$ac_objext; then
22789 ac_header_compiler=yes
22790 else
22791 $as_echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22794 ac_header_compiler=no
22797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22798 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22799 $as_echo "$ac_header_compiler" >&6; }
22801 # Is the header present?
22802 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22803 $as_echo_n "checking $ac_header presence... " >&6; }
22804 cat >conftest.$ac_ext <<_ACEOF
22805 /* confdefs.h. */
22806 _ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h. */
22810 #include <$ac_header>
22811 _ACEOF
22812 if { (ac_try="$ac_cpp conftest.$ac_ext"
22813 case "(($ac_try" in
22814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22815 *) ac_try_echo=$ac_try;;
22816 esac
22817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22818 $as_echo "$ac_try_echo") >&5
22819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22820 ac_status=$?
22821 grep -v '^ *+' conftest.er1 >conftest.err
22822 rm -f conftest.er1
22823 cat conftest.err >&5
22824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); } >/dev/null && {
22826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22827 test ! -s conftest.err
22828 }; then
22829 ac_header_preproc=yes
22830 else
22831 $as_echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22834 ac_header_preproc=no
22837 rm -f conftest.err conftest.$ac_ext
22838 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22839 $as_echo "$ac_header_preproc" >&6; }
22841 # So? What about this header?
22842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22843 yes:no: )
22844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22845 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22847 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22848 ac_header_preproc=yes
22850 no:yes:* )
22851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22852 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22854 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22856 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22858 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22860 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22862 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22865 esac
22866 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22867 $as_echo_n "checking for $ac_header... " >&6; }
22868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22869 $as_echo_n "(cached) " >&6
22870 else
22871 eval "$as_ac_Header=\$ac_header_preproc"
22873 ac_res=`eval 'as_val=${'$as_ac_Header'}
22874 $as_echo "$as_val"'`
22875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22876 $as_echo "$ac_res" >&6; }
22879 if test `eval 'as_val=${'$as_ac_Header'}
22880 $as_echo "$as_val"'` = yes; then
22881 cat >>confdefs.h <<_ACEOF
22882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22883 _ACEOF
22885 else
22887 for ac_header in kerberosIV/krb.h
22889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22891 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22892 $as_echo_n "checking for $ac_header... " >&6; }
22893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22894 $as_echo_n "(cached) " >&6
22896 ac_res=`eval 'as_val=${'$as_ac_Header'}
22897 $as_echo "$as_val"'`
22898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22899 $as_echo "$ac_res" >&6; }
22900 else
22901 # Is the header compilable?
22902 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22903 $as_echo_n "checking $ac_header usability... " >&6; }
22904 cat >conftest.$ac_ext <<_ACEOF
22905 /* confdefs.h. */
22906 _ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22910 $ac_includes_default
22911 #include <$ac_header>
22912 _ACEOF
22913 rm -f conftest.$ac_objext
22914 if { (ac_try="$ac_compile"
22915 case "(($ac_try" in
22916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22918 esac
22919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22920 $as_echo "$ac_try_echo") >&5
22921 (eval "$ac_compile") 2>conftest.er1
22922 ac_status=$?
22923 grep -v '^ *+' conftest.er1 >conftest.err
22924 rm -f conftest.er1
22925 cat conftest.err >&5
22926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); } && {
22928 test -z "$ac_c_werror_flag" ||
22929 test ! -s conftest.err
22930 } && test -s conftest.$ac_objext; then
22931 ac_header_compiler=yes
22932 else
22933 $as_echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22936 ac_header_compiler=no
22939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22940 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22941 $as_echo "$ac_header_compiler" >&6; }
22943 # Is the header present?
22944 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22945 $as_echo_n "checking $ac_header presence... " >&6; }
22946 cat >conftest.$ac_ext <<_ACEOF
22947 /* confdefs.h. */
22948 _ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h. */
22952 #include <$ac_header>
22953 _ACEOF
22954 if { (ac_try="$ac_cpp conftest.$ac_ext"
22955 case "(($ac_try" in
22956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22957 *) ac_try_echo=$ac_try;;
22958 esac
22959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22960 $as_echo "$ac_try_echo") >&5
22961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22962 ac_status=$?
22963 grep -v '^ *+' conftest.er1 >conftest.err
22964 rm -f conftest.er1
22965 cat conftest.err >&5
22966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); } >/dev/null && {
22968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22969 test ! -s conftest.err
22970 }; then
22971 ac_header_preproc=yes
22972 else
22973 $as_echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22976 ac_header_preproc=no
22979 rm -f conftest.err conftest.$ac_ext
22980 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22981 $as_echo "$ac_header_preproc" >&6; }
22983 # So? What about this header?
22984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22985 yes:no: )
22986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22987 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22989 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22990 ac_header_preproc=yes
22992 no:yes:* )
22993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22994 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22996 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22998 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23000 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23004 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23007 esac
23008 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23009 $as_echo_n "checking for $ac_header... " >&6; }
23010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23011 $as_echo_n "(cached) " >&6
23012 else
23013 eval "$as_ac_Header=\$ac_header_preproc"
23015 ac_res=`eval 'as_val=${'$as_ac_Header'}
23016 $as_echo "$as_val"'`
23017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23018 $as_echo "$ac_res" >&6; }
23021 if test `eval 'as_val=${'$as_ac_Header'}
23022 $as_echo "$as_val"'` = yes; then
23023 cat >>confdefs.h <<_ACEOF
23024 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23025 _ACEOF
23027 else
23029 for ac_header in kerberos/krb.h
23031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23033 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23034 $as_echo_n "checking for $ac_header... " >&6; }
23035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23036 $as_echo_n "(cached) " >&6
23038 ac_res=`eval 'as_val=${'$as_ac_Header'}
23039 $as_echo "$as_val"'`
23040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23041 $as_echo "$ac_res" >&6; }
23042 else
23043 # Is the header compilable?
23044 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23045 $as_echo_n "checking $ac_header usability... " >&6; }
23046 cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h. */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052 $ac_includes_default
23053 #include <$ac_header>
23054 _ACEOF
23055 rm -f conftest.$ac_objext
23056 if { (ac_try="$ac_compile"
23057 case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23060 esac
23061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23062 $as_echo "$ac_try_echo") >&5
23063 (eval "$ac_compile") 2>conftest.er1
23064 ac_status=$?
23065 grep -v '^ *+' conftest.er1 >conftest.err
23066 rm -f conftest.er1
23067 cat conftest.err >&5
23068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); } && {
23070 test -z "$ac_c_werror_flag" ||
23071 test ! -s conftest.err
23072 } && test -s conftest.$ac_objext; then
23073 ac_header_compiler=yes
23074 else
23075 $as_echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23078 ac_header_compiler=no
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23083 $as_echo "$ac_header_compiler" >&6; }
23085 # Is the header present?
23086 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23087 $as_echo_n "checking $ac_header presence... " >&6; }
23088 cat >conftest.$ac_ext <<_ACEOF
23089 /* confdefs.h. */
23090 _ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h. */
23094 #include <$ac_header>
23095 _ACEOF
23096 if { (ac_try="$ac_cpp conftest.$ac_ext"
23097 case "(($ac_try" in
23098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23099 *) ac_try_echo=$ac_try;;
23100 esac
23101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23102 $as_echo "$ac_try_echo") >&5
23103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23104 ac_status=$?
23105 grep -v '^ *+' conftest.er1 >conftest.err
23106 rm -f conftest.er1
23107 cat conftest.err >&5
23108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); } >/dev/null && {
23110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23111 test ! -s conftest.err
23112 }; then
23113 ac_header_preproc=yes
23114 else
23115 $as_echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23118 ac_header_preproc=no
23121 rm -f conftest.err conftest.$ac_ext
23122 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23123 $as_echo "$ac_header_preproc" >&6; }
23125 # So? What about this header?
23126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23127 yes:no: )
23128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23129 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23131 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23132 ac_header_preproc=yes
23134 no:yes:* )
23135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23136 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23138 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23140 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23142 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23144 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23146 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23149 esac
23150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23151 $as_echo_n "checking for $ac_header... " >&6; }
23152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23153 $as_echo_n "(cached) " >&6
23154 else
23155 eval "$as_ac_Header=\$ac_header_preproc"
23157 ac_res=`eval 'as_val=${'$as_ac_Header'}
23158 $as_echo "$as_val"'`
23159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23160 $as_echo "$ac_res" >&6; }
23163 if test `eval 'as_val=${'$as_ac_Header'}
23164 $as_echo "$as_val"'` = yes; then
23165 cat >>confdefs.h <<_ACEOF
23166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23167 _ACEOF
23171 done
23175 done
23179 done
23183 for ac_header in com_err.h
23185 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23187 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23188 $as_echo_n "checking for $ac_header... " >&6; }
23189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23190 $as_echo_n "(cached) " >&6
23192 ac_res=`eval 'as_val=${'$as_ac_Header'}
23193 $as_echo "$as_val"'`
23194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23195 $as_echo "$ac_res" >&6; }
23196 else
23197 # Is the header compilable?
23198 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23199 $as_echo_n "checking $ac_header usability... " >&6; }
23200 cat >conftest.$ac_ext <<_ACEOF
23201 /* confdefs.h. */
23202 _ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h. */
23206 $ac_includes_default
23207 #include <$ac_header>
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23216 $as_echo "$ac_try_echo") >&5
23217 (eval "$ac_compile") 2>conftest.er1
23218 ac_status=$?
23219 grep -v '^ *+' conftest.er1 >conftest.err
23220 rm -f conftest.er1
23221 cat conftest.err >&5
23222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } && {
23224 test -z "$ac_c_werror_flag" ||
23225 test ! -s conftest.err
23226 } && test -s conftest.$ac_objext; then
23227 ac_header_compiler=yes
23228 else
23229 $as_echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23232 ac_header_compiler=no
23235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23236 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23237 $as_echo "$ac_header_compiler" >&6; }
23239 # Is the header present?
23240 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23241 $as_echo_n "checking $ac_header presence... " >&6; }
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h. */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23248 #include <$ac_header>
23249 _ACEOF
23250 if { (ac_try="$ac_cpp conftest.$ac_ext"
23251 case "(($ac_try" in
23252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23253 *) ac_try_echo=$ac_try;;
23254 esac
23255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23256 $as_echo "$ac_try_echo") >&5
23257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23258 ac_status=$?
23259 grep -v '^ *+' conftest.er1 >conftest.err
23260 rm -f conftest.er1
23261 cat conftest.err >&5
23262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } >/dev/null && {
23264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23265 test ! -s conftest.err
23266 }; then
23267 ac_header_preproc=yes
23268 else
23269 $as_echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.$ac_ext >&5
23272 ac_header_preproc=no
23275 rm -f conftest.err conftest.$ac_ext
23276 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23277 $as_echo "$ac_header_preproc" >&6; }
23279 # So? What about this header?
23280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23281 yes:no: )
23282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23283 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23285 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23286 ac_header_preproc=yes
23288 no:yes:* )
23289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23290 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23292 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23294 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23296 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23298 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23300 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23303 esac
23304 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23305 $as_echo_n "checking for $ac_header... " >&6; }
23306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23307 $as_echo_n "(cached) " >&6
23308 else
23309 eval "$as_ac_Header=\$ac_header_preproc"
23311 ac_res=`eval 'as_val=${'$as_ac_Header'}
23312 $as_echo "$as_val"'`
23313 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23314 $as_echo "$ac_res" >&6; }
23317 if test `eval 'as_val=${'$as_ac_Header'}
23318 $as_echo "$as_val"'` = yes; then
23319 cat >>confdefs.h <<_ACEOF
23320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23321 _ACEOF
23325 done
23329 # Solaris requires -lintl if you want strerror (which calls dgettext)
23330 # to return localized messages.
23332 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23333 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23334 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23335 $as_echo_n "(cached) " >&6
23336 else
23337 ac_check_lib_save_LIBS=$LIBS
23338 LIBS="-lintl $LIBS"
23339 cat >conftest.$ac_ext <<_ACEOF
23340 /* confdefs.h. */
23341 _ACEOF
23342 cat confdefs.h >>conftest.$ac_ext
23343 cat >>conftest.$ac_ext <<_ACEOF
23344 /* end confdefs.h. */
23346 /* Override any GCC internal prototype to avoid an error.
23347 Use char because int might match the return type of a GCC
23348 builtin and then its argument prototype would still apply. */
23349 #ifdef __cplusplus
23350 extern "C"
23351 #endif
23352 char dgettext ();
23354 main ()
23356 return dgettext ();
23358 return 0;
23360 _ACEOF
23361 rm -f conftest.$ac_objext conftest$ac_exeext
23362 if { (ac_try="$ac_link"
23363 case "(($ac_try" in
23364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23366 esac
23367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23368 $as_echo "$ac_try_echo") >&5
23369 (eval "$ac_link") 2>conftest.er1
23370 ac_status=$?
23371 grep -v '^ *+' conftest.er1 >conftest.err
23372 rm -f conftest.er1
23373 cat conftest.err >&5
23374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } && {
23376 test -z "$ac_c_werror_flag" ||
23377 test ! -s conftest.err
23378 } && test -s conftest$ac_exeext && {
23379 test "$cross_compiling" = yes ||
23380 $as_test_x conftest$ac_exeext
23381 }; then
23382 ac_cv_lib_intl_dgettext=yes
23383 else
23384 $as_echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23387 ac_cv_lib_intl_dgettext=no
23390 rm -rf conftest.dSYM
23391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23392 conftest$ac_exeext conftest.$ac_ext
23393 LIBS=$ac_check_lib_save_LIBS
23395 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23396 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23397 if test $ac_cv_lib_intl_dgettext = yes; then
23398 cat >>confdefs.h <<_ACEOF
23399 #define HAVE_LIBINTL 1
23400 _ACEOF
23402 LIBS="-lintl $LIBS"
23407 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23408 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23409 if test "${emacs_cv_localtime_cache+set}" = set; then
23410 $as_echo_n "(cached) " >&6
23411 else
23412 if test x$ac_cv_func_tzset = xyes; then
23413 if test "$cross_compiling" = yes; then
23414 # If we have tzset, assume the worst when cross-compiling.
23415 emacs_cv_localtime_cache=yes
23416 else
23417 cat >conftest.$ac_ext <<_ACEOF
23418 /* confdefs.h. */
23419 _ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h. */
23423 #include <time.h>
23424 extern char **environ;
23425 unset_TZ ()
23427 char **from, **to;
23428 for (to = from = environ; (*to = *from); from++)
23429 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23430 to++;
23432 char TZ_GMT0[] = "TZ=GMT0";
23433 char TZ_PST8[] = "TZ=PST8";
23434 main()
23436 time_t now = time ((time_t *) 0);
23437 int hour_GMT0, hour_unset;
23438 if (putenv (TZ_GMT0) != 0)
23439 exit (1);
23440 hour_GMT0 = localtime (&now)->tm_hour;
23441 unset_TZ ();
23442 hour_unset = localtime (&now)->tm_hour;
23443 if (putenv (TZ_PST8) != 0)
23444 exit (1);
23445 if (localtime (&now)->tm_hour == hour_GMT0)
23446 exit (1);
23447 unset_TZ ();
23448 if (localtime (&now)->tm_hour != hour_unset)
23449 exit (1);
23450 exit (0);
23452 _ACEOF
23453 rm -f conftest$ac_exeext
23454 if { (ac_try="$ac_link"
23455 case "(($ac_try" in
23456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457 *) ac_try_echo=$ac_try;;
23458 esac
23459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23460 $as_echo "$ac_try_echo") >&5
23461 (eval "$ac_link") 2>&5
23462 ac_status=$?
23463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23465 { (case "(($ac_try" in
23466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23467 *) ac_try_echo=$ac_try;;
23468 esac
23469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23470 $as_echo "$ac_try_echo") >&5
23471 (eval "$ac_try") 2>&5
23472 ac_status=$?
23473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); }; }; then
23475 emacs_cv_localtime_cache=no
23476 else
23477 $as_echo "$as_me: program exited with status $ac_status" >&5
23478 $as_echo "$as_me: failed program was:" >&5
23479 sed 's/^/| /' conftest.$ac_ext >&5
23481 ( exit $ac_status )
23482 emacs_cv_localtime_cache=yes
23484 rm -rf conftest.dSYM
23485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23489 else
23490 # If we lack tzset, report that localtime does not cache TZ,
23491 # since we can't invalidate the cache if we don't have tzset.
23492 emacs_cv_localtime_cache=no
23495 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23496 $as_echo "$emacs_cv_localtime_cache" >&6; }
23497 if test $emacs_cv_localtime_cache = yes; then
23499 cat >>confdefs.h <<\_ACEOF
23500 #define LOCALTIME_CACHE 1
23501 _ACEOF
23505 if test "x$HAVE_TIMEVAL" = xyes; then
23507 for ac_func in gettimeofday
23509 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23510 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23511 $as_echo_n "checking for $ac_func... " >&6; }
23512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23513 $as_echo_n "(cached) " >&6
23514 else
23515 cat >conftest.$ac_ext <<_ACEOF
23516 /* confdefs.h. */
23517 _ACEOF
23518 cat confdefs.h >>conftest.$ac_ext
23519 cat >>conftest.$ac_ext <<_ACEOF
23520 /* end confdefs.h. */
23521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23523 #define $ac_func innocuous_$ac_func
23525 /* System header to define __stub macros and hopefully few prototypes,
23526 which can conflict with char $ac_func (); below.
23527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23528 <limits.h> exists even on freestanding compilers. */
23530 #ifdef __STDC__
23531 # include <limits.h>
23532 #else
23533 # include <assert.h>
23534 #endif
23536 #undef $ac_func
23538 /* Override any GCC internal prototype to avoid an error.
23539 Use char because int might match the return type of a GCC
23540 builtin and then its argument prototype would still apply. */
23541 #ifdef __cplusplus
23542 extern "C"
23543 #endif
23544 char $ac_func ();
23545 /* The GNU C library defines this for functions which it implements
23546 to always fail with ENOSYS. Some functions are actually named
23547 something starting with __ and the normal name is an alias. */
23548 #if defined __stub_$ac_func || defined __stub___$ac_func
23549 choke me
23550 #endif
23553 main ()
23555 return $ac_func ();
23557 return 0;
23559 _ACEOF
23560 rm -f conftest.$ac_objext conftest$ac_exeext
23561 if { (ac_try="$ac_link"
23562 case "(($ac_try" in
23563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23564 *) ac_try_echo=$ac_try;;
23565 esac
23566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23567 $as_echo "$ac_try_echo") >&5
23568 (eval "$ac_link") 2>conftest.er1
23569 ac_status=$?
23570 grep -v '^ *+' conftest.er1 >conftest.err
23571 rm -f conftest.er1
23572 cat conftest.err >&5
23573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); } && {
23575 test -z "$ac_c_werror_flag" ||
23576 test ! -s conftest.err
23577 } && test -s conftest$ac_exeext && {
23578 test "$cross_compiling" = yes ||
23579 $as_test_x conftest$ac_exeext
23580 }; then
23581 eval "$as_ac_var=yes"
23582 else
23583 $as_echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.$ac_ext >&5
23586 eval "$as_ac_var=no"
23589 rm -rf conftest.dSYM
23590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23591 conftest$ac_exeext conftest.$ac_ext
23593 ac_res=`eval 'as_val=${'$as_ac_var'}
23594 $as_echo "$as_val"'`
23595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23596 $as_echo "$ac_res" >&6; }
23597 if test `eval 'as_val=${'$as_ac_var'}
23598 $as_echo "$as_val"'` = yes; then
23599 cat >>confdefs.h <<_ACEOF
23600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23601 _ACEOF
23604 done
23606 if test $ac_cv_func_gettimeofday = yes; then
23607 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23608 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23609 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23610 $as_echo_n "(cached) " >&6
23611 else
23612 cat >conftest.$ac_ext <<_ACEOF
23613 /* confdefs.h. */
23614 _ACEOF
23615 cat confdefs.h >>conftest.$ac_ext
23616 cat >>conftest.$ac_ext <<_ACEOF
23617 /* end confdefs.h. */
23619 #ifdef TIME_WITH_SYS_TIME
23620 #include <sys/time.h>
23621 #include <time.h>
23622 #else
23623 #ifdef HAVE_SYS_TIME_H
23624 #include <sys/time.h>
23625 #else
23626 #include <time.h>
23627 #endif
23628 #endif
23630 main ()
23632 struct timeval time;
23633 gettimeofday (&time, 0);
23635 return 0;
23637 _ACEOF
23638 rm -f conftest.$ac_objext
23639 if { (ac_try="$ac_compile"
23640 case "(($ac_try" in
23641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23642 *) ac_try_echo=$ac_try;;
23643 esac
23644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23645 $as_echo "$ac_try_echo") >&5
23646 (eval "$ac_compile") 2>conftest.er1
23647 ac_status=$?
23648 grep -v '^ *+' conftest.er1 >conftest.err
23649 rm -f conftest.er1
23650 cat conftest.err >&5
23651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); } && {
23653 test -z "$ac_c_werror_flag" ||
23654 test ! -s conftest.err
23655 } && test -s conftest.$ac_objext; then
23656 emacs_cv_gettimeofday_two_arguments=yes
23657 else
23658 $as_echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.$ac_ext >&5
23661 emacs_cv_gettimeofday_two_arguments=no
23664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23666 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23667 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23668 if test $emacs_cv_gettimeofday_two_arguments = no; then
23670 cat >>confdefs.h <<\_ACEOF
23671 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23672 _ACEOF
23678 ok_so_far=yes
23679 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23680 $as_echo_n "checking for socket... " >&6; }
23681 if test "${ac_cv_func_socket+set}" = set; then
23682 $as_echo_n "(cached) " >&6
23683 else
23684 cat >conftest.$ac_ext <<_ACEOF
23685 /* confdefs.h. */
23686 _ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h. */
23690 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23692 #define socket innocuous_socket
23694 /* System header to define __stub macros and hopefully few prototypes,
23695 which can conflict with char socket (); below.
23696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23697 <limits.h> exists even on freestanding compilers. */
23699 #ifdef __STDC__
23700 # include <limits.h>
23701 #else
23702 # include <assert.h>
23703 #endif
23705 #undef socket
23707 /* Override any GCC internal prototype to avoid an error.
23708 Use char because int might match the return type of a GCC
23709 builtin and then its argument prototype would still apply. */
23710 #ifdef __cplusplus
23711 extern "C"
23712 #endif
23713 char socket ();
23714 /* The GNU C library defines this for functions which it implements
23715 to always fail with ENOSYS. Some functions are actually named
23716 something starting with __ and the normal name is an alias. */
23717 #if defined __stub_socket || defined __stub___socket
23718 choke me
23719 #endif
23722 main ()
23724 return socket ();
23726 return 0;
23728 _ACEOF
23729 rm -f conftest.$ac_objext conftest$ac_exeext
23730 if { (ac_try="$ac_link"
23731 case "(($ac_try" in
23732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733 *) ac_try_echo=$ac_try;;
23734 esac
23735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23736 $as_echo "$ac_try_echo") >&5
23737 (eval "$ac_link") 2>conftest.er1
23738 ac_status=$?
23739 grep -v '^ *+' conftest.er1 >conftest.err
23740 rm -f conftest.er1
23741 cat conftest.err >&5
23742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); } && {
23744 test -z "$ac_c_werror_flag" ||
23745 test ! -s conftest.err
23746 } && test -s conftest$ac_exeext && {
23747 test "$cross_compiling" = yes ||
23748 $as_test_x conftest$ac_exeext
23749 }; then
23750 ac_cv_func_socket=yes
23751 else
23752 $as_echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23755 ac_cv_func_socket=no
23758 rm -rf conftest.dSYM
23759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23760 conftest$ac_exeext conftest.$ac_ext
23762 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23763 $as_echo "$ac_cv_func_socket" >&6; }
23764 if test $ac_cv_func_socket = yes; then
23766 else
23767 ok_so_far=no
23770 if test $ok_so_far = yes; then
23771 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23772 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23773 $as_echo_n "checking for netinet/in.h... " >&6; }
23774 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23775 $as_echo_n "(cached) " >&6
23777 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23778 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23779 else
23780 # Is the header compilable?
23781 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23782 $as_echo_n "checking netinet/in.h usability... " >&6; }
23783 cat >conftest.$ac_ext <<_ACEOF
23784 /* confdefs.h. */
23785 _ACEOF
23786 cat confdefs.h >>conftest.$ac_ext
23787 cat >>conftest.$ac_ext <<_ACEOF
23788 /* end confdefs.h. */
23789 $ac_includes_default
23790 #include <netinet/in.h>
23791 _ACEOF
23792 rm -f conftest.$ac_objext
23793 if { (ac_try="$ac_compile"
23794 case "(($ac_try" in
23795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23797 esac
23798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23799 $as_echo "$ac_try_echo") >&5
23800 (eval "$ac_compile") 2>conftest.er1
23801 ac_status=$?
23802 grep -v '^ *+' conftest.er1 >conftest.err
23803 rm -f conftest.er1
23804 cat conftest.err >&5
23805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); } && {
23807 test -z "$ac_c_werror_flag" ||
23808 test ! -s conftest.err
23809 } && test -s conftest.$ac_objext; then
23810 ac_header_compiler=yes
23811 else
23812 $as_echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23815 ac_header_compiler=no
23818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23819 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23820 $as_echo "$ac_header_compiler" >&6; }
23822 # Is the header present?
23823 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23824 $as_echo_n "checking netinet/in.h presence... " >&6; }
23825 cat >conftest.$ac_ext <<_ACEOF
23826 /* confdefs.h. */
23827 _ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h. */
23831 #include <netinet/in.h>
23832 _ACEOF
23833 if { (ac_try="$ac_cpp conftest.$ac_ext"
23834 case "(($ac_try" in
23835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23836 *) ac_try_echo=$ac_try;;
23837 esac
23838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23839 $as_echo "$ac_try_echo") >&5
23840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23841 ac_status=$?
23842 grep -v '^ *+' conftest.er1 >conftest.err
23843 rm -f conftest.er1
23844 cat conftest.err >&5
23845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); } >/dev/null && {
23847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23848 test ! -s conftest.err
23849 }; then
23850 ac_header_preproc=yes
23851 else
23852 $as_echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23855 ac_header_preproc=no
23858 rm -f conftest.err conftest.$ac_ext
23859 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23860 $as_echo "$ac_header_preproc" >&6; }
23862 # So? What about this header?
23863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23864 yes:no: )
23865 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23866 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23867 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23868 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23869 ac_header_preproc=yes
23871 no:yes:* )
23872 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23873 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23874 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23875 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23876 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23877 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23878 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23879 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23880 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23881 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23882 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23883 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23886 esac
23887 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23888 $as_echo_n "checking for netinet/in.h... " >&6; }
23889 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23890 $as_echo_n "(cached) " >&6
23891 else
23892 ac_cv_header_netinet_in_h=$ac_header_preproc
23894 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23895 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23898 if test $ac_cv_header_netinet_in_h = yes; then
23900 else
23901 ok_so_far=no
23906 if test $ok_so_far = yes; then
23907 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23908 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23909 $as_echo_n "checking for arpa/inet.h... " >&6; }
23910 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23911 $as_echo_n "(cached) " >&6
23913 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23914 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23915 else
23916 # Is the header compilable?
23917 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23918 $as_echo_n "checking arpa/inet.h usability... " >&6; }
23919 cat >conftest.$ac_ext <<_ACEOF
23920 /* confdefs.h. */
23921 _ACEOF
23922 cat confdefs.h >>conftest.$ac_ext
23923 cat >>conftest.$ac_ext <<_ACEOF
23924 /* end confdefs.h. */
23925 $ac_includes_default
23926 #include <arpa/inet.h>
23927 _ACEOF
23928 rm -f conftest.$ac_objext
23929 if { (ac_try="$ac_compile"
23930 case "(($ac_try" in
23931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23932 *) ac_try_echo=$ac_try;;
23933 esac
23934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23935 $as_echo "$ac_try_echo") >&5
23936 (eval "$ac_compile") 2>conftest.er1
23937 ac_status=$?
23938 grep -v '^ *+' conftest.er1 >conftest.err
23939 rm -f conftest.er1
23940 cat conftest.err >&5
23941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } && {
23943 test -z "$ac_c_werror_flag" ||
23944 test ! -s conftest.err
23945 } && test -s conftest.$ac_objext; then
23946 ac_header_compiler=yes
23947 else
23948 $as_echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.$ac_ext >&5
23951 ac_header_compiler=no
23954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23955 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23956 $as_echo "$ac_header_compiler" >&6; }
23958 # Is the header present?
23959 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23960 $as_echo_n "checking arpa/inet.h presence... " >&6; }
23961 cat >conftest.$ac_ext <<_ACEOF
23962 /* confdefs.h. */
23963 _ACEOF
23964 cat confdefs.h >>conftest.$ac_ext
23965 cat >>conftest.$ac_ext <<_ACEOF
23966 /* end confdefs.h. */
23967 #include <arpa/inet.h>
23968 _ACEOF
23969 if { (ac_try="$ac_cpp conftest.$ac_ext"
23970 case "(($ac_try" in
23971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23972 *) ac_try_echo=$ac_try;;
23973 esac
23974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23975 $as_echo "$ac_try_echo") >&5
23976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23977 ac_status=$?
23978 grep -v '^ *+' conftest.er1 >conftest.err
23979 rm -f conftest.er1
23980 cat conftest.err >&5
23981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); } >/dev/null && {
23983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23984 test ! -s conftest.err
23985 }; then
23986 ac_header_preproc=yes
23987 else
23988 $as_echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23991 ac_header_preproc=no
23994 rm -f conftest.err conftest.$ac_ext
23995 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23996 $as_echo "$ac_header_preproc" >&6; }
23998 # So? What about this header?
23999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24000 yes:no: )
24001 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24002 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24003 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24004 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24005 ac_header_preproc=yes
24007 no:yes:* )
24008 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24009 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24010 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24011 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24012 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24013 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24014 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24015 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24016 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24017 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24018 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24019 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24022 esac
24023 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24024 $as_echo_n "checking for arpa/inet.h... " >&6; }
24025 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24026 $as_echo_n "(cached) " >&6
24027 else
24028 ac_cv_header_arpa_inet_h=$ac_header_preproc
24030 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24031 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24034 if test $ac_cv_header_arpa_inet_h = yes; then
24036 else
24037 ok_so_far=no
24042 if test $ok_so_far = yes; then
24044 cat >>confdefs.h <<\_ACEOF
24045 #define HAVE_INET_SOCKETS 1
24046 _ACEOF
24051 for ac_header in sys/ioctl.h
24053 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24055 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24056 $as_echo_n "checking for $ac_header... " >&6; }
24057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24058 $as_echo_n "(cached) " >&6
24060 ac_res=`eval 'as_val=${'$as_ac_Header'}
24061 $as_echo "$as_val"'`
24062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24063 $as_echo "$ac_res" >&6; }
24064 else
24065 # Is the header compilable?
24066 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24067 $as_echo_n "checking $ac_header usability... " >&6; }
24068 cat >conftest.$ac_ext <<_ACEOF
24069 /* confdefs.h. */
24070 _ACEOF
24071 cat confdefs.h >>conftest.$ac_ext
24072 cat >>conftest.$ac_ext <<_ACEOF
24073 /* end confdefs.h. */
24074 $ac_includes_default
24075 #include <$ac_header>
24076 _ACEOF
24077 rm -f conftest.$ac_objext
24078 if { (ac_try="$ac_compile"
24079 case "(($ac_try" in
24080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24081 *) ac_try_echo=$ac_try;;
24082 esac
24083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24084 $as_echo "$ac_try_echo") >&5
24085 (eval "$ac_compile") 2>conftest.er1
24086 ac_status=$?
24087 grep -v '^ *+' conftest.er1 >conftest.err
24088 rm -f conftest.er1
24089 cat conftest.err >&5
24090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); } && {
24092 test -z "$ac_c_werror_flag" ||
24093 test ! -s conftest.err
24094 } && test -s conftest.$ac_objext; then
24095 ac_header_compiler=yes
24096 else
24097 $as_echo "$as_me: failed program was:" >&5
24098 sed 's/^/| /' conftest.$ac_ext >&5
24100 ac_header_compiler=no
24103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24104 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24105 $as_echo "$ac_header_compiler" >&6; }
24107 # Is the header present?
24108 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24109 $as_echo_n "checking $ac_header presence... " >&6; }
24110 cat >conftest.$ac_ext <<_ACEOF
24111 /* confdefs.h. */
24112 _ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h. */
24116 #include <$ac_header>
24117 _ACEOF
24118 if { (ac_try="$ac_cpp conftest.$ac_ext"
24119 case "(($ac_try" in
24120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24121 *) ac_try_echo=$ac_try;;
24122 esac
24123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24124 $as_echo "$ac_try_echo") >&5
24125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24126 ac_status=$?
24127 grep -v '^ *+' conftest.er1 >conftest.err
24128 rm -f conftest.er1
24129 cat conftest.err >&5
24130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); } >/dev/null && {
24132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24133 test ! -s conftest.err
24134 }; then
24135 ac_header_preproc=yes
24136 else
24137 $as_echo "$as_me: failed program was:" >&5
24138 sed 's/^/| /' conftest.$ac_ext >&5
24140 ac_header_preproc=no
24143 rm -f conftest.err conftest.$ac_ext
24144 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24145 $as_echo "$ac_header_preproc" >&6; }
24147 # So? What about this header?
24148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24149 yes:no: )
24150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24151 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24154 ac_header_preproc=yes
24156 no:yes:* )
24157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24158 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24160 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24162 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24164 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24166 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24168 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24171 esac
24172 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24173 $as_echo_n "checking for $ac_header... " >&6; }
24174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24175 $as_echo_n "(cached) " >&6
24176 else
24177 eval "$as_ac_Header=\$ac_header_preproc"
24179 ac_res=`eval 'as_val=${'$as_ac_Header'}
24180 $as_echo "$as_val"'`
24181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24182 $as_echo "$ac_res" >&6; }
24185 if test `eval 'as_val=${'$as_ac_Header'}
24186 $as_echo "$as_val"'` = yes; then
24187 cat >>confdefs.h <<_ACEOF
24188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24189 _ACEOF
24193 done
24196 if test -f /usr/lpp/X11/bin/smt.exp; then
24198 cat >>confdefs.h <<\_ACEOF
24199 #define HAVE_AIX_SMT_EXP 1
24200 _ACEOF
24204 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24205 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24206 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24207 { $as_echo "$as_me:$LINENO: result: yes" >&5
24208 $as_echo "yes" >&6; }
24210 cat >>confdefs.h <<\_ACEOF
24211 #define HAVE_DEV_PTMX 1
24212 _ACEOF
24214 else
24215 { $as_echo "$as_me:$LINENO: result: no" >&5
24216 $as_echo "no" >&6; }
24219 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24220 $as_echo_n "checking for pid_t... " >&6; }
24221 if test "${ac_cv_type_pid_t+set}" = set; then
24222 $as_echo_n "(cached) " >&6
24223 else
24224 ac_cv_type_pid_t=no
24225 cat >conftest.$ac_ext <<_ACEOF
24226 /* confdefs.h. */
24227 _ACEOF
24228 cat confdefs.h >>conftest.$ac_ext
24229 cat >>conftest.$ac_ext <<_ACEOF
24230 /* end confdefs.h. */
24231 $ac_includes_default
24233 main ()
24235 if (sizeof (pid_t))
24236 return 0;
24238 return 0;
24240 _ACEOF
24241 rm -f conftest.$ac_objext
24242 if { (ac_try="$ac_compile"
24243 case "(($ac_try" in
24244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245 *) ac_try_echo=$ac_try;;
24246 esac
24247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24248 $as_echo "$ac_try_echo") >&5
24249 (eval "$ac_compile") 2>conftest.er1
24250 ac_status=$?
24251 grep -v '^ *+' conftest.er1 >conftest.err
24252 rm -f conftest.er1
24253 cat conftest.err >&5
24254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } && {
24256 test -z "$ac_c_werror_flag" ||
24257 test ! -s conftest.err
24258 } && test -s conftest.$ac_objext; then
24259 cat >conftest.$ac_ext <<_ACEOF
24260 /* confdefs.h. */
24261 _ACEOF
24262 cat confdefs.h >>conftest.$ac_ext
24263 cat >>conftest.$ac_ext <<_ACEOF
24264 /* end confdefs.h. */
24265 $ac_includes_default
24267 main ()
24269 if (sizeof ((pid_t)))
24270 return 0;
24272 return 0;
24274 _ACEOF
24275 rm -f conftest.$ac_objext
24276 if { (ac_try="$ac_compile"
24277 case "(($ac_try" in
24278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24279 *) ac_try_echo=$ac_try;;
24280 esac
24281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24282 $as_echo "$ac_try_echo") >&5
24283 (eval "$ac_compile") 2>conftest.er1
24284 ac_status=$?
24285 grep -v '^ *+' conftest.er1 >conftest.err
24286 rm -f conftest.er1
24287 cat conftest.err >&5
24288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } && {
24290 test -z "$ac_c_werror_flag" ||
24291 test ! -s conftest.err
24292 } && test -s conftest.$ac_objext; then
24294 else
24295 $as_echo "$as_me: failed program was:" >&5
24296 sed 's/^/| /' conftest.$ac_ext >&5
24298 ac_cv_type_pid_t=yes
24301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24302 else
24303 $as_echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24311 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24312 $as_echo "$ac_cv_type_pid_t" >&6; }
24313 if test $ac_cv_type_pid_t = yes; then
24315 else
24317 cat >>confdefs.h <<_ACEOF
24318 #define pid_t int
24319 _ACEOF
24324 for ac_header in vfork.h
24326 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24328 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24329 $as_echo_n "checking for $ac_header... " >&6; }
24330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24331 $as_echo_n "(cached) " >&6
24333 ac_res=`eval 'as_val=${'$as_ac_Header'}
24334 $as_echo "$as_val"'`
24335 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24336 $as_echo "$ac_res" >&6; }
24337 else
24338 # Is the header compilable?
24339 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24340 $as_echo_n "checking $ac_header usability... " >&6; }
24341 cat >conftest.$ac_ext <<_ACEOF
24342 /* confdefs.h. */
24343 _ACEOF
24344 cat confdefs.h >>conftest.$ac_ext
24345 cat >>conftest.$ac_ext <<_ACEOF
24346 /* end confdefs.h. */
24347 $ac_includes_default
24348 #include <$ac_header>
24349 _ACEOF
24350 rm -f conftest.$ac_objext
24351 if { (ac_try="$ac_compile"
24352 case "(($ac_try" in
24353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24354 *) ac_try_echo=$ac_try;;
24355 esac
24356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24357 $as_echo "$ac_try_echo") >&5
24358 (eval "$ac_compile") 2>conftest.er1
24359 ac_status=$?
24360 grep -v '^ *+' conftest.er1 >conftest.err
24361 rm -f conftest.er1
24362 cat conftest.err >&5
24363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); } && {
24365 test -z "$ac_c_werror_flag" ||
24366 test ! -s conftest.err
24367 } && test -s conftest.$ac_objext; then
24368 ac_header_compiler=yes
24369 else
24370 $as_echo "$as_me: failed program was:" >&5
24371 sed 's/^/| /' conftest.$ac_ext >&5
24373 ac_header_compiler=no
24376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24377 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24378 $as_echo "$ac_header_compiler" >&6; }
24380 # Is the header present?
24381 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24382 $as_echo_n "checking $ac_header presence... " >&6; }
24383 cat >conftest.$ac_ext <<_ACEOF
24384 /* confdefs.h. */
24385 _ACEOF
24386 cat confdefs.h >>conftest.$ac_ext
24387 cat >>conftest.$ac_ext <<_ACEOF
24388 /* end confdefs.h. */
24389 #include <$ac_header>
24390 _ACEOF
24391 if { (ac_try="$ac_cpp conftest.$ac_ext"
24392 case "(($ac_try" in
24393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24394 *) ac_try_echo=$ac_try;;
24395 esac
24396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24397 $as_echo "$ac_try_echo") >&5
24398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24399 ac_status=$?
24400 grep -v '^ *+' conftest.er1 >conftest.err
24401 rm -f conftest.er1
24402 cat conftest.err >&5
24403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); } >/dev/null && {
24405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24406 test ! -s conftest.err
24407 }; then
24408 ac_header_preproc=yes
24409 else
24410 $as_echo "$as_me: failed program was:" >&5
24411 sed 's/^/| /' conftest.$ac_ext >&5
24413 ac_header_preproc=no
24416 rm -f conftest.err conftest.$ac_ext
24417 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24418 $as_echo "$ac_header_preproc" >&6; }
24420 # So? What about this header?
24421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24422 yes:no: )
24423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24424 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24426 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24427 ac_header_preproc=yes
24429 no:yes:* )
24430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24431 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24433 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24435 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24437 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24439 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24441 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24444 esac
24445 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24446 $as_echo_n "checking for $ac_header... " >&6; }
24447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24448 $as_echo_n "(cached) " >&6
24449 else
24450 eval "$as_ac_Header=\$ac_header_preproc"
24452 ac_res=`eval 'as_val=${'$as_ac_Header'}
24453 $as_echo "$as_val"'`
24454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24455 $as_echo "$ac_res" >&6; }
24458 if test `eval 'as_val=${'$as_ac_Header'}
24459 $as_echo "$as_val"'` = yes; then
24460 cat >>confdefs.h <<_ACEOF
24461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24462 _ACEOF
24466 done
24470 for ac_func in fork vfork
24472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24473 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24474 $as_echo_n "checking for $ac_func... " >&6; }
24475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24476 $as_echo_n "(cached) " >&6
24477 else
24478 cat >conftest.$ac_ext <<_ACEOF
24479 /* confdefs.h. */
24480 _ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h. */
24484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24486 #define $ac_func innocuous_$ac_func
24488 /* System header to define __stub macros and hopefully few prototypes,
24489 which can conflict with char $ac_func (); below.
24490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24491 <limits.h> exists even on freestanding compilers. */
24493 #ifdef __STDC__
24494 # include <limits.h>
24495 #else
24496 # include <assert.h>
24497 #endif
24499 #undef $ac_func
24501 /* Override any GCC internal prototype to avoid an error.
24502 Use char because int might match the return type of a GCC
24503 builtin and then its argument prototype would still apply. */
24504 #ifdef __cplusplus
24505 extern "C"
24506 #endif
24507 char $ac_func ();
24508 /* The GNU C library defines this for functions which it implements
24509 to always fail with ENOSYS. Some functions are actually named
24510 something starting with __ and the normal name is an alias. */
24511 #if defined __stub_$ac_func || defined __stub___$ac_func
24512 choke me
24513 #endif
24516 main ()
24518 return $ac_func ();
24520 return 0;
24522 _ACEOF
24523 rm -f conftest.$ac_objext conftest$ac_exeext
24524 if { (ac_try="$ac_link"
24525 case "(($ac_try" in
24526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24527 *) ac_try_echo=$ac_try;;
24528 esac
24529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24530 $as_echo "$ac_try_echo") >&5
24531 (eval "$ac_link") 2>conftest.er1
24532 ac_status=$?
24533 grep -v '^ *+' conftest.er1 >conftest.err
24534 rm -f conftest.er1
24535 cat conftest.err >&5
24536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); } && {
24538 test -z "$ac_c_werror_flag" ||
24539 test ! -s conftest.err
24540 } && test -s conftest$ac_exeext && {
24541 test "$cross_compiling" = yes ||
24542 $as_test_x conftest$ac_exeext
24543 }; then
24544 eval "$as_ac_var=yes"
24545 else
24546 $as_echo "$as_me: failed program was:" >&5
24547 sed 's/^/| /' conftest.$ac_ext >&5
24549 eval "$as_ac_var=no"
24552 rm -rf conftest.dSYM
24553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24554 conftest$ac_exeext conftest.$ac_ext
24556 ac_res=`eval 'as_val=${'$as_ac_var'}
24557 $as_echo "$as_val"'`
24558 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24559 $as_echo "$ac_res" >&6; }
24560 if test `eval 'as_val=${'$as_ac_var'}
24561 $as_echo "$as_val"'` = yes; then
24562 cat >>confdefs.h <<_ACEOF
24563 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24564 _ACEOF
24567 done
24569 if test "x$ac_cv_func_fork" = xyes; then
24570 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24571 $as_echo_n "checking for working fork... " >&6; }
24572 if test "${ac_cv_func_fork_works+set}" = set; then
24573 $as_echo_n "(cached) " >&6
24574 else
24575 if test "$cross_compiling" = yes; then
24576 ac_cv_func_fork_works=cross
24577 else
24578 cat >conftest.$ac_ext <<_ACEOF
24579 /* confdefs.h. */
24580 _ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h. */
24584 $ac_includes_default
24586 main ()
24589 /* By Ruediger Kuhlmann. */
24590 return fork () < 0;
24593 return 0;
24595 _ACEOF
24596 rm -f conftest$ac_exeext
24597 if { (ac_try="$ac_link"
24598 case "(($ac_try" in
24599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24600 *) ac_try_echo=$ac_try;;
24601 esac
24602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24603 $as_echo "$ac_try_echo") >&5
24604 (eval "$ac_link") 2>&5
24605 ac_status=$?
24606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24608 { (case "(($ac_try" in
24609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610 *) ac_try_echo=$ac_try;;
24611 esac
24612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24613 $as_echo "$ac_try_echo") >&5
24614 (eval "$ac_try") 2>&5
24615 ac_status=$?
24616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); }; }; then
24618 ac_cv_func_fork_works=yes
24619 else
24620 $as_echo "$as_me: program exited with status $ac_status" >&5
24621 $as_echo "$as_me: failed program was:" >&5
24622 sed 's/^/| /' conftest.$ac_ext >&5
24624 ( exit $ac_status )
24625 ac_cv_func_fork_works=no
24627 rm -rf conftest.dSYM
24628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24633 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24634 $as_echo "$ac_cv_func_fork_works" >&6; }
24636 else
24637 ac_cv_func_fork_works=$ac_cv_func_fork
24639 if test "x$ac_cv_func_fork_works" = xcross; then
24640 case $host in
24641 *-*-amigaos* | *-*-msdosdjgpp*)
24642 # Override, as these systems have only a dummy fork() stub
24643 ac_cv_func_fork_works=no
24646 ac_cv_func_fork_works=yes
24648 esac
24649 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24650 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24652 ac_cv_func_vfork_works=$ac_cv_func_vfork
24653 if test "x$ac_cv_func_vfork" = xyes; then
24654 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24655 $as_echo_n "checking for working vfork... " >&6; }
24656 if test "${ac_cv_func_vfork_works+set}" = set; then
24657 $as_echo_n "(cached) " >&6
24658 else
24659 if test "$cross_compiling" = yes; then
24660 ac_cv_func_vfork_works=cross
24661 else
24662 cat >conftest.$ac_ext <<_ACEOF
24663 /* confdefs.h. */
24664 _ACEOF
24665 cat confdefs.h >>conftest.$ac_ext
24666 cat >>conftest.$ac_ext <<_ACEOF
24667 /* end confdefs.h. */
24668 /* Thanks to Paul Eggert for this test. */
24669 $ac_includes_default
24670 #include <sys/wait.h>
24671 #ifdef HAVE_VFORK_H
24672 # include <vfork.h>
24673 #endif
24674 /* On some sparc systems, changes by the child to local and incoming
24675 argument registers are propagated back to the parent. The compiler
24676 is told about this with #include <vfork.h>, but some compilers
24677 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24678 static variable whose address is put into a register that is
24679 clobbered by the vfork. */
24680 static void
24681 #ifdef __cplusplus
24682 sparc_address_test (int arg)
24683 # else
24684 sparc_address_test (arg) int arg;
24685 #endif
24687 static pid_t child;
24688 if (!child) {
24689 child = vfork ();
24690 if (child < 0) {
24691 perror ("vfork");
24692 _exit(2);
24694 if (!child) {
24695 arg = getpid();
24696 write(-1, "", 0);
24697 _exit (arg);
24703 main ()
24705 pid_t parent = getpid ();
24706 pid_t child;
24708 sparc_address_test (0);
24710 child = vfork ();
24712 if (child == 0) {
24713 /* Here is another test for sparc vfork register problems. This
24714 test uses lots of local variables, at least as many local
24715 variables as main has allocated so far including compiler
24716 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24717 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24718 reuse the register of parent for one of the local variables,
24719 since it will think that parent can't possibly be used any more
24720 in this routine. Assigning to the local variable will thus
24721 munge parent in the parent process. */
24722 pid_t
24723 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24724 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24725 /* Convince the compiler that p..p7 are live; otherwise, it might
24726 use the same hardware register for all 8 local variables. */
24727 if (p != p1 || p != p2 || p != p3 || p != p4
24728 || p != p5 || p != p6 || p != p7)
24729 _exit(1);
24731 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24732 from child file descriptors. If the child closes a descriptor
24733 before it execs or exits, this munges the parent's descriptor
24734 as well. Test for this by closing stdout in the child. */
24735 _exit(close(fileno(stdout)) != 0);
24736 } else {
24737 int status;
24738 struct stat st;
24740 while (wait(&status) != child)
24742 return (
24743 /* Was there some problem with vforking? */
24744 child < 0
24746 /* Did the child fail? (This shouldn't happen.) */
24747 || status
24749 /* Did the vfork/compiler bug occur? */
24750 || parent != getpid()
24752 /* Did the file descriptor bug occur? */
24753 || fstat(fileno(stdout), &st) != 0
24757 _ACEOF
24758 rm -f conftest$ac_exeext
24759 if { (ac_try="$ac_link"
24760 case "(($ac_try" in
24761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762 *) ac_try_echo=$ac_try;;
24763 esac
24764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24765 $as_echo "$ac_try_echo") >&5
24766 (eval "$ac_link") 2>&5
24767 ac_status=$?
24768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24770 { (case "(($ac_try" in
24771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24772 *) ac_try_echo=$ac_try;;
24773 esac
24774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24775 $as_echo "$ac_try_echo") >&5
24776 (eval "$ac_try") 2>&5
24777 ac_status=$?
24778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); }; }; then
24780 ac_cv_func_vfork_works=yes
24781 else
24782 $as_echo "$as_me: program exited with status $ac_status" >&5
24783 $as_echo "$as_me: failed program was:" >&5
24784 sed 's/^/| /' conftest.$ac_ext >&5
24786 ( exit $ac_status )
24787 ac_cv_func_vfork_works=no
24789 rm -rf conftest.dSYM
24790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24795 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24796 $as_echo "$ac_cv_func_vfork_works" >&6; }
24799 if test "x$ac_cv_func_fork_works" = xcross; then
24800 ac_cv_func_vfork_works=$ac_cv_func_vfork
24801 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24802 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24805 if test "x$ac_cv_func_vfork_works" = xyes; then
24807 cat >>confdefs.h <<\_ACEOF
24808 #define HAVE_WORKING_VFORK 1
24809 _ACEOF
24811 else
24813 cat >>confdefs.h <<\_ACEOF
24814 #define vfork fork
24815 _ACEOF
24818 if test "x$ac_cv_func_fork_works" = xyes; then
24820 cat >>confdefs.h <<\_ACEOF
24821 #define HAVE_WORKING_FORK 1
24822 _ACEOF
24827 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24828 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24829 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24830 $as_echo_n "(cached) " >&6
24831 else
24832 cat >conftest.$ac_ext <<_ACEOF
24833 /* confdefs.h. */
24834 _ACEOF
24835 cat confdefs.h >>conftest.$ac_ext
24836 cat >>conftest.$ac_ext <<_ACEOF
24837 /* end confdefs.h. */
24838 #include <langinfo.h>
24840 main ()
24842 char* cs = nl_langinfo(CODESET);
24844 return 0;
24846 _ACEOF
24847 rm -f conftest.$ac_objext conftest$ac_exeext
24848 if { (ac_try="$ac_link"
24849 case "(($ac_try" in
24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851 *) ac_try_echo=$ac_try;;
24852 esac
24853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24854 $as_echo "$ac_try_echo") >&5
24855 (eval "$ac_link") 2>conftest.er1
24856 ac_status=$?
24857 grep -v '^ *+' conftest.er1 >conftest.err
24858 rm -f conftest.er1
24859 cat conftest.err >&5
24860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } && {
24862 test -z "$ac_c_werror_flag" ||
24863 test ! -s conftest.err
24864 } && test -s conftest$ac_exeext && {
24865 test "$cross_compiling" = yes ||
24866 $as_test_x conftest$ac_exeext
24867 }; then
24868 emacs_cv_langinfo_codeset=yes
24869 else
24870 $as_echo "$as_me: failed program was:" >&5
24871 sed 's/^/| /' conftest.$ac_ext >&5
24873 emacs_cv_langinfo_codeset=no
24876 rm -rf conftest.dSYM
24877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24878 conftest$ac_exeext conftest.$ac_ext
24881 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24882 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24883 if test $emacs_cv_langinfo_codeset = yes; then
24885 cat >>confdefs.h <<\_ACEOF
24886 #define HAVE_LANGINFO_CODESET 1
24887 _ACEOF
24891 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24892 $as_echo_n "checking for size_t... " >&6; }
24893 if test "${ac_cv_type_size_t+set}" = set; then
24894 $as_echo_n "(cached) " >&6
24895 else
24896 ac_cv_type_size_t=no
24897 cat >conftest.$ac_ext <<_ACEOF
24898 /* confdefs.h. */
24899 _ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h. */
24903 $ac_includes_default
24905 main ()
24907 if (sizeof (size_t))
24908 return 0;
24910 return 0;
24912 _ACEOF
24913 rm -f conftest.$ac_objext
24914 if { (ac_try="$ac_compile"
24915 case "(($ac_try" in
24916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24917 *) ac_try_echo=$ac_try;;
24918 esac
24919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24920 $as_echo "$ac_try_echo") >&5
24921 (eval "$ac_compile") 2>conftest.er1
24922 ac_status=$?
24923 grep -v '^ *+' conftest.er1 >conftest.err
24924 rm -f conftest.er1
24925 cat conftest.err >&5
24926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); } && {
24928 test -z "$ac_c_werror_flag" ||
24929 test ! -s conftest.err
24930 } && test -s conftest.$ac_objext; then
24931 cat >conftest.$ac_ext <<_ACEOF
24932 /* confdefs.h. */
24933 _ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h. */
24937 $ac_includes_default
24939 main ()
24941 if (sizeof ((size_t)))
24942 return 0;
24944 return 0;
24946 _ACEOF
24947 rm -f conftest.$ac_objext
24948 if { (ac_try="$ac_compile"
24949 case "(($ac_try" in
24950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24951 *) ac_try_echo=$ac_try;;
24952 esac
24953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24954 $as_echo "$ac_try_echo") >&5
24955 (eval "$ac_compile") 2>conftest.er1
24956 ac_status=$?
24957 grep -v '^ *+' conftest.er1 >conftest.err
24958 rm -f conftest.er1
24959 cat conftest.err >&5
24960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } && {
24962 test -z "$ac_c_werror_flag" ||
24963 test ! -s conftest.err
24964 } && test -s conftest.$ac_objext; then
24966 else
24967 $as_echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24970 ac_cv_type_size_t=yes
24973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24974 else
24975 $as_echo "$as_me: failed program was:" >&5
24976 sed 's/^/| /' conftest.$ac_ext >&5
24981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24983 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24984 $as_echo "$ac_cv_type_size_t" >&6; }
24985 if test $ac_cv_type_size_t = yes; then
24987 cat >>confdefs.h <<_ACEOF
24988 #define HAVE_SIZE_T 1
24989 _ACEOF
24995 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
24996 $as_echo_n "checking for mbstate_t... " >&6; }
24997 if test "${ac_cv_type_mbstate_t+set}" = set; then
24998 $as_echo_n "(cached) " >&6
24999 else
25000 cat >conftest.$ac_ext <<_ACEOF
25001 /* confdefs.h. */
25002 _ACEOF
25003 cat confdefs.h >>conftest.$ac_ext
25004 cat >>conftest.$ac_ext <<_ACEOF
25005 /* end confdefs.h. */
25006 $ac_includes_default
25007 # include <wchar.h>
25009 main ()
25011 mbstate_t x; return sizeof x;
25013 return 0;
25015 _ACEOF
25016 rm -f conftest.$ac_objext
25017 if { (ac_try="$ac_compile"
25018 case "(($ac_try" in
25019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25020 *) ac_try_echo=$ac_try;;
25021 esac
25022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25023 $as_echo "$ac_try_echo") >&5
25024 (eval "$ac_compile") 2>conftest.er1
25025 ac_status=$?
25026 grep -v '^ *+' conftest.er1 >conftest.err
25027 rm -f conftest.er1
25028 cat conftest.err >&5
25029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); } && {
25031 test -z "$ac_c_werror_flag" ||
25032 test ! -s conftest.err
25033 } && test -s conftest.$ac_objext; then
25034 ac_cv_type_mbstate_t=yes
25035 else
25036 $as_echo "$as_me: failed program was:" >&5
25037 sed 's/^/| /' conftest.$ac_ext >&5
25039 ac_cv_type_mbstate_t=no
25042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25044 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25045 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25046 if test $ac_cv_type_mbstate_t = yes; then
25048 cat >>confdefs.h <<\_ACEOF
25049 #define HAVE_MBSTATE_T 1
25050 _ACEOF
25052 else
25054 cat >>confdefs.h <<\_ACEOF
25055 #define mbstate_t int
25056 _ACEOF
25060 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25061 $as_echo_n "checking for C restrict keyword... " >&6; }
25062 if test "${emacs_cv_c_restrict+set}" = set; then
25063 $as_echo_n "(cached) " >&6
25064 else
25065 cat >conftest.$ac_ext <<_ACEOF
25066 /* confdefs.h. */
25067 _ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h. */
25071 void fred (int *restrict x);
25073 main ()
25077 return 0;
25079 _ACEOF
25080 rm -f conftest.$ac_objext
25081 if { (ac_try="$ac_compile"
25082 case "(($ac_try" in
25083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25084 *) ac_try_echo=$ac_try;;
25085 esac
25086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25087 $as_echo "$ac_try_echo") >&5
25088 (eval "$ac_compile") 2>conftest.er1
25089 ac_status=$?
25090 grep -v '^ *+' conftest.er1 >conftest.err
25091 rm -f conftest.er1
25092 cat conftest.err >&5
25093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); } && {
25095 test -z "$ac_c_werror_flag" ||
25096 test ! -s conftest.err
25097 } && test -s conftest.$ac_objext; then
25098 emacs_cv_c_restrict=yes
25099 else
25100 $as_echo "$as_me: failed program was:" >&5
25101 sed 's/^/| /' conftest.$ac_ext >&5
25103 cat >conftest.$ac_ext <<_ACEOF
25104 /* confdefs.h. */
25105 _ACEOF
25106 cat confdefs.h >>conftest.$ac_ext
25107 cat >>conftest.$ac_ext <<_ACEOF
25108 /* end confdefs.h. */
25109 void fred (int *__restrict x);
25111 main ()
25115 return 0;
25117 _ACEOF
25118 rm -f conftest.$ac_objext
25119 if { (ac_try="$ac_compile"
25120 case "(($ac_try" in
25121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122 *) ac_try_echo=$ac_try;;
25123 esac
25124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25125 $as_echo "$ac_try_echo") >&5
25126 (eval "$ac_compile") 2>conftest.er1
25127 ac_status=$?
25128 grep -v '^ *+' conftest.er1 >conftest.err
25129 rm -f conftest.er1
25130 cat conftest.err >&5
25131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } && {
25133 test -z "$ac_c_werror_flag" ||
25134 test ! -s conftest.err
25135 } && test -s conftest.$ac_objext; then
25136 emacs_cv_c_restrict=__restrict
25137 else
25138 $as_echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25141 emacs_cv_c_restrict=no
25144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25149 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25150 $as_echo "$emacs_cv_c_restrict" >&6; }
25151 case "$emacs_cv_c_restrict" in
25152 yes) emacs_restrict=restrict;;
25153 no) emacs_restrict="";;
25154 *) emacs_restrict="$emacs_cv_c_restrict";;
25155 esac
25156 if test "$emacs_restrict" != __restrict; then
25158 cat >>confdefs.h <<_ACEOF
25159 #define __restrict $emacs_restrict
25160 _ACEOF
25164 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25165 $as_echo_n "checking for C restricted array declarations... " >&6; }
25166 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25167 $as_echo_n "(cached) " >&6
25168 else
25169 cat >conftest.$ac_ext <<_ACEOF
25170 /* confdefs.h. */
25171 _ACEOF
25172 cat confdefs.h >>conftest.$ac_ext
25173 cat >>conftest.$ac_ext <<_ACEOF
25174 /* end confdefs.h. */
25175 void fred (int x[__restrict]);
25177 main ()
25181 return 0;
25183 _ACEOF
25184 rm -f conftest.$ac_objext
25185 if { (ac_try="$ac_compile"
25186 case "(($ac_try" in
25187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188 *) ac_try_echo=$ac_try;;
25189 esac
25190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25191 $as_echo "$ac_try_echo") >&5
25192 (eval "$ac_compile") 2>conftest.er1
25193 ac_status=$?
25194 grep -v '^ *+' conftest.er1 >conftest.err
25195 rm -f conftest.er1
25196 cat conftest.err >&5
25197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); } && {
25199 test -z "$ac_c_werror_flag" ||
25200 test ! -s conftest.err
25201 } && test -s conftest.$ac_objext; then
25202 emacs_cv_c_restrict_arr=yes
25203 else
25204 $as_echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25207 emacs_cv_c_restrict_arr=no
25210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25212 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25213 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25214 if test "$emacs_cv_c_restrict_arr" = yes; then
25216 cat >>confdefs.h <<\_ACEOF
25217 #define __restrict_arr __restrict
25218 _ACEOF
25224 # Set up the CFLAGS for real compilation, so we can substitute it.
25225 CFLAGS="$REAL_CFLAGS"
25226 CPPFLAGS="$REAL_CPPFLAGS"
25228 #### Find out which version of Emacs this is.
25229 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25230 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25231 if test x"${version}" = x; then
25232 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25233 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25234 { (exit 1); exit 1; }; }
25236 if test x"${version}" != x"$PACKAGE_VERSION"; then
25237 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25238 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25241 ### Specify what sort of things we'll be editing into Makefile and config.h.
25242 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25286 cat >>confdefs.h <<_ACEOF
25287 #define EMACS_CONFIGURATION "${canonical}"
25288 _ACEOF
25291 cat >>confdefs.h <<_ACEOF
25292 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25293 _ACEOF
25296 cat >>confdefs.h <<_ACEOF
25297 #define config_machfile "${machfile}"
25298 _ACEOF
25301 cat >>confdefs.h <<_ACEOF
25302 #define config_opsysfile "${opsysfile}"
25303 _ACEOF
25306 cat >>confdefs.h <<_ACEOF
25307 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25308 _ACEOF
25311 cat >>confdefs.h <<_ACEOF
25312 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25313 _ACEOF
25316 cat >>confdefs.h <<_ACEOF
25317 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25318 _ACEOF
25321 cat >>confdefs.h <<_ACEOF
25322 #define UNEXEC_SRC ${UNEXEC_SRC}
25323 _ACEOF
25326 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25328 cat >>confdefs.h <<\_ACEOF
25329 #define HAVE_X_WINDOWS 1
25330 _ACEOF
25333 if test "${USE_X_TOOLKIT}" != "none" ; then
25335 cat >>confdefs.h <<\_ACEOF
25336 #define USE_X_TOOLKIT 1
25337 _ACEOF
25339 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25341 cat >>confdefs.h <<\_ACEOF
25342 #define USE_LUCID 1
25343 _ACEOF
25345 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25347 cat >>confdefs.h <<\_ACEOF
25348 #define USE_MOTIF 1
25349 _ACEOF
25353 if test "${HAVE_X11}" = "yes" ; then
25355 cat >>confdefs.h <<\_ACEOF
25356 #define HAVE_X11 1
25357 _ACEOF
25360 if test "${HAVE_MENUS}" = "yes" ; then
25362 cat >>confdefs.h <<\_ACEOF
25363 #define HAVE_MENUS 1
25364 _ACEOF
25367 if test "${GNU_MALLOC}" = "yes" ; then
25369 cat >>confdefs.h <<\_ACEOF
25370 #define GNU_MALLOC 1
25371 _ACEOF
25374 if test "${REL_ALLOC}" = "yes" ; then
25376 cat >>confdefs.h <<\_ACEOF
25377 #define REL_ALLOC 1
25378 _ACEOF
25387 #### Report on what we decided to do.
25388 #### Report GTK as a toolkit, even if it doesn't use Xt.
25389 #### It makes printing result more understandable as using GTK sets
25390 #### toolkit_scroll_bars to yes by default.
25391 if test "${HAVE_GTK}" = "yes"; then
25392 USE_X_TOOLKIT=GTK
25395 echo "
25396 Configured for \`${canonical}'.
25398 Where should the build process find the source code? ${srcdir}
25399 What operating system and machine description files should Emacs use?
25400 \`${opsysfile}' and \`${machfile}'
25401 What compiler should emacs be built with? ${CC} ${CFLAGS}
25402 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25403 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25404 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25405 What window system should Emacs use? ${window_system}
25406 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25408 if test -n "${x_includes}"; then
25409 echo " Where do we find X Windows header files? ${x_includes}"
25410 else
25411 echo " Where do we find X Windows header files? Standard dirs"
25413 if test -n "${x_libraries}"; then
25414 echo " Where do we find X Windows libraries? ${x_libraries}"
25415 else
25416 echo " Where do we find X Windows libraries? Standard dirs"
25419 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25420 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25421 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25422 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25423 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25424 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25425 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25426 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25427 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25429 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25430 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25431 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25432 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25434 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25435 echo
25437 if test $USE_XASSERTS = yes; then
25438 echo " Compiling with asserts turned on."
25439 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25442 echo
25444 if test "$USE_X_TOOLKIT" = GTK; then
25445 case "$canonical" in
25446 *cygwin*)
25447 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25448 will probably get a crash on startup. If this happens, please use another
25449 toolkit for Emacs. See etc/PROBLEMS for more information."
25451 esac
25454 if test "$HAVE_NS" = "yes"; then
25455 echo
25456 echo "You must run \"make install\" in order to test the built application.
25457 The installed application will go to nextstep/Emacs.app and can be
25458 run or moved from there."
25459 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25460 echo "The application will be fully self-contained."
25461 else
25462 echo "The lisp resources for the application will be installed under ${prefix}.
25463 You may need to run \"make install\" with sudo. The application will fail
25464 to run if these resources are not installed."
25466 echo
25469 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25470 echo "D-Bus integration has been tested for GNU/Linux only."
25471 echo
25475 # Remove any trailing slashes in these variables.
25476 test "${prefix}" != NONE &&
25477 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25478 test "${exec_prefix}" != NONE &&
25479 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25481 # Now get this: Some word that is part of the ${srcdir} directory name
25482 # or the ${configuration} value might, just might, happen to be an
25483 # identifier like `sun4' or `i386' or something, and be predefined by
25484 # the C preprocessor to some helpful value like 1, or maybe the empty
25485 # string. Needless to say consequent macro substitutions are less
25486 # than conducive to the makefile finding the correct directory.
25487 cpp_undefs="`echo $srcdir $configuration $canonical |
25488 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25489 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25491 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25492 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25493 ## from Makefile.c can correctly provide the arg `-traditional' to the
25494 ## C preprocessor.
25496 cat >conftest.$ac_ext <<_ACEOF
25497 /* confdefs.h. */
25498 _ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h. */
25502 yes..yes
25503 _ACEOF
25504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25505 $EGREP "yes..yes" >/dev/null 2>&1; then
25506 CPP_NEED_TRADITIONAL=no
25507 else
25508 CPP_NEED_TRADITIONAL=yes
25510 rm -f conftest*
25513 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"
25515 ac_config_commands="$ac_config_commands default"
25517 cat >confcache <<\_ACEOF
25518 # This file is a shell script that caches the results of configure
25519 # tests run on this system so they can be shared between configure
25520 # scripts and configure runs, see configure's option --config-cache.
25521 # It is not useful on other systems. If it contains results you don't
25522 # want to keep, you may remove or edit it.
25524 # config.status only pays attention to the cache file if you give it
25525 # the --recheck option to rerun configure.
25527 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25528 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25529 # following values.
25531 _ACEOF
25533 # The following way of writing the cache mishandles newlines in values,
25534 # but we know of no workaround that is simple, portable, and efficient.
25535 # So, we kill variables containing newlines.
25536 # Ultrix sh set writes to stderr and can't be redirected directly,
25537 # and sets the high bit in the cache file unless we assign to the vars.
25539 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25540 eval ac_val=\$$ac_var
25541 case $ac_val in #(
25542 *${as_nl}*)
25543 case $ac_var in #(
25544 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25545 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25546 esac
25547 case $ac_var in #(
25548 _ | IFS | as_nl) ;; #(
25549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25550 *) $as_unset $ac_var ;;
25551 esac ;;
25552 esac
25553 done
25555 (set) 2>&1 |
25556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25557 *${as_nl}ac_space=\ *)
25558 # `set' does not quote correctly, so add quotes (double-quote
25559 # substitution turns \\\\ into \\, and sed turns \\ into \).
25560 sed -n \
25561 "s/'/'\\\\''/g;
25562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25563 ;; #(
25565 # `set' quotes correctly as required by POSIX, so do not add quotes.
25566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25568 esac |
25569 sort
25571 sed '
25572 /^ac_cv_env_/b end
25573 t clear
25574 :clear
25575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25576 t end
25577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25578 :end' >>confcache
25579 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25580 if test -w "$cache_file"; then
25581 test "x$cache_file" != "x/dev/null" &&
25582 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25583 $as_echo "$as_me: updating cache $cache_file" >&6;}
25584 cat confcache >$cache_file
25585 else
25586 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25587 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25590 rm -f confcache
25592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25593 # Let make expand exec_prefix.
25594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25596 DEFS=-DHAVE_CONFIG_H
25598 ac_libobjs=
25599 ac_ltlibobjs=
25600 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25601 # 1. Remove the extension, and $U if already installed.
25602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25603 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25605 # will be set to the directory where LIBOBJS objects are built.
25606 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25607 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25608 done
25609 LIBOBJS=$ac_libobjs
25611 LTLIBOBJS=$ac_ltlibobjs
25615 : ${CONFIG_STATUS=./config.status}
25616 ac_write_fail=0
25617 ac_clean_files_save=$ac_clean_files
25618 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25619 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25620 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25621 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25622 #! $SHELL
25623 # Generated by $as_me.
25624 # Run this file to recreate the current configuration.
25625 # Compiler output produced by configure, useful for debugging
25626 # configure, is in config.log if it exists.
25628 debug=false
25629 ac_cs_recheck=false
25630 ac_cs_silent=false
25631 SHELL=\${CONFIG_SHELL-$SHELL}
25632 _ACEOF
25634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25635 ## --------------------- ##
25636 ## M4sh Initialization. ##
25637 ## --------------------- ##
25639 # Be more Bourne compatible
25640 DUALCASE=1; export DUALCASE # for MKS sh
25641 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25642 emulate sh
25643 NULLCMD=:
25644 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25645 # is contrary to our usage. Disable this feature.
25646 alias -g '${1+"$@"}'='"$@"'
25647 setopt NO_GLOB_SUBST
25648 else
25649 case `(set -o) 2>/dev/null` in
25650 *posix*) set -o posix ;;
25651 esac
25658 # PATH needs CR
25659 # Avoid depending upon Character Ranges.
25660 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25661 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25662 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25663 as_cr_digits='0123456789'
25664 as_cr_alnum=$as_cr_Letters$as_cr_digits
25666 as_nl='
25668 export as_nl
25669 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25670 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25671 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25672 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25673 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25674 as_echo='printf %s\n'
25675 as_echo_n='printf %s'
25676 else
25677 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25678 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25679 as_echo_n='/usr/ucb/echo -n'
25680 else
25681 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25682 as_echo_n_body='eval
25683 arg=$1;
25684 case $arg in
25685 *"$as_nl"*)
25686 expr "X$arg" : "X\\(.*\\)$as_nl";
25687 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25688 esac;
25689 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25691 export as_echo_n_body
25692 as_echo_n='sh -c $as_echo_n_body as_echo'
25694 export as_echo_body
25695 as_echo='sh -c $as_echo_body as_echo'
25698 # The user is always right.
25699 if test "${PATH_SEPARATOR+set}" != set; then
25700 PATH_SEPARATOR=:
25701 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25702 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25703 PATH_SEPARATOR=';'
25707 # Support unset when possible.
25708 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25709 as_unset=unset
25710 else
25711 as_unset=false
25715 # IFS
25716 # We need space, tab and new line, in precisely that order. Quoting is
25717 # there to prevent editors from complaining about space-tab.
25718 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25719 # splitting by setting IFS to empty value.)
25720 IFS=" "" $as_nl"
25722 # Find who we are. Look in the path if we contain no directory separator.
25723 case $0 in
25724 *[\\/]* ) as_myself=$0 ;;
25725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25726 for as_dir in $PATH
25728 IFS=$as_save_IFS
25729 test -z "$as_dir" && as_dir=.
25730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25731 done
25732 IFS=$as_save_IFS
25735 esac
25736 # We did not find ourselves, most probably we were run as `sh COMMAND'
25737 # in which case we are not to be found in the path.
25738 if test "x$as_myself" = x; then
25739 as_myself=$0
25741 if test ! -f "$as_myself"; then
25742 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25743 { (exit 1); exit 1; }
25746 # Work around bugs in pre-3.0 UWIN ksh.
25747 for as_var in ENV MAIL MAILPATH
25748 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25749 done
25750 PS1='$ '
25751 PS2='> '
25752 PS4='+ '
25754 # NLS nuisances.
25755 LC_ALL=C
25756 export LC_ALL
25757 LANGUAGE=C
25758 export LANGUAGE
25760 # Required to use basename.
25761 if expr a : '\(a\)' >/dev/null 2>&1 &&
25762 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25763 as_expr=expr
25764 else
25765 as_expr=false
25768 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25769 as_basename=basename
25770 else
25771 as_basename=false
25775 # Name of the executable.
25776 as_me=`$as_basename -- "$0" ||
25777 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25778 X"$0" : 'X\(//\)$' \| \
25779 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25780 $as_echo X/"$0" |
25781 sed '/^.*\/\([^/][^/]*\)\/*$/{
25782 s//\1/
25785 /^X\/\(\/\/\)$/{
25786 s//\1/
25789 /^X\/\(\/\).*/{
25790 s//\1/
25793 s/.*/./; q'`
25795 # CDPATH.
25796 $as_unset CDPATH
25800 as_lineno_1=$LINENO
25801 as_lineno_2=$LINENO
25802 test "x$as_lineno_1" != "x$as_lineno_2" &&
25803 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25805 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25806 # uniformly replaced by the line number. The first 'sed' inserts a
25807 # line-number line after each line using $LINENO; the second 'sed'
25808 # does the real work. The second script uses 'N' to pair each
25809 # line-number line with the line containing $LINENO, and appends
25810 # trailing '-' during substitution so that $LINENO is not a special
25811 # case at line end.
25812 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25813 # scripts with optimization help from Paolo Bonzini. Blame Lee
25814 # E. McMahon (1931-1989) for sed's syntax. :-)
25815 sed -n '
25817 /[$]LINENO/=
25818 ' <$as_myself |
25819 sed '
25820 s/[$]LINENO.*/&-/
25821 t lineno
25823 :lineno
25825 :loop
25826 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25827 t loop
25828 s/-\n.*//
25829 ' >$as_me.lineno &&
25830 chmod +x "$as_me.lineno" ||
25831 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25832 { (exit 1); exit 1; }; }
25834 # Don't try to exec as it changes $[0], causing all sort of problems
25835 # (the dirname of $[0] is not the place where we might find the
25836 # original and so on. Autoconf is especially sensitive to this).
25837 . "./$as_me.lineno"
25838 # Exit status is that of the last command.
25839 exit
25843 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25844 as_dirname=dirname
25845 else
25846 as_dirname=false
25849 ECHO_C= ECHO_N= ECHO_T=
25850 case `echo -n x` in
25851 -n*)
25852 case `echo 'x\c'` in
25853 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25854 *) ECHO_C='\c';;
25855 esac;;
25857 ECHO_N='-n';;
25858 esac
25859 if expr a : '\(a\)' >/dev/null 2>&1 &&
25860 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25861 as_expr=expr
25862 else
25863 as_expr=false
25866 rm -f conf$$ conf$$.exe conf$$.file
25867 if test -d conf$$.dir; then
25868 rm -f conf$$.dir/conf$$.file
25869 else
25870 rm -f conf$$.dir
25871 mkdir conf$$.dir 2>/dev/null
25873 if (echo >conf$$.file) 2>/dev/null; then
25874 if ln -s conf$$.file conf$$ 2>/dev/null; then
25875 as_ln_s='ln -s'
25876 # ... but there are two gotchas:
25877 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25878 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25879 # In both cases, we have to default to `cp -p'.
25880 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25881 as_ln_s='cp -p'
25882 elif ln conf$$.file conf$$ 2>/dev/null; then
25883 as_ln_s=ln
25884 else
25885 as_ln_s='cp -p'
25887 else
25888 as_ln_s='cp -p'
25890 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25891 rmdir conf$$.dir 2>/dev/null
25893 if mkdir -p . 2>/dev/null; then
25894 as_mkdir_p=:
25895 else
25896 test -d ./-p && rmdir ./-p
25897 as_mkdir_p=false
25900 if test -x / >/dev/null 2>&1; then
25901 as_test_x='test -x'
25902 else
25903 if ls -dL / >/dev/null 2>&1; then
25904 as_ls_L_option=L
25905 else
25906 as_ls_L_option=
25908 as_test_x='
25909 eval sh -c '\''
25910 if test -d "$1"; then
25911 test -d "$1/.";
25912 else
25913 case $1 in
25914 -*)set "./$1";;
25915 esac;
25916 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25917 ???[sx]*):;;*)false;;esac;fi
25918 '\'' sh
25921 as_executable_p=$as_test_x
25923 # Sed expression to map a string onto a valid CPP name.
25924 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25926 # Sed expression to map a string onto a valid variable name.
25927 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25930 exec 6>&1
25932 # Save the log message, to keep $[0] and so on meaningful, and to
25933 # report actual input values of CONFIG_FILES etc. instead of their
25934 # values after options handling.
25935 ac_log="
25936 This file was extended by emacs $as_me 23.1.50, which was
25937 generated by GNU Autoconf 2.62. Invocation command line was
25939 CONFIG_FILES = $CONFIG_FILES
25940 CONFIG_HEADERS = $CONFIG_HEADERS
25941 CONFIG_LINKS = $CONFIG_LINKS
25942 CONFIG_COMMANDS = $CONFIG_COMMANDS
25943 $ $0 $@
25945 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25948 _ACEOF
25950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25951 # Files that config.status was made for.
25952 config_files="$ac_config_files"
25953 config_headers="$ac_config_headers"
25954 config_commands="$ac_config_commands"
25956 _ACEOF
25958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25959 ac_cs_usage="\
25960 \`$as_me' instantiates files from templates according to the
25961 current configuration.
25963 Usage: $0 [OPTIONS] [FILE]...
25965 -h, --help print this help, then exit
25966 -V, --version print version number and configuration settings, then exit
25967 -q, --quiet do not print progress messages
25968 -d, --debug don't remove temporary files
25969 --recheck update $as_me by reconfiguring in the same conditions
25970 --file=FILE[:TEMPLATE]
25971 instantiate the configuration file FILE
25972 --header=FILE[:TEMPLATE]
25973 instantiate the configuration header FILE
25975 Configuration files:
25976 $config_files
25978 Configuration headers:
25979 $config_headers
25981 Configuration commands:
25982 $config_commands
25984 Report bugs to <bug-autoconf@gnu.org>."
25986 _ACEOF
25987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25988 ac_cs_version="\\
25989 emacs config.status 23.1.50
25990 configured by $0, generated by GNU Autoconf 2.62,
25991 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25993 Copyright (C) 2008 Free Software Foundation, Inc.
25994 This config.status script is free software; the Free Software Foundation
25995 gives unlimited permission to copy, distribute and modify it."
25997 ac_pwd='$ac_pwd'
25998 srcdir='$srcdir'
25999 INSTALL='$INSTALL'
26000 test -n "\$AWK" || AWK=awk
26001 _ACEOF
26003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26004 # The default lists apply if the user does not specify any file.
26005 ac_need_defaults=:
26006 while test $# != 0
26008 case $1 in
26009 --*=*)
26010 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26011 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26012 ac_shift=:
26015 ac_option=$1
26016 ac_optarg=$2
26017 ac_shift=shift
26019 esac
26021 case $ac_option in
26022 # Handling of the options.
26023 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26024 ac_cs_recheck=: ;;
26025 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26026 $as_echo "$ac_cs_version"; exit ;;
26027 --debug | --debu | --deb | --de | --d | -d )
26028 debug=: ;;
26029 --file | --fil | --fi | --f )
26030 $ac_shift
26031 case $ac_optarg in
26032 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26033 esac
26034 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26035 ac_need_defaults=false;;
26036 --header | --heade | --head | --hea )
26037 $ac_shift
26038 case $ac_optarg in
26039 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26040 esac
26041 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26042 ac_need_defaults=false;;
26043 --he | --h)
26044 # Conflict between --help and --header
26045 { $as_echo "$as_me: error: ambiguous option: $1
26046 Try \`$0 --help' for more information." >&2
26047 { (exit 1); exit 1; }; };;
26048 --help | --hel | -h )
26049 $as_echo "$ac_cs_usage"; exit ;;
26050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26051 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26052 ac_cs_silent=: ;;
26054 # This is an error.
26055 -*) { $as_echo "$as_me: error: unrecognized option: $1
26056 Try \`$0 --help' for more information." >&2
26057 { (exit 1); exit 1; }; } ;;
26059 *) ac_config_targets="$ac_config_targets $1"
26060 ac_need_defaults=false ;;
26062 esac
26063 shift
26064 done
26066 ac_configure_extra_args=
26068 if $ac_cs_silent; then
26069 exec 6>/dev/null
26070 ac_configure_extra_args="$ac_configure_extra_args --silent"
26073 _ACEOF
26074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26075 if \$ac_cs_recheck; then
26076 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26077 shift
26078 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26079 CONFIG_SHELL='$SHELL'
26080 export CONFIG_SHELL
26081 exec "\$@"
26084 _ACEOF
26085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26086 exec 5>>config.log
26088 echo
26089 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26090 ## Running $as_me. ##
26091 _ASBOX
26092 $as_echo "$ac_log"
26093 } >&5
26095 _ACEOF
26096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26098 # INIT-COMMANDS
26100 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26102 _ACEOF
26104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26106 # Handling of arguments.
26107 for ac_config_target in $ac_config_targets
26109 case $ac_config_target in
26110 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26111 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26112 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26113 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26114 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26115 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26116 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26117 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26118 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26119 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26120 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26121 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26122 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26124 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26125 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26126 { (exit 1); exit 1; }; };;
26127 esac
26128 done
26131 # If the user did not use the arguments to specify the items to instantiate,
26132 # then the envvar interface is used. Set only those that are not.
26133 # We use the long form for the default assignment because of an extremely
26134 # bizarre bug on SunOS 4.1.3.
26135 if $ac_need_defaults; then
26136 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26137 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26138 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26141 # Have a temporary directory for convenience. Make it in the build tree
26142 # simply because there is no reason against having it here, and in addition,
26143 # creating and moving files from /tmp can sometimes cause problems.
26144 # Hook for its removal unless debugging.
26145 # Note that there is a small window in which the directory will not be cleaned:
26146 # after its creation but before its name has been assigned to `$tmp'.
26147 $debug ||
26149 tmp=
26150 trap 'exit_status=$?
26151 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26153 trap '{ (exit 1); exit 1; }' 1 2 13 15
26155 # Create a (secure) tmp directory for tmp files.
26158 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26159 test -n "$tmp" && test -d "$tmp"
26160 } ||
26162 tmp=./conf$$-$RANDOM
26163 (umask 077 && mkdir "$tmp")
26164 } ||
26166 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26167 { (exit 1); exit 1; }
26170 # Set up the scripts for CONFIG_FILES section.
26171 # No need to generate them if there are no CONFIG_FILES.
26172 # This happens for instance with `./config.status config.h'.
26173 if test -n "$CONFIG_FILES"; then
26176 ac_cr=' '
26177 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26178 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26179 ac_cs_awk_cr='\\r'
26180 else
26181 ac_cs_awk_cr=$ac_cr
26184 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26185 _ACEOF
26189 echo "cat >conf$$subs.awk <<_ACEOF" &&
26190 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26191 echo "_ACEOF"
26192 } >conf$$subs.sh ||
26193 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26194 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26195 { (exit 1); exit 1; }; }
26196 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26197 ac_delim='%!_!# '
26198 for ac_last_try in false false false false false :; do
26199 . ./conf$$subs.sh ||
26200 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26201 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26202 { (exit 1); exit 1; }; }
26204 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26205 break
26206 elif $ac_last_try; then
26207 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26208 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26209 { (exit 1); exit 1; }; }
26210 else
26211 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26213 done
26214 rm -f conf$$subs.sh
26216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26217 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26218 _ACEOF
26219 sed -n '
26221 s/^/S["/; s/!.*/"]=/
26224 s/^[^!]*!//
26225 :repl
26226 t repl
26227 s/'"$ac_delim"'$//
26228 t delim
26231 s/\(.\{148\}\).*/\1/
26232 t more1
26233 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26236 b repl
26237 :more1
26238 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26241 s/.\{148\}//
26242 t nl
26243 :delim
26245 s/\(.\{148\}\).*/\1/
26246 t more2
26247 s/["\\]/\\&/g; s/^/"/; s/$/"/
26250 :more2
26251 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26254 s/.\{148\}//
26255 t delim
26256 ' <conf$$subs.awk | sed '
26257 /^[^""]/{
26259 s/\n//
26261 ' >>$CONFIG_STATUS || ac_write_fail=1
26262 rm -f conf$$subs.awk
26263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26264 _ACAWK
26265 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26266 for (key in S) S_is_set[key] = 1
26267 FS = "\a"
26271 line = $ 0
26272 nfields = split(line, field, "@")
26273 substed = 0
26274 len = length(field[1])
26275 for (i = 2; i < nfields; i++) {
26276 key = field[i]
26277 keylen = length(key)
26278 if (S_is_set[key]) {
26279 value = S[key]
26280 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26281 len += length(value) + length(field[++i])
26282 substed = 1
26283 } else
26284 len += 1 + keylen
26287 print line
26290 _ACAWK
26291 _ACEOF
26292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26293 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26294 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26295 else
26297 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26298 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26299 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26300 { (exit 1); exit 1; }; }
26301 _ACEOF
26303 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26304 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26305 # trailing colons and then remove the whole line if VPATH becomes empty
26306 # (actually we leave an empty line to preserve line numbers).
26307 if test "x$srcdir" = x.; then
26308 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26309 s/:*\$(srcdir):*/:/
26310 s/:*\${srcdir}:*/:/
26311 s/:*@srcdir@:*/:/
26312 s/^\([^=]*=[ ]*\):*/\1/
26313 s/:*$//
26314 s/^[^=]*=[ ]*$//
26318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26319 fi # test -n "$CONFIG_FILES"
26321 # Set up the scripts for CONFIG_HEADERS section.
26322 # No need to generate them if there are no CONFIG_HEADERS.
26323 # This happens for instance with `./config.status Makefile'.
26324 if test -n "$CONFIG_HEADERS"; then
26325 cat >"$tmp/defines.awk" <<\_ACAWK ||
26326 BEGIN {
26327 _ACEOF
26329 # Transform confdefs.h into an awk script `defines.awk', embedded as
26330 # here-document in config.status, that substitutes the proper values into
26331 # config.h.in to produce config.h.
26333 # Create a delimiter string that does not exist in confdefs.h, to ease
26334 # handling of long lines.
26335 ac_delim='%!_!# '
26336 for ac_last_try in false false :; do
26337 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26338 if test -z "$ac_t"; then
26339 break
26340 elif $ac_last_try; then
26341 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26342 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26343 { (exit 1); exit 1; }; }
26344 else
26345 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26347 done
26349 # For the awk script, D is an array of macro values keyed by name,
26350 # likewise P contains macro parameters if any. Preserve backslash
26351 # newline sequences.
26353 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26354 sed -n '
26355 s/.\{148\}/&'"$ac_delim"'/g
26356 t rset
26357 :rset
26358 s/^[ ]*#[ ]*define[ ][ ]*/ /
26359 t def
26361 :def
26362 s/\\$//
26363 t bsnl
26364 s/["\\]/\\&/g
26365 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26366 D["\1"]=" \3"/p
26367 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26369 :bsnl
26370 s/["\\]/\\&/g
26371 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26372 D["\1"]=" \3\\\\\\n"\\/p
26373 t cont
26374 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26375 t cont
26377 :cont
26379 s/.\{148\}/&'"$ac_delim"'/g
26380 t clear
26381 :clear
26382 s/\\$//
26383 t bsnlc
26384 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26386 :bsnlc
26387 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26388 b cont
26389 ' <confdefs.h | sed '
26390 s/'"$ac_delim"'/"\\\
26391 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26394 for (key in D) D_is_set[key] = 1
26395 FS = "\a"
26397 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26398 line = \$ 0
26399 split(line, arg, " ")
26400 if (arg[1] == "#") {
26401 defundef = arg[2]
26402 mac1 = arg[3]
26403 } else {
26404 defundef = substr(arg[1], 2)
26405 mac1 = arg[2]
26407 split(mac1, mac2, "(") #)
26408 macro = mac2[1]
26409 if (D_is_set[macro]) {
26410 # Preserve the white space surrounding the "#".
26411 prefix = substr(line, 1, index(line, defundef) - 1)
26412 print prefix "define", macro P[macro] D[macro]
26413 next
26414 } else {
26415 # Replace #undef with comments. This is necessary, for example,
26416 # in the case of _POSIX_SOURCE, which is predefined and required
26417 # on some systems where configure will not decide to define it.
26418 if (defundef == "undef") {
26419 print "/*", line, "*/"
26420 next
26424 { print }
26425 _ACAWK
26426 _ACEOF
26427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26428 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26429 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26430 { (exit 1); exit 1; }; }
26431 fi # test -n "$CONFIG_HEADERS"
26434 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26435 shift
26436 for ac_tag
26438 case $ac_tag in
26439 :[FHLC]) ac_mode=$ac_tag; continue;;
26440 esac
26441 case $ac_mode$ac_tag in
26442 :[FHL]*:*);;
26443 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26444 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26445 { (exit 1); exit 1; }; };;
26446 :[FH]-) ac_tag=-:-;;
26447 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26448 esac
26449 ac_save_IFS=$IFS
26450 IFS=:
26451 set x $ac_tag
26452 IFS=$ac_save_IFS
26453 shift
26454 ac_file=$1
26455 shift
26457 case $ac_mode in
26458 :L) ac_source=$1;;
26459 :[FH])
26460 ac_file_inputs=
26461 for ac_f
26463 case $ac_f in
26464 -) ac_f="$tmp/stdin";;
26465 *) # Look for the file first in the build tree, then in the source tree
26466 # (if the path is not absolute). The absolute path cannot be DOS-style,
26467 # because $ac_f cannot contain `:'.
26468 test -f "$ac_f" ||
26469 case $ac_f in
26470 [\\/$]*) false;;
26471 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26472 esac ||
26473 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26474 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26475 { (exit 1); exit 1; }; };;
26476 esac
26477 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26478 ac_file_inputs="$ac_file_inputs '$ac_f'"
26479 done
26481 # Let's still pretend it is `configure' which instantiates (i.e., don't
26482 # use $as_me), people would be surprised to read:
26483 # /* config.h. Generated by config.status. */
26484 configure_input='Generated from '`
26485 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26486 `' by configure.'
26487 if test x"$ac_file" != x-; then
26488 configure_input="$ac_file. $configure_input"
26489 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26490 $as_echo "$as_me: creating $ac_file" >&6;}
26492 # Neutralize special characters interpreted by sed in replacement strings.
26493 case $configure_input in #(
26494 *\&* | *\|* | *\\* )
26495 ac_sed_conf_input=`$as_echo "$configure_input" |
26496 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26497 *) ac_sed_conf_input=$configure_input;;
26498 esac
26500 case $ac_tag in
26501 *:-:* | *:-) cat >"$tmp/stdin" \
26502 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26503 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26504 { (exit 1); exit 1; }; } ;;
26505 esac
26507 esac
26509 ac_dir=`$as_dirname -- "$ac_file" ||
26510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26511 X"$ac_file" : 'X\(//\)[^/]' \| \
26512 X"$ac_file" : 'X\(//\)$' \| \
26513 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26514 $as_echo X"$ac_file" |
26515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26516 s//\1/
26519 /^X\(\/\/\)[^/].*/{
26520 s//\1/
26523 /^X\(\/\/\)$/{
26524 s//\1/
26527 /^X\(\/\).*/{
26528 s//\1/
26531 s/.*/./; q'`
26532 { as_dir="$ac_dir"
26533 case $as_dir in #(
26534 -*) as_dir=./$as_dir;;
26535 esac
26536 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26537 as_dirs=
26538 while :; do
26539 case $as_dir in #(
26540 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26541 *) as_qdir=$as_dir;;
26542 esac
26543 as_dirs="'$as_qdir' $as_dirs"
26544 as_dir=`$as_dirname -- "$as_dir" ||
26545 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26546 X"$as_dir" : 'X\(//\)[^/]' \| \
26547 X"$as_dir" : 'X\(//\)$' \| \
26548 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26549 $as_echo X"$as_dir" |
26550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26551 s//\1/
26554 /^X\(\/\/\)[^/].*/{
26555 s//\1/
26558 /^X\(\/\/\)$/{
26559 s//\1/
26562 /^X\(\/\).*/{
26563 s//\1/
26566 s/.*/./; q'`
26567 test -d "$as_dir" && break
26568 done
26569 test -z "$as_dirs" || eval "mkdir $as_dirs"
26570 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26571 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26572 { (exit 1); exit 1; }; }; }
26573 ac_builddir=.
26575 case "$ac_dir" in
26576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26579 # A ".." for each directory in $ac_dir_suffix.
26580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26581 case $ac_top_builddir_sub in
26582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26584 esac ;;
26585 esac
26586 ac_abs_top_builddir=$ac_pwd
26587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26588 # for backward compatibility:
26589 ac_top_builddir=$ac_top_build_prefix
26591 case $srcdir in
26592 .) # We are building in place.
26593 ac_srcdir=.
26594 ac_top_srcdir=$ac_top_builddir_sub
26595 ac_abs_top_srcdir=$ac_pwd ;;
26596 [\\/]* | ?:[\\/]* ) # Absolute name.
26597 ac_srcdir=$srcdir$ac_dir_suffix;
26598 ac_top_srcdir=$srcdir
26599 ac_abs_top_srcdir=$srcdir ;;
26600 *) # Relative name.
26601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26602 ac_top_srcdir=$ac_top_build_prefix$srcdir
26603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26604 esac
26605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26608 case $ac_mode in
26611 # CONFIG_FILE
26614 case $INSTALL in
26615 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26616 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26617 esac
26618 _ACEOF
26620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26621 # If the template does not know about datarootdir, expand it.
26622 # FIXME: This hack should be removed a few years after 2.60.
26623 ac_datarootdir_hack=; ac_datarootdir_seen=
26625 ac_sed_dataroot='
26626 /datarootdir/ {
26630 /@datadir@/p
26631 /@docdir@/p
26632 /@infodir@/p
26633 /@localedir@/p
26634 /@mandir@/p
26636 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26637 *datarootdir*) ac_datarootdir_seen=yes;;
26638 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26639 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26640 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26641 _ACEOF
26642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26643 ac_datarootdir_hack='
26644 s&@datadir@&$datadir&g
26645 s&@docdir@&$docdir&g
26646 s&@infodir@&$infodir&g
26647 s&@localedir@&$localedir&g
26648 s&@mandir@&$mandir&g
26649 s&\\\${datarootdir}&$datarootdir&g' ;;
26650 esac
26651 _ACEOF
26653 # Neutralize VPATH when `$srcdir' = `.'.
26654 # Shell code in configure.ac might set extrasub.
26655 # FIXME: do we really want to maintain this feature?
26656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26657 ac_sed_extra="$ac_vpsub
26658 $extrasub
26659 _ACEOF
26660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26662 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26663 s|@configure_input@|$ac_sed_conf_input|;t t
26664 s&@top_builddir@&$ac_top_builddir_sub&;t t
26665 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26666 s&@srcdir@&$ac_srcdir&;t t
26667 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26668 s&@top_srcdir@&$ac_top_srcdir&;t t
26669 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26670 s&@builddir@&$ac_builddir&;t t
26671 s&@abs_builddir@&$ac_abs_builddir&;t t
26672 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26673 s&@INSTALL@&$ac_INSTALL&;t t
26674 $ac_datarootdir_hack
26676 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26677 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26678 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26679 { (exit 1); exit 1; }; }
26681 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26682 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26683 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26684 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26685 which seems to be undefined. Please make sure it is defined." >&5
26686 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26687 which seems to be undefined. Please make sure it is defined." >&2;}
26689 rm -f "$tmp/stdin"
26690 case $ac_file in
26691 -) cat "$tmp/out" && rm -f "$tmp/out";;
26692 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26693 esac \
26694 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26695 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26696 { (exit 1); exit 1; }; }
26700 # CONFIG_HEADER
26702 if test x"$ac_file" != x-; then
26704 $as_echo "/* $configure_input */" \
26705 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26706 } >"$tmp/config.h" \
26707 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26708 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26709 { (exit 1); exit 1; }; }
26710 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26711 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26712 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26713 else
26714 rm -f "$ac_file"
26715 mv "$tmp/config.h" "$ac_file" \
26716 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26717 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26718 { (exit 1); exit 1; }; }
26720 else
26721 $as_echo "/* $configure_input */" \
26722 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26723 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26724 $as_echo "$as_me: error: could not create -" >&2;}
26725 { (exit 1); exit 1; }; }
26729 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26730 $as_echo "$as_me: executing $ac_file commands" >&6;}
26732 esac
26735 case $ac_file$ac_mode in
26736 "default":C)
26738 ### Make the necessary directories, if they don't exist.
26739 for dir in etc lisp ; do
26740 test -d ${dir} || mkdir ${dir}
26741 done
26743 # Build src/Makefile from ${srcdir}/src/Makefile.c
26744 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26745 # This must be done after src/config.h is built, since we rely on that file.
26747 echo creating src/epaths.h
26748 ${MAKE-make} epaths-force
26750 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26751 # `..' to `. .' unless invoked with -traditional
26753 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
26754 CPPFLAGS="$CPPFLAGS -traditional"
26757 echo creating lib-src/Makefile
26758 ( cd lib-src
26759 rm -f junk.c junk1.c junk2.c
26760 sed -e '/start of cpp stuff/q' \
26761 < Makefile.c > junk1.c
26762 sed -e '1,/start of cpp stuff/d'\
26763 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26764 < Makefile.c > junk.c
26765 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26766 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26767 cat junk1.c junk2.c > Makefile.new
26768 rm -f junk.c junk1.c junk2.c
26769 chmod 444 Makefile.new
26770 mv -f Makefile.new Makefile
26773 echo creating src/Makefile
26774 ( cd src
26775 rm -f junk.c junk1.c junk2.c
26776 sed -e '/start of cpp stuff/q' \
26777 < Makefile.c > junk1.c
26778 sed -e '1,/start of cpp stuff/d'\
26779 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26780 < Makefile.c > junk.c
26781 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26782 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26783 cat junk1.c junk2.c > Makefile.new
26784 rm -f junk.c junk1.c junk2.c
26785 chmod 444 Makefile.new
26786 mv -f Makefile.new Makefile
26789 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
26790 echo creating src/.gdbinit
26791 echo source $srcdir/src/.gdbinit > src/.gdbinit
26796 esac
26797 done # for ac_tag
26800 { (exit 0); exit 0; }
26801 _ACEOF
26802 chmod +x $CONFIG_STATUS
26803 ac_clean_files=$ac_clean_files_save
26805 test $ac_write_fail = 0 ||
26806 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26807 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26808 { (exit 1); exit 1; }; }
26811 # configure is writing to config.log, and then calls config.status.
26812 # config.status does its own redirection, appending to config.log.
26813 # Unfortunately, on DOS this fails, as config.log is still kept open
26814 # by configure, so config.status won't be able to write to it; its
26815 # output is simply discarded. So we exec the FD to /dev/null,
26816 # effectively closing config.log, so it can be properly (re)opened and
26817 # appended to by config.status. When coming back to configure, we
26818 # need to make the FD available again.
26819 if test "$no_create" != yes; then
26820 ac_cs_success=:
26821 ac_config_status_args=
26822 test "$silent" = yes &&
26823 ac_config_status_args="$ac_config_status_args --quiet"
26824 exec 5>/dev/null
26825 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26826 exec 5>>config.log
26827 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26828 # would make configure fail if this is the last instruction.
26829 $ac_cs_success || { (exit 1); exit 1; }
26831 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26832 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
26833 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}