* alloc.c (make_pure_c_string): New function.
[emacs.git] / configure
blobd2cdc493658d7f2e750ded42bea06e4433f10359
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 x86_64-* ) machine=amdx86-64 ;;
2711 * ) unported=yes ;;
2712 esac
2713 opsys=darwin
2714 # Define CPP as follows to make autoconf work correctly.
2715 CPP="${CC-cc} -E -no-cpp-precomp"
2716 # Use fink packages if available.
2717 if test -d /sw/include && test -d /sw/lib; then
2718 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2719 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2720 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2724 ## HP 9000 series 700 and 800, running HP/UX
2725 hppa*-hp-hpux10.2* )
2726 machine=hp800 opsys=hpux10-20
2728 hppa*-hp-hpux1[1-9]* )
2729 machine=hp800 opsys=hpux11
2730 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2733 hppa*-*-linux-gnu* )
2734 machine=hp800 opsys=gnu-linux
2737 ## IBM machines
2738 s390-*-linux-gnu* )
2739 machine=ibms390 opsys=gnu-linux
2741 s390x-*-linux-gnu* )
2742 machine=ibms390x opsys=gnu-linux
2744 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2745 machine=ibmrs6000 opsys=aix4-2
2747 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2748 machine=ibmrs6000 opsys=aix4-2
2750 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2751 machine=ibmrs6000 opsys=aix4-2
2753 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2754 machine=ibmrs6000 opsys=aix4-2
2757 ## Macintosh PowerPC
2758 powerpc*-*-linux-gnu* )
2759 machine=macppc opsys=gnu-linux
2762 ## Silicon Graphics machines
2763 ## Iris 4D
2764 mips-sgi-irix6.5 )
2765 machine=iris4d opsys=irix6-5
2766 # Without defining _LANGUAGE_C, things get masked out in the headers
2767 # so that, for instance, grepping for `free' in stdlib.h fails and
2768 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2769 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2770 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2773 ## Suns
2774 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2775 machine=sparc opsys=gnu-linux
2778 *-sun-solaris* \
2779 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2780 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2781 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2782 case "${canonical}" in
2783 i[3456]86-*-* ) machine=intel386 ;;
2784 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2785 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2786 sparc* ) machine=sparc ;;
2787 * ) unported=yes ;;
2788 esac
2789 case "${canonical}" in
2790 *-sunos5.3* | *-solaris2.3* )
2791 opsys=sol2-3
2792 NON_GNU_CPP=/usr/ccs/lib/cpp
2794 *-sunos5.4* | *-solaris2.4* )
2795 opsys=sol2-4
2796 NON_GNU_CPP=/usr/ccs/lib/cpp
2797 RANLIB="ar -ts"
2799 *-sunos5.5* | *-solaris2.5* )
2800 opsys=sol2-5
2801 NON_GNU_CPP=/usr/ccs/lib/cpp
2802 RANLIB="ar -ts"
2804 *-sunos5.6* | *-solaris2.6* )
2805 opsys=sol2-6
2806 NON_GNU_CPP=/usr/ccs/lib/cpp
2807 RANLIB="ar -ts"
2809 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2810 opsys=sol2-6
2811 emacs_check_sunpro_c=yes
2812 NON_GNU_CPP=/usr/ccs/lib/cpp
2814 *-sunos5* | *-solaris* )
2815 opsys=sol2-10
2816 emacs_check_sunpro_c=yes
2817 NON_GNU_CPP=/usr/ccs/lib/cpp
2819 esac
2820 ## Watch out for a compiler that we know will not work.
2821 case "${canonical}" in
2822 *-solaris* | *-sunos5* )
2823 if [ "x$CC" = x/usr/ucb/cc ]; then
2824 ## /usr/ucb/cc doesn't work;
2825 ## we should find some other compiler that does work.
2826 unset CC
2829 *) ;;
2830 esac
2833 ## IA-64
2834 ia64*-*-linux* )
2835 machine=ia64 opsys=gnu-linux
2838 ## Intel 386 machines where we don't care about the manufacturer
2839 i[3456]86-*-* )
2840 machine=intel386
2841 case "${canonical}" in
2842 *-cygwin ) opsys=cygwin ;;
2843 *-darwin* ) opsys=darwin
2844 CPP="${CC-cc} -E -no-cpp-precomp"
2846 *-linux-gnu* ) opsys=gnu-linux ;;
2847 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2848 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2849 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2850 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2851 esac
2854 ## m68k Linux-based GNU system
2855 m68k-*-linux-gnu* )
2856 machine=m68k opsys=gnu-linux
2859 ## Mips Linux-based GNU system
2860 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2861 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2862 machine=mips opsys=gnu-linux
2865 ## AMD x86-64 Linux-based GNU system
2866 x86_64-*-linux-gnu* )
2867 machine=amdx86-64 opsys=gnu-linux
2870 ## Tensilica Xtensa Linux-based GNU system
2871 xtensa*-*-linux-gnu* )
2872 machine=xtensa opsys=gnu-linux
2875 ## SuperH Linux-based GNU system
2876 sh[34]*-*-linux-gnu* )
2877 machine=sh3 opsys=gnu-linux
2881 unported=yes
2883 esac
2885 ### If the code above didn't choose an operating system, just choose
2886 ### an operating system based on the configuration name. You really
2887 ### only want to use this when you have no idea what the right
2888 ### operating system is; if you know what operating systems a machine
2889 ### runs, it's cleaner to make it explicit in the case statement
2890 ### above.
2891 if test x"${opsys}" = x; then
2892 case "${canonical}" in
2893 *-gnu* ) opsys=gnu ;;
2894 *-sysv4.2uw* ) opsys=unixware ;;
2895 *-sysv5uw* ) opsys=unixware ;;
2896 *-sysv5OpenUNIX* ) opsys=unixware ;;
2897 *-sysv4.1* | *-sysvr4.1* )
2898 NON_GNU_CPP=/usr/lib/cpp
2899 opsys=usg5-4 ;;
2900 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2901 if [ x$NON_GNU_CPP = x ]; then
2902 if [ -f /usr/ccs/lib/cpp ]; then
2903 NON_GNU_CPP=/usr/ccs/lib/cpp
2904 else
2905 NON_GNU_CPP=/lib/cpp
2908 opsys=usg5-4-2 ;;
2909 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2911 unported=yes
2913 esac
2918 if test $unported = yes; then
2919 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2920 Check \`etc/MACHINES' for recognized configuration names." >&5
2921 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2922 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2923 { (exit 1); exit 1; }; }
2926 machfile="m/${machine}.h"
2927 opsysfile="s/${opsys}.h"
2930 #### Choose a compiler.
2931 test -n "$CC" && cc_specified=yes
2933 # Save the value of CFLAGS that the user specified.
2934 SPECIFIED_CFLAGS="$CFLAGS"
2936 ac_ext=c
2937 ac_cpp='$CPP $CPPFLAGS'
2938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2943 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if test "${ac_cv_prog_CC+set}" = set; then
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2960 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2963 done
2964 done
2965 IFS=$as_save_IFS
2969 CC=$ac_cv_prog_CC
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2973 else
2974 { $as_echo "$as_me:$LINENO: result: no" >&5
2975 $as_echo "no" >&6; }
2980 if test -z "$ac_cv_prog_CC"; then
2981 ac_ct_CC=$CC
2982 # Extract the first word of "gcc", so it can be a program name with args.
2983 set dummy gcc; ac_word=$2
2984 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2987 $as_echo_n "(cached) " >&6
2988 else
2989 if test -n "$ac_ct_CC"; then
2990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 ac_cv_prog_ac_ct_CC="gcc"
3000 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3003 done
3004 done
3005 IFS=$as_save_IFS
3009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3012 $as_echo "$ac_ct_CC" >&6; }
3013 else
3014 { $as_echo "$as_me:$LINENO: result: no" >&5
3015 $as_echo "no" >&6; }
3018 if test "x$ac_ct_CC" = x; then
3019 CC=""
3020 else
3021 case $cross_compiling:$ac_tool_warned in
3022 yes:)
3023 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3024 whose name does not start with the host triplet. If you think this
3025 configuration is useful to you, please write to autoconf@gnu.org." >&5
3026 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3027 whose name does not start with the host triplet. If you think this
3028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3029 ac_tool_warned=yes ;;
3030 esac
3031 CC=$ac_ct_CC
3033 else
3034 CC="$ac_cv_prog_CC"
3037 if test -z "$CC"; then
3038 if test -n "$ac_tool_prefix"; then
3039 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3040 set dummy ${ac_tool_prefix}cc; ac_word=$2
3041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if test "${ac_cv_prog_CC+set}" = set; then
3044 $as_echo_n "(cached) " >&6
3045 else
3046 if test -n "$CC"; then
3047 ac_cv_prog_CC="$CC" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056 ac_cv_prog_CC="${ac_tool_prefix}cc"
3057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3060 done
3061 done
3062 IFS=$as_save_IFS
3066 CC=$ac_cv_prog_CC
3067 if test -n "$CC"; then
3068 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3069 $as_echo "$CC" >&6; }
3070 else
3071 { $as_echo "$as_me:$LINENO: result: no" >&5
3072 $as_echo "no" >&6; }
3078 if test -z "$CC"; then
3079 # Extract the first word of "cc", so it can be a program name with args.
3080 set dummy cc; ac_word=$2
3081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if test "${ac_cv_prog_CC+set}" = set; then
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 else
3089 ac_prog_rejected=no
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3098 ac_prog_rejected=yes
3099 continue
3101 ac_cv_prog_CC="cc"
3102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3105 done
3106 done
3107 IFS=$as_save_IFS
3109 if test $ac_prog_rejected = yes; then
3110 # We found a bogon in the path, so make sure we never use it.
3111 set dummy $ac_cv_prog_CC
3112 shift
3113 if test $# != 0; then
3114 # We chose a different compiler from the bogus one.
3115 # However, it has the same basename, so the bogon will be chosen
3116 # first if we set CC to just the basename; use the full file name.
3117 shift
3118 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3123 CC=$ac_cv_prog_CC
3124 if test -n "$CC"; then
3125 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3126 $as_echo "$CC" >&6; }
3127 else
3128 { $as_echo "$as_me:$LINENO: result: no" >&5
3129 $as_echo "no" >&6; }
3134 if test -z "$CC"; then
3135 if test -n "$ac_tool_prefix"; then
3136 for ac_prog in cl.exe
3138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3140 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_prog_CC+set}" = set; then
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3156 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3159 done
3160 done
3161 IFS=$as_save_IFS
3165 CC=$ac_cv_prog_CC
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3169 else
3170 { $as_echo "$as_me:$LINENO: result: no" >&5
3171 $as_echo "no" >&6; }
3175 test -n "$CC" && break
3176 done
3178 if test -z "$CC"; then
3179 ac_ct_CC=$CC
3180 for ac_prog in cl.exe
3182 # Extract the first word of "$ac_prog", so it can be a program name with args.
3183 set dummy $ac_prog; ac_word=$2
3184 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3187 $as_echo_n "(cached) " >&6
3188 else
3189 if test -n "$ac_ct_CC"; then
3190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199 ac_cv_prog_ac_ct_CC="$ac_prog"
3200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3203 done
3204 done
3205 IFS=$as_save_IFS
3209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3210 if test -n "$ac_ct_CC"; then
3211 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3212 $as_echo "$ac_ct_CC" >&6; }
3213 else
3214 { $as_echo "$as_me:$LINENO: result: no" >&5
3215 $as_echo "no" >&6; }
3219 test -n "$ac_ct_CC" && break
3220 done
3222 if test "x$ac_ct_CC" = x; then
3223 CC=""
3224 else
3225 case $cross_compiling:$ac_tool_warned in
3226 yes:)
3227 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3228 whose name does not start with the host triplet. If you think this
3229 configuration is useful to you, please write to autoconf@gnu.org." >&5
3230 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3231 whose name does not start with the host triplet. If you think this
3232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3233 ac_tool_warned=yes ;;
3234 esac
3235 CC=$ac_ct_CC
3242 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3243 See \`config.log' for more details." >&5
3244 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3245 See \`config.log' for more details." >&2;}
3246 { (exit 1); exit 1; }; }
3248 # Provide some information about the compiler.
3249 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3250 set X $ac_compile
3251 ac_compiler=$2
3252 { (ac_try="$ac_compiler --version >&5"
3253 case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256 esac
3257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3258 $as_echo "$ac_try_echo") >&5
3259 (eval "$ac_compiler --version >&5") 2>&5
3260 ac_status=$?
3261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }
3263 { (ac_try="$ac_compiler -v >&5"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3269 $as_echo "$ac_try_echo") >&5
3270 (eval "$ac_compiler -v >&5") 2>&5
3271 ac_status=$?
3272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }
3274 { (ac_try="$ac_compiler -V >&5"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3280 $as_echo "$ac_try_echo") >&5
3281 (eval "$ac_compiler -V >&5") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }
3286 cat >conftest.$ac_ext <<_ACEOF
3287 /* confdefs.h. */
3288 _ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3294 main ()
3298 return 0;
3300 _ACEOF
3301 ac_clean_files_save=$ac_clean_files
3302 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3303 # Try to create an executable without -o first, disregard a.out.
3304 # It will help us diagnose broken compilers, and finding out an intuition
3305 # of exeext.
3306 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3307 $as_echo_n "checking for C compiler default output file name... " >&6; }
3308 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3310 # The possible output files:
3311 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3313 ac_rmfiles=
3314 for ac_file in $ac_files
3316 case $ac_file in
3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3318 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3319 esac
3320 done
3321 rm -f $ac_rmfiles
3323 if { (ac_try="$ac_link_default"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3329 $as_echo "$ac_try_echo") >&5
3330 (eval "$ac_link_default") 2>&5
3331 ac_status=$?
3332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; then
3334 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3335 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3336 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3337 # so that the user can short-circuit this test for compilers unknown to
3338 # Autoconf.
3339 for ac_file in $ac_files ''
3341 test -f "$ac_file" || continue
3342 case $ac_file in
3343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3345 [ab].out )
3346 # We found the default executable, but exeext='' is most
3347 # certainly right.
3348 break;;
3349 *.* )
3350 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3351 then :; else
3352 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3354 # We set ac_cv_exeext here because the later test for it is not
3355 # safe: cross compilers may not add the suffix if given an `-o'
3356 # argument, so we may need to know it at that point already.
3357 # Even if this section looks crufty: it has the advantage of
3358 # actually working.
3359 break;;
3361 break;;
3362 esac
3363 done
3364 test "$ac_cv_exeext" = no && ac_cv_exeext=
3366 else
3367 ac_file=''
3370 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3371 $as_echo "$ac_file" >&6; }
3372 if test -z "$ac_file"; then
3373 $as_echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3376 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3377 See \`config.log' for more details." >&5
3378 $as_echo "$as_me: error: C compiler cannot create executables
3379 See \`config.log' for more details." >&2;}
3380 { (exit 77); exit 77; }; }
3383 ac_exeext=$ac_cv_exeext
3385 # Check that the compiler produces executables we can run. If not, either
3386 # the compiler is broken, or we cross compile.
3387 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3388 $as_echo_n "checking whether the C compiler works... " >&6; }
3389 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3390 # If not cross compiling, check that we can run a simple program.
3391 if test "$cross_compiling" != yes; then
3392 if { ac_try='./$ac_file'
3393 { (case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3398 $as_echo "$ac_try_echo") >&5
3399 (eval "$ac_try") 2>&5
3400 ac_status=$?
3401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 cross_compiling=no
3404 else
3405 if test "$cross_compiling" = maybe; then
3406 cross_compiling=yes
3407 else
3408 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3409 If you meant to cross compile, use \`--host'.
3410 See \`config.log' for more details." >&5
3411 $as_echo "$as_me: error: cannot run C compiled programs.
3412 If you meant to cross compile, use \`--host'.
3413 See \`config.log' for more details." >&2;}
3414 { (exit 1); exit 1; }; }
3418 { $as_echo "$as_me:$LINENO: result: yes" >&5
3419 $as_echo "yes" >&6; }
3421 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3422 ac_clean_files=$ac_clean_files_save
3423 # Check that the compiler produces executables we can run. If not, either
3424 # the compiler is broken, or we cross compile.
3425 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3426 $as_echo_n "checking whether we are cross compiling... " >&6; }
3427 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3428 $as_echo "$cross_compiling" >&6; }
3430 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3431 $as_echo_n "checking for suffix of executables... " >&6; }
3432 if { (ac_try="$ac_link"
3433 case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436 esac
3437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3438 $as_echo "$ac_try_echo") >&5
3439 (eval "$ac_link") 2>&5
3440 ac_status=$?
3441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; then
3443 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3444 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3445 # work properly (i.e., refer to `conftest.exe'), while it won't with
3446 # `rm'.
3447 for ac_file in conftest.exe conftest conftest.*; do
3448 test -f "$ac_file" || continue
3449 case $ac_file in
3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3451 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452 break;;
3453 * ) break;;
3454 esac
3455 done
3456 else
3457 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3458 See \`config.log' for more details." >&5
3459 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3460 See \`config.log' for more details." >&2;}
3461 { (exit 1); exit 1; }; }
3464 rm -f conftest$ac_cv_exeext
3465 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3466 $as_echo "$ac_cv_exeext" >&6; }
3468 rm -f conftest.$ac_ext
3469 EXEEXT=$ac_cv_exeext
3470 ac_exeext=$EXEEXT
3471 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3472 $as_echo_n "checking for suffix of object files... " >&6; }
3473 if test "${ac_cv_objext+set}" = set; then
3474 $as_echo_n "(cached) " >&6
3475 else
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3484 main ()
3488 return 0;
3490 _ACEOF
3491 rm -f conftest.o conftest.obj
3492 if { (ac_try="$ac_compile"
3493 case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3498 $as_echo "$ac_try_echo") >&5
3499 (eval "$ac_compile") 2>&5
3500 ac_status=$?
3501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; then
3503 for ac_file in conftest.o conftest.obj conftest.*; do
3504 test -f "$ac_file" || continue;
3505 case $ac_file in
3506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3507 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3508 break;;
3509 esac
3510 done
3511 else
3512 $as_echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3515 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3516 See \`config.log' for more details." >&5
3517 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3518 See \`config.log' for more details." >&2;}
3519 { (exit 1); exit 1; }; }
3522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3524 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3525 $as_echo "$ac_cv_objext" >&6; }
3526 OBJEXT=$ac_cv_objext
3527 ac_objext=$OBJEXT
3528 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3529 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3530 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3531 $as_echo_n "(cached) " >&6
3532 else
3533 cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h. */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3541 main ()
3543 #ifndef __GNUC__
3544 choke me
3545 #endif
3548 return 0;
3550 _ACEOF
3551 rm -f conftest.$ac_objext
3552 if { (ac_try="$ac_compile"
3553 case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3558 $as_echo "$ac_try_echo") >&5
3559 (eval "$ac_compile") 2>conftest.er1
3560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } && {
3566 test -z "$ac_c_werror_flag" ||
3567 test ! -s conftest.err
3568 } && test -s conftest.$ac_objext; then
3569 ac_compiler_gnu=yes
3570 else
3571 $as_echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3574 ac_compiler_gnu=no
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3581 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3582 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3583 if test $ac_compiler_gnu = yes; then
3584 GCC=yes
3585 else
3586 GCC=
3588 ac_test_CFLAGS=${CFLAGS+set}
3589 ac_save_CFLAGS=$CFLAGS
3590 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3591 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3592 if test "${ac_cv_prog_cc_g+set}" = set; then
3593 $as_echo_n "(cached) " >&6
3594 else
3595 ac_save_c_werror_flag=$ac_c_werror_flag
3596 ac_c_werror_flag=yes
3597 ac_cv_prog_cc_g=no
3598 CFLAGS="-g"
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3607 main ()
3611 return 0;
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_compile") 2>conftest.er1
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && {
3629 test -z "$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3631 } && test -s conftest.$ac_objext; then
3632 ac_cv_prog_cc_g=yes
3633 else
3634 $as_echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3637 CFLAGS=""
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3646 main ()
3650 return 0;
3652 _ACEOF
3653 rm -f conftest.$ac_objext
3654 if { (ac_try="$ac_compile"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3660 $as_echo "$ac_try_echo") >&5
3661 (eval "$ac_compile") 2>conftest.er1
3662 ac_status=$?
3663 grep -v '^ *+' conftest.er1 >conftest.err
3664 rm -f conftest.er1
3665 cat conftest.err >&5
3666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } && {
3668 test -z "$ac_c_werror_flag" ||
3669 test ! -s conftest.err
3670 } && test -s conftest.$ac_objext; then
3672 else
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 ac_c_werror_flag=$ac_save_c_werror_flag
3677 CFLAGS="-g"
3678 cat >conftest.$ac_ext <<_ACEOF
3679 /* confdefs.h. */
3680 _ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3686 main ()
3690 return 0;
3692 _ACEOF
3693 rm -f conftest.$ac_objext
3694 if { (ac_try="$ac_compile"
3695 case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3700 $as_echo "$ac_try_echo") >&5
3701 (eval "$ac_compile") 2>conftest.er1
3702 ac_status=$?
3703 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1
3705 cat conftest.err >&5
3706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } && {
3708 test -z "$ac_c_werror_flag" ||
3709 test ! -s conftest.err
3710 } && test -s conftest.$ac_objext; then
3711 ac_cv_prog_cc_g=yes
3712 else
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 ac_c_werror_flag=$ac_save_c_werror_flag
3728 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3729 $as_echo "$ac_cv_prog_cc_g" >&6; }
3730 if test "$ac_test_CFLAGS" = set; then
3731 CFLAGS=$ac_save_CFLAGS
3732 elif test $ac_cv_prog_cc_g = yes; then
3733 if test "$GCC" = yes; then
3734 CFLAGS="-g -O2"
3735 else
3736 CFLAGS="-g"
3738 else
3739 if test "$GCC" = yes; then
3740 CFLAGS="-O2"
3741 else
3742 CFLAGS=
3745 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3746 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3747 if test "${ac_cv_prog_cc_c89+set}" = set; then
3748 $as_echo_n "(cached) " >&6
3749 else
3750 ac_cv_prog_cc_c89=no
3751 ac_save_CC=$CC
3752 cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h. */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 #include <stdarg.h>
3759 #include <stdio.h>
3760 #include <sys/types.h>
3761 #include <sys/stat.h>
3762 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3763 struct buf { int x; };
3764 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3765 static char *e (p, i)
3766 char **p;
3767 int i;
3769 return p[i];
3771 static char *f (char * (*g) (char **, int), char **p, ...)
3773 char *s;
3774 va_list v;
3775 va_start (v,p);
3776 s = g (p, va_arg (v,int));
3777 va_end (v);
3778 return s;
3781 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3782 function prototypes and stuff, but not '\xHH' hex character constants.
3783 These don't provoke an error unfortunately, instead are silently treated
3784 as 'x'. The following induces an error, until -std is added to get
3785 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3786 array size at least. It's necessary to write '\x00'==0 to get something
3787 that's true only with -std. */
3788 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3790 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3791 inside strings and character constants. */
3792 #define FOO(x) 'x'
3793 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3795 int test (int i, double x);
3796 struct s1 {int (*f) (int a);};
3797 struct s2 {int (*f) (double a);};
3798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3799 int argc;
3800 char **argv;
3802 main ()
3804 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3806 return 0;
3808 _ACEOF
3809 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3810 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3812 CC="$ac_save_CC $ac_arg"
3813 rm -f conftest.$ac_objext
3814 if { (ac_try="$ac_compile"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3820 $as_echo "$ac_try_echo") >&5
3821 (eval "$ac_compile") 2>conftest.er1
3822 ac_status=$?
3823 grep -v '^ *+' conftest.er1 >conftest.err
3824 rm -f conftest.er1
3825 cat conftest.err >&5
3826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } && {
3828 test -z "$ac_c_werror_flag" ||
3829 test ! -s conftest.err
3830 } && test -s conftest.$ac_objext; then
3831 ac_cv_prog_cc_c89=$ac_arg
3832 else
3833 $as_echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3839 rm -f core conftest.err conftest.$ac_objext
3840 test "x$ac_cv_prog_cc_c89" != "xno" && break
3841 done
3842 rm -f conftest.$ac_ext
3843 CC=$ac_save_CC
3846 # AC_CACHE_VAL
3847 case "x$ac_cv_prog_cc_c89" in
3849 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3850 $as_echo "none needed" >&6; } ;;
3851 xno)
3852 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3853 $as_echo "unsupported" >&6; } ;;
3855 CC="$CC $ac_cv_prog_cc_c89"
3856 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3857 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3858 esac
3861 ac_ext=c
3862 ac_cpp='$CPP $CPPFLAGS'
3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868 # On Suns, sometimes $CPP names a directory.
3869 if test -n "$CPP" && test -d "$CPP"; then
3870 CPP=
3873 ## If not using gcc, and on Solaris, and no CPP specified, see if
3874 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3875 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3876 test x"$CPP" = x; then
3877 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3878 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3880 if test "${emacs_cv_sunpro_c+set}" = set; then
3881 $as_echo_n "(cached) " >&6
3882 else
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3891 main ()
3893 #ifndef __SUNPRO_C
3894 fail;
3895 #endif
3898 return 0;
3900 _ACEOF
3901 rm -f conftest.$ac_objext conftest$ac_exeext
3902 if { (ac_try="$ac_link"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909 (eval "$ac_link") 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest$ac_exeext && {
3919 test "$cross_compiling" = yes ||
3920 $as_test_x conftest$ac_exeext
3921 }; then
3922 emacs_cv_sunpro_c=yes
3923 else
3924 $as_echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 emacs_cv_sunpro_c=no
3930 rm -rf conftest.dSYM
3931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3932 conftest$ac_exeext conftest.$ac_ext
3935 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3936 $as_echo "$emacs_cv_sunpro_c" >&6; }
3938 if test x"$emacs_cv_sunpro_c" = xyes; then
3939 NON_GNU_CPP="$CC -E -Xs"
3943 #### Some systems specify a CPP to use unless we are using GCC.
3944 #### Now that we know whether we are using GCC, we can decide whether
3945 #### to use that one.
3946 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3947 then
3948 CPP="$NON_GNU_CPP"
3951 #### Some systems specify a CC to use unless we are using GCC.
3952 #### Now that we know whether we are using GCC, we can decide whether
3953 #### to use that one.
3954 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3955 test x$cc_specified != xyes
3956 then
3957 CC="$NON_GNU_CC"
3960 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3961 then
3962 CC="$CC $GCC_TEST_OPTIONS"
3965 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3966 then
3967 CC="$CC $NON_GCC_TEST_OPTIONS"
3970 ac_ext=c
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3976 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3977 # On Suns, sometimes $CPP names a directory.
3978 if test -n "$CPP" && test -d "$CPP"; then
3979 CPP=
3981 if test -z "$CPP"; then
3982 if test "${ac_cv_prog_CPP+set}" = set; then
3983 $as_echo_n "(cached) " >&6
3984 else
3985 # Double quotes because CPP needs to be expanded
3986 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3988 ac_preproc_ok=false
3989 for ac_c_preproc_warn_flag in '' yes
3991 # Use a header file that comes with gcc, so configuring glibc
3992 # with a fresh cross-compiler works.
3993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3994 # <limits.h> exists even on freestanding compilers.
3995 # On the NeXT, cc -E runs the code through the compiler's parser,
3996 # not just through cpp. "Syntax error" is here to catch this case.
3997 cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h. */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4003 #ifdef __STDC__
4004 # include <limits.h>
4005 #else
4006 # include <assert.h>
4007 #endif
4008 Syntax error
4009 _ACEOF
4010 if { (ac_try="$ac_cpp conftest.$ac_ext"
4011 case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014 esac
4015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4016 $as_echo "$ac_try_echo") >&5
4017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4018 ac_status=$?
4019 grep -v '^ *+' conftest.er1 >conftest.err
4020 rm -f conftest.er1
4021 cat conftest.err >&5
4022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } >/dev/null && {
4024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4025 test ! -s conftest.err
4026 }; then
4028 else
4029 $as_echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4032 # Broken: fails on valid input.
4033 continue
4036 rm -f conftest.err conftest.$ac_ext
4038 # OK, works on sane cases. Now check whether nonexistent headers
4039 # can be detected and how.
4040 cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h. */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046 #include <ac_nonexistent.h>
4047 _ACEOF
4048 if { (ac_try="$ac_cpp conftest.$ac_ext"
4049 case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4054 $as_echo "$ac_try_echo") >&5
4055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4056 ac_status=$?
4057 grep -v '^ *+' conftest.er1 >conftest.err
4058 rm -f conftest.er1
4059 cat conftest.err >&5
4060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } >/dev/null && {
4062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4063 test ! -s conftest.err
4064 }; then
4065 # Broken: success on invalid input.
4066 continue
4067 else
4068 $as_echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4071 # Passes both tests.
4072 ac_preproc_ok=:
4073 break
4076 rm -f conftest.err conftest.$ac_ext
4078 done
4079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4080 rm -f conftest.err conftest.$ac_ext
4081 if $ac_preproc_ok; then
4082 break
4085 done
4086 ac_cv_prog_CPP=$CPP
4089 CPP=$ac_cv_prog_CPP
4090 else
4091 ac_cv_prog_CPP=$CPP
4093 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4094 $as_echo "$CPP" >&6; }
4095 ac_preproc_ok=false
4096 for ac_c_preproc_warn_flag in '' yes
4098 # Use a header file that comes with gcc, so configuring glibc
4099 # with a fresh cross-compiler works.
4100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4101 # <limits.h> exists even on freestanding compilers.
4102 # On the NeXT, cc -E runs the code through the compiler's parser,
4103 # not just through cpp. "Syntax error" is here to catch this case.
4104 cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h. */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #ifdef __STDC__
4111 # include <limits.h>
4112 #else
4113 # include <assert.h>
4114 #endif
4115 Syntax error
4116 _ACEOF
4117 if { (ac_try="$ac_cpp conftest.$ac_ext"
4118 case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121 esac
4122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4123 $as_echo "$ac_try_echo") >&5
4124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4125 ac_status=$?
4126 grep -v '^ *+' conftest.er1 >conftest.err
4127 rm -f conftest.er1
4128 cat conftest.err >&5
4129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } >/dev/null && {
4131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4132 test ! -s conftest.err
4133 }; then
4135 else
4136 $as_echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4139 # Broken: fails on valid input.
4140 continue
4143 rm -f conftest.err conftest.$ac_ext
4145 # OK, works on sane cases. Now check whether nonexistent headers
4146 # can be detected and how.
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h. */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #include <ac_nonexistent.h>
4154 _ACEOF
4155 if { (ac_try="$ac_cpp conftest.$ac_ext"
4156 case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159 esac
4160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4161 $as_echo "$ac_try_echo") >&5
4162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4163 ac_status=$?
4164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
4167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } >/dev/null && {
4169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4170 test ! -s conftest.err
4171 }; then
4172 # Broken: success on invalid input.
4173 continue
4174 else
4175 $as_echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4178 # Passes both tests.
4179 ac_preproc_ok=:
4180 break
4183 rm -f conftest.err conftest.$ac_ext
4185 done
4186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4187 rm -f conftest.err conftest.$ac_ext
4188 if $ac_preproc_ok; then
4190 else
4191 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4192 See \`config.log' for more details." >&5
4193 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4194 See \`config.log' for more details." >&2;}
4195 { (exit 1); exit 1; }; }
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4205 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4206 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4207 if test "${ac_cv_path_GREP+set}" = set; then
4208 $as_echo_n "(cached) " >&6
4209 else
4210 if test -z "$GREP"; then
4211 ac_path_GREP_found=false
4212 # Loop through the user's path and test for each of PROGNAME-LIST
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_prog in grep ggrep; do
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4221 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4222 # Check for GNU ac_path_GREP and select it if it is found.
4223 # Check for GNU $ac_path_GREP
4224 case `"$ac_path_GREP" --version 2>&1` in
4225 *GNU*)
4226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4228 ac_count=0
4229 $as_echo_n 0123456789 >"conftest.in"
4230 while :
4232 cat "conftest.in" "conftest.in" >"conftest.tmp"
4233 mv "conftest.tmp" "conftest.in"
4234 cp "conftest.in" "conftest.nl"
4235 $as_echo 'GREP' >> "conftest.nl"
4236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238 ac_count=`expr $ac_count + 1`
4239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4240 # Best one so far, save it but keep looking for a better one
4241 ac_cv_path_GREP="$ac_path_GREP"
4242 ac_path_GREP_max=$ac_count
4244 # 10*(2^10) chars as input seems more than enough
4245 test $ac_count -gt 10 && break
4246 done
4247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4248 esac
4250 $ac_path_GREP_found && break 3
4251 done
4252 done
4253 done
4254 IFS=$as_save_IFS
4255 if test -z "$ac_cv_path_GREP"; then
4256 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4257 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4258 { (exit 1); exit 1; }; }
4260 else
4261 ac_cv_path_GREP=$GREP
4265 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4266 $as_echo "$ac_cv_path_GREP" >&6; }
4267 GREP="$ac_cv_path_GREP"
4270 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4271 $as_echo_n "checking for egrep... " >&6; }
4272 if test "${ac_cv_path_EGREP+set}" = set; then
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4276 then ac_cv_path_EGREP="$GREP -E"
4277 else
4278 if test -z "$EGREP"; then
4279 ac_path_EGREP_found=false
4280 # Loop through the user's path and test for each of PROGNAME-LIST
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_prog in egrep; do
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4289 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4290 # Check for GNU ac_path_EGREP and select it if it is found.
4291 # Check for GNU $ac_path_EGREP
4292 case `"$ac_path_EGREP" --version 2>&1` in
4293 *GNU*)
4294 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4296 ac_count=0
4297 $as_echo_n 0123456789 >"conftest.in"
4298 while :
4300 cat "conftest.in" "conftest.in" >"conftest.tmp"
4301 mv "conftest.tmp" "conftest.in"
4302 cp "conftest.in" "conftest.nl"
4303 $as_echo 'EGREP' >> "conftest.nl"
4304 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4306 ac_count=`expr $ac_count + 1`
4307 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4308 # Best one so far, save it but keep looking for a better one
4309 ac_cv_path_EGREP="$ac_path_EGREP"
4310 ac_path_EGREP_max=$ac_count
4312 # 10*(2^10) chars as input seems more than enough
4313 test $ac_count -gt 10 && break
4314 done
4315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4316 esac
4318 $ac_path_EGREP_found && break 3
4319 done
4320 done
4321 done
4322 IFS=$as_save_IFS
4323 if test -z "$ac_cv_path_EGREP"; then
4324 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4325 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4326 { (exit 1); exit 1; }; }
4328 else
4329 ac_cv_path_EGREP=$EGREP
4334 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4335 $as_echo "$ac_cv_path_EGREP" >&6; }
4336 EGREP="$ac_cv_path_EGREP"
4339 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4340 $as_echo_n "checking for ANSI C header files... " >&6; }
4341 if test "${ac_cv_header_stdc+set}" = set; then
4342 $as_echo_n "(cached) " >&6
4343 else
4344 cat >conftest.$ac_ext <<_ACEOF
4345 /* confdefs.h. */
4346 _ACEOF
4347 cat confdefs.h >>conftest.$ac_ext
4348 cat >>conftest.$ac_ext <<_ACEOF
4349 /* end confdefs.h. */
4350 #include <stdlib.h>
4351 #include <stdarg.h>
4352 #include <string.h>
4353 #include <float.h>
4356 main ()
4360 return 0;
4362 _ACEOF
4363 rm -f conftest.$ac_objext
4364 if { (ac_try="$ac_compile"
4365 case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368 esac
4369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4370 $as_echo "$ac_try_echo") >&5
4371 (eval "$ac_compile") 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && {
4378 test -z "$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 } && test -s conftest.$ac_objext; then
4381 ac_cv_header_stdc=yes
4382 else
4383 $as_echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4386 ac_cv_header_stdc=no
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391 if test $ac_cv_header_stdc = yes; then
4392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4393 cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h. */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4399 #include <string.h>
4401 _ACEOF
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403 $EGREP "memchr" >/dev/null 2>&1; then
4405 else
4406 ac_cv_header_stdc=no
4408 rm -f conftest*
4412 if test $ac_cv_header_stdc = yes; then
4413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h. */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 #include <stdlib.h>
4422 _ACEOF
4423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4424 $EGREP "free" >/dev/null 2>&1; then
4426 else
4427 ac_cv_header_stdc=no
4429 rm -f conftest*
4433 if test $ac_cv_header_stdc = yes; then
4434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435 if test "$cross_compiling" = yes; then
4437 else
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #include <ctype.h>
4445 #include <stdlib.h>
4446 #if ((' ' & 0x0FF) == 0x020)
4447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4449 #else
4450 # define ISLOWER(c) \
4451 (('a' <= (c) && (c) <= 'i') \
4452 || ('j' <= (c) && (c) <= 'r') \
4453 || ('s' <= (c) && (c) <= 'z'))
4454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4455 #endif
4457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4459 main ()
4461 int i;
4462 for (i = 0; i < 256; i++)
4463 if (XOR (islower (i), ISLOWER (i))
4464 || toupper (i) != TOUPPER (i))
4465 return 2;
4466 return 0;
4468 _ACEOF
4469 rm -f conftest$ac_exeext
4470 if { (ac_try="$ac_link"
4471 case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474 esac
4475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4476 $as_echo "$ac_try_echo") >&5
4477 (eval "$ac_link") 2>&5
4478 ac_status=$?
4479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4481 { (case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484 esac
4485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4486 $as_echo "$ac_try_echo") >&5
4487 (eval "$ac_try") 2>&5
4488 ac_status=$?
4489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4492 else
4493 $as_echo "$as_me: program exited with status $ac_status" >&5
4494 $as_echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4497 ( exit $ac_status )
4498 ac_cv_header_stdc=no
4500 rm -rf conftest.dSYM
4501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4507 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4508 $as_echo "$ac_cv_header_stdc" >&6; }
4509 if test $ac_cv_header_stdc = yes; then
4511 cat >>confdefs.h <<\_ACEOF
4512 #define STDC_HEADERS 1
4513 _ACEOF
4517 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4527 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4528 inttypes.h stdint.h unistd.h
4530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4531 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4532 $as_echo_n "checking for $ac_header... " >&6; }
4533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4534 $as_echo_n "(cached) " >&6
4535 else
4536 cat >conftest.$ac_ext <<_ACEOF
4537 /* confdefs.h. */
4538 _ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4542 $ac_includes_default
4544 #include <$ac_header>
4545 _ACEOF
4546 rm -f conftest.$ac_objext
4547 if { (ac_try="$ac_compile"
4548 case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4551 esac
4552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4553 $as_echo "$ac_try_echo") >&5
4554 (eval "$ac_compile") 2>conftest.er1
4555 ac_status=$?
4556 grep -v '^ *+' conftest.er1 >conftest.err
4557 rm -f conftest.er1
4558 cat conftest.err >&5
4559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } && {
4561 test -z "$ac_c_werror_flag" ||
4562 test ! -s conftest.err
4563 } && test -s conftest.$ac_objext; then
4564 eval "$as_ac_Header=yes"
4565 else
4566 $as_echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4569 eval "$as_ac_Header=no"
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 ac_res=`eval 'as_val=${'$as_ac_Header'}
4575 $as_echo "$as_val"'`
4576 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4577 $as_echo "$ac_res" >&6; }
4578 if test `eval 'as_val=${'$as_ac_Header'}
4579 $as_echo "$as_val"'` = yes; then
4580 cat >>confdefs.h <<_ACEOF
4581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4582 _ACEOF
4586 done
4590 if test "${ac_cv_header_minix_config_h+set}" = set; then
4591 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4592 $as_echo_n "checking for minix/config.h... " >&6; }
4593 if test "${ac_cv_header_minix_config_h+set}" = set; then
4594 $as_echo_n "(cached) " >&6
4596 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4597 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4598 else
4599 # Is the header compilable?
4600 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4601 $as_echo_n "checking minix/config.h usability... " >&6; }
4602 cat >conftest.$ac_ext <<_ACEOF
4603 /* confdefs.h. */
4604 _ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4608 $ac_includes_default
4609 #include <minix/config.h>
4610 _ACEOF
4611 rm -f conftest.$ac_objext
4612 if { (ac_try="$ac_compile"
4613 case "(($ac_try" in
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4616 esac
4617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4618 $as_echo "$ac_try_echo") >&5
4619 (eval "$ac_compile") 2>conftest.er1
4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } && {
4626 test -z "$ac_c_werror_flag" ||
4627 test ! -s conftest.err
4628 } && test -s conftest.$ac_objext; then
4629 ac_header_compiler=yes
4630 else
4631 $as_echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4634 ac_header_compiler=no
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4639 $as_echo "$ac_header_compiler" >&6; }
4641 # Is the header present?
4642 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4643 $as_echo_n "checking minix/config.h presence... " >&6; }
4644 cat >conftest.$ac_ext <<_ACEOF
4645 /* confdefs.h. */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 #include <minix/config.h>
4651 _ACEOF
4652 if { (ac_try="$ac_cpp conftest.$ac_ext"
4653 case "(($ac_try" in
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4656 esac
4657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4658 $as_echo "$ac_try_echo") >&5
4659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
4664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } >/dev/null && {
4666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4667 test ! -s conftest.err
4668 }; then
4669 ac_header_preproc=yes
4670 else
4671 $as_echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4674 ac_header_preproc=no
4677 rm -f conftest.err conftest.$ac_ext
4678 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4679 $as_echo "$ac_header_preproc" >&6; }
4681 # So? What about this header?
4682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4683 yes:no: )
4684 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4685 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4686 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4687 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4688 ac_header_preproc=yes
4690 no:yes:* )
4691 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4692 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4693 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4694 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4695 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4696 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4697 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4698 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4699 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4700 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4701 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4702 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4705 esac
4706 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4707 $as_echo_n "checking for minix/config.h... " >&6; }
4708 if test "${ac_cv_header_minix_config_h+set}" = set; then
4709 $as_echo_n "(cached) " >&6
4710 else
4711 ac_cv_header_minix_config_h=$ac_header_preproc
4713 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4714 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4717 if test $ac_cv_header_minix_config_h = yes; then
4718 MINIX=yes
4719 else
4720 MINIX=
4724 if test "$MINIX" = yes; then
4726 cat >>confdefs.h <<\_ACEOF
4727 #define _POSIX_SOURCE 1
4728 _ACEOF
4731 cat >>confdefs.h <<\_ACEOF
4732 #define _POSIX_1_SOURCE 2
4733 _ACEOF
4736 cat >>confdefs.h <<\_ACEOF
4737 #define _MINIX 1
4738 _ACEOF
4744 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4745 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4746 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4747 $as_echo_n "(cached) " >&6
4748 else
4749 cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h. */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4756 # define __EXTENSIONS__ 1
4757 $ac_includes_default
4759 main ()
4763 return 0;
4765 _ACEOF
4766 rm -f conftest.$ac_objext
4767 if { (ac_try="$ac_compile"
4768 case "(($ac_try" in
4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770 *) ac_try_echo=$ac_try;;
4771 esac
4772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4773 $as_echo "$ac_try_echo") >&5
4774 (eval "$ac_compile") 2>conftest.er1
4775 ac_status=$?
4776 grep -v '^ *+' conftest.er1 >conftest.err
4777 rm -f conftest.er1
4778 cat conftest.err >&5
4779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } && {
4781 test -z "$ac_c_werror_flag" ||
4782 test ! -s conftest.err
4783 } && test -s conftest.$ac_objext; then
4784 ac_cv_safe_to_define___extensions__=yes
4785 else
4786 $as_echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4789 ac_cv_safe_to_define___extensions__=no
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4795 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4796 test $ac_cv_safe_to_define___extensions__ = yes &&
4797 cat >>confdefs.h <<\_ACEOF
4798 #define __EXTENSIONS__ 1
4799 _ACEOF
4801 cat >>confdefs.h <<\_ACEOF
4802 #define _ALL_SOURCE 1
4803 _ACEOF
4805 cat >>confdefs.h <<\_ACEOF
4806 #define _GNU_SOURCE 1
4807 _ACEOF
4809 cat >>confdefs.h <<\_ACEOF
4810 #define _POSIX_PTHREAD_SEMANTICS 1
4811 _ACEOF
4813 cat >>confdefs.h <<\_ACEOF
4814 #define _TANDEM_SOURCE 1
4815 _ACEOF
4819 ### Use -Wno-pointer-sign if the compiler supports it
4820 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4821 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4822 SAVE_CFLAGS="$CFLAGS"
4823 CFLAGS="$CFLAGS -Wno-pointer-sign"
4824 cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h. */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4832 main ()
4836 return 0;
4838 _ACEOF
4839 rm -f conftest.$ac_objext
4840 if { (ac_try="$ac_compile"
4841 case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844 esac
4845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4846 $as_echo "$ac_try_echo") >&5
4847 (eval "$ac_compile") 2>conftest.er1
4848 ac_status=$?
4849 grep -v '^ *+' conftest.er1 >conftest.err
4850 rm -f conftest.er1
4851 cat conftest.err >&5
4852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } && {
4854 test -z "$ac_c_werror_flag" ||
4855 test ! -s conftest.err
4856 } && test -s conftest.$ac_objext; then
4857 has_option=yes
4858 else
4859 $as_echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4862 has_option=no
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 if test $has_option = yes; then
4867 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4869 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4870 $as_echo "$has_option" >&6; }
4871 CFLAGS="$SAVE_CFLAGS"
4872 unset has_option
4873 unset SAVE_CFLAGS
4875 #### Some other nice autoconf tests.
4877 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4878 $as_echo_n "checking whether ln -s works... " >&6; }
4879 LN_S=$as_ln_s
4880 if test "$LN_S" = "ln -s"; then
4881 { $as_echo "$as_me:$LINENO: result: yes" >&5
4882 $as_echo "yes" >&6; }
4883 else
4884 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4885 $as_echo "no, using $LN_S" >&6; }
4888 ac_ext=c
4889 ac_cpp='$CPP $CPPFLAGS'
4890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4893 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4894 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4895 # On Suns, sometimes $CPP names a directory.
4896 if test -n "$CPP" && test -d "$CPP"; then
4897 CPP=
4899 if test -z "$CPP"; then
4900 if test "${ac_cv_prog_CPP+set}" = set; then
4901 $as_echo_n "(cached) " >&6
4902 else
4903 # Double quotes because CPP needs to be expanded
4904 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4906 ac_preproc_ok=false
4907 for ac_c_preproc_warn_flag in '' yes
4909 # Use a header file that comes with gcc, so configuring glibc
4910 # with a fresh cross-compiler works.
4911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4912 # <limits.h> exists even on freestanding compilers.
4913 # On the NeXT, cc -E runs the code through the compiler's parser,
4914 # not just through cpp. "Syntax error" is here to catch this case.
4915 cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h. */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 #ifdef __STDC__
4922 # include <limits.h>
4923 #else
4924 # include <assert.h>
4925 #endif
4926 Syntax error
4927 _ACEOF
4928 if { (ac_try="$ac_cpp conftest.$ac_ext"
4929 case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932 esac
4933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4934 $as_echo "$ac_try_echo") >&5
4935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null && {
4942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 }; then
4946 else
4947 $as_echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4950 # Broken: fails on valid input.
4951 continue
4954 rm -f conftest.err conftest.$ac_ext
4956 # OK, works on sane cases. Now check whether nonexistent headers
4957 # can be detected and how.
4958 cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h. */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 #include <ac_nonexistent.h>
4965 _ACEOF
4966 if { (ac_try="$ac_cpp conftest.$ac_ext"
4967 case "(($ac_try" in
4968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4970 esac
4971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4972 $as_echo "$ac_try_echo") >&5
4973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4974 ac_status=$?
4975 grep -v '^ *+' conftest.er1 >conftest.err
4976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } >/dev/null && {
4980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4982 }; then
4983 # Broken: success on invalid input.
4984 continue
4985 else
4986 $as_echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4989 # Passes both tests.
4990 ac_preproc_ok=:
4991 break
4994 rm -f conftest.err conftest.$ac_ext
4996 done
4997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4998 rm -f conftest.err conftest.$ac_ext
4999 if $ac_preproc_ok; then
5000 break
5003 done
5004 ac_cv_prog_CPP=$CPP
5007 CPP=$ac_cv_prog_CPP
5008 else
5009 ac_cv_prog_CPP=$CPP
5011 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5012 $as_echo "$CPP" >&6; }
5013 ac_preproc_ok=false
5014 for ac_c_preproc_warn_flag in '' yes
5016 # Use a header file that comes with gcc, so configuring glibc
5017 # with a fresh cross-compiler works.
5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019 # <limits.h> exists even on freestanding compilers.
5020 # On the NeXT, cc -E runs the code through the compiler's parser,
5021 # not just through cpp. "Syntax error" is here to catch this case.
5022 cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h. */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028 #ifdef __STDC__
5029 # include <limits.h>
5030 #else
5031 # include <assert.h>
5032 #endif
5033 Syntax error
5034 _ACEOF
5035 if { (ac_try="$ac_cpp conftest.$ac_ext"
5036 case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039 esac
5040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5041 $as_echo "$ac_try_echo") >&5
5042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5043 ac_status=$?
5044 grep -v '^ *+' conftest.er1 >conftest.err
5045 rm -f conftest.er1
5046 cat conftest.err >&5
5047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } >/dev/null && {
5049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5050 test ! -s conftest.err
5051 }; then
5053 else
5054 $as_echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 # Broken: fails on valid input.
5058 continue
5061 rm -f conftest.err conftest.$ac_ext
5063 # OK, works on sane cases. Now check whether nonexistent headers
5064 # can be detected and how.
5065 cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h. */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 #include <ac_nonexistent.h>
5072 _ACEOF
5073 if { (ac_try="$ac_cpp conftest.$ac_ext"
5074 case "(($ac_try" in
5075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5076 *) ac_try_echo=$ac_try;;
5077 esac
5078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5079 $as_echo "$ac_try_echo") >&5
5080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5081 ac_status=$?
5082 grep -v '^ *+' conftest.er1 >conftest.err
5083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } >/dev/null && {
5087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5088 test ! -s conftest.err
5089 }; then
5090 # Broken: success on invalid input.
5091 continue
5092 else
5093 $as_echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5096 # Passes both tests.
5097 ac_preproc_ok=:
5098 break
5101 rm -f conftest.err conftest.$ac_ext
5103 done
5104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5105 rm -f conftest.err conftest.$ac_ext
5106 if $ac_preproc_ok; then
5108 else
5109 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5110 See \`config.log' for more details." >&5
5111 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5112 See \`config.log' for more details." >&2;}
5113 { (exit 1); exit 1; }; }
5116 ac_ext=c
5117 ac_cpp='$CPP $CPPFLAGS'
5118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5122 # Find a good install program. We prefer a C program (faster),
5123 # so one script is as good as another. But avoid the broken or
5124 # incompatible versions:
5125 # SysV /etc/install, /usr/sbin/install
5126 # SunOS /usr/etc/install
5127 # IRIX /sbin/install
5128 # AIX /bin/install
5129 # AmigaOS /C/install, which installs bootblocks on floppy discs
5130 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5133 # OS/2's system install, which has a completely different semantic
5134 # ./install, which can be erroneously created by make from ./install.sh.
5135 # Reject install programs that cannot install multiple files.
5136 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5137 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5138 if test -z "$INSTALL"; then
5139 if test "${ac_cv_path_install+set}" = set; then
5140 $as_echo_n "(cached) " >&6
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 # Account for people who put trailing slashes in PATH elements.
5148 case $as_dir/ in
5149 ./ | .// | /cC/* | \
5150 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5151 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5152 /usr/ucb/* ) ;;
5154 # OSF1 and SCO ODT 3.0 have their own names for install.
5155 # Don't use installbsd from OSF since it installs stuff as root
5156 # by default.
5157 for ac_prog in ginstall scoinst install; do
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5160 if test $ac_prog = install &&
5161 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5162 # AIX install. It has an incompatible calling convention.
5164 elif test $ac_prog = install &&
5165 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5166 # program-specific install script used by HP pwplus--don't use.
5168 else
5169 rm -rf conftest.one conftest.two conftest.dir
5170 echo one > conftest.one
5171 echo two > conftest.two
5172 mkdir conftest.dir
5173 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5174 test -s conftest.one && test -s conftest.two &&
5175 test -s conftest.dir/conftest.one &&
5176 test -s conftest.dir/conftest.two
5177 then
5178 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5179 break 3
5183 done
5184 done
5186 esac
5188 done
5189 IFS=$as_save_IFS
5191 rm -rf conftest.one conftest.two conftest.dir
5194 if test "${ac_cv_path_install+set}" = set; then
5195 INSTALL=$ac_cv_path_install
5196 else
5197 # As a last resort, use the slow shell script. Don't cache a
5198 # value for INSTALL within a source directory, because that will
5199 # break other packages using the cache if that directory is
5200 # removed, or if the value is a relative name.
5201 INSTALL=$ac_install_sh
5204 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5205 $as_echo "$INSTALL" >&6; }
5207 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5208 # It thinks the first close brace ends the variable substitution.
5209 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5211 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5213 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5215 if test "x$RANLIB" = x; then
5216 if test -n "$ac_tool_prefix"; then
5217 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5218 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if test "${ac_cv_prog_RANLIB+set}" = set; then
5222 $as_echo_n "(cached) " >&6
5223 else
5224 if test -n "$RANLIB"; then
5225 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5235 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5238 done
5239 done
5240 IFS=$as_save_IFS
5244 RANLIB=$ac_cv_prog_RANLIB
5245 if test -n "$RANLIB"; then
5246 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5247 $as_echo "$RANLIB" >&6; }
5248 else
5249 { $as_echo "$as_me:$LINENO: result: no" >&5
5250 $as_echo "no" >&6; }
5255 if test -z "$ac_cv_prog_RANLIB"; then
5256 ac_ct_RANLIB=$RANLIB
5257 # Extract the first word of "ranlib", so it can be a program name with args.
5258 set dummy ranlib; ac_word=$2
5259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5260 $as_echo_n "checking for $ac_word... " >&6; }
5261 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5262 $as_echo_n "(cached) " >&6
5263 else
5264 if test -n "$ac_ct_RANLIB"; then
5265 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5266 else
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5270 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274 ac_cv_prog_ac_ct_RANLIB="ranlib"
5275 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5278 done
5279 done
5280 IFS=$as_save_IFS
5284 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5285 if test -n "$ac_ct_RANLIB"; then
5286 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5287 $as_echo "$ac_ct_RANLIB" >&6; }
5288 else
5289 { $as_echo "$as_me:$LINENO: result: no" >&5
5290 $as_echo "no" >&6; }
5293 if test "x$ac_ct_RANLIB" = x; then
5294 RANLIB=":"
5295 else
5296 case $cross_compiling:$ac_tool_warned in
5297 yes:)
5298 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5299 whose name does not start with the host triplet. If you think this
5300 configuration is useful to you, please write to autoconf@gnu.org." >&5
5301 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5302 whose name does not start with the host triplet. If you think this
5303 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5304 ac_tool_warned=yes ;;
5305 esac
5306 RANLIB=$ac_ct_RANLIB
5308 else
5309 RANLIB="$ac_cv_prog_RANLIB"
5313 # Extract the first word of "install-info", so it can be a program name with args.
5314 set dummy install-info; ac_word=$2
5315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5318 $as_echo_n "(cached) " >&6
5319 else
5320 case $INSTALL_INFO in
5321 [\\/]* | ?:[\\/]*)
5322 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5332 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5336 done
5337 done
5338 IFS=$as_save_IFS
5341 esac
5343 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5344 if test -n "$INSTALL_INFO"; then
5345 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5346 $as_echo "$INSTALL_INFO" >&6; }
5347 else
5348 { $as_echo "$as_me:$LINENO: result: no" >&5
5349 $as_echo "no" >&6; }
5353 # Extract the first word of "install-info", so it can be a program name with args.
5354 set dummy install-info; ac_word=$2
5355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5358 $as_echo_n "(cached) " >&6
5359 else
5360 case $INSTALL_INFO in
5361 [\\/]* | ?:[\\/]*)
5362 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in /usr/sbin
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5376 done
5377 done
5378 IFS=$as_save_IFS
5381 esac
5383 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5384 if test -n "$INSTALL_INFO"; then
5385 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5386 $as_echo "$INSTALL_INFO" >&6; }
5387 else
5388 { $as_echo "$as_me:$LINENO: result: no" >&5
5389 $as_echo "no" >&6; }
5393 # Extract the first word of "install-info", so it can be a program name with args.
5394 set dummy install-info; ac_word=$2
5395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5398 $as_echo_n "(cached) " >&6
5399 else
5400 case $INSTALL_INFO in
5401 [\\/]* | ?:[\\/]*)
5402 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in /sbin
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5416 done
5417 done
5418 IFS=$as_save_IFS
5420 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5422 esac
5424 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5425 if test -n "$INSTALL_INFO"; then
5426 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5427 $as_echo "$INSTALL_INFO" >&6; }
5428 else
5429 { $as_echo "$as_me:$LINENO: result: no" >&5
5430 $as_echo "no" >&6; }
5434 # Extract the first word of "gzip", so it can be a program name with args.
5435 set dummy gzip; ac_word=$2
5436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5439 $as_echo_n "(cached) " >&6
5440 else
5441 case $GZIP_PROG in
5442 [\\/]* | ?:[\\/]*)
5443 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5453 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 break 2
5457 done
5458 done
5459 IFS=$as_save_IFS
5462 esac
5464 GZIP_PROG=$ac_cv_path_GZIP_PROG
5465 if test -n "$GZIP_PROG"; then
5466 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5467 $as_echo "$GZIP_PROG" >&6; }
5468 else
5469 { $as_echo "$as_me:$LINENO: result: no" >&5
5470 $as_echo "no" >&6; }
5476 ## Need makeinfo >= 4.6 (?) to build the manuals.
5477 # Extract the first word of "makeinfo", so it can be a program name with args.
5478 set dummy makeinfo; ac_word=$2
5479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5482 $as_echo_n "(cached) " >&6
5483 else
5484 case $MAKEINFO in
5485 [\\/]* | ?:[\\/]*)
5486 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5496 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
5500 done
5501 done
5502 IFS=$as_save_IFS
5504 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5506 esac
5508 MAKEINFO=$ac_cv_path_MAKEINFO
5509 if test -n "$MAKEINFO"; then
5510 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5511 $as_echo "$MAKEINFO" >&6; }
5512 else
5513 { $as_echo "$as_me:$LINENO: result: no" >&5
5514 $as_echo "no" >&6; }
5518 if test "$MAKEINFO" != "no" && \
5519 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
5520 MAKEINFO=no
5523 ## Makeinfo is unusual. For a released Emacs, the manuals are
5524 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5525 ## therefore in the category of "special tools" not normally required, which
5526 ## configure does not have to check for (eg autoconf itself).
5527 ## In a CVS checkout on the other hand, the manuals are not included.
5528 ## So makeinfo is a requirement to build from CVS, and configure
5529 ## should test for it as it does for any other build requirement.
5530 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5531 ## with pre-built manuals, from a CVS checkout.
5532 if test "$MAKEINFO" = "no"; then
5533 if test "x${with_makeinfo}" = "xno"; then
5534 MAKEINFO=off
5535 elif ! test -e $srcdir/info/emacs; then
5536 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5537 source tree does not seem to have pre-built manuals in the \`info' directory.
5538 Either install a suitable version of makeinfo, or re-run configure
5539 with the \`--without-makeinfo' option to build without the manuals. " >&5
5540 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5541 source tree does not seem to have pre-built manuals in the \`info' directory.
5542 Either install a suitable version of makeinfo, or re-run configure
5543 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5544 { (exit 1); exit 1; }; }
5549 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5550 then
5551 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5554 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5555 then
5556 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5560 late_LDFLAGS=$LDFLAGS
5561 if test "$GCC" = yes; then
5562 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5563 else
5564 LDFLAGS="$LDFLAGS -znocombreloc"
5567 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5568 $as_echo_n "checking for -znocombreloc... " >&6; }
5569 cat >conftest.$ac_ext <<_ACEOF
5570 main(){return 0;}
5571 _ACEOF
5572 rm -f conftest.$ac_objext conftest$ac_exeext
5573 if { (ac_try="$ac_link"
5574 case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577 esac
5578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5579 $as_echo "$ac_try_echo") >&5
5580 (eval "$ac_link") 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && {
5587 test -z "$ac_c_werror_flag" ||
5588 test ! -s conftest.err
5589 } && test -s conftest$ac_exeext && {
5590 test "$cross_compiling" = yes ||
5591 $as_test_x conftest$ac_exeext
5592 }; then
5593 { $as_echo "$as_me:$LINENO: result: yes" >&5
5594 $as_echo "yes" >&6; }
5595 else
5596 $as_echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5599 LDFLAGS=$late_LDFLAGS
5600 { $as_echo "$as_me:$LINENO: result: no" >&5
5601 $as_echo "no" >&6; }
5604 rm -rf conftest.dSYM
5605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5606 conftest$ac_exeext conftest.$ac_ext
5608 #### Extract some information from the operating system and machine files.
5610 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5611 - which libraries the lib-src programs will want, and
5612 - whether the GNU malloc routines are usable..." >&5
5613 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5614 - which libraries the lib-src programs will want, and
5615 - whether the GNU malloc routines are usable..." >&6;}
5617 ### First figure out CFLAGS (which we use for running the compiler here)
5618 ### and REAL_CFLAGS (which we use for real compilation).
5619 ### The two are the same except on a few systems, where they are made
5620 ### different to work around various lossages. For example,
5621 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5622 ### as implying static linking.
5624 ### If the CFLAGS env var is specified, we use that value
5625 ### instead of the default.
5627 ### It's not important that this name contain the PID; you can't run
5628 ### two configures in the same directory and have anything work
5629 ### anyway.
5630 tempcname="conftest.c"
5632 echo '
5633 #include "'${srcdir}'/src/'${opsysfile}'"
5634 #include "'${srcdir}'/src/'${machfile}'"
5635 #ifndef LIBS_MACHINE
5636 #define LIBS_MACHINE
5637 #endif
5638 #ifndef LIBS_SYSTEM
5639 #define LIBS_SYSTEM
5640 #endif
5641 #ifndef C_SWITCH_SYSTEM
5642 #define C_SWITCH_SYSTEM
5643 #endif
5644 #ifndef C_SWITCH_MACHINE
5645 #define C_SWITCH_MACHINE
5646 #endif
5647 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5648 configure___ c_switch_system=C_SWITCH_SYSTEM
5649 configure___ c_switch_machine=C_SWITCH_MACHINE
5651 #ifndef LIB_X11_LIB
5652 #define LIB_X11_LIB -lX11
5653 #endif
5655 #ifndef LIBX11_SYSTEM
5656 #define LIBX11_SYSTEM
5657 #endif
5658 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5660 #ifdef UNEXEC
5661 configure___ unexec=UNEXEC
5662 #else
5663 configure___ unexec=unexec.o
5664 #endif
5666 #ifdef SYSTEM_MALLOC
5667 configure___ system_malloc=yes
5668 #else
5669 configure___ system_malloc=no
5670 #endif
5672 #ifdef USE_MMAP_FOR_BUFFERS
5673 configure___ use_mmap_for_buffers=yes
5674 #else
5675 configure___ use_mmap_for_buffers=no
5676 #endif
5678 #ifndef C_DEBUG_SWITCH
5679 #define C_DEBUG_SWITCH -g
5680 #endif
5682 #ifndef C_OPTIMIZE_SWITCH
5683 #ifdef __GNUC__
5684 #define C_OPTIMIZE_SWITCH -O2
5685 #else
5686 #define C_OPTIMIZE_SWITCH -O
5687 #endif
5688 #endif
5690 #ifndef C_WARNINGS_SWITCH
5691 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5692 #endif
5694 #ifndef LD_SWITCH_MACHINE
5695 #define LD_SWITCH_MACHINE
5696 #endif
5698 #ifndef LD_SWITCH_SYSTEM
5699 #define LD_SWITCH_SYSTEM
5700 #endif
5702 #ifndef LD_SWITCH_X_SITE_AUX
5703 #define LD_SWITCH_X_SITE_AUX
5704 #endif
5706 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5707 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5709 #ifdef THIS_IS_CONFIGURE
5711 /* Get the CFLAGS for tests in configure. */
5712 #ifdef __GNUC__
5713 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5714 #else
5715 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5716 #endif
5718 #else /* not THIS_IS_CONFIGURE */
5720 /* Get the CFLAGS for real compilation. */
5721 #ifdef __GNUC__
5722 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5723 #else
5724 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5725 #endif
5727 #endif /* not THIS_IS_CONFIGURE */
5728 ' > ${tempcname}
5730 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5732 # The value of CPP is a quoted variable reference, so we need to do this
5733 # to get its actual value...
5734 CPP=`eval "echo $CPP"`
5735 eval `${CPP} -Isrc ${tempcname} \
5736 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5737 if test "x$SPECIFIED_CFLAGS" = x; then
5738 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5739 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5740 else
5741 REAL_CFLAGS="$CFLAGS"
5743 rm ${tempcname}
5745 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5747 ### Make sure subsequent tests use flags consistent with the build flags.
5749 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5750 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5751 else
5752 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5757 # Check whether --enable-largefile was given.
5758 if test "${enable_largefile+set}" = set; then
5759 enableval=$enable_largefile;
5762 if test "$enable_largefile" != no; then
5764 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5765 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5766 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5767 $as_echo_n "(cached) " >&6
5768 else
5769 ac_cv_sys_largefile_CC=no
5770 if test "$GCC" != yes; then
5771 ac_save_CC=$CC
5772 while :; do
5773 # IRIX 6.2 and later do not support large files by default,
5774 # so use the C compiler's -n32 option if that helps.
5775 cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h. */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 #include <sys/types.h>
5782 /* Check that off_t can represent 2**63 - 1 correctly.
5783 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5784 since some C++ compilers masquerading as C compilers
5785 incorrectly reject 9223372036854775807. */
5786 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5787 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5788 && LARGE_OFF_T % 2147483647 == 1)
5789 ? 1 : -1];
5791 main ()
5795 return 0;
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
5800 case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803 esac
5804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5805 $as_echo "$ac_try_echo") >&5
5806 (eval "$ac_compile") 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } && {
5813 test -z "$ac_c_werror_flag" ||
5814 test ! -s conftest.err
5815 } && test -s conftest.$ac_objext; then
5816 break
5817 else
5818 $as_echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5824 rm -f core conftest.err conftest.$ac_objext
5825 CC="$CC -n32"
5826 rm -f conftest.$ac_objext
5827 if { (ac_try="$ac_compile"
5828 case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831 esac
5832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5833 $as_echo "$ac_try_echo") >&5
5834 (eval "$ac_compile") 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && {
5841 test -z "$ac_c_werror_flag" ||
5842 test ! -s conftest.err
5843 } && test -s conftest.$ac_objext; then
5844 ac_cv_sys_largefile_CC=' -n32'; break
5845 else
5846 $as_echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5852 rm -f core conftest.err conftest.$ac_objext
5853 break
5854 done
5855 CC=$ac_save_CC
5856 rm -f conftest.$ac_ext
5859 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5860 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5861 if test "$ac_cv_sys_largefile_CC" != no; then
5862 CC=$CC$ac_cv_sys_largefile_CC
5865 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5866 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5867 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5868 $as_echo_n "(cached) " >&6
5869 else
5870 while :; do
5871 cat >conftest.$ac_ext <<_ACEOF
5872 /* confdefs.h. */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 #include <sys/types.h>
5878 /* Check that off_t can represent 2**63 - 1 correctly.
5879 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5880 since some C++ compilers masquerading as C compilers
5881 incorrectly reject 9223372036854775807. */
5882 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5883 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5884 && LARGE_OFF_T % 2147483647 == 1)
5885 ? 1 : -1];
5887 main ()
5891 return 0;
5893 _ACEOF
5894 rm -f conftest.$ac_objext
5895 if { (ac_try="$ac_compile"
5896 case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899 esac
5900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5901 $as_echo "$ac_try_echo") >&5
5902 (eval "$ac_compile") 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } && {
5909 test -z "$ac_c_werror_flag" ||
5910 test ! -s conftest.err
5911 } && test -s conftest.$ac_objext; then
5912 ac_cv_sys_file_offset_bits=no; break
5913 else
5914 $as_echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921 cat >conftest.$ac_ext <<_ACEOF
5922 /* confdefs.h. */
5923 _ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 #define _FILE_OFFSET_BITS 64
5928 #include <sys/types.h>
5929 /* Check that off_t can represent 2**63 - 1 correctly.
5930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5931 since some C++ compilers masquerading as C compilers
5932 incorrectly reject 9223372036854775807. */
5933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5935 && LARGE_OFF_T % 2147483647 == 1)
5936 ? 1 : -1];
5938 main ()
5942 return 0;
5944 _ACEOF
5945 rm -f conftest.$ac_objext
5946 if { (ac_try="$ac_compile"
5947 case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950 esac
5951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5952 $as_echo "$ac_try_echo") >&5
5953 (eval "$ac_compile") 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && {
5960 test -z "$ac_c_werror_flag" ||
5961 test ! -s conftest.err
5962 } && test -s conftest.$ac_objext; then
5963 ac_cv_sys_file_offset_bits=64; break
5964 else
5965 $as_echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 ac_cv_sys_file_offset_bits=unknown
5973 break
5974 done
5976 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5977 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5978 case $ac_cv_sys_file_offset_bits in #(
5979 no | unknown) ;;
5981 cat >>confdefs.h <<_ACEOF
5982 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5983 _ACEOF
5985 esac
5986 rm -rf conftest*
5987 if test $ac_cv_sys_file_offset_bits = unknown; then
5988 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5989 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5990 if test "${ac_cv_sys_large_files+set}" = set; then
5991 $as_echo_n "(cached) " >&6
5992 else
5993 while :; do
5994 cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h. */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 #include <sys/types.h>
6001 /* Check that off_t can represent 2**63 - 1 correctly.
6002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6003 since some C++ compilers masquerading as C compilers
6004 incorrectly reject 9223372036854775807. */
6005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6007 && LARGE_OFF_T % 2147483647 == 1)
6008 ? 1 : -1];
6010 main ()
6014 return 0;
6016 _ACEOF
6017 rm -f conftest.$ac_objext
6018 if { (ac_try="$ac_compile"
6019 case "(($ac_try" in
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6022 esac
6023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6024 $as_echo "$ac_try_echo") >&5
6025 (eval "$ac_compile") 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_c_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest.$ac_objext; then
6035 ac_cv_sys_large_files=no; break
6036 else
6037 $as_echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044 cat >conftest.$ac_ext <<_ACEOF
6045 /* confdefs.h. */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 #define _LARGE_FILES 1
6051 #include <sys/types.h>
6052 /* Check that off_t can represent 2**63 - 1 correctly.
6053 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6054 since some C++ compilers masquerading as C compilers
6055 incorrectly reject 9223372036854775807. */
6056 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6057 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6058 && LARGE_OFF_T % 2147483647 == 1)
6059 ? 1 : -1];
6061 main ()
6065 return 0;
6067 _ACEOF
6068 rm -f conftest.$ac_objext
6069 if { (ac_try="$ac_compile"
6070 case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073 esac
6074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6075 $as_echo "$ac_try_echo") >&5
6076 (eval "$ac_compile") 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } && {
6083 test -z "$ac_c_werror_flag" ||
6084 test ! -s conftest.err
6085 } && test -s conftest.$ac_objext; then
6086 ac_cv_sys_large_files=1; break
6087 else
6088 $as_echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095 ac_cv_sys_large_files=unknown
6096 break
6097 done
6099 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6100 $as_echo "$ac_cv_sys_large_files" >&6; }
6101 case $ac_cv_sys_large_files in #(
6102 no | unknown) ;;
6104 cat >>confdefs.h <<_ACEOF
6105 #define _LARGE_FILES $ac_cv_sys_large_files
6106 _ACEOF
6108 esac
6109 rm -rf conftest*
6115 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6116 ### be located in either /usr/lib64 or /usr/lib.
6117 ### In some rare cases, /usr/lib64 exists but does not contain the
6118 ### relevant files (bug#1287). Hence test for crtn.o.
6119 case "${canonical}" in
6120 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6121 if test -e /usr/lib64/crtn.o; then
6123 cat >>confdefs.h <<\_ACEOF
6124 #define HAVE_LIB64_DIR 1
6125 _ACEOF
6128 esac
6133 if test "${with_sound}" != "no"; then
6134 # Sound support for GNU/Linux and the free BSDs.
6138 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6142 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6143 $as_echo_n "checking for $ac_header... " >&6; }
6144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6145 $as_echo_n "(cached) " >&6
6147 ac_res=`eval 'as_val=${'$as_ac_Header'}
6148 $as_echo "$as_val"'`
6149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6150 $as_echo "$ac_res" >&6; }
6151 else
6152 # Is the header compilable?
6153 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6154 $as_echo_n "checking $ac_header usability... " >&6; }
6155 cat >conftest.$ac_ext <<_ACEOF
6156 /* confdefs.h. */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 $ac_includes_default
6162 #include <$ac_header>
6163 _ACEOF
6164 rm -f conftest.$ac_objext
6165 if { (ac_try="$ac_compile"
6166 case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169 esac
6170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6171 $as_echo "$ac_try_echo") >&5
6172 (eval "$ac_compile") 2>conftest.er1
6173 ac_status=$?
6174 grep -v '^ *+' conftest.er1 >conftest.err
6175 rm -f conftest.er1
6176 cat conftest.err >&5
6177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } && {
6179 test -z "$ac_c_werror_flag" ||
6180 test ! -s conftest.err
6181 } && test -s conftest.$ac_objext; then
6182 ac_header_compiler=yes
6183 else
6184 $as_echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6187 ac_header_compiler=no
6190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6192 $as_echo "$ac_header_compiler" >&6; }
6194 # Is the header present?
6195 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6196 $as_echo_n "checking $ac_header presence... " >&6; }
6197 cat >conftest.$ac_ext <<_ACEOF
6198 /* confdefs.h. */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6203 #include <$ac_header>
6204 _ACEOF
6205 if { (ac_try="$ac_cpp conftest.$ac_ext"
6206 case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209 esac
6210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6211 $as_echo "$ac_try_echo") >&5
6212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } >/dev/null && {
6219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 }; then
6222 ac_header_preproc=yes
6223 else
6224 $as_echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 ac_header_preproc=no
6230 rm -f conftest.err conftest.$ac_ext
6231 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6232 $as_echo "$ac_header_preproc" >&6; }
6234 # So? What about this header?
6235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6236 yes:no: )
6237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6238 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6240 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6241 ac_header_preproc=yes
6243 no:yes:* )
6244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6245 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6247 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6249 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6251 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6253 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6255 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6258 esac
6259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6260 $as_echo_n "checking for $ac_header... " >&6; }
6261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6262 $as_echo_n "(cached) " >&6
6263 else
6264 eval "$as_ac_Header=\$ac_header_preproc"
6266 ac_res=`eval 'as_val=${'$as_ac_Header'}
6267 $as_echo "$as_val"'`
6268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6269 $as_echo "$ac_res" >&6; }
6272 if test `eval 'as_val=${'$as_ac_Header'}
6273 $as_echo "$as_val"'` = yes; then
6274 cat >>confdefs.h <<_ACEOF
6275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6276 _ACEOF
6280 done
6282 # Emulation library used on NetBSD.
6283 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6284 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6285 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6286 $as_echo_n "(cached) " >&6
6287 else
6288 ac_check_lib_save_LIBS=$LIBS
6289 LIBS="-lossaudio $LIBS"
6290 cat >conftest.$ac_ext <<_ACEOF
6291 /* confdefs.h. */
6292 _ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6297 /* Override any GCC internal prototype to avoid an error.
6298 Use char because int might match the return type of a GCC
6299 builtin and then its argument prototype would still apply. */
6300 #ifdef __cplusplus
6301 extern "C"
6302 #endif
6303 char _oss_ioctl ();
6305 main ()
6307 return _oss_ioctl ();
6309 return 0;
6311 _ACEOF
6312 rm -f conftest.$ac_objext conftest$ac_exeext
6313 if { (ac_try="$ac_link"
6314 case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6317 esac
6318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6319 $as_echo "$ac_try_echo") >&5
6320 (eval "$ac_link") 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } && {
6327 test -z "$ac_c_werror_flag" ||
6328 test ! -s conftest.err
6329 } && test -s conftest$ac_exeext && {
6330 test "$cross_compiling" = yes ||
6331 $as_test_x conftest$ac_exeext
6332 }; then
6333 ac_cv_lib_ossaudio__oss_ioctl=yes
6334 else
6335 $as_echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6338 ac_cv_lib_ossaudio__oss_ioctl=no
6341 rm -rf conftest.dSYM
6342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6343 conftest$ac_exeext conftest.$ac_ext
6344 LIBS=$ac_check_lib_save_LIBS
6346 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6347 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6348 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6349 LIBSOUND=-lossaudio
6350 else
6351 LIBSOUND=
6356 ALSA_REQUIRED=1.0.0
6357 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6359 succeeded=no
6361 # Extract the first word of "pkg-config", so it can be a program name with args.
6362 set dummy pkg-config; ac_word=$2
6363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6366 $as_echo_n "(cached) " >&6
6367 else
6368 case $PKG_CONFIG in
6369 [\\/]* | ?:[\\/]*)
6370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 break 2
6384 done
6385 done
6386 IFS=$as_save_IFS
6388 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6390 esac
6392 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6393 if test -n "$PKG_CONFIG"; then
6394 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6395 $as_echo "$PKG_CONFIG" >&6; }
6396 else
6397 { $as_echo "$as_me:$LINENO: result: no" >&5
6398 $as_echo "no" >&6; }
6403 if test "$PKG_CONFIG" = "no" ; then
6404 HAVE_ALSA=no
6405 else
6406 PKG_CONFIG_MIN_VERSION=0.9.0
6407 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6408 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6409 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6411 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6412 { $as_echo "$as_me:$LINENO: result: yes" >&5
6413 $as_echo "yes" >&6; }
6414 succeeded=yes
6416 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6417 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6418 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6419 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6420 $as_echo "$ALSA_CFLAGS" >&6; }
6422 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6423 $as_echo_n "checking ALSA_LIBS... " >&6; }
6424 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6425 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6426 $as_echo "$ALSA_LIBS" >&6; }
6427 else
6428 { $as_echo "$as_me:$LINENO: result: no" >&5
6429 $as_echo "no" >&6; }
6430 ALSA_CFLAGS=""
6431 ALSA_LIBS=""
6432 ## If we have a custom action on failure, don't print errors, but
6433 ## do set a variable so people can do so.
6434 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6440 else
6441 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6442 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6446 if test $succeeded = yes; then
6447 HAVE_ALSA=yes
6448 else
6449 HAVE_ALSA=no
6452 if test $HAVE_ALSA = yes; then
6453 SAVE_CFLAGS="$CFLAGS"
6454 SAVE_LDFLAGS="$LDFLAGS"
6455 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6456 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6457 cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h. */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 #include <asoundlib.h>
6465 main ()
6467 snd_lib_error_set_handler (0);
6469 return 0;
6471 _ACEOF
6472 rm -f conftest.$ac_objext
6473 if { (ac_try="$ac_compile"
6474 case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6477 esac
6478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6479 $as_echo "$ac_try_echo") >&5
6480 (eval "$ac_compile") 2>conftest.er1
6481 ac_status=$?
6482 grep -v '^ *+' conftest.er1 >conftest.err
6483 rm -f conftest.er1
6484 cat conftest.err >&5
6485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } && {
6487 test -z "$ac_c_werror_flag" ||
6488 test ! -s conftest.err
6489 } && test -s conftest.$ac_objext; then
6490 emacs_alsa_normal=yes
6491 else
6492 $as_echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 emacs_alsa_normal=no
6498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 if test "$emacs_alsa_normal" != yes; then
6500 cat >conftest.$ac_ext <<_ACEOF
6501 /* confdefs.h. */
6502 _ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6506 #include <alsa/asoundlib.h>
6508 main ()
6510 snd_lib_error_set_handler (0);
6512 return 0;
6514 _ACEOF
6515 rm -f conftest.$ac_objext
6516 if { (ac_try="$ac_compile"
6517 case "(($ac_try" in
6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519 *) ac_try_echo=$ac_try;;
6520 esac
6521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6522 $as_echo "$ac_try_echo") >&5
6523 (eval "$ac_compile") 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } && {
6530 test -z "$ac_c_werror_flag" ||
6531 test ! -s conftest.err
6532 } && test -s conftest.$ac_objext; then
6533 emacs_alsa_subdir=yes
6534 else
6535 $as_echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6538 emacs_alsa_subdir=no
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 if test "$emacs_alsa_subdir" != yes; then
6543 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6544 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6545 { (exit 1); exit 1; }; }
6547 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6550 CFLAGS="$SAVE_CFLAGS"
6551 LDFLAGS="$SAVE_LDFLAGS"
6552 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6553 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6555 cat >>confdefs.h <<\_ACEOF
6556 #define HAVE_ALSA 1
6557 _ACEOF
6588 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6589 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6590 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6591 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6592 sys/utsname.h pwd.h
6594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6596 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6597 $as_echo_n "checking for $ac_header... " >&6; }
6598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6599 $as_echo_n "(cached) " >&6
6601 ac_res=`eval 'as_val=${'$as_ac_Header'}
6602 $as_echo "$as_val"'`
6603 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6604 $as_echo "$ac_res" >&6; }
6605 else
6606 # Is the header compilable?
6607 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6608 $as_echo_n "checking $ac_header usability... " >&6; }
6609 cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h. */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 $ac_includes_default
6616 #include <$ac_header>
6617 _ACEOF
6618 rm -f conftest.$ac_objext
6619 if { (ac_try="$ac_compile"
6620 case "(($ac_try" in
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6623 esac
6624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6625 $as_echo "$ac_try_echo") >&5
6626 (eval "$ac_compile") 2>conftest.er1
6627 ac_status=$?
6628 grep -v '^ *+' conftest.er1 >conftest.err
6629 rm -f conftest.er1
6630 cat conftest.err >&5
6631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest.$ac_objext; then
6636 ac_header_compiler=yes
6637 else
6638 $as_echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6641 ac_header_compiler=no
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6646 $as_echo "$ac_header_compiler" >&6; }
6648 # Is the header present?
6649 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6650 $as_echo_n "checking $ac_header presence... " >&6; }
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 #include <$ac_header>
6658 _ACEOF
6659 if { (ac_try="$ac_cpp conftest.$ac_ext"
6660 case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6663 esac
6664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6665 $as_echo "$ac_try_echo") >&5
6666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6667 ac_status=$?
6668 grep -v '^ *+' conftest.er1 >conftest.err
6669 rm -f conftest.er1
6670 cat conftest.err >&5
6671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } >/dev/null && {
6673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6674 test ! -s conftest.err
6675 }; then
6676 ac_header_preproc=yes
6677 else
6678 $as_echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6681 ac_header_preproc=no
6684 rm -f conftest.err conftest.$ac_ext
6685 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6686 $as_echo "$ac_header_preproc" >&6; }
6688 # So? What about this header?
6689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6690 yes:no: )
6691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6692 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6694 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6695 ac_header_preproc=yes
6697 no:yes:* )
6698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6699 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6701 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6703 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6705 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6709 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6712 esac
6713 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6714 $as_echo_n "checking for $ac_header... " >&6; }
6715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6716 $as_echo_n "(cached) " >&6
6717 else
6718 eval "$as_ac_Header=\$ac_header_preproc"
6720 ac_res=`eval 'as_val=${'$as_ac_Header'}
6721 $as_echo "$as_val"'`
6722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6723 $as_echo "$ac_res" >&6; }
6726 if test `eval 'as_val=${'$as_ac_Header'}
6727 $as_echo "$as_val"'` = yes; then
6728 cat >>confdefs.h <<_ACEOF
6729 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6730 _ACEOF
6734 done
6737 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6738 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6739 cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h. */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 #include <sys/personality.h>
6747 main ()
6749 personality (PER_LINUX32)
6751 return 0;
6753 _ACEOF
6754 rm -f conftest.$ac_objext
6755 if { (ac_try="$ac_compile"
6756 case "(($ac_try" in
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6759 esac
6760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6761 $as_echo "$ac_try_echo") >&5
6762 (eval "$ac_compile") 2>conftest.er1
6763 ac_status=$?
6764 grep -v '^ *+' conftest.er1 >conftest.err
6765 rm -f conftest.er1
6766 cat conftest.err >&5
6767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } && {
6769 test -z "$ac_c_werror_flag" ||
6770 test ! -s conftest.err
6771 } && test -s conftest.$ac_objext; then
6772 emacs_cv_personality_linux32=yes
6773 else
6774 $as_echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6777 emacs_cv_personality_linux32=no
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6782 $as_echo "$emacs_cv_personality_linux32" >&6; }
6784 if test $emacs_cv_personality_linux32 = yes; then
6786 cat >>confdefs.h <<\_ACEOF
6787 #define HAVE_PERSONALITY_LINUX32 1
6788 _ACEOF
6793 for ac_header in term.h
6795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6796 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6797 $as_echo_n "checking for $ac_header... " >&6; }
6798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6799 $as_echo_n "(cached) " >&6
6800 else
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 #include <$ac_header>
6808 _ACEOF
6809 if { (ac_try="$ac_cpp conftest.$ac_ext"
6810 case "(($ac_try" in
6811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6812 *) ac_try_echo=$ac_try;;
6813 esac
6814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6815 $as_echo "$ac_try_echo") >&5
6816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6817 ac_status=$?
6818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
6821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } >/dev/null && {
6823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 }; then
6826 eval "$as_ac_Header=yes"
6827 else
6828 $as_echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 eval "$as_ac_Header=no"
6834 rm -f conftest.err conftest.$ac_ext
6836 ac_res=`eval 'as_val=${'$as_ac_Header'}
6837 $as_echo "$as_val"'`
6838 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6839 $as_echo "$ac_res" >&6; }
6840 if test `eval 'as_val=${'$as_ac_Header'}
6841 $as_echo "$as_val"'` = yes; then
6842 cat >>confdefs.h <<_ACEOF
6843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6844 _ACEOF
6848 done
6850 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6851 $as_echo_n "checking for ANSI C header files... " >&6; }
6852 if test "${ac_cv_header_stdc+set}" = set; then
6853 $as_echo_n "(cached) " >&6
6854 else
6855 cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h. */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 #include <stdlib.h>
6862 #include <stdarg.h>
6863 #include <string.h>
6864 #include <float.h>
6867 main ()
6871 return 0;
6873 _ACEOF
6874 rm -f conftest.$ac_objext
6875 if { (ac_try="$ac_compile"
6876 case "(($ac_try" in
6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6879 esac
6880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6881 $as_echo "$ac_try_echo") >&5
6882 (eval "$ac_compile") 2>conftest.er1
6883 ac_status=$?
6884 grep -v '^ *+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
6887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } && {
6889 test -z "$ac_c_werror_flag" ||
6890 test ! -s conftest.err
6891 } && test -s conftest.$ac_objext; then
6892 ac_cv_header_stdc=yes
6893 else
6894 $as_echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6897 ac_cv_header_stdc=no
6900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 if test $ac_cv_header_stdc = yes; then
6903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6904 cat >conftest.$ac_ext <<_ACEOF
6905 /* confdefs.h. */
6906 _ACEOF
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h. */
6910 #include <string.h>
6912 _ACEOF
6913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6914 $EGREP "memchr" >/dev/null 2>&1; then
6916 else
6917 ac_cv_header_stdc=no
6919 rm -f conftest*
6923 if test $ac_cv_header_stdc = yes; then
6924 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6925 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 #include <stdlib.h>
6933 _ACEOF
6934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6935 $EGREP "free" >/dev/null 2>&1; then
6937 else
6938 ac_cv_header_stdc=no
6940 rm -f conftest*
6944 if test $ac_cv_header_stdc = yes; then
6945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6946 if test "$cross_compiling" = yes; then
6948 else
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h. */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 #include <ctype.h>
6956 #include <stdlib.h>
6957 #if ((' ' & 0x0FF) == 0x020)
6958 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6959 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6960 #else
6961 # define ISLOWER(c) \
6962 (('a' <= (c) && (c) <= 'i') \
6963 || ('j' <= (c) && (c) <= 'r') \
6964 || ('s' <= (c) && (c) <= 'z'))
6965 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6966 #endif
6968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6970 main ()
6972 int i;
6973 for (i = 0; i < 256; i++)
6974 if (XOR (islower (i), ISLOWER (i))
6975 || toupper (i) != TOUPPER (i))
6976 return 2;
6977 return 0;
6979 _ACEOF
6980 rm -f conftest$ac_exeext
6981 if { (ac_try="$ac_link"
6982 case "(($ac_try" in
6983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984 *) ac_try_echo=$ac_try;;
6985 esac
6986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6987 $as_echo "$ac_try_echo") >&5
6988 (eval "$ac_link") 2>&5
6989 ac_status=$?
6990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6992 { (case "(($ac_try" in
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6995 esac
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998 (eval "$ac_try") 2>&5
6999 ac_status=$?
7000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7003 else
7004 $as_echo "$as_me: program exited with status $ac_status" >&5
7005 $as_echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7008 ( exit $ac_status )
7009 ac_cv_header_stdc=no
7011 rm -rf conftest.dSYM
7012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7018 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7019 $as_echo "$ac_cv_header_stdc" >&6; }
7020 if test $ac_cv_header_stdc = yes; then
7022 cat >>confdefs.h <<\_ACEOF
7023 #define STDC_HEADERS 1
7024 _ACEOF
7028 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7029 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7030 if test "${ac_cv_header_time+set}" = set; then
7031 $as_echo_n "(cached) " >&6
7032 else
7033 cat >conftest.$ac_ext <<_ACEOF
7034 /* confdefs.h. */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 #include <sys/types.h>
7040 #include <sys/time.h>
7041 #include <time.h>
7044 main ()
7046 if ((struct tm *) 0)
7047 return 0;
7049 return 0;
7051 _ACEOF
7052 rm -f conftest.$ac_objext
7053 if { (ac_try="$ac_compile"
7054 case "(($ac_try" in
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7057 esac
7058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7059 $as_echo "$ac_try_echo") >&5
7060 (eval "$ac_compile") 2>conftest.er1
7061 ac_status=$?
7062 grep -v '^ *+' conftest.er1 >conftest.err
7063 rm -f conftest.er1
7064 cat conftest.err >&5
7065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } && {
7067 test -z "$ac_c_werror_flag" ||
7068 test ! -s conftest.err
7069 } && test -s conftest.$ac_objext; then
7070 ac_cv_header_time=yes
7071 else
7072 $as_echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7075 ac_cv_header_time=no
7078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7081 $as_echo "$ac_cv_header_time" >&6; }
7082 if test $ac_cv_header_time = yes; then
7084 cat >>confdefs.h <<\_ACEOF
7085 #define TIME_WITH_SYS_TIME 1
7086 _ACEOF
7090 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7091 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7092 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7093 $as_echo_n "(cached) " >&6
7094 else
7095 cat >conftest.$ac_ext <<_ACEOF
7096 /* confdefs.h. */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 $ac_includes_default
7103 main ()
7105 #ifndef sys_siglist
7106 (void) sys_siglist;
7107 #endif
7110 return 0;
7112 _ACEOF
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7115 case "(($ac_try" in
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7118 esac
7119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7120 $as_echo "$ac_try_echo") >&5
7121 (eval "$ac_compile") 2>conftest.er1
7122 ac_status=$?
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest.$ac_objext; then
7131 ac_cv_have_decl_sys_siglist=yes
7132 else
7133 $as_echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 ac_cv_have_decl_sys_siglist=no
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7142 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7143 if test $ac_cv_have_decl_sys_siglist = yes; then
7145 cat >>confdefs.h <<_ACEOF
7146 #define HAVE_DECL_SYS_SIGLIST 1
7147 _ACEOF
7150 else
7151 cat >>confdefs.h <<_ACEOF
7152 #define HAVE_DECL_SYS_SIGLIST 0
7153 _ACEOF
7159 if test $ac_cv_have_decl_sys_siglist != yes; then
7160 # For Tru64, at least:
7161 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7162 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7163 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7164 $as_echo_n "(cached) " >&6
7165 else
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 $ac_includes_default
7174 main ()
7176 #ifndef __sys_siglist
7177 (void) __sys_siglist;
7178 #endif
7181 return 0;
7183 _ACEOF
7184 rm -f conftest.$ac_objext
7185 if { (ac_try="$ac_compile"
7186 case "(($ac_try" in
7187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188 *) ac_try_echo=$ac_try;;
7189 esac
7190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7191 $as_echo "$ac_try_echo") >&5
7192 (eval "$ac_compile") 2>conftest.er1
7193 ac_status=$?
7194 grep -v '^ *+' conftest.er1 >conftest.err
7195 rm -f conftest.er1
7196 cat conftest.err >&5
7197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } && {
7199 test -z "$ac_c_werror_flag" ||
7200 test ! -s conftest.err
7201 } && test -s conftest.$ac_objext; then
7202 ac_cv_have_decl___sys_siglist=yes
7203 else
7204 $as_echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7207 ac_cv_have_decl___sys_siglist=no
7210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7212 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7213 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7214 if test $ac_cv_have_decl___sys_siglist = yes; then
7216 cat >>confdefs.h <<_ACEOF
7217 #define HAVE_DECL___SYS_SIGLIST 1
7218 _ACEOF
7221 else
7222 cat >>confdefs.h <<_ACEOF
7223 #define HAVE_DECL___SYS_SIGLIST 0
7224 _ACEOF
7230 if test $ac_cv_have_decl___sys_siglist = yes; then
7232 cat >>confdefs.h <<\_ACEOF
7233 #define sys_siglist __sys_siglist
7234 _ACEOF
7238 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7239 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7240 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7241 $as_echo_n "(cached) " >&6
7242 else
7243 cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h. */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 #include <sys/types.h>
7250 #include <sys/wait.h>
7251 #ifndef WEXITSTATUS
7252 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7253 #endif
7254 #ifndef WIFEXITED
7255 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7256 #endif
7259 main ()
7261 int s;
7262 wait (&s);
7263 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7265 return 0;
7267 _ACEOF
7268 rm -f conftest.$ac_objext
7269 if { (ac_try="$ac_compile"
7270 case "(($ac_try" in
7271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272 *) ac_try_echo=$ac_try;;
7273 esac
7274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7275 $as_echo "$ac_try_echo") >&5
7276 (eval "$ac_compile") 2>conftest.er1
7277 ac_status=$?
7278 grep -v '^ *+' conftest.er1 >conftest.err
7279 rm -f conftest.er1
7280 cat conftest.err >&5
7281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } && {
7283 test -z "$ac_c_werror_flag" ||
7284 test ! -s conftest.err
7285 } && test -s conftest.$ac_objext; then
7286 ac_cv_header_sys_wait_h=yes
7287 else
7288 $as_echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7291 ac_cv_header_sys_wait_h=no
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7297 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7298 if test $ac_cv_header_sys_wait_h = yes; then
7300 cat >>confdefs.h <<\_ACEOF
7301 #define HAVE_SYS_WAIT_H 1
7302 _ACEOF
7307 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7308 $as_echo_n "checking for struct utimbuf... " >&6; }
7309 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7310 $as_echo_n "(cached) " >&6
7311 else
7312 cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h. */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 #ifdef TIME_WITH_SYS_TIME
7319 #include <sys/time.h>
7320 #include <time.h>
7321 #else
7322 #ifdef HAVE_SYS_TIME_H
7323 #include <sys/time.h>
7324 #else
7325 #include <time.h>
7326 #endif
7327 #endif
7328 #ifdef HAVE_UTIME_H
7329 #include <utime.h>
7330 #endif
7332 main ()
7334 static struct utimbuf x; x.actime = x.modtime;
7336 return 0;
7338 _ACEOF
7339 rm -f conftest.$ac_objext
7340 if { (ac_try="$ac_compile"
7341 case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344 esac
7345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7346 $as_echo "$ac_try_echo") >&5
7347 (eval "$ac_compile") 2>conftest.er1
7348 ac_status=$?
7349 grep -v '^ *+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
7352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest.$ac_objext; then
7357 emacs_cv_struct_utimbuf=yes
7358 else
7359 $as_echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7362 emacs_cv_struct_utimbuf=no
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7368 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7369 if test $emacs_cv_struct_utimbuf = yes; then
7371 cat >>confdefs.h <<\_ACEOF
7372 #define HAVE_STRUCT_UTIMBUF 1
7373 _ACEOF
7377 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7378 $as_echo_n "checking return type of signal handlers... " >&6; }
7379 if test "${ac_cv_type_signal+set}" = set; then
7380 $as_echo_n "(cached) " >&6
7381 else
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h. */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 #include <sys/types.h>
7389 #include <signal.h>
7392 main ()
7394 return *(signal (0, 0)) (0) == 1;
7396 return 0;
7398 _ACEOF
7399 rm -f conftest.$ac_objext
7400 if { (ac_try="$ac_compile"
7401 case "(($ac_try" in
7402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7404 esac
7405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7406 $as_echo "$ac_try_echo") >&5
7407 (eval "$ac_compile") 2>conftest.er1
7408 ac_status=$?
7409 grep -v '^ *+' conftest.er1 >conftest.err
7410 rm -f conftest.er1
7411 cat conftest.err >&5
7412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && {
7414 test -z "$ac_c_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest.$ac_objext; then
7417 ac_cv_type_signal=int
7418 else
7419 $as_echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7422 ac_cv_type_signal=void
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7428 $as_echo "$ac_cv_type_signal" >&6; }
7430 cat >>confdefs.h <<_ACEOF
7431 #define RETSIGTYPE $ac_cv_type_signal
7432 _ACEOF
7436 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7437 $as_echo_n "checking for speed_t... " >&6; }
7438 if test "${emacs_cv_speed_t+set}" = set; then
7439 $as_echo_n "(cached) " >&6
7440 else
7441 cat >conftest.$ac_ext <<_ACEOF
7442 /* confdefs.h. */
7443 _ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h. */
7447 #include <termios.h>
7449 main ()
7451 speed_t x = 1;
7453 return 0;
7455 _ACEOF
7456 rm -f conftest.$ac_objext
7457 if { (ac_try="$ac_compile"
7458 case "(($ac_try" in
7459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460 *) ac_try_echo=$ac_try;;
7461 esac
7462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7463 $as_echo "$ac_try_echo") >&5
7464 (eval "$ac_compile") 2>conftest.er1
7465 ac_status=$?
7466 grep -v '^ *+' conftest.er1 >conftest.err
7467 rm -f conftest.er1
7468 cat conftest.err >&5
7469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } && {
7471 test -z "$ac_c_werror_flag" ||
7472 test ! -s conftest.err
7473 } && test -s conftest.$ac_objext; then
7474 emacs_cv_speed_t=yes
7475 else
7476 $as_echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7479 emacs_cv_speed_t=no
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7485 $as_echo "$emacs_cv_speed_t" >&6; }
7486 if test $emacs_cv_speed_t = yes; then
7488 cat >>confdefs.h <<\_ACEOF
7489 #define HAVE_SPEED_T 1
7490 _ACEOF
7494 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7495 $as_echo_n "checking for struct timeval... " >&6; }
7496 if test "${emacs_cv_struct_timeval+set}" = set; then
7497 $as_echo_n "(cached) " >&6
7498 else
7499 cat >conftest.$ac_ext <<_ACEOF
7500 /* confdefs.h. */
7501 _ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7505 #ifdef TIME_WITH_SYS_TIME
7506 #include <sys/time.h>
7507 #include <time.h>
7508 #else
7509 #ifdef HAVE_SYS_TIME_H
7510 #include <sys/time.h>
7511 #else
7512 #include <time.h>
7513 #endif
7514 #endif
7516 main ()
7518 static struct timeval x; x.tv_sec = x.tv_usec;
7520 return 0;
7522 _ACEOF
7523 rm -f conftest.$ac_objext
7524 if { (ac_try="$ac_compile"
7525 case "(($ac_try" in
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7528 esac
7529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7530 $as_echo "$ac_try_echo") >&5
7531 (eval "$ac_compile") 2>conftest.er1
7532 ac_status=$?
7533 grep -v '^ *+' conftest.er1 >conftest.err
7534 rm -f conftest.er1
7535 cat conftest.err >&5
7536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); } && {
7538 test -z "$ac_c_werror_flag" ||
7539 test ! -s conftest.err
7540 } && test -s conftest.$ac_objext; then
7541 emacs_cv_struct_timeval=yes
7542 else
7543 $as_echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7546 emacs_cv_struct_timeval=no
7549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7552 $as_echo "$emacs_cv_struct_timeval" >&6; }
7553 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7554 if test $emacs_cv_struct_timeval = yes; then
7556 cat >>confdefs.h <<\_ACEOF
7557 #define HAVE_TIMEVAL 1
7558 _ACEOF
7562 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7563 $as_echo_n "checking for struct exception... " >&6; }
7564 if test "${emacs_cv_struct_exception+set}" = set; then
7565 $as_echo_n "(cached) " >&6
7566 else
7567 cat >conftest.$ac_ext <<_ACEOF
7568 /* confdefs.h. */
7569 _ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h. */
7573 #include <math.h>
7575 main ()
7577 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7579 return 0;
7581 _ACEOF
7582 rm -f conftest.$ac_objext
7583 if { (ac_try="$ac_compile"
7584 case "(($ac_try" in
7585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586 *) ac_try_echo=$ac_try;;
7587 esac
7588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7589 $as_echo "$ac_try_echo") >&5
7590 (eval "$ac_compile") 2>conftest.er1
7591 ac_status=$?
7592 grep -v '^ *+' conftest.er1 >conftest.err
7593 rm -f conftest.er1
7594 cat conftest.err >&5
7595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && {
7597 test -z "$ac_c_werror_flag" ||
7598 test ! -s conftest.err
7599 } && test -s conftest.$ac_objext; then
7600 emacs_cv_struct_exception=yes
7601 else
7602 $as_echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7605 emacs_cv_struct_exception=no
7608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7611 $as_echo "$emacs_cv_struct_exception" >&6; }
7612 HAVE_EXCEPTION=$emacs_cv_struct_exception
7613 if test $emacs_cv_struct_exception != yes; then
7615 cat >>confdefs.h <<\_ACEOF
7616 #define NO_MATHERR 1
7617 _ACEOF
7622 for ac_header in sys/socket.h
7624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7627 $as_echo_n "checking for $ac_header... " >&6; }
7628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7629 $as_echo_n "(cached) " >&6
7631 ac_res=`eval 'as_val=${'$as_ac_Header'}
7632 $as_echo "$as_val"'`
7633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7634 $as_echo "$ac_res" >&6; }
7635 else
7636 # Is the header compilable?
7637 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7638 $as_echo_n "checking $ac_header usability... " >&6; }
7639 cat >conftest.$ac_ext <<_ACEOF
7640 /* confdefs.h. */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 $ac_includes_default
7646 #include <$ac_header>
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7650 case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7653 esac
7654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7655 $as_echo "$ac_try_echo") >&5
7656 (eval "$ac_compile") 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest.$ac_objext; then
7666 ac_header_compiler=yes
7667 else
7668 $as_echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7671 ac_header_compiler=no
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7676 $as_echo "$ac_header_compiler" >&6; }
7678 # Is the header present?
7679 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7680 $as_echo_n "checking $ac_header presence... " >&6; }
7681 cat >conftest.$ac_ext <<_ACEOF
7682 /* confdefs.h. */
7683 _ACEOF
7684 cat confdefs.h >>conftest.$ac_ext
7685 cat >>conftest.$ac_ext <<_ACEOF
7686 /* end confdefs.h. */
7687 #include <$ac_header>
7688 _ACEOF
7689 if { (ac_try="$ac_cpp conftest.$ac_ext"
7690 case "(($ac_try" in
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7693 esac
7694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7695 $as_echo "$ac_try_echo") >&5
7696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7697 ac_status=$?
7698 grep -v '^ *+' conftest.er1 >conftest.err
7699 rm -f conftest.er1
7700 cat conftest.err >&5
7701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } >/dev/null && {
7703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7704 test ! -s conftest.err
7705 }; then
7706 ac_header_preproc=yes
7707 else
7708 $as_echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7711 ac_header_preproc=no
7714 rm -f conftest.err conftest.$ac_ext
7715 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7716 $as_echo "$ac_header_preproc" >&6; }
7718 # So? What about this header?
7719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7720 yes:no: )
7721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7722 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7724 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7725 ac_header_preproc=yes
7727 no:yes:* )
7728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7729 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7731 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7733 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7735 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7737 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7739 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7742 esac
7743 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7744 $as_echo_n "checking for $ac_header... " >&6; }
7745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7746 $as_echo_n "(cached) " >&6
7747 else
7748 eval "$as_ac_Header=\$ac_header_preproc"
7750 ac_res=`eval 'as_val=${'$as_ac_Header'}
7751 $as_echo "$as_val"'`
7752 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7753 $as_echo "$ac_res" >&6; }
7756 if test `eval 'as_val=${'$as_ac_Header'}
7757 $as_echo "$as_val"'` = yes; then
7758 cat >>confdefs.h <<_ACEOF
7759 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7760 _ACEOF
7764 done
7767 for ac_header in net/if.h
7769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7771 $as_echo_n "checking for $ac_header... " >&6; }
7772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7773 $as_echo_n "(cached) " >&6
7774 else
7775 cat >conftest.$ac_ext <<_ACEOF
7776 /* confdefs.h. */
7777 _ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7781 $ac_includes_default
7782 #if HAVE_SYS_SOCKET_H
7783 #include <sys/socket.h>
7784 #endif
7786 #include <$ac_header>
7787 _ACEOF
7788 rm -f conftest.$ac_objext
7789 if { (ac_try="$ac_compile"
7790 case "(($ac_try" in
7791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792 *) ac_try_echo=$ac_try;;
7793 esac
7794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7795 $as_echo "$ac_try_echo") >&5
7796 (eval "$ac_compile") 2>conftest.er1
7797 ac_status=$?
7798 grep -v '^ *+' conftest.er1 >conftest.err
7799 rm -f conftest.er1
7800 cat conftest.err >&5
7801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); } && {
7803 test -z "$ac_c_werror_flag" ||
7804 test ! -s conftest.err
7805 } && test -s conftest.$ac_objext; then
7806 eval "$as_ac_Header=yes"
7807 else
7808 $as_echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7811 eval "$as_ac_Header=no"
7814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 ac_res=`eval 'as_val=${'$as_ac_Header'}
7817 $as_echo "$as_val"'`
7818 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7819 $as_echo "$ac_res" >&6; }
7820 if test `eval 'as_val=${'$as_ac_Header'}
7821 $as_echo "$as_val"'` = yes; then
7822 cat >>confdefs.h <<_ACEOF
7823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7824 _ACEOF
7828 done
7831 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7832 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7833 if test "${ac_cv_struct_tm+set}" = set; then
7834 $as_echo_n "(cached) " >&6
7835 else
7836 cat >conftest.$ac_ext <<_ACEOF
7837 /* confdefs.h. */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7842 #include <sys/types.h>
7843 #include <time.h>
7846 main ()
7848 struct tm tm;
7849 int *p = &tm.tm_sec;
7850 return !p;
7852 return 0;
7854 _ACEOF
7855 rm -f conftest.$ac_objext
7856 if { (ac_try="$ac_compile"
7857 case "(($ac_try" in
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7860 esac
7861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7862 $as_echo "$ac_try_echo") >&5
7863 (eval "$ac_compile") 2>conftest.er1
7864 ac_status=$?
7865 grep -v '^ *+' conftest.er1 >conftest.err
7866 rm -f conftest.er1
7867 cat conftest.err >&5
7868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && {
7870 test -z "$ac_c_werror_flag" ||
7871 test ! -s conftest.err
7872 } && test -s conftest.$ac_objext; then
7873 ac_cv_struct_tm=time.h
7874 else
7875 $as_echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7878 ac_cv_struct_tm=sys/time.h
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7883 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7884 $as_echo "$ac_cv_struct_tm" >&6; }
7885 if test $ac_cv_struct_tm = sys/time.h; then
7887 cat >>confdefs.h <<\_ACEOF
7888 #define TM_IN_SYS_TIME 1
7889 _ACEOF
7893 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7894 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7895 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7896 $as_echo_n "(cached) " >&6
7897 else
7898 cat >conftest.$ac_ext <<_ACEOF
7899 /* confdefs.h. */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904 #include <sys/types.h>
7905 #include <$ac_cv_struct_tm>
7909 main ()
7911 static struct tm ac_aggr;
7912 if (ac_aggr.tm_zone)
7913 return 0;
7915 return 0;
7917 _ACEOF
7918 rm -f conftest.$ac_objext
7919 if { (ac_try="$ac_compile"
7920 case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923 esac
7924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7925 $as_echo "$ac_try_echo") >&5
7926 (eval "$ac_compile") 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest.$ac_objext; then
7936 ac_cv_member_struct_tm_tm_zone=yes
7937 else
7938 $as_echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 #include <sys/types.h>
7948 #include <$ac_cv_struct_tm>
7952 main ()
7954 static struct tm ac_aggr;
7955 if (sizeof ac_aggr.tm_zone)
7956 return 0;
7958 return 0;
7960 _ACEOF
7961 rm -f conftest.$ac_objext
7962 if { (ac_try="$ac_compile"
7963 case "(($ac_try" in
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7966 esac
7967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7968 $as_echo "$ac_try_echo") >&5
7969 (eval "$ac_compile") 2>conftest.er1
7970 ac_status=$?
7971 grep -v '^ *+' conftest.er1 >conftest.err
7972 rm -f conftest.er1
7973 cat conftest.err >&5
7974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest.$ac_objext; then
7979 ac_cv_member_struct_tm_tm_zone=yes
7980 else
7981 $as_echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7984 ac_cv_member_struct_tm_tm_zone=no
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7993 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
7994 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7996 cat >>confdefs.h <<_ACEOF
7997 #define HAVE_STRUCT_TM_TM_ZONE 1
7998 _ACEOF
8003 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8005 cat >>confdefs.h <<\_ACEOF
8006 #define HAVE_TM_ZONE 1
8007 _ACEOF
8009 else
8010 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8011 $as_echo_n "checking whether tzname is declared... " >&6; }
8012 if test "${ac_cv_have_decl_tzname+set}" = set; then
8013 $as_echo_n "(cached) " >&6
8014 else
8015 cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h. */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 #include <time.h>
8024 main ()
8026 #ifndef tzname
8027 (void) tzname;
8028 #endif
8031 return 0;
8033 _ACEOF
8034 rm -f conftest.$ac_objext
8035 if { (ac_try="$ac_compile"
8036 case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8039 esac
8040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8041 $as_echo "$ac_try_echo") >&5
8042 (eval "$ac_compile") 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest.$ac_objext; then
8052 ac_cv_have_decl_tzname=yes
8053 else
8054 $as_echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 ac_cv_have_decl_tzname=no
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8063 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8064 if test $ac_cv_have_decl_tzname = yes; then
8066 cat >>confdefs.h <<_ACEOF
8067 #define HAVE_DECL_TZNAME 1
8068 _ACEOF
8071 else
8072 cat >>confdefs.h <<_ACEOF
8073 #define HAVE_DECL_TZNAME 0
8074 _ACEOF
8080 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8081 $as_echo_n "checking for tzname... " >&6; }
8082 if test "${ac_cv_var_tzname+set}" = set; then
8083 $as_echo_n "(cached) " >&6
8084 else
8085 cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h. */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 #include <time.h>
8092 #if !HAVE_DECL_TZNAME
8093 extern char *tzname[];
8094 #endif
8097 main ()
8099 return tzname[0][0];
8101 return 0;
8103 _ACEOF
8104 rm -f conftest.$ac_objext conftest$ac_exeext
8105 if { (ac_try="$ac_link"
8106 case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8109 esac
8110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8111 $as_echo "$ac_try_echo") >&5
8112 (eval "$ac_link") 2>conftest.er1
8113 ac_status=$?
8114 grep -v '^ *+' conftest.er1 >conftest.err
8115 rm -f conftest.er1
8116 cat conftest.err >&5
8117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest$ac_exeext && {
8122 test "$cross_compiling" = yes ||
8123 $as_test_x conftest$ac_exeext
8124 }; then
8125 ac_cv_var_tzname=yes
8126 else
8127 $as_echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8130 ac_cv_var_tzname=no
8133 rm -rf conftest.dSYM
8134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8135 conftest$ac_exeext conftest.$ac_ext
8137 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8138 $as_echo "$ac_cv_var_tzname" >&6; }
8139 if test $ac_cv_var_tzname = yes; then
8141 cat >>confdefs.h <<\_ACEOF
8142 #define HAVE_TZNAME 1
8143 _ACEOF
8148 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8149 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8150 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8151 $as_echo_n "(cached) " >&6
8152 else
8153 cat >conftest.$ac_ext <<_ACEOF
8154 /* confdefs.h. */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8159 #include <time.h>
8162 main ()
8164 static struct tm ac_aggr;
8165 if (ac_aggr.tm_gmtoff)
8166 return 0;
8168 return 0;
8170 _ACEOF
8171 rm -f conftest.$ac_objext
8172 if { (ac_try="$ac_compile"
8173 case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8176 esac
8177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8178 $as_echo "$ac_try_echo") >&5
8179 (eval "$ac_compile") 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest.$ac_objext; then
8189 ac_cv_member_struct_tm_tm_gmtoff=yes
8190 else
8191 $as_echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h. */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 #include <time.h>
8203 main ()
8205 static struct tm ac_aggr;
8206 if (sizeof ac_aggr.tm_gmtoff)
8207 return 0;
8209 return 0;
8211 _ACEOF
8212 rm -f conftest.$ac_objext
8213 if { (ac_try="$ac_compile"
8214 case "(($ac_try" in
8215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216 *) ac_try_echo=$ac_try;;
8217 esac
8218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8219 $as_echo "$ac_try_echo") >&5
8220 (eval "$ac_compile") 2>conftest.er1
8221 ac_status=$?
8222 grep -v '^ *+' conftest.er1 >conftest.err
8223 rm -f conftest.er1
8224 cat conftest.err >&5
8225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } && {
8227 test -z "$ac_c_werror_flag" ||
8228 test ! -s conftest.err
8229 } && test -s conftest.$ac_objext; then
8230 ac_cv_member_struct_tm_tm_gmtoff=yes
8231 else
8232 $as_echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8235 ac_cv_member_struct_tm_tm_gmtoff=no
8238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8244 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8245 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8247 cat >>confdefs.h <<\_ACEOF
8248 #define HAVE_TM_GMTOFF 1
8249 _ACEOF
8253 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8254 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8255 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8256 $as_echo_n "(cached) " >&6
8257 else
8258 cat >conftest.$ac_ext <<_ACEOF
8259 /* confdefs.h. */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8264 $ac_includes_default
8265 #if HAVE_SYS_SOCKET_H
8266 #include <sys/socket.h>
8267 #endif
8268 #if HAVE_NET_IF_H
8269 #include <net/if.h>
8270 #endif
8273 main ()
8275 static struct ifreq ac_aggr;
8276 if (ac_aggr.ifr_flags)
8277 return 0;
8279 return 0;
8281 _ACEOF
8282 rm -f conftest.$ac_objext
8283 if { (ac_try="$ac_compile"
8284 case "(($ac_try" in
8285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8287 esac
8288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8289 $as_echo "$ac_try_echo") >&5
8290 (eval "$ac_compile") 2>conftest.er1
8291 ac_status=$?
8292 grep -v '^ *+' conftest.er1 >conftest.err
8293 rm -f conftest.er1
8294 cat conftest.err >&5
8295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } && {
8297 test -z "$ac_c_werror_flag" ||
8298 test ! -s conftest.err
8299 } && test -s conftest.$ac_objext; then
8300 ac_cv_member_struct_ifreq_ifr_flags=yes
8301 else
8302 $as_echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8305 cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h. */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 $ac_includes_default
8312 #if HAVE_SYS_SOCKET_H
8313 #include <sys/socket.h>
8314 #endif
8315 #if HAVE_NET_IF_H
8316 #include <net/if.h>
8317 #endif
8320 main ()
8322 static struct ifreq ac_aggr;
8323 if (sizeof ac_aggr.ifr_flags)
8324 return 0;
8326 return 0;
8328 _ACEOF
8329 rm -f conftest.$ac_objext
8330 if { (ac_try="$ac_compile"
8331 case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8334 esac
8335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8336 $as_echo "$ac_try_echo") >&5
8337 (eval "$ac_compile") 2>conftest.er1
8338 ac_status=$?
8339 grep -v '^ *+' conftest.er1 >conftest.err
8340 rm -f conftest.er1
8341 cat conftest.err >&5
8342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } && {
8344 test -z "$ac_c_werror_flag" ||
8345 test ! -s conftest.err
8346 } && test -s conftest.$ac_objext; then
8347 ac_cv_member_struct_ifreq_ifr_flags=yes
8348 else
8349 $as_echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8352 ac_cv_member_struct_ifreq_ifr_flags=no
8355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8361 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8362 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8364 cat >>confdefs.h <<_ACEOF
8365 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8366 _ACEOF
8370 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8371 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8372 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8373 $as_echo_n "(cached) " >&6
8374 else
8375 cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h. */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8381 $ac_includes_default
8382 #if HAVE_SYS_SOCKET_H
8383 #include <sys/socket.h>
8384 #endif
8385 #if HAVE_NET_IF_H
8386 #include <net/if.h>
8387 #endif
8390 main ()
8392 static struct ifreq ac_aggr;
8393 if (ac_aggr.ifr_hwaddr)
8394 return 0;
8396 return 0;
8398 _ACEOF
8399 rm -f conftest.$ac_objext
8400 if { (ac_try="$ac_compile"
8401 case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404 esac
8405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8406 $as_echo "$ac_try_echo") >&5
8407 (eval "$ac_compile") 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } && {
8414 test -z "$ac_c_werror_flag" ||
8415 test ! -s conftest.err
8416 } && test -s conftest.$ac_objext; then
8417 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8418 else
8419 $as_echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8422 cat >conftest.$ac_ext <<_ACEOF
8423 /* confdefs.h. */
8424 _ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8428 $ac_includes_default
8429 #if HAVE_SYS_SOCKET_H
8430 #include <sys/socket.h>
8431 #endif
8432 #if HAVE_NET_IF_H
8433 #include <net/if.h>
8434 #endif
8437 main ()
8439 static struct ifreq ac_aggr;
8440 if (sizeof ac_aggr.ifr_hwaddr)
8441 return 0;
8443 return 0;
8445 _ACEOF
8446 rm -f conftest.$ac_objext
8447 if { (ac_try="$ac_compile"
8448 case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8451 esac
8452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8453 $as_echo "$ac_try_echo") >&5
8454 (eval "$ac_compile") 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } && {
8461 test -z "$ac_c_werror_flag" ||
8462 test ! -s conftest.err
8463 } && test -s conftest.$ac_objext; then
8464 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8465 else
8466 $as_echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8469 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8478 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8479 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8481 cat >>confdefs.h <<_ACEOF
8482 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8483 _ACEOF
8487 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8488 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8489 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8490 $as_echo_n "(cached) " >&6
8491 else
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h. */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 $ac_includes_default
8499 #if HAVE_SYS_SOCKET_H
8500 #include <sys/socket.h>
8501 #endif
8502 #if HAVE_NET_IF_H
8503 #include <net/if.h>
8504 #endif
8507 main ()
8509 static struct ifreq ac_aggr;
8510 if (ac_aggr.ifr_netmask)
8511 return 0;
8513 return 0;
8515 _ACEOF
8516 rm -f conftest.$ac_objext
8517 if { (ac_try="$ac_compile"
8518 case "(($ac_try" in
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8521 esac
8522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8523 $as_echo "$ac_try_echo") >&5
8524 (eval "$ac_compile") 2>conftest.er1
8525 ac_status=$?
8526 grep -v '^ *+' conftest.er1 >conftest.err
8527 rm -f conftest.er1
8528 cat conftest.err >&5
8529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } && {
8531 test -z "$ac_c_werror_flag" ||
8532 test ! -s conftest.err
8533 } && test -s conftest.$ac_objext; then
8534 ac_cv_member_struct_ifreq_ifr_netmask=yes
8535 else
8536 $as_echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h. */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545 $ac_includes_default
8546 #if HAVE_SYS_SOCKET_H
8547 #include <sys/socket.h>
8548 #endif
8549 #if HAVE_NET_IF_H
8550 #include <net/if.h>
8551 #endif
8554 main ()
8556 static struct ifreq ac_aggr;
8557 if (sizeof ac_aggr.ifr_netmask)
8558 return 0;
8560 return 0;
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8565 case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568 esac
8569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8570 $as_echo "$ac_try_echo") >&5
8571 (eval "$ac_compile") 2>conftest.er1
8572 ac_status=$?
8573 grep -v '^ *+' conftest.er1 >conftest.err
8574 rm -f conftest.er1
8575 cat conftest.err >&5
8576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_c_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest.$ac_objext; then
8581 ac_cv_member_struct_ifreq_ifr_netmask=yes
8582 else
8583 $as_echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8586 ac_cv_member_struct_ifreq_ifr_netmask=no
8589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8595 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8596 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8598 cat >>confdefs.h <<_ACEOF
8599 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8600 _ACEOF
8604 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8605 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8606 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8607 $as_echo_n "(cached) " >&6
8608 else
8609 cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h. */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8615 $ac_includes_default
8616 #if HAVE_SYS_SOCKET_H
8617 #include <sys/socket.h>
8618 #endif
8619 #if HAVE_NET_IF_H
8620 #include <net/if.h>
8621 #endif
8624 main ()
8626 static struct ifreq ac_aggr;
8627 if (ac_aggr.ifr_broadaddr)
8628 return 0;
8630 return 0;
8632 _ACEOF
8633 rm -f conftest.$ac_objext
8634 if { (ac_try="$ac_compile"
8635 case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638 esac
8639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8640 $as_echo "$ac_try_echo") >&5
8641 (eval "$ac_compile") 2>conftest.er1
8642 ac_status=$?
8643 grep -v '^ *+' conftest.er1 >conftest.err
8644 rm -f conftest.er1
8645 cat conftest.err >&5
8646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && {
8648 test -z "$ac_c_werror_flag" ||
8649 test ! -s conftest.err
8650 } && test -s conftest.$ac_objext; then
8651 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8652 else
8653 $as_echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h. */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8662 $ac_includes_default
8663 #if HAVE_SYS_SOCKET_H
8664 #include <sys/socket.h>
8665 #endif
8666 #if HAVE_NET_IF_H
8667 #include <net/if.h>
8668 #endif
8671 main ()
8673 static struct ifreq ac_aggr;
8674 if (sizeof ac_aggr.ifr_broadaddr)
8675 return 0;
8677 return 0;
8679 _ACEOF
8680 rm -f conftest.$ac_objext
8681 if { (ac_try="$ac_compile"
8682 case "(($ac_try" in
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8685 esac
8686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8687 $as_echo "$ac_try_echo") >&5
8688 (eval "$ac_compile") 2>conftest.er1
8689 ac_status=$?
8690 grep -v '^ *+' conftest.er1 >conftest.err
8691 rm -f conftest.er1
8692 cat conftest.err >&5
8693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } && {
8695 test -z "$ac_c_werror_flag" ||
8696 test ! -s conftest.err
8697 } && test -s conftest.$ac_objext; then
8698 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8699 else
8700 $as_echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8703 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8712 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8713 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8715 cat >>confdefs.h <<_ACEOF
8716 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8717 _ACEOF
8721 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8722 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8723 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8724 $as_echo_n "(cached) " >&6
8725 else
8726 cat >conftest.$ac_ext <<_ACEOF
8727 /* confdefs.h. */
8728 _ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8732 $ac_includes_default
8733 #if HAVE_SYS_SOCKET_H
8734 #include <sys/socket.h>
8735 #endif
8736 #if HAVE_NET_IF_H
8737 #include <net/if.h>
8738 #endif
8741 main ()
8743 static struct ifreq ac_aggr;
8744 if (ac_aggr.ifr_addr)
8745 return 0;
8747 return 0;
8749 _ACEOF
8750 rm -f conftest.$ac_objext
8751 if { (ac_try="$ac_compile"
8752 case "(($ac_try" in
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8755 esac
8756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8757 $as_echo "$ac_try_echo") >&5
8758 (eval "$ac_compile") 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && {
8765 test -z "$ac_c_werror_flag" ||
8766 test ! -s conftest.err
8767 } && test -s conftest.$ac_objext; then
8768 ac_cv_member_struct_ifreq_ifr_addr=yes
8769 else
8770 $as_echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h. */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8779 $ac_includes_default
8780 #if HAVE_SYS_SOCKET_H
8781 #include <sys/socket.h>
8782 #endif
8783 #if HAVE_NET_IF_H
8784 #include <net/if.h>
8785 #endif
8788 main ()
8790 static struct ifreq ac_aggr;
8791 if (sizeof ac_aggr.ifr_addr)
8792 return 0;
8794 return 0;
8796 _ACEOF
8797 rm -f conftest.$ac_objext
8798 if { (ac_try="$ac_compile"
8799 case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8802 esac
8803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8804 $as_echo "$ac_try_echo") >&5
8805 (eval "$ac_compile") 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && {
8812 test -z "$ac_c_werror_flag" ||
8813 test ! -s conftest.err
8814 } && test -s conftest.$ac_objext; then
8815 ac_cv_member_struct_ifreq_ifr_addr=yes
8816 else
8817 $as_echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8820 ac_cv_member_struct_ifreq_ifr_addr=no
8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8829 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8830 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8832 cat >>confdefs.h <<_ACEOF
8833 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8834 _ACEOF
8841 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8842 $as_echo_n "checking for function prototypes... " >&6; }
8843 if test "$ac_cv_prog_cc_c89" != no; then
8844 { $as_echo "$as_me:$LINENO: result: yes" >&5
8845 $as_echo "yes" >&6; }
8847 cat >>confdefs.h <<\_ACEOF
8848 #define PROTOTYPES 1
8849 _ACEOF
8852 cat >>confdefs.h <<\_ACEOF
8853 #define __PROTOTYPES 1
8854 _ACEOF
8856 else
8857 { $as_echo "$as_me:$LINENO: result: no" >&5
8858 $as_echo "no" >&6; }
8861 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8862 $as_echo_n "checking for working volatile... " >&6; }
8863 if test "${ac_cv_c_volatile+set}" = set; then
8864 $as_echo_n "(cached) " >&6
8865 else
8866 cat >conftest.$ac_ext <<_ACEOF
8867 /* confdefs.h. */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8874 main ()
8877 volatile int x;
8878 int * volatile y = (int *) 0;
8879 return !x && !y;
8881 return 0;
8883 _ACEOF
8884 rm -f conftest.$ac_objext
8885 if { (ac_try="$ac_compile"
8886 case "(($ac_try" in
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8889 esac
8890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8891 $as_echo "$ac_try_echo") >&5
8892 (eval "$ac_compile") 2>conftest.er1
8893 ac_status=$?
8894 grep -v '^ *+' conftest.er1 >conftest.err
8895 rm -f conftest.er1
8896 cat conftest.err >&5
8897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } && {
8899 test -z "$ac_c_werror_flag" ||
8900 test ! -s conftest.err
8901 } && test -s conftest.$ac_objext; then
8902 ac_cv_c_volatile=yes
8903 else
8904 $as_echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8907 ac_cv_c_volatile=no
8910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8913 $as_echo "$ac_cv_c_volatile" >&6; }
8914 if test $ac_cv_c_volatile = no; then
8916 cat >>confdefs.h <<\_ACEOF
8917 #define volatile /**/
8918 _ACEOF
8922 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8923 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8924 if test "${ac_cv_c_const+set}" = set; then
8925 $as_echo_n "(cached) " >&6
8926 else
8927 cat >conftest.$ac_ext <<_ACEOF
8928 /* confdefs.h. */
8929 _ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8935 main ()
8937 /* FIXME: Include the comments suggested by Paul. */
8938 #ifndef __cplusplus
8939 /* Ultrix mips cc rejects this. */
8940 typedef int charset[2];
8941 const charset cs;
8942 /* SunOS 4.1.1 cc rejects this. */
8943 char const *const *pcpcc;
8944 char **ppc;
8945 /* NEC SVR4.0.2 mips cc rejects this. */
8946 struct point {int x, y;};
8947 static struct point const zero = {0,0};
8948 /* AIX XL C 1.02.0.0 rejects this.
8949 It does not let you subtract one const X* pointer from another in
8950 an arm of an if-expression whose if-part is not a constant
8951 expression */
8952 const char *g = "string";
8953 pcpcc = &g + (g ? g-g : 0);
8954 /* HPUX 7.0 cc rejects these. */
8955 ++pcpcc;
8956 ppc = (char**) pcpcc;
8957 pcpcc = (char const *const *) ppc;
8958 { /* SCO 3.2v4 cc rejects this. */
8959 char *t;
8960 char const *s = 0 ? (char *) 0 : (char const *) 0;
8962 *t++ = 0;
8963 if (s) return 0;
8965 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8966 int x[] = {25, 17};
8967 const int *foo = &x[0];
8968 ++foo;
8970 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8971 typedef const int *iptr;
8972 iptr p = 0;
8973 ++p;
8975 { /* AIX XL C 1.02.0.0 rejects this saying
8976 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8977 struct s { int j; const int *ap[3]; };
8978 struct s *b; b->j = 5;
8980 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8981 const int foo = 10;
8982 if (!foo) return 0;
8984 return !cs[0] && !zero.x;
8985 #endif
8988 return 0;
8990 _ACEOF
8991 rm -f conftest.$ac_objext
8992 if { (ac_try="$ac_compile"
8993 case "(($ac_try" in
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8996 esac
8997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8998 $as_echo "$ac_try_echo") >&5
8999 (eval "$ac_compile") 2>conftest.er1
9000 ac_status=$?
9001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
9004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } && {
9006 test -z "$ac_c_werror_flag" ||
9007 test ! -s conftest.err
9008 } && test -s conftest.$ac_objext; then
9009 ac_cv_c_const=yes
9010 else
9011 $as_echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9014 ac_cv_c_const=no
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9020 $as_echo "$ac_cv_c_const" >&6; }
9021 if test $ac_cv_c_const = no; then
9023 cat >>confdefs.h <<\_ACEOF
9024 #define const /**/
9025 _ACEOF
9029 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9030 $as_echo_n "checking for void * support... " >&6; }
9031 if test "${emacs_cv_void_star+set}" = set; then
9032 $as_echo_n "(cached) " >&6
9033 else
9034 cat >conftest.$ac_ext <<_ACEOF
9035 /* confdefs.h. */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9042 main ()
9044 void * foo;
9046 return 0;
9048 _ACEOF
9049 rm -f conftest.$ac_objext
9050 if { (ac_try="$ac_compile"
9051 case "(($ac_try" in
9052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9054 esac
9055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9056 $as_echo "$ac_try_echo") >&5
9057 (eval "$ac_compile") 2>conftest.er1
9058 ac_status=$?
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
9062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } && {
9064 test -z "$ac_c_werror_flag" ||
9065 test ! -s conftest.err
9066 } && test -s conftest.$ac_objext; then
9067 emacs_cv_void_star=yes
9068 else
9069 $as_echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9072 emacs_cv_void_star=no
9075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9078 $as_echo "$emacs_cv_void_star" >&6; }
9079 if test $emacs_cv_void_star = yes; then
9080 cat >>confdefs.h <<\_ACEOF
9081 #define POINTER_TYPE void
9082 _ACEOF
9084 else
9085 cat >>confdefs.h <<\_ACEOF
9086 #define POINTER_TYPE char
9087 _ACEOF
9095 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9096 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9097 set x ${MAKE-make}
9098 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9099 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9100 $as_echo_n "(cached) " >&6
9101 else
9102 cat >conftest.make <<\_ACEOF
9103 SHELL = /bin/sh
9104 all:
9105 @echo '@@@%%%=$(MAKE)=@@@%%%'
9106 _ACEOF
9107 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9108 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9109 *@@@%%%=?*=@@@%%%*)
9110 eval ac_cv_prog_make_${ac_make}_set=yes;;
9112 eval ac_cv_prog_make_${ac_make}_set=no;;
9113 esac
9114 rm -f conftest.make
9116 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9117 { $as_echo "$as_me:$LINENO: result: yes" >&5
9118 $as_echo "yes" >&6; }
9119 SET_MAKE=
9120 else
9121 { $as_echo "$as_me:$LINENO: result: no" >&5
9122 $as_echo "no" >&6; }
9123 SET_MAKE="MAKE=${MAKE-make}"
9127 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9128 $as_echo_n "checking for long file names... " >&6; }
9129 if test "${ac_cv_sys_long_file_names+set}" = set; then
9130 $as_echo_n "(cached) " >&6
9131 else
9132 ac_cv_sys_long_file_names=yes
9133 # Test for long file names in all the places we know might matter:
9134 # . the current directory, where building will happen
9135 # $prefix/lib where we will be installing things
9136 # $exec_prefix/lib likewise
9137 # $TMPDIR if set, where it might want to write temporary files
9138 # /tmp where it might want to write temporary files
9139 # /var/tmp likewise
9140 # /usr/tmp likewise
9141 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9142 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9143 # in the usual case where exec_prefix is '${prefix}'.
9144 case $ac_dir in #(
9145 . | /* | ?:[\\/]*) ;; #(
9146 *) continue;;
9147 esac
9148 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9149 ac_xdir=$ac_dir/cf$$
9150 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9151 ac_tf1=$ac_xdir/conftest9012345
9152 ac_tf2=$ac_xdir/conftest9012346
9153 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9154 ac_cv_sys_long_file_names=no
9155 rm -f -r "$ac_xdir" 2>/dev/null
9156 test $ac_cv_sys_long_file_names = no && break
9157 done
9159 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9160 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9161 if test $ac_cv_sys_long_file_names = yes; then
9163 cat >>confdefs.h <<\_ACEOF
9164 #define HAVE_LONG_FILE_NAMES 1
9165 _ACEOF
9170 #### Choose a window system.
9172 { $as_echo "$as_me:$LINENO: checking for X" >&5
9173 $as_echo_n "checking for X... " >&6; }
9176 # Check whether --with-x was given.
9177 if test "${with_x+set}" = set; then
9178 withval=$with_x;
9181 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9182 if test "x$with_x" = xno; then
9183 # The user explicitly disabled X.
9184 have_x=disabled
9185 else
9186 case $x_includes,$x_libraries in #(
9187 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9188 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9189 { (exit 1); exit 1; }; };; #(
9190 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9191 $as_echo_n "(cached) " >&6
9192 else
9193 # One or both of the vars are not set, and there is no cached value.
9194 ac_x_includes=no ac_x_libraries=no
9195 rm -f -r conftest.dir
9196 if mkdir conftest.dir; then
9197 cd conftest.dir
9198 cat >Imakefile <<'_ACEOF'
9199 incroot:
9200 @echo incroot='${INCROOT}'
9201 usrlibdir:
9202 @echo usrlibdir='${USRLIBDIR}'
9203 libdir:
9204 @echo libdir='${LIBDIR}'
9205 _ACEOF
9206 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9207 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9208 for ac_var in incroot usrlibdir libdir; do
9209 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9210 done
9211 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9212 for ac_extension in a so sl dylib la dll; do
9213 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9214 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9215 ac_im_usrlibdir=$ac_im_libdir; break
9217 done
9218 # Screen out bogus values from the imake configuration. They are
9219 # bogus both because they are the default anyway, and because
9220 # using them would break gcc on systems where it needs fixed includes.
9221 case $ac_im_incroot in
9222 /usr/include) ac_x_includes= ;;
9223 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9224 esac
9225 case $ac_im_usrlibdir in
9226 /usr/lib | /lib) ;;
9227 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9228 esac
9230 cd ..
9231 rm -f -r conftest.dir
9234 # Standard set of common directories for X headers.
9235 # Check X11 before X11Rn because it is often a symlink to the current release.
9236 ac_x_header_dirs='
9237 /usr/X11/include
9238 /usr/X11R6/include
9239 /usr/X11R5/include
9240 /usr/X11R4/include
9242 /usr/include/X11
9243 /usr/include/X11R6
9244 /usr/include/X11R5
9245 /usr/include/X11R4
9247 /usr/local/X11/include
9248 /usr/local/X11R6/include
9249 /usr/local/X11R5/include
9250 /usr/local/X11R4/include
9252 /usr/local/include/X11
9253 /usr/local/include/X11R6
9254 /usr/local/include/X11R5
9255 /usr/local/include/X11R4
9257 /usr/X386/include
9258 /usr/x386/include
9259 /usr/XFree86/include/X11
9261 /usr/include
9262 /usr/local/include
9263 /usr/unsupported/include
9264 /usr/athena/include
9265 /usr/local/x11r5/include
9266 /usr/lpp/Xamples/include
9268 /usr/openwin/include
9269 /usr/openwin/share/include'
9271 if test "$ac_x_includes" = no; then
9272 # Guess where to find include files, by looking for Xlib.h.
9273 # First, try using that file with no special directory specified.
9274 cat >conftest.$ac_ext <<_ACEOF
9275 /* confdefs.h. */
9276 _ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9280 #include <X11/Xlib.h>
9281 _ACEOF
9282 if { (ac_try="$ac_cpp conftest.$ac_ext"
9283 case "(($ac_try" in
9284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285 *) ac_try_echo=$ac_try;;
9286 esac
9287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9288 $as_echo "$ac_try_echo") >&5
9289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } >/dev/null && {
9296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9297 test ! -s conftest.err
9298 }; then
9299 # We can compile using X headers with no special include directory.
9300 ac_x_includes=
9301 else
9302 $as_echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9305 for ac_dir in $ac_x_header_dirs; do
9306 if test -r "$ac_dir/X11/Xlib.h"; then
9307 ac_x_includes=$ac_dir
9308 break
9310 done
9313 rm -f conftest.err conftest.$ac_ext
9314 fi # $ac_x_includes = no
9316 if test "$ac_x_libraries" = no; then
9317 # Check for the libraries.
9318 # See if we find them without any special options.
9319 # Don't add to $LIBS permanently.
9320 ac_save_LIBS=$LIBS
9321 LIBS="-lX11 $LIBS"
9322 cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h. */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9328 #include <X11/Xlib.h>
9330 main ()
9332 XrmInitialize ()
9334 return 0;
9336 _ACEOF
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (ac_try="$ac_link"
9339 case "(($ac_try" in
9340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341 *) ac_try_echo=$ac_try;;
9342 esac
9343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9344 $as_echo "$ac_try_echo") >&5
9345 (eval "$ac_link") 2>conftest.er1
9346 ac_status=$?
9347 grep -v '^ *+' conftest.er1 >conftest.err
9348 rm -f conftest.er1
9349 cat conftest.err >&5
9350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } && {
9352 test -z "$ac_c_werror_flag" ||
9353 test ! -s conftest.err
9354 } && test -s conftest$ac_exeext && {
9355 test "$cross_compiling" = yes ||
9356 $as_test_x conftest$ac_exeext
9357 }; then
9358 LIBS=$ac_save_LIBS
9359 # We can link X programs with no special library path.
9360 ac_x_libraries=
9361 else
9362 $as_echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9365 LIBS=$ac_save_LIBS
9366 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9368 # Don't even attempt the hair of trying to link an X program!
9369 for ac_extension in a so sl dylib la dll; do
9370 if test -r "$ac_dir/libX11.$ac_extension"; then
9371 ac_x_libraries=$ac_dir
9372 break 2
9374 done
9375 done
9378 rm -rf conftest.dSYM
9379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9380 conftest$ac_exeext conftest.$ac_ext
9381 fi # $ac_x_libraries = no
9383 case $ac_x_includes,$ac_x_libraries in #(
9384 no,* | *,no | *\'*)
9385 # Didn't find X, or a directory has "'" in its name.
9386 ac_cv_have_x="have_x=no";; #(
9388 # Record where we found X for the cache.
9389 ac_cv_have_x="have_x=yes\
9390 ac_x_includes='$ac_x_includes'\
9391 ac_x_libraries='$ac_x_libraries'"
9392 esac
9394 ;; #(
9395 *) have_x=yes;;
9396 esac
9397 eval "$ac_cv_have_x"
9398 fi # $with_x != no
9400 if test "$have_x" != yes; then
9401 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9402 $as_echo "$have_x" >&6; }
9403 no_x=yes
9404 else
9405 # If each of the values was on the command line, it overrides each guess.
9406 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9407 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9408 # Update the cache value to reflect the command line values.
9409 ac_cv_have_x="have_x=yes\
9410 ac_x_includes='$x_includes'\
9411 ac_x_libraries='$x_libraries'"
9412 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9413 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9416 if test "$no_x" = yes; then
9417 window_system=none
9418 else
9419 window_system=x11
9422 ## Workaround for bug in autoconf <= 2.62.
9423 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9424 ## No need to do anything special for these standard directories.
9425 ## This is an experiment, take it out if it causes problems.
9426 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9428 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9432 if test "${x_libraries}" != NONE; then
9433 if test -n "${x_libraries}"; then
9434 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9435 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9437 x_default_search_path=""
9438 x_search_path=${x_libraries}
9439 if test -z "${x_search_path}"; then
9440 x_search_path=/usr/lib
9442 for x_library in `echo ${x_search_path}: | \
9443 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9444 x_search_path="\
9445 ${x_library}/X11/%L/%T/%N%C%S:\
9446 ${x_library}/X11/%l/%T/%N%C%S:\
9447 ${x_library}/X11/%T/%N%C%S:\
9448 ${x_library}/X11/%L/%T/%N%S:\
9449 ${x_library}/X11/%l/%T/%N%S:\
9450 ${x_library}/X11/%T/%N%S"
9451 if test x"${x_default_search_path}" = x; then
9452 x_default_search_path=${x_search_path}
9453 else
9454 x_default_search_path="${x_search_path}:${x_default_search_path}"
9456 done
9458 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9459 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9462 if test x"${x_includes}" = x; then
9463 bitmapdir=/usr/include/X11/bitmaps
9464 else
9465 # accumulate include directories that have X11 bitmap subdirectories
9466 bmd_acc="dummyval"
9467 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9468 if test -d "${bmd}/X11/bitmaps"; then
9469 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9471 if test -d "${bmd}/bitmaps"; then
9472 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9474 done
9475 if test ${bmd_acc} != "dummyval"; then
9476 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9480 HAVE_NS=no
9481 NS_IMPL_COCOA=no
9482 NS_IMPL_GNUSTEP=no
9483 tmp_CPPFLAGS="$CPPFLAGS"
9484 tmp_CFLAGS="$CFLAGS"
9485 CPPFLAGS="$CPPFLAGS -x objective-c"
9486 CFLAGS="$CFLAGS -x objective-c"
9487 if test "${with_ns}" != no; then
9488 if test "${opsys}" = darwin; then
9489 NS_IMPL_COCOA=yes
9490 ns_appdir=`pwd`/nextstep/Emacs.app
9491 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9492 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9493 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9494 elif test -f $GNUSTEP_CONFIG_FILE; then
9495 NS_IMPL_GNUSTEP=yes
9496 ns_appdir=`pwd`/nextstep/Emacs.app
9497 ns_appbindir=`pwd`/nextstep/Emacs.app
9498 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9499 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9500 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9501 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9502 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9503 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9504 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9505 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9506 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9508 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9509 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9510 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9511 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9512 $as_echo_n "(cached) " >&6
9514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9515 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9516 else
9517 # Is the header compilable?
9518 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9519 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9520 cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h. */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 $ac_includes_default
9527 #include <AppKit/AppKit.h>
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9531 case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534 esac
9535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9536 $as_echo "$ac_try_echo") >&5
9537 (eval "$ac_compile") 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest.$ac_objext; then
9547 ac_header_compiler=yes
9548 else
9549 $as_echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9552 ac_header_compiler=no
9555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9557 $as_echo "$ac_header_compiler" >&6; }
9559 # Is the header present?
9560 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9561 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9562 cat >conftest.$ac_ext <<_ACEOF
9563 /* confdefs.h. */
9564 _ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 #include <AppKit/AppKit.h>
9569 _ACEOF
9570 if { (ac_try="$ac_cpp conftest.$ac_ext"
9571 case "(($ac_try" in
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9574 esac
9575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9576 $as_echo "$ac_try_echo") >&5
9577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } >/dev/null && {
9584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 }; then
9587 ac_header_preproc=yes
9588 else
9589 $as_echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9592 ac_header_preproc=no
9595 rm -f conftest.err conftest.$ac_ext
9596 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9597 $as_echo "$ac_header_preproc" >&6; }
9599 # So? What about this header?
9600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9601 yes:no: )
9602 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9603 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9604 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9605 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9606 ac_header_preproc=yes
9608 no:yes:* )
9609 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9610 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9611 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9612 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9613 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9614 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9615 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9616 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9617 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9618 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9619 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9620 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9623 esac
9624 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9625 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9626 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9627 $as_echo_n "(cached) " >&6
9628 else
9629 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9631 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9632 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9635 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9636 HAVE_NS=yes
9637 else
9638 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9639 files are missing or cannot be compiled." >&5
9640 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9641 files are missing or cannot be compiled." >&2;}
9642 { (exit 1); exit 1; }; }
9646 NS_HAVE_NSINTEGER=yes
9647 cat >conftest.$ac_ext <<_ACEOF
9648 /* confdefs.h. */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9653 #include <Foundation/NSObjCRuntime.h>
9655 main ()
9657 NSInteger i;
9659 return 0;
9661 _ACEOF
9662 rm -f conftest.$ac_objext
9663 if { (ac_try="$ac_compile"
9664 case "(($ac_try" in
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9667 esac
9668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9669 $as_echo "$ac_try_echo") >&5
9670 (eval "$ac_compile") 2>conftest.er1
9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } && {
9677 test -z "$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 } && test -s conftest.$ac_objext; then
9680 ns_have_nsinteger=yes
9681 else
9682 $as_echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 ns_have_nsinteger=no
9688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9689 if test $ns_have_nsinteger = no; then
9690 NS_HAVE_NSINTEGER=no
9693 if test "${HAVE_NS}" = yes; then
9694 window_system=nextstep
9695 with_xft=no
9696 # set up packaging dirs
9697 exec_prefix=${ns_appbindir}
9698 libexecdir=${ns_appbindir}/libexec
9699 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9700 prefix=${ns_appresdir}
9703 CFLAGS="$tmp_CFLAGS"
9704 CPPFLAGS="$tmp_CPPFLAGS"
9706 case "${window_system}" in
9707 x11 )
9708 HAVE_X_WINDOWS=yes
9709 HAVE_X11=yes
9710 case "${with_x_toolkit}" in
9711 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9712 motif ) USE_X_TOOLKIT=MOTIF ;;
9713 gtk ) with_gtk=yes
9714 USE_X_TOOLKIT=none ;;
9715 no ) USE_X_TOOLKIT=none ;;
9716 * ) USE_X_TOOLKIT=maybe ;;
9717 esac
9719 nextstep | none )
9720 HAVE_X_WINDOWS=no
9721 HAVE_X11=no
9722 USE_X_TOOLKIT=none
9724 esac
9726 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9727 # Extract the first word of "X", so it can be a program name with args.
9728 set dummy X; ac_word=$2
9729 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9730 $as_echo_n "checking for $ac_word... " >&6; }
9731 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9732 $as_echo_n "(cached) " >&6
9733 else
9734 if test -n "$HAVE_XSERVER"; then
9735 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9736 else
9737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738 for as_dir in $PATH
9740 IFS=$as_save_IFS
9741 test -z "$as_dir" && as_dir=.
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9744 ac_cv_prog_HAVE_XSERVER="true"
9745 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 break 2
9748 done
9749 done
9750 IFS=$as_save_IFS
9752 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9755 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9756 if test -n "$HAVE_XSERVER"; then
9757 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9758 $as_echo "$HAVE_XSERVER" >&6; }
9759 else
9760 { $as_echo "$as_me:$LINENO: result: no" >&5
9761 $as_echo "no" >&6; }
9765 if test "$HAVE_XSERVER" = true ||
9766 test -n "$DISPLAY" ||
9767 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9768 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9769 were found. You should install the relevant development files for X
9770 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9771 sure you have development files for image handling, i.e.
9772 tiff, gif, jpeg, png and xpm.
9773 If you are sure you want Emacs compiled without X window support, pass
9774 --without-x
9775 to configure." >&5
9776 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9777 were found. You should install the relevant development files for X
9778 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9779 sure you have development files for image handling, i.e.
9780 tiff, gif, jpeg, png and xpm.
9781 If you are sure you want Emacs compiled without X window support, pass
9782 --without-x
9783 to configure." >&2;}
9784 { (exit 1); exit 1; }; }
9788 ### If we're using X11, we should use the X menu package.
9789 HAVE_MENUS=no
9790 case ${HAVE_X11} in
9791 yes ) HAVE_MENUS=yes ;;
9792 esac
9794 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9795 # Assume not, until told otherwise.
9796 GNU_MALLOC=yes
9797 doug_lea_malloc=yes
9798 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9799 $as_echo_n "checking for malloc_get_state... " >&6; }
9800 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9801 $as_echo_n "(cached) " >&6
9802 else
9803 cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h. */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9811 #define malloc_get_state innocuous_malloc_get_state
9813 /* System header to define __stub macros and hopefully few prototypes,
9814 which can conflict with char malloc_get_state (); below.
9815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9816 <limits.h> exists even on freestanding compilers. */
9818 #ifdef __STDC__
9819 # include <limits.h>
9820 #else
9821 # include <assert.h>
9822 #endif
9824 #undef malloc_get_state
9826 /* Override any GCC internal prototype to avoid an error.
9827 Use char because int might match the return type of a GCC
9828 builtin and then its argument prototype would still apply. */
9829 #ifdef __cplusplus
9830 extern "C"
9831 #endif
9832 char malloc_get_state ();
9833 /* The GNU C library defines this for functions which it implements
9834 to always fail with ENOSYS. Some functions are actually named
9835 something starting with __ and the normal name is an alias. */
9836 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9837 choke me
9838 #endif
9841 main ()
9843 return malloc_get_state ();
9845 return 0;
9847 _ACEOF
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9850 case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853 esac
9854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9855 $as_echo "$ac_try_echo") >&5
9856 (eval "$ac_link") 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } && {
9863 test -z "$ac_c_werror_flag" ||
9864 test ! -s conftest.err
9865 } && test -s conftest$ac_exeext && {
9866 test "$cross_compiling" = yes ||
9867 $as_test_x conftest$ac_exeext
9868 }; then
9869 ac_cv_func_malloc_get_state=yes
9870 else
9871 $as_echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 ac_cv_func_malloc_get_state=no
9877 rm -rf conftest.dSYM
9878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9879 conftest$ac_exeext conftest.$ac_ext
9881 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9882 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9883 if test $ac_cv_func_malloc_get_state = yes; then
9885 else
9886 doug_lea_malloc=no
9889 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9890 $as_echo_n "checking for malloc_set_state... " >&6; }
9891 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9892 $as_echo_n "(cached) " >&6
9893 else
9894 cat >conftest.$ac_ext <<_ACEOF
9895 /* confdefs.h. */
9896 _ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9900 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9902 #define malloc_set_state innocuous_malloc_set_state
9904 /* System header to define __stub macros and hopefully few prototypes,
9905 which can conflict with char malloc_set_state (); below.
9906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9907 <limits.h> exists even on freestanding compilers. */
9909 #ifdef __STDC__
9910 # include <limits.h>
9911 #else
9912 # include <assert.h>
9913 #endif
9915 #undef malloc_set_state
9917 /* Override any GCC internal prototype to avoid an error.
9918 Use char because int might match the return type of a GCC
9919 builtin and then its argument prototype would still apply. */
9920 #ifdef __cplusplus
9921 extern "C"
9922 #endif
9923 char malloc_set_state ();
9924 /* The GNU C library defines this for functions which it implements
9925 to always fail with ENOSYS. Some functions are actually named
9926 something starting with __ and the normal name is an alias. */
9927 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9928 choke me
9929 #endif
9932 main ()
9934 return malloc_set_state ();
9936 return 0;
9938 _ACEOF
9939 rm -f conftest.$ac_objext conftest$ac_exeext
9940 if { (ac_try="$ac_link"
9941 case "(($ac_try" in
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9944 esac
9945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9946 $as_echo "$ac_try_echo") >&5
9947 (eval "$ac_link") 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } && {
9954 test -z "$ac_c_werror_flag" ||
9955 test ! -s conftest.err
9956 } && test -s conftest$ac_exeext && {
9957 test "$cross_compiling" = yes ||
9958 $as_test_x conftest$ac_exeext
9959 }; then
9960 ac_cv_func_malloc_set_state=yes
9961 else
9962 $as_echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9965 ac_cv_func_malloc_set_state=no
9968 rm -rf conftest.dSYM
9969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9970 conftest$ac_exeext conftest.$ac_ext
9972 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9973 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
9974 if test $ac_cv_func_malloc_set_state = yes; then
9976 else
9977 doug_lea_malloc=no
9980 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9981 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9982 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9983 $as_echo_n "(cached) " >&6
9984 else
9985 cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h. */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 extern void (* __after_morecore_hook)();
9993 main ()
9995 __after_morecore_hook = 0
9997 return 0;
9999 _ACEOF
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
10002 case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005 esac
10006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10007 $as_echo "$ac_try_echo") >&5
10008 (eval "$ac_link") 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && {
10015 test -z "$ac_c_werror_flag" ||
10016 test ! -s conftest.err
10017 } && test -s conftest$ac_exeext && {
10018 test "$cross_compiling" = yes ||
10019 $as_test_x conftest$ac_exeext
10020 }; then
10021 emacs_cv_var___after_morecore_hook=yes
10022 else
10023 $as_echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10026 emacs_cv_var___after_morecore_hook=no
10029 rm -rf conftest.dSYM
10030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10031 conftest$ac_exeext conftest.$ac_ext
10033 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10034 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10035 if test $emacs_cv_var___after_morecore_hook = no; then
10036 doug_lea_malloc=no
10038 if test "${system_malloc}" = "yes"; then
10039 GNU_MALLOC=no
10040 GNU_MALLOC_reason="
10041 (The GNU allocators don't work with this system configuration.)"
10043 if test "$doug_lea_malloc" = "yes" ; then
10044 if test "$GNU_MALLOC" = yes ; then
10045 GNU_MALLOC_reason="
10046 (Using Doug Lea's new malloc from the GNU C Library.)"
10049 cat >>confdefs.h <<\_ACEOF
10050 #define DOUG_LEA_MALLOC 1
10051 _ACEOF
10055 if test x"${REL_ALLOC}" = x; then
10056 REL_ALLOC=${GNU_MALLOC}
10062 for ac_header in stdlib.h unistd.h
10064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10066 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10067 $as_echo_n "checking for $ac_header... " >&6; }
10068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10069 $as_echo_n "(cached) " >&6
10071 ac_res=`eval 'as_val=${'$as_ac_Header'}
10072 $as_echo "$as_val"'`
10073 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10074 $as_echo "$ac_res" >&6; }
10075 else
10076 # Is the header compilable?
10077 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10078 $as_echo_n "checking $ac_header usability... " >&6; }
10079 cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 $ac_includes_default
10086 #include <$ac_header>
10087 _ACEOF
10088 rm -f conftest.$ac_objext
10089 if { (ac_try="$ac_compile"
10090 case "(($ac_try" in
10091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10093 esac
10094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10095 $as_echo "$ac_try_echo") >&5
10096 (eval "$ac_compile") 2>conftest.er1
10097 ac_status=$?
10098 grep -v '^ *+' conftest.er1 >conftest.err
10099 rm -f conftest.er1
10100 cat conftest.err >&5
10101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } && {
10103 test -z "$ac_c_werror_flag" ||
10104 test ! -s conftest.err
10105 } && test -s conftest.$ac_objext; then
10106 ac_header_compiler=yes
10107 else
10108 $as_echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10111 ac_header_compiler=no
10114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10115 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10116 $as_echo "$ac_header_compiler" >&6; }
10118 # Is the header present?
10119 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10120 $as_echo_n "checking $ac_header presence... " >&6; }
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h. */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 #include <$ac_header>
10128 _ACEOF
10129 if { (ac_try="$ac_cpp conftest.$ac_ext"
10130 case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10133 esac
10134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10135 $as_echo "$ac_try_echo") >&5
10136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10137 ac_status=$?
10138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
10141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } >/dev/null && {
10143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10144 test ! -s conftest.err
10145 }; then
10146 ac_header_preproc=yes
10147 else
10148 $as_echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10151 ac_header_preproc=no
10154 rm -f conftest.err conftest.$ac_ext
10155 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10156 $as_echo "$ac_header_preproc" >&6; }
10158 # So? What about this header?
10159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10160 yes:no: )
10161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10162 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10164 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10165 ac_header_preproc=yes
10167 no:yes:* )
10168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10169 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10171 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10173 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10175 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10177 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10179 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10182 esac
10183 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10184 $as_echo_n "checking for $ac_header... " >&6; }
10185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10186 $as_echo_n "(cached) " >&6
10187 else
10188 eval "$as_ac_Header=\$ac_header_preproc"
10190 ac_res=`eval 'as_val=${'$as_ac_Header'}
10191 $as_echo "$as_val"'`
10192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10193 $as_echo "$ac_res" >&6; }
10196 if test `eval 'as_val=${'$as_ac_Header'}
10197 $as_echo "$as_val"'` = yes; then
10198 cat >>confdefs.h <<_ACEOF
10199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10200 _ACEOF
10204 done
10207 for ac_func in getpagesize
10209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10210 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10211 $as_echo_n "checking for $ac_func... " >&6; }
10212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10213 $as_echo_n "(cached) " >&6
10214 else
10215 cat >conftest.$ac_ext <<_ACEOF
10216 /* confdefs.h. */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10223 #define $ac_func innocuous_$ac_func
10225 /* System header to define __stub macros and hopefully few prototypes,
10226 which can conflict with char $ac_func (); below.
10227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10228 <limits.h> exists even on freestanding compilers. */
10230 #ifdef __STDC__
10231 # include <limits.h>
10232 #else
10233 # include <assert.h>
10234 #endif
10236 #undef $ac_func
10238 /* Override any GCC internal prototype to avoid an error.
10239 Use char because int might match the return type of a GCC
10240 builtin and then its argument prototype would still apply. */
10241 #ifdef __cplusplus
10242 extern "C"
10243 #endif
10244 char $ac_func ();
10245 /* The GNU C library defines this for functions which it implements
10246 to always fail with ENOSYS. Some functions are actually named
10247 something starting with __ and the normal name is an alias. */
10248 #if defined __stub_$ac_func || defined __stub___$ac_func
10249 choke me
10250 #endif
10253 main ()
10255 return $ac_func ();
10257 return 0;
10259 _ACEOF
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (ac_try="$ac_link"
10262 case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265 esac
10266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10267 $as_echo "$ac_try_echo") >&5
10268 (eval "$ac_link") 2>conftest.er1
10269 ac_status=$?
10270 grep -v '^ *+' conftest.er1 >conftest.err
10271 rm -f conftest.er1
10272 cat conftest.err >&5
10273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } && {
10275 test -z "$ac_c_werror_flag" ||
10276 test ! -s conftest.err
10277 } && test -s conftest$ac_exeext && {
10278 test "$cross_compiling" = yes ||
10279 $as_test_x conftest$ac_exeext
10280 }; then
10281 eval "$as_ac_var=yes"
10282 else
10283 $as_echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10286 eval "$as_ac_var=no"
10289 rm -rf conftest.dSYM
10290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10291 conftest$ac_exeext conftest.$ac_ext
10293 ac_res=`eval 'as_val=${'$as_ac_var'}
10294 $as_echo "$as_val"'`
10295 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10296 $as_echo "$ac_res" >&6; }
10297 if test `eval 'as_val=${'$as_ac_var'}
10298 $as_echo "$as_val"'` = yes; then
10299 cat >>confdefs.h <<_ACEOF
10300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10301 _ACEOF
10304 done
10306 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10307 $as_echo_n "checking for working mmap... " >&6; }
10308 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10309 $as_echo_n "(cached) " >&6
10310 else
10311 if test "$cross_compiling" = yes; then
10312 ac_cv_func_mmap_fixed_mapped=no
10313 else
10314 cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h. */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 $ac_includes_default
10321 /* malloc might have been renamed as rpl_malloc. */
10322 #undef malloc
10324 /* Thanks to Mike Haertel and Jim Avera for this test.
10325 Here is a matrix of mmap possibilities:
10326 mmap private not fixed
10327 mmap private fixed at somewhere currently unmapped
10328 mmap private fixed at somewhere already mapped
10329 mmap shared not fixed
10330 mmap shared fixed at somewhere currently unmapped
10331 mmap shared fixed at somewhere already mapped
10332 For private mappings, we should verify that changes cannot be read()
10333 back from the file, nor mmap's back from the file at a different
10334 address. (There have been systems where private was not correctly
10335 implemented like the infamous i386 svr4.0, and systems where the
10336 VM page cache was not coherent with the file system buffer cache
10337 like early versions of FreeBSD and possibly contemporary NetBSD.)
10338 For shared mappings, we should conversely verify that changes get
10339 propagated back to all the places they're supposed to be.
10341 Grep wants private fixed already mapped.
10342 The main things grep needs to know about mmap are:
10343 * does it exist and is it safe to write into the mmap'd area
10344 * how to use it (BSD variants) */
10346 #include <fcntl.h>
10347 #include <sys/mman.h>
10349 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10350 char *malloc ();
10351 #endif
10353 /* This mess was copied from the GNU getpagesize.h. */
10354 #ifndef HAVE_GETPAGESIZE
10355 /* Assume that all systems that can run configure have sys/param.h. */
10356 # ifndef HAVE_SYS_PARAM_H
10357 # define HAVE_SYS_PARAM_H 1
10358 # endif
10360 # ifdef _SC_PAGESIZE
10361 # define getpagesize() sysconf(_SC_PAGESIZE)
10362 # else /* no _SC_PAGESIZE */
10363 # ifdef HAVE_SYS_PARAM_H
10364 # include <sys/param.h>
10365 # ifdef EXEC_PAGESIZE
10366 # define getpagesize() EXEC_PAGESIZE
10367 # else /* no EXEC_PAGESIZE */
10368 # ifdef NBPG
10369 # define getpagesize() NBPG * CLSIZE
10370 # ifndef CLSIZE
10371 # define CLSIZE 1
10372 # endif /* no CLSIZE */
10373 # else /* no NBPG */
10374 # ifdef NBPC
10375 # define getpagesize() NBPC
10376 # else /* no NBPC */
10377 # ifdef PAGESIZE
10378 # define getpagesize() PAGESIZE
10379 # endif /* PAGESIZE */
10380 # endif /* no NBPC */
10381 # endif /* no NBPG */
10382 # endif /* no EXEC_PAGESIZE */
10383 # else /* no HAVE_SYS_PARAM_H */
10384 # define getpagesize() 8192 /* punt totally */
10385 # endif /* no HAVE_SYS_PARAM_H */
10386 # endif /* no _SC_PAGESIZE */
10388 #endif /* no HAVE_GETPAGESIZE */
10391 main ()
10393 char *data, *data2, *data3;
10394 int i, pagesize;
10395 int fd;
10397 pagesize = getpagesize ();
10399 /* First, make a file with some known garbage in it. */
10400 data = (char *) malloc (pagesize);
10401 if (!data)
10402 return 1;
10403 for (i = 0; i < pagesize; ++i)
10404 *(data + i) = rand ();
10405 umask (0);
10406 fd = creat ("conftest.mmap", 0600);
10407 if (fd < 0)
10408 return 1;
10409 if (write (fd, data, pagesize) != pagesize)
10410 return 1;
10411 close (fd);
10413 /* Next, try to mmap the file at a fixed address which already has
10414 something else allocated at it. If we can, also make sure that
10415 we see the same garbage. */
10416 fd = open ("conftest.mmap", O_RDWR);
10417 if (fd < 0)
10418 return 1;
10419 data2 = (char *) malloc (2 * pagesize);
10420 if (!data2)
10421 return 1;
10422 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10423 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10424 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10425 return 1;
10426 for (i = 0; i < pagesize; ++i)
10427 if (*(data + i) != *(data2 + i))
10428 return 1;
10430 /* Finally, make sure that changes to the mapped area do not
10431 percolate back to the file as seen by read(). (This is a bug on
10432 some variants of i386 svr4.0.) */
10433 for (i = 0; i < pagesize; ++i)
10434 *(data2 + i) = *(data2 + i) + 1;
10435 data3 = (char *) malloc (pagesize);
10436 if (!data3)
10437 return 1;
10438 if (read (fd, data3, pagesize) != pagesize)
10439 return 1;
10440 for (i = 0; i < pagesize; ++i)
10441 if (*(data + i) != *(data3 + i))
10442 return 1;
10443 close (fd);
10444 return 0;
10446 _ACEOF
10447 rm -f conftest$ac_exeext
10448 if { (ac_try="$ac_link"
10449 case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10452 esac
10453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10454 $as_echo "$ac_try_echo") >&5
10455 (eval "$ac_link") 2>&5
10456 ac_status=$?
10457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10459 { (case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10462 esac
10463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10464 $as_echo "$ac_try_echo") >&5
10465 (eval "$ac_try") 2>&5
10466 ac_status=$?
10467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 ac_cv_func_mmap_fixed_mapped=yes
10470 else
10471 $as_echo "$as_me: program exited with status $ac_status" >&5
10472 $as_echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10475 ( exit $ac_status )
10476 ac_cv_func_mmap_fixed_mapped=no
10478 rm -rf conftest.dSYM
10479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10484 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10485 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10486 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10488 cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_MMAP 1
10490 _ACEOF
10493 rm -f conftest.mmap
10495 if test $use_mmap_for_buffers = yes; then
10496 REL_ALLOC=no
10499 LIBS="$libsrc_libs $LIBS"
10502 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10503 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10504 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10505 $as_echo_n "(cached) " >&6
10506 else
10507 ac_check_lib_save_LIBS=$LIBS
10508 LIBS="-ldnet $LIBS"
10509 cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h. */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10516 /* Override any GCC internal prototype to avoid an error.
10517 Use char because int might match the return type of a GCC
10518 builtin and then its argument prototype would still apply. */
10519 #ifdef __cplusplus
10520 extern "C"
10521 #endif
10522 char dnet_ntoa ();
10524 main ()
10526 return dnet_ntoa ();
10528 return 0;
10530 _ACEOF
10531 rm -f conftest.$ac_objext conftest$ac_exeext
10532 if { (ac_try="$ac_link"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536 esac
10537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10538 $as_echo "$ac_try_echo") >&5
10539 (eval "$ac_link") 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && {
10546 test -z "$ac_c_werror_flag" ||
10547 test ! -s conftest.err
10548 } && test -s conftest$ac_exeext && {
10549 test "$cross_compiling" = yes ||
10550 $as_test_x conftest$ac_exeext
10551 }; then
10552 ac_cv_lib_dnet_dnet_ntoa=yes
10553 else
10554 $as_echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 ac_cv_lib_dnet_dnet_ntoa=no
10560 rm -rf conftest.dSYM
10561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10562 conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS
10565 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10566 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10567 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10568 cat >>confdefs.h <<_ACEOF
10569 #define HAVE_LIBDNET 1
10570 _ACEOF
10572 LIBS="-ldnet $LIBS"
10577 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10578 $as_echo_n "checking for main in -lXbsd... " >&6; }
10579 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10580 $as_echo_n "(cached) " >&6
10581 else
10582 ac_check_lib_save_LIBS=$LIBS
10583 LIBS="-lXbsd $LIBS"
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h. */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10593 main ()
10595 return main ();
10597 return 0;
10599 _ACEOF
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (ac_try="$ac_link"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605 esac
10606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10607 $as_echo "$ac_try_echo") >&5
10608 (eval "$ac_link") 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest$ac_exeext && {
10618 test "$cross_compiling" = yes ||
10619 $as_test_x conftest$ac_exeext
10620 }; then
10621 ac_cv_lib_Xbsd_main=yes
10622 else
10623 $as_echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10626 ac_cv_lib_Xbsd_main=no
10629 rm -rf conftest.dSYM
10630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10631 conftest$ac_exeext conftest.$ac_ext
10632 LIBS=$ac_check_lib_save_LIBS
10634 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10635 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10636 if test $ac_cv_lib_Xbsd_main = yes; then
10637 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10642 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10643 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10644 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10645 $as_echo_n "(cached) " >&6
10646 else
10647 ac_check_lib_save_LIBS=$LIBS
10648 LIBS="-lpthreads $LIBS"
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h. */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10656 /* Override any GCC internal prototype to avoid an error.
10657 Use char because int might match the return type of a GCC
10658 builtin and then its argument prototype would still apply. */
10659 #ifdef __cplusplus
10660 extern "C"
10661 #endif
10662 char cma_open ();
10664 main ()
10666 return cma_open ();
10668 return 0;
10670 _ACEOF
10671 rm -f conftest.$ac_objext conftest$ac_exeext
10672 if { (ac_try="$ac_link"
10673 case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10676 esac
10677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10678 $as_echo "$ac_try_echo") >&5
10679 (eval "$ac_link") 2>conftest.er1
10680 ac_status=$?
10681 grep -v '^ *+' conftest.er1 >conftest.err
10682 rm -f conftest.er1
10683 cat conftest.err >&5
10684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } && {
10686 test -z "$ac_c_werror_flag" ||
10687 test ! -s conftest.err
10688 } && test -s conftest$ac_exeext && {
10689 test "$cross_compiling" = yes ||
10690 $as_test_x conftest$ac_exeext
10691 }; then
10692 ac_cv_lib_pthreads_cma_open=yes
10693 else
10694 $as_echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 ac_cv_lib_pthreads_cma_open=no
10700 rm -rf conftest.dSYM
10701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10702 conftest$ac_exeext conftest.$ac_ext
10703 LIBS=$ac_check_lib_save_LIBS
10705 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10706 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10707 if test $ac_cv_lib_pthreads_cma_open = yes; then
10708 cat >>confdefs.h <<_ACEOF
10709 #define HAVE_LIBPTHREADS 1
10710 _ACEOF
10712 LIBS="-lpthreads $LIBS"
10718 case ${host_os} in
10719 aix*)
10720 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10721 $as_echo_n "checking for -bbigtoc option... " >&6; }
10722 if test "${gdb_cv_bigtoc+set}" = set; then
10723 $as_echo_n "(cached) " >&6
10724 else
10726 case $GCC in
10727 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10728 *) gdb_cv_bigtoc=-bbigtoc ;;
10729 esac
10731 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10732 cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h. */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10740 main ()
10742 int i;
10744 return 0;
10746 _ACEOF
10747 rm -f conftest.$ac_objext conftest$ac_exeext
10748 if { (ac_try="$ac_link"
10749 case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10752 esac
10753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10754 $as_echo "$ac_try_echo") >&5
10755 (eval "$ac_link") 2>conftest.er1
10756 ac_status=$?
10757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
10760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } && {
10762 test -z "$ac_c_werror_flag" ||
10763 test ! -s conftest.err
10764 } && test -s conftest$ac_exeext && {
10765 test "$cross_compiling" = yes ||
10766 $as_test_x conftest$ac_exeext
10767 }; then
10769 else
10770 $as_echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10773 gdb_cv_bigtoc=
10776 rm -rf conftest.dSYM
10777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10778 conftest$ac_exeext conftest.$ac_ext
10781 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10782 $as_echo "$gdb_cv_bigtoc" >&6; }
10784 esac
10786 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10787 # used for the tests that follow. We set them back to REAL_CFLAGS and
10788 # REAL_CPPFLAGS later on.
10790 REAL_CPPFLAGS="$CPPFLAGS"
10792 if test "${HAVE_X11}" = "yes"; then
10793 DEFS="$C_SWITCH_X_SITE $DEFS"
10794 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10795 LIBS="$LIBX $LIBS"
10796 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10797 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10799 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10800 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10801 # but it's more convenient here to set LD_RUN_PATH
10802 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10803 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10804 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10805 export LD_RUN_PATH
10808 if test "${opsys}" = "gnu-linux"; then
10809 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10810 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10811 cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h. */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10819 main ()
10821 XOpenDisplay ("foo");
10823 return 0;
10825 _ACEOF
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (ac_try="$ac_link"
10828 case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10831 esac
10832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10833 $as_echo "$ac_try_echo") >&5
10834 (eval "$ac_link") 2>conftest.er1
10835 ac_status=$?
10836 grep -v '^ *+' conftest.er1 >conftest.err
10837 rm -f conftest.er1
10838 cat conftest.err >&5
10839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } && {
10841 test -z "$ac_c_werror_flag" ||
10842 test ! -s conftest.err
10843 } && test -s conftest$ac_exeext && {
10844 test "$cross_compiling" = yes ||
10845 $as_test_x conftest$ac_exeext
10846 }; then
10847 xlinux_first_failure=no
10848 else
10849 $as_echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10852 xlinux_first_failure=yes
10855 rm -rf conftest.dSYM
10856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10857 conftest$ac_exeext conftest.$ac_ext
10858 if test "${xlinux_first_failure}" = "yes"; then
10859 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10860 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10861 OLD_CPPFLAGS="$CPPFLAGS"
10862 OLD_LIBS="$LIBS"
10863 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10864 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10865 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10866 LIBS="$LIBS -b i486-linuxaout"
10867 cat >conftest.$ac_ext <<_ACEOF
10868 /* confdefs.h. */
10869 _ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10875 main ()
10877 XOpenDisplay ("foo");
10879 return 0;
10881 _ACEOF
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (ac_try="$ac_link"
10884 case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10887 esac
10888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10889 $as_echo "$ac_try_echo") >&5
10890 (eval "$ac_link") 2>conftest.er1
10891 ac_status=$?
10892 grep -v '^ *+' conftest.er1 >conftest.err
10893 rm -f conftest.er1
10894 cat conftest.err >&5
10895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } && {
10897 test -z "$ac_c_werror_flag" ||
10898 test ! -s conftest.err
10899 } && test -s conftest$ac_exeext && {
10900 test "$cross_compiling" = yes ||
10901 $as_test_x conftest$ac_exeext
10902 }; then
10903 xlinux_second_failure=no
10904 else
10905 $as_echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 xlinux_second_failure=yes
10911 rm -rf conftest.dSYM
10912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10913 conftest$ac_exeext conftest.$ac_ext
10914 if test "${xlinux_second_failure}" = "yes"; then
10915 # If we get the same failure with -b, there is no use adding -b.
10916 # So take it out. This plays safe.
10917 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10918 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10919 CPPFLAGS="$OLD_CPPFLAGS"
10920 LIBS="$OLD_LIBS"
10921 { $as_echo "$as_me:$LINENO: result: no" >&5
10922 $as_echo "no" >&6; }
10923 else
10924 { $as_echo "$as_me:$LINENO: result: yes" >&5
10925 $as_echo "yes" >&6; }
10927 else
10928 { $as_echo "$as_me:$LINENO: result: no" >&5
10929 $as_echo "no" >&6; }
10933 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10934 # header files included from there.
10935 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
10936 $as_echo_n "checking for Xkb... " >&6; }
10937 cat >conftest.$ac_ext <<_ACEOF
10938 /* confdefs.h. */
10939 _ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10943 #include <X11/Xlib.h>
10944 #include <X11/XKBlib.h>
10946 main ()
10948 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10950 return 0;
10952 _ACEOF
10953 rm -f conftest.$ac_objext conftest$ac_exeext
10954 if { (ac_try="$ac_link"
10955 case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10958 esac
10959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10960 $as_echo "$ac_try_echo") >&5
10961 (eval "$ac_link") 2>conftest.er1
10962 ac_status=$?
10963 grep -v '^ *+' conftest.er1 >conftest.err
10964 rm -f conftest.er1
10965 cat conftest.err >&5
10966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } && {
10968 test -z "$ac_c_werror_flag" ||
10969 test ! -s conftest.err
10970 } && test -s conftest$ac_exeext && {
10971 test "$cross_compiling" = yes ||
10972 $as_test_x conftest$ac_exeext
10973 }; then
10974 emacs_xkb=yes
10975 else
10976 $as_echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10979 emacs_xkb=no
10982 rm -rf conftest.dSYM
10983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10984 conftest$ac_exeext conftest.$ac_ext
10985 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10986 $as_echo "$emacs_xkb" >&6; }
10987 if test $emacs_xkb = yes; then
10989 cat >>confdefs.h <<\_ACEOF
10990 #define HAVE_XKBGETKEYBOARD 1
10991 _ACEOF
10999 for ac_func in XrmSetDatabase XScreenResourceString \
11000 XScreenNumberOfScreen XSetWMProtocols
11002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11003 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11004 $as_echo_n "checking for $ac_func... " >&6; }
11005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11006 $as_echo_n "(cached) " >&6
11007 else
11008 cat >conftest.$ac_ext <<_ACEOF
11009 /* confdefs.h. */
11010 _ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11016 #define $ac_func innocuous_$ac_func
11018 /* System header to define __stub macros and hopefully few prototypes,
11019 which can conflict with char $ac_func (); below.
11020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11021 <limits.h> exists even on freestanding compilers. */
11023 #ifdef __STDC__
11024 # include <limits.h>
11025 #else
11026 # include <assert.h>
11027 #endif
11029 #undef $ac_func
11031 /* Override any GCC internal prototype to avoid an error.
11032 Use char because int might match the return type of a GCC
11033 builtin and then its argument prototype would still apply. */
11034 #ifdef __cplusplus
11035 extern "C"
11036 #endif
11037 char $ac_func ();
11038 /* The GNU C library defines this for functions which it implements
11039 to always fail with ENOSYS. Some functions are actually named
11040 something starting with __ and the normal name is an alias. */
11041 #if defined __stub_$ac_func || defined __stub___$ac_func
11042 choke me
11043 #endif
11046 main ()
11048 return $ac_func ();
11050 return 0;
11052 _ACEOF
11053 rm -f conftest.$ac_objext conftest$ac_exeext
11054 if { (ac_try="$ac_link"
11055 case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11058 esac
11059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11060 $as_echo "$ac_try_echo") >&5
11061 (eval "$ac_link") 2>conftest.er1
11062 ac_status=$?
11063 grep -v '^ *+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
11066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } && {
11068 test -z "$ac_c_werror_flag" ||
11069 test ! -s conftest.err
11070 } && test -s conftest$ac_exeext && {
11071 test "$cross_compiling" = yes ||
11072 $as_test_x conftest$ac_exeext
11073 }; then
11074 eval "$as_ac_var=yes"
11075 else
11076 $as_echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11079 eval "$as_ac_var=no"
11082 rm -rf conftest.dSYM
11083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11084 conftest$ac_exeext conftest.$ac_ext
11086 ac_res=`eval 'as_val=${'$as_ac_var'}
11087 $as_echo "$as_val"'`
11088 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11089 $as_echo "$ac_res" >&6; }
11090 if test `eval 'as_val=${'$as_ac_var'}
11091 $as_echo "$as_val"'` = yes; then
11092 cat >>confdefs.h <<_ACEOF
11093 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11094 _ACEOF
11097 done
11101 if test "${window_system}" = "x11"; then
11102 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11103 $as_echo_n "checking X11 version 6... " >&6; }
11104 if test "${emacs_cv_x11_version_6+set}" = set; then
11105 $as_echo_n "(cached) " >&6
11106 else
11107 cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h. */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 #include <X11/Xlib.h>
11115 main ()
11117 #if XlibSpecificationRelease < 6
11118 fail;
11119 #endif
11122 return 0;
11124 _ACEOF
11125 rm -f conftest.$ac_objext conftest$ac_exeext
11126 if { (ac_try="$ac_link"
11127 case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11130 esac
11131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11132 $as_echo "$ac_try_echo") >&5
11133 (eval "$ac_link") 2>conftest.er1
11134 ac_status=$?
11135 grep -v '^ *+' conftest.er1 >conftest.err
11136 rm -f conftest.er1
11137 cat conftest.err >&5
11138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } && {
11140 test -z "$ac_c_werror_flag" ||
11141 test ! -s conftest.err
11142 } && test -s conftest$ac_exeext && {
11143 test "$cross_compiling" = yes ||
11144 $as_test_x conftest$ac_exeext
11145 }; then
11146 emacs_cv_x11_version_6=yes
11147 else
11148 $as_echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 emacs_cv_x11_version_6=no
11154 rm -rf conftest.dSYM
11155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11156 conftest$ac_exeext conftest.$ac_ext
11159 if test $emacs_cv_x11_version_6 = yes; then
11160 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11161 $as_echo "6 or newer" >&6; }
11163 cat >>confdefs.h <<\_ACEOF
11164 #define HAVE_X11R6 1
11165 _ACEOF
11167 else
11168 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11169 $as_echo "before 6" >&6; }
11174 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11175 HAVE_RSVG=no
11176 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11177 if test "${with_rsvg}" != "no"; then
11178 RSVG_REQUIRED=2.11.0
11179 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11182 succeeded=no
11184 # Extract the first word of "pkg-config", so it can be a program name with args.
11185 set dummy pkg-config; ac_word=$2
11186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11187 $as_echo_n "checking for $ac_word... " >&6; }
11188 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11189 $as_echo_n "(cached) " >&6
11190 else
11191 case $PKG_CONFIG in
11192 [\\/]* | ?:[\\/]*)
11193 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197 for as_dir in $PATH
11199 IFS=$as_save_IFS
11200 test -z "$as_dir" && as_dir=.
11201 for ac_exec_ext in '' $ac_executable_extensions; do
11202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11203 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11205 break 2
11207 done
11208 done
11209 IFS=$as_save_IFS
11211 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11213 esac
11215 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11216 if test -n "$PKG_CONFIG"; then
11217 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11218 $as_echo "$PKG_CONFIG" >&6; }
11219 else
11220 { $as_echo "$as_me:$LINENO: result: no" >&5
11221 $as_echo "no" >&6; }
11226 if test "$PKG_CONFIG" = "no" ; then
11228 else
11229 PKG_CONFIG_MIN_VERSION=0.9.0
11230 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11231 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11232 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11234 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11235 { $as_echo "$as_me:$LINENO: result: yes" >&5
11236 $as_echo "yes" >&6; }
11237 succeeded=yes
11239 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11240 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11241 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11242 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11243 $as_echo "$RSVG_CFLAGS" >&6; }
11245 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11246 $as_echo_n "checking RSVG_LIBS... " >&6; }
11247 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11248 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11249 $as_echo "$RSVG_LIBS" >&6; }
11250 else
11251 { $as_echo "$as_me:$LINENO: result: no" >&5
11252 $as_echo "no" >&6; }
11253 RSVG_CFLAGS=""
11254 RSVG_LIBS=""
11255 ## If we have a custom action on failure, don't print errors, but
11256 ## do set a variable so people can do so.
11257 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11263 else
11264 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11265 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11269 if test $succeeded = yes; then
11271 else
11278 if test ".${RSVG_CFLAGS}" != "."; then
11279 HAVE_RSVG=yes
11281 cat >>confdefs.h <<\_ACEOF
11282 #define HAVE_RSVG 1
11283 _ACEOF
11285 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11286 LIBS="$RSVG_LIBS $LIBS"
11292 HAVE_GTK=no
11293 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11294 GLIB_REQUIRED=2.6
11295 GTK_REQUIRED=2.6
11296 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11299 succeeded=no
11301 # Extract the first word of "pkg-config", so it can be a program name with args.
11302 set dummy pkg-config; ac_word=$2
11303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11304 $as_echo_n "checking for $ac_word... " >&6; }
11305 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11306 $as_echo_n "(cached) " >&6
11307 else
11308 case $PKG_CONFIG in
11309 [\\/]* | ?:[\\/]*)
11310 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $PATH
11316 IFS=$as_save_IFS
11317 test -z "$as_dir" && as_dir=.
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11320 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11322 break 2
11324 done
11325 done
11326 IFS=$as_save_IFS
11328 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11330 esac
11332 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11333 if test -n "$PKG_CONFIG"; then
11334 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11335 $as_echo "$PKG_CONFIG" >&6; }
11336 else
11337 { $as_echo "$as_me:$LINENO: result: no" >&5
11338 $as_echo "no" >&6; }
11343 if test "$PKG_CONFIG" = "no" ; then
11344 pkg_check_gtk=no
11345 else
11346 PKG_CONFIG_MIN_VERSION=0.9.0
11347 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11348 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11349 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11351 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11352 { $as_echo "$as_me:$LINENO: result: yes" >&5
11353 $as_echo "yes" >&6; }
11354 succeeded=yes
11356 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11357 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11358 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11359 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11360 $as_echo "$GTK_CFLAGS" >&6; }
11362 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11363 $as_echo_n "checking GTK_LIBS... " >&6; }
11364 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11365 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11366 $as_echo "$GTK_LIBS" >&6; }
11367 else
11368 { $as_echo "$as_me:$LINENO: result: no" >&5
11369 $as_echo "no" >&6; }
11370 GTK_CFLAGS=""
11371 GTK_LIBS=""
11372 ## If we have a custom action on failure, don't print errors, but
11373 ## do set a variable so people can do so.
11374 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11380 else
11381 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11382 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11386 if test $succeeded = yes; then
11387 pkg_check_gtk=yes
11388 else
11389 pkg_check_gtk=no
11392 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11393 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11394 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11395 { (exit 1); exit 1; }; }
11400 if test x"$pkg_check_gtk" = xyes; then
11404 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11405 CFLAGS="$CFLAGS $GTK_CFLAGS"
11406 LIBS="$GTK_LIBS $LIBS"
11407 GTK_COMPILES=no
11409 for ac_func in gtk_main
11411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11412 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11413 $as_echo_n "checking for $ac_func... " >&6; }
11414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11415 $as_echo_n "(cached) " >&6
11416 else
11417 cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h. */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11425 #define $ac_func innocuous_$ac_func
11427 /* System header to define __stub macros and hopefully few prototypes,
11428 which can conflict with char $ac_func (); below.
11429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11430 <limits.h> exists even on freestanding compilers. */
11432 #ifdef __STDC__
11433 # include <limits.h>
11434 #else
11435 # include <assert.h>
11436 #endif
11438 #undef $ac_func
11440 /* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11443 #ifdef __cplusplus
11444 extern "C"
11445 #endif
11446 char $ac_func ();
11447 /* The GNU C library defines this for functions which it implements
11448 to always fail with ENOSYS. Some functions are actually named
11449 something starting with __ and the normal name is an alias. */
11450 #if defined __stub_$ac_func || defined __stub___$ac_func
11451 choke me
11452 #endif
11455 main ()
11457 return $ac_func ();
11459 return 0;
11461 _ACEOF
11462 rm -f conftest.$ac_objext conftest$ac_exeext
11463 if { (ac_try="$ac_link"
11464 case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11467 esac
11468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11469 $as_echo "$ac_try_echo") >&5
11470 (eval "$ac_link") 2>conftest.er1
11471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } && {
11477 test -z "$ac_c_werror_flag" ||
11478 test ! -s conftest.err
11479 } && test -s conftest$ac_exeext && {
11480 test "$cross_compiling" = yes ||
11481 $as_test_x conftest$ac_exeext
11482 }; then
11483 eval "$as_ac_var=yes"
11484 else
11485 $as_echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11488 eval "$as_ac_var=no"
11491 rm -rf conftest.dSYM
11492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11493 conftest$ac_exeext conftest.$ac_ext
11495 ac_res=`eval 'as_val=${'$as_ac_var'}
11496 $as_echo "$as_val"'`
11497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11498 $as_echo "$ac_res" >&6; }
11499 if test `eval 'as_val=${'$as_ac_var'}
11500 $as_echo "$as_val"'` = yes; then
11501 cat >>confdefs.h <<_ACEOF
11502 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11503 _ACEOF
11504 GTK_COMPILES=yes
11506 done
11508 if test "${GTK_COMPILES}" != "yes"; then
11509 if test "$USE_X_TOOLKIT" != "maybe"; then
11510 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11511 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11512 { (exit 1); exit 1; }; };
11514 else
11515 HAVE_GTK=yes
11517 cat >>confdefs.h <<\_ACEOF
11518 #define USE_GTK 1
11519 _ACEOF
11521 USE_X_TOOLKIT=none
11522 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11524 else
11525 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11526 closing open displays. This is no problem if you just use
11527 one display, but if you use more than one and close one of them
11528 Emacs may crash." >&5
11529 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11530 closing open displays. This is no problem if you just use
11531 one display, but if you use more than one and close one of them
11532 Emacs may crash." >&2;}
11533 sleep 3
11540 if test "${HAVE_GTK}" = "yes"; then
11542 if test "$with_toolkit_scroll_bars" != no; then
11543 with_toolkit_scroll_bars=yes
11546 HAVE_GTK_MULTIDISPLAY=no
11548 for ac_func in gdk_display_open
11550 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11551 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11552 $as_echo_n "checking for $ac_func... " >&6; }
11553 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11554 $as_echo_n "(cached) " >&6
11555 else
11556 cat >conftest.$ac_ext <<_ACEOF
11557 /* confdefs.h. */
11558 _ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11564 #define $ac_func innocuous_$ac_func
11566 /* System header to define __stub macros and hopefully few prototypes,
11567 which can conflict with char $ac_func (); below.
11568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11569 <limits.h> exists even on freestanding compilers. */
11571 #ifdef __STDC__
11572 # include <limits.h>
11573 #else
11574 # include <assert.h>
11575 #endif
11577 #undef $ac_func
11579 /* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11582 #ifdef __cplusplus
11583 extern "C"
11584 #endif
11585 char $ac_func ();
11586 /* The GNU C library defines this for functions which it implements
11587 to always fail with ENOSYS. Some functions are actually named
11588 something starting with __ and the normal name is an alias. */
11589 #if defined __stub_$ac_func || defined __stub___$ac_func
11590 choke me
11591 #endif
11594 main ()
11596 return $ac_func ();
11598 return 0;
11600 _ACEOF
11601 rm -f conftest.$ac_objext conftest$ac_exeext
11602 if { (ac_try="$ac_link"
11603 case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11606 esac
11607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11608 $as_echo "$ac_try_echo") >&5
11609 (eval "$ac_link") 2>conftest.er1
11610 ac_status=$?
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
11614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } && {
11616 test -z "$ac_c_werror_flag" ||
11617 test ! -s conftest.err
11618 } && test -s conftest$ac_exeext && {
11619 test "$cross_compiling" = yes ||
11620 $as_test_x conftest$ac_exeext
11621 }; then
11622 eval "$as_ac_var=yes"
11623 else
11624 $as_echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 eval "$as_ac_var=no"
11630 rm -rf conftest.dSYM
11631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11632 conftest$ac_exeext conftest.$ac_ext
11634 ac_res=`eval 'as_val=${'$as_ac_var'}
11635 $as_echo "$as_val"'`
11636 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11637 $as_echo "$ac_res" >&6; }
11638 if test `eval 'as_val=${'$as_ac_var'}
11639 $as_echo "$as_val"'` = yes; then
11640 cat >>confdefs.h <<_ACEOF
11641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11642 _ACEOF
11643 HAVE_GTK_MULTIDISPLAY=yes
11645 done
11647 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11649 cat >>confdefs.h <<\_ACEOF
11650 #define HAVE_GTK_MULTIDISPLAY 1
11651 _ACEOF
11655 HAVE_GTK_FILE_SELECTION=no
11656 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11657 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11658 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11659 $as_echo_n "(cached) " >&6
11660 else
11661 cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h. */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 $ac_includes_default
11668 #include <gtk/gtk.h>
11671 main ()
11673 #ifndef GTK_TYPE_FILE_SELECTION
11674 (void) GTK_TYPE_FILE_SELECTION;
11675 #endif
11678 return 0;
11680 _ACEOF
11681 rm -f conftest.$ac_objext
11682 if { (ac_try="$ac_compile"
11683 case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11686 esac
11687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11688 $as_echo "$ac_try_echo") >&5
11689 (eval "$ac_compile") 2>conftest.er1
11690 ac_status=$?
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
11694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } && {
11696 test -z "$ac_c_werror_flag" ||
11697 test ! -s conftest.err
11698 } && test -s conftest.$ac_objext; then
11699 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11700 else
11701 $as_echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11704 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11709 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11710 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11711 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11712 HAVE_GTK_FILE_SELECTION=yes
11713 else
11714 HAVE_GTK_FILE_SELECTION=no
11717 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11719 for ac_func in gtk_file_selection_new
11721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11722 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11723 $as_echo_n "checking for $ac_func... " >&6; }
11724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11725 $as_echo_n "(cached) " >&6
11726 else
11727 cat >conftest.$ac_ext <<_ACEOF
11728 /* confdefs.h. */
11729 _ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11735 #define $ac_func innocuous_$ac_func
11737 /* System header to define __stub macros and hopefully few prototypes,
11738 which can conflict with char $ac_func (); below.
11739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11740 <limits.h> exists even on freestanding compilers. */
11742 #ifdef __STDC__
11743 # include <limits.h>
11744 #else
11745 # include <assert.h>
11746 #endif
11748 #undef $ac_func
11750 /* Override any GCC internal prototype to avoid an error.
11751 Use char because int might match the return type of a GCC
11752 builtin and then its argument prototype would still apply. */
11753 #ifdef __cplusplus
11754 extern "C"
11755 #endif
11756 char $ac_func ();
11757 /* The GNU C library defines this for functions which it implements
11758 to always fail with ENOSYS. Some functions are actually named
11759 something starting with __ and the normal name is an alias. */
11760 #if defined __stub_$ac_func || defined __stub___$ac_func
11761 choke me
11762 #endif
11765 main ()
11767 return $ac_func ();
11769 return 0;
11771 _ACEOF
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773 if { (ac_try="$ac_link"
11774 case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11777 esac
11778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11779 $as_echo "$ac_try_echo") >&5
11780 (eval "$ac_link") 2>conftest.er1
11781 ac_status=$?
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
11785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } && {
11787 test -z "$ac_c_werror_flag" ||
11788 test ! -s conftest.err
11789 } && test -s conftest$ac_exeext && {
11790 test "$cross_compiling" = yes ||
11791 $as_test_x conftest$ac_exeext
11792 }; then
11793 eval "$as_ac_var=yes"
11794 else
11795 $as_echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11798 eval "$as_ac_var=no"
11801 rm -rf conftest.dSYM
11802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11803 conftest$ac_exeext conftest.$ac_ext
11805 ac_res=`eval 'as_val=${'$as_ac_var'}
11806 $as_echo "$as_val"'`
11807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11808 $as_echo "$ac_res" >&6; }
11809 if test `eval 'as_val=${'$as_ac_var'}
11810 $as_echo "$as_val"'` = yes; then
11811 cat >>confdefs.h <<_ACEOF
11812 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11813 _ACEOF
11814 HAVE_GTK_FILE_SELECTION=yes
11815 else
11816 HAVE_GTK_FILE_SELECTION=no
11818 done
11822 HAVE_GTK_FILE_CHOOSER=no
11823 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11824 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
11825 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11826 $as_echo_n "(cached) " >&6
11827 else
11828 cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h. */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 $ac_includes_default
11835 #include <gtk/gtk.h>
11838 main ()
11840 #ifndef GTK_TYPE_FILE_CHOOSER
11841 (void) GTK_TYPE_FILE_CHOOSER;
11842 #endif
11845 return 0;
11847 _ACEOF
11848 rm -f conftest.$ac_objext
11849 if { (ac_try="$ac_compile"
11850 case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853 esac
11854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11855 $as_echo "$ac_try_echo") >&5
11856 (eval "$ac_compile") 2>conftest.er1
11857 ac_status=$?
11858 grep -v '^ *+' conftest.er1 >conftest.err
11859 rm -f conftest.er1
11860 cat conftest.err >&5
11861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } && {
11863 test -z "$ac_c_werror_flag" ||
11864 test ! -s conftest.err
11865 } && test -s conftest.$ac_objext; then
11866 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11867 else
11868 $as_echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11871 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11877 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11878 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11879 HAVE_GTK_FILE_CHOOSER=yes
11880 else
11881 HAVE_GTK_FILE_CHOOSER=no
11884 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11886 for ac_func in gtk_file_chooser_dialog_new
11888 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11889 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11890 $as_echo_n "checking for $ac_func... " >&6; }
11891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11892 $as_echo_n "(cached) " >&6
11893 else
11894 cat >conftest.$ac_ext <<_ACEOF
11895 /* confdefs.h. */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11902 #define $ac_func innocuous_$ac_func
11904 /* System header to define __stub macros and hopefully few prototypes,
11905 which can conflict with char $ac_func (); below.
11906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11907 <limits.h> exists even on freestanding compilers. */
11909 #ifdef __STDC__
11910 # include <limits.h>
11911 #else
11912 # include <assert.h>
11913 #endif
11915 #undef $ac_func
11917 /* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
11920 #ifdef __cplusplus
11921 extern "C"
11922 #endif
11923 char $ac_func ();
11924 /* The GNU C library defines this for functions which it implements
11925 to always fail with ENOSYS. Some functions are actually named
11926 something starting with __ and the normal name is an alias. */
11927 #if defined __stub_$ac_func || defined __stub___$ac_func
11928 choke me
11929 #endif
11932 main ()
11934 return $ac_func ();
11936 return 0;
11938 _ACEOF
11939 rm -f conftest.$ac_objext conftest$ac_exeext
11940 if { (ac_try="$ac_link"
11941 case "(($ac_try" in
11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943 *) ac_try_echo=$ac_try;;
11944 esac
11945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11946 $as_echo "$ac_try_echo") >&5
11947 (eval "$ac_link") 2>conftest.er1
11948 ac_status=$?
11949 grep -v '^ *+' conftest.er1 >conftest.err
11950 rm -f conftest.er1
11951 cat conftest.err >&5
11952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } && {
11954 test -z "$ac_c_werror_flag" ||
11955 test ! -s conftest.err
11956 } && test -s conftest$ac_exeext && {
11957 test "$cross_compiling" = yes ||
11958 $as_test_x conftest$ac_exeext
11959 }; then
11960 eval "$as_ac_var=yes"
11961 else
11962 $as_echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 eval "$as_ac_var=no"
11968 rm -rf conftest.dSYM
11969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11970 conftest$ac_exeext conftest.$ac_ext
11972 ac_res=`eval 'as_val=${'$as_ac_var'}
11973 $as_echo "$as_val"'`
11974 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11975 $as_echo "$ac_res" >&6; }
11976 if test `eval 'as_val=${'$as_ac_var'}
11977 $as_echo "$as_val"'` = yes; then
11978 cat >>confdefs.h <<_ACEOF
11979 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11980 _ACEOF
11981 HAVE_GTK_FILE_CHOOSER=yes
11982 else
11983 HAVE_GTK_FILE_CHOOSER=no
11985 done
11989 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11990 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11992 cat >>confdefs.h <<\_ACEOF
11993 #define HAVE_GTK_FILE_BOTH 1
11994 _ACEOF
11998 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11999 HAVE_GTK_AND_PTHREAD=no
12001 for ac_header in pthread.h
12003 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12005 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12006 $as_echo_n "checking for $ac_header... " >&6; }
12007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12008 $as_echo_n "(cached) " >&6
12010 ac_res=`eval 'as_val=${'$as_ac_Header'}
12011 $as_echo "$as_val"'`
12012 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12013 $as_echo "$ac_res" >&6; }
12014 else
12015 # Is the header compilable?
12016 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12017 $as_echo_n "checking $ac_header usability... " >&6; }
12018 cat >conftest.$ac_ext <<_ACEOF
12019 /* confdefs.h. */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 $ac_includes_default
12025 #include <$ac_header>
12026 _ACEOF
12027 rm -f conftest.$ac_objext
12028 if { (ac_try="$ac_compile"
12029 case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032 esac
12033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12034 $as_echo "$ac_try_echo") >&5
12035 (eval "$ac_compile") 2>conftest.er1
12036 ac_status=$?
12037 grep -v '^ *+' conftest.er1 >conftest.err
12038 rm -f conftest.er1
12039 cat conftest.err >&5
12040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } && {
12042 test -z "$ac_c_werror_flag" ||
12043 test ! -s conftest.err
12044 } && test -s conftest.$ac_objext; then
12045 ac_header_compiler=yes
12046 else
12047 $as_echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 ac_header_compiler=no
12053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12055 $as_echo "$ac_header_compiler" >&6; }
12057 # Is the header present?
12058 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12059 $as_echo_n "checking $ac_header presence... " >&6; }
12060 cat >conftest.$ac_ext <<_ACEOF
12061 /* confdefs.h. */
12062 _ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h. */
12066 #include <$ac_header>
12067 _ACEOF
12068 if { (ac_try="$ac_cpp conftest.$ac_ext"
12069 case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072 esac
12073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12074 $as_echo "$ac_try_echo") >&5
12075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } >/dev/null && {
12082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12083 test ! -s conftest.err
12084 }; then
12085 ac_header_preproc=yes
12086 else
12087 $as_echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12090 ac_header_preproc=no
12093 rm -f conftest.err conftest.$ac_ext
12094 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12095 $as_echo "$ac_header_preproc" >&6; }
12097 # So? What about this header?
12098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12099 yes:no: )
12100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12101 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12103 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12104 ac_header_preproc=yes
12106 no:yes:* )
12107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12108 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12110 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12112 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12114 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12116 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12118 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12121 esac
12122 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12123 $as_echo_n "checking for $ac_header... " >&6; }
12124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12125 $as_echo_n "(cached) " >&6
12126 else
12127 eval "$as_ac_Header=\$ac_header_preproc"
12129 ac_res=`eval 'as_val=${'$as_ac_Header'}
12130 $as_echo "$as_val"'`
12131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12132 $as_echo "$ac_res" >&6; }
12135 if test `eval 'as_val=${'$as_ac_Header'}
12136 $as_echo "$as_val"'` = yes; then
12137 cat >>confdefs.h <<_ACEOF
12138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12139 _ACEOF
12143 done
12145 if test "$ac_cv_header_pthread_h"; then
12146 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12147 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12148 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12149 $as_echo_n "(cached) " >&6
12150 else
12151 ac_check_lib_save_LIBS=$LIBS
12152 LIBS="-lpthread $LIBS"
12153 cat >conftest.$ac_ext <<_ACEOF
12154 /* confdefs.h. */
12155 _ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12160 /* Override any GCC internal prototype to avoid an error.
12161 Use char because int might match the return type of a GCC
12162 builtin and then its argument prototype would still apply. */
12163 #ifdef __cplusplus
12164 extern "C"
12165 #endif
12166 char pthread_self ();
12168 main ()
12170 return pthread_self ();
12172 return 0;
12174 _ACEOF
12175 rm -f conftest.$ac_objext conftest$ac_exeext
12176 if { (ac_try="$ac_link"
12177 case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12180 esac
12181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12182 $as_echo "$ac_try_echo") >&5
12183 (eval "$ac_link") 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } && {
12190 test -z "$ac_c_werror_flag" ||
12191 test ! -s conftest.err
12192 } && test -s conftest$ac_exeext && {
12193 test "$cross_compiling" = yes ||
12194 $as_test_x conftest$ac_exeext
12195 }; then
12196 ac_cv_lib_pthread_pthread_self=yes
12197 else
12198 $as_echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 ac_cv_lib_pthread_pthread_self=no
12204 rm -rf conftest.dSYM
12205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12206 conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12209 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12210 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12211 if test $ac_cv_lib_pthread_pthread_self = yes; then
12212 HAVE_GTK_AND_PTHREAD=yes
12216 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12217 case "${canonical}" in
12218 *-hpux*) ;;
12219 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12220 esac
12222 cat >>confdefs.h <<\_ACEOF
12223 #define HAVE_GTK_AND_PTHREAD 1
12224 _ACEOF
12230 HAVE_DBUS=no
12231 if test "${with_dbus}" = "yes"; then
12233 succeeded=no
12235 # Extract the first word of "pkg-config", so it can be a program name with args.
12236 set dummy pkg-config; ac_word=$2
12237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12240 $as_echo_n "(cached) " >&6
12241 else
12242 case $PKG_CONFIG in
12243 [\\/]* | ?:[\\/]*)
12244 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248 for as_dir in $PATH
12250 IFS=$as_save_IFS
12251 test -z "$as_dir" && as_dir=.
12252 for ac_exec_ext in '' $ac_executable_extensions; do
12253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12254 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12256 break 2
12258 done
12259 done
12260 IFS=$as_save_IFS
12262 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12264 esac
12266 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12267 if test -n "$PKG_CONFIG"; then
12268 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12269 $as_echo "$PKG_CONFIG" >&6; }
12270 else
12271 { $as_echo "$as_me:$LINENO: result: no" >&5
12272 $as_echo "no" >&6; }
12277 if test "$PKG_CONFIG" = "no" ; then
12278 HAVE_DBUS=no
12279 else
12280 PKG_CONFIG_MIN_VERSION=0.9.0
12281 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12282 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12283 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12285 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12286 { $as_echo "$as_me:$LINENO: result: yes" >&5
12287 $as_echo "yes" >&6; }
12288 succeeded=yes
12290 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12291 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12292 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12293 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12294 $as_echo "$DBUS_CFLAGS" >&6; }
12296 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12297 $as_echo_n "checking DBUS_LIBS... " >&6; }
12298 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12299 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12300 $as_echo "$DBUS_LIBS" >&6; }
12301 else
12302 { $as_echo "$as_me:$LINENO: result: no" >&5
12303 $as_echo "no" >&6; }
12304 DBUS_CFLAGS=""
12305 DBUS_LIBS=""
12306 ## If we have a custom action on failure, don't print errors, but
12307 ## do set a variable so people can do so.
12308 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12314 else
12315 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12316 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12320 if test $succeeded = yes; then
12321 HAVE_DBUS=yes
12322 else
12323 HAVE_DBUS=no
12326 if test "$HAVE_DBUS" = yes; then
12327 LIBS="$LIBS $DBUS_LIBS"
12329 cat >>confdefs.h <<\_ACEOF
12330 #define HAVE_DBUS 1
12331 _ACEOF
12334 for ac_func in dbus_watch_get_unix_fd
12336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12337 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12338 $as_echo_n "checking for $ac_func... " >&6; }
12339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12340 $as_echo_n "(cached) " >&6
12341 else
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12350 #define $ac_func innocuous_$ac_func
12352 /* System header to define __stub macros and hopefully few prototypes,
12353 which can conflict with char $ac_func (); below.
12354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12355 <limits.h> exists even on freestanding compilers. */
12357 #ifdef __STDC__
12358 # include <limits.h>
12359 #else
12360 # include <assert.h>
12361 #endif
12363 #undef $ac_func
12365 /* Override any GCC internal prototype to avoid an error.
12366 Use char because int might match the return type of a GCC
12367 builtin and then its argument prototype would still apply. */
12368 #ifdef __cplusplus
12369 extern "C"
12370 #endif
12371 char $ac_func ();
12372 /* The GNU C library defines this for functions which it implements
12373 to always fail with ENOSYS. Some functions are actually named
12374 something starting with __ and the normal name is an alias. */
12375 #if defined __stub_$ac_func || defined __stub___$ac_func
12376 choke me
12377 #endif
12380 main ()
12382 return $ac_func ();
12384 return 0;
12386 _ACEOF
12387 rm -f conftest.$ac_objext conftest$ac_exeext
12388 if { (ac_try="$ac_link"
12389 case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12392 esac
12393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12394 $as_echo "$ac_try_echo") >&5
12395 (eval "$ac_link") 2>conftest.er1
12396 ac_status=$?
12397 grep -v '^ *+' conftest.er1 >conftest.err
12398 rm -f conftest.er1
12399 cat conftest.err >&5
12400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } && {
12402 test -z "$ac_c_werror_flag" ||
12403 test ! -s conftest.err
12404 } && test -s conftest$ac_exeext && {
12405 test "$cross_compiling" = yes ||
12406 $as_test_x conftest$ac_exeext
12407 }; then
12408 eval "$as_ac_var=yes"
12409 else
12410 $as_echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12413 eval "$as_ac_var=no"
12416 rm -rf conftest.dSYM
12417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12418 conftest$ac_exeext conftest.$ac_ext
12420 ac_res=`eval 'as_val=${'$as_ac_var'}
12421 $as_echo "$as_val"'`
12422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12423 $as_echo "$ac_res" >&6; }
12424 if test `eval 'as_val=${'$as_ac_var'}
12425 $as_echo "$as_val"'` = yes; then
12426 cat >>confdefs.h <<_ACEOF
12427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12428 _ACEOF
12431 done
12436 HAVE_XAW3D=no
12437 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12438 if test "$with_xaw3d" != no; then
12439 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12440 $as_echo_n "checking for xaw3d... " >&6; }
12441 if test "${emacs_cv_xaw3d+set}" = set; then
12442 $as_echo_n "(cached) " >&6
12443 else
12444 cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h. */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12451 #include <X11/Intrinsic.h>
12452 #include <X11/Xaw3d/Simple.h>
12454 main ()
12458 return 0;
12460 _ACEOF
12461 rm -f conftest.$ac_objext conftest$ac_exeext
12462 if { (ac_try="$ac_link"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466 esac
12467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12468 $as_echo "$ac_try_echo") >&5
12469 (eval "$ac_link") 2>conftest.er1
12470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest$ac_exeext && {
12479 test "$cross_compiling" = yes ||
12480 $as_test_x conftest$ac_exeext
12481 }; then
12482 emacs_cv_xaw3d=yes
12483 else
12484 $as_echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 emacs_cv_xaw3d=no
12490 rm -rf conftest.dSYM
12491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12492 conftest$ac_exeext conftest.$ac_ext
12495 else
12496 emacs_cv_xaw3d=no
12498 if test $emacs_cv_xaw3d = yes; then
12499 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12500 $as_echo "yes; using Lucid toolkit" >&6; }
12501 USE_X_TOOLKIT=LUCID
12502 HAVE_XAW3D=yes
12504 cat >>confdefs.h <<\_ACEOF
12505 #define HAVE_XAW3D 1
12506 _ACEOF
12508 else
12509 { $as_echo "$as_me:$LINENO: result: no" >&5
12510 $as_echo "no" >&6; }
12511 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12512 $as_echo_n "checking for libXaw... " >&6; }
12513 if test "${emacs_cv_xaw+set}" = set; then
12514 $as_echo_n "(cached) " >&6
12515 else
12516 cat >conftest.$ac_ext <<_ACEOF
12517 /* confdefs.h. */
12518 _ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12523 #include <X11/Intrinsic.h>
12524 #include <X11/Xaw/Simple.h>
12526 main ()
12530 return 0;
12532 _ACEOF
12533 rm -f conftest.$ac_objext conftest$ac_exeext
12534 if { (ac_try="$ac_link"
12535 case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12538 esac
12539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12540 $as_echo "$ac_try_echo") >&5
12541 (eval "$ac_link") 2>conftest.er1
12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
12546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest$ac_exeext && {
12551 test "$cross_compiling" = yes ||
12552 $as_test_x conftest$ac_exeext
12553 }; then
12554 emacs_cv_xaw=yes
12555 else
12556 $as_echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12559 emacs_cv_xaw=no
12562 rm -rf conftest.dSYM
12563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12564 conftest$ac_exeext conftest.$ac_ext
12567 if test $emacs_cv_xaw = yes; then
12568 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12569 $as_echo "yes; using Lucid toolkit" >&6; }
12570 USE_X_TOOLKIT=LUCID
12571 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12572 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12573 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12574 { (exit 1); exit 1; }; }
12575 else
12576 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12577 $as_echo "no; do not use toolkit by default" >&6; }
12578 USE_X_TOOLKIT=none
12583 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12585 if test "${USE_X_TOOLKIT}" != "none"; then
12586 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12587 $as_echo_n "checking X11 toolkit version... " >&6; }
12588 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12589 $as_echo_n "(cached) " >&6
12590 else
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h. */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597 #include <X11/Intrinsic.h>
12599 main ()
12601 #if XtSpecificationRelease < 6
12602 fail;
12603 #endif
12606 return 0;
12608 _ACEOF
12609 rm -f conftest.$ac_objext conftest$ac_exeext
12610 if { (ac_try="$ac_link"
12611 case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12614 esac
12615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12616 $as_echo "$ac_try_echo") >&5
12617 (eval "$ac_link") 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
12626 } && test -s conftest$ac_exeext && {
12627 test "$cross_compiling" = yes ||
12628 $as_test_x conftest$ac_exeext
12629 }; then
12630 emacs_cv_x11_toolkit_version_6=yes
12631 else
12632 $as_echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12635 emacs_cv_x11_toolkit_version_6=no
12638 rm -rf conftest.dSYM
12639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12640 conftest$ac_exeext conftest.$ac_ext
12643 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12644 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12645 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12646 $as_echo "6 or newer" >&6; }
12648 cat >>confdefs.h <<\_ACEOF
12649 #define HAVE_X11XTR6 1
12650 _ACEOF
12652 else
12653 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12654 $as_echo "before 6" >&6; }
12657 OLDLIBS="$LIBS"
12658 if test x$HAVE_X11XTR6 = xyes; then
12659 LIBS="-lXt -lSM -lICE $LIBS"
12660 else
12661 LIBS="-lXt $LIBS"
12664 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12665 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12666 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12667 $as_echo_n "(cached) " >&6
12668 else
12669 ac_check_lib_save_LIBS=$LIBS
12670 LIBS="-lXmu $LIBS"
12671 cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h. */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12678 /* Override any GCC internal prototype to avoid an error.
12679 Use char because int might match the return type of a GCC
12680 builtin and then its argument prototype would still apply. */
12681 #ifdef __cplusplus
12682 extern "C"
12683 #endif
12684 char XmuConvertStandardSelection ();
12686 main ()
12688 return XmuConvertStandardSelection ();
12690 return 0;
12692 _ACEOF
12693 rm -f conftest.$ac_objext conftest$ac_exeext
12694 if { (ac_try="$ac_link"
12695 case "(($ac_try" in
12696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12697 *) ac_try_echo=$ac_try;;
12698 esac
12699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12700 $as_echo "$ac_try_echo") >&5
12701 (eval "$ac_link") 2>conftest.er1
12702 ac_status=$?
12703 grep -v '^ *+' conftest.er1 >conftest.err
12704 rm -f conftest.er1
12705 cat conftest.err >&5
12706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } && {
12708 test -z "$ac_c_werror_flag" ||
12709 test ! -s conftest.err
12710 } && test -s conftest$ac_exeext && {
12711 test "$cross_compiling" = yes ||
12712 $as_test_x conftest$ac_exeext
12713 }; then
12714 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12715 else
12716 $as_echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12719 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12722 rm -rf conftest.dSYM
12723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12724 conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12727 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12728 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12729 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12730 cat >>confdefs.h <<_ACEOF
12731 #define HAVE_LIBXMU 1
12732 _ACEOF
12734 LIBS="-lXmu $LIBS"
12738 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12741 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12742 if test "${HAVE_X11}" = "yes"; then
12743 if test "${USE_X_TOOLKIT}" != "none"; then
12745 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12746 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12747 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12748 $as_echo_n "(cached) " >&6
12749 else
12750 ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lXext $LIBS"
12752 cat >conftest.$ac_ext <<_ACEOF
12753 /* confdefs.h. */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12762 #ifdef __cplusplus
12763 extern "C"
12764 #endif
12765 char XShapeQueryExtension ();
12767 main ()
12769 return XShapeQueryExtension ();
12771 return 0;
12773 _ACEOF
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12779 esac
12780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12781 $as_echo "$ac_try_echo") >&5
12782 (eval "$ac_link") 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } && {
12789 test -z "$ac_c_werror_flag" ||
12790 test ! -s conftest.err
12791 } && test -s conftest$ac_exeext && {
12792 test "$cross_compiling" = yes ||
12793 $as_test_x conftest$ac_exeext
12794 }; then
12795 ac_cv_lib_Xext_XShapeQueryExtension=yes
12796 else
12797 $as_echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12800 ac_cv_lib_Xext_XShapeQueryExtension=no
12803 rm -rf conftest.dSYM
12804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12805 conftest$ac_exeext conftest.$ac_ext
12806 LIBS=$ac_check_lib_save_LIBS
12808 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12809 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12810 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12811 cat >>confdefs.h <<_ACEOF
12812 #define HAVE_LIBXEXT 1
12813 _ACEOF
12815 LIBS="-lXext $LIBS"
12822 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12823 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12824 $as_echo_n "checking for Motif version 2.1... " >&6; }
12825 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12826 $as_echo_n "(cached) " >&6
12827 else
12828 cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h. */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12834 #include <Xm/Xm.h>
12836 main ()
12838 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12839 int x = 5;
12840 #else
12841 Motif version prior to 2.1.
12842 #endif
12844 return 0;
12846 _ACEOF
12847 rm -f conftest.$ac_objext
12848 if { (ac_try="$ac_compile"
12849 case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12852 esac
12853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12854 $as_echo "$ac_try_echo") >&5
12855 (eval "$ac_compile") 2>conftest.er1
12856 ac_status=$?
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
12860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } && {
12862 test -z "$ac_c_werror_flag" ||
12863 test ! -s conftest.err
12864 } && test -s conftest.$ac_objext; then
12865 emacs_cv_motif_version_2_1=yes
12866 else
12867 $as_echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12870 emacs_cv_motif_version_2_1=no
12873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12876 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12877 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12878 if test $emacs_cv_motif_version_2_1 = yes; then
12879 HAVE_LIBXP=no
12881 cat >>confdefs.h <<\_ACEOF
12882 #define HAVE_MOTIF_2_1 1
12883 _ACEOF
12885 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12886 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12887 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12888 $as_echo_n "(cached) " >&6
12889 else
12890 ac_check_lib_save_LIBS=$LIBS
12891 LIBS="-lXp $LIBS"
12892 cat >conftest.$ac_ext <<_ACEOF
12893 /* confdefs.h. */
12894 _ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12899 /* Override any GCC internal prototype to avoid an error.
12900 Use char because int might match the return type of a GCC
12901 builtin and then its argument prototype would still apply. */
12902 #ifdef __cplusplus
12903 extern "C"
12904 #endif
12905 char XpCreateContext ();
12907 main ()
12909 return XpCreateContext ();
12911 return 0;
12913 _ACEOF
12914 rm -f conftest.$ac_objext conftest$ac_exeext
12915 if { (ac_try="$ac_link"
12916 case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12919 esac
12920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12921 $as_echo "$ac_try_echo") >&5
12922 (eval "$ac_link") 2>conftest.er1
12923 ac_status=$?
12924 grep -v '^ *+' conftest.er1 >conftest.err
12925 rm -f conftest.er1
12926 cat conftest.err >&5
12927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } && {
12929 test -z "$ac_c_werror_flag" ||
12930 test ! -s conftest.err
12931 } && test -s conftest$ac_exeext && {
12932 test "$cross_compiling" = yes ||
12933 $as_test_x conftest$ac_exeext
12934 }; then
12935 ac_cv_lib_Xp_XpCreateContext=yes
12936 else
12937 $as_echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 ac_cv_lib_Xp_XpCreateContext=no
12943 rm -rf conftest.dSYM
12944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12945 conftest$ac_exeext conftest.$ac_ext
12946 LIBS=$ac_check_lib_save_LIBS
12948 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12949 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12950 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12951 HAVE_LIBXP=yes
12954 if test ${HAVE_LIBXP} = yes; then
12956 cat >>confdefs.h <<\_ACEOF
12957 #define HAVE_LIBXP 1
12958 _ACEOF
12961 else
12962 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12963 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12964 if test "${emacs_cv_lesstif+set}" = set; then
12965 $as_echo_n "(cached) " >&6
12966 else
12967 # We put this in CFLAGS temporarily to precede other -I options
12968 # that might be in CFLAGS temporarily.
12969 # We put this in CPPFLAGS where it precedes the other -I options.
12970 OLD_CPPFLAGS=$CPPFLAGS
12971 OLD_CFLAGS=$CFLAGS
12972 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12973 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12974 cat >conftest.$ac_ext <<_ACEOF
12975 /* confdefs.h. */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12980 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12982 main ()
12984 int x = 5;
12986 return 0;
12988 _ACEOF
12989 rm -f conftest.$ac_objext
12990 if { (ac_try="$ac_compile"
12991 case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12994 esac
12995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12996 $as_echo "$ac_try_echo") >&5
12997 (eval "$ac_compile") 2>conftest.er1
12998 ac_status=$?
12999 grep -v '^ *+' conftest.er1 >conftest.err
13000 rm -f conftest.er1
13001 cat conftest.err >&5
13002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } && {
13004 test -z "$ac_c_werror_flag" ||
13005 test ! -s conftest.err
13006 } && test -s conftest.$ac_objext; then
13007 emacs_cv_lesstif=yes
13008 else
13009 $as_echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13012 emacs_cv_lesstif=no
13015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13017 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13018 $as_echo "$emacs_cv_lesstif" >&6; }
13019 if test $emacs_cv_lesstif = yes; then
13020 # Make sure this -I option remains in CPPFLAGS after it is set
13021 # back to REAL_CPPFLAGS.
13022 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13023 # have those other -I options anyway. Ultimately, having this
13024 # directory ultimately in CPPFLAGS will be enough.
13025 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13026 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13027 else
13028 CFLAGS=$OLD_CFLAGS
13029 CPPFLAGS=$OLD_CPPFLAGS
13036 USE_TOOLKIT_SCROLL_BARS=no
13037 if test "${with_toolkit_scroll_bars}" != "no"; then
13038 if test "${USE_X_TOOLKIT}" != "none"; then
13039 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13040 cat >>confdefs.h <<\_ACEOF
13041 #define USE_TOOLKIT_SCROLL_BARS 1
13042 _ACEOF
13044 HAVE_XAW3D=no
13045 USE_TOOLKIT_SCROLL_BARS=yes
13046 elif test "${HAVE_XAW3D}" = "yes"; then
13047 cat >>confdefs.h <<\_ACEOF
13048 #define USE_TOOLKIT_SCROLL_BARS 1
13049 _ACEOF
13051 USE_TOOLKIT_SCROLL_BARS=yes
13053 elif test "${HAVE_GTK}" = "yes"; then
13054 cat >>confdefs.h <<\_ACEOF
13055 #define USE_TOOLKIT_SCROLL_BARS 1
13056 _ACEOF
13058 USE_TOOLKIT_SCROLL_BARS=yes
13059 elif test "${HAVE_NS}" = "yes"; then
13060 cat >>confdefs.h <<\_ACEOF
13061 #define USE_TOOLKIT_SCROLL_BARS 1
13062 _ACEOF
13064 USE_TOOLKIT_SCROLL_BARS=yes
13068 cat >conftest.$ac_ext <<_ACEOF
13069 /* confdefs.h. */
13070 _ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h. */
13075 #include <X11/Xlib.h>
13076 #include <X11/Xresource.h>
13078 main ()
13080 XIMProc callback;
13082 return 0;
13084 _ACEOF
13085 rm -f conftest.$ac_objext
13086 if { (ac_try="$ac_compile"
13087 case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13090 esac
13091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13092 $as_echo "$ac_try_echo") >&5
13093 (eval "$ac_compile") 2>conftest.er1
13094 ac_status=$?
13095 grep -v '^ *+' conftest.er1 >conftest.err
13096 rm -f conftest.er1
13097 cat conftest.err >&5
13098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } && {
13100 test -z "$ac_c_werror_flag" ||
13101 test ! -s conftest.err
13102 } && test -s conftest.$ac_objext; then
13103 HAVE_XIM=yes
13105 cat >>confdefs.h <<\_ACEOF
13106 #define HAVE_XIM 1
13107 _ACEOF
13109 else
13110 $as_echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13113 HAVE_XIM=no
13116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13119 if test "${with_xim}" != "no"; then
13121 cat >>confdefs.h <<\_ACEOF
13122 #define USE_XIM 1
13123 _ACEOF
13128 if test "${HAVE_XIM}" != "no"; then
13129 late_CFLAGS=$CFLAGS
13130 if test "$GCC" = yes; then
13131 CFLAGS="$CFLAGS --pedantic-errors"
13133 cat >conftest.$ac_ext <<_ACEOF
13134 /* confdefs.h. */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13140 #include <X11/Xlib.h>
13141 #include <X11/Xresource.h>
13143 main ()
13145 Display *display;
13146 XrmDatabase db;
13147 char *res_name;
13148 char *res_class;
13149 XIMProc callback;
13150 XPointer *client_data;
13151 #ifndef __GNUC__
13152 /* If we're not using GCC, it's probably not XFree86, and this is
13153 probably right, but we can't use something like --pedantic-errors. */
13154 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13155 char*, XIMProc, XPointer*);
13156 #endif
13157 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13158 client_data);
13160 return 0;
13162 _ACEOF
13163 rm -f conftest.$ac_objext
13164 if { (ac_try="$ac_compile"
13165 case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13168 esac
13169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13170 $as_echo "$ac_try_echo") >&5
13171 (eval "$ac_compile") 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } && {
13178 test -z "$ac_c_werror_flag" ||
13179 test ! -s conftest.err
13180 } && test -s conftest.$ac_objext; then
13181 emacs_cv_arg6_star=yes
13182 else
13183 $as_echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13191 if test "$emacs_cv_arg6_star" = yes; then
13192 cat >>confdefs.h <<\_ACEOF
13193 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13194 _ACEOF
13196 else
13197 cat >>confdefs.h <<\_ACEOF
13198 #define XRegisterIMInstantiateCallback_arg6 XPointer
13199 _ACEOF
13202 CFLAGS=$late_CFLAGS
13205 ### Start of font-backend (under any platform) section.
13206 # (nothing here yet -- this is a placeholder)
13207 ### End of font-backend (under any platform) section.
13209 ### Start of font-backend (under X11) section.
13210 if test "${HAVE_X11}" = "yes"; then
13212 succeeded=no
13214 # Extract the first word of "pkg-config", so it can be a program name with args.
13215 set dummy pkg-config; ac_word=$2
13216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13217 $as_echo_n "checking for $ac_word... " >&6; }
13218 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13219 $as_echo_n "(cached) " >&6
13220 else
13221 case $PKG_CONFIG in
13222 [\\/]* | ?:[\\/]*)
13223 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in $PATH
13229 IFS=$as_save_IFS
13230 test -z "$as_dir" && as_dir=.
13231 for ac_exec_ext in '' $ac_executable_extensions; do
13232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13233 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13235 break 2
13237 done
13238 done
13239 IFS=$as_save_IFS
13241 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13243 esac
13245 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13246 if test -n "$PKG_CONFIG"; then
13247 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13248 $as_echo "$PKG_CONFIG" >&6; }
13249 else
13250 { $as_echo "$as_me:$LINENO: result: no" >&5
13251 $as_echo "no" >&6; }
13256 if test "$PKG_CONFIG" = "no" ; then
13257 HAVE_FC=no
13258 else
13259 PKG_CONFIG_MIN_VERSION=0.9.0
13260 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13261 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13262 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13264 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13265 { $as_echo "$as_me:$LINENO: result: yes" >&5
13266 $as_echo "yes" >&6; }
13267 succeeded=yes
13269 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13270 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13271 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13272 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13273 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13275 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13276 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13277 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13278 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13279 $as_echo "$FONTCONFIG_LIBS" >&6; }
13280 else
13281 { $as_echo "$as_me:$LINENO: result: no" >&5
13282 $as_echo "no" >&6; }
13283 FONTCONFIG_CFLAGS=""
13284 FONTCONFIG_LIBS=""
13285 ## If we have a custom action on failure, don't print errors, but
13286 ## do set a variable so people can do so.
13287 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13293 else
13294 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13295 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13299 if test $succeeded = yes; then
13300 HAVE_FC=yes
13301 else
13302 HAVE_FC=no
13306 ## Use -lXft if available, unless `--with-xft=no'.
13307 HAVE_XFT=maybe
13308 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13309 with_xft="no";
13311 if test "x${with_xft}" != "xno"; then
13314 succeeded=no
13316 # Extract the first word of "pkg-config", so it can be a program name with args.
13317 set dummy pkg-config; ac_word=$2
13318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13319 $as_echo_n "checking for $ac_word... " >&6; }
13320 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13321 $as_echo_n "(cached) " >&6
13322 else
13323 case $PKG_CONFIG in
13324 [\\/]* | ?:[\\/]*)
13325 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329 for as_dir in $PATH
13331 IFS=$as_save_IFS
13332 test -z "$as_dir" && as_dir=.
13333 for ac_exec_ext in '' $ac_executable_extensions; do
13334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13335 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13336 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13337 break 2
13339 done
13340 done
13341 IFS=$as_save_IFS
13343 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13345 esac
13347 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13348 if test -n "$PKG_CONFIG"; then
13349 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13350 $as_echo "$PKG_CONFIG" >&6; }
13351 else
13352 { $as_echo "$as_me:$LINENO: result: no" >&5
13353 $as_echo "no" >&6; }
13358 if test "$PKG_CONFIG" = "no" ; then
13359 HAVE_XFT=no
13360 else
13361 PKG_CONFIG_MIN_VERSION=0.9.0
13362 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13363 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13364 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13366 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13367 { $as_echo "$as_me:$LINENO: result: yes" >&5
13368 $as_echo "yes" >&6; }
13369 succeeded=yes
13371 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13372 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13373 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13374 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13375 $as_echo "$XFT_CFLAGS" >&6; }
13377 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13378 $as_echo_n "checking XFT_LIBS... " >&6; }
13379 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13380 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13381 $as_echo "$XFT_LIBS" >&6; }
13382 else
13383 { $as_echo "$as_me:$LINENO: result: no" >&5
13384 $as_echo "no" >&6; }
13385 XFT_CFLAGS=""
13386 XFT_LIBS=""
13387 ## If we have a custom action on failure, don't print errors, but
13388 ## do set a variable so people can do so.
13389 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13395 else
13396 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13397 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13401 if test $succeeded = yes; then
13403 else
13404 HAVE_XFT=no
13407 if test "$HAVE_XFT" != no; then
13408 OLD_CPPFLAGS="$CPPFLAGS"
13409 OLD_CFLAGS="$CFLAGS"
13410 OLD_LIBS="$LIBS"
13411 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13412 CFLAGS="$CFLAGS $XFT_CFLAGS"
13413 LIBS="$XFT_LIBS $LIBS"
13414 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13415 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13416 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13417 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13418 $as_echo_n "(cached) " >&6
13420 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13421 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13422 else
13423 # Is the header compilable?
13424 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13425 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13426 cat >conftest.$ac_ext <<_ACEOF
13427 /* confdefs.h. */
13428 _ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h. */
13432 $ac_includes_default
13433 #include <X11/Xft/Xft.h>
13434 _ACEOF
13435 rm -f conftest.$ac_objext
13436 if { (ac_try="$ac_compile"
13437 case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440 esac
13441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13442 $as_echo "$ac_try_echo") >&5
13443 (eval "$ac_compile") 2>conftest.er1
13444 ac_status=$?
13445 grep -v '^ *+' conftest.er1 >conftest.err
13446 rm -f conftest.er1
13447 cat conftest.err >&5
13448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } && {
13450 test -z "$ac_c_werror_flag" ||
13451 test ! -s conftest.err
13452 } && test -s conftest.$ac_objext; then
13453 ac_header_compiler=yes
13454 else
13455 $as_echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13458 ac_header_compiler=no
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13463 $as_echo "$ac_header_compiler" >&6; }
13465 # Is the header present?
13466 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13467 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13468 cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h. */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 #include <X11/Xft/Xft.h>
13475 _ACEOF
13476 if { (ac_try="$ac_cpp conftest.$ac_ext"
13477 case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13480 esac
13481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13482 $as_echo "$ac_try_echo") >&5
13483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13484 ac_status=$?
13485 grep -v '^ *+' conftest.er1 >conftest.err
13486 rm -f conftest.er1
13487 cat conftest.err >&5
13488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } >/dev/null && {
13490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13491 test ! -s conftest.err
13492 }; then
13493 ac_header_preproc=yes
13494 else
13495 $as_echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13498 ac_header_preproc=no
13501 rm -f conftest.err conftest.$ac_ext
13502 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13503 $as_echo "$ac_header_preproc" >&6; }
13505 # So? What about this header?
13506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13507 yes:no: )
13508 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13509 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13510 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13511 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13512 ac_header_preproc=yes
13514 no:yes:* )
13515 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13516 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13517 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13518 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13519 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13520 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13521 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13522 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13523 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13524 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13525 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13526 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13529 esac
13530 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13531 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13532 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13533 $as_echo_n "(cached) " >&6
13534 else
13535 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13537 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13538 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13541 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13542 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13543 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13544 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13545 $as_echo_n "(cached) " >&6
13546 else
13547 ac_check_lib_save_LIBS=$LIBS
13548 LIBS="-lXft $XFT_LIBS $LIBS"
13549 cat >conftest.$ac_ext <<_ACEOF
13550 /* confdefs.h. */
13551 _ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13556 /* Override any GCC internal prototype to avoid an error.
13557 Use char because int might match the return type of a GCC
13558 builtin and then its argument prototype would still apply. */
13559 #ifdef __cplusplus
13560 extern "C"
13561 #endif
13562 char XftFontOpen ();
13564 main ()
13566 return XftFontOpen ();
13568 return 0;
13570 _ACEOF
13571 rm -f conftest.$ac_objext conftest$ac_exeext
13572 if { (ac_try="$ac_link"
13573 case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13576 esac
13577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13578 $as_echo "$ac_try_echo") >&5
13579 (eval "$ac_link") 2>conftest.er1
13580 ac_status=$?
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } && {
13586 test -z "$ac_c_werror_flag" ||
13587 test ! -s conftest.err
13588 } && test -s conftest$ac_exeext && {
13589 test "$cross_compiling" = yes ||
13590 $as_test_x conftest$ac_exeext
13591 }; then
13592 ac_cv_lib_Xft_XftFontOpen=yes
13593 else
13594 $as_echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_cv_lib_Xft_XftFontOpen=no
13600 rm -rf conftest.dSYM
13601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13602 conftest$ac_exeext conftest.$ac_ext
13603 LIBS=$ac_check_lib_save_LIBS
13605 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13606 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13607 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13608 HAVE_XFT=yes
13615 if test "${HAVE_XFT}" = "yes"; then
13617 cat >>confdefs.h <<\_ACEOF
13618 #define HAVE_XFT 1
13619 _ACEOF
13622 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13623 else
13624 CPPFLAGS="$OLD_CPPFLAGS"
13625 CFLAGS="$OLD_CFLAGS"
13626 LIBS="$OLD_LIBS"
13627 fi # "${HAVE_XFT}" = "yes"
13628 fi # "$HAVE_XFT" != no
13629 fi # "x${with_xft}" != "xno"
13631 if test "$HAVE_XFT" != "yes"; then
13632 HAVE_XFT=no
13636 HAVE_FREETYPE=no
13637 ## We used to allow building with FreeType and without Xft.
13638 ## However, the ftx font backend driver is not in good shape.
13639 if test "${HAVE_XFT}" = "yes"; then
13640 HAVE_FREETYPE=yes
13641 FONTCONFIG_CFLAGS=
13642 FONTCONFIG_LIBS=
13645 HAVE_LIBOTF=no
13646 if test "${HAVE_FREETYPE}" = "yes"; then
13648 cat >>confdefs.h <<\_ACEOF
13649 #define HAVE_FREETYPE 1
13650 _ACEOF
13652 if test "${with_libotf}" != "no"; then
13654 succeeded=no
13656 # Extract the first word of "pkg-config", so it can be a program name with args.
13657 set dummy pkg-config; ac_word=$2
13658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13659 $as_echo_n "checking for $ac_word... " >&6; }
13660 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13661 $as_echo_n "(cached) " >&6
13662 else
13663 case $PKG_CONFIG in
13664 [\\/]* | ?:[\\/]*)
13665 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669 for as_dir in $PATH
13671 IFS=$as_save_IFS
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
13674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13675 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13676 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13677 break 2
13679 done
13680 done
13681 IFS=$as_save_IFS
13683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13685 esac
13687 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13688 if test -n "$PKG_CONFIG"; then
13689 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13690 $as_echo "$PKG_CONFIG" >&6; }
13691 else
13692 { $as_echo "$as_me:$LINENO: result: no" >&5
13693 $as_echo "no" >&6; }
13698 if test "$PKG_CONFIG" = "no" ; then
13699 HAVE_LIBOTF=no
13700 else
13701 PKG_CONFIG_MIN_VERSION=0.9.0
13702 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13703 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
13704 $as_echo_n "checking for libotf... " >&6; }
13706 if $PKG_CONFIG --exists "libotf" 2>&5; then
13707 { $as_echo "$as_me:$LINENO: result: yes" >&5
13708 $as_echo "yes" >&6; }
13709 succeeded=yes
13711 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13712 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
13713 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13714 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13715 $as_echo "$LIBOTF_CFLAGS" >&6; }
13717 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13718 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
13719 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13720 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13721 $as_echo "$LIBOTF_LIBS" >&6; }
13722 else
13723 { $as_echo "$as_me:$LINENO: result: no" >&5
13724 $as_echo "no" >&6; }
13725 LIBOTF_CFLAGS=""
13726 LIBOTF_LIBS=""
13727 ## If we have a custom action on failure, don't print errors, but
13728 ## do set a variable so people can do so.
13729 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13735 else
13736 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13737 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13741 if test $succeeded = yes; then
13742 HAVE_LIBOTF=yes
13743 else
13744 HAVE_LIBOTF=no
13747 if test "$HAVE_LIBOTF" = "yes"; then
13749 cat >>confdefs.h <<\_ACEOF
13750 #define HAVE_LIBOTF 1
13751 _ACEOF
13753 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13754 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13755 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13756 $as_echo_n "(cached) " >&6
13757 else
13758 ac_check_lib_save_LIBS=$LIBS
13759 LIBS="-lotf $LIBS"
13760 cat >conftest.$ac_ext <<_ACEOF
13761 /* confdefs.h. */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13767 /* Override any GCC internal prototype to avoid an error.
13768 Use char because int might match the return type of a GCC
13769 builtin and then its argument prototype would still apply. */
13770 #ifdef __cplusplus
13771 extern "C"
13772 #endif
13773 char OTF_get_variation_glyphs ();
13775 main ()
13777 return OTF_get_variation_glyphs ();
13779 return 0;
13781 _ACEOF
13782 rm -f conftest.$ac_objext conftest$ac_exeext
13783 if { (ac_try="$ac_link"
13784 case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13787 esac
13788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13789 $as_echo "$ac_try_echo") >&5
13790 (eval "$ac_link") 2>conftest.er1
13791 ac_status=$?
13792 grep -v '^ *+' conftest.er1 >conftest.err
13793 rm -f conftest.er1
13794 cat conftest.err >&5
13795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } && {
13797 test -z "$ac_c_werror_flag" ||
13798 test ! -s conftest.err
13799 } && test -s conftest$ac_exeext && {
13800 test "$cross_compiling" = yes ||
13801 $as_test_x conftest$ac_exeext
13802 }; then
13803 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13804 else
13805 $as_echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13811 rm -rf conftest.dSYM
13812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13813 conftest$ac_exeext conftest.$ac_ext
13814 LIBS=$ac_check_lib_save_LIBS
13816 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13817 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13818 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13819 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13820 else
13821 HAVE_OTF_GET_VARIATION_GLYPHS=no
13824 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13826 cat >>confdefs.h <<\_ACEOF
13827 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13828 _ACEOF
13835 HAVE_M17N_FLT=no
13836 if test "${HAVE_LIBOTF}" = yes; then
13837 if test "${with_m17n_flt}" != "no"; then
13839 succeeded=no
13841 # Extract the first word of "pkg-config", so it can be a program name with args.
13842 set dummy pkg-config; ac_word=$2
13843 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13844 $as_echo_n "checking for $ac_word... " >&6; }
13845 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13846 $as_echo_n "(cached) " >&6
13847 else
13848 case $PKG_CONFIG in
13849 [\\/]* | ?:[\\/]*)
13850 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13854 for as_dir in $PATH
13856 IFS=$as_save_IFS
13857 test -z "$as_dir" && as_dir=.
13858 for ac_exec_ext in '' $ac_executable_extensions; do
13859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13860 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13862 break 2
13864 done
13865 done
13866 IFS=$as_save_IFS
13868 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13870 esac
13872 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13873 if test -n "$PKG_CONFIG"; then
13874 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13875 $as_echo "$PKG_CONFIG" >&6; }
13876 else
13877 { $as_echo "$as_me:$LINENO: result: no" >&5
13878 $as_echo "no" >&6; }
13883 if test "$PKG_CONFIG" = "no" ; then
13884 HAVE_M17N_FLT=no
13885 else
13886 PKG_CONFIG_MIN_VERSION=0.9.0
13887 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13888 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
13889 $as_echo_n "checking for m17n-flt... " >&6; }
13891 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13892 { $as_echo "$as_me:$LINENO: result: yes" >&5
13893 $as_echo "yes" >&6; }
13894 succeeded=yes
13896 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13897 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13898 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13899 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13900 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13902 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13903 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13904 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13905 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13906 $as_echo "$M17N_FLT_LIBS" >&6; }
13907 else
13908 { $as_echo "$as_me:$LINENO: result: no" >&5
13909 $as_echo "no" >&6; }
13910 M17N_FLT_CFLAGS=""
13911 M17N_FLT_LIBS=""
13912 ## If we have a custom action on failure, don't print errors, but
13913 ## do set a variable so people can do so.
13914 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13920 else
13921 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13922 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13926 if test $succeeded = yes; then
13927 HAVE_M17N_FLT=yes
13928 else
13929 HAVE_M17N_FLT=no
13932 if test "$HAVE_M17N_FLT" = "yes"; then
13934 cat >>confdefs.h <<\_ACEOF
13935 #define HAVE_M17N_FLT 1
13936 _ACEOF
13941 else
13942 HAVE_XFT=no
13943 HAVE_FREETYPE=no
13944 HAVE_LIBOTF=no
13945 HAVE_M17N_FLT=no
13947 ### End of font-backend (under X11) section.
13958 ### Use -lXpm if available, unless `--with-xpm=no'.
13959 HAVE_XPM=no
13960 if test "${HAVE_X11}" = "yes"; then
13961 if test "${with_xpm}" != "no"; then
13962 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13963 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13964 $as_echo_n "checking for X11/xpm.h... " >&6; }
13965 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13966 $as_echo_n "(cached) " >&6
13968 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13969 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13970 else
13971 # Is the header compilable?
13972 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13973 $as_echo_n "checking X11/xpm.h usability... " >&6; }
13974 cat >conftest.$ac_ext <<_ACEOF
13975 /* confdefs.h. */
13976 _ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 $ac_includes_default
13981 #include <X11/xpm.h>
13982 _ACEOF
13983 rm -f conftest.$ac_objext
13984 if { (ac_try="$ac_compile"
13985 case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13988 esac
13989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13990 $as_echo "$ac_try_echo") >&5
13991 (eval "$ac_compile") 2>conftest.er1
13992 ac_status=$?
13993 grep -v '^ *+' conftest.er1 >conftest.err
13994 rm -f conftest.er1
13995 cat conftest.err >&5
13996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); } && {
13998 test -z "$ac_c_werror_flag" ||
13999 test ! -s conftest.err
14000 } && test -s conftest.$ac_objext; then
14001 ac_header_compiler=yes
14002 else
14003 $as_echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14006 ac_header_compiler=no
14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14011 $as_echo "$ac_header_compiler" >&6; }
14013 # Is the header present?
14014 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14015 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14016 cat >conftest.$ac_ext <<_ACEOF
14017 /* confdefs.h. */
14018 _ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14022 #include <X11/xpm.h>
14023 _ACEOF
14024 if { (ac_try="$ac_cpp conftest.$ac_ext"
14025 case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14028 esac
14029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14030 $as_echo "$ac_try_echo") >&5
14031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } >/dev/null && {
14038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14039 test ! -s conftest.err
14040 }; then
14041 ac_header_preproc=yes
14042 else
14043 $as_echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 ac_header_preproc=no
14049 rm -f conftest.err conftest.$ac_ext
14050 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14051 $as_echo "$ac_header_preproc" >&6; }
14053 # So? What about this header?
14054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14055 yes:no: )
14056 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14057 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14058 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14059 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14060 ac_header_preproc=yes
14062 no:yes:* )
14063 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14064 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14065 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14066 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14067 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14068 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14069 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14070 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14071 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14072 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14073 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14074 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14077 esac
14078 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14079 $as_echo_n "checking for X11/xpm.h... " >&6; }
14080 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14081 $as_echo_n "(cached) " >&6
14082 else
14083 ac_cv_header_X11_xpm_h=$ac_header_preproc
14085 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14086 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14089 if test $ac_cv_header_X11_xpm_h = yes; then
14090 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14091 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14092 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14093 $as_echo_n "(cached) " >&6
14094 else
14095 ac_check_lib_save_LIBS=$LIBS
14096 LIBS="-lXpm -lX11 $LIBS"
14097 cat >conftest.$ac_ext <<_ACEOF
14098 /* confdefs.h. */
14099 _ACEOF
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h. */
14104 /* Override any GCC internal prototype to avoid an error.
14105 Use char because int might match the return type of a GCC
14106 builtin and then its argument prototype would still apply. */
14107 #ifdef __cplusplus
14108 extern "C"
14109 #endif
14110 char XpmReadFileToPixmap ();
14112 main ()
14114 return XpmReadFileToPixmap ();
14116 return 0;
14118 _ACEOF
14119 rm -f conftest.$ac_objext conftest$ac_exeext
14120 if { (ac_try="$ac_link"
14121 case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14124 esac
14125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14126 $as_echo "$ac_try_echo") >&5
14127 (eval "$ac_link") 2>conftest.er1
14128 ac_status=$?
14129 grep -v '^ *+' conftest.er1 >conftest.err
14130 rm -f conftest.er1
14131 cat conftest.err >&5
14132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } && {
14134 test -z "$ac_c_werror_flag" ||
14135 test ! -s conftest.err
14136 } && test -s conftest$ac_exeext && {
14137 test "$cross_compiling" = yes ||
14138 $as_test_x conftest$ac_exeext
14139 }; then
14140 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14141 else
14142 $as_echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14145 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14148 rm -rf conftest.dSYM
14149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14150 conftest$ac_exeext conftest.$ac_ext
14151 LIBS=$ac_check_lib_save_LIBS
14153 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14154 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14155 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14156 HAVE_XPM=yes
14162 if test "${HAVE_XPM}" = "yes"; then
14163 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14164 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14165 cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h. */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 #include "X11/xpm.h"
14172 #ifndef XpmReturnAllocPixels
14173 no_return_alloc_pixels
14174 #endif
14176 _ACEOF
14177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14178 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14179 HAVE_XPM=no
14180 else
14181 HAVE_XPM=yes
14183 rm -f conftest*
14186 if test "${HAVE_XPM}" = "yes"; then
14187 { $as_echo "$as_me:$LINENO: result: yes" >&5
14188 $as_echo "yes" >&6; }
14189 else
14190 { $as_echo "$as_me:$LINENO: result: no" >&5
14191 $as_echo "no" >&6; }
14196 if test "${HAVE_XPM}" = "yes"; then
14198 cat >>confdefs.h <<\_ACEOF
14199 #define HAVE_XPM 1
14200 _ACEOF
14205 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14206 HAVE_JPEG=no
14207 if test "${HAVE_X11}" = "yes"; then
14208 if test "${with_jpeg}" != "no"; then
14209 if test "${ac_cv_header_jerror_h+set}" = set; then
14210 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14211 $as_echo_n "checking for jerror.h... " >&6; }
14212 if test "${ac_cv_header_jerror_h+set}" = set; then
14213 $as_echo_n "(cached) " >&6
14215 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14216 $as_echo "$ac_cv_header_jerror_h" >&6; }
14217 else
14218 # Is the header compilable?
14219 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14220 $as_echo_n "checking jerror.h usability... " >&6; }
14221 cat >conftest.$ac_ext <<_ACEOF
14222 /* confdefs.h. */
14223 _ACEOF
14224 cat confdefs.h >>conftest.$ac_ext
14225 cat >>conftest.$ac_ext <<_ACEOF
14226 /* end confdefs.h. */
14227 $ac_includes_default
14228 #include <jerror.h>
14229 _ACEOF
14230 rm -f conftest.$ac_objext
14231 if { (ac_try="$ac_compile"
14232 case "(($ac_try" in
14233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234 *) ac_try_echo=$ac_try;;
14235 esac
14236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14237 $as_echo "$ac_try_echo") >&5
14238 (eval "$ac_compile") 2>conftest.er1
14239 ac_status=$?
14240 grep -v '^ *+' conftest.er1 >conftest.err
14241 rm -f conftest.er1
14242 cat conftest.err >&5
14243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } && {
14245 test -z "$ac_c_werror_flag" ||
14246 test ! -s conftest.err
14247 } && test -s conftest.$ac_objext; then
14248 ac_header_compiler=yes
14249 else
14250 $as_echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14253 ac_header_compiler=no
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14258 $as_echo "$ac_header_compiler" >&6; }
14260 # Is the header present?
14261 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14262 $as_echo_n "checking jerror.h presence... " >&6; }
14263 cat >conftest.$ac_ext <<_ACEOF
14264 /* confdefs.h. */
14265 _ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269 #include <jerror.h>
14270 _ACEOF
14271 if { (ac_try="$ac_cpp conftest.$ac_ext"
14272 case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14275 esac
14276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14277 $as_echo "$ac_try_echo") >&5
14278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14279 ac_status=$?
14280 grep -v '^ *+' conftest.er1 >conftest.err
14281 rm -f conftest.er1
14282 cat conftest.err >&5
14283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); } >/dev/null && {
14285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14286 test ! -s conftest.err
14287 }; then
14288 ac_header_preproc=yes
14289 else
14290 $as_echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14293 ac_header_preproc=no
14296 rm -f conftest.err conftest.$ac_ext
14297 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14298 $as_echo "$ac_header_preproc" >&6; }
14300 # So? What about this header?
14301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14302 yes:no: )
14303 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14304 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14305 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14306 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14307 ac_header_preproc=yes
14309 no:yes:* )
14310 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14311 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14312 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14313 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14314 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14315 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14316 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14317 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14318 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14319 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14320 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14321 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14324 esac
14325 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14326 $as_echo_n "checking for jerror.h... " >&6; }
14327 if test "${ac_cv_header_jerror_h+set}" = set; then
14328 $as_echo_n "(cached) " >&6
14329 else
14330 ac_cv_header_jerror_h=$ac_header_preproc
14332 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14333 $as_echo "$ac_cv_header_jerror_h" >&6; }
14336 if test $ac_cv_header_jerror_h = yes; then
14337 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14338 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14339 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14340 $as_echo_n "(cached) " >&6
14341 else
14342 ac_check_lib_save_LIBS=$LIBS
14343 LIBS="-ljpeg $LIBS"
14344 cat >conftest.$ac_ext <<_ACEOF
14345 /* confdefs.h. */
14346 _ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14351 /* Override any GCC internal prototype to avoid an error.
14352 Use char because int might match the return type of a GCC
14353 builtin and then its argument prototype would still apply. */
14354 #ifdef __cplusplus
14355 extern "C"
14356 #endif
14357 char jpeg_destroy_compress ();
14359 main ()
14361 return jpeg_destroy_compress ();
14363 return 0;
14365 _ACEOF
14366 rm -f conftest.$ac_objext conftest$ac_exeext
14367 if { (ac_try="$ac_link"
14368 case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14371 esac
14372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14373 $as_echo "$ac_try_echo") >&5
14374 (eval "$ac_link") 2>conftest.er1
14375 ac_status=$?
14376 grep -v '^ *+' conftest.er1 >conftest.err
14377 rm -f conftest.er1
14378 cat conftest.err >&5
14379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } && {
14381 test -z "$ac_c_werror_flag" ||
14382 test ! -s conftest.err
14383 } && test -s conftest$ac_exeext && {
14384 test "$cross_compiling" = yes ||
14385 $as_test_x conftest$ac_exeext
14386 }; then
14387 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14388 else
14389 $as_echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14392 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14395 rm -rf conftest.dSYM
14396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14397 conftest$ac_exeext conftest.$ac_ext
14398 LIBS=$ac_check_lib_save_LIBS
14400 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14401 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14402 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14403 HAVE_JPEG=yes
14412 if test "${HAVE_JPEG}" = "yes"; then
14413 cat >>confdefs.h <<\_ACEOF
14414 #define HAVE_JPEG 1
14415 _ACEOF
14417 cat >conftest.$ac_ext <<_ACEOF
14418 /* confdefs.h. */
14419 _ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 #include <jpeglib.h>
14424 version=JPEG_LIB_VERSION
14426 _ACEOF
14427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14428 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14429 cat >>confdefs.h <<\_ACEOF
14430 #define HAVE_JPEG 1
14431 _ACEOF
14433 else
14434 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14435 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14436 HAVE_JPEG=no
14438 rm -f conftest*
14443 ### Use -lpng if available, unless `--with-png=no'.
14444 HAVE_PNG=no
14445 if test "${HAVE_X11}" = "yes"; then
14446 if test "${with_png}" != "no"; then
14447 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14448 # in /usr/include/libpng.
14451 for ac_header in png.h libpng/png.h
14453 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14455 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14456 $as_echo_n "checking for $ac_header... " >&6; }
14457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14458 $as_echo_n "(cached) " >&6
14460 ac_res=`eval 'as_val=${'$as_ac_Header'}
14461 $as_echo "$as_val"'`
14462 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14463 $as_echo "$ac_res" >&6; }
14464 else
14465 # Is the header compilable?
14466 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14467 $as_echo_n "checking $ac_header usability... " >&6; }
14468 cat >conftest.$ac_ext <<_ACEOF
14469 /* confdefs.h. */
14470 _ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14474 $ac_includes_default
14475 #include <$ac_header>
14476 _ACEOF
14477 rm -f conftest.$ac_objext
14478 if { (ac_try="$ac_compile"
14479 case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14482 esac
14483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14484 $as_echo "$ac_try_echo") >&5
14485 (eval "$ac_compile") 2>conftest.er1
14486 ac_status=$?
14487 grep -v '^ *+' conftest.er1 >conftest.err
14488 rm -f conftest.er1
14489 cat conftest.err >&5
14490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } && {
14492 test -z "$ac_c_werror_flag" ||
14493 test ! -s conftest.err
14494 } && test -s conftest.$ac_objext; then
14495 ac_header_compiler=yes
14496 else
14497 $as_echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14500 ac_header_compiler=no
14503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14505 $as_echo "$ac_header_compiler" >&6; }
14507 # Is the header present?
14508 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14509 $as_echo_n "checking $ac_header presence... " >&6; }
14510 cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h. */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <$ac_header>
14517 _ACEOF
14518 if { (ac_try="$ac_cpp conftest.$ac_ext"
14519 case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14522 esac
14523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14524 $as_echo "$ac_try_echo") >&5
14525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14526 ac_status=$?
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
14530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } >/dev/null && {
14532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14533 test ! -s conftest.err
14534 }; then
14535 ac_header_preproc=yes
14536 else
14537 $as_echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 ac_header_preproc=no
14543 rm -f conftest.err conftest.$ac_ext
14544 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14545 $as_echo "$ac_header_preproc" >&6; }
14547 # So? What about this header?
14548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14549 yes:no: )
14550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14551 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14553 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14554 ac_header_preproc=yes
14556 no:yes:* )
14557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14558 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14560 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14562 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14564 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14566 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14568 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14571 esac
14572 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14573 $as_echo_n "checking for $ac_header... " >&6; }
14574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14575 $as_echo_n "(cached) " >&6
14576 else
14577 eval "$as_ac_Header=\$ac_header_preproc"
14579 ac_res=`eval 'as_val=${'$as_ac_Header'}
14580 $as_echo "$as_val"'`
14581 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14582 $as_echo "$ac_res" >&6; }
14585 if test `eval 'as_val=${'$as_ac_Header'}
14586 $as_echo "$as_val"'` = yes; then
14587 cat >>confdefs.h <<_ACEOF
14588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14589 _ACEOF
14593 done
14595 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14596 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14597 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
14598 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14599 $as_echo_n "(cached) " >&6
14600 else
14601 ac_check_lib_save_LIBS=$LIBS
14602 LIBS="-lpng -lz -lm $LIBS"
14603 cat >conftest.$ac_ext <<_ACEOF
14604 /* confdefs.h. */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14610 /* Override any GCC internal prototype to avoid an error.
14611 Use char because int might match the return type of a GCC
14612 builtin and then its argument prototype would still apply. */
14613 #ifdef __cplusplus
14614 extern "C"
14615 #endif
14616 char png_get_channels ();
14618 main ()
14620 return png_get_channels ();
14622 return 0;
14624 _ACEOF
14625 rm -f conftest.$ac_objext conftest$ac_exeext
14626 if { (ac_try="$ac_link"
14627 case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14630 esac
14631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14632 $as_echo "$ac_try_echo") >&5
14633 (eval "$ac_link") 2>conftest.er1
14634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } && {
14640 test -z "$ac_c_werror_flag" ||
14641 test ! -s conftest.err
14642 } && test -s conftest$ac_exeext && {
14643 test "$cross_compiling" = yes ||
14644 $as_test_x conftest$ac_exeext
14645 }; then
14646 ac_cv_lib_png_png_get_channels=yes
14647 else
14648 $as_echo "$as_me: failed program was:" >&5
14649 sed 's/^/| /' conftest.$ac_ext >&5
14651 ac_cv_lib_png_png_get_channels=no
14654 rm -rf conftest.dSYM
14655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14656 conftest$ac_exeext conftest.$ac_ext
14657 LIBS=$ac_check_lib_save_LIBS
14659 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14660 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14661 if test $ac_cv_lib_png_png_get_channels = yes; then
14662 HAVE_PNG=yes
14668 if test "${HAVE_PNG}" = "yes"; then
14670 cat >>confdefs.h <<\_ACEOF
14671 #define HAVE_PNG 1
14672 _ACEOF
14677 ### Use -ltiff if available, unless `--with-tiff=no'.
14678 HAVE_TIFF=no
14679 if test "${HAVE_X11}" = "yes"; then
14680 if test "${with_tiff}" != "no"; then
14681 if test "${ac_cv_header_tiffio_h+set}" = set; then
14682 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14683 $as_echo_n "checking for tiffio.h... " >&6; }
14684 if test "${ac_cv_header_tiffio_h+set}" = set; then
14685 $as_echo_n "(cached) " >&6
14687 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14688 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14689 else
14690 # Is the header compilable?
14691 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14692 $as_echo_n "checking tiffio.h usability... " >&6; }
14693 cat >conftest.$ac_ext <<_ACEOF
14694 /* confdefs.h. */
14695 _ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h. */
14699 $ac_includes_default
14700 #include <tiffio.h>
14701 _ACEOF
14702 rm -f conftest.$ac_objext
14703 if { (ac_try="$ac_compile"
14704 case "(($ac_try" in
14705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706 *) ac_try_echo=$ac_try;;
14707 esac
14708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14709 $as_echo "$ac_try_echo") >&5
14710 (eval "$ac_compile") 2>conftest.er1
14711 ac_status=$?
14712 grep -v '^ *+' conftest.er1 >conftest.err
14713 rm -f conftest.er1
14714 cat conftest.err >&5
14715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } && {
14717 test -z "$ac_c_werror_flag" ||
14718 test ! -s conftest.err
14719 } && test -s conftest.$ac_objext; then
14720 ac_header_compiler=yes
14721 else
14722 $as_echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14725 ac_header_compiler=no
14728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14729 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14730 $as_echo "$ac_header_compiler" >&6; }
14732 # Is the header present?
14733 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14734 $as_echo_n "checking tiffio.h presence... " >&6; }
14735 cat >conftest.$ac_ext <<_ACEOF
14736 /* confdefs.h. */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 #include <tiffio.h>
14742 _ACEOF
14743 if { (ac_try="$ac_cpp conftest.$ac_ext"
14744 case "(($ac_try" in
14745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746 *) ac_try_echo=$ac_try;;
14747 esac
14748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14749 $as_echo "$ac_try_echo") >&5
14750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14751 ac_status=$?
14752 grep -v '^ *+' conftest.er1 >conftest.err
14753 rm -f conftest.er1
14754 cat conftest.err >&5
14755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } >/dev/null && {
14757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14758 test ! -s conftest.err
14759 }; then
14760 ac_header_preproc=yes
14761 else
14762 $as_echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14765 ac_header_preproc=no
14768 rm -f conftest.err conftest.$ac_ext
14769 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14770 $as_echo "$ac_header_preproc" >&6; }
14772 # So? What about this header?
14773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14774 yes:no: )
14775 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14776 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14777 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14778 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14779 ac_header_preproc=yes
14781 no:yes:* )
14782 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14783 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14784 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14785 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14786 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14787 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14788 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14789 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14790 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14791 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14792 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14793 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14796 esac
14797 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14798 $as_echo_n "checking for tiffio.h... " >&6; }
14799 if test "${ac_cv_header_tiffio_h+set}" = set; then
14800 $as_echo_n "(cached) " >&6
14801 else
14802 ac_cv_header_tiffio_h=$ac_header_preproc
14804 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14805 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14808 if test $ac_cv_header_tiffio_h = yes; then
14809 tifflibs="-lz -lm"
14810 # At least one tiff package requires the jpeg library.
14811 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14812 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14813 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
14814 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14815 $as_echo_n "(cached) " >&6
14816 else
14817 ac_check_lib_save_LIBS=$LIBS
14818 LIBS="-ltiff $tifflibs $LIBS"
14819 cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h. */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14826 /* Override any GCC internal prototype to avoid an error.
14827 Use char because int might match the return type of a GCC
14828 builtin and then its argument prototype would still apply. */
14829 #ifdef __cplusplus
14830 extern "C"
14831 #endif
14832 char TIFFGetVersion ();
14834 main ()
14836 return TIFFGetVersion ();
14838 return 0;
14840 _ACEOF
14841 rm -f conftest.$ac_objext conftest$ac_exeext
14842 if { (ac_try="$ac_link"
14843 case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14846 esac
14847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14848 $as_echo "$ac_try_echo") >&5
14849 (eval "$ac_link") 2>conftest.er1
14850 ac_status=$?
14851 grep -v '^ *+' conftest.er1 >conftest.err
14852 rm -f conftest.er1
14853 cat conftest.err >&5
14854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } && {
14856 test -z "$ac_c_werror_flag" ||
14857 test ! -s conftest.err
14858 } && test -s conftest$ac_exeext && {
14859 test "$cross_compiling" = yes ||
14860 $as_test_x conftest$ac_exeext
14861 }; then
14862 ac_cv_lib_tiff_TIFFGetVersion=yes
14863 else
14864 $as_echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14867 ac_cv_lib_tiff_TIFFGetVersion=no
14870 rm -rf conftest.dSYM
14871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14872 conftest$ac_exeext conftest.$ac_ext
14873 LIBS=$ac_check_lib_save_LIBS
14875 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14876 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14877 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14878 HAVE_TIFF=yes
14886 if test "${HAVE_TIFF}" = "yes"; then
14888 cat >>confdefs.h <<\_ACEOF
14889 #define HAVE_TIFF 1
14890 _ACEOF
14895 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14896 HAVE_GIF=no
14897 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14898 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14899 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14900 $as_echo_n "checking for gif_lib.h... " >&6; }
14901 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14902 $as_echo_n "(cached) " >&6
14904 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14905 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14906 else
14907 # Is the header compilable?
14908 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14909 $as_echo_n "checking gif_lib.h usability... " >&6; }
14910 cat >conftest.$ac_ext <<_ACEOF
14911 /* confdefs.h. */
14912 _ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h. */
14916 $ac_includes_default
14917 #include <gif_lib.h>
14918 _ACEOF
14919 rm -f conftest.$ac_objext
14920 if { (ac_try="$ac_compile"
14921 case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14924 esac
14925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14926 $as_echo "$ac_try_echo") >&5
14927 (eval "$ac_compile") 2>conftest.er1
14928 ac_status=$?
14929 grep -v '^ *+' conftest.er1 >conftest.err
14930 rm -f conftest.er1
14931 cat conftest.err >&5
14932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } && {
14934 test -z "$ac_c_werror_flag" ||
14935 test ! -s conftest.err
14936 } && test -s conftest.$ac_objext; then
14937 ac_header_compiler=yes
14938 else
14939 $as_echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_header_compiler=no
14945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14947 $as_echo "$ac_header_compiler" >&6; }
14949 # Is the header present?
14950 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14951 $as_echo_n "checking gif_lib.h presence... " >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h. */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 #include <gif_lib.h>
14959 _ACEOF
14960 if { (ac_try="$ac_cpp conftest.$ac_ext"
14961 case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14964 esac
14965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14966 $as_echo "$ac_try_echo") >&5
14967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14968 ac_status=$?
14969 grep -v '^ *+' conftest.er1 >conftest.err
14970 rm -f conftest.er1
14971 cat conftest.err >&5
14972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } >/dev/null && {
14974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14975 test ! -s conftest.err
14976 }; then
14977 ac_header_preproc=yes
14978 else
14979 $as_echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14982 ac_header_preproc=no
14985 rm -f conftest.err conftest.$ac_ext
14986 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14987 $as_echo "$ac_header_preproc" >&6; }
14989 # So? What about this header?
14990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14991 yes:no: )
14992 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14993 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14994 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14995 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14996 ac_header_preproc=yes
14998 no:yes:* )
14999 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15000 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15001 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15002 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15003 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15004 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15005 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15006 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15007 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15008 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15009 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15010 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15013 esac
15014 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15015 $as_echo_n "checking for gif_lib.h... " >&6; }
15016 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15017 $as_echo_n "(cached) " >&6
15018 else
15019 ac_cv_header_gif_lib_h=$ac_header_preproc
15021 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15022 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15025 if test $ac_cv_header_gif_lib_h = yes; then
15026 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15027 # Earlier versions can crash Emacs.
15028 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15029 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15030 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15031 $as_echo_n "(cached) " >&6
15032 else
15033 ac_check_lib_save_LIBS=$LIBS
15034 LIBS="-lgif $LIBS"
15035 cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h. */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15042 /* Override any GCC internal prototype to avoid an error.
15043 Use char because int might match the return type of a GCC
15044 builtin and then its argument prototype would still apply. */
15045 #ifdef __cplusplus
15046 extern "C"
15047 #endif
15048 char EGifPutExtensionLast ();
15050 main ()
15052 return EGifPutExtensionLast ();
15054 return 0;
15056 _ACEOF
15057 rm -f conftest.$ac_objext conftest$ac_exeext
15058 if { (ac_try="$ac_link"
15059 case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15062 esac
15063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15064 $as_echo "$ac_try_echo") >&5
15065 (eval "$ac_link") 2>conftest.er1
15066 ac_status=$?
15067 grep -v '^ *+' conftest.er1 >conftest.err
15068 rm -f conftest.er1
15069 cat conftest.err >&5
15070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } && {
15072 test -z "$ac_c_werror_flag" ||
15073 test ! -s conftest.err
15074 } && test -s conftest$ac_exeext && {
15075 test "$cross_compiling" = yes ||
15076 $as_test_x conftest$ac_exeext
15077 }; then
15078 ac_cv_lib_gif_EGifPutExtensionLast=yes
15079 else
15080 $as_echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15083 ac_cv_lib_gif_EGifPutExtensionLast=no
15086 rm -rf conftest.dSYM
15087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15088 conftest$ac_exeext conftest.$ac_ext
15089 LIBS=$ac_check_lib_save_LIBS
15091 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15092 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15093 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15094 HAVE_GIF=yes
15095 else
15096 try_libungif=yes
15103 if test "$HAVE_GIF" = yes; then
15104 ac_gif_lib_name="-lgif"
15107 # If gif_lib.h but no libgif, try libungif.
15108 if test x"$try_libungif" = xyes; then
15109 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15110 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15111 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15112 $as_echo_n "(cached) " >&6
15113 else
15114 ac_check_lib_save_LIBS=$LIBS
15115 LIBS="-lungif $LIBS"
15116 cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h. */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15123 /* Override any GCC internal prototype to avoid an error.
15124 Use char because int might match the return type of a GCC
15125 builtin and then its argument prototype would still apply. */
15126 #ifdef __cplusplus
15127 extern "C"
15128 #endif
15129 char EGifPutExtensionLast ();
15131 main ()
15133 return EGifPutExtensionLast ();
15135 return 0;
15137 _ACEOF
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (ac_try="$ac_link"
15140 case "(($ac_try" in
15141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142 *) ac_try_echo=$ac_try;;
15143 esac
15144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15145 $as_echo "$ac_try_echo") >&5
15146 (eval "$ac_link") 2>conftest.er1
15147 ac_status=$?
15148 grep -v '^ *+' conftest.er1 >conftest.err
15149 rm -f conftest.er1
15150 cat conftest.err >&5
15151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } && {
15153 test -z "$ac_c_werror_flag" ||
15154 test ! -s conftest.err
15155 } && test -s conftest$ac_exeext && {
15156 test "$cross_compiling" = yes ||
15157 $as_test_x conftest$ac_exeext
15158 }; then
15159 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15160 else
15161 $as_echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15164 ac_cv_lib_ungif_EGifPutExtensionLast=no
15167 rm -rf conftest.dSYM
15168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15169 conftest$ac_exeext conftest.$ac_ext
15170 LIBS=$ac_check_lib_save_LIBS
15172 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15173 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15174 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15175 HAVE_GIF=yes
15179 if test "$HAVE_GIF" = yes; then
15181 cat >>confdefs.h <<\_ACEOF
15182 #define LIBGIF -lungif
15183 _ACEOF
15185 ac_gif_lib_name="-lungif"
15189 if test "${HAVE_GIF}" = "yes"; then
15191 cat >>confdefs.h <<\_ACEOF
15192 #define HAVE_GIF 1
15193 _ACEOF
15198 if test "${HAVE_X11}" = "yes"; then
15199 MISSING=""
15200 WITH_NO=""
15201 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15202 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15203 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15204 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15205 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15206 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15207 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15208 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15209 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15210 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15212 if test "X${MISSING}" != X; then
15213 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15214 $MISSING
15215 Maybe some development libraries/packages are missing?
15216 If you don't want to link with them give
15217 $WITH_NO
15218 as options to configure" >&5
15219 $as_echo "$as_me: error: The following required libraries were not found:
15220 $MISSING
15221 Maybe some development libraries/packages are missing?
15222 If you don't want to link with them give
15223 $WITH_NO
15224 as options to configure" >&2;}
15225 { (exit 1); exit 1; }; }
15229 ### Use -lgpm if available, unless `--with-gpm=no'.
15230 HAVE_GPM=no
15231 if test "${with_gpm}" != "no"; then
15232 if test "${ac_cv_header_gpm_h+set}" = set; then
15233 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15234 $as_echo_n "checking for gpm.h... " >&6; }
15235 if test "${ac_cv_header_gpm_h+set}" = set; then
15236 $as_echo_n "(cached) " >&6
15238 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15239 $as_echo "$ac_cv_header_gpm_h" >&6; }
15240 else
15241 # Is the header compilable?
15242 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15243 $as_echo_n "checking gpm.h usability... " >&6; }
15244 cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h. */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 $ac_includes_default
15251 #include <gpm.h>
15252 _ACEOF
15253 rm -f conftest.$ac_objext
15254 if { (ac_try="$ac_compile"
15255 case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15258 esac
15259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15260 $as_echo "$ac_try_echo") >&5
15261 (eval "$ac_compile") 2>conftest.er1
15262 ac_status=$?
15263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
15266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } && {
15268 test -z "$ac_c_werror_flag" ||
15269 test ! -s conftest.err
15270 } && test -s conftest.$ac_objext; then
15271 ac_header_compiler=yes
15272 else
15273 $as_echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15276 ac_header_compiler=no
15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15281 $as_echo "$ac_header_compiler" >&6; }
15283 # Is the header present?
15284 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15285 $as_echo_n "checking gpm.h presence... " >&6; }
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h. */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15292 #include <gpm.h>
15293 _ACEOF
15294 if { (ac_try="$ac_cpp conftest.$ac_ext"
15295 case "(($ac_try" in
15296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15297 *) ac_try_echo=$ac_try;;
15298 esac
15299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15300 $as_echo "$ac_try_echo") >&5
15301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15302 ac_status=$?
15303 grep -v '^ *+' conftest.er1 >conftest.err
15304 rm -f conftest.er1
15305 cat conftest.err >&5
15306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } >/dev/null && {
15308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15309 test ! -s conftest.err
15310 }; then
15311 ac_header_preproc=yes
15312 else
15313 $as_echo "$as_me: failed program was:" >&5
15314 sed 's/^/| /' conftest.$ac_ext >&5
15316 ac_header_preproc=no
15319 rm -f conftest.err conftest.$ac_ext
15320 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15321 $as_echo "$ac_header_preproc" >&6; }
15323 # So? What about this header?
15324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15325 yes:no: )
15326 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15327 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15328 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15329 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15330 ac_header_preproc=yes
15332 no:yes:* )
15333 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15334 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15335 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15336 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15337 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15338 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15339 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15340 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15342 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15343 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15344 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15347 esac
15348 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15349 $as_echo_n "checking for gpm.h... " >&6; }
15350 if test "${ac_cv_header_gpm_h+set}" = set; then
15351 $as_echo_n "(cached) " >&6
15352 else
15353 ac_cv_header_gpm_h=$ac_header_preproc
15355 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15356 $as_echo "$ac_cv_header_gpm_h" >&6; }
15359 if test $ac_cv_header_gpm_h = yes; then
15360 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15361 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15362 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15363 $as_echo_n "(cached) " >&6
15364 else
15365 ac_check_lib_save_LIBS=$LIBS
15366 LIBS="-lgpm $LIBS"
15367 cat >conftest.$ac_ext <<_ACEOF
15368 /* confdefs.h. */
15369 _ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h. */
15374 /* Override any GCC internal prototype to avoid an error.
15375 Use char because int might match the return type of a GCC
15376 builtin and then its argument prototype would still apply. */
15377 #ifdef __cplusplus
15378 extern "C"
15379 #endif
15380 char Gpm_Open ();
15382 main ()
15384 return Gpm_Open ();
15386 return 0;
15388 _ACEOF
15389 rm -f conftest.$ac_objext conftest$ac_exeext
15390 if { (ac_try="$ac_link"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15394 esac
15395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15396 $as_echo "$ac_try_echo") >&5
15397 (eval "$ac_link") 2>conftest.er1
15398 ac_status=$?
15399 grep -v '^ *+' conftest.er1 >conftest.err
15400 rm -f conftest.er1
15401 cat conftest.err >&5
15402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } && {
15404 test -z "$ac_c_werror_flag" ||
15405 test ! -s conftest.err
15406 } && test -s conftest$ac_exeext && {
15407 test "$cross_compiling" = yes ||
15408 $as_test_x conftest$ac_exeext
15409 }; then
15410 ac_cv_lib_gpm_Gpm_Open=yes
15411 else
15412 $as_echo "$as_me: failed program was:" >&5
15413 sed 's/^/| /' conftest.$ac_ext >&5
15415 ac_cv_lib_gpm_Gpm_Open=no
15418 rm -rf conftest.dSYM
15419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15420 conftest$ac_exeext conftest.$ac_ext
15421 LIBS=$ac_check_lib_save_LIBS
15423 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15424 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15425 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15426 HAVE_GPM=yes
15434 if test "${HAVE_GPM}" = "yes"; then
15436 cat >>confdefs.h <<\_ACEOF
15437 #define HAVE_GPM 1
15438 _ACEOF
15442 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15443 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15444 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15445 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15446 $as_echo_n "(cached) " >&6
15448 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15449 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15450 else
15451 # Is the header compilable?
15452 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15453 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15454 cat >conftest.$ac_ext <<_ACEOF
15455 /* confdefs.h. */
15456 _ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 $ac_includes_default
15461 #include <malloc/malloc.h>
15462 _ACEOF
15463 rm -f conftest.$ac_objext
15464 if { (ac_try="$ac_compile"
15465 case "(($ac_try" in
15466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467 *) ac_try_echo=$ac_try;;
15468 esac
15469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15470 $as_echo "$ac_try_echo") >&5
15471 (eval "$ac_compile") 2>conftest.er1
15472 ac_status=$?
15473 grep -v '^ *+' conftest.er1 >conftest.err
15474 rm -f conftest.er1
15475 cat conftest.err >&5
15476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } && {
15478 test -z "$ac_c_werror_flag" ||
15479 test ! -s conftest.err
15480 } && test -s conftest.$ac_objext; then
15481 ac_header_compiler=yes
15482 else
15483 $as_echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 ac_header_compiler=no
15489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15490 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15491 $as_echo "$ac_header_compiler" >&6; }
15493 # Is the header present?
15494 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15495 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15496 cat >conftest.$ac_ext <<_ACEOF
15497 /* confdefs.h. */
15498 _ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15502 #include <malloc/malloc.h>
15503 _ACEOF
15504 if { (ac_try="$ac_cpp conftest.$ac_ext"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15508 esac
15509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15510 $as_echo "$ac_try_echo") >&5
15511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15512 ac_status=$?
15513 grep -v '^ *+' conftest.er1 >conftest.err
15514 rm -f conftest.er1
15515 cat conftest.err >&5
15516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } >/dev/null && {
15518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15520 }; then
15521 ac_header_preproc=yes
15522 else
15523 $as_echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 ac_header_preproc=no
15529 rm -f conftest.err conftest.$ac_ext
15530 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15531 $as_echo "$ac_header_preproc" >&6; }
15533 # So? What about this header?
15534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15535 yes:no: )
15536 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15537 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15538 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15539 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15540 ac_header_preproc=yes
15542 no:yes:* )
15543 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15544 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15545 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15546 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15547 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15548 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15549 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15550 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15551 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15552 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15553 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15554 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15557 esac
15558 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15559 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15560 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15561 $as_echo_n "(cached) " >&6
15562 else
15563 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15565 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15566 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15569 if test $ac_cv_header_malloc_malloc_h = yes; then
15571 cat >>confdefs.h <<\_ACEOF
15572 #define HAVE_MALLOC_MALLOC_H 1
15573 _ACEOF
15579 ### Use NeXTstep API to implement GUI.
15580 if test "${HAVE_NS}" = "yes"; then
15582 cat >>confdefs.h <<\_ACEOF
15583 #define HAVE_NS 1
15584 _ACEOF
15586 if test "${NS_IMPL_COCOA}" = "yes"; then
15588 cat >>confdefs.h <<\_ACEOF
15589 #define NS_IMPL_COCOA 1
15590 _ACEOF
15592 GNU_OBJC_CFLAGS=
15594 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15596 cat >>confdefs.h <<\_ACEOF
15597 #define NS_IMPL_GNUSTEP 1
15598 _ACEOF
15600 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15602 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15604 cat >>confdefs.h <<\_ACEOF
15605 #define NS_HAVE_NSINTEGER 1
15606 _ACEOF
15609 # We also have mouse menus.
15610 HAVE_MENUS=yes
15611 OTHER_FILES=ns-app
15615 ### Use session management (-lSM -lICE) if available
15616 HAVE_X_SM=no
15617 if test "${HAVE_X11}" = "yes"; then
15618 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15619 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15620 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15621 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15622 $as_echo_n "(cached) " >&6
15624 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15625 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15626 else
15627 # Is the header compilable?
15628 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15629 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
15630 cat >conftest.$ac_ext <<_ACEOF
15631 /* confdefs.h. */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 $ac_includes_default
15637 #include <X11/SM/SMlib.h>
15638 _ACEOF
15639 rm -f conftest.$ac_objext
15640 if { (ac_try="$ac_compile"
15641 case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15644 esac
15645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15646 $as_echo "$ac_try_echo") >&5
15647 (eval "$ac_compile") 2>conftest.er1
15648 ac_status=$?
15649 grep -v '^ *+' conftest.er1 >conftest.err
15650 rm -f conftest.er1
15651 cat conftest.err >&5
15652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } && {
15654 test -z "$ac_c_werror_flag" ||
15655 test ! -s conftest.err
15656 } && test -s conftest.$ac_objext; then
15657 ac_header_compiler=yes
15658 else
15659 $as_echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15662 ac_header_compiler=no
15665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15666 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15667 $as_echo "$ac_header_compiler" >&6; }
15669 # Is the header present?
15670 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15671 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
15672 cat >conftest.$ac_ext <<_ACEOF
15673 /* confdefs.h. */
15674 _ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 #include <X11/SM/SMlib.h>
15679 _ACEOF
15680 if { (ac_try="$ac_cpp conftest.$ac_ext"
15681 case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15684 esac
15685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15686 $as_echo "$ac_try_echo") >&5
15687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15688 ac_status=$?
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
15692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } >/dev/null && {
15694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15695 test ! -s conftest.err
15696 }; then
15697 ac_header_preproc=yes
15698 else
15699 $as_echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15702 ac_header_preproc=no
15705 rm -f conftest.err conftest.$ac_ext
15706 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15707 $as_echo "$ac_header_preproc" >&6; }
15709 # So? What about this header?
15710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15711 yes:no: )
15712 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15713 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15714 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15715 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15716 ac_header_preproc=yes
15718 no:yes:* )
15719 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15720 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15721 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15722 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15723 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15724 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15725 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15726 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15727 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15728 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15729 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15730 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15733 esac
15734 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15735 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15736 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15737 $as_echo_n "(cached) " >&6
15738 else
15739 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15741 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15742 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15745 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15746 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15747 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
15748 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15749 $as_echo_n "(cached) " >&6
15750 else
15751 ac_check_lib_save_LIBS=$LIBS
15752 LIBS="-lSM -lICE $LIBS"
15753 cat >conftest.$ac_ext <<_ACEOF
15754 /* confdefs.h. */
15755 _ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15760 /* Override any GCC internal prototype to avoid an error.
15761 Use char because int might match the return type of a GCC
15762 builtin and then its argument prototype would still apply. */
15763 #ifdef __cplusplus
15764 extern "C"
15765 #endif
15766 char SmcOpenConnection ();
15768 main ()
15770 return SmcOpenConnection ();
15772 return 0;
15774 _ACEOF
15775 rm -f conftest.$ac_objext conftest$ac_exeext
15776 if { (ac_try="$ac_link"
15777 case "(($ac_try" in
15778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15779 *) ac_try_echo=$ac_try;;
15780 esac
15781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15782 $as_echo "$ac_try_echo") >&5
15783 (eval "$ac_link") 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } && {
15790 test -z "$ac_c_werror_flag" ||
15791 test ! -s conftest.err
15792 } && test -s conftest$ac_exeext && {
15793 test "$cross_compiling" = yes ||
15794 $as_test_x conftest$ac_exeext
15795 }; then
15796 ac_cv_lib_SM_SmcOpenConnection=yes
15797 else
15798 $as_echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15801 ac_cv_lib_SM_SmcOpenConnection=no
15804 rm -rf conftest.dSYM
15805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15806 conftest$ac_exeext conftest.$ac_ext
15807 LIBS=$ac_check_lib_save_LIBS
15809 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15810 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15811 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15812 HAVE_X_SM=yes
15819 if test "${HAVE_X_SM}" = "yes"; then
15821 cat >>confdefs.h <<\_ACEOF
15822 #define HAVE_X_SM 1
15823 _ACEOF
15825 case "$LIBS" in
15826 *-lSM*) ;;
15827 *) LIBS="-lSM -lICE $LIBS" ;;
15828 esac
15832 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15833 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15834 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
15835 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15836 $as_echo_n "(cached) " >&6
15837 else
15838 cat >conftest.$ac_ext <<_ACEOF
15839 /* confdefs.h. */
15840 _ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15844 #include <netdb.h>
15846 main ()
15848 return h_errno;
15850 return 0;
15852 _ACEOF
15853 rm -f conftest.$ac_objext conftest$ac_exeext
15854 if { (ac_try="$ac_link"
15855 case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15858 esac
15859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15860 $as_echo "$ac_try_echo") >&5
15861 (eval "$ac_link") 2>conftest.er1
15862 ac_status=$?
15863 grep -v '^ *+' conftest.er1 >conftest.err
15864 rm -f conftest.er1
15865 cat conftest.err >&5
15866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } && {
15868 test -z "$ac_c_werror_flag" ||
15869 test ! -s conftest.err
15870 } && test -s conftest$ac_exeext && {
15871 test "$cross_compiling" = yes ||
15872 $as_test_x conftest$ac_exeext
15873 }; then
15874 emacs_cv_netdb_declares_h_errno=yes
15875 else
15876 $as_echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15879 emacs_cv_netdb_declares_h_errno=no
15882 rm -rf conftest.dSYM
15883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15884 conftest$ac_exeext conftest.$ac_ext
15886 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15887 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15888 if test $emacs_cv_netdb_declares_h_errno = yes; then
15890 cat >>confdefs.h <<\_ACEOF
15891 #define HAVE_H_ERRNO 1
15892 _ACEOF
15896 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15897 # for constant arguments. Useless!
15898 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
15899 $as_echo_n "checking for working alloca.h... " >&6; }
15900 if test "${ac_cv_working_alloca_h+set}" = set; then
15901 $as_echo_n "(cached) " >&6
15902 else
15903 cat >conftest.$ac_ext <<_ACEOF
15904 /* confdefs.h. */
15905 _ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15909 #include <alloca.h>
15911 main ()
15913 char *p = (char *) alloca (2 * sizeof (int));
15914 if (p) return 0;
15916 return 0;
15918 _ACEOF
15919 rm -f conftest.$ac_objext conftest$ac_exeext
15920 if { (ac_try="$ac_link"
15921 case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15924 esac
15925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15926 $as_echo "$ac_try_echo") >&5
15927 (eval "$ac_link") 2>conftest.er1
15928 ac_status=$?
15929 grep -v '^ *+' conftest.er1 >conftest.err
15930 rm -f conftest.er1
15931 cat conftest.err >&5
15932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } && {
15934 test -z "$ac_c_werror_flag" ||
15935 test ! -s conftest.err
15936 } && test -s conftest$ac_exeext && {
15937 test "$cross_compiling" = yes ||
15938 $as_test_x conftest$ac_exeext
15939 }; then
15940 ac_cv_working_alloca_h=yes
15941 else
15942 $as_echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15945 ac_cv_working_alloca_h=no
15948 rm -rf conftest.dSYM
15949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15950 conftest$ac_exeext conftest.$ac_ext
15952 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15953 $as_echo "$ac_cv_working_alloca_h" >&6; }
15954 if test $ac_cv_working_alloca_h = yes; then
15956 cat >>confdefs.h <<\_ACEOF
15957 #define HAVE_ALLOCA_H 1
15958 _ACEOF
15962 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
15963 $as_echo_n "checking for alloca... " >&6; }
15964 if test "${ac_cv_func_alloca_works+set}" = set; then
15965 $as_echo_n "(cached) " >&6
15966 else
15967 cat >conftest.$ac_ext <<_ACEOF
15968 /* confdefs.h. */
15969 _ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15973 #ifdef __GNUC__
15974 # define alloca __builtin_alloca
15975 #else
15976 # ifdef _MSC_VER
15977 # include <malloc.h>
15978 # define alloca _alloca
15979 # else
15980 # ifdef HAVE_ALLOCA_H
15981 # include <alloca.h>
15982 # else
15983 # ifdef _AIX
15984 #pragma alloca
15985 # else
15986 # ifndef alloca /* predefined by HP cc +Olibcalls */
15987 char *alloca ();
15988 # endif
15989 # endif
15990 # endif
15991 # endif
15992 #endif
15995 main ()
15997 char *p = (char *) alloca (1);
15998 if (p) return 0;
16000 return 0;
16002 _ACEOF
16003 rm -f conftest.$ac_objext conftest$ac_exeext
16004 if { (ac_try="$ac_link"
16005 case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16008 esac
16009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16010 $as_echo "$ac_try_echo") >&5
16011 (eval "$ac_link") 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } && {
16018 test -z "$ac_c_werror_flag" ||
16019 test ! -s conftest.err
16020 } && test -s conftest$ac_exeext && {
16021 test "$cross_compiling" = yes ||
16022 $as_test_x conftest$ac_exeext
16023 }; then
16024 ac_cv_func_alloca_works=yes
16025 else
16026 $as_echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16029 ac_cv_func_alloca_works=no
16032 rm -rf conftest.dSYM
16033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16034 conftest$ac_exeext conftest.$ac_ext
16036 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16037 $as_echo "$ac_cv_func_alloca_works" >&6; }
16039 if test $ac_cv_func_alloca_works = yes; then
16041 cat >>confdefs.h <<\_ACEOF
16042 #define HAVE_ALLOCA 1
16043 _ACEOF
16045 else
16046 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16047 # that cause trouble. Some versions do not even contain alloca or
16048 # contain a buggy version. If you still want to use their alloca,
16049 # use ar to extract alloca.o from them instead of compiling alloca.c.
16051 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16053 cat >>confdefs.h <<\_ACEOF
16054 #define C_ALLOCA 1
16055 _ACEOF
16058 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16059 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16060 if test "${ac_cv_os_cray+set}" = set; then
16061 $as_echo_n "(cached) " >&6
16062 else
16063 cat >conftest.$ac_ext <<_ACEOF
16064 /* confdefs.h. */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 #if defined CRAY && ! defined CRAY2
16070 webecray
16071 #else
16072 wenotbecray
16073 #endif
16075 _ACEOF
16076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16077 $EGREP "webecray" >/dev/null 2>&1; then
16078 ac_cv_os_cray=yes
16079 else
16080 ac_cv_os_cray=no
16082 rm -f conftest*
16085 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16086 $as_echo "$ac_cv_os_cray" >&6; }
16087 if test $ac_cv_os_cray = yes; then
16088 for ac_func in _getb67 GETB67 getb67; do
16089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16090 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16091 $as_echo_n "checking for $ac_func... " >&6; }
16092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16093 $as_echo_n "(cached) " >&6
16094 else
16095 cat >conftest.$ac_ext <<_ACEOF
16096 /* confdefs.h. */
16097 _ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16103 #define $ac_func innocuous_$ac_func
16105 /* System header to define __stub macros and hopefully few prototypes,
16106 which can conflict with char $ac_func (); below.
16107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16108 <limits.h> exists even on freestanding compilers. */
16110 #ifdef __STDC__
16111 # include <limits.h>
16112 #else
16113 # include <assert.h>
16114 #endif
16116 #undef $ac_func
16118 /* Override any GCC internal prototype to avoid an error.
16119 Use char because int might match the return type of a GCC
16120 builtin and then its argument prototype would still apply. */
16121 #ifdef __cplusplus
16122 extern "C"
16123 #endif
16124 char $ac_func ();
16125 /* The GNU C library defines this for functions which it implements
16126 to always fail with ENOSYS. Some functions are actually named
16127 something starting with __ and the normal name is an alias. */
16128 #if defined __stub_$ac_func || defined __stub___$ac_func
16129 choke me
16130 #endif
16133 main ()
16135 return $ac_func ();
16137 return 0;
16139 _ACEOF
16140 rm -f conftest.$ac_objext conftest$ac_exeext
16141 if { (ac_try="$ac_link"
16142 case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16145 esac
16146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16147 $as_echo "$ac_try_echo") >&5
16148 (eval "$ac_link") 2>conftest.er1
16149 ac_status=$?
16150 grep -v '^ *+' conftest.er1 >conftest.err
16151 rm -f conftest.er1
16152 cat conftest.err >&5
16153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } && {
16155 test -z "$ac_c_werror_flag" ||
16156 test ! -s conftest.err
16157 } && test -s conftest$ac_exeext && {
16158 test "$cross_compiling" = yes ||
16159 $as_test_x conftest$ac_exeext
16160 }; then
16161 eval "$as_ac_var=yes"
16162 else
16163 $as_echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16166 eval "$as_ac_var=no"
16169 rm -rf conftest.dSYM
16170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16171 conftest$ac_exeext conftest.$ac_ext
16173 ac_res=`eval 'as_val=${'$as_ac_var'}
16174 $as_echo "$as_val"'`
16175 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16176 $as_echo "$ac_res" >&6; }
16177 if test `eval 'as_val=${'$as_ac_var'}
16178 $as_echo "$as_val"'` = yes; then
16180 cat >>confdefs.h <<_ACEOF
16181 #define CRAY_STACKSEG_END $ac_func
16182 _ACEOF
16184 break
16187 done
16190 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16191 $as_echo_n "checking stack direction for C alloca... " >&6; }
16192 if test "${ac_cv_c_stack_direction+set}" = set; then
16193 $as_echo_n "(cached) " >&6
16194 else
16195 if test "$cross_compiling" = yes; then
16196 ac_cv_c_stack_direction=0
16197 else
16198 cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h. */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16204 $ac_includes_default
16206 find_stack_direction ()
16208 static char *addr = 0;
16209 auto char dummy;
16210 if (addr == 0)
16212 addr = &dummy;
16213 return find_stack_direction ();
16215 else
16216 return (&dummy > addr) ? 1 : -1;
16220 main ()
16222 return find_stack_direction () < 0;
16224 _ACEOF
16225 rm -f conftest$ac_exeext
16226 if { (ac_try="$ac_link"
16227 case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16230 esac
16231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16232 $as_echo "$ac_try_echo") >&5
16233 (eval "$ac_link") 2>&5
16234 ac_status=$?
16235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16237 { (case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16240 esac
16241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16242 $as_echo "$ac_try_echo") >&5
16243 (eval "$ac_try") 2>&5
16244 ac_status=$?
16245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; }; then
16247 ac_cv_c_stack_direction=1
16248 else
16249 $as_echo "$as_me: program exited with status $ac_status" >&5
16250 $as_echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16253 ( exit $ac_status )
16254 ac_cv_c_stack_direction=-1
16256 rm -rf conftest.dSYM
16257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16262 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16263 $as_echo "$ac_cv_c_stack_direction" >&6; }
16265 cat >>confdefs.h <<_ACEOF
16266 #define STACK_DIRECTION $ac_cv_c_stack_direction
16267 _ACEOF
16273 if test x"$ac_cv_func_alloca_works" != xyes; then
16274 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16275 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16276 { (exit 1); exit 1; }; }
16279 # fmod, logb, and frexp are found in -lm on most systems.
16280 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16282 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16283 $as_echo_n "checking for sqrt in -lm... " >&6; }
16284 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16285 $as_echo_n "(cached) " >&6
16286 else
16287 ac_check_lib_save_LIBS=$LIBS
16288 LIBS="-lm $LIBS"
16289 cat >conftest.$ac_ext <<_ACEOF
16290 /* confdefs.h. */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16296 /* Override any GCC internal prototype to avoid an error.
16297 Use char because int might match the return type of a GCC
16298 builtin and then its argument prototype would still apply. */
16299 #ifdef __cplusplus
16300 extern "C"
16301 #endif
16302 char sqrt ();
16304 main ()
16306 return sqrt ();
16308 return 0;
16310 _ACEOF
16311 rm -f conftest.$ac_objext conftest$ac_exeext
16312 if { (ac_try="$ac_link"
16313 case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16316 esac
16317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16318 $as_echo "$ac_try_echo") >&5
16319 (eval "$ac_link") 2>conftest.er1
16320 ac_status=$?
16321 grep -v '^ *+' conftest.er1 >conftest.err
16322 rm -f conftest.er1
16323 cat conftest.err >&5
16324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } && {
16326 test -z "$ac_c_werror_flag" ||
16327 test ! -s conftest.err
16328 } && test -s conftest$ac_exeext && {
16329 test "$cross_compiling" = yes ||
16330 $as_test_x conftest$ac_exeext
16331 }; then
16332 ac_cv_lib_m_sqrt=yes
16333 else
16334 $as_echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 ac_cv_lib_m_sqrt=no
16340 rm -rf conftest.dSYM
16341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16342 conftest$ac_exeext conftest.$ac_ext
16343 LIBS=$ac_check_lib_save_LIBS
16345 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16346 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16347 if test $ac_cv_lib_m_sqrt = yes; then
16348 cat >>confdefs.h <<_ACEOF
16349 #define HAVE_LIBM 1
16350 _ACEOF
16352 LIBS="-lm $LIBS"
16357 # Check for mail-locking functions in a "mail" library. Probably this should
16358 # have the same check as for liblockfile below.
16360 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16361 $as_echo_n "checking for maillock in -lmail... " >&6; }
16362 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16363 $as_echo_n "(cached) " >&6
16364 else
16365 ac_check_lib_save_LIBS=$LIBS
16366 LIBS="-lmail $LIBS"
16367 cat >conftest.$ac_ext <<_ACEOF
16368 /* confdefs.h. */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16374 /* Override any GCC internal prototype to avoid an error.
16375 Use char because int might match the return type of a GCC
16376 builtin and then its argument prototype would still apply. */
16377 #ifdef __cplusplus
16378 extern "C"
16379 #endif
16380 char maillock ();
16382 main ()
16384 return maillock ();
16386 return 0;
16388 _ACEOF
16389 rm -f conftest.$ac_objext conftest$ac_exeext
16390 if { (ac_try="$ac_link"
16391 case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16394 esac
16395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16396 $as_echo "$ac_try_echo") >&5
16397 (eval "$ac_link") 2>conftest.er1
16398 ac_status=$?
16399 grep -v '^ *+' conftest.er1 >conftest.err
16400 rm -f conftest.er1
16401 cat conftest.err >&5
16402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } && {
16404 test -z "$ac_c_werror_flag" ||
16405 test ! -s conftest.err
16406 } && test -s conftest$ac_exeext && {
16407 test "$cross_compiling" = yes ||
16408 $as_test_x conftest$ac_exeext
16409 }; then
16410 ac_cv_lib_mail_maillock=yes
16411 else
16412 $as_echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16415 ac_cv_lib_mail_maillock=no
16418 rm -rf conftest.dSYM
16419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16420 conftest$ac_exeext conftest.$ac_ext
16421 LIBS=$ac_check_lib_save_LIBS
16423 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16424 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16425 if test $ac_cv_lib_mail_maillock = yes; then
16426 cat >>confdefs.h <<_ACEOF
16427 #define HAVE_LIBMAIL 1
16428 _ACEOF
16430 LIBS="-lmail $LIBS"
16435 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16436 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16437 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16438 $as_echo_n "(cached) " >&6
16439 else
16440 ac_check_lib_save_LIBS=$LIBS
16441 LIBS="-llockfile $LIBS"
16442 cat >conftest.$ac_ext <<_ACEOF
16443 /* confdefs.h. */
16444 _ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16449 /* Override any GCC internal prototype to avoid an error.
16450 Use char because int might match the return type of a GCC
16451 builtin and then its argument prototype would still apply. */
16452 #ifdef __cplusplus
16453 extern "C"
16454 #endif
16455 char maillock ();
16457 main ()
16459 return maillock ();
16461 return 0;
16463 _ACEOF
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (ac_try="$ac_link"
16466 case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16469 esac
16470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16471 $as_echo "$ac_try_echo") >&5
16472 (eval "$ac_link") 2>conftest.er1
16473 ac_status=$?
16474 grep -v '^ *+' conftest.er1 >conftest.err
16475 rm -f conftest.er1
16476 cat conftest.err >&5
16477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } && {
16479 test -z "$ac_c_werror_flag" ||
16480 test ! -s conftest.err
16481 } && test -s conftest$ac_exeext && {
16482 test "$cross_compiling" = yes ||
16483 $as_test_x conftest$ac_exeext
16484 }; then
16485 ac_cv_lib_lockfile_maillock=yes
16486 else
16487 $as_echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16490 ac_cv_lib_lockfile_maillock=no
16493 rm -rf conftest.dSYM
16494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16495 conftest$ac_exeext conftest.$ac_ext
16496 LIBS=$ac_check_lib_save_LIBS
16498 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16499 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16500 if test $ac_cv_lib_lockfile_maillock = yes; then
16501 cat >>confdefs.h <<_ACEOF
16502 #define HAVE_LIBLOCKFILE 1
16503 _ACEOF
16505 LIBS="-llockfile $LIBS"
16509 # If we have the shared liblockfile, assume we must use it for mail
16510 # locking (e.g. Debian). If we couldn't link against liblockfile
16511 # (no liblockfile.a installed), ensure that we don't need to.
16512 if test "$ac_cv_lib_lockfile_maillock" = no; then
16513 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16514 set dummy liblockfile.so; ac_word=$2
16515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16516 $as_echo_n "checking for $ac_word... " >&6; }
16517 if test "${ac_cv_prog_liblockfile+set}" = set; then
16518 $as_echo_n "(cached) " >&6
16519 else
16520 if test -n "$liblockfile"; then
16521 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16522 else
16523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16524 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16525 for as_dir in $as_dummy
16527 IFS=$as_save_IFS
16528 test -z "$as_dir" && as_dir=.
16529 for ac_exec_ext in '' $ac_executable_extensions; do
16530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16531 ac_cv_prog_liblockfile="yes"
16532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16533 break 2
16535 done
16536 done
16537 IFS=$as_save_IFS
16539 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16542 liblockfile=$ac_cv_prog_liblockfile
16543 if test -n "$liblockfile"; then
16544 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16545 $as_echo "$liblockfile" >&6; }
16546 else
16547 { $as_echo "$as_me:$LINENO: result: no" >&5
16548 $as_echo "no" >&6; }
16552 if test $ac_cv_prog_liblockfile = yes; then
16553 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16554 This probably means that movemail could lose mail.
16555 There may be a \`development' package to install containing liblockfile." >&5
16556 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16557 This probably means that movemail could lose mail.
16558 There may be a \`development' package to install containing liblockfile." >&2;}
16559 { (exit 1); exit 1; }; }
16560 else :
16564 for ac_func in touchlock
16566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16567 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16568 $as_echo_n "checking for $ac_func... " >&6; }
16569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16570 $as_echo_n "(cached) " >&6
16571 else
16572 cat >conftest.$ac_ext <<_ACEOF
16573 /* confdefs.h. */
16574 _ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16580 #define $ac_func innocuous_$ac_func
16582 /* System header to define __stub macros and hopefully few prototypes,
16583 which can conflict with char $ac_func (); below.
16584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16585 <limits.h> exists even on freestanding compilers. */
16587 #ifdef __STDC__
16588 # include <limits.h>
16589 #else
16590 # include <assert.h>
16591 #endif
16593 #undef $ac_func
16595 /* Override any GCC internal prototype to avoid an error.
16596 Use char because int might match the return type of a GCC
16597 builtin and then its argument prototype would still apply. */
16598 #ifdef __cplusplus
16599 extern "C"
16600 #endif
16601 char $ac_func ();
16602 /* The GNU C library defines this for functions which it implements
16603 to always fail with ENOSYS. Some functions are actually named
16604 something starting with __ and the normal name is an alias. */
16605 #if defined __stub_$ac_func || defined __stub___$ac_func
16606 choke me
16607 #endif
16610 main ()
16612 return $ac_func ();
16614 return 0;
16616 _ACEOF
16617 rm -f conftest.$ac_objext conftest$ac_exeext
16618 if { (ac_try="$ac_link"
16619 case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16622 esac
16623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16624 $as_echo "$ac_try_echo") >&5
16625 (eval "$ac_link") 2>conftest.er1
16626 ac_status=$?
16627 grep -v '^ *+' conftest.er1 >conftest.err
16628 rm -f conftest.er1
16629 cat conftest.err >&5
16630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } && {
16632 test -z "$ac_c_werror_flag" ||
16633 test ! -s conftest.err
16634 } && test -s conftest$ac_exeext && {
16635 test "$cross_compiling" = yes ||
16636 $as_test_x conftest$ac_exeext
16637 }; then
16638 eval "$as_ac_var=yes"
16639 else
16640 $as_echo "$as_me: failed program was:" >&5
16641 sed 's/^/| /' conftest.$ac_ext >&5
16643 eval "$as_ac_var=no"
16646 rm -rf conftest.dSYM
16647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16648 conftest$ac_exeext conftest.$ac_ext
16650 ac_res=`eval 'as_val=${'$as_ac_var'}
16651 $as_echo "$as_val"'`
16652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16653 $as_echo "$ac_res" >&6; }
16654 if test `eval 'as_val=${'$as_ac_var'}
16655 $as_echo "$as_val"'` = yes; then
16656 cat >>confdefs.h <<_ACEOF
16657 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16658 _ACEOF
16661 done
16664 for ac_header in maillock.h
16666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16669 $as_echo_n "checking for $ac_header... " >&6; }
16670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16671 $as_echo_n "(cached) " >&6
16673 ac_res=`eval 'as_val=${'$as_ac_Header'}
16674 $as_echo "$as_val"'`
16675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16676 $as_echo "$ac_res" >&6; }
16677 else
16678 # Is the header compilable?
16679 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16680 $as_echo_n "checking $ac_header usability... " >&6; }
16681 cat >conftest.$ac_ext <<_ACEOF
16682 /* confdefs.h. */
16683 _ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687 $ac_includes_default
16688 #include <$ac_header>
16689 _ACEOF
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16695 esac
16696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16697 $as_echo "$ac_try_echo") >&5
16698 (eval "$ac_compile") 2>conftest.er1
16699 ac_status=$?
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
16703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } && {
16705 test -z "$ac_c_werror_flag" ||
16706 test ! -s conftest.err
16707 } && test -s conftest.$ac_objext; then
16708 ac_header_compiler=yes
16709 else
16710 $as_echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16713 ac_header_compiler=no
16716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16717 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16718 $as_echo "$ac_header_compiler" >&6; }
16720 # Is the header present?
16721 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16722 $as_echo_n "checking $ac_header presence... " >&6; }
16723 cat >conftest.$ac_ext <<_ACEOF
16724 /* confdefs.h. */
16725 _ACEOF
16726 cat confdefs.h >>conftest.$ac_ext
16727 cat >>conftest.$ac_ext <<_ACEOF
16728 /* end confdefs.h. */
16729 #include <$ac_header>
16730 _ACEOF
16731 if { (ac_try="$ac_cpp conftest.$ac_ext"
16732 case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16735 esac
16736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16737 $as_echo "$ac_try_echo") >&5
16738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16739 ac_status=$?
16740 grep -v '^ *+' conftest.er1 >conftest.err
16741 rm -f conftest.er1
16742 cat conftest.err >&5
16743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } >/dev/null && {
16745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16746 test ! -s conftest.err
16747 }; then
16748 ac_header_preproc=yes
16749 else
16750 $as_echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16753 ac_header_preproc=no
16756 rm -f conftest.err conftest.$ac_ext
16757 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16758 $as_echo "$ac_header_preproc" >&6; }
16760 # So? What about this header?
16761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16762 yes:no: )
16763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16764 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16767 ac_header_preproc=yes
16769 no:yes:* )
16770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16771 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16773 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16775 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16777 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16781 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16784 esac
16785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16786 $as_echo_n "checking for $ac_header... " >&6; }
16787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16788 $as_echo_n "(cached) " >&6
16789 else
16790 eval "$as_ac_Header=\$ac_header_preproc"
16792 ac_res=`eval 'as_val=${'$as_ac_Header'}
16793 $as_echo "$as_val"'`
16794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16795 $as_echo "$ac_res" >&6; }
16798 if test `eval 'as_val=${'$as_ac_Header'}
16799 $as_echo "$as_val"'` = yes; then
16800 cat >>confdefs.h <<_ACEOF
16801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16802 _ACEOF
16806 done
16880 for ac_func in gethostname getdomainname dup2 \
16881 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16882 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16883 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16884 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16885 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16886 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16887 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16888 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16889 cfmakeraw cfsetspeed
16891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16892 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16893 $as_echo_n "checking for $ac_func... " >&6; }
16894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16895 $as_echo_n "(cached) " >&6
16896 else
16897 cat >conftest.$ac_ext <<_ACEOF
16898 /* confdefs.h. */
16899 _ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16905 #define $ac_func innocuous_$ac_func
16907 /* System header to define __stub macros and hopefully few prototypes,
16908 which can conflict with char $ac_func (); below.
16909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16910 <limits.h> exists even on freestanding compilers. */
16912 #ifdef __STDC__
16913 # include <limits.h>
16914 #else
16915 # include <assert.h>
16916 #endif
16918 #undef $ac_func
16920 /* Override any GCC internal prototype to avoid an error.
16921 Use char because int might match the return type of a GCC
16922 builtin and then its argument prototype would still apply. */
16923 #ifdef __cplusplus
16924 extern "C"
16925 #endif
16926 char $ac_func ();
16927 /* The GNU C library defines this for functions which it implements
16928 to always fail with ENOSYS. Some functions are actually named
16929 something starting with __ and the normal name is an alias. */
16930 #if defined __stub_$ac_func || defined __stub___$ac_func
16931 choke me
16932 #endif
16935 main ()
16937 return $ac_func ();
16939 return 0;
16941 _ACEOF
16942 rm -f conftest.$ac_objext conftest$ac_exeext
16943 if { (ac_try="$ac_link"
16944 case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16947 esac
16948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16949 $as_echo "$ac_try_echo") >&5
16950 (eval "$ac_link") 2>conftest.er1
16951 ac_status=$?
16952 grep -v '^ *+' conftest.er1 >conftest.err
16953 rm -f conftest.er1
16954 cat conftest.err >&5
16955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } && {
16957 test -z "$ac_c_werror_flag" ||
16958 test ! -s conftest.err
16959 } && test -s conftest$ac_exeext && {
16960 test "$cross_compiling" = yes ||
16961 $as_test_x conftest$ac_exeext
16962 }; then
16963 eval "$as_ac_var=yes"
16964 else
16965 $as_echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 eval "$as_ac_var=no"
16971 rm -rf conftest.dSYM
16972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16973 conftest$ac_exeext conftest.$ac_ext
16975 ac_res=`eval 'as_val=${'$as_ac_var'}
16976 $as_echo "$as_val"'`
16977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16978 $as_echo "$ac_res" >&6; }
16979 if test `eval 'as_val=${'$as_ac_var'}
16980 $as_echo "$as_val"'` = yes; then
16981 cat >>confdefs.h <<_ACEOF
16982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16983 _ACEOF
16986 done
16990 for ac_header in sys/un.h
16992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16994 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16995 $as_echo_n "checking for $ac_header... " >&6; }
16996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16997 $as_echo_n "(cached) " >&6
16999 ac_res=`eval 'as_val=${'$as_ac_Header'}
17000 $as_echo "$as_val"'`
17001 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17002 $as_echo "$ac_res" >&6; }
17003 else
17004 # Is the header compilable?
17005 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17006 $as_echo_n "checking $ac_header usability... " >&6; }
17007 cat >conftest.$ac_ext <<_ACEOF
17008 /* confdefs.h. */
17009 _ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h. */
17013 $ac_includes_default
17014 #include <$ac_header>
17015 _ACEOF
17016 rm -f conftest.$ac_objext
17017 if { (ac_try="$ac_compile"
17018 case "(($ac_try" in
17019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020 *) ac_try_echo=$ac_try;;
17021 esac
17022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17023 $as_echo "$ac_try_echo") >&5
17024 (eval "$ac_compile") 2>conftest.er1
17025 ac_status=$?
17026 grep -v '^ *+' conftest.er1 >conftest.err
17027 rm -f conftest.er1
17028 cat conftest.err >&5
17029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } && {
17031 test -z "$ac_c_werror_flag" ||
17032 test ! -s conftest.err
17033 } && test -s conftest.$ac_objext; then
17034 ac_header_compiler=yes
17035 else
17036 $as_echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ac_header_compiler=no
17042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17043 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17044 $as_echo "$ac_header_compiler" >&6; }
17046 # Is the header present?
17047 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17048 $as_echo_n "checking $ac_header presence... " >&6; }
17049 cat >conftest.$ac_ext <<_ACEOF
17050 /* confdefs.h. */
17051 _ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17055 #include <$ac_header>
17056 _ACEOF
17057 if { (ac_try="$ac_cpp conftest.$ac_ext"
17058 case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061 esac
17062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17063 $as_echo "$ac_try_echo") >&5
17064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17065 ac_status=$?
17066 grep -v '^ *+' conftest.er1 >conftest.err
17067 rm -f conftest.er1
17068 cat conftest.err >&5
17069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); } >/dev/null && {
17071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17072 test ! -s conftest.err
17073 }; then
17074 ac_header_preproc=yes
17075 else
17076 $as_echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17079 ac_header_preproc=no
17082 rm -f conftest.err conftest.$ac_ext
17083 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17084 $as_echo "$ac_header_preproc" >&6; }
17086 # So? What about this header?
17087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17088 yes:no: )
17089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17090 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17092 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17093 ac_header_preproc=yes
17095 no:yes:* )
17096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17097 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17099 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17101 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17103 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17105 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17107 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17110 esac
17111 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17112 $as_echo_n "checking for $ac_header... " >&6; }
17113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17114 $as_echo_n "(cached) " >&6
17115 else
17116 eval "$as_ac_Header=\$ac_header_preproc"
17118 ac_res=`eval 'as_val=${'$as_ac_Header'}
17119 $as_echo "$as_val"'`
17120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17121 $as_echo "$ac_res" >&6; }
17124 if test `eval 'as_val=${'$as_ac_Header'}
17125 $as_echo "$as_val"'` = yes; then
17126 cat >>confdefs.h <<_ACEOF
17127 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17128 _ACEOF
17132 done
17139 for ac_header in $ac_header_list
17141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17143 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17144 $as_echo_n "checking for $ac_header... " >&6; }
17145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17146 $as_echo_n "(cached) " >&6
17148 ac_res=`eval 'as_val=${'$as_ac_Header'}
17149 $as_echo "$as_val"'`
17150 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17151 $as_echo "$ac_res" >&6; }
17152 else
17153 # Is the header compilable?
17154 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17155 $as_echo_n "checking $ac_header usability... " >&6; }
17156 cat >conftest.$ac_ext <<_ACEOF
17157 /* confdefs.h. */
17158 _ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 $ac_includes_default
17163 #include <$ac_header>
17164 _ACEOF
17165 rm -f conftest.$ac_objext
17166 if { (ac_try="$ac_compile"
17167 case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170 esac
17171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17172 $as_echo "$ac_try_echo") >&5
17173 (eval "$ac_compile") 2>conftest.er1
17174 ac_status=$?
17175 grep -v '^ *+' conftest.er1 >conftest.err
17176 rm -f conftest.er1
17177 cat conftest.err >&5
17178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); } && {
17180 test -z "$ac_c_werror_flag" ||
17181 test ! -s conftest.err
17182 } && test -s conftest.$ac_objext; then
17183 ac_header_compiler=yes
17184 else
17185 $as_echo "$as_me: failed program was:" >&5
17186 sed 's/^/| /' conftest.$ac_ext >&5
17188 ac_header_compiler=no
17191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17193 $as_echo "$ac_header_compiler" >&6; }
17195 # Is the header present?
17196 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17197 $as_echo_n "checking $ac_header presence... " >&6; }
17198 cat >conftest.$ac_ext <<_ACEOF
17199 /* confdefs.h. */
17200 _ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h. */
17204 #include <$ac_header>
17205 _ACEOF
17206 if { (ac_try="$ac_cpp conftest.$ac_ext"
17207 case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17210 esac
17211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17212 $as_echo "$ac_try_echo") >&5
17213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17214 ac_status=$?
17215 grep -v '^ *+' conftest.er1 >conftest.err
17216 rm -f conftest.er1
17217 cat conftest.err >&5
17218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } >/dev/null && {
17220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17221 test ! -s conftest.err
17222 }; then
17223 ac_header_preproc=yes
17224 else
17225 $as_echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17228 ac_header_preproc=no
17231 rm -f conftest.err conftest.$ac_ext
17232 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17233 $as_echo "$ac_header_preproc" >&6; }
17235 # So? What about this header?
17236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17237 yes:no: )
17238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17239 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17241 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17242 ac_header_preproc=yes
17244 no:yes:* )
17245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17246 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17248 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17250 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17252 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17254 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17256 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17259 esac
17260 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17261 $as_echo_n "checking for $ac_header... " >&6; }
17262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17263 $as_echo_n "(cached) " >&6
17264 else
17265 eval "$as_ac_Header=\$ac_header_preproc"
17267 ac_res=`eval 'as_val=${'$as_ac_Header'}
17268 $as_echo "$as_val"'`
17269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17270 $as_echo "$ac_res" >&6; }
17273 if test `eval 'as_val=${'$as_ac_Header'}
17274 $as_echo "$as_val"'` = yes; then
17275 cat >>confdefs.h <<_ACEOF
17276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17277 _ACEOF
17281 done
17291 for ac_func in $ac_func_list
17293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17294 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17295 $as_echo_n "checking for $ac_func... " >&6; }
17296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17297 $as_echo_n "(cached) " >&6
17298 else
17299 cat >conftest.$ac_ext <<_ACEOF
17300 /* confdefs.h. */
17301 _ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17307 #define $ac_func innocuous_$ac_func
17309 /* System header to define __stub macros and hopefully few prototypes,
17310 which can conflict with char $ac_func (); below.
17311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17312 <limits.h> exists even on freestanding compilers. */
17314 #ifdef __STDC__
17315 # include <limits.h>
17316 #else
17317 # include <assert.h>
17318 #endif
17320 #undef $ac_func
17322 /* Override any GCC internal prototype to avoid an error.
17323 Use char because int might match the return type of a GCC
17324 builtin and then its argument prototype would still apply. */
17325 #ifdef __cplusplus
17326 extern "C"
17327 #endif
17328 char $ac_func ();
17329 /* The GNU C library defines this for functions which it implements
17330 to always fail with ENOSYS. Some functions are actually named
17331 something starting with __ and the normal name is an alias. */
17332 #if defined __stub_$ac_func || defined __stub___$ac_func
17333 choke me
17334 #endif
17337 main ()
17339 return $ac_func ();
17341 return 0;
17343 _ACEOF
17344 rm -f conftest.$ac_objext conftest$ac_exeext
17345 if { (ac_try="$ac_link"
17346 case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17349 esac
17350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17351 $as_echo "$ac_try_echo") >&5
17352 (eval "$ac_link") 2>conftest.er1
17353 ac_status=$?
17354 grep -v '^ *+' conftest.er1 >conftest.err
17355 rm -f conftest.er1
17356 cat conftest.err >&5
17357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } && {
17359 test -z "$ac_c_werror_flag" ||
17360 test ! -s conftest.err
17361 } && test -s conftest$ac_exeext && {
17362 test "$cross_compiling" = yes ||
17363 $as_test_x conftest$ac_exeext
17364 }; then
17365 eval "$as_ac_var=yes"
17366 else
17367 $as_echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17370 eval "$as_ac_var=no"
17373 rm -rf conftest.dSYM
17374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17375 conftest$ac_exeext conftest.$ac_ext
17377 ac_res=`eval 'as_val=${'$as_ac_var'}
17378 $as_echo "$as_val"'`
17379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17380 $as_echo "$ac_res" >&6; }
17381 if test `eval 'as_val=${'$as_ac_var'}
17382 $as_echo "$as_val"'` = yes; then
17383 cat >>confdefs.h <<_ACEOF
17384 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17385 _ACEOF
17388 done
17406 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17407 $as_echo_n "checking for working mktime... " >&6; }
17408 if test "${ac_cv_func_working_mktime+set}" = set; then
17409 $as_echo_n "(cached) " >&6
17410 else
17411 if test "$cross_compiling" = yes; then
17412 ac_cv_func_working_mktime=no
17413 else
17414 cat >conftest.$ac_ext <<_ACEOF
17415 /* confdefs.h. */
17416 _ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h. */
17420 /* Test program from Paul Eggert and Tony Leneis. */
17421 #ifdef TIME_WITH_SYS_TIME
17422 # include <sys/time.h>
17423 # include <time.h>
17424 #else
17425 # ifdef HAVE_SYS_TIME_H
17426 # include <sys/time.h>
17427 # else
17428 # include <time.h>
17429 # endif
17430 #endif
17432 #include <limits.h>
17433 #include <stdlib.h>
17435 #ifdef HAVE_UNISTD_H
17436 # include <unistd.h>
17437 #endif
17439 #ifndef HAVE_ALARM
17440 # define alarm(X) /* empty */
17441 #endif
17443 /* Work around redefinition to rpl_putenv by other config tests. */
17444 #undef putenv
17446 static time_t time_t_max;
17447 static time_t time_t_min;
17449 /* Values we'll use to set the TZ environment variable. */
17450 static char *tz_strings[] = {
17451 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17452 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17454 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17456 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17457 Based on a problem report from Andreas Jaeger. */
17458 static int
17459 spring_forward_gap ()
17461 /* glibc (up to about 1998-10-07) failed this test. */
17462 struct tm tm;
17464 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17465 instead of "TZ=America/Vancouver" in order to detect the bug even
17466 on systems that don't support the Olson extension, or don't have the
17467 full zoneinfo tables installed. */
17468 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17470 tm.tm_year = 98;
17471 tm.tm_mon = 3;
17472 tm.tm_mday = 5;
17473 tm.tm_hour = 2;
17474 tm.tm_min = 0;
17475 tm.tm_sec = 0;
17476 tm.tm_isdst = -1;
17477 return mktime (&tm) != (time_t) -1;
17480 static int
17481 mktime_test1 (now)
17482 time_t now;
17484 struct tm *lt;
17485 return ! (lt = localtime (&now)) || mktime (lt) == now;
17488 static int
17489 mktime_test (now)
17490 time_t now;
17492 return (mktime_test1 (now)
17493 && mktime_test1 ((time_t) (time_t_max - now))
17494 && mktime_test1 ((time_t) (time_t_min + now)));
17497 static int
17498 irix_6_4_bug ()
17500 /* Based on code from Ariel Faigon. */
17501 struct tm tm;
17502 tm.tm_year = 96;
17503 tm.tm_mon = 3;
17504 tm.tm_mday = 0;
17505 tm.tm_hour = 0;
17506 tm.tm_min = 0;
17507 tm.tm_sec = 0;
17508 tm.tm_isdst = -1;
17509 mktime (&tm);
17510 return tm.tm_mon == 2 && tm.tm_mday == 31;
17513 static int
17514 bigtime_test (j)
17515 int j;
17517 struct tm tm;
17518 time_t now;
17519 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17520 now = mktime (&tm);
17521 if (now != (time_t) -1)
17523 struct tm *lt = localtime (&now);
17524 if (! (lt
17525 && lt->tm_year == tm.tm_year
17526 && lt->tm_mon == tm.tm_mon
17527 && lt->tm_mday == tm.tm_mday
17528 && lt->tm_hour == tm.tm_hour
17529 && lt->tm_min == tm.tm_min
17530 && lt->tm_sec == tm.tm_sec
17531 && lt->tm_yday == tm.tm_yday
17532 && lt->tm_wday == tm.tm_wday
17533 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17534 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17535 return 0;
17537 return 1;
17540 static int
17541 year_2050_test ()
17543 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17544 ignoring leap seconds. */
17545 unsigned long int answer = 2527315200UL;
17547 struct tm tm;
17548 time_t t;
17549 tm.tm_year = 2050 - 1900;
17550 tm.tm_mon = 2 - 1;
17551 tm.tm_mday = 1;
17552 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17553 tm.tm_isdst = -1;
17555 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17556 instead of "TZ=America/Vancouver" in order to detect the bug even
17557 on systems that don't support the Olson extension, or don't have the
17558 full zoneinfo tables installed. */
17559 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17561 t = mktime (&tm);
17563 /* Check that the result is either a failure, or close enough
17564 to the correct answer that we can assume the discrepancy is
17565 due to leap seconds. */
17566 return (t == (time_t) -1
17567 || (0 < t && answer - 120 <= t && t <= answer + 120));
17571 main ()
17573 time_t t, delta;
17574 int i, j;
17576 /* This test makes some buggy mktime implementations loop.
17577 Give up after 60 seconds; a mktime slower than that
17578 isn't worth using anyway. */
17579 alarm (60);
17581 for (;;)
17583 t = (time_t_max << 1) + 1;
17584 if (t <= time_t_max)
17585 break;
17586 time_t_max = t;
17588 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17590 delta = time_t_max / 997; /* a suitable prime number */
17591 for (i = 0; i < N_STRINGS; i++)
17593 if (tz_strings[i])
17594 putenv (tz_strings[i]);
17596 for (t = 0; t <= time_t_max - delta; t += delta)
17597 if (! mktime_test (t))
17598 return 1;
17599 if (! (mktime_test ((time_t) 1)
17600 && mktime_test ((time_t) (60 * 60))
17601 && mktime_test ((time_t) (60 * 60 * 24))))
17602 return 1;
17604 for (j = 1; ; j <<= 1)
17605 if (! bigtime_test (j))
17606 return 1;
17607 else if (INT_MAX / 2 < j)
17608 break;
17609 if (! bigtime_test (INT_MAX))
17610 return 1;
17612 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17614 _ACEOF
17615 rm -f conftest$ac_exeext
17616 if { (ac_try="$ac_link"
17617 case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17620 esac
17621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17622 $as_echo "$ac_try_echo") >&5
17623 (eval "$ac_link") 2>&5
17624 ac_status=$?
17625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17627 { (case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17630 esac
17631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17632 $as_echo "$ac_try_echo") >&5
17633 (eval "$ac_try") 2>&5
17634 ac_status=$?
17635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; }; then
17637 ac_cv_func_working_mktime=yes
17638 else
17639 $as_echo "$as_me: program exited with status $ac_status" >&5
17640 $as_echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 ( exit $ac_status )
17644 ac_cv_func_working_mktime=no
17646 rm -rf conftest.dSYM
17647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17652 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17653 $as_echo "$ac_cv_func_working_mktime" >&6; }
17654 if test $ac_cv_func_working_mktime = no; then
17655 case " $LIBOBJS " in
17656 *" mktime.$ac_objext "* ) ;;
17657 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17659 esac
17663 if test "$ac_cv_func_working_mktime" = no; then
17665 cat >>confdefs.h <<\_ACEOF
17666 #define BROKEN_MKTIME 1
17667 _ACEOF
17671 ac_have_func=no # yes means we've found a way to get the load average.
17673 # Make sure getloadavg.c is where it belongs, at configure-time.
17674 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17675 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17676 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17677 { (exit 1); exit 1; }; }
17679 ac_save_LIBS=$LIBS
17681 # Check for getloadavg, but be sure not to touch the cache variable.
17682 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17683 $as_echo_n "checking for getloadavg... " >&6; }
17684 if test "${ac_cv_func_getloadavg+set}" = set; then
17685 $as_echo_n "(cached) " >&6
17686 else
17687 cat >conftest.$ac_ext <<_ACEOF
17688 /* confdefs.h. */
17689 _ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h. */
17693 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17695 #define getloadavg innocuous_getloadavg
17697 /* System header to define __stub macros and hopefully few prototypes,
17698 which can conflict with char getloadavg (); below.
17699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17700 <limits.h> exists even on freestanding compilers. */
17702 #ifdef __STDC__
17703 # include <limits.h>
17704 #else
17705 # include <assert.h>
17706 #endif
17708 #undef getloadavg
17710 /* Override any GCC internal prototype to avoid an error.
17711 Use char because int might match the return type of a GCC
17712 builtin and then its argument prototype would still apply. */
17713 #ifdef __cplusplus
17714 extern "C"
17715 #endif
17716 char getloadavg ();
17717 /* The GNU C library defines this for functions which it implements
17718 to always fail with ENOSYS. Some functions are actually named
17719 something starting with __ and the normal name is an alias. */
17720 #if defined __stub_getloadavg || defined __stub___getloadavg
17721 choke me
17722 #endif
17725 main ()
17727 return getloadavg ();
17729 return 0;
17731 _ACEOF
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (ac_try="$ac_link"
17734 case "(($ac_try" in
17735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736 *) ac_try_echo=$ac_try;;
17737 esac
17738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17739 $as_echo "$ac_try_echo") >&5
17740 (eval "$ac_link") 2>conftest.er1
17741 ac_status=$?
17742 grep -v '^ *+' conftest.er1 >conftest.err
17743 rm -f conftest.er1
17744 cat conftest.err >&5
17745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } && {
17747 test -z "$ac_c_werror_flag" ||
17748 test ! -s conftest.err
17749 } && test -s conftest$ac_exeext && {
17750 test "$cross_compiling" = yes ||
17751 $as_test_x conftest$ac_exeext
17752 }; then
17753 ac_cv_func_getloadavg=yes
17754 else
17755 $as_echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17758 ac_cv_func_getloadavg=no
17761 rm -rf conftest.dSYM
17762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17763 conftest$ac_exeext conftest.$ac_ext
17765 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17766 $as_echo "$ac_cv_func_getloadavg" >&6; }
17767 if test $ac_cv_func_getloadavg = yes; then
17768 exit 0
17769 else
17770 exit 1
17772 ) && ac_have_func=yes
17774 # On HPUX9, an unprivileged user can get load averages through this function.
17776 for ac_func in pstat_getdynamic
17778 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17779 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17780 $as_echo_n "checking for $ac_func... " >&6; }
17781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17782 $as_echo_n "(cached) " >&6
17783 else
17784 cat >conftest.$ac_ext <<_ACEOF
17785 /* confdefs.h. */
17786 _ACEOF
17787 cat confdefs.h >>conftest.$ac_ext
17788 cat >>conftest.$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17792 #define $ac_func innocuous_$ac_func
17794 /* System header to define __stub macros and hopefully few prototypes,
17795 which can conflict with char $ac_func (); below.
17796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17797 <limits.h> exists even on freestanding compilers. */
17799 #ifdef __STDC__
17800 # include <limits.h>
17801 #else
17802 # include <assert.h>
17803 #endif
17805 #undef $ac_func
17807 /* Override any GCC internal prototype to avoid an error.
17808 Use char because int might match the return type of a GCC
17809 builtin and then its argument prototype would still apply. */
17810 #ifdef __cplusplus
17811 extern "C"
17812 #endif
17813 char $ac_func ();
17814 /* The GNU C library defines this for functions which it implements
17815 to always fail with ENOSYS. Some functions are actually named
17816 something starting with __ and the normal name is an alias. */
17817 #if defined __stub_$ac_func || defined __stub___$ac_func
17818 choke me
17819 #endif
17822 main ()
17824 return $ac_func ();
17826 return 0;
17828 _ACEOF
17829 rm -f conftest.$ac_objext conftest$ac_exeext
17830 if { (ac_try="$ac_link"
17831 case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17834 esac
17835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17836 $as_echo "$ac_try_echo") >&5
17837 (eval "$ac_link") 2>conftest.er1
17838 ac_status=$?
17839 grep -v '^ *+' conftest.er1 >conftest.err
17840 rm -f conftest.er1
17841 cat conftest.err >&5
17842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } && {
17844 test -z "$ac_c_werror_flag" ||
17845 test ! -s conftest.err
17846 } && test -s conftest$ac_exeext && {
17847 test "$cross_compiling" = yes ||
17848 $as_test_x conftest$ac_exeext
17849 }; then
17850 eval "$as_ac_var=yes"
17851 else
17852 $as_echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17855 eval "$as_ac_var=no"
17858 rm -rf conftest.dSYM
17859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17860 conftest$ac_exeext conftest.$ac_ext
17862 ac_res=`eval 'as_val=${'$as_ac_var'}
17863 $as_echo "$as_val"'`
17864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17865 $as_echo "$ac_res" >&6; }
17866 if test `eval 'as_val=${'$as_ac_var'}
17867 $as_echo "$as_val"'` = yes; then
17868 cat >>confdefs.h <<_ACEOF
17869 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17870 _ACEOF
17873 done
17876 # Solaris has libkstat which does not require root.
17878 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17879 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17880 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17881 $as_echo_n "(cached) " >&6
17882 else
17883 ac_check_lib_save_LIBS=$LIBS
17884 LIBS="-lkstat $LIBS"
17885 cat >conftest.$ac_ext <<_ACEOF
17886 /* confdefs.h. */
17887 _ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17892 /* Override any GCC internal prototype to avoid an error.
17893 Use char because int might match the return type of a GCC
17894 builtin and then its argument prototype would still apply. */
17895 #ifdef __cplusplus
17896 extern "C"
17897 #endif
17898 char kstat_open ();
17900 main ()
17902 return kstat_open ();
17904 return 0;
17906 _ACEOF
17907 rm -f conftest.$ac_objext conftest$ac_exeext
17908 if { (ac_try="$ac_link"
17909 case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17912 esac
17913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17914 $as_echo "$ac_try_echo") >&5
17915 (eval "$ac_link") 2>conftest.er1
17916 ac_status=$?
17917 grep -v '^ *+' conftest.er1 >conftest.err
17918 rm -f conftest.er1
17919 cat conftest.err >&5
17920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } && {
17922 test -z "$ac_c_werror_flag" ||
17923 test ! -s conftest.err
17924 } && test -s conftest$ac_exeext && {
17925 test "$cross_compiling" = yes ||
17926 $as_test_x conftest$ac_exeext
17927 }; then
17928 ac_cv_lib_kstat_kstat_open=yes
17929 else
17930 $as_echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17933 ac_cv_lib_kstat_kstat_open=no
17936 rm -rf conftest.dSYM
17937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17938 conftest$ac_exeext conftest.$ac_ext
17939 LIBS=$ac_check_lib_save_LIBS
17941 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17942 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
17943 if test $ac_cv_lib_kstat_kstat_open = yes; then
17944 cat >>confdefs.h <<_ACEOF
17945 #define HAVE_LIBKSTAT 1
17946 _ACEOF
17948 LIBS="-lkstat $LIBS"
17952 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17954 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17955 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17956 # to get the right answer into the cache.
17957 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17958 if test $ac_have_func = no; then
17959 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17960 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
17961 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17962 $as_echo_n "(cached) " >&6
17963 else
17964 ac_check_lib_save_LIBS=$LIBS
17965 LIBS="-lelf $LIBS"
17966 cat >conftest.$ac_ext <<_ACEOF
17967 /* confdefs.h. */
17968 _ACEOF
17969 cat confdefs.h >>conftest.$ac_ext
17970 cat >>conftest.$ac_ext <<_ACEOF
17971 /* end confdefs.h. */
17973 /* Override any GCC internal prototype to avoid an error.
17974 Use char because int might match the return type of a GCC
17975 builtin and then its argument prototype would still apply. */
17976 #ifdef __cplusplus
17977 extern "C"
17978 #endif
17979 char elf_begin ();
17981 main ()
17983 return elf_begin ();
17985 return 0;
17987 _ACEOF
17988 rm -f conftest.$ac_objext conftest$ac_exeext
17989 if { (ac_try="$ac_link"
17990 case "(($ac_try" in
17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17993 esac
17994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17995 $as_echo "$ac_try_echo") >&5
17996 (eval "$ac_link") 2>conftest.er1
17997 ac_status=$?
17998 grep -v '^ *+' conftest.er1 >conftest.err
17999 rm -f conftest.er1
18000 cat conftest.err >&5
18001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } && {
18003 test -z "$ac_c_werror_flag" ||
18004 test ! -s conftest.err
18005 } && test -s conftest$ac_exeext && {
18006 test "$cross_compiling" = yes ||
18007 $as_test_x conftest$ac_exeext
18008 }; then
18009 ac_cv_lib_elf_elf_begin=yes
18010 else
18011 $as_echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18014 ac_cv_lib_elf_elf_begin=no
18017 rm -rf conftest.dSYM
18018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18019 conftest$ac_exeext conftest.$ac_ext
18020 LIBS=$ac_check_lib_save_LIBS
18022 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18023 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18024 if test $ac_cv_lib_elf_elf_begin = yes; then
18025 LIBS="-lelf $LIBS"
18029 if test $ac_have_func = no; then
18030 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18031 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18032 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18033 $as_echo_n "(cached) " >&6
18034 else
18035 ac_check_lib_save_LIBS=$LIBS
18036 LIBS="-lkvm $LIBS"
18037 cat >conftest.$ac_ext <<_ACEOF
18038 /* confdefs.h. */
18039 _ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18044 /* Override any GCC internal prototype to avoid an error.
18045 Use char because int might match the return type of a GCC
18046 builtin and then its argument prototype would still apply. */
18047 #ifdef __cplusplus
18048 extern "C"
18049 #endif
18050 char kvm_open ();
18052 main ()
18054 return kvm_open ();
18056 return 0;
18058 _ACEOF
18059 rm -f conftest.$ac_objext conftest$ac_exeext
18060 if { (ac_try="$ac_link"
18061 case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18064 esac
18065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18066 $as_echo "$ac_try_echo") >&5
18067 (eval "$ac_link") 2>conftest.er1
18068 ac_status=$?
18069 grep -v '^ *+' conftest.er1 >conftest.err
18070 rm -f conftest.er1
18071 cat conftest.err >&5
18072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } && {
18074 test -z "$ac_c_werror_flag" ||
18075 test ! -s conftest.err
18076 } && test -s conftest$ac_exeext && {
18077 test "$cross_compiling" = yes ||
18078 $as_test_x conftest$ac_exeext
18079 }; then
18080 ac_cv_lib_kvm_kvm_open=yes
18081 else
18082 $as_echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18085 ac_cv_lib_kvm_kvm_open=no
18088 rm -rf conftest.dSYM
18089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18090 conftest$ac_exeext conftest.$ac_ext
18091 LIBS=$ac_check_lib_save_LIBS
18093 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18094 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18095 if test $ac_cv_lib_kvm_kvm_open = yes; then
18096 LIBS="-lkvm $LIBS"
18099 # Check for the 4.4BSD definition of getloadavg.
18100 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18101 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18102 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18103 $as_echo_n "(cached) " >&6
18104 else
18105 ac_check_lib_save_LIBS=$LIBS
18106 LIBS="-lutil $LIBS"
18107 cat >conftest.$ac_ext <<_ACEOF
18108 /* confdefs.h. */
18109 _ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18114 /* Override any GCC internal prototype to avoid an error.
18115 Use char because int might match the return type of a GCC
18116 builtin and then its argument prototype would still apply. */
18117 #ifdef __cplusplus
18118 extern "C"
18119 #endif
18120 char getloadavg ();
18122 main ()
18124 return getloadavg ();
18126 return 0;
18128 _ACEOF
18129 rm -f conftest.$ac_objext conftest$ac_exeext
18130 if { (ac_try="$ac_link"
18131 case "(($ac_try" in
18132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18133 *) ac_try_echo=$ac_try;;
18134 esac
18135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18136 $as_echo "$ac_try_echo") >&5
18137 (eval "$ac_link") 2>conftest.er1
18138 ac_status=$?
18139 grep -v '^ *+' conftest.er1 >conftest.err
18140 rm -f conftest.er1
18141 cat conftest.err >&5
18142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); } && {
18144 test -z "$ac_c_werror_flag" ||
18145 test ! -s conftest.err
18146 } && test -s conftest$ac_exeext && {
18147 test "$cross_compiling" = yes ||
18148 $as_test_x conftest$ac_exeext
18149 }; then
18150 ac_cv_lib_util_getloadavg=yes
18151 else
18152 $as_echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.$ac_ext >&5
18155 ac_cv_lib_util_getloadavg=no
18158 rm -rf conftest.dSYM
18159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18160 conftest$ac_exeext conftest.$ac_ext
18161 LIBS=$ac_check_lib_save_LIBS
18163 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18164 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18165 if test $ac_cv_lib_util_getloadavg = yes; then
18166 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18171 if test $ac_have_func = no; then
18172 # There is a commonly available library for RS/6000 AIX.
18173 # Since it is not a standard part of AIX, it might be installed locally.
18174 ac_getloadavg_LIBS=$LIBS
18175 LIBS="-L/usr/local/lib $LIBS"
18176 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18177 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18178 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18179 $as_echo_n "(cached) " >&6
18180 else
18181 ac_check_lib_save_LIBS=$LIBS
18182 LIBS="-lgetloadavg $LIBS"
18183 cat >conftest.$ac_ext <<_ACEOF
18184 /* confdefs.h. */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18190 /* Override any GCC internal prototype to avoid an error.
18191 Use char because int might match the return type of a GCC
18192 builtin and then its argument prototype would still apply. */
18193 #ifdef __cplusplus
18194 extern "C"
18195 #endif
18196 char getloadavg ();
18198 main ()
18200 return getloadavg ();
18202 return 0;
18204 _ACEOF
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (ac_try="$ac_link"
18207 case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18210 esac
18211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18212 $as_echo "$ac_try_echo") >&5
18213 (eval "$ac_link") 2>conftest.er1
18214 ac_status=$?
18215 grep -v '^ *+' conftest.er1 >conftest.err
18216 rm -f conftest.er1
18217 cat conftest.err >&5
18218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } && {
18220 test -z "$ac_c_werror_flag" ||
18221 test ! -s conftest.err
18222 } && test -s conftest$ac_exeext && {
18223 test "$cross_compiling" = yes ||
18224 $as_test_x conftest$ac_exeext
18225 }; then
18226 ac_cv_lib_getloadavg_getloadavg=yes
18227 else
18228 $as_echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.$ac_ext >&5
18231 ac_cv_lib_getloadavg_getloadavg=no
18234 rm -rf conftest.dSYM
18235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18236 conftest$ac_exeext conftest.$ac_ext
18237 LIBS=$ac_check_lib_save_LIBS
18239 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18240 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18241 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18242 LIBS="-lgetloadavg $LIBS"
18243 else
18244 LIBS=$ac_getloadavg_LIBS
18249 # Make sure it is really in the library, if we think we found it,
18250 # otherwise set up the replacement function.
18252 for ac_func in getloadavg
18254 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18255 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18256 $as_echo_n "checking for $ac_func... " >&6; }
18257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18258 $as_echo_n "(cached) " >&6
18259 else
18260 cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h. */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18268 #define $ac_func innocuous_$ac_func
18270 /* System header to define __stub macros and hopefully few prototypes,
18271 which can conflict with char $ac_func (); below.
18272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18273 <limits.h> exists even on freestanding compilers. */
18275 #ifdef __STDC__
18276 # include <limits.h>
18277 #else
18278 # include <assert.h>
18279 #endif
18281 #undef $ac_func
18283 /* Override any GCC internal prototype to avoid an error.
18284 Use char because int might match the return type of a GCC
18285 builtin and then its argument prototype would still apply. */
18286 #ifdef __cplusplus
18287 extern "C"
18288 #endif
18289 char $ac_func ();
18290 /* The GNU C library defines this for functions which it implements
18291 to always fail with ENOSYS. Some functions are actually named
18292 something starting with __ and the normal name is an alias. */
18293 #if defined __stub_$ac_func || defined __stub___$ac_func
18294 choke me
18295 #endif
18298 main ()
18300 return $ac_func ();
18302 return 0;
18304 _ACEOF
18305 rm -f conftest.$ac_objext conftest$ac_exeext
18306 if { (ac_try="$ac_link"
18307 case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18310 esac
18311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18312 $as_echo "$ac_try_echo") >&5
18313 (eval "$ac_link") 2>conftest.er1
18314 ac_status=$?
18315 grep -v '^ *+' conftest.er1 >conftest.err
18316 rm -f conftest.er1
18317 cat conftest.err >&5
18318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } && {
18320 test -z "$ac_c_werror_flag" ||
18321 test ! -s conftest.err
18322 } && test -s conftest$ac_exeext && {
18323 test "$cross_compiling" = yes ||
18324 $as_test_x conftest$ac_exeext
18325 }; then
18326 eval "$as_ac_var=yes"
18327 else
18328 $as_echo "$as_me: failed program was:" >&5
18329 sed 's/^/| /' conftest.$ac_ext >&5
18331 eval "$as_ac_var=no"
18334 rm -rf conftest.dSYM
18335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18336 conftest$ac_exeext conftest.$ac_ext
18338 ac_res=`eval 'as_val=${'$as_ac_var'}
18339 $as_echo "$as_val"'`
18340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18341 $as_echo "$ac_res" >&6; }
18342 if test `eval 'as_val=${'$as_ac_var'}
18343 $as_echo "$as_val"'` = yes; then
18344 cat >>confdefs.h <<_ACEOF
18345 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18346 _ACEOF
18348 else
18349 case " $LIBOBJS " in
18350 *" getloadavg.$ac_objext "* ) ;;
18351 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18353 esac
18356 cat >>confdefs.h <<\_ACEOF
18357 #define C_GETLOADAVG 1
18358 _ACEOF
18360 # Figure out what our getloadavg.c needs.
18361 ac_have_func=no
18362 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18363 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18364 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18365 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18366 $as_echo_n "(cached) " >&6
18368 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18369 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18370 else
18371 # Is the header compilable?
18372 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18373 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18374 cat >conftest.$ac_ext <<_ACEOF
18375 /* confdefs.h. */
18376 _ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18380 $ac_includes_default
18381 #include <sys/dg_sys_info.h>
18382 _ACEOF
18383 rm -f conftest.$ac_objext
18384 if { (ac_try="$ac_compile"
18385 case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18388 esac
18389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18390 $as_echo "$ac_try_echo") >&5
18391 (eval "$ac_compile") 2>conftest.er1
18392 ac_status=$?
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
18396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } && {
18398 test -z "$ac_c_werror_flag" ||
18399 test ! -s conftest.err
18400 } && test -s conftest.$ac_objext; then
18401 ac_header_compiler=yes
18402 else
18403 $as_echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18406 ac_header_compiler=no
18409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18410 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18411 $as_echo "$ac_header_compiler" >&6; }
18413 # Is the header present?
18414 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18415 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18416 cat >conftest.$ac_ext <<_ACEOF
18417 /* confdefs.h. */
18418 _ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18422 #include <sys/dg_sys_info.h>
18423 _ACEOF
18424 if { (ac_try="$ac_cpp conftest.$ac_ext"
18425 case "(($ac_try" in
18426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427 *) ac_try_echo=$ac_try;;
18428 esac
18429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18430 $as_echo "$ac_try_echo") >&5
18431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18432 ac_status=$?
18433 grep -v '^ *+' conftest.er1 >conftest.err
18434 rm -f conftest.er1
18435 cat conftest.err >&5
18436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } >/dev/null && {
18438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18439 test ! -s conftest.err
18440 }; then
18441 ac_header_preproc=yes
18442 else
18443 $as_echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18446 ac_header_preproc=no
18449 rm -f conftest.err conftest.$ac_ext
18450 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18451 $as_echo "$ac_header_preproc" >&6; }
18453 # So? What about this header?
18454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18455 yes:no: )
18456 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18457 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18458 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18459 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18460 ac_header_preproc=yes
18462 no:yes:* )
18463 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18464 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18465 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18466 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18467 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18468 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18469 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18470 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18471 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18472 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18473 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18474 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18477 esac
18478 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18479 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18480 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18481 $as_echo_n "(cached) " >&6
18482 else
18483 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18485 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18486 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18489 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18490 ac_have_func=yes
18492 cat >>confdefs.h <<\_ACEOF
18493 #define DGUX 1
18494 _ACEOF
18497 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18498 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18499 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18500 $as_echo_n "(cached) " >&6
18501 else
18502 ac_check_lib_save_LIBS=$LIBS
18503 LIBS="-ldgc $LIBS"
18504 cat >conftest.$ac_ext <<_ACEOF
18505 /* confdefs.h. */
18506 _ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h. */
18511 /* Override any GCC internal prototype to avoid an error.
18512 Use char because int might match the return type of a GCC
18513 builtin and then its argument prototype would still apply. */
18514 #ifdef __cplusplus
18515 extern "C"
18516 #endif
18517 char dg_sys_info ();
18519 main ()
18521 return dg_sys_info ();
18523 return 0;
18525 _ACEOF
18526 rm -f conftest.$ac_objext conftest$ac_exeext
18527 if { (ac_try="$ac_link"
18528 case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531 esac
18532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18533 $as_echo "$ac_try_echo") >&5
18534 (eval "$ac_link") 2>conftest.er1
18535 ac_status=$?
18536 grep -v '^ *+' conftest.er1 >conftest.err
18537 rm -f conftest.er1
18538 cat conftest.err >&5
18539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } && {
18541 test -z "$ac_c_werror_flag" ||
18542 test ! -s conftest.err
18543 } && test -s conftest$ac_exeext && {
18544 test "$cross_compiling" = yes ||
18545 $as_test_x conftest$ac_exeext
18546 }; then
18547 ac_cv_lib_dgc_dg_sys_info=yes
18548 else
18549 $as_echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18552 ac_cv_lib_dgc_dg_sys_info=no
18555 rm -rf conftest.dSYM
18556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18557 conftest$ac_exeext conftest.$ac_ext
18558 LIBS=$ac_check_lib_save_LIBS
18560 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18561 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18562 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18563 cat >>confdefs.h <<_ACEOF
18564 #define HAVE_LIBDGC 1
18565 _ACEOF
18567 LIBS="-ldgc $LIBS"
18575 if test "${ac_cv_header_locale_h+set}" = set; then
18576 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18577 $as_echo_n "checking for locale.h... " >&6; }
18578 if test "${ac_cv_header_locale_h+set}" = set; then
18579 $as_echo_n "(cached) " >&6
18581 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18582 $as_echo "$ac_cv_header_locale_h" >&6; }
18583 else
18584 # Is the header compilable?
18585 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18586 $as_echo_n "checking locale.h usability... " >&6; }
18587 cat >conftest.$ac_ext <<_ACEOF
18588 /* confdefs.h. */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18593 $ac_includes_default
18594 #include <locale.h>
18595 _ACEOF
18596 rm -f conftest.$ac_objext
18597 if { (ac_try="$ac_compile"
18598 case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18601 esac
18602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18603 $as_echo "$ac_try_echo") >&5
18604 (eval "$ac_compile") 2>conftest.er1
18605 ac_status=$?
18606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
18609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } && {
18611 test -z "$ac_c_werror_flag" ||
18612 test ! -s conftest.err
18613 } && test -s conftest.$ac_objext; then
18614 ac_header_compiler=yes
18615 else
18616 $as_echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18619 ac_header_compiler=no
18622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18623 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18624 $as_echo "$ac_header_compiler" >&6; }
18626 # Is the header present?
18627 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18628 $as_echo_n "checking locale.h presence... " >&6; }
18629 cat >conftest.$ac_ext <<_ACEOF
18630 /* confdefs.h. */
18631 _ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18635 #include <locale.h>
18636 _ACEOF
18637 if { (ac_try="$ac_cpp conftest.$ac_ext"
18638 case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18641 esac
18642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18643 $as_echo "$ac_try_echo") >&5
18644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18645 ac_status=$?
18646 grep -v '^ *+' conftest.er1 >conftest.err
18647 rm -f conftest.er1
18648 cat conftest.err >&5
18649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); } >/dev/null && {
18651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18652 test ! -s conftest.err
18653 }; then
18654 ac_header_preproc=yes
18655 else
18656 $as_echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.$ac_ext >&5
18659 ac_header_preproc=no
18662 rm -f conftest.err conftest.$ac_ext
18663 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18664 $as_echo "$ac_header_preproc" >&6; }
18666 # So? What about this header?
18667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18668 yes:no: )
18669 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18670 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18671 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18672 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18673 ac_header_preproc=yes
18675 no:yes:* )
18676 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18677 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18678 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18679 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18680 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18681 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18682 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18683 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18684 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18685 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18686 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18687 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18690 esac
18691 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18692 $as_echo_n "checking for locale.h... " >&6; }
18693 if test "${ac_cv_header_locale_h+set}" = set; then
18694 $as_echo_n "(cached) " >&6
18695 else
18696 ac_cv_header_locale_h=$ac_header_preproc
18698 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18699 $as_echo "$ac_cv_header_locale_h" >&6; }
18705 for ac_func in setlocale
18707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18708 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18709 $as_echo_n "checking for $ac_func... " >&6; }
18710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18711 $as_echo_n "(cached) " >&6
18712 else
18713 cat >conftest.$ac_ext <<_ACEOF
18714 /* confdefs.h. */
18715 _ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h. */
18719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18721 #define $ac_func innocuous_$ac_func
18723 /* System header to define __stub macros and hopefully few prototypes,
18724 which can conflict with char $ac_func (); below.
18725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18726 <limits.h> exists even on freestanding compilers. */
18728 #ifdef __STDC__
18729 # include <limits.h>
18730 #else
18731 # include <assert.h>
18732 #endif
18734 #undef $ac_func
18736 /* Override any GCC internal prototype to avoid an error.
18737 Use char because int might match the return type of a GCC
18738 builtin and then its argument prototype would still apply. */
18739 #ifdef __cplusplus
18740 extern "C"
18741 #endif
18742 char $ac_func ();
18743 /* The GNU C library defines this for functions which it implements
18744 to always fail with ENOSYS. Some functions are actually named
18745 something starting with __ and the normal name is an alias. */
18746 #if defined __stub_$ac_func || defined __stub___$ac_func
18747 choke me
18748 #endif
18751 main ()
18753 return $ac_func ();
18755 return 0;
18757 _ACEOF
18758 rm -f conftest.$ac_objext conftest$ac_exeext
18759 if { (ac_try="$ac_link"
18760 case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763 esac
18764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18765 $as_echo "$ac_try_echo") >&5
18766 (eval "$ac_link") 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest$ac_exeext && {
18776 test "$cross_compiling" = yes ||
18777 $as_test_x conftest$ac_exeext
18778 }; then
18779 eval "$as_ac_var=yes"
18780 else
18781 $as_echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 eval "$as_ac_var=no"
18787 rm -rf conftest.dSYM
18788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18789 conftest$ac_exeext conftest.$ac_ext
18791 ac_res=`eval 'as_val=${'$as_ac_var'}
18792 $as_echo "$as_val"'`
18793 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18794 $as_echo "$ac_res" >&6; }
18795 if test `eval 'as_val=${'$as_ac_var'}
18796 $as_echo "$as_val"'` = yes; then
18797 cat >>confdefs.h <<_ACEOF
18798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18799 _ACEOF
18802 done
18805 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18806 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18807 # Irix 4.0.5F has the header but not the library.
18808 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18809 ac_have_func=yes
18811 cat >>confdefs.h <<\_ACEOF
18812 #define SVR4 1
18813 _ACEOF
18817 if test $ac_have_func = no; then
18818 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18819 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18820 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18821 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18822 $as_echo_n "(cached) " >&6
18824 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18825 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18826 else
18827 # Is the header compilable?
18828 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18829 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
18830 cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h. */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18836 $ac_includes_default
18837 #include <inq_stats/cpustats.h>
18838 _ACEOF
18839 rm -f conftest.$ac_objext
18840 if { (ac_try="$ac_compile"
18841 case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18844 esac
18845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18846 $as_echo "$ac_try_echo") >&5
18847 (eval "$ac_compile") 2>conftest.er1
18848 ac_status=$?
18849 grep -v '^ *+' conftest.er1 >conftest.err
18850 rm -f conftest.er1
18851 cat conftest.err >&5
18852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } && {
18854 test -z "$ac_c_werror_flag" ||
18855 test ! -s conftest.err
18856 } && test -s conftest.$ac_objext; then
18857 ac_header_compiler=yes
18858 else
18859 $as_echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 ac_header_compiler=no
18865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18866 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18867 $as_echo "$ac_header_compiler" >&6; }
18869 # Is the header present?
18870 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18871 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
18872 cat >conftest.$ac_ext <<_ACEOF
18873 /* confdefs.h. */
18874 _ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18878 #include <inq_stats/cpustats.h>
18879 _ACEOF
18880 if { (ac_try="$ac_cpp conftest.$ac_ext"
18881 case "(($ac_try" in
18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18884 esac
18885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18886 $as_echo "$ac_try_echo") >&5
18887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18888 ac_status=$?
18889 grep -v '^ *+' conftest.er1 >conftest.err
18890 rm -f conftest.er1
18891 cat conftest.err >&5
18892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } >/dev/null && {
18894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18895 test ! -s conftest.err
18896 }; then
18897 ac_header_preproc=yes
18898 else
18899 $as_echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18902 ac_header_preproc=no
18905 rm -f conftest.err conftest.$ac_ext
18906 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18907 $as_echo "$ac_header_preproc" >&6; }
18909 # So? What about this header?
18910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18911 yes:no: )
18912 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18913 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18914 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18915 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18916 ac_header_preproc=yes
18918 no:yes:* )
18919 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18920 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18921 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18922 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18923 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18924 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18925 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18926 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18927 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18928 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18929 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18930 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18933 esac
18934 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18935 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18936 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18937 $as_echo_n "(cached) " >&6
18938 else
18939 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18941 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18942 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18945 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18946 ac_have_func=yes
18948 cat >>confdefs.h <<\_ACEOF
18949 #define UMAX 1
18950 _ACEOF
18953 cat >>confdefs.h <<\_ACEOF
18954 #define UMAX4_3 1
18955 _ACEOF
18962 if test $ac_have_func = no; then
18963 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18964 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18965 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18966 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18967 $as_echo_n "(cached) " >&6
18969 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18970 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18971 else
18972 # Is the header compilable?
18973 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18974 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
18975 cat >conftest.$ac_ext <<_ACEOF
18976 /* confdefs.h. */
18977 _ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18981 $ac_includes_default
18982 #include <sys/cpustats.h>
18983 _ACEOF
18984 rm -f conftest.$ac_objext
18985 if { (ac_try="$ac_compile"
18986 case "(($ac_try" in
18987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18989 esac
18990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18991 $as_echo "$ac_try_echo") >&5
18992 (eval "$ac_compile") 2>conftest.er1
18993 ac_status=$?
18994 grep -v '^ *+' conftest.er1 >conftest.err
18995 rm -f conftest.er1
18996 cat conftest.err >&5
18997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } && {
18999 test -z "$ac_c_werror_flag" ||
19000 test ! -s conftest.err
19001 } && test -s conftest.$ac_objext; then
19002 ac_header_compiler=yes
19003 else
19004 $as_echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19007 ac_header_compiler=no
19010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19011 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19012 $as_echo "$ac_header_compiler" >&6; }
19014 # Is the header present?
19015 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19016 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19017 cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h. */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 #include <sys/cpustats.h>
19024 _ACEOF
19025 if { (ac_try="$ac_cpp conftest.$ac_ext"
19026 case "(($ac_try" in
19027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028 *) ac_try_echo=$ac_try;;
19029 esac
19030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19031 $as_echo "$ac_try_echo") >&5
19032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19033 ac_status=$?
19034 grep -v '^ *+' conftest.er1 >conftest.err
19035 rm -f conftest.er1
19036 cat conftest.err >&5
19037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } >/dev/null && {
19039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19040 test ! -s conftest.err
19041 }; then
19042 ac_header_preproc=yes
19043 else
19044 $as_echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ac_header_preproc=no
19050 rm -f conftest.err conftest.$ac_ext
19051 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19052 $as_echo "$ac_header_preproc" >&6; }
19054 # So? What about this header?
19055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19056 yes:no: )
19057 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19058 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19059 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19060 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19061 ac_header_preproc=yes
19063 no:yes:* )
19064 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19065 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19066 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19067 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19068 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19069 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19070 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19071 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19072 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19073 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19074 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19075 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19078 esac
19079 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19080 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19081 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19082 $as_echo_n "(cached) " >&6
19083 else
19084 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19086 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19087 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19090 if test $ac_cv_header_sys_cpustats_h = yes; then
19091 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19092 #define UMAX 1
19093 _ACEOF
19100 if test $ac_have_func = no; then
19102 for ac_header in mach/mach.h
19104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19106 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19107 $as_echo_n "checking for $ac_header... " >&6; }
19108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19109 $as_echo_n "(cached) " >&6
19111 ac_res=`eval 'as_val=${'$as_ac_Header'}
19112 $as_echo "$as_val"'`
19113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19114 $as_echo "$ac_res" >&6; }
19115 else
19116 # Is the header compilable?
19117 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19118 $as_echo_n "checking $ac_header usability... " >&6; }
19119 cat >conftest.$ac_ext <<_ACEOF
19120 /* confdefs.h. */
19121 _ACEOF
19122 cat confdefs.h >>conftest.$ac_ext
19123 cat >>conftest.$ac_ext <<_ACEOF
19124 /* end confdefs.h. */
19125 $ac_includes_default
19126 #include <$ac_header>
19127 _ACEOF
19128 rm -f conftest.$ac_objext
19129 if { (ac_try="$ac_compile"
19130 case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19133 esac
19134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19135 $as_echo "$ac_try_echo") >&5
19136 (eval "$ac_compile") 2>conftest.er1
19137 ac_status=$?
19138 grep -v '^ *+' conftest.er1 >conftest.err
19139 rm -f conftest.er1
19140 cat conftest.err >&5
19141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } && {
19143 test -z "$ac_c_werror_flag" ||
19144 test ! -s conftest.err
19145 } && test -s conftest.$ac_objext; then
19146 ac_header_compiler=yes
19147 else
19148 $as_echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19151 ac_header_compiler=no
19154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19155 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19156 $as_echo "$ac_header_compiler" >&6; }
19158 # Is the header present?
19159 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19160 $as_echo_n "checking $ac_header presence... " >&6; }
19161 cat >conftest.$ac_ext <<_ACEOF
19162 /* confdefs.h. */
19163 _ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h. */
19167 #include <$ac_header>
19168 _ACEOF
19169 if { (ac_try="$ac_cpp conftest.$ac_ext"
19170 case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19173 esac
19174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19175 $as_echo "$ac_try_echo") >&5
19176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19177 ac_status=$?
19178 grep -v '^ *+' conftest.er1 >conftest.err
19179 rm -f conftest.er1
19180 cat conftest.err >&5
19181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } >/dev/null && {
19183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19184 test ! -s conftest.err
19185 }; then
19186 ac_header_preproc=yes
19187 else
19188 $as_echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 ac_header_preproc=no
19194 rm -f conftest.err conftest.$ac_ext
19195 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19196 $as_echo "$ac_header_preproc" >&6; }
19198 # So? What about this header?
19199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19200 yes:no: )
19201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19202 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19204 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19205 ac_header_preproc=yes
19207 no:yes:* )
19208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19209 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19211 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19213 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19215 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19217 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19219 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19222 esac
19223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19224 $as_echo_n "checking for $ac_header... " >&6; }
19225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19226 $as_echo_n "(cached) " >&6
19227 else
19228 eval "$as_ac_Header=\$ac_header_preproc"
19230 ac_res=`eval 'as_val=${'$as_ac_Header'}
19231 $as_echo "$as_val"'`
19232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19233 $as_echo "$ac_res" >&6; }
19236 if test `eval 'as_val=${'$as_ac_Header'}
19237 $as_echo "$as_val"'` = yes; then
19238 cat >>confdefs.h <<_ACEOF
19239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19240 _ACEOF
19244 done
19249 for ac_header in nlist.h
19251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19253 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19254 $as_echo_n "checking for $ac_header... " >&6; }
19255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19256 $as_echo_n "(cached) " >&6
19258 ac_res=`eval 'as_val=${'$as_ac_Header'}
19259 $as_echo "$as_val"'`
19260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19261 $as_echo "$ac_res" >&6; }
19262 else
19263 # Is the header compilable?
19264 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19265 $as_echo_n "checking $ac_header usability... " >&6; }
19266 cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h. */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19272 $ac_includes_default
19273 #include <$ac_header>
19274 _ACEOF
19275 rm -f conftest.$ac_objext
19276 if { (ac_try="$ac_compile"
19277 case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19280 esac
19281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19282 $as_echo "$ac_try_echo") >&5
19283 (eval "$ac_compile") 2>conftest.er1
19284 ac_status=$?
19285 grep -v '^ *+' conftest.er1 >conftest.err
19286 rm -f conftest.er1
19287 cat conftest.err >&5
19288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } && {
19290 test -z "$ac_c_werror_flag" ||
19291 test ! -s conftest.err
19292 } && test -s conftest.$ac_objext; then
19293 ac_header_compiler=yes
19294 else
19295 $as_echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19298 ac_header_compiler=no
19301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19302 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19303 $as_echo "$ac_header_compiler" >&6; }
19305 # Is the header present?
19306 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19307 $as_echo_n "checking $ac_header presence... " >&6; }
19308 cat >conftest.$ac_ext <<_ACEOF
19309 /* confdefs.h. */
19310 _ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h. */
19314 #include <$ac_header>
19315 _ACEOF
19316 if { (ac_try="$ac_cpp conftest.$ac_ext"
19317 case "(($ac_try" in
19318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19319 *) ac_try_echo=$ac_try;;
19320 esac
19321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19322 $as_echo "$ac_try_echo") >&5
19323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19324 ac_status=$?
19325 grep -v '^ *+' conftest.er1 >conftest.err
19326 rm -f conftest.er1
19327 cat conftest.err >&5
19328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } >/dev/null && {
19330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19331 test ! -s conftest.err
19332 }; then
19333 ac_header_preproc=yes
19334 else
19335 $as_echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19338 ac_header_preproc=no
19341 rm -f conftest.err conftest.$ac_ext
19342 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19343 $as_echo "$ac_header_preproc" >&6; }
19345 # So? What about this header?
19346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19347 yes:no: )
19348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19349 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19352 ac_header_preproc=yes
19354 no:yes:* )
19355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19356 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19358 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19360 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19362 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19364 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19366 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19369 esac
19370 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19371 $as_echo_n "checking for $ac_header... " >&6; }
19372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19373 $as_echo_n "(cached) " >&6
19374 else
19375 eval "$as_ac_Header=\$ac_header_preproc"
19377 ac_res=`eval 'as_val=${'$as_ac_Header'}
19378 $as_echo "$as_val"'`
19379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19380 $as_echo "$ac_res" >&6; }
19383 if test `eval 'as_val=${'$as_ac_Header'}
19384 $as_echo "$as_val"'` = yes; then
19385 cat >>confdefs.h <<_ACEOF
19386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19387 _ACEOF
19388 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19389 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19390 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19391 $as_echo_n "(cached) " >&6
19392 else
19393 cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h. */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19399 #include <nlist.h>
19402 main ()
19404 static struct nlist ac_aggr;
19405 if (ac_aggr.n_un.n_name)
19406 return 0;
19408 return 0;
19410 _ACEOF
19411 rm -f conftest.$ac_objext
19412 if { (ac_try="$ac_compile"
19413 case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19416 esac
19417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19418 $as_echo "$ac_try_echo") >&5
19419 (eval "$ac_compile") 2>conftest.er1
19420 ac_status=$?
19421 grep -v '^ *+' conftest.er1 >conftest.err
19422 rm -f conftest.er1
19423 cat conftest.err >&5
19424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } && {
19426 test -z "$ac_c_werror_flag" ||
19427 test ! -s conftest.err
19428 } && test -s conftest.$ac_objext; then
19429 ac_cv_member_struct_nlist_n_un_n_name=yes
19430 else
19431 $as_echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19434 cat >conftest.$ac_ext <<_ACEOF
19435 /* confdefs.h. */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19440 #include <nlist.h>
19443 main ()
19445 static struct nlist ac_aggr;
19446 if (sizeof ac_aggr.n_un.n_name)
19447 return 0;
19449 return 0;
19451 _ACEOF
19452 rm -f conftest.$ac_objext
19453 if { (ac_try="$ac_compile"
19454 case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19457 esac
19458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19459 $as_echo "$ac_try_echo") >&5
19460 (eval "$ac_compile") 2>conftest.er1
19461 ac_status=$?
19462 grep -v '^ *+' conftest.er1 >conftest.err
19463 rm -f conftest.er1
19464 cat conftest.err >&5
19465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } && {
19467 test -z "$ac_c_werror_flag" ||
19468 test ! -s conftest.err
19469 } && test -s conftest.$ac_objext; then
19470 ac_cv_member_struct_nlist_n_un_n_name=yes
19471 else
19472 $as_echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.$ac_ext >&5
19475 ac_cv_member_struct_nlist_n_un_n_name=no
19478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19483 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19484 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19485 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19487 cat >>confdefs.h <<_ACEOF
19488 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19489 _ACEOF
19492 cat >>confdefs.h <<\_ACEOF
19493 #define NLIST_NAME_UNION 1
19494 _ACEOF
19501 done
19504 done
19507 # Some definitions of getloadavg require that the program be installed setgid.
19508 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19509 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19510 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19511 $as_echo_n "(cached) " >&6
19512 else
19513 cat >conftest.$ac_ext <<_ACEOF
19514 /* confdefs.h. */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h. */
19519 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19520 #ifdef LDAV_PRIVILEGED
19521 Yowza Am I SETGID yet
19522 #endif
19523 _ACEOF
19524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19525 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19526 ac_cv_func_getloadavg_setgid=yes
19527 else
19528 ac_cv_func_getloadavg_setgid=no
19530 rm -f conftest*
19533 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19534 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19535 if test $ac_cv_func_getloadavg_setgid = yes; then
19536 NEED_SETGID=true
19538 cat >>confdefs.h <<\_ACEOF
19539 #define GETLOADAVG_PRIVILEGED 1
19540 _ACEOF
19542 else
19543 NEED_SETGID=false
19546 if test $ac_cv_func_getloadavg_setgid = yes; then
19547 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19548 $as_echo_n "checking group of /dev/kmem... " >&6; }
19549 if test "${ac_cv_group_kmem+set}" = set; then
19550 $as_echo_n "(cached) " >&6
19551 else
19552 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19553 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19554 # If we got an error (system does not support symlinks), try without -L.
19555 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19556 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19557 | sed -ne 's/[ ][ ]*/ /g;
19558 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19559 / /s/.* //;p;'`
19562 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19563 $as_echo "$ac_cv_group_kmem" >&6; }
19564 KMEM_GROUP=$ac_cv_group_kmem
19566 if test "x$ac_save_LIBS" = x; then
19567 GETLOADAVG_LIBS=$LIBS
19568 else
19569 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
19571 LIBS=$ac_save_LIBS
19575 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19576 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19577 if test "${ac_cv_sys_largefile_source+set}" = set; then
19578 $as_echo_n "(cached) " >&6
19579 else
19580 while :; do
19581 cat >conftest.$ac_ext <<_ACEOF
19582 /* confdefs.h. */
19583 _ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h. */
19587 #include <sys/types.h> /* for off_t */
19588 #include <stdio.h>
19590 main ()
19592 int (*fp) (FILE *, off_t, int) = fseeko;
19593 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19595 return 0;
19597 _ACEOF
19598 rm -f conftest.$ac_objext conftest$ac_exeext
19599 if { (ac_try="$ac_link"
19600 case "(($ac_try" in
19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19603 esac
19604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19605 $as_echo "$ac_try_echo") >&5
19606 (eval "$ac_link") 2>conftest.er1
19607 ac_status=$?
19608 grep -v '^ *+' conftest.er1 >conftest.err
19609 rm -f conftest.er1
19610 cat conftest.err >&5
19611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); } && {
19613 test -z "$ac_c_werror_flag" ||
19614 test ! -s conftest.err
19615 } && test -s conftest$ac_exeext && {
19616 test "$cross_compiling" = yes ||
19617 $as_test_x conftest$ac_exeext
19618 }; then
19619 ac_cv_sys_largefile_source=no; break
19620 else
19621 $as_echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19627 rm -rf conftest.dSYM
19628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19629 conftest$ac_exeext conftest.$ac_ext
19630 cat >conftest.$ac_ext <<_ACEOF
19631 /* confdefs.h. */
19632 _ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19636 #define _LARGEFILE_SOURCE 1
19637 #include <sys/types.h> /* for off_t */
19638 #include <stdio.h>
19640 main ()
19642 int (*fp) (FILE *, off_t, int) = fseeko;
19643 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19645 return 0;
19647 _ACEOF
19648 rm -f conftest.$ac_objext conftest$ac_exeext
19649 if { (ac_try="$ac_link"
19650 case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19653 esac
19654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19655 $as_echo "$ac_try_echo") >&5
19656 (eval "$ac_link") 2>conftest.er1
19657 ac_status=$?
19658 grep -v '^ *+' conftest.er1 >conftest.err
19659 rm -f conftest.er1
19660 cat conftest.err >&5
19661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } && {
19663 test -z "$ac_c_werror_flag" ||
19664 test ! -s conftest.err
19665 } && test -s conftest$ac_exeext && {
19666 test "$cross_compiling" = yes ||
19667 $as_test_x conftest$ac_exeext
19668 }; then
19669 ac_cv_sys_largefile_source=1; break
19670 else
19671 $as_echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19677 rm -rf conftest.dSYM
19678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19679 conftest$ac_exeext conftest.$ac_ext
19680 ac_cv_sys_largefile_source=unknown
19681 break
19682 done
19684 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19685 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19686 case $ac_cv_sys_largefile_source in #(
19687 no | unknown) ;;
19689 cat >>confdefs.h <<_ACEOF
19690 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19691 _ACEOF
19693 esac
19694 rm -rf conftest*
19696 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19697 # in glibc 2.1.3, but that breaks too many other things.
19698 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19699 if test $ac_cv_sys_largefile_source != unknown; then
19701 cat >>confdefs.h <<\_ACEOF
19702 #define HAVE_FSEEKO 1
19703 _ACEOF
19708 # Configure getopt.
19709 # getopt.m4 serial 10
19711 # The getopt module assume you want GNU getopt, with getopt_long etc,
19712 # rather than vanilla POSIX getopt. This means your your code should
19713 # always include <getopt.h> for the getopt prototypes.
19725 # Prerequisites of lib/getopt*.
19730 GETOPT_H=
19732 for ac_header in getopt.h
19734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19736 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19737 $as_echo_n "checking for $ac_header... " >&6; }
19738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19739 $as_echo_n "(cached) " >&6
19741 ac_res=`eval 'as_val=${'$as_ac_Header'}
19742 $as_echo "$as_val"'`
19743 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19744 $as_echo "$ac_res" >&6; }
19745 else
19746 # Is the header compilable?
19747 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19748 $as_echo_n "checking $ac_header usability... " >&6; }
19749 cat >conftest.$ac_ext <<_ACEOF
19750 /* confdefs.h. */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19755 $ac_includes_default
19756 #include <$ac_header>
19757 _ACEOF
19758 rm -f conftest.$ac_objext
19759 if { (ac_try="$ac_compile"
19760 case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19763 esac
19764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19765 $as_echo "$ac_try_echo") >&5
19766 (eval "$ac_compile") 2>conftest.er1
19767 ac_status=$?
19768 grep -v '^ *+' conftest.er1 >conftest.err
19769 rm -f conftest.er1
19770 cat conftest.err >&5
19771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } && {
19773 test -z "$ac_c_werror_flag" ||
19774 test ! -s conftest.err
19775 } && test -s conftest.$ac_objext; then
19776 ac_header_compiler=yes
19777 else
19778 $as_echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.$ac_ext >&5
19781 ac_header_compiler=no
19784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19785 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19786 $as_echo "$ac_header_compiler" >&6; }
19788 # Is the header present?
19789 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19790 $as_echo_n "checking $ac_header presence... " >&6; }
19791 cat >conftest.$ac_ext <<_ACEOF
19792 /* confdefs.h. */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19797 #include <$ac_header>
19798 _ACEOF
19799 if { (ac_try="$ac_cpp conftest.$ac_ext"
19800 case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803 esac
19804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19805 $as_echo "$ac_try_echo") >&5
19806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19807 ac_status=$?
19808 grep -v '^ *+' conftest.er1 >conftest.err
19809 rm -f conftest.er1
19810 cat conftest.err >&5
19811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } >/dev/null && {
19813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19814 test ! -s conftest.err
19815 }; then
19816 ac_header_preproc=yes
19817 else
19818 $as_echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19821 ac_header_preproc=no
19824 rm -f conftest.err conftest.$ac_ext
19825 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19826 $as_echo "$ac_header_preproc" >&6; }
19828 # So? What about this header?
19829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19830 yes:no: )
19831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19832 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19834 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19835 ac_header_preproc=yes
19837 no:yes:* )
19838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19839 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19841 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19843 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19845 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19847 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19849 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19852 esac
19853 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19854 $as_echo_n "checking for $ac_header... " >&6; }
19855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19856 $as_echo_n "(cached) " >&6
19857 else
19858 eval "$as_ac_Header=\$ac_header_preproc"
19860 ac_res=`eval 'as_val=${'$as_ac_Header'}
19861 $as_echo "$as_val"'`
19862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19863 $as_echo "$ac_res" >&6; }
19866 if test `eval 'as_val=${'$as_ac_Header'}
19867 $as_echo "$as_val"'` = yes; then
19868 cat >>confdefs.h <<_ACEOF
19869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19870 _ACEOF
19872 else
19873 GETOPT_H=getopt.h
19876 done
19878 if test -z "$GETOPT_H"; then
19880 for ac_func in getopt_long_only
19882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19883 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19884 $as_echo_n "checking for $ac_func... " >&6; }
19885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19886 $as_echo_n "(cached) " >&6
19887 else
19888 cat >conftest.$ac_ext <<_ACEOF
19889 /* confdefs.h. */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19896 #define $ac_func innocuous_$ac_func
19898 /* System header to define __stub macros and hopefully few prototypes,
19899 which can conflict with char $ac_func (); below.
19900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19901 <limits.h> exists even on freestanding compilers. */
19903 #ifdef __STDC__
19904 # include <limits.h>
19905 #else
19906 # include <assert.h>
19907 #endif
19909 #undef $ac_func
19911 /* Override any GCC internal prototype to avoid an error.
19912 Use char because int might match the return type of a GCC
19913 builtin and then its argument prototype would still apply. */
19914 #ifdef __cplusplus
19915 extern "C"
19916 #endif
19917 char $ac_func ();
19918 /* The GNU C library defines this for functions which it implements
19919 to always fail with ENOSYS. Some functions are actually named
19920 something starting with __ and the normal name is an alias. */
19921 #if defined __stub_$ac_func || defined __stub___$ac_func
19922 choke me
19923 #endif
19926 main ()
19928 return $ac_func ();
19930 return 0;
19932 _ACEOF
19933 rm -f conftest.$ac_objext conftest$ac_exeext
19934 if { (ac_try="$ac_link"
19935 case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19938 esac
19939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19940 $as_echo "$ac_try_echo") >&5
19941 (eval "$ac_link") 2>conftest.er1
19942 ac_status=$?
19943 grep -v '^ *+' conftest.er1 >conftest.err
19944 rm -f conftest.er1
19945 cat conftest.err >&5
19946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } && {
19948 test -z "$ac_c_werror_flag" ||
19949 test ! -s conftest.err
19950 } && test -s conftest$ac_exeext && {
19951 test "$cross_compiling" = yes ||
19952 $as_test_x conftest$ac_exeext
19953 }; then
19954 eval "$as_ac_var=yes"
19955 else
19956 $as_echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19959 eval "$as_ac_var=no"
19962 rm -rf conftest.dSYM
19963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19964 conftest$ac_exeext conftest.$ac_ext
19966 ac_res=`eval 'as_val=${'$as_ac_var'}
19967 $as_echo "$as_val"'`
19968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19969 $as_echo "$ac_res" >&6; }
19970 if test `eval 'as_val=${'$as_ac_var'}
19971 $as_echo "$as_val"'` = yes; then
19972 cat >>confdefs.h <<_ACEOF
19973 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19974 _ACEOF
19976 else
19977 GETOPT_H=getopt.h
19979 done
19983 if test -z "$GETOPT_H"; then
19984 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19985 $as_echo_n "checking whether optreset is declared... " >&6; }
19986 if test "${ac_cv_have_decl_optreset+set}" = set; then
19987 $as_echo_n "(cached) " >&6
19988 else
19989 cat >conftest.$ac_ext <<_ACEOF
19990 /* confdefs.h. */
19991 _ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19995 #include <getopt.h>
19998 main ()
20000 #ifndef optreset
20001 (void) optreset;
20002 #endif
20005 return 0;
20007 _ACEOF
20008 rm -f conftest.$ac_objext
20009 if { (ac_try="$ac_compile"
20010 case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20013 esac
20014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20015 $as_echo "$ac_try_echo") >&5
20016 (eval "$ac_compile") 2>conftest.er1
20017 ac_status=$?
20018 grep -v '^ *+' conftest.er1 >conftest.err
20019 rm -f conftest.er1
20020 cat conftest.err >&5
20021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } && {
20023 test -z "$ac_c_werror_flag" ||
20024 test ! -s conftest.err
20025 } && test -s conftest.$ac_objext; then
20026 ac_cv_have_decl_optreset=yes
20027 else
20028 $as_echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 ac_cv_have_decl_optreset=no
20034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20036 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20037 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20038 if test $ac_cv_have_decl_optreset = yes; then
20039 GETOPT_H=getopt.h
20044 if test -z "$GETOPT_H"; then
20045 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20046 $as_echo_n "checking for working GNU getopt function... " >&6; }
20047 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20048 $as_echo_n "(cached) " >&6
20049 else
20050 if test "$cross_compiling" = yes; then
20051 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20052 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20053 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20054 $as_echo_n "(cached) " >&6
20055 else
20056 cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h. */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20062 #include <getopt.h>
20065 main ()
20067 #ifndef getopt_clip
20068 (void) getopt_clip;
20069 #endif
20072 return 0;
20074 _ACEOF
20075 rm -f conftest.$ac_objext
20076 if { (ac_try="$ac_compile"
20077 case "(($ac_try" in
20078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079 *) ac_try_echo=$ac_try;;
20080 esac
20081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20082 $as_echo "$ac_try_echo") >&5
20083 (eval "$ac_compile") 2>conftest.er1
20084 ac_status=$?
20085 grep -v '^ *+' conftest.er1 >conftest.err
20086 rm -f conftest.er1
20087 cat conftest.err >&5
20088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } && {
20090 test -z "$ac_c_werror_flag" ||
20091 test ! -s conftest.err
20092 } && test -s conftest.$ac_objext; then
20093 ac_cv_have_decl_getopt_clip=yes
20094 else
20095 $as_echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20098 ac_cv_have_decl_getopt_clip=no
20101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20103 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20104 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20105 if test $ac_cv_have_decl_getopt_clip = yes; then
20106 gl_cv_func_gnu_getopt=no
20107 else
20108 gl_cv_func_gnu_getopt=yes
20111 else
20112 cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h. */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 #include <getopt.h>
20120 main ()
20123 char *myargv[3];
20124 myargv[0] = "conftest";
20125 myargv[1] = "-+";
20126 myargv[2] = 0;
20127 return getopt (2, myargv, "+a") != '?';
20130 return 0;
20132 _ACEOF
20133 rm -f conftest$ac_exeext
20134 if { (ac_try="$ac_link"
20135 case "(($ac_try" in
20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20138 esac
20139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20140 $as_echo "$ac_try_echo") >&5
20141 (eval "$ac_link") 2>&5
20142 ac_status=$?
20143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20145 { (case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20148 esac
20149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20150 $as_echo "$ac_try_echo") >&5
20151 (eval "$ac_try") 2>&5
20152 ac_status=$?
20153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 gl_cv_func_gnu_getopt=yes
20156 else
20157 $as_echo "$as_me: program exited with status $ac_status" >&5
20158 $as_echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20161 ( exit $ac_status )
20162 gl_cv_func_gnu_getopt=no
20164 rm -rf conftest.dSYM
20165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20170 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20171 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20172 if test "$gl_cv_func_gnu_getopt" = "no"; then
20173 GETOPT_H=getopt.h
20179 if test -n "$GETOPT_H"; then
20182 GETOPT_H=getopt.h
20184 cat >>confdefs.h <<\_ACEOF
20185 #define __GETOPT_PREFIX rpl_
20186 _ACEOF
20191 GETOPTOBJS='getopt.o getopt1.o'
20198 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20199 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20200 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20201 $as_echo_n "(cached) " >&6
20202 else
20203 # Use it with a single arg.
20204 cat >conftest.$ac_ext <<_ACEOF
20205 /* confdefs.h. */
20206 _ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h. */
20210 $ac_includes_default
20212 main ()
20214 getpgrp (0);
20216 return 0;
20218 _ACEOF
20219 rm -f conftest.$ac_objext
20220 if { (ac_try="$ac_compile"
20221 case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224 esac
20225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20226 $as_echo "$ac_try_echo") >&5
20227 (eval "$ac_compile") 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } && {
20234 test -z "$ac_c_werror_flag" ||
20235 test ! -s conftest.err
20236 } && test -s conftest.$ac_objext; then
20237 ac_cv_func_getpgrp_void=no
20238 else
20239 $as_echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20242 ac_cv_func_getpgrp_void=yes
20245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20249 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20250 if test $ac_cv_func_getpgrp_void = yes; then
20252 cat >>confdefs.h <<\_ACEOF
20253 #define GETPGRP_VOID 1
20254 _ACEOF
20260 for ac_func in strftime
20262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20263 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20264 $as_echo_n "checking for $ac_func... " >&6; }
20265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20266 $as_echo_n "(cached) " >&6
20267 else
20268 cat >conftest.$ac_ext <<_ACEOF
20269 /* confdefs.h. */
20270 _ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h. */
20274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20276 #define $ac_func innocuous_$ac_func
20278 /* System header to define __stub macros and hopefully few prototypes,
20279 which can conflict with char $ac_func (); below.
20280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20281 <limits.h> exists even on freestanding compilers. */
20283 #ifdef __STDC__
20284 # include <limits.h>
20285 #else
20286 # include <assert.h>
20287 #endif
20289 #undef $ac_func
20291 /* Override any GCC internal prototype to avoid an error.
20292 Use char because int might match the return type of a GCC
20293 builtin and then its argument prototype would still apply. */
20294 #ifdef __cplusplus
20295 extern "C"
20296 #endif
20297 char $ac_func ();
20298 /* The GNU C library defines this for functions which it implements
20299 to always fail with ENOSYS. Some functions are actually named
20300 something starting with __ and the normal name is an alias. */
20301 #if defined __stub_$ac_func || defined __stub___$ac_func
20302 choke me
20303 #endif
20306 main ()
20308 return $ac_func ();
20310 return 0;
20312 _ACEOF
20313 rm -f conftest.$ac_objext conftest$ac_exeext
20314 if { (ac_try="$ac_link"
20315 case "(($ac_try" in
20316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317 *) ac_try_echo=$ac_try;;
20318 esac
20319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20320 $as_echo "$ac_try_echo") >&5
20321 (eval "$ac_link") 2>conftest.er1
20322 ac_status=$?
20323 grep -v '^ *+' conftest.er1 >conftest.err
20324 rm -f conftest.er1
20325 cat conftest.err >&5
20326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && {
20328 test -z "$ac_c_werror_flag" ||
20329 test ! -s conftest.err
20330 } && test -s conftest$ac_exeext && {
20331 test "$cross_compiling" = yes ||
20332 $as_test_x conftest$ac_exeext
20333 }; then
20334 eval "$as_ac_var=yes"
20335 else
20336 $as_echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20339 eval "$as_ac_var=no"
20342 rm -rf conftest.dSYM
20343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20344 conftest$ac_exeext conftest.$ac_ext
20346 ac_res=`eval 'as_val=${'$as_ac_var'}
20347 $as_echo "$as_val"'`
20348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20349 $as_echo "$ac_res" >&6; }
20350 if test `eval 'as_val=${'$as_ac_var'}
20351 $as_echo "$as_val"'` = yes; then
20352 cat >>confdefs.h <<_ACEOF
20353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20354 _ACEOF
20356 else
20357 # strftime is in -lintl on SCO UNIX.
20358 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20359 $as_echo_n "checking for strftime in -lintl... " >&6; }
20360 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20361 $as_echo_n "(cached) " >&6
20362 else
20363 ac_check_lib_save_LIBS=$LIBS
20364 LIBS="-lintl $LIBS"
20365 cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h. */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20372 /* Override any GCC internal prototype to avoid an error.
20373 Use char because int might match the return type of a GCC
20374 builtin and then its argument prototype would still apply. */
20375 #ifdef __cplusplus
20376 extern "C"
20377 #endif
20378 char strftime ();
20380 main ()
20382 return strftime ();
20384 return 0;
20386 _ACEOF
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (ac_try="$ac_link"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20392 esac
20393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20394 $as_echo "$ac_try_echo") >&5
20395 (eval "$ac_link") 2>conftest.er1
20396 ac_status=$?
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
20400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } && {
20402 test -z "$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 } && test -s conftest$ac_exeext && {
20405 test "$cross_compiling" = yes ||
20406 $as_test_x conftest$ac_exeext
20407 }; then
20408 ac_cv_lib_intl_strftime=yes
20409 else
20410 $as_echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20413 ac_cv_lib_intl_strftime=no
20416 rm -rf conftest.dSYM
20417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20418 conftest$ac_exeext conftest.$ac_ext
20419 LIBS=$ac_check_lib_save_LIBS
20421 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20422 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20423 if test $ac_cv_lib_intl_strftime = yes; then
20424 cat >>confdefs.h <<\_ACEOF
20425 #define HAVE_STRFTIME 1
20426 _ACEOF
20428 LIBS="-lintl $LIBS"
20432 done
20435 # UNIX98 PTYs.
20437 for ac_func in grantpt
20439 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20440 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20441 $as_echo_n "checking for $ac_func... " >&6; }
20442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20443 $as_echo_n "(cached) " >&6
20444 else
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h. */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20453 #define $ac_func innocuous_$ac_func
20455 /* System header to define __stub macros and hopefully few prototypes,
20456 which can conflict with char $ac_func (); below.
20457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20458 <limits.h> exists even on freestanding compilers. */
20460 #ifdef __STDC__
20461 # include <limits.h>
20462 #else
20463 # include <assert.h>
20464 #endif
20466 #undef $ac_func
20468 /* Override any GCC internal prototype to avoid an error.
20469 Use char because int might match the return type of a GCC
20470 builtin and then its argument prototype would still apply. */
20471 #ifdef __cplusplus
20472 extern "C"
20473 #endif
20474 char $ac_func ();
20475 /* The GNU C library defines this for functions which it implements
20476 to always fail with ENOSYS. Some functions are actually named
20477 something starting with __ and the normal name is an alias. */
20478 #if defined __stub_$ac_func || defined __stub___$ac_func
20479 choke me
20480 #endif
20483 main ()
20485 return $ac_func ();
20487 return 0;
20489 _ACEOF
20490 rm -f conftest.$ac_objext conftest$ac_exeext
20491 if { (ac_try="$ac_link"
20492 case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20495 esac
20496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20497 $as_echo "$ac_try_echo") >&5
20498 (eval "$ac_link") 2>conftest.er1
20499 ac_status=$?
20500 grep -v '^ *+' conftest.er1 >conftest.err
20501 rm -f conftest.er1
20502 cat conftest.err >&5
20503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } && {
20505 test -z "$ac_c_werror_flag" ||
20506 test ! -s conftest.err
20507 } && test -s conftest$ac_exeext && {
20508 test "$cross_compiling" = yes ||
20509 $as_test_x conftest$ac_exeext
20510 }; then
20511 eval "$as_ac_var=yes"
20512 else
20513 $as_echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20516 eval "$as_ac_var=no"
20519 rm -rf conftest.dSYM
20520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20521 conftest$ac_exeext conftest.$ac_ext
20523 ac_res=`eval 'as_val=${'$as_ac_var'}
20524 $as_echo "$as_val"'`
20525 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20526 $as_echo "$ac_res" >&6; }
20527 if test `eval 'as_val=${'$as_ac_var'}
20528 $as_echo "$as_val"'` = yes; then
20529 cat >>confdefs.h <<_ACEOF
20530 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20531 _ACEOF
20534 done
20537 # PTY-related GNU extensions.
20539 for ac_func in getpt
20541 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20542 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20543 $as_echo_n "checking for $ac_func... " >&6; }
20544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20545 $as_echo_n "(cached) " >&6
20546 else
20547 cat >conftest.$ac_ext <<_ACEOF
20548 /* confdefs.h. */
20549 _ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20555 #define $ac_func innocuous_$ac_func
20557 /* System header to define __stub macros and hopefully few prototypes,
20558 which can conflict with char $ac_func (); below.
20559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20560 <limits.h> exists even on freestanding compilers. */
20562 #ifdef __STDC__
20563 # include <limits.h>
20564 #else
20565 # include <assert.h>
20566 #endif
20568 #undef $ac_func
20570 /* Override any GCC internal prototype to avoid an error.
20571 Use char because int might match the return type of a GCC
20572 builtin and then its argument prototype would still apply. */
20573 #ifdef __cplusplus
20574 extern "C"
20575 #endif
20576 char $ac_func ();
20577 /* The GNU C library defines this for functions which it implements
20578 to always fail with ENOSYS. Some functions are actually named
20579 something starting with __ and the normal name is an alias. */
20580 #if defined __stub_$ac_func || defined __stub___$ac_func
20581 choke me
20582 #endif
20585 main ()
20587 return $ac_func ();
20589 return 0;
20591 _ACEOF
20592 rm -f conftest.$ac_objext conftest$ac_exeext
20593 if { (ac_try="$ac_link"
20594 case "(($ac_try" in
20595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596 *) ac_try_echo=$ac_try;;
20597 esac
20598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20599 $as_echo "$ac_try_echo") >&5
20600 (eval "$ac_link") 2>conftest.er1
20601 ac_status=$?
20602 grep -v '^ *+' conftest.er1 >conftest.err
20603 rm -f conftest.er1
20604 cat conftest.err >&5
20605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } && {
20607 test -z "$ac_c_werror_flag" ||
20608 test ! -s conftest.err
20609 } && test -s conftest$ac_exeext && {
20610 test "$cross_compiling" = yes ||
20611 $as_test_x conftest$ac_exeext
20612 }; then
20613 eval "$as_ac_var=yes"
20614 else
20615 $as_echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20618 eval "$as_ac_var=no"
20621 rm -rf conftest.dSYM
20622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20623 conftest$ac_exeext conftest.$ac_ext
20625 ac_res=`eval 'as_val=${'$as_ac_var'}
20626 $as_echo "$as_val"'`
20627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20628 $as_echo "$ac_res" >&6; }
20629 if test `eval 'as_val=${'$as_ac_var'}
20630 $as_echo "$as_val"'` = yes; then
20631 cat >>confdefs.h <<_ACEOF
20632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20633 _ACEOF
20636 done
20639 # Check this now, so that we will NOT find the above functions in ncurses.
20640 # That is because we have not set up to link ncurses in lib-src.
20641 # It's better to believe a function is not available
20642 # than to expect to find it in ncurses.
20644 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20645 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20646 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20647 $as_echo_n "(cached) " >&6
20648 else
20649 ac_check_lib_save_LIBS=$LIBS
20650 LIBS="-lncurses $LIBS"
20651 cat >conftest.$ac_ext <<_ACEOF
20652 /* confdefs.h. */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20658 /* Override any GCC internal prototype to avoid an error.
20659 Use char because int might match the return type of a GCC
20660 builtin and then its argument prototype would still apply. */
20661 #ifdef __cplusplus
20662 extern "C"
20663 #endif
20664 char tparm ();
20666 main ()
20668 return tparm ();
20670 return 0;
20672 _ACEOF
20673 rm -f conftest.$ac_objext conftest$ac_exeext
20674 if { (ac_try="$ac_link"
20675 case "(($ac_try" in
20676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20677 *) ac_try_echo=$ac_try;;
20678 esac
20679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20680 $as_echo "$ac_try_echo") >&5
20681 (eval "$ac_link") 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } && {
20688 test -z "$ac_c_werror_flag" ||
20689 test ! -s conftest.err
20690 } && test -s conftest$ac_exeext && {
20691 test "$cross_compiling" = yes ||
20692 $as_test_x conftest$ac_exeext
20693 }; then
20694 ac_cv_lib_ncurses_tparm=yes
20695 else
20696 $as_echo "$as_me: failed program was:" >&5
20697 sed 's/^/| /' conftest.$ac_ext >&5
20699 ac_cv_lib_ncurses_tparm=no
20702 rm -rf conftest.dSYM
20703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20704 conftest$ac_exeext conftest.$ac_ext
20705 LIBS=$ac_check_lib_save_LIBS
20707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20708 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20709 if test $ac_cv_lib_ncurses_tparm = yes; then
20710 cat >>confdefs.h <<_ACEOF
20711 #define HAVE_LIBNCURSES 1
20712 _ACEOF
20714 LIBS="-lncurses $LIBS"
20719 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20721 resolv=no
20722 cat >conftest.$ac_ext <<_ACEOF
20723 /* confdefs.h. */
20724 _ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h. */
20728 #include <netinet/in.h>
20729 #include <arpa/nameser.h>
20730 #include <resolv.h>
20732 main ()
20734 return res_init();
20736 return 0;
20738 _ACEOF
20739 rm -f conftest.$ac_objext conftest$ac_exeext
20740 if { (ac_try="$ac_link"
20741 case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20744 esac
20745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20746 $as_echo "$ac_try_echo") >&5
20747 (eval "$ac_link") 2>conftest.er1
20748 ac_status=$?
20749 grep -v '^ *+' conftest.er1 >conftest.err
20750 rm -f conftest.er1
20751 cat conftest.err >&5
20752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); } && {
20754 test -z "$ac_c_werror_flag" ||
20755 test ! -s conftest.err
20756 } && test -s conftest$ac_exeext && {
20757 test "$cross_compiling" = yes ||
20758 $as_test_x conftest$ac_exeext
20759 }; then
20760 have_res_init=yes
20761 else
20762 $as_echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 have_res_init=no
20768 rm -rf conftest.dSYM
20769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20770 conftest$ac_exeext conftest.$ac_ext
20771 if test "$have_res_init" = no; then
20772 OLIBS="$LIBS"
20773 LIBS="$LIBS -lresolv"
20774 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20775 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20776 cat >conftest.$ac_ext <<_ACEOF
20777 /* confdefs.h. */
20778 _ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20782 #include <netinet/in.h>
20783 #include <arpa/nameser.h>
20784 #include <resolv.h>
20786 main ()
20788 return res_init();
20790 return 0;
20792 _ACEOF
20793 rm -f conftest.$ac_objext conftest$ac_exeext
20794 if { (ac_try="$ac_link"
20795 case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20798 esac
20799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20800 $as_echo "$ac_try_echo") >&5
20801 (eval "$ac_link") 2>conftest.er1
20802 ac_status=$?
20803 grep -v '^ *+' conftest.er1 >conftest.err
20804 rm -f conftest.er1
20805 cat conftest.err >&5
20806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } && {
20808 test -z "$ac_c_werror_flag" ||
20809 test ! -s conftest.err
20810 } && test -s conftest$ac_exeext && {
20811 test "$cross_compiling" = yes ||
20812 $as_test_x conftest$ac_exeext
20813 }; then
20814 have_res_init=yes
20815 else
20816 $as_echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20819 have_res_init=no
20822 rm -rf conftest.dSYM
20823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20824 conftest$ac_exeext conftest.$ac_ext
20825 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
20826 $as_echo "$have_res_init" >&6; }
20827 if test "$have_res_init" = yes ; then
20828 resolv=yes
20830 LIBS="$OLIBS"
20833 if test "$have_res_init" = yes; then
20835 cat >>confdefs.h <<\_ACEOF
20836 #define HAVE_RES_INIT 1
20837 _ACEOF
20841 # Do we need the Hesiod library to provide the support routines?
20842 if test "$with_hesiod" != no ; then
20843 # Don't set $LIBS here -- see comments above.
20844 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
20845 $as_echo_n "checking for res_send... " >&6; }
20846 if test "${ac_cv_func_res_send+set}" = set; then
20847 $as_echo_n "(cached) " >&6
20848 else
20849 cat >conftest.$ac_ext <<_ACEOF
20850 /* confdefs.h. */
20851 _ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20857 #define res_send innocuous_res_send
20859 /* System header to define __stub macros and hopefully few prototypes,
20860 which can conflict with char res_send (); below.
20861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20862 <limits.h> exists even on freestanding compilers. */
20864 #ifdef __STDC__
20865 # include <limits.h>
20866 #else
20867 # include <assert.h>
20868 #endif
20870 #undef res_send
20872 /* Override any GCC internal prototype to avoid an error.
20873 Use char because int might match the return type of a GCC
20874 builtin and then its argument prototype would still apply. */
20875 #ifdef __cplusplus
20876 extern "C"
20877 #endif
20878 char res_send ();
20879 /* The GNU C library defines this for functions which it implements
20880 to always fail with ENOSYS. Some functions are actually named
20881 something starting with __ and the normal name is an alias. */
20882 #if defined __stub_res_send || defined __stub___res_send
20883 choke me
20884 #endif
20887 main ()
20889 return res_send ();
20891 return 0;
20893 _ACEOF
20894 rm -f conftest.$ac_objext conftest$ac_exeext
20895 if { (ac_try="$ac_link"
20896 case "(($ac_try" in
20897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898 *) ac_try_echo=$ac_try;;
20899 esac
20900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20901 $as_echo "$ac_try_echo") >&5
20902 (eval "$ac_link") 2>conftest.er1
20903 ac_status=$?
20904 grep -v '^ *+' conftest.er1 >conftest.err
20905 rm -f conftest.er1
20906 cat conftest.err >&5
20907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } && {
20909 test -z "$ac_c_werror_flag" ||
20910 test ! -s conftest.err
20911 } && test -s conftest$ac_exeext && {
20912 test "$cross_compiling" = yes ||
20913 $as_test_x conftest$ac_exeext
20914 }; then
20915 ac_cv_func_res_send=yes
20916 else
20917 $as_echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20920 ac_cv_func_res_send=no
20923 rm -rf conftest.dSYM
20924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20925 conftest$ac_exeext conftest.$ac_ext
20927 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20928 $as_echo "$ac_cv_func_res_send" >&6; }
20929 if test $ac_cv_func_res_send = yes; then
20931 else
20932 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
20933 $as_echo_n "checking for __res_send... " >&6; }
20934 if test "${ac_cv_func___res_send+set}" = set; then
20935 $as_echo_n "(cached) " >&6
20936 else
20937 cat >conftest.$ac_ext <<_ACEOF
20938 /* confdefs.h. */
20939 _ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h. */
20943 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20945 #define __res_send innocuous___res_send
20947 /* System header to define __stub macros and hopefully few prototypes,
20948 which can conflict with char __res_send (); below.
20949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20950 <limits.h> exists even on freestanding compilers. */
20952 #ifdef __STDC__
20953 # include <limits.h>
20954 #else
20955 # include <assert.h>
20956 #endif
20958 #undef __res_send
20960 /* Override any GCC internal prototype to avoid an error.
20961 Use char because int might match the return type of a GCC
20962 builtin and then its argument prototype would still apply. */
20963 #ifdef __cplusplus
20964 extern "C"
20965 #endif
20966 char __res_send ();
20967 /* The GNU C library defines this for functions which it implements
20968 to always fail with ENOSYS. Some functions are actually named
20969 something starting with __ and the normal name is an alias. */
20970 #if defined __stub___res_send || defined __stub_____res_send
20971 choke me
20972 #endif
20975 main ()
20977 return __res_send ();
20979 return 0;
20981 _ACEOF
20982 rm -f conftest.$ac_objext conftest$ac_exeext
20983 if { (ac_try="$ac_link"
20984 case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20987 esac
20988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20989 $as_echo "$ac_try_echo") >&5
20990 (eval "$ac_link") 2>conftest.er1
20991 ac_status=$?
20992 grep -v '^ *+' conftest.er1 >conftest.err
20993 rm -f conftest.er1
20994 cat conftest.err >&5
20995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } && {
20997 test -z "$ac_c_werror_flag" ||
20998 test ! -s conftest.err
20999 } && test -s conftest$ac_exeext && {
21000 test "$cross_compiling" = yes ||
21001 $as_test_x conftest$ac_exeext
21002 }; then
21003 ac_cv_func___res_send=yes
21004 else
21005 $as_echo "$as_me: failed program was:" >&5
21006 sed 's/^/| /' conftest.$ac_ext >&5
21008 ac_cv_func___res_send=no
21011 rm -rf conftest.dSYM
21012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21013 conftest$ac_exeext conftest.$ac_ext
21015 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21016 $as_echo "$ac_cv_func___res_send" >&6; }
21017 if test $ac_cv_func___res_send = yes; then
21019 else
21020 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21021 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21022 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21023 $as_echo_n "(cached) " >&6
21024 else
21025 ac_check_lib_save_LIBS=$LIBS
21026 LIBS="-lresolv $LIBS"
21027 cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h. */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21034 /* Override any GCC internal prototype to avoid an error.
21035 Use char because int might match the return type of a GCC
21036 builtin and then its argument prototype would still apply. */
21037 #ifdef __cplusplus
21038 extern "C"
21039 #endif
21040 char res_send ();
21042 main ()
21044 return res_send ();
21046 return 0;
21048 _ACEOF
21049 rm -f conftest.$ac_objext conftest$ac_exeext
21050 if { (ac_try="$ac_link"
21051 case "(($ac_try" in
21052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053 *) ac_try_echo=$ac_try;;
21054 esac
21055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21056 $as_echo "$ac_try_echo") >&5
21057 (eval "$ac_link") 2>conftest.er1
21058 ac_status=$?
21059 grep -v '^ *+' conftest.er1 >conftest.err
21060 rm -f conftest.er1
21061 cat conftest.err >&5
21062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } && {
21064 test -z "$ac_c_werror_flag" ||
21065 test ! -s conftest.err
21066 } && test -s conftest$ac_exeext && {
21067 test "$cross_compiling" = yes ||
21068 $as_test_x conftest$ac_exeext
21069 }; then
21070 ac_cv_lib_resolv_res_send=yes
21071 else
21072 $as_echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_cv_lib_resolv_res_send=no
21078 rm -rf conftest.dSYM
21079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21080 conftest$ac_exeext conftest.$ac_ext
21081 LIBS=$ac_check_lib_save_LIBS
21083 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21084 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21085 if test $ac_cv_lib_resolv_res_send = yes; then
21086 resolv=yes
21087 else
21088 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21089 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21090 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21091 $as_echo_n "(cached) " >&6
21092 else
21093 ac_check_lib_save_LIBS=$LIBS
21094 LIBS="-lresolv $LIBS"
21095 cat >conftest.$ac_ext <<_ACEOF
21096 /* confdefs.h. */
21097 _ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21102 /* Override any GCC internal prototype to avoid an error.
21103 Use char because int might match the return type of a GCC
21104 builtin and then its argument prototype would still apply. */
21105 #ifdef __cplusplus
21106 extern "C"
21107 #endif
21108 char __res_send ();
21110 main ()
21112 return __res_send ();
21114 return 0;
21116 _ACEOF
21117 rm -f conftest.$ac_objext conftest$ac_exeext
21118 if { (ac_try="$ac_link"
21119 case "(($ac_try" in
21120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121 *) ac_try_echo=$ac_try;;
21122 esac
21123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21124 $as_echo "$ac_try_echo") >&5
21125 (eval "$ac_link") 2>conftest.er1
21126 ac_status=$?
21127 grep -v '^ *+' conftest.er1 >conftest.err
21128 rm -f conftest.er1
21129 cat conftest.err >&5
21130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && {
21132 test -z "$ac_c_werror_flag" ||
21133 test ! -s conftest.err
21134 } && test -s conftest$ac_exeext && {
21135 test "$cross_compiling" = yes ||
21136 $as_test_x conftest$ac_exeext
21137 }; then
21138 ac_cv_lib_resolv___res_send=yes
21139 else
21140 $as_echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21143 ac_cv_lib_resolv___res_send=no
21146 rm -rf conftest.dSYM
21147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21148 conftest$ac_exeext conftest.$ac_ext
21149 LIBS=$ac_check_lib_save_LIBS
21151 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21152 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21153 if test $ac_cv_lib_resolv___res_send = yes; then
21154 resolv=yes
21163 if test "$resolv" = yes ; then
21164 RESOLVLIB=-lresolv
21165 else
21166 RESOLVLIB=
21168 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21169 $as_echo_n "checking for hes_getmailhost... " >&6; }
21170 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21171 $as_echo_n "(cached) " >&6
21172 else
21173 cat >conftest.$ac_ext <<_ACEOF
21174 /* confdefs.h. */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21179 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21181 #define hes_getmailhost innocuous_hes_getmailhost
21183 /* System header to define __stub macros and hopefully few prototypes,
21184 which can conflict with char hes_getmailhost (); below.
21185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21186 <limits.h> exists even on freestanding compilers. */
21188 #ifdef __STDC__
21189 # include <limits.h>
21190 #else
21191 # include <assert.h>
21192 #endif
21194 #undef hes_getmailhost
21196 /* Override any GCC internal prototype to avoid an error.
21197 Use char because int might match the return type of a GCC
21198 builtin and then its argument prototype would still apply. */
21199 #ifdef __cplusplus
21200 extern "C"
21201 #endif
21202 char hes_getmailhost ();
21203 /* The GNU C library defines this for functions which it implements
21204 to always fail with ENOSYS. Some functions are actually named
21205 something starting with __ and the normal name is an alias. */
21206 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21207 choke me
21208 #endif
21211 main ()
21213 return hes_getmailhost ();
21215 return 0;
21217 _ACEOF
21218 rm -f conftest.$ac_objext conftest$ac_exeext
21219 if { (ac_try="$ac_link"
21220 case "(($ac_try" in
21221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222 *) ac_try_echo=$ac_try;;
21223 esac
21224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21225 $as_echo "$ac_try_echo") >&5
21226 (eval "$ac_link") 2>conftest.er1
21227 ac_status=$?
21228 grep -v '^ *+' conftest.er1 >conftest.err
21229 rm -f conftest.er1
21230 cat conftest.err >&5
21231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } && {
21233 test -z "$ac_c_werror_flag" ||
21234 test ! -s conftest.err
21235 } && test -s conftest$ac_exeext && {
21236 test "$cross_compiling" = yes ||
21237 $as_test_x conftest$ac_exeext
21238 }; then
21239 ac_cv_func_hes_getmailhost=yes
21240 else
21241 $as_echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21244 ac_cv_func_hes_getmailhost=no
21247 rm -rf conftest.dSYM
21248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21249 conftest$ac_exeext conftest.$ac_ext
21251 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21252 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21253 if test $ac_cv_func_hes_getmailhost = yes; then
21255 else
21256 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21257 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21258 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21259 $as_echo_n "(cached) " >&6
21260 else
21261 ac_check_lib_save_LIBS=$LIBS
21262 LIBS="-lhesiod $RESOLVLIB $LIBS"
21263 cat >conftest.$ac_ext <<_ACEOF
21264 /* confdefs.h. */
21265 _ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21270 /* Override any GCC internal prototype to avoid an error.
21271 Use char because int might match the return type of a GCC
21272 builtin and then its argument prototype would still apply. */
21273 #ifdef __cplusplus
21274 extern "C"
21275 #endif
21276 char hes_getmailhost ();
21278 main ()
21280 return hes_getmailhost ();
21282 return 0;
21284 _ACEOF
21285 rm -f conftest.$ac_objext conftest$ac_exeext
21286 if { (ac_try="$ac_link"
21287 case "(($ac_try" in
21288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289 *) ac_try_echo=$ac_try;;
21290 esac
21291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21292 $as_echo "$ac_try_echo") >&5
21293 (eval "$ac_link") 2>conftest.er1
21294 ac_status=$?
21295 grep -v '^ *+' conftest.er1 >conftest.err
21296 rm -f conftest.er1
21297 cat conftest.err >&5
21298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); } && {
21300 test -z "$ac_c_werror_flag" ||
21301 test ! -s conftest.err
21302 } && test -s conftest$ac_exeext && {
21303 test "$cross_compiling" = yes ||
21304 $as_test_x conftest$ac_exeext
21305 }; then
21306 ac_cv_lib_hesiod_hes_getmailhost=yes
21307 else
21308 $as_echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ac_cv_lib_hesiod_hes_getmailhost=no
21314 rm -rf conftest.dSYM
21315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21316 conftest$ac_exeext conftest.$ac_ext
21317 LIBS=$ac_check_lib_save_LIBS
21319 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21320 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21321 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21323 cat >>confdefs.h <<\_ACEOF
21324 #define HAVE_LIBHESIOD 1
21325 _ACEOF
21327 else
21335 # Do we need libresolv (due to res_init or Hesiod)?
21336 if test "$resolv" = yes ; then
21338 cat >>confdefs.h <<\_ACEOF
21339 #define HAVE_LIBRESOLV 1
21340 _ACEOF
21344 # These tell us which Kerberos-related libraries to use.
21345 if test "${with_kerberos}" != no; then
21347 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21348 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21349 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21350 $as_echo_n "(cached) " >&6
21351 else
21352 ac_check_lib_save_LIBS=$LIBS
21353 LIBS="-lcom_err $LIBS"
21354 cat >conftest.$ac_ext <<_ACEOF
21355 /* confdefs.h. */
21356 _ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21361 /* Override any GCC internal prototype to avoid an error.
21362 Use char because int might match the return type of a GCC
21363 builtin and then its argument prototype would still apply. */
21364 #ifdef __cplusplus
21365 extern "C"
21366 #endif
21367 char com_err ();
21369 main ()
21371 return com_err ();
21373 return 0;
21375 _ACEOF
21376 rm -f conftest.$ac_objext conftest$ac_exeext
21377 if { (ac_try="$ac_link"
21378 case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21381 esac
21382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21383 $as_echo "$ac_try_echo") >&5
21384 (eval "$ac_link") 2>conftest.er1
21385 ac_status=$?
21386 grep -v '^ *+' conftest.er1 >conftest.err
21387 rm -f conftest.er1
21388 cat conftest.err >&5
21389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } && {
21391 test -z "$ac_c_werror_flag" ||
21392 test ! -s conftest.err
21393 } && test -s conftest$ac_exeext && {
21394 test "$cross_compiling" = yes ||
21395 $as_test_x conftest$ac_exeext
21396 }; then
21397 ac_cv_lib_com_err_com_err=yes
21398 else
21399 $as_echo "$as_me: failed program was:" >&5
21400 sed 's/^/| /' conftest.$ac_ext >&5
21402 ac_cv_lib_com_err_com_err=no
21405 rm -rf conftest.dSYM
21406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21407 conftest$ac_exeext conftest.$ac_ext
21408 LIBS=$ac_check_lib_save_LIBS
21410 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21411 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21412 if test $ac_cv_lib_com_err_com_err = yes; then
21413 cat >>confdefs.h <<_ACEOF
21414 #define HAVE_LIBCOM_ERR 1
21415 _ACEOF
21417 LIBS="-lcom_err $LIBS"
21422 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21423 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21424 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21425 $as_echo_n "(cached) " >&6
21426 else
21427 ac_check_lib_save_LIBS=$LIBS
21428 LIBS="-lk5crypto $LIBS"
21429 cat >conftest.$ac_ext <<_ACEOF
21430 /* confdefs.h. */
21431 _ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h. */
21436 /* Override any GCC internal prototype to avoid an error.
21437 Use char because int might match the return type of a GCC
21438 builtin and then its argument prototype would still apply. */
21439 #ifdef __cplusplus
21440 extern "C"
21441 #endif
21442 char mit_des_cbc_encrypt ();
21444 main ()
21446 return mit_des_cbc_encrypt ();
21448 return 0;
21450 _ACEOF
21451 rm -f conftest.$ac_objext conftest$ac_exeext
21452 if { (ac_try="$ac_link"
21453 case "(($ac_try" in
21454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455 *) ac_try_echo=$ac_try;;
21456 esac
21457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21458 $as_echo "$ac_try_echo") >&5
21459 (eval "$ac_link") 2>conftest.er1
21460 ac_status=$?
21461 grep -v '^ *+' conftest.er1 >conftest.err
21462 rm -f conftest.er1
21463 cat conftest.err >&5
21464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); } && {
21466 test -z "$ac_c_werror_flag" ||
21467 test ! -s conftest.err
21468 } && test -s conftest$ac_exeext && {
21469 test "$cross_compiling" = yes ||
21470 $as_test_x conftest$ac_exeext
21471 }; then
21472 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21473 else
21474 $as_echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21477 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21480 rm -rf conftest.dSYM
21481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21482 conftest$ac_exeext conftest.$ac_ext
21483 LIBS=$ac_check_lib_save_LIBS
21485 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21486 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21487 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21488 cat >>confdefs.h <<_ACEOF
21489 #define HAVE_LIBK5CRYPTO 1
21490 _ACEOF
21492 LIBS="-lk5crypto $LIBS"
21497 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21498 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21499 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21500 $as_echo_n "(cached) " >&6
21501 else
21502 ac_check_lib_save_LIBS=$LIBS
21503 LIBS="-lcrypto $LIBS"
21504 cat >conftest.$ac_ext <<_ACEOF
21505 /* confdefs.h. */
21506 _ACEOF
21507 cat confdefs.h >>conftest.$ac_ext
21508 cat >>conftest.$ac_ext <<_ACEOF
21509 /* end confdefs.h. */
21511 /* Override any GCC internal prototype to avoid an error.
21512 Use char because int might match the return type of a GCC
21513 builtin and then its argument prototype would still apply. */
21514 #ifdef __cplusplus
21515 extern "C"
21516 #endif
21517 char mit_des_cbc_encrypt ();
21519 main ()
21521 return mit_des_cbc_encrypt ();
21523 return 0;
21525 _ACEOF
21526 rm -f conftest.$ac_objext conftest$ac_exeext
21527 if { (ac_try="$ac_link"
21528 case "(($ac_try" in
21529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530 *) ac_try_echo=$ac_try;;
21531 esac
21532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21533 $as_echo "$ac_try_echo") >&5
21534 (eval "$ac_link") 2>conftest.er1
21535 ac_status=$?
21536 grep -v '^ *+' conftest.er1 >conftest.err
21537 rm -f conftest.er1
21538 cat conftest.err >&5
21539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } && {
21541 test -z "$ac_c_werror_flag" ||
21542 test ! -s conftest.err
21543 } && test -s conftest$ac_exeext && {
21544 test "$cross_compiling" = yes ||
21545 $as_test_x conftest$ac_exeext
21546 }; then
21547 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21548 else
21549 $as_echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21552 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21555 rm -rf conftest.dSYM
21556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21557 conftest$ac_exeext conftest.$ac_ext
21558 LIBS=$ac_check_lib_save_LIBS
21560 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21561 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21562 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21563 cat >>confdefs.h <<_ACEOF
21564 #define HAVE_LIBCRYPTO 1
21565 _ACEOF
21567 LIBS="-lcrypto $LIBS"
21572 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21573 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21574 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21575 $as_echo_n "(cached) " >&6
21576 else
21577 ac_check_lib_save_LIBS=$LIBS
21578 LIBS="-lkrb5 $LIBS"
21579 cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h. */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21586 /* Override any GCC internal prototype to avoid an error.
21587 Use char because int might match the return type of a GCC
21588 builtin and then its argument prototype would still apply. */
21589 #ifdef __cplusplus
21590 extern "C"
21591 #endif
21592 char krb5_init_context ();
21594 main ()
21596 return krb5_init_context ();
21598 return 0;
21600 _ACEOF
21601 rm -f conftest.$ac_objext conftest$ac_exeext
21602 if { (ac_try="$ac_link"
21603 case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21606 esac
21607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21608 $as_echo "$ac_try_echo") >&5
21609 (eval "$ac_link") 2>conftest.er1
21610 ac_status=$?
21611 grep -v '^ *+' conftest.er1 >conftest.err
21612 rm -f conftest.er1
21613 cat conftest.err >&5
21614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } && {
21616 test -z "$ac_c_werror_flag" ||
21617 test ! -s conftest.err
21618 } && test -s conftest$ac_exeext && {
21619 test "$cross_compiling" = yes ||
21620 $as_test_x conftest$ac_exeext
21621 }; then
21622 ac_cv_lib_krb5_krb5_init_context=yes
21623 else
21624 $as_echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21627 ac_cv_lib_krb5_krb5_init_context=no
21630 rm -rf conftest.dSYM
21631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21632 conftest$ac_exeext conftest.$ac_ext
21633 LIBS=$ac_check_lib_save_LIBS
21635 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21636 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21637 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21638 cat >>confdefs.h <<_ACEOF
21639 #define HAVE_LIBKRB5 1
21640 _ACEOF
21642 LIBS="-lkrb5 $LIBS"
21646 if test "${with_kerberos5}" = no; then
21648 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21649 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21650 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21651 $as_echo_n "(cached) " >&6
21652 else
21653 ac_check_lib_save_LIBS=$LIBS
21654 LIBS="-ldes425 $LIBS"
21655 cat >conftest.$ac_ext <<_ACEOF
21656 /* confdefs.h. */
21657 _ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h. */
21662 /* Override any GCC internal prototype to avoid an error.
21663 Use char because int might match the return type of a GCC
21664 builtin and then its argument prototype would still apply. */
21665 #ifdef __cplusplus
21666 extern "C"
21667 #endif
21668 char des_cbc_encrypt ();
21670 main ()
21672 return des_cbc_encrypt ();
21674 return 0;
21676 _ACEOF
21677 rm -f conftest.$ac_objext conftest$ac_exeext
21678 if { (ac_try="$ac_link"
21679 case "(($ac_try" in
21680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21681 *) ac_try_echo=$ac_try;;
21682 esac
21683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21684 $as_echo "$ac_try_echo") >&5
21685 (eval "$ac_link") 2>conftest.er1
21686 ac_status=$?
21687 grep -v '^ *+' conftest.er1 >conftest.err
21688 rm -f conftest.er1
21689 cat conftest.err >&5
21690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); } && {
21692 test -z "$ac_c_werror_flag" ||
21693 test ! -s conftest.err
21694 } && test -s conftest$ac_exeext && {
21695 test "$cross_compiling" = yes ||
21696 $as_test_x conftest$ac_exeext
21697 }; then
21698 ac_cv_lib_des425_des_cbc_encrypt=yes
21699 else
21700 $as_echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21703 ac_cv_lib_des425_des_cbc_encrypt=no
21706 rm -rf conftest.dSYM
21707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21708 conftest$ac_exeext conftest.$ac_ext
21709 LIBS=$ac_check_lib_save_LIBS
21711 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21712 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21713 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21714 cat >>confdefs.h <<_ACEOF
21715 #define HAVE_LIBDES425 1
21716 _ACEOF
21718 LIBS="-ldes425 $LIBS"
21720 else
21722 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21723 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21724 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21725 $as_echo_n "(cached) " >&6
21726 else
21727 ac_check_lib_save_LIBS=$LIBS
21728 LIBS="-ldes $LIBS"
21729 cat >conftest.$ac_ext <<_ACEOF
21730 /* confdefs.h. */
21731 _ACEOF
21732 cat confdefs.h >>conftest.$ac_ext
21733 cat >>conftest.$ac_ext <<_ACEOF
21734 /* end confdefs.h. */
21736 /* Override any GCC internal prototype to avoid an error.
21737 Use char because int might match the return type of a GCC
21738 builtin and then its argument prototype would still apply. */
21739 #ifdef __cplusplus
21740 extern "C"
21741 #endif
21742 char des_cbc_encrypt ();
21744 main ()
21746 return des_cbc_encrypt ();
21748 return 0;
21750 _ACEOF
21751 rm -f conftest.$ac_objext conftest$ac_exeext
21752 if { (ac_try="$ac_link"
21753 case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21756 esac
21757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21758 $as_echo "$ac_try_echo") >&5
21759 (eval "$ac_link") 2>conftest.er1
21760 ac_status=$?
21761 grep -v '^ *+' conftest.er1 >conftest.err
21762 rm -f conftest.er1
21763 cat conftest.err >&5
21764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } && {
21766 test -z "$ac_c_werror_flag" ||
21767 test ! -s conftest.err
21768 } && test -s conftest$ac_exeext && {
21769 test "$cross_compiling" = yes ||
21770 $as_test_x conftest$ac_exeext
21771 }; then
21772 ac_cv_lib_des_des_cbc_encrypt=yes
21773 else
21774 $as_echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21777 ac_cv_lib_des_des_cbc_encrypt=no
21780 rm -rf conftest.dSYM
21781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21782 conftest$ac_exeext conftest.$ac_ext
21783 LIBS=$ac_check_lib_save_LIBS
21785 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21786 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21787 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21788 cat >>confdefs.h <<_ACEOF
21789 #define HAVE_LIBDES 1
21790 _ACEOF
21792 LIBS="-ldes $LIBS"
21799 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21800 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21801 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21802 $as_echo_n "(cached) " >&6
21803 else
21804 ac_check_lib_save_LIBS=$LIBS
21805 LIBS="-lkrb4 $LIBS"
21806 cat >conftest.$ac_ext <<_ACEOF
21807 /* confdefs.h. */
21808 _ACEOF
21809 cat confdefs.h >>conftest.$ac_ext
21810 cat >>conftest.$ac_ext <<_ACEOF
21811 /* end confdefs.h. */
21813 /* Override any GCC internal prototype to avoid an error.
21814 Use char because int might match the return type of a GCC
21815 builtin and then its argument prototype would still apply. */
21816 #ifdef __cplusplus
21817 extern "C"
21818 #endif
21819 char krb_get_cred ();
21821 main ()
21823 return krb_get_cred ();
21825 return 0;
21827 _ACEOF
21828 rm -f conftest.$ac_objext conftest$ac_exeext
21829 if { (ac_try="$ac_link"
21830 case "(($ac_try" in
21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21833 esac
21834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21835 $as_echo "$ac_try_echo") >&5
21836 (eval "$ac_link") 2>conftest.er1
21837 ac_status=$?
21838 grep -v '^ *+' conftest.er1 >conftest.err
21839 rm -f conftest.er1
21840 cat conftest.err >&5
21841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); } && {
21843 test -z "$ac_c_werror_flag" ||
21844 test ! -s conftest.err
21845 } && test -s conftest$ac_exeext && {
21846 test "$cross_compiling" = yes ||
21847 $as_test_x conftest$ac_exeext
21848 }; then
21849 ac_cv_lib_krb4_krb_get_cred=yes
21850 else
21851 $as_echo "$as_me: failed program was:" >&5
21852 sed 's/^/| /' conftest.$ac_ext >&5
21854 ac_cv_lib_krb4_krb_get_cred=no
21857 rm -rf conftest.dSYM
21858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21859 conftest$ac_exeext conftest.$ac_ext
21860 LIBS=$ac_check_lib_save_LIBS
21862 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21863 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21864 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21865 cat >>confdefs.h <<_ACEOF
21866 #define HAVE_LIBKRB4 1
21867 _ACEOF
21869 LIBS="-lkrb4 $LIBS"
21871 else
21873 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21874 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21875 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21876 $as_echo_n "(cached) " >&6
21877 else
21878 ac_check_lib_save_LIBS=$LIBS
21879 LIBS="-lkrb $LIBS"
21880 cat >conftest.$ac_ext <<_ACEOF
21881 /* confdefs.h. */
21882 _ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21887 /* Override any GCC internal prototype to avoid an error.
21888 Use char because int might match the return type of a GCC
21889 builtin and then its argument prototype would still apply. */
21890 #ifdef __cplusplus
21891 extern "C"
21892 #endif
21893 char krb_get_cred ();
21895 main ()
21897 return krb_get_cred ();
21899 return 0;
21901 _ACEOF
21902 rm -f conftest.$ac_objext conftest$ac_exeext
21903 if { (ac_try="$ac_link"
21904 case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21907 esac
21908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21909 $as_echo "$ac_try_echo") >&5
21910 (eval "$ac_link") 2>conftest.er1
21911 ac_status=$?
21912 grep -v '^ *+' conftest.er1 >conftest.err
21913 rm -f conftest.er1
21914 cat conftest.err >&5
21915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } && {
21917 test -z "$ac_c_werror_flag" ||
21918 test ! -s conftest.err
21919 } && test -s conftest$ac_exeext && {
21920 test "$cross_compiling" = yes ||
21921 $as_test_x conftest$ac_exeext
21922 }; then
21923 ac_cv_lib_krb_krb_get_cred=yes
21924 else
21925 $as_echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21928 ac_cv_lib_krb_krb_get_cred=no
21931 rm -rf conftest.dSYM
21932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21933 conftest$ac_exeext conftest.$ac_ext
21934 LIBS=$ac_check_lib_save_LIBS
21936 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21937 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21938 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21939 cat >>confdefs.h <<_ACEOF
21940 #define HAVE_LIBKRB 1
21941 _ACEOF
21943 LIBS="-lkrb $LIBS"
21951 if test "${with_kerberos5}" != no; then
21953 for ac_header in krb5.h
21955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21958 $as_echo_n "checking for $ac_header... " >&6; }
21959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21960 $as_echo_n "(cached) " >&6
21962 ac_res=`eval 'as_val=${'$as_ac_Header'}
21963 $as_echo "$as_val"'`
21964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21965 $as_echo "$ac_res" >&6; }
21966 else
21967 # Is the header compilable?
21968 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21969 $as_echo_n "checking $ac_header usability... " >&6; }
21970 cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h. */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21976 $ac_includes_default
21977 #include <$ac_header>
21978 _ACEOF
21979 rm -f conftest.$ac_objext
21980 if { (ac_try="$ac_compile"
21981 case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21984 esac
21985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21986 $as_echo "$ac_try_echo") >&5
21987 (eval "$ac_compile") 2>conftest.er1
21988 ac_status=$?
21989 grep -v '^ *+' conftest.er1 >conftest.err
21990 rm -f conftest.er1
21991 cat conftest.err >&5
21992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } && {
21994 test -z "$ac_c_werror_flag" ||
21995 test ! -s conftest.err
21996 } && test -s conftest.$ac_objext; then
21997 ac_header_compiler=yes
21998 else
21999 $as_echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ac_header_compiler=no
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22007 $as_echo "$ac_header_compiler" >&6; }
22009 # Is the header present?
22010 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22011 $as_echo_n "checking $ac_header presence... " >&6; }
22012 cat >conftest.$ac_ext <<_ACEOF
22013 /* confdefs.h. */
22014 _ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22018 #include <$ac_header>
22019 _ACEOF
22020 if { (ac_try="$ac_cpp conftest.$ac_ext"
22021 case "(($ac_try" in
22022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023 *) ac_try_echo=$ac_try;;
22024 esac
22025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22026 $as_echo "$ac_try_echo") >&5
22027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22028 ac_status=$?
22029 grep -v '^ *+' conftest.er1 >conftest.err
22030 rm -f conftest.er1
22031 cat conftest.err >&5
22032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } >/dev/null && {
22034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22035 test ! -s conftest.err
22036 }; then
22037 ac_header_preproc=yes
22038 else
22039 $as_echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22042 ac_header_preproc=no
22045 rm -f conftest.err conftest.$ac_ext
22046 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22047 $as_echo "$ac_header_preproc" >&6; }
22049 # So? What about this header?
22050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22051 yes:no: )
22052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22053 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22056 ac_header_preproc=yes
22058 no:yes:* )
22059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22060 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22062 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22064 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22066 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22070 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22073 esac
22074 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22075 $as_echo_n "checking for $ac_header... " >&6; }
22076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22077 $as_echo_n "(cached) " >&6
22078 else
22079 eval "$as_ac_Header=\$ac_header_preproc"
22081 ac_res=`eval 'as_val=${'$as_ac_Header'}
22082 $as_echo "$as_val"'`
22083 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22084 $as_echo "$ac_res" >&6; }
22087 if test `eval 'as_val=${'$as_ac_Header'}
22088 $as_echo "$as_val"'` = yes; then
22089 cat >>confdefs.h <<_ACEOF
22090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22091 _ACEOF
22092 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22093 $as_echo_n "checking for krb5_error.text... " >&6; }
22094 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22095 $as_echo_n "(cached) " >&6
22096 else
22097 cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h. */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103 #include <krb5.h>
22106 main ()
22108 static krb5_error ac_aggr;
22109 if (ac_aggr.text)
22110 return 0;
22112 return 0;
22114 _ACEOF
22115 rm -f conftest.$ac_objext
22116 if { (ac_try="$ac_compile"
22117 case "(($ac_try" in
22118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119 *) ac_try_echo=$ac_try;;
22120 esac
22121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22122 $as_echo "$ac_try_echo") >&5
22123 (eval "$ac_compile") 2>conftest.er1
22124 ac_status=$?
22125 grep -v '^ *+' conftest.er1 >conftest.err
22126 rm -f conftest.er1
22127 cat conftest.err >&5
22128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && {
22130 test -z "$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22132 } && test -s conftest.$ac_objext; then
22133 ac_cv_member_krb5_error_text=yes
22134 else
22135 $as_echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22138 cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h. */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 #include <krb5.h>
22147 main ()
22149 static krb5_error ac_aggr;
22150 if (sizeof ac_aggr.text)
22151 return 0;
22153 return 0;
22155 _ACEOF
22156 rm -f conftest.$ac_objext
22157 if { (ac_try="$ac_compile"
22158 case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22161 esac
22162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22163 $as_echo "$ac_try_echo") >&5
22164 (eval "$ac_compile") 2>conftest.er1
22165 ac_status=$?
22166 grep -v '^ *+' conftest.er1 >conftest.err
22167 rm -f conftest.er1
22168 cat conftest.err >&5
22169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && {
22171 test -z "$ac_c_werror_flag" ||
22172 test ! -s conftest.err
22173 } && test -s conftest.$ac_objext; then
22174 ac_cv_member_krb5_error_text=yes
22175 else
22176 $as_echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22179 ac_cv_member_krb5_error_text=no
22182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22187 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22188 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22189 if test $ac_cv_member_krb5_error_text = yes; then
22191 cat >>confdefs.h <<_ACEOF
22192 #define HAVE_KRB5_ERROR_TEXT 1
22193 _ACEOF
22197 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22198 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22199 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22200 $as_echo_n "(cached) " >&6
22201 else
22202 cat >conftest.$ac_ext <<_ACEOF
22203 /* confdefs.h. */
22204 _ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h. */
22208 #include <krb5.h>
22211 main ()
22213 static krb5_error ac_aggr;
22214 if (ac_aggr.e_text)
22215 return 0;
22217 return 0;
22219 _ACEOF
22220 rm -f conftest.$ac_objext
22221 if { (ac_try="$ac_compile"
22222 case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22225 esac
22226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22227 $as_echo "$ac_try_echo") >&5
22228 (eval "$ac_compile") 2>conftest.er1
22229 ac_status=$?
22230 grep -v '^ *+' conftest.er1 >conftest.err
22231 rm -f conftest.er1
22232 cat conftest.err >&5
22233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } && {
22235 test -z "$ac_c_werror_flag" ||
22236 test ! -s conftest.err
22237 } && test -s conftest.$ac_objext; then
22238 ac_cv_member_krb5_error_e_text=yes
22239 else
22240 $as_echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22243 cat >conftest.$ac_ext <<_ACEOF
22244 /* confdefs.h. */
22245 _ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22249 #include <krb5.h>
22252 main ()
22254 static krb5_error ac_aggr;
22255 if (sizeof ac_aggr.e_text)
22256 return 0;
22258 return 0;
22260 _ACEOF
22261 rm -f conftest.$ac_objext
22262 if { (ac_try="$ac_compile"
22263 case "(($ac_try" in
22264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265 *) ac_try_echo=$ac_try;;
22266 esac
22267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22268 $as_echo "$ac_try_echo") >&5
22269 (eval "$ac_compile") 2>conftest.er1
22270 ac_status=$?
22271 grep -v '^ *+' conftest.er1 >conftest.err
22272 rm -f conftest.er1
22273 cat conftest.err >&5
22274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } && {
22276 test -z "$ac_c_werror_flag" ||
22277 test ! -s conftest.err
22278 } && test -s conftest.$ac_objext; then
22279 ac_cv_member_krb5_error_e_text=yes
22280 else
22281 $as_echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22284 ac_cv_member_krb5_error_e_text=no
22287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22293 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22294 if test $ac_cv_member_krb5_error_e_text = yes; then
22296 cat >>confdefs.h <<_ACEOF
22297 #define HAVE_KRB5_ERROR_E_TEXT 1
22298 _ACEOF
22305 done
22307 else
22309 for ac_header in des.h
22311 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22313 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22314 $as_echo_n "checking for $ac_header... " >&6; }
22315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22316 $as_echo_n "(cached) " >&6
22318 ac_res=`eval 'as_val=${'$as_ac_Header'}
22319 $as_echo "$as_val"'`
22320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22321 $as_echo "$ac_res" >&6; }
22322 else
22323 # Is the header compilable?
22324 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22325 $as_echo_n "checking $ac_header usability... " >&6; }
22326 cat >conftest.$ac_ext <<_ACEOF
22327 /* confdefs.h. */
22328 _ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h. */
22332 $ac_includes_default
22333 #include <$ac_header>
22334 _ACEOF
22335 rm -f conftest.$ac_objext
22336 if { (ac_try="$ac_compile"
22337 case "(($ac_try" in
22338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22339 *) ac_try_echo=$ac_try;;
22340 esac
22341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22342 $as_echo "$ac_try_echo") >&5
22343 (eval "$ac_compile") 2>conftest.er1
22344 ac_status=$?
22345 grep -v '^ *+' conftest.er1 >conftest.err
22346 rm -f conftest.er1
22347 cat conftest.err >&5
22348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && {
22350 test -z "$ac_c_werror_flag" ||
22351 test ! -s conftest.err
22352 } && test -s conftest.$ac_objext; then
22353 ac_header_compiler=yes
22354 else
22355 $as_echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 ac_header_compiler=no
22361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22362 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22363 $as_echo "$ac_header_compiler" >&6; }
22365 # Is the header present?
22366 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22367 $as_echo_n "checking $ac_header presence... " >&6; }
22368 cat >conftest.$ac_ext <<_ACEOF
22369 /* confdefs.h. */
22370 _ACEOF
22371 cat confdefs.h >>conftest.$ac_ext
22372 cat >>conftest.$ac_ext <<_ACEOF
22373 /* end confdefs.h. */
22374 #include <$ac_header>
22375 _ACEOF
22376 if { (ac_try="$ac_cpp conftest.$ac_ext"
22377 case "(($ac_try" in
22378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22379 *) ac_try_echo=$ac_try;;
22380 esac
22381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22382 $as_echo "$ac_try_echo") >&5
22383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22384 ac_status=$?
22385 grep -v '^ *+' conftest.er1 >conftest.err
22386 rm -f conftest.er1
22387 cat conftest.err >&5
22388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); } >/dev/null && {
22390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22391 test ! -s conftest.err
22392 }; then
22393 ac_header_preproc=yes
22394 else
22395 $as_echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22398 ac_header_preproc=no
22401 rm -f conftest.err conftest.$ac_ext
22402 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22403 $as_echo "$ac_header_preproc" >&6; }
22405 # So? What about this header?
22406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22407 yes:no: )
22408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22409 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22411 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22412 ac_header_preproc=yes
22414 no:yes:* )
22415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22416 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22418 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22420 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22422 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22424 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22426 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22429 esac
22430 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22431 $as_echo_n "checking for $ac_header... " >&6; }
22432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22433 $as_echo_n "(cached) " >&6
22434 else
22435 eval "$as_ac_Header=\$ac_header_preproc"
22437 ac_res=`eval 'as_val=${'$as_ac_Header'}
22438 $as_echo "$as_val"'`
22439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22440 $as_echo "$ac_res" >&6; }
22443 if test `eval 'as_val=${'$as_ac_Header'}
22444 $as_echo "$as_val"'` = yes; then
22445 cat >>confdefs.h <<_ACEOF
22446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22447 _ACEOF
22449 else
22451 for ac_header in kerberosIV/des.h
22453 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22455 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22456 $as_echo_n "checking for $ac_header... " >&6; }
22457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22458 $as_echo_n "(cached) " >&6
22460 ac_res=`eval 'as_val=${'$as_ac_Header'}
22461 $as_echo "$as_val"'`
22462 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22463 $as_echo "$ac_res" >&6; }
22464 else
22465 # Is the header compilable?
22466 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22467 $as_echo_n "checking $ac_header usability... " >&6; }
22468 cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h. */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 $ac_includes_default
22475 #include <$ac_header>
22476 _ACEOF
22477 rm -f conftest.$ac_objext
22478 if { (ac_try="$ac_compile"
22479 case "(($ac_try" in
22480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22481 *) ac_try_echo=$ac_try;;
22482 esac
22483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22484 $as_echo "$ac_try_echo") >&5
22485 (eval "$ac_compile") 2>conftest.er1
22486 ac_status=$?
22487 grep -v '^ *+' conftest.er1 >conftest.err
22488 rm -f conftest.er1
22489 cat conftest.err >&5
22490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); } && {
22492 test -z "$ac_c_werror_flag" ||
22493 test ! -s conftest.err
22494 } && test -s conftest.$ac_objext; then
22495 ac_header_compiler=yes
22496 else
22497 $as_echo "$as_me: failed program was:" >&5
22498 sed 's/^/| /' conftest.$ac_ext >&5
22500 ac_header_compiler=no
22503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22504 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22505 $as_echo "$ac_header_compiler" >&6; }
22507 # Is the header present?
22508 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22509 $as_echo_n "checking $ac_header presence... " >&6; }
22510 cat >conftest.$ac_ext <<_ACEOF
22511 /* confdefs.h. */
22512 _ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h. */
22516 #include <$ac_header>
22517 _ACEOF
22518 if { (ac_try="$ac_cpp conftest.$ac_ext"
22519 case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22522 esac
22523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22524 $as_echo "$ac_try_echo") >&5
22525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22526 ac_status=$?
22527 grep -v '^ *+' conftest.er1 >conftest.err
22528 rm -f conftest.er1
22529 cat conftest.err >&5
22530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } >/dev/null && {
22532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22533 test ! -s conftest.err
22534 }; then
22535 ac_header_preproc=yes
22536 else
22537 $as_echo "$as_me: failed program was:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22540 ac_header_preproc=no
22543 rm -f conftest.err conftest.$ac_ext
22544 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22545 $as_echo "$ac_header_preproc" >&6; }
22547 # So? What about this header?
22548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22549 yes:no: )
22550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22551 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22553 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22554 ac_header_preproc=yes
22556 no:yes:* )
22557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22558 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22560 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22562 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22564 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22566 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22568 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22571 esac
22572 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22573 $as_echo_n "checking for $ac_header... " >&6; }
22574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22575 $as_echo_n "(cached) " >&6
22576 else
22577 eval "$as_ac_Header=\$ac_header_preproc"
22579 ac_res=`eval 'as_val=${'$as_ac_Header'}
22580 $as_echo "$as_val"'`
22581 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22582 $as_echo "$ac_res" >&6; }
22585 if test `eval 'as_val=${'$as_ac_Header'}
22586 $as_echo "$as_val"'` = yes; then
22587 cat >>confdefs.h <<_ACEOF
22588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22589 _ACEOF
22591 else
22593 for ac_header in kerberos/des.h
22595 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22597 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22598 $as_echo_n "checking for $ac_header... " >&6; }
22599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22600 $as_echo_n "(cached) " >&6
22602 ac_res=`eval 'as_val=${'$as_ac_Header'}
22603 $as_echo "$as_val"'`
22604 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22605 $as_echo "$ac_res" >&6; }
22606 else
22607 # Is the header compilable?
22608 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22609 $as_echo_n "checking $ac_header usability... " >&6; }
22610 cat >conftest.$ac_ext <<_ACEOF
22611 /* confdefs.h. */
22612 _ACEOF
22613 cat confdefs.h >>conftest.$ac_ext
22614 cat >>conftest.$ac_ext <<_ACEOF
22615 /* end confdefs.h. */
22616 $ac_includes_default
22617 #include <$ac_header>
22618 _ACEOF
22619 rm -f conftest.$ac_objext
22620 if { (ac_try="$ac_compile"
22621 case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22624 esac
22625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22626 $as_echo "$ac_try_echo") >&5
22627 (eval "$ac_compile") 2>conftest.er1
22628 ac_status=$?
22629 grep -v '^ *+' conftest.er1 >conftest.err
22630 rm -f conftest.er1
22631 cat conftest.err >&5
22632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); } && {
22634 test -z "$ac_c_werror_flag" ||
22635 test ! -s conftest.err
22636 } && test -s conftest.$ac_objext; then
22637 ac_header_compiler=yes
22638 else
22639 $as_echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22642 ac_header_compiler=no
22645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22646 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22647 $as_echo "$ac_header_compiler" >&6; }
22649 # Is the header present?
22650 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22651 $as_echo_n "checking $ac_header presence... " >&6; }
22652 cat >conftest.$ac_ext <<_ACEOF
22653 /* confdefs.h. */
22654 _ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 #include <$ac_header>
22659 _ACEOF
22660 if { (ac_try="$ac_cpp conftest.$ac_ext"
22661 case "(($ac_try" in
22662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22663 *) ac_try_echo=$ac_try;;
22664 esac
22665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22666 $as_echo "$ac_try_echo") >&5
22667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22668 ac_status=$?
22669 grep -v '^ *+' conftest.er1 >conftest.err
22670 rm -f conftest.er1
22671 cat conftest.err >&5
22672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } >/dev/null && {
22674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22675 test ! -s conftest.err
22676 }; then
22677 ac_header_preproc=yes
22678 else
22679 $as_echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22682 ac_header_preproc=no
22685 rm -f conftest.err conftest.$ac_ext
22686 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22687 $as_echo "$ac_header_preproc" >&6; }
22689 # So? What about this header?
22690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22691 yes:no: )
22692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22693 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22695 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22696 ac_header_preproc=yes
22698 no:yes:* )
22699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22700 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22702 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22704 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22706 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22708 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22710 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22713 esac
22714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22715 $as_echo_n "checking for $ac_header... " >&6; }
22716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22717 $as_echo_n "(cached) " >&6
22718 else
22719 eval "$as_ac_Header=\$ac_header_preproc"
22721 ac_res=`eval 'as_val=${'$as_ac_Header'}
22722 $as_echo "$as_val"'`
22723 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22724 $as_echo "$ac_res" >&6; }
22727 if test `eval 'as_val=${'$as_ac_Header'}
22728 $as_echo "$as_val"'` = yes; then
22729 cat >>confdefs.h <<_ACEOF
22730 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22731 _ACEOF
22735 done
22739 done
22743 done
22746 for ac_header in krb.h
22748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22751 $as_echo_n "checking for $ac_header... " >&6; }
22752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22753 $as_echo_n "(cached) " >&6
22755 ac_res=`eval 'as_val=${'$as_ac_Header'}
22756 $as_echo "$as_val"'`
22757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22758 $as_echo "$ac_res" >&6; }
22759 else
22760 # Is the header compilable?
22761 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22762 $as_echo_n "checking $ac_header usability... " >&6; }
22763 cat >conftest.$ac_ext <<_ACEOF
22764 /* confdefs.h. */
22765 _ACEOF
22766 cat confdefs.h >>conftest.$ac_ext
22767 cat >>conftest.$ac_ext <<_ACEOF
22768 /* end confdefs.h. */
22769 $ac_includes_default
22770 #include <$ac_header>
22771 _ACEOF
22772 rm -f conftest.$ac_objext
22773 if { (ac_try="$ac_compile"
22774 case "(($ac_try" in
22775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776 *) ac_try_echo=$ac_try;;
22777 esac
22778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22779 $as_echo "$ac_try_echo") >&5
22780 (eval "$ac_compile") 2>conftest.er1
22781 ac_status=$?
22782 grep -v '^ *+' conftest.er1 >conftest.err
22783 rm -f conftest.er1
22784 cat conftest.err >&5
22785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } && {
22787 test -z "$ac_c_werror_flag" ||
22788 test ! -s conftest.err
22789 } && test -s conftest.$ac_objext; then
22790 ac_header_compiler=yes
22791 else
22792 $as_echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22795 ac_header_compiler=no
22798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22799 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22800 $as_echo "$ac_header_compiler" >&6; }
22802 # Is the header present?
22803 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22804 $as_echo_n "checking $ac_header presence... " >&6; }
22805 cat >conftest.$ac_ext <<_ACEOF
22806 /* confdefs.h. */
22807 _ACEOF
22808 cat confdefs.h >>conftest.$ac_ext
22809 cat >>conftest.$ac_ext <<_ACEOF
22810 /* end confdefs.h. */
22811 #include <$ac_header>
22812 _ACEOF
22813 if { (ac_try="$ac_cpp conftest.$ac_ext"
22814 case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22817 esac
22818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22819 $as_echo "$ac_try_echo") >&5
22820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22821 ac_status=$?
22822 grep -v '^ *+' conftest.er1 >conftest.err
22823 rm -f conftest.er1
22824 cat conftest.err >&5
22825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); } >/dev/null && {
22827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22828 test ! -s conftest.err
22829 }; then
22830 ac_header_preproc=yes
22831 else
22832 $as_echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22835 ac_header_preproc=no
22838 rm -f conftest.err conftest.$ac_ext
22839 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22840 $as_echo "$ac_header_preproc" >&6; }
22842 # So? What about this header?
22843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22844 yes:no: )
22845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22846 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22848 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22849 ac_header_preproc=yes
22851 no:yes:* )
22852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22853 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22855 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22857 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22859 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22861 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22863 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22866 esac
22867 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22868 $as_echo_n "checking for $ac_header... " >&6; }
22869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22870 $as_echo_n "(cached) " >&6
22871 else
22872 eval "$as_ac_Header=\$ac_header_preproc"
22874 ac_res=`eval 'as_val=${'$as_ac_Header'}
22875 $as_echo "$as_val"'`
22876 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22877 $as_echo "$ac_res" >&6; }
22880 if test `eval 'as_val=${'$as_ac_Header'}
22881 $as_echo "$as_val"'` = yes; then
22882 cat >>confdefs.h <<_ACEOF
22883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22884 _ACEOF
22886 else
22888 for ac_header in kerberosIV/krb.h
22890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22892 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22893 $as_echo_n "checking for $ac_header... " >&6; }
22894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22895 $as_echo_n "(cached) " >&6
22897 ac_res=`eval 'as_val=${'$as_ac_Header'}
22898 $as_echo "$as_val"'`
22899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22900 $as_echo "$ac_res" >&6; }
22901 else
22902 # Is the header compilable?
22903 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22904 $as_echo_n "checking $ac_header usability... " >&6; }
22905 cat >conftest.$ac_ext <<_ACEOF
22906 /* confdefs.h. */
22907 _ACEOF
22908 cat confdefs.h >>conftest.$ac_ext
22909 cat >>conftest.$ac_ext <<_ACEOF
22910 /* end confdefs.h. */
22911 $ac_includes_default
22912 #include <$ac_header>
22913 _ACEOF
22914 rm -f conftest.$ac_objext
22915 if { (ac_try="$ac_compile"
22916 case "(($ac_try" in
22917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22918 *) ac_try_echo=$ac_try;;
22919 esac
22920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22921 $as_echo "$ac_try_echo") >&5
22922 (eval "$ac_compile") 2>conftest.er1
22923 ac_status=$?
22924 grep -v '^ *+' conftest.er1 >conftest.err
22925 rm -f conftest.er1
22926 cat conftest.err >&5
22927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); } && {
22929 test -z "$ac_c_werror_flag" ||
22930 test ! -s conftest.err
22931 } && test -s conftest.$ac_objext; then
22932 ac_header_compiler=yes
22933 else
22934 $as_echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22937 ac_header_compiler=no
22940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22941 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22942 $as_echo "$ac_header_compiler" >&6; }
22944 # Is the header present?
22945 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22946 $as_echo_n "checking $ac_header presence... " >&6; }
22947 cat >conftest.$ac_ext <<_ACEOF
22948 /* confdefs.h. */
22949 _ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h. */
22953 #include <$ac_header>
22954 _ACEOF
22955 if { (ac_try="$ac_cpp conftest.$ac_ext"
22956 case "(($ac_try" in
22957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958 *) ac_try_echo=$ac_try;;
22959 esac
22960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22961 $as_echo "$ac_try_echo") >&5
22962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22963 ac_status=$?
22964 grep -v '^ *+' conftest.er1 >conftest.err
22965 rm -f conftest.er1
22966 cat conftest.err >&5
22967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); } >/dev/null && {
22969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22970 test ! -s conftest.err
22971 }; then
22972 ac_header_preproc=yes
22973 else
22974 $as_echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22977 ac_header_preproc=no
22980 rm -f conftest.err conftest.$ac_ext
22981 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22982 $as_echo "$ac_header_preproc" >&6; }
22984 # So? What about this header?
22985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22986 yes:no: )
22987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22988 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22991 ac_header_preproc=yes
22993 no:yes:* )
22994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22995 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22997 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22999 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23001 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23003 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23005 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23008 esac
23009 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23010 $as_echo_n "checking for $ac_header... " >&6; }
23011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23012 $as_echo_n "(cached) " >&6
23013 else
23014 eval "$as_ac_Header=\$ac_header_preproc"
23016 ac_res=`eval 'as_val=${'$as_ac_Header'}
23017 $as_echo "$as_val"'`
23018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23019 $as_echo "$ac_res" >&6; }
23022 if test `eval 'as_val=${'$as_ac_Header'}
23023 $as_echo "$as_val"'` = yes; then
23024 cat >>confdefs.h <<_ACEOF
23025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23026 _ACEOF
23028 else
23030 for ac_header in kerberos/krb.h
23032 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23034 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23035 $as_echo_n "checking for $ac_header... " >&6; }
23036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23037 $as_echo_n "(cached) " >&6
23039 ac_res=`eval 'as_val=${'$as_ac_Header'}
23040 $as_echo "$as_val"'`
23041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23042 $as_echo "$ac_res" >&6; }
23043 else
23044 # Is the header compilable?
23045 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23046 $as_echo_n "checking $ac_header usability... " >&6; }
23047 cat >conftest.$ac_ext <<_ACEOF
23048 /* confdefs.h. */
23049 _ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h. */
23053 $ac_includes_default
23054 #include <$ac_header>
23055 _ACEOF
23056 rm -f conftest.$ac_objext
23057 if { (ac_try="$ac_compile"
23058 case "(($ac_try" in
23059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23060 *) ac_try_echo=$ac_try;;
23061 esac
23062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23063 $as_echo "$ac_try_echo") >&5
23064 (eval "$ac_compile") 2>conftest.er1
23065 ac_status=$?
23066 grep -v '^ *+' conftest.er1 >conftest.err
23067 rm -f conftest.er1
23068 cat conftest.err >&5
23069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } && {
23071 test -z "$ac_c_werror_flag" ||
23072 test ! -s conftest.err
23073 } && test -s conftest.$ac_objext; then
23074 ac_header_compiler=yes
23075 else
23076 $as_echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.$ac_ext >&5
23079 ac_header_compiler=no
23082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23083 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23084 $as_echo "$ac_header_compiler" >&6; }
23086 # Is the header present?
23087 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23088 $as_echo_n "checking $ac_header presence... " >&6; }
23089 cat >conftest.$ac_ext <<_ACEOF
23090 /* confdefs.h. */
23091 _ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h. */
23095 #include <$ac_header>
23096 _ACEOF
23097 if { (ac_try="$ac_cpp conftest.$ac_ext"
23098 case "(($ac_try" in
23099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23100 *) ac_try_echo=$ac_try;;
23101 esac
23102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23103 $as_echo "$ac_try_echo") >&5
23104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23105 ac_status=$?
23106 grep -v '^ *+' conftest.er1 >conftest.err
23107 rm -f conftest.er1
23108 cat conftest.err >&5
23109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); } >/dev/null && {
23111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23112 test ! -s conftest.err
23113 }; then
23114 ac_header_preproc=yes
23115 else
23116 $as_echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23119 ac_header_preproc=no
23122 rm -f conftest.err conftest.$ac_ext
23123 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23124 $as_echo "$ac_header_preproc" >&6; }
23126 # So? What about this header?
23127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23128 yes:no: )
23129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23130 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23132 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23133 ac_header_preproc=yes
23135 no:yes:* )
23136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23137 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23139 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23141 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23143 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23145 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23147 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23150 esac
23151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23152 $as_echo_n "checking for $ac_header... " >&6; }
23153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23154 $as_echo_n "(cached) " >&6
23155 else
23156 eval "$as_ac_Header=\$ac_header_preproc"
23158 ac_res=`eval 'as_val=${'$as_ac_Header'}
23159 $as_echo "$as_val"'`
23160 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23161 $as_echo "$ac_res" >&6; }
23164 if test `eval 'as_val=${'$as_ac_Header'}
23165 $as_echo "$as_val"'` = yes; then
23166 cat >>confdefs.h <<_ACEOF
23167 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23168 _ACEOF
23172 done
23176 done
23180 done
23184 for ac_header in com_err.h
23186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23188 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23189 $as_echo_n "checking for $ac_header... " >&6; }
23190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23191 $as_echo_n "(cached) " >&6
23193 ac_res=`eval 'as_val=${'$as_ac_Header'}
23194 $as_echo "$as_val"'`
23195 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23196 $as_echo "$ac_res" >&6; }
23197 else
23198 # Is the header compilable?
23199 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23200 $as_echo_n "checking $ac_header usability... " >&6; }
23201 cat >conftest.$ac_ext <<_ACEOF
23202 /* confdefs.h. */
23203 _ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h. */
23207 $ac_includes_default
23208 #include <$ac_header>
23209 _ACEOF
23210 rm -f conftest.$ac_objext
23211 if { (ac_try="$ac_compile"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23215 esac
23216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23217 $as_echo "$ac_try_echo") >&5
23218 (eval "$ac_compile") 2>conftest.er1
23219 ac_status=$?
23220 grep -v '^ *+' conftest.er1 >conftest.err
23221 rm -f conftest.er1
23222 cat conftest.err >&5
23223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } && {
23225 test -z "$ac_c_werror_flag" ||
23226 test ! -s conftest.err
23227 } && test -s conftest.$ac_objext; then
23228 ac_header_compiler=yes
23229 else
23230 $as_echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 ac_header_compiler=no
23236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23237 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23238 $as_echo "$ac_header_compiler" >&6; }
23240 # Is the header present?
23241 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23242 $as_echo_n "checking $ac_header presence... " >&6; }
23243 cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h. */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23249 #include <$ac_header>
23250 _ACEOF
23251 if { (ac_try="$ac_cpp conftest.$ac_ext"
23252 case "(($ac_try" in
23253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254 *) ac_try_echo=$ac_try;;
23255 esac
23256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23257 $as_echo "$ac_try_echo") >&5
23258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23259 ac_status=$?
23260 grep -v '^ *+' conftest.er1 >conftest.err
23261 rm -f conftest.er1
23262 cat conftest.err >&5
23263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } >/dev/null && {
23265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23266 test ! -s conftest.err
23267 }; then
23268 ac_header_preproc=yes
23269 else
23270 $as_echo "$as_me: failed program was:" >&5
23271 sed 's/^/| /' conftest.$ac_ext >&5
23273 ac_header_preproc=no
23276 rm -f conftest.err conftest.$ac_ext
23277 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23278 $as_echo "$ac_header_preproc" >&6; }
23280 # So? What about this header?
23281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23282 yes:no: )
23283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23284 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23287 ac_header_preproc=yes
23289 no:yes:* )
23290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23291 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23293 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23295 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23297 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23299 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23301 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23304 esac
23305 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23306 $as_echo_n "checking for $ac_header... " >&6; }
23307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23308 $as_echo_n "(cached) " >&6
23309 else
23310 eval "$as_ac_Header=\$ac_header_preproc"
23312 ac_res=`eval 'as_val=${'$as_ac_Header'}
23313 $as_echo "$as_val"'`
23314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23315 $as_echo "$ac_res" >&6; }
23318 if test `eval 'as_val=${'$as_ac_Header'}
23319 $as_echo "$as_val"'` = yes; then
23320 cat >>confdefs.h <<_ACEOF
23321 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23322 _ACEOF
23326 done
23330 # Solaris requires -lintl if you want strerror (which calls dgettext)
23331 # to return localized messages.
23333 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23334 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23335 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23336 $as_echo_n "(cached) " >&6
23337 else
23338 ac_check_lib_save_LIBS=$LIBS
23339 LIBS="-lintl $LIBS"
23340 cat >conftest.$ac_ext <<_ACEOF
23341 /* confdefs.h. */
23342 _ACEOF
23343 cat confdefs.h >>conftest.$ac_ext
23344 cat >>conftest.$ac_ext <<_ACEOF
23345 /* end confdefs.h. */
23347 /* Override any GCC internal prototype to avoid an error.
23348 Use char because int might match the return type of a GCC
23349 builtin and then its argument prototype would still apply. */
23350 #ifdef __cplusplus
23351 extern "C"
23352 #endif
23353 char dgettext ();
23355 main ()
23357 return dgettext ();
23359 return 0;
23361 _ACEOF
23362 rm -f conftest.$ac_objext conftest$ac_exeext
23363 if { (ac_try="$ac_link"
23364 case "(($ac_try" in
23365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23367 esac
23368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23369 $as_echo "$ac_try_echo") >&5
23370 (eval "$ac_link") 2>conftest.er1
23371 ac_status=$?
23372 grep -v '^ *+' conftest.er1 >conftest.err
23373 rm -f conftest.er1
23374 cat conftest.err >&5
23375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376 (exit $ac_status); } && {
23377 test -z "$ac_c_werror_flag" ||
23378 test ! -s conftest.err
23379 } && test -s conftest$ac_exeext && {
23380 test "$cross_compiling" = yes ||
23381 $as_test_x conftest$ac_exeext
23382 }; then
23383 ac_cv_lib_intl_dgettext=yes
23384 else
23385 $as_echo "$as_me: failed program was:" >&5
23386 sed 's/^/| /' conftest.$ac_ext >&5
23388 ac_cv_lib_intl_dgettext=no
23391 rm -rf conftest.dSYM
23392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23393 conftest$ac_exeext conftest.$ac_ext
23394 LIBS=$ac_check_lib_save_LIBS
23396 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23397 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23398 if test $ac_cv_lib_intl_dgettext = yes; then
23399 cat >>confdefs.h <<_ACEOF
23400 #define HAVE_LIBINTL 1
23401 _ACEOF
23403 LIBS="-lintl $LIBS"
23408 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23409 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23410 if test "${emacs_cv_localtime_cache+set}" = set; then
23411 $as_echo_n "(cached) " >&6
23412 else
23413 if test x$ac_cv_func_tzset = xyes; then
23414 if test "$cross_compiling" = yes; then
23415 # If we have tzset, assume the worst when cross-compiling.
23416 emacs_cv_localtime_cache=yes
23417 else
23418 cat >conftest.$ac_ext <<_ACEOF
23419 /* confdefs.h. */
23420 _ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23424 #include <time.h>
23425 extern char **environ;
23426 unset_TZ ()
23428 char **from, **to;
23429 for (to = from = environ; (*to = *from); from++)
23430 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23431 to++;
23433 char TZ_GMT0[] = "TZ=GMT0";
23434 char TZ_PST8[] = "TZ=PST8";
23435 main()
23437 time_t now = time ((time_t *) 0);
23438 int hour_GMT0, hour_unset;
23439 if (putenv (TZ_GMT0) != 0)
23440 exit (1);
23441 hour_GMT0 = localtime (&now)->tm_hour;
23442 unset_TZ ();
23443 hour_unset = localtime (&now)->tm_hour;
23444 if (putenv (TZ_PST8) != 0)
23445 exit (1);
23446 if (localtime (&now)->tm_hour == hour_GMT0)
23447 exit (1);
23448 unset_TZ ();
23449 if (localtime (&now)->tm_hour != hour_unset)
23450 exit (1);
23451 exit (0);
23453 _ACEOF
23454 rm -f conftest$ac_exeext
23455 if { (ac_try="$ac_link"
23456 case "(($ac_try" in
23457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458 *) ac_try_echo=$ac_try;;
23459 esac
23460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23461 $as_echo "$ac_try_echo") >&5
23462 (eval "$ac_link") 2>&5
23463 ac_status=$?
23464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23466 { (case "(($ac_try" in
23467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468 *) ac_try_echo=$ac_try;;
23469 esac
23470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23471 $as_echo "$ac_try_echo") >&5
23472 (eval "$ac_try") 2>&5
23473 ac_status=$?
23474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); }; }; then
23476 emacs_cv_localtime_cache=no
23477 else
23478 $as_echo "$as_me: program exited with status $ac_status" >&5
23479 $as_echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23482 ( exit $ac_status )
23483 emacs_cv_localtime_cache=yes
23485 rm -rf conftest.dSYM
23486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23490 else
23491 # If we lack tzset, report that localtime does not cache TZ,
23492 # since we can't invalidate the cache if we don't have tzset.
23493 emacs_cv_localtime_cache=no
23496 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23497 $as_echo "$emacs_cv_localtime_cache" >&6; }
23498 if test $emacs_cv_localtime_cache = yes; then
23500 cat >>confdefs.h <<\_ACEOF
23501 #define LOCALTIME_CACHE 1
23502 _ACEOF
23506 if test "x$HAVE_TIMEVAL" = xyes; then
23508 for ac_func in gettimeofday
23510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23511 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23512 $as_echo_n "checking for $ac_func... " >&6; }
23513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23514 $as_echo_n "(cached) " >&6
23515 else
23516 cat >conftest.$ac_ext <<_ACEOF
23517 /* confdefs.h. */
23518 _ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h. */
23522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23524 #define $ac_func innocuous_$ac_func
23526 /* System header to define __stub macros and hopefully few prototypes,
23527 which can conflict with char $ac_func (); below.
23528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23529 <limits.h> exists even on freestanding compilers. */
23531 #ifdef __STDC__
23532 # include <limits.h>
23533 #else
23534 # include <assert.h>
23535 #endif
23537 #undef $ac_func
23539 /* Override any GCC internal prototype to avoid an error.
23540 Use char because int might match the return type of a GCC
23541 builtin and then its argument prototype would still apply. */
23542 #ifdef __cplusplus
23543 extern "C"
23544 #endif
23545 char $ac_func ();
23546 /* The GNU C library defines this for functions which it implements
23547 to always fail with ENOSYS. Some functions are actually named
23548 something starting with __ and the normal name is an alias. */
23549 #if defined __stub_$ac_func || defined __stub___$ac_func
23550 choke me
23551 #endif
23554 main ()
23556 return $ac_func ();
23558 return 0;
23560 _ACEOF
23561 rm -f conftest.$ac_objext conftest$ac_exeext
23562 if { (ac_try="$ac_link"
23563 case "(($ac_try" in
23564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565 *) ac_try_echo=$ac_try;;
23566 esac
23567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23568 $as_echo "$ac_try_echo") >&5
23569 (eval "$ac_link") 2>conftest.er1
23570 ac_status=$?
23571 grep -v '^ *+' conftest.er1 >conftest.err
23572 rm -f conftest.er1
23573 cat conftest.err >&5
23574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); } && {
23576 test -z "$ac_c_werror_flag" ||
23577 test ! -s conftest.err
23578 } && test -s conftest$ac_exeext && {
23579 test "$cross_compiling" = yes ||
23580 $as_test_x conftest$ac_exeext
23581 }; then
23582 eval "$as_ac_var=yes"
23583 else
23584 $as_echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23587 eval "$as_ac_var=no"
23590 rm -rf conftest.dSYM
23591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23592 conftest$ac_exeext conftest.$ac_ext
23594 ac_res=`eval 'as_val=${'$as_ac_var'}
23595 $as_echo "$as_val"'`
23596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23597 $as_echo "$ac_res" >&6; }
23598 if test `eval 'as_val=${'$as_ac_var'}
23599 $as_echo "$as_val"'` = yes; then
23600 cat >>confdefs.h <<_ACEOF
23601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23602 _ACEOF
23605 done
23607 if test $ac_cv_func_gettimeofday = yes; then
23608 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23609 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23610 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23611 $as_echo_n "(cached) " >&6
23612 else
23613 cat >conftest.$ac_ext <<_ACEOF
23614 /* confdefs.h. */
23615 _ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h. */
23620 #ifdef TIME_WITH_SYS_TIME
23621 #include <sys/time.h>
23622 #include <time.h>
23623 #else
23624 #ifdef HAVE_SYS_TIME_H
23625 #include <sys/time.h>
23626 #else
23627 #include <time.h>
23628 #endif
23629 #endif
23631 main ()
23633 struct timeval time;
23634 gettimeofday (&time, 0);
23636 return 0;
23638 _ACEOF
23639 rm -f conftest.$ac_objext
23640 if { (ac_try="$ac_compile"
23641 case "(($ac_try" in
23642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23643 *) ac_try_echo=$ac_try;;
23644 esac
23645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23646 $as_echo "$ac_try_echo") >&5
23647 (eval "$ac_compile") 2>conftest.er1
23648 ac_status=$?
23649 grep -v '^ *+' conftest.er1 >conftest.err
23650 rm -f conftest.er1
23651 cat conftest.err >&5
23652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } && {
23654 test -z "$ac_c_werror_flag" ||
23655 test ! -s conftest.err
23656 } && test -s conftest.$ac_objext; then
23657 emacs_cv_gettimeofday_two_arguments=yes
23658 else
23659 $as_echo "$as_me: failed program was:" >&5
23660 sed 's/^/| /' conftest.$ac_ext >&5
23662 emacs_cv_gettimeofday_two_arguments=no
23665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23667 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23668 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23669 if test $emacs_cv_gettimeofday_two_arguments = no; then
23671 cat >>confdefs.h <<\_ACEOF
23672 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23673 _ACEOF
23679 ok_so_far=yes
23680 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23681 $as_echo_n "checking for socket... " >&6; }
23682 if test "${ac_cv_func_socket+set}" = set; then
23683 $as_echo_n "(cached) " >&6
23684 else
23685 cat >conftest.$ac_ext <<_ACEOF
23686 /* confdefs.h. */
23687 _ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23691 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23693 #define socket innocuous_socket
23695 /* System header to define __stub macros and hopefully few prototypes,
23696 which can conflict with char socket (); below.
23697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23698 <limits.h> exists even on freestanding compilers. */
23700 #ifdef __STDC__
23701 # include <limits.h>
23702 #else
23703 # include <assert.h>
23704 #endif
23706 #undef socket
23708 /* Override any GCC internal prototype to avoid an error.
23709 Use char because int might match the return type of a GCC
23710 builtin and then its argument prototype would still apply. */
23711 #ifdef __cplusplus
23712 extern "C"
23713 #endif
23714 char socket ();
23715 /* The GNU C library defines this for functions which it implements
23716 to always fail with ENOSYS. Some functions are actually named
23717 something starting with __ and the normal name is an alias. */
23718 #if defined __stub_socket || defined __stub___socket
23719 choke me
23720 #endif
23723 main ()
23725 return socket ();
23727 return 0;
23729 _ACEOF
23730 rm -f conftest.$ac_objext conftest$ac_exeext
23731 if { (ac_try="$ac_link"
23732 case "(($ac_try" in
23733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734 *) ac_try_echo=$ac_try;;
23735 esac
23736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23737 $as_echo "$ac_try_echo") >&5
23738 (eval "$ac_link") 2>conftest.er1
23739 ac_status=$?
23740 grep -v '^ *+' conftest.er1 >conftest.err
23741 rm -f conftest.er1
23742 cat conftest.err >&5
23743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } && {
23745 test -z "$ac_c_werror_flag" ||
23746 test ! -s conftest.err
23747 } && test -s conftest$ac_exeext && {
23748 test "$cross_compiling" = yes ||
23749 $as_test_x conftest$ac_exeext
23750 }; then
23751 ac_cv_func_socket=yes
23752 else
23753 $as_echo "$as_me: failed program was:" >&5
23754 sed 's/^/| /' conftest.$ac_ext >&5
23756 ac_cv_func_socket=no
23759 rm -rf conftest.dSYM
23760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23761 conftest$ac_exeext conftest.$ac_ext
23763 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23764 $as_echo "$ac_cv_func_socket" >&6; }
23765 if test $ac_cv_func_socket = yes; then
23767 else
23768 ok_so_far=no
23771 if test $ok_so_far = yes; then
23772 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23773 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23774 $as_echo_n "checking for netinet/in.h... " >&6; }
23775 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23776 $as_echo_n "(cached) " >&6
23778 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23779 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23780 else
23781 # Is the header compilable?
23782 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23783 $as_echo_n "checking netinet/in.h usability... " >&6; }
23784 cat >conftest.$ac_ext <<_ACEOF
23785 /* confdefs.h. */
23786 _ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h. */
23790 $ac_includes_default
23791 #include <netinet/in.h>
23792 _ACEOF
23793 rm -f conftest.$ac_objext
23794 if { (ac_try="$ac_compile"
23795 case "(($ac_try" in
23796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797 *) ac_try_echo=$ac_try;;
23798 esac
23799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23800 $as_echo "$ac_try_echo") >&5
23801 (eval "$ac_compile") 2>conftest.er1
23802 ac_status=$?
23803 grep -v '^ *+' conftest.er1 >conftest.err
23804 rm -f conftest.er1
23805 cat conftest.err >&5
23806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } && {
23808 test -z "$ac_c_werror_flag" ||
23809 test ! -s conftest.err
23810 } && test -s conftest.$ac_objext; then
23811 ac_header_compiler=yes
23812 else
23813 $as_echo "$as_me: failed program was:" >&5
23814 sed 's/^/| /' conftest.$ac_ext >&5
23816 ac_header_compiler=no
23819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23820 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23821 $as_echo "$ac_header_compiler" >&6; }
23823 # Is the header present?
23824 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23825 $as_echo_n "checking netinet/in.h presence... " >&6; }
23826 cat >conftest.$ac_ext <<_ACEOF
23827 /* confdefs.h. */
23828 _ACEOF
23829 cat confdefs.h >>conftest.$ac_ext
23830 cat >>conftest.$ac_ext <<_ACEOF
23831 /* end confdefs.h. */
23832 #include <netinet/in.h>
23833 _ACEOF
23834 if { (ac_try="$ac_cpp conftest.$ac_ext"
23835 case "(($ac_try" in
23836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837 *) ac_try_echo=$ac_try;;
23838 esac
23839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23840 $as_echo "$ac_try_echo") >&5
23841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23842 ac_status=$?
23843 grep -v '^ *+' conftest.er1 >conftest.err
23844 rm -f conftest.er1
23845 cat conftest.err >&5
23846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } >/dev/null && {
23848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23849 test ! -s conftest.err
23850 }; then
23851 ac_header_preproc=yes
23852 else
23853 $as_echo "$as_me: failed program was:" >&5
23854 sed 's/^/| /' conftest.$ac_ext >&5
23856 ac_header_preproc=no
23859 rm -f conftest.err conftest.$ac_ext
23860 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23861 $as_echo "$ac_header_preproc" >&6; }
23863 # So? What about this header?
23864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23865 yes:no: )
23866 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23867 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23868 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23869 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23870 ac_header_preproc=yes
23872 no:yes:* )
23873 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23874 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23875 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23876 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23877 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23878 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23879 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23880 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23881 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23882 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23883 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23884 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23887 esac
23888 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23889 $as_echo_n "checking for netinet/in.h... " >&6; }
23890 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23891 $as_echo_n "(cached) " >&6
23892 else
23893 ac_cv_header_netinet_in_h=$ac_header_preproc
23895 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23896 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23899 if test $ac_cv_header_netinet_in_h = yes; then
23901 else
23902 ok_so_far=no
23907 if test $ok_so_far = yes; then
23908 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23909 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23910 $as_echo_n "checking for arpa/inet.h... " >&6; }
23911 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23912 $as_echo_n "(cached) " >&6
23914 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23915 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23916 else
23917 # Is the header compilable?
23918 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23919 $as_echo_n "checking arpa/inet.h usability... " >&6; }
23920 cat >conftest.$ac_ext <<_ACEOF
23921 /* confdefs.h. */
23922 _ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h. */
23926 $ac_includes_default
23927 #include <arpa/inet.h>
23928 _ACEOF
23929 rm -f conftest.$ac_objext
23930 if { (ac_try="$ac_compile"
23931 case "(($ac_try" in
23932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933 *) ac_try_echo=$ac_try;;
23934 esac
23935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23936 $as_echo "$ac_try_echo") >&5
23937 (eval "$ac_compile") 2>conftest.er1
23938 ac_status=$?
23939 grep -v '^ *+' conftest.er1 >conftest.err
23940 rm -f conftest.er1
23941 cat conftest.err >&5
23942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); } && {
23944 test -z "$ac_c_werror_flag" ||
23945 test ! -s conftest.err
23946 } && test -s conftest.$ac_objext; then
23947 ac_header_compiler=yes
23948 else
23949 $as_echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23952 ac_header_compiler=no
23955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23956 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23957 $as_echo "$ac_header_compiler" >&6; }
23959 # Is the header present?
23960 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23961 $as_echo_n "checking arpa/inet.h presence... " >&6; }
23962 cat >conftest.$ac_ext <<_ACEOF
23963 /* confdefs.h. */
23964 _ACEOF
23965 cat confdefs.h >>conftest.$ac_ext
23966 cat >>conftest.$ac_ext <<_ACEOF
23967 /* end confdefs.h. */
23968 #include <arpa/inet.h>
23969 _ACEOF
23970 if { (ac_try="$ac_cpp conftest.$ac_ext"
23971 case "(($ac_try" in
23972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23973 *) ac_try_echo=$ac_try;;
23974 esac
23975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23976 $as_echo "$ac_try_echo") >&5
23977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23978 ac_status=$?
23979 grep -v '^ *+' conftest.er1 >conftest.err
23980 rm -f conftest.er1
23981 cat conftest.err >&5
23982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); } >/dev/null && {
23984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23985 test ! -s conftest.err
23986 }; then
23987 ac_header_preproc=yes
23988 else
23989 $as_echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23992 ac_header_preproc=no
23995 rm -f conftest.err conftest.$ac_ext
23996 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23997 $as_echo "$ac_header_preproc" >&6; }
23999 # So? What about this header?
24000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24001 yes:no: )
24002 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24003 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24004 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24005 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24006 ac_header_preproc=yes
24008 no:yes:* )
24009 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24010 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24011 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24012 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24013 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24014 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24015 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24016 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24017 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24018 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24019 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24020 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24023 esac
24024 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24025 $as_echo_n "checking for arpa/inet.h... " >&6; }
24026 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24027 $as_echo_n "(cached) " >&6
24028 else
24029 ac_cv_header_arpa_inet_h=$ac_header_preproc
24031 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24032 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24035 if test $ac_cv_header_arpa_inet_h = yes; then
24037 else
24038 ok_so_far=no
24043 if test $ok_so_far = yes; then
24045 cat >>confdefs.h <<\_ACEOF
24046 #define HAVE_INET_SOCKETS 1
24047 _ACEOF
24052 for ac_header in sys/ioctl.h
24054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24056 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24057 $as_echo_n "checking for $ac_header... " >&6; }
24058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24059 $as_echo_n "(cached) " >&6
24061 ac_res=`eval 'as_val=${'$as_ac_Header'}
24062 $as_echo "$as_val"'`
24063 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24064 $as_echo "$ac_res" >&6; }
24065 else
24066 # Is the header compilable?
24067 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24068 $as_echo_n "checking $ac_header usability... " >&6; }
24069 cat >conftest.$ac_ext <<_ACEOF
24070 /* confdefs.h. */
24071 _ACEOF
24072 cat confdefs.h >>conftest.$ac_ext
24073 cat >>conftest.$ac_ext <<_ACEOF
24074 /* end confdefs.h. */
24075 $ac_includes_default
24076 #include <$ac_header>
24077 _ACEOF
24078 rm -f conftest.$ac_objext
24079 if { (ac_try="$ac_compile"
24080 case "(($ac_try" in
24081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24082 *) ac_try_echo=$ac_try;;
24083 esac
24084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24085 $as_echo "$ac_try_echo") >&5
24086 (eval "$ac_compile") 2>conftest.er1
24087 ac_status=$?
24088 grep -v '^ *+' conftest.er1 >conftest.err
24089 rm -f conftest.er1
24090 cat conftest.err >&5
24091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); } && {
24093 test -z "$ac_c_werror_flag" ||
24094 test ! -s conftest.err
24095 } && test -s conftest.$ac_objext; then
24096 ac_header_compiler=yes
24097 else
24098 $as_echo "$as_me: failed program was:" >&5
24099 sed 's/^/| /' conftest.$ac_ext >&5
24101 ac_header_compiler=no
24104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24105 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24106 $as_echo "$ac_header_compiler" >&6; }
24108 # Is the header present?
24109 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24110 $as_echo_n "checking $ac_header presence... " >&6; }
24111 cat >conftest.$ac_ext <<_ACEOF
24112 /* confdefs.h. */
24113 _ACEOF
24114 cat confdefs.h >>conftest.$ac_ext
24115 cat >>conftest.$ac_ext <<_ACEOF
24116 /* end confdefs.h. */
24117 #include <$ac_header>
24118 _ACEOF
24119 if { (ac_try="$ac_cpp conftest.$ac_ext"
24120 case "(($ac_try" in
24121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24122 *) ac_try_echo=$ac_try;;
24123 esac
24124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24125 $as_echo "$ac_try_echo") >&5
24126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24127 ac_status=$?
24128 grep -v '^ *+' conftest.er1 >conftest.err
24129 rm -f conftest.er1
24130 cat conftest.err >&5
24131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 (exit $ac_status); } >/dev/null && {
24133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24134 test ! -s conftest.err
24135 }; then
24136 ac_header_preproc=yes
24137 else
24138 $as_echo "$as_me: failed program was:" >&5
24139 sed 's/^/| /' conftest.$ac_ext >&5
24141 ac_header_preproc=no
24144 rm -f conftest.err conftest.$ac_ext
24145 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24146 $as_echo "$ac_header_preproc" >&6; }
24148 # So? What about this header?
24149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24150 yes:no: )
24151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24152 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24154 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24155 ac_header_preproc=yes
24157 no:yes:* )
24158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24159 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24161 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24163 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24165 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24167 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24169 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24172 esac
24173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24174 $as_echo_n "checking for $ac_header... " >&6; }
24175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24176 $as_echo_n "(cached) " >&6
24177 else
24178 eval "$as_ac_Header=\$ac_header_preproc"
24180 ac_res=`eval 'as_val=${'$as_ac_Header'}
24181 $as_echo "$as_val"'`
24182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24183 $as_echo "$ac_res" >&6; }
24186 if test `eval 'as_val=${'$as_ac_Header'}
24187 $as_echo "$as_val"'` = yes; then
24188 cat >>confdefs.h <<_ACEOF
24189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24190 _ACEOF
24194 done
24197 if test -f /usr/lpp/X11/bin/smt.exp; then
24199 cat >>confdefs.h <<\_ACEOF
24200 #define HAVE_AIX_SMT_EXP 1
24201 _ACEOF
24205 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24206 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24207 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24208 { $as_echo "$as_me:$LINENO: result: yes" >&5
24209 $as_echo "yes" >&6; }
24211 cat >>confdefs.h <<\_ACEOF
24212 #define HAVE_DEV_PTMX 1
24213 _ACEOF
24215 else
24216 { $as_echo "$as_me:$LINENO: result: no" >&5
24217 $as_echo "no" >&6; }
24220 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24221 $as_echo_n "checking for pid_t... " >&6; }
24222 if test "${ac_cv_type_pid_t+set}" = set; then
24223 $as_echo_n "(cached) " >&6
24224 else
24225 ac_cv_type_pid_t=no
24226 cat >conftest.$ac_ext <<_ACEOF
24227 /* confdefs.h. */
24228 _ACEOF
24229 cat confdefs.h >>conftest.$ac_ext
24230 cat >>conftest.$ac_ext <<_ACEOF
24231 /* end confdefs.h. */
24232 $ac_includes_default
24234 main ()
24236 if (sizeof (pid_t))
24237 return 0;
24239 return 0;
24241 _ACEOF
24242 rm -f conftest.$ac_objext
24243 if { (ac_try="$ac_compile"
24244 case "(($ac_try" in
24245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24246 *) ac_try_echo=$ac_try;;
24247 esac
24248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24249 $as_echo "$ac_try_echo") >&5
24250 (eval "$ac_compile") 2>conftest.er1
24251 ac_status=$?
24252 grep -v '^ *+' conftest.er1 >conftest.err
24253 rm -f conftest.er1
24254 cat conftest.err >&5
24255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); } && {
24257 test -z "$ac_c_werror_flag" ||
24258 test ! -s conftest.err
24259 } && test -s conftest.$ac_objext; then
24260 cat >conftest.$ac_ext <<_ACEOF
24261 /* confdefs.h. */
24262 _ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h. */
24266 $ac_includes_default
24268 main ()
24270 if (sizeof ((pid_t)))
24271 return 0;
24273 return 0;
24275 _ACEOF
24276 rm -f conftest.$ac_objext
24277 if { (ac_try="$ac_compile"
24278 case "(($ac_try" in
24279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24280 *) ac_try_echo=$ac_try;;
24281 esac
24282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24283 $as_echo "$ac_try_echo") >&5
24284 (eval "$ac_compile") 2>conftest.er1
24285 ac_status=$?
24286 grep -v '^ *+' conftest.er1 >conftest.err
24287 rm -f conftest.er1
24288 cat conftest.err >&5
24289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); } && {
24291 test -z "$ac_c_werror_flag" ||
24292 test ! -s conftest.err
24293 } && test -s conftest.$ac_objext; then
24295 else
24296 $as_echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24299 ac_cv_type_pid_t=yes
24302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24303 else
24304 $as_echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24312 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24313 $as_echo "$ac_cv_type_pid_t" >&6; }
24314 if test $ac_cv_type_pid_t = yes; then
24316 else
24318 cat >>confdefs.h <<_ACEOF
24319 #define pid_t int
24320 _ACEOF
24325 for ac_header in vfork.h
24327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24329 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24330 $as_echo_n "checking for $ac_header... " >&6; }
24331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24332 $as_echo_n "(cached) " >&6
24334 ac_res=`eval 'as_val=${'$as_ac_Header'}
24335 $as_echo "$as_val"'`
24336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24337 $as_echo "$ac_res" >&6; }
24338 else
24339 # Is the header compilable?
24340 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24341 $as_echo_n "checking $ac_header usability... " >&6; }
24342 cat >conftest.$ac_ext <<_ACEOF
24343 /* confdefs.h. */
24344 _ACEOF
24345 cat confdefs.h >>conftest.$ac_ext
24346 cat >>conftest.$ac_ext <<_ACEOF
24347 /* end confdefs.h. */
24348 $ac_includes_default
24349 #include <$ac_header>
24350 _ACEOF
24351 rm -f conftest.$ac_objext
24352 if { (ac_try="$ac_compile"
24353 case "(($ac_try" in
24354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24355 *) ac_try_echo=$ac_try;;
24356 esac
24357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24358 $as_echo "$ac_try_echo") >&5
24359 (eval "$ac_compile") 2>conftest.er1
24360 ac_status=$?
24361 grep -v '^ *+' conftest.er1 >conftest.err
24362 rm -f conftest.er1
24363 cat conftest.err >&5
24364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365 (exit $ac_status); } && {
24366 test -z "$ac_c_werror_flag" ||
24367 test ! -s conftest.err
24368 } && test -s conftest.$ac_objext; then
24369 ac_header_compiler=yes
24370 else
24371 $as_echo "$as_me: failed program was:" >&5
24372 sed 's/^/| /' conftest.$ac_ext >&5
24374 ac_header_compiler=no
24377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24378 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24379 $as_echo "$ac_header_compiler" >&6; }
24381 # Is the header present?
24382 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24383 $as_echo_n "checking $ac_header presence... " >&6; }
24384 cat >conftest.$ac_ext <<_ACEOF
24385 /* confdefs.h. */
24386 _ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h. */
24390 #include <$ac_header>
24391 _ACEOF
24392 if { (ac_try="$ac_cpp conftest.$ac_ext"
24393 case "(($ac_try" in
24394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24395 *) ac_try_echo=$ac_try;;
24396 esac
24397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24398 $as_echo "$ac_try_echo") >&5
24399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24400 ac_status=$?
24401 grep -v '^ *+' conftest.er1 >conftest.err
24402 rm -f conftest.er1
24403 cat conftest.err >&5
24404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405 (exit $ac_status); } >/dev/null && {
24406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24407 test ! -s conftest.err
24408 }; then
24409 ac_header_preproc=yes
24410 else
24411 $as_echo "$as_me: failed program was:" >&5
24412 sed 's/^/| /' conftest.$ac_ext >&5
24414 ac_header_preproc=no
24417 rm -f conftest.err conftest.$ac_ext
24418 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24419 $as_echo "$ac_header_preproc" >&6; }
24421 # So? What about this header?
24422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24423 yes:no: )
24424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24425 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24427 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24428 ac_header_preproc=yes
24430 no:yes:* )
24431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24432 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24434 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24436 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24438 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24440 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24442 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24445 esac
24446 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24447 $as_echo_n "checking for $ac_header... " >&6; }
24448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24449 $as_echo_n "(cached) " >&6
24450 else
24451 eval "$as_ac_Header=\$ac_header_preproc"
24453 ac_res=`eval 'as_val=${'$as_ac_Header'}
24454 $as_echo "$as_val"'`
24455 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24456 $as_echo "$ac_res" >&6; }
24459 if test `eval 'as_val=${'$as_ac_Header'}
24460 $as_echo "$as_val"'` = yes; then
24461 cat >>confdefs.h <<_ACEOF
24462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24463 _ACEOF
24467 done
24471 for ac_func in fork vfork
24473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24474 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24475 $as_echo_n "checking for $ac_func... " >&6; }
24476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24477 $as_echo_n "(cached) " >&6
24478 else
24479 cat >conftest.$ac_ext <<_ACEOF
24480 /* confdefs.h. */
24481 _ACEOF
24482 cat confdefs.h >>conftest.$ac_ext
24483 cat >>conftest.$ac_ext <<_ACEOF
24484 /* end confdefs.h. */
24485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24487 #define $ac_func innocuous_$ac_func
24489 /* System header to define __stub macros and hopefully few prototypes,
24490 which can conflict with char $ac_func (); below.
24491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24492 <limits.h> exists even on freestanding compilers. */
24494 #ifdef __STDC__
24495 # include <limits.h>
24496 #else
24497 # include <assert.h>
24498 #endif
24500 #undef $ac_func
24502 /* Override any GCC internal prototype to avoid an error.
24503 Use char because int might match the return type of a GCC
24504 builtin and then its argument prototype would still apply. */
24505 #ifdef __cplusplus
24506 extern "C"
24507 #endif
24508 char $ac_func ();
24509 /* The GNU C library defines this for functions which it implements
24510 to always fail with ENOSYS. Some functions are actually named
24511 something starting with __ and the normal name is an alias. */
24512 #if defined __stub_$ac_func || defined __stub___$ac_func
24513 choke me
24514 #endif
24517 main ()
24519 return $ac_func ();
24521 return 0;
24523 _ACEOF
24524 rm -f conftest.$ac_objext conftest$ac_exeext
24525 if { (ac_try="$ac_link"
24526 case "(($ac_try" in
24527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528 *) ac_try_echo=$ac_try;;
24529 esac
24530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24531 $as_echo "$ac_try_echo") >&5
24532 (eval "$ac_link") 2>conftest.er1
24533 ac_status=$?
24534 grep -v '^ *+' conftest.er1 >conftest.err
24535 rm -f conftest.er1
24536 cat conftest.err >&5
24537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); } && {
24539 test -z "$ac_c_werror_flag" ||
24540 test ! -s conftest.err
24541 } && test -s conftest$ac_exeext && {
24542 test "$cross_compiling" = yes ||
24543 $as_test_x conftest$ac_exeext
24544 }; then
24545 eval "$as_ac_var=yes"
24546 else
24547 $as_echo "$as_me: failed program was:" >&5
24548 sed 's/^/| /' conftest.$ac_ext >&5
24550 eval "$as_ac_var=no"
24553 rm -rf conftest.dSYM
24554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24555 conftest$ac_exeext conftest.$ac_ext
24557 ac_res=`eval 'as_val=${'$as_ac_var'}
24558 $as_echo "$as_val"'`
24559 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24560 $as_echo "$ac_res" >&6; }
24561 if test `eval 'as_val=${'$as_ac_var'}
24562 $as_echo "$as_val"'` = yes; then
24563 cat >>confdefs.h <<_ACEOF
24564 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24565 _ACEOF
24568 done
24570 if test "x$ac_cv_func_fork" = xyes; then
24571 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24572 $as_echo_n "checking for working fork... " >&6; }
24573 if test "${ac_cv_func_fork_works+set}" = set; then
24574 $as_echo_n "(cached) " >&6
24575 else
24576 if test "$cross_compiling" = yes; then
24577 ac_cv_func_fork_works=cross
24578 else
24579 cat >conftest.$ac_ext <<_ACEOF
24580 /* confdefs.h. */
24581 _ACEOF
24582 cat confdefs.h >>conftest.$ac_ext
24583 cat >>conftest.$ac_ext <<_ACEOF
24584 /* end confdefs.h. */
24585 $ac_includes_default
24587 main ()
24590 /* By Ruediger Kuhlmann. */
24591 return fork () < 0;
24594 return 0;
24596 _ACEOF
24597 rm -f conftest$ac_exeext
24598 if { (ac_try="$ac_link"
24599 case "(($ac_try" in
24600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24601 *) ac_try_echo=$ac_try;;
24602 esac
24603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24604 $as_echo "$ac_try_echo") >&5
24605 (eval "$ac_link") 2>&5
24606 ac_status=$?
24607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24609 { (case "(($ac_try" in
24610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24611 *) ac_try_echo=$ac_try;;
24612 esac
24613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24614 $as_echo "$ac_try_echo") >&5
24615 (eval "$ac_try") 2>&5
24616 ac_status=$?
24617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; }; then
24619 ac_cv_func_fork_works=yes
24620 else
24621 $as_echo "$as_me: program exited with status $ac_status" >&5
24622 $as_echo "$as_me: failed program was:" >&5
24623 sed 's/^/| /' conftest.$ac_ext >&5
24625 ( exit $ac_status )
24626 ac_cv_func_fork_works=no
24628 rm -rf conftest.dSYM
24629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24634 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24635 $as_echo "$ac_cv_func_fork_works" >&6; }
24637 else
24638 ac_cv_func_fork_works=$ac_cv_func_fork
24640 if test "x$ac_cv_func_fork_works" = xcross; then
24641 case $host in
24642 *-*-amigaos* | *-*-msdosdjgpp*)
24643 # Override, as these systems have only a dummy fork() stub
24644 ac_cv_func_fork_works=no
24647 ac_cv_func_fork_works=yes
24649 esac
24650 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24651 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24653 ac_cv_func_vfork_works=$ac_cv_func_vfork
24654 if test "x$ac_cv_func_vfork" = xyes; then
24655 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24656 $as_echo_n "checking for working vfork... " >&6; }
24657 if test "${ac_cv_func_vfork_works+set}" = set; then
24658 $as_echo_n "(cached) " >&6
24659 else
24660 if test "$cross_compiling" = yes; then
24661 ac_cv_func_vfork_works=cross
24662 else
24663 cat >conftest.$ac_ext <<_ACEOF
24664 /* confdefs.h. */
24665 _ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h. */
24669 /* Thanks to Paul Eggert for this test. */
24670 $ac_includes_default
24671 #include <sys/wait.h>
24672 #ifdef HAVE_VFORK_H
24673 # include <vfork.h>
24674 #endif
24675 /* On some sparc systems, changes by the child to local and incoming
24676 argument registers are propagated back to the parent. The compiler
24677 is told about this with #include <vfork.h>, but some compilers
24678 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24679 static variable whose address is put into a register that is
24680 clobbered by the vfork. */
24681 static void
24682 #ifdef __cplusplus
24683 sparc_address_test (int arg)
24684 # else
24685 sparc_address_test (arg) int arg;
24686 #endif
24688 static pid_t child;
24689 if (!child) {
24690 child = vfork ();
24691 if (child < 0) {
24692 perror ("vfork");
24693 _exit(2);
24695 if (!child) {
24696 arg = getpid();
24697 write(-1, "", 0);
24698 _exit (arg);
24704 main ()
24706 pid_t parent = getpid ();
24707 pid_t child;
24709 sparc_address_test (0);
24711 child = vfork ();
24713 if (child == 0) {
24714 /* Here is another test for sparc vfork register problems. This
24715 test uses lots of local variables, at least as many local
24716 variables as main has allocated so far including compiler
24717 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24718 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24719 reuse the register of parent for one of the local variables,
24720 since it will think that parent can't possibly be used any more
24721 in this routine. Assigning to the local variable will thus
24722 munge parent in the parent process. */
24723 pid_t
24724 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24725 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24726 /* Convince the compiler that p..p7 are live; otherwise, it might
24727 use the same hardware register for all 8 local variables. */
24728 if (p != p1 || p != p2 || p != p3 || p != p4
24729 || p != p5 || p != p6 || p != p7)
24730 _exit(1);
24732 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24733 from child file descriptors. If the child closes a descriptor
24734 before it execs or exits, this munges the parent's descriptor
24735 as well. Test for this by closing stdout in the child. */
24736 _exit(close(fileno(stdout)) != 0);
24737 } else {
24738 int status;
24739 struct stat st;
24741 while (wait(&status) != child)
24743 return (
24744 /* Was there some problem with vforking? */
24745 child < 0
24747 /* Did the child fail? (This shouldn't happen.) */
24748 || status
24750 /* Did the vfork/compiler bug occur? */
24751 || parent != getpid()
24753 /* Did the file descriptor bug occur? */
24754 || fstat(fileno(stdout), &st) != 0
24758 _ACEOF
24759 rm -f conftest$ac_exeext
24760 if { (ac_try="$ac_link"
24761 case "(($ac_try" in
24762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24763 *) ac_try_echo=$ac_try;;
24764 esac
24765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24766 $as_echo "$ac_try_echo") >&5
24767 (eval "$ac_link") 2>&5
24768 ac_status=$?
24769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24771 { (case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24774 esac
24775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24776 $as_echo "$ac_try_echo") >&5
24777 (eval "$ac_try") 2>&5
24778 ac_status=$?
24779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); }; }; then
24781 ac_cv_func_vfork_works=yes
24782 else
24783 $as_echo "$as_me: program exited with status $ac_status" >&5
24784 $as_echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.$ac_ext >&5
24787 ( exit $ac_status )
24788 ac_cv_func_vfork_works=no
24790 rm -rf conftest.dSYM
24791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24796 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24797 $as_echo "$ac_cv_func_vfork_works" >&6; }
24800 if test "x$ac_cv_func_fork_works" = xcross; then
24801 ac_cv_func_vfork_works=$ac_cv_func_vfork
24802 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24803 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24806 if test "x$ac_cv_func_vfork_works" = xyes; then
24808 cat >>confdefs.h <<\_ACEOF
24809 #define HAVE_WORKING_VFORK 1
24810 _ACEOF
24812 else
24814 cat >>confdefs.h <<\_ACEOF
24815 #define vfork fork
24816 _ACEOF
24819 if test "x$ac_cv_func_fork_works" = xyes; then
24821 cat >>confdefs.h <<\_ACEOF
24822 #define HAVE_WORKING_FORK 1
24823 _ACEOF
24828 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24829 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24830 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24831 $as_echo_n "(cached) " >&6
24832 else
24833 cat >conftest.$ac_ext <<_ACEOF
24834 /* confdefs.h. */
24835 _ACEOF
24836 cat confdefs.h >>conftest.$ac_ext
24837 cat >>conftest.$ac_ext <<_ACEOF
24838 /* end confdefs.h. */
24839 #include <langinfo.h>
24841 main ()
24843 char* cs = nl_langinfo(CODESET);
24845 return 0;
24847 _ACEOF
24848 rm -f conftest.$ac_objext conftest$ac_exeext
24849 if { (ac_try="$ac_link"
24850 case "(($ac_try" in
24851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852 *) ac_try_echo=$ac_try;;
24853 esac
24854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24855 $as_echo "$ac_try_echo") >&5
24856 (eval "$ac_link") 2>conftest.er1
24857 ac_status=$?
24858 grep -v '^ *+' conftest.er1 >conftest.err
24859 rm -f conftest.er1
24860 cat conftest.err >&5
24861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); } && {
24863 test -z "$ac_c_werror_flag" ||
24864 test ! -s conftest.err
24865 } && test -s conftest$ac_exeext && {
24866 test "$cross_compiling" = yes ||
24867 $as_test_x conftest$ac_exeext
24868 }; then
24869 emacs_cv_langinfo_codeset=yes
24870 else
24871 $as_echo "$as_me: failed program was:" >&5
24872 sed 's/^/| /' conftest.$ac_ext >&5
24874 emacs_cv_langinfo_codeset=no
24877 rm -rf conftest.dSYM
24878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24879 conftest$ac_exeext conftest.$ac_ext
24882 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24883 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24884 if test $emacs_cv_langinfo_codeset = yes; then
24886 cat >>confdefs.h <<\_ACEOF
24887 #define HAVE_LANGINFO_CODESET 1
24888 _ACEOF
24892 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24893 $as_echo_n "checking for size_t... " >&6; }
24894 if test "${ac_cv_type_size_t+set}" = set; then
24895 $as_echo_n "(cached) " >&6
24896 else
24897 ac_cv_type_size_t=no
24898 cat >conftest.$ac_ext <<_ACEOF
24899 /* confdefs.h. */
24900 _ACEOF
24901 cat confdefs.h >>conftest.$ac_ext
24902 cat >>conftest.$ac_ext <<_ACEOF
24903 /* end confdefs.h. */
24904 $ac_includes_default
24906 main ()
24908 if (sizeof (size_t))
24909 return 0;
24911 return 0;
24913 _ACEOF
24914 rm -f conftest.$ac_objext
24915 if { (ac_try="$ac_compile"
24916 case "(($ac_try" in
24917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24918 *) ac_try_echo=$ac_try;;
24919 esac
24920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24921 $as_echo "$ac_try_echo") >&5
24922 (eval "$ac_compile") 2>conftest.er1
24923 ac_status=$?
24924 grep -v '^ *+' conftest.er1 >conftest.err
24925 rm -f conftest.er1
24926 cat conftest.err >&5
24927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); } && {
24929 test -z "$ac_c_werror_flag" ||
24930 test ! -s conftest.err
24931 } && test -s conftest.$ac_objext; then
24932 cat >conftest.$ac_ext <<_ACEOF
24933 /* confdefs.h. */
24934 _ACEOF
24935 cat confdefs.h >>conftest.$ac_ext
24936 cat >>conftest.$ac_ext <<_ACEOF
24937 /* end confdefs.h. */
24938 $ac_includes_default
24940 main ()
24942 if (sizeof ((size_t)))
24943 return 0;
24945 return 0;
24947 _ACEOF
24948 rm -f conftest.$ac_objext
24949 if { (ac_try="$ac_compile"
24950 case "(($ac_try" in
24951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24952 *) ac_try_echo=$ac_try;;
24953 esac
24954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24955 $as_echo "$ac_try_echo") >&5
24956 (eval "$ac_compile") 2>conftest.er1
24957 ac_status=$?
24958 grep -v '^ *+' conftest.er1 >conftest.err
24959 rm -f conftest.er1
24960 cat conftest.err >&5
24961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); } && {
24963 test -z "$ac_c_werror_flag" ||
24964 test ! -s conftest.err
24965 } && test -s conftest.$ac_objext; then
24967 else
24968 $as_echo "$as_me: failed program was:" >&5
24969 sed 's/^/| /' conftest.$ac_ext >&5
24971 ac_cv_type_size_t=yes
24974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24975 else
24976 $as_echo "$as_me: failed program was:" >&5
24977 sed 's/^/| /' conftest.$ac_ext >&5
24982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24984 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24985 $as_echo "$ac_cv_type_size_t" >&6; }
24986 if test $ac_cv_type_size_t = yes; then
24988 cat >>confdefs.h <<_ACEOF
24989 #define HAVE_SIZE_T 1
24990 _ACEOF
24996 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
24997 $as_echo_n "checking for mbstate_t... " >&6; }
24998 if test "${ac_cv_type_mbstate_t+set}" = set; then
24999 $as_echo_n "(cached) " >&6
25000 else
25001 cat >conftest.$ac_ext <<_ACEOF
25002 /* confdefs.h. */
25003 _ACEOF
25004 cat confdefs.h >>conftest.$ac_ext
25005 cat >>conftest.$ac_ext <<_ACEOF
25006 /* end confdefs.h. */
25007 $ac_includes_default
25008 # include <wchar.h>
25010 main ()
25012 mbstate_t x; return sizeof x;
25014 return 0;
25016 _ACEOF
25017 rm -f conftest.$ac_objext
25018 if { (ac_try="$ac_compile"
25019 case "(($ac_try" in
25020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021 *) ac_try_echo=$ac_try;;
25022 esac
25023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25024 $as_echo "$ac_try_echo") >&5
25025 (eval "$ac_compile") 2>conftest.er1
25026 ac_status=$?
25027 grep -v '^ *+' conftest.er1 >conftest.err
25028 rm -f conftest.er1
25029 cat conftest.err >&5
25030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031 (exit $ac_status); } && {
25032 test -z "$ac_c_werror_flag" ||
25033 test ! -s conftest.err
25034 } && test -s conftest.$ac_objext; then
25035 ac_cv_type_mbstate_t=yes
25036 else
25037 $as_echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25040 ac_cv_type_mbstate_t=no
25043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25045 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25046 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25047 if test $ac_cv_type_mbstate_t = yes; then
25049 cat >>confdefs.h <<\_ACEOF
25050 #define HAVE_MBSTATE_T 1
25051 _ACEOF
25053 else
25055 cat >>confdefs.h <<\_ACEOF
25056 #define mbstate_t int
25057 _ACEOF
25061 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25062 $as_echo_n "checking for C restrict keyword... " >&6; }
25063 if test "${emacs_cv_c_restrict+set}" = set; then
25064 $as_echo_n "(cached) " >&6
25065 else
25066 cat >conftest.$ac_ext <<_ACEOF
25067 /* confdefs.h. */
25068 _ACEOF
25069 cat confdefs.h >>conftest.$ac_ext
25070 cat >>conftest.$ac_ext <<_ACEOF
25071 /* end confdefs.h. */
25072 void fred (int *restrict x);
25074 main ()
25078 return 0;
25080 _ACEOF
25081 rm -f conftest.$ac_objext
25082 if { (ac_try="$ac_compile"
25083 case "(($ac_try" in
25084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25085 *) ac_try_echo=$ac_try;;
25086 esac
25087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25088 $as_echo "$ac_try_echo") >&5
25089 (eval "$ac_compile") 2>conftest.er1
25090 ac_status=$?
25091 grep -v '^ *+' conftest.er1 >conftest.err
25092 rm -f conftest.er1
25093 cat conftest.err >&5
25094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); } && {
25096 test -z "$ac_c_werror_flag" ||
25097 test ! -s conftest.err
25098 } && test -s conftest.$ac_objext; then
25099 emacs_cv_c_restrict=yes
25100 else
25101 $as_echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25104 cat >conftest.$ac_ext <<_ACEOF
25105 /* confdefs.h. */
25106 _ACEOF
25107 cat confdefs.h >>conftest.$ac_ext
25108 cat >>conftest.$ac_ext <<_ACEOF
25109 /* end confdefs.h. */
25110 void fred (int *__restrict x);
25112 main ()
25116 return 0;
25118 _ACEOF
25119 rm -f conftest.$ac_objext
25120 if { (ac_try="$ac_compile"
25121 case "(($ac_try" in
25122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25123 *) ac_try_echo=$ac_try;;
25124 esac
25125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25126 $as_echo "$ac_try_echo") >&5
25127 (eval "$ac_compile") 2>conftest.er1
25128 ac_status=$?
25129 grep -v '^ *+' conftest.er1 >conftest.err
25130 rm -f conftest.er1
25131 cat conftest.err >&5
25132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); } && {
25134 test -z "$ac_c_werror_flag" ||
25135 test ! -s conftest.err
25136 } && test -s conftest.$ac_objext; then
25137 emacs_cv_c_restrict=__restrict
25138 else
25139 $as_echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25142 emacs_cv_c_restrict=no
25145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25150 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25151 $as_echo "$emacs_cv_c_restrict" >&6; }
25152 case "$emacs_cv_c_restrict" in
25153 yes) emacs_restrict=restrict;;
25154 no) emacs_restrict="";;
25155 *) emacs_restrict="$emacs_cv_c_restrict";;
25156 esac
25157 if test "$emacs_restrict" != __restrict; then
25159 cat >>confdefs.h <<_ACEOF
25160 #define __restrict $emacs_restrict
25161 _ACEOF
25165 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25166 $as_echo_n "checking for C restricted array declarations... " >&6; }
25167 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25168 $as_echo_n "(cached) " >&6
25169 else
25170 cat >conftest.$ac_ext <<_ACEOF
25171 /* confdefs.h. */
25172 _ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h. */
25176 void fred (int x[__restrict]);
25178 main ()
25182 return 0;
25184 _ACEOF
25185 rm -f conftest.$ac_objext
25186 if { (ac_try="$ac_compile"
25187 case "(($ac_try" in
25188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25189 *) ac_try_echo=$ac_try;;
25190 esac
25191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25192 $as_echo "$ac_try_echo") >&5
25193 (eval "$ac_compile") 2>conftest.er1
25194 ac_status=$?
25195 grep -v '^ *+' conftest.er1 >conftest.err
25196 rm -f conftest.er1
25197 cat conftest.err >&5
25198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } && {
25200 test -z "$ac_c_werror_flag" ||
25201 test ! -s conftest.err
25202 } && test -s conftest.$ac_objext; then
25203 emacs_cv_c_restrict_arr=yes
25204 else
25205 $as_echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25208 emacs_cv_c_restrict_arr=no
25211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25213 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25214 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25215 if test "$emacs_cv_c_restrict_arr" = yes; then
25217 cat >>confdefs.h <<\_ACEOF
25218 #define __restrict_arr __restrict
25219 _ACEOF
25225 # Set up the CFLAGS for real compilation, so we can substitute it.
25226 CFLAGS="$REAL_CFLAGS"
25227 CPPFLAGS="$REAL_CPPFLAGS"
25229 #### Find out which version of Emacs this is.
25230 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25231 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25232 if test x"${version}" = x; then
25233 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25234 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25235 { (exit 1); exit 1; }; }
25237 if test x"${version}" != x"$PACKAGE_VERSION"; then
25238 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25239 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25242 ### Specify what sort of things we'll be editing into Makefile and config.h.
25243 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25288 cat >>confdefs.h <<_ACEOF
25289 #define EMACS_CONFIGURATION "${canonical}"
25290 _ACEOF
25293 cat >>confdefs.h <<_ACEOF
25294 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25295 _ACEOF
25298 cat >>confdefs.h <<_ACEOF
25299 #define config_machfile "${machfile}"
25300 _ACEOF
25303 cat >>confdefs.h <<_ACEOF
25304 #define config_opsysfile "${opsysfile}"
25305 _ACEOF
25308 cat >>confdefs.h <<_ACEOF
25309 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25310 _ACEOF
25313 cat >>confdefs.h <<_ACEOF
25314 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25315 _ACEOF
25318 cat >>confdefs.h <<_ACEOF
25319 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25320 _ACEOF
25323 cat >>confdefs.h <<_ACEOF
25324 #define UNEXEC_SRC ${UNEXEC_SRC}
25325 _ACEOF
25328 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25330 cat >>confdefs.h <<\_ACEOF
25331 #define HAVE_X_WINDOWS 1
25332 _ACEOF
25335 if test "${USE_X_TOOLKIT}" != "none" ; then
25337 cat >>confdefs.h <<\_ACEOF
25338 #define USE_X_TOOLKIT 1
25339 _ACEOF
25341 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25343 cat >>confdefs.h <<\_ACEOF
25344 #define USE_LUCID 1
25345 _ACEOF
25347 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25349 cat >>confdefs.h <<\_ACEOF
25350 #define USE_MOTIF 1
25351 _ACEOF
25355 if test "${HAVE_X11}" = "yes" ; then
25357 cat >>confdefs.h <<\_ACEOF
25358 #define HAVE_X11 1
25359 _ACEOF
25362 if test "${HAVE_MENUS}" = "yes" ; then
25364 cat >>confdefs.h <<\_ACEOF
25365 #define HAVE_MENUS 1
25366 _ACEOF
25369 if test "${GNU_MALLOC}" = "yes" ; then
25371 cat >>confdefs.h <<\_ACEOF
25372 #define GNU_MALLOC 1
25373 _ACEOF
25376 if test "${REL_ALLOC}" = "yes" ; then
25378 cat >>confdefs.h <<\_ACEOF
25379 #define REL_ALLOC 1
25380 _ACEOF
25389 #### Report on what we decided to do.
25390 #### Report GTK as a toolkit, even if it doesn't use Xt.
25391 #### It makes printing result more understandable as using GTK sets
25392 #### toolkit_scroll_bars to yes by default.
25393 if test "${HAVE_GTK}" = "yes"; then
25394 USE_X_TOOLKIT=GTK
25397 echo "
25398 Configured for \`${canonical}'.
25400 Where should the build process find the source code? ${srcdir}
25401 What operating system and machine description files should Emacs use?
25402 \`${opsysfile}' and \`${machfile}'
25403 What compiler should emacs be built with? ${CC} ${CFLAGS}
25404 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25405 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25406 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25407 What window system should Emacs use? ${window_system}
25408 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25410 if test -n "${x_includes}"; then
25411 echo " Where do we find X Windows header files? ${x_includes}"
25412 else
25413 echo " Where do we find X Windows header files? Standard dirs"
25415 if test -n "${x_libraries}"; then
25416 echo " Where do we find X Windows libraries? ${x_libraries}"
25417 else
25418 echo " Where do we find X Windows libraries? Standard dirs"
25421 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25422 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25423 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25424 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25425 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25426 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25427 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25428 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25429 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25431 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25432 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25433 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25434 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25436 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25437 echo
25439 if test $USE_XASSERTS = yes; then
25440 echo " Compiling with asserts turned on."
25441 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25444 echo
25446 if test "$USE_X_TOOLKIT" = GTK; then
25447 case "$canonical" in
25448 *cygwin*)
25449 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25450 will probably get a crash on startup. If this happens, please use another
25451 toolkit for Emacs. See etc/PROBLEMS for more information."
25453 esac
25456 if test "$HAVE_NS" = "yes"; then
25457 echo
25458 echo "You must run \"make install\" in order to test the built application.
25459 The installed application will go to nextstep/Emacs.app and can be
25460 run or moved from there."
25461 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25462 echo "The application will be fully self-contained."
25463 else
25464 echo "The lisp resources for the application will be installed under ${prefix}.
25465 You may need to run \"make install\" with sudo. The application will fail
25466 to run if these resources are not installed."
25468 echo
25471 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25472 echo "D-Bus integration has been tested for GNU/Linux only."
25473 echo
25477 # Remove any trailing slashes in these variables.
25478 test "${prefix}" != NONE &&
25479 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25480 test "${exec_prefix}" != NONE &&
25481 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25483 # Now get this: Some word that is part of the ${srcdir} directory name
25484 # or the ${configuration} value might, just might, happen to be an
25485 # identifier like `sun4' or `i386' or something, and be predefined by
25486 # the C preprocessor to some helpful value like 1, or maybe the empty
25487 # string. Needless to say consequent macro substitutions are less
25488 # than conducive to the makefile finding the correct directory.
25489 cpp_undefs="`echo $srcdir $configuration $canonical |
25490 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25491 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25493 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25494 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25495 ## from Makefile.c can correctly provide the arg `-traditional' to the
25496 ## C preprocessor.
25498 cat >conftest.$ac_ext <<_ACEOF
25499 /* confdefs.h. */
25500 _ACEOF
25501 cat confdefs.h >>conftest.$ac_ext
25502 cat >>conftest.$ac_ext <<_ACEOF
25503 /* end confdefs.h. */
25504 yes..yes
25505 _ACEOF
25506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25507 $EGREP "yes..yes" >/dev/null 2>&1; then
25508 CPP_NEED_TRADITIONAL=no
25509 else
25510 CPP_NEED_TRADITIONAL=yes
25512 rm -f conftest*
25515 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"
25517 ac_config_commands="$ac_config_commands default"
25519 cat >confcache <<\_ACEOF
25520 # This file is a shell script that caches the results of configure
25521 # tests run on this system so they can be shared between configure
25522 # scripts and configure runs, see configure's option --config-cache.
25523 # It is not useful on other systems. If it contains results you don't
25524 # want to keep, you may remove or edit it.
25526 # config.status only pays attention to the cache file if you give it
25527 # the --recheck option to rerun configure.
25529 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25530 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25531 # following values.
25533 _ACEOF
25535 # The following way of writing the cache mishandles newlines in values,
25536 # but we know of no workaround that is simple, portable, and efficient.
25537 # So, we kill variables containing newlines.
25538 # Ultrix sh set writes to stderr and can't be redirected directly,
25539 # and sets the high bit in the cache file unless we assign to the vars.
25541 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25542 eval ac_val=\$$ac_var
25543 case $ac_val in #(
25544 *${as_nl}*)
25545 case $ac_var in #(
25546 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25547 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25548 esac
25549 case $ac_var in #(
25550 _ | IFS | as_nl) ;; #(
25551 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25552 *) $as_unset $ac_var ;;
25553 esac ;;
25554 esac
25555 done
25557 (set) 2>&1 |
25558 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25559 *${as_nl}ac_space=\ *)
25560 # `set' does not quote correctly, so add quotes (double-quote
25561 # substitution turns \\\\ into \\, and sed turns \\ into \).
25562 sed -n \
25563 "s/'/'\\\\''/g;
25564 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25565 ;; #(
25567 # `set' quotes correctly as required by POSIX, so do not add quotes.
25568 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25570 esac |
25571 sort
25573 sed '
25574 /^ac_cv_env_/b end
25575 t clear
25576 :clear
25577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25578 t end
25579 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25580 :end' >>confcache
25581 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25582 if test -w "$cache_file"; then
25583 test "x$cache_file" != "x/dev/null" &&
25584 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25585 $as_echo "$as_me: updating cache $cache_file" >&6;}
25586 cat confcache >$cache_file
25587 else
25588 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25589 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25592 rm -f confcache
25594 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25595 # Let make expand exec_prefix.
25596 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25598 DEFS=-DHAVE_CONFIG_H
25600 ac_libobjs=
25601 ac_ltlibobjs=
25602 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25603 # 1. Remove the extension, and $U if already installed.
25604 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25605 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25606 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25607 # will be set to the directory where LIBOBJS objects are built.
25608 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25609 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25610 done
25611 LIBOBJS=$ac_libobjs
25613 LTLIBOBJS=$ac_ltlibobjs
25617 : ${CONFIG_STATUS=./config.status}
25618 ac_write_fail=0
25619 ac_clean_files_save=$ac_clean_files
25620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25621 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25622 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25623 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25624 #! $SHELL
25625 # Generated by $as_me.
25626 # Run this file to recreate the current configuration.
25627 # Compiler output produced by configure, useful for debugging
25628 # configure, is in config.log if it exists.
25630 debug=false
25631 ac_cs_recheck=false
25632 ac_cs_silent=false
25633 SHELL=\${CONFIG_SHELL-$SHELL}
25634 _ACEOF
25636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25637 ## --------------------- ##
25638 ## M4sh Initialization. ##
25639 ## --------------------- ##
25641 # Be more Bourne compatible
25642 DUALCASE=1; export DUALCASE # for MKS sh
25643 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25644 emulate sh
25645 NULLCMD=:
25646 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25647 # is contrary to our usage. Disable this feature.
25648 alias -g '${1+"$@"}'='"$@"'
25649 setopt NO_GLOB_SUBST
25650 else
25651 case `(set -o) 2>/dev/null` in
25652 *posix*) set -o posix ;;
25653 esac
25660 # PATH needs CR
25661 # Avoid depending upon Character Ranges.
25662 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25663 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25664 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25665 as_cr_digits='0123456789'
25666 as_cr_alnum=$as_cr_Letters$as_cr_digits
25668 as_nl='
25670 export as_nl
25671 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25672 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25673 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25675 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25676 as_echo='printf %s\n'
25677 as_echo_n='printf %s'
25678 else
25679 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25680 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25681 as_echo_n='/usr/ucb/echo -n'
25682 else
25683 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25684 as_echo_n_body='eval
25685 arg=$1;
25686 case $arg in
25687 *"$as_nl"*)
25688 expr "X$arg" : "X\\(.*\\)$as_nl";
25689 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25690 esac;
25691 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25693 export as_echo_n_body
25694 as_echo_n='sh -c $as_echo_n_body as_echo'
25696 export as_echo_body
25697 as_echo='sh -c $as_echo_body as_echo'
25700 # The user is always right.
25701 if test "${PATH_SEPARATOR+set}" != set; then
25702 PATH_SEPARATOR=:
25703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25704 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25705 PATH_SEPARATOR=';'
25709 # Support unset when possible.
25710 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25711 as_unset=unset
25712 else
25713 as_unset=false
25717 # IFS
25718 # We need space, tab and new line, in precisely that order. Quoting is
25719 # there to prevent editors from complaining about space-tab.
25720 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25721 # splitting by setting IFS to empty value.)
25722 IFS=" "" $as_nl"
25724 # Find who we are. Look in the path if we contain no directory separator.
25725 case $0 in
25726 *[\\/]* ) as_myself=$0 ;;
25727 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25728 for as_dir in $PATH
25730 IFS=$as_save_IFS
25731 test -z "$as_dir" && as_dir=.
25732 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25733 done
25734 IFS=$as_save_IFS
25737 esac
25738 # We did not find ourselves, most probably we were run as `sh COMMAND'
25739 # in which case we are not to be found in the path.
25740 if test "x$as_myself" = x; then
25741 as_myself=$0
25743 if test ! -f "$as_myself"; then
25744 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25745 { (exit 1); exit 1; }
25748 # Work around bugs in pre-3.0 UWIN ksh.
25749 for as_var in ENV MAIL MAILPATH
25750 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25751 done
25752 PS1='$ '
25753 PS2='> '
25754 PS4='+ '
25756 # NLS nuisances.
25757 LC_ALL=C
25758 export LC_ALL
25759 LANGUAGE=C
25760 export LANGUAGE
25762 # Required to use basename.
25763 if expr a : '\(a\)' >/dev/null 2>&1 &&
25764 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25765 as_expr=expr
25766 else
25767 as_expr=false
25770 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25771 as_basename=basename
25772 else
25773 as_basename=false
25777 # Name of the executable.
25778 as_me=`$as_basename -- "$0" ||
25779 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25780 X"$0" : 'X\(//\)$' \| \
25781 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25782 $as_echo X/"$0" |
25783 sed '/^.*\/\([^/][^/]*\)\/*$/{
25784 s//\1/
25787 /^X\/\(\/\/\)$/{
25788 s//\1/
25791 /^X\/\(\/\).*/{
25792 s//\1/
25795 s/.*/./; q'`
25797 # CDPATH.
25798 $as_unset CDPATH
25802 as_lineno_1=$LINENO
25803 as_lineno_2=$LINENO
25804 test "x$as_lineno_1" != "x$as_lineno_2" &&
25805 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25807 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25808 # uniformly replaced by the line number. The first 'sed' inserts a
25809 # line-number line after each line using $LINENO; the second 'sed'
25810 # does the real work. The second script uses 'N' to pair each
25811 # line-number line with the line containing $LINENO, and appends
25812 # trailing '-' during substitution so that $LINENO is not a special
25813 # case at line end.
25814 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25815 # scripts with optimization help from Paolo Bonzini. Blame Lee
25816 # E. McMahon (1931-1989) for sed's syntax. :-)
25817 sed -n '
25819 /[$]LINENO/=
25820 ' <$as_myself |
25821 sed '
25822 s/[$]LINENO.*/&-/
25823 t lineno
25825 :lineno
25827 :loop
25828 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25829 t loop
25830 s/-\n.*//
25831 ' >$as_me.lineno &&
25832 chmod +x "$as_me.lineno" ||
25833 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25834 { (exit 1); exit 1; }; }
25836 # Don't try to exec as it changes $[0], causing all sort of problems
25837 # (the dirname of $[0] is not the place where we might find the
25838 # original and so on. Autoconf is especially sensitive to this).
25839 . "./$as_me.lineno"
25840 # Exit status is that of the last command.
25841 exit
25845 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25846 as_dirname=dirname
25847 else
25848 as_dirname=false
25851 ECHO_C= ECHO_N= ECHO_T=
25852 case `echo -n x` in
25853 -n*)
25854 case `echo 'x\c'` in
25855 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25856 *) ECHO_C='\c';;
25857 esac;;
25859 ECHO_N='-n';;
25860 esac
25861 if expr a : '\(a\)' >/dev/null 2>&1 &&
25862 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25863 as_expr=expr
25864 else
25865 as_expr=false
25868 rm -f conf$$ conf$$.exe conf$$.file
25869 if test -d conf$$.dir; then
25870 rm -f conf$$.dir/conf$$.file
25871 else
25872 rm -f conf$$.dir
25873 mkdir conf$$.dir 2>/dev/null
25875 if (echo >conf$$.file) 2>/dev/null; then
25876 if ln -s conf$$.file conf$$ 2>/dev/null; then
25877 as_ln_s='ln -s'
25878 # ... but there are two gotchas:
25879 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25880 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25881 # In both cases, we have to default to `cp -p'.
25882 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25883 as_ln_s='cp -p'
25884 elif ln conf$$.file conf$$ 2>/dev/null; then
25885 as_ln_s=ln
25886 else
25887 as_ln_s='cp -p'
25889 else
25890 as_ln_s='cp -p'
25892 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25893 rmdir conf$$.dir 2>/dev/null
25895 if mkdir -p . 2>/dev/null; then
25896 as_mkdir_p=:
25897 else
25898 test -d ./-p && rmdir ./-p
25899 as_mkdir_p=false
25902 if test -x / >/dev/null 2>&1; then
25903 as_test_x='test -x'
25904 else
25905 if ls -dL / >/dev/null 2>&1; then
25906 as_ls_L_option=L
25907 else
25908 as_ls_L_option=
25910 as_test_x='
25911 eval sh -c '\''
25912 if test -d "$1"; then
25913 test -d "$1/.";
25914 else
25915 case $1 in
25916 -*)set "./$1";;
25917 esac;
25918 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25919 ???[sx]*):;;*)false;;esac;fi
25920 '\'' sh
25923 as_executable_p=$as_test_x
25925 # Sed expression to map a string onto a valid CPP name.
25926 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25928 # Sed expression to map a string onto a valid variable name.
25929 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25932 exec 6>&1
25934 # Save the log message, to keep $[0] and so on meaningful, and to
25935 # report actual input values of CONFIG_FILES etc. instead of their
25936 # values after options handling.
25937 ac_log="
25938 This file was extended by emacs $as_me 23.1.50, which was
25939 generated by GNU Autoconf 2.62. Invocation command line was
25941 CONFIG_FILES = $CONFIG_FILES
25942 CONFIG_HEADERS = $CONFIG_HEADERS
25943 CONFIG_LINKS = $CONFIG_LINKS
25944 CONFIG_COMMANDS = $CONFIG_COMMANDS
25945 $ $0 $@
25947 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25950 _ACEOF
25952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25953 # Files that config.status was made for.
25954 config_files="$ac_config_files"
25955 config_headers="$ac_config_headers"
25956 config_commands="$ac_config_commands"
25958 _ACEOF
25960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25961 ac_cs_usage="\
25962 \`$as_me' instantiates files from templates according to the
25963 current configuration.
25965 Usage: $0 [OPTIONS] [FILE]...
25967 -h, --help print this help, then exit
25968 -V, --version print version number and configuration settings, then exit
25969 -q, --quiet do not print progress messages
25970 -d, --debug don't remove temporary files
25971 --recheck update $as_me by reconfiguring in the same conditions
25972 --file=FILE[:TEMPLATE]
25973 instantiate the configuration file FILE
25974 --header=FILE[:TEMPLATE]
25975 instantiate the configuration header FILE
25977 Configuration files:
25978 $config_files
25980 Configuration headers:
25981 $config_headers
25983 Configuration commands:
25984 $config_commands
25986 Report bugs to <bug-autoconf@gnu.org>."
25988 _ACEOF
25989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25990 ac_cs_version="\\
25991 emacs config.status 23.1.50
25992 configured by $0, generated by GNU Autoconf 2.62,
25993 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25995 Copyright (C) 2008 Free Software Foundation, Inc.
25996 This config.status script is free software; the Free Software Foundation
25997 gives unlimited permission to copy, distribute and modify it."
25999 ac_pwd='$ac_pwd'
26000 srcdir='$srcdir'
26001 INSTALL='$INSTALL'
26002 test -n "\$AWK" || AWK=awk
26003 _ACEOF
26005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26006 # The default lists apply if the user does not specify any file.
26007 ac_need_defaults=:
26008 while test $# != 0
26010 case $1 in
26011 --*=*)
26012 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26013 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26014 ac_shift=:
26017 ac_option=$1
26018 ac_optarg=$2
26019 ac_shift=shift
26021 esac
26023 case $ac_option in
26024 # Handling of the options.
26025 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26026 ac_cs_recheck=: ;;
26027 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26028 $as_echo "$ac_cs_version"; exit ;;
26029 --debug | --debu | --deb | --de | --d | -d )
26030 debug=: ;;
26031 --file | --fil | --fi | --f )
26032 $ac_shift
26033 case $ac_optarg in
26034 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26035 esac
26036 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26037 ac_need_defaults=false;;
26038 --header | --heade | --head | --hea )
26039 $ac_shift
26040 case $ac_optarg in
26041 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26042 esac
26043 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26044 ac_need_defaults=false;;
26045 --he | --h)
26046 # Conflict between --help and --header
26047 { $as_echo "$as_me: error: ambiguous option: $1
26048 Try \`$0 --help' for more information." >&2
26049 { (exit 1); exit 1; }; };;
26050 --help | --hel | -h )
26051 $as_echo "$ac_cs_usage"; exit ;;
26052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26053 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26054 ac_cs_silent=: ;;
26056 # This is an error.
26057 -*) { $as_echo "$as_me: error: unrecognized option: $1
26058 Try \`$0 --help' for more information." >&2
26059 { (exit 1); exit 1; }; } ;;
26061 *) ac_config_targets="$ac_config_targets $1"
26062 ac_need_defaults=false ;;
26064 esac
26065 shift
26066 done
26068 ac_configure_extra_args=
26070 if $ac_cs_silent; then
26071 exec 6>/dev/null
26072 ac_configure_extra_args="$ac_configure_extra_args --silent"
26075 _ACEOF
26076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26077 if \$ac_cs_recheck; then
26078 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26079 shift
26080 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26081 CONFIG_SHELL='$SHELL'
26082 export CONFIG_SHELL
26083 exec "\$@"
26086 _ACEOF
26087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26088 exec 5>>config.log
26090 echo
26091 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26092 ## Running $as_me. ##
26093 _ASBOX
26094 $as_echo "$ac_log"
26095 } >&5
26097 _ACEOF
26098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26100 # INIT-COMMANDS
26102 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26104 _ACEOF
26106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26108 # Handling of arguments.
26109 for ac_config_target in $ac_config_targets
26111 case $ac_config_target in
26112 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26113 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26114 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26115 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26116 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26117 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26118 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26119 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26120 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26121 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26122 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26123 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26124 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26126 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26127 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26128 { (exit 1); exit 1; }; };;
26129 esac
26130 done
26133 # If the user did not use the arguments to specify the items to instantiate,
26134 # then the envvar interface is used. Set only those that are not.
26135 # We use the long form for the default assignment because of an extremely
26136 # bizarre bug on SunOS 4.1.3.
26137 if $ac_need_defaults; then
26138 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26139 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26140 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26143 # Have a temporary directory for convenience. Make it in the build tree
26144 # simply because there is no reason against having it here, and in addition,
26145 # creating and moving files from /tmp can sometimes cause problems.
26146 # Hook for its removal unless debugging.
26147 # Note that there is a small window in which the directory will not be cleaned:
26148 # after its creation but before its name has been assigned to `$tmp'.
26149 $debug ||
26151 tmp=
26152 trap 'exit_status=$?
26153 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26155 trap '{ (exit 1); exit 1; }' 1 2 13 15
26157 # Create a (secure) tmp directory for tmp files.
26160 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26161 test -n "$tmp" && test -d "$tmp"
26162 } ||
26164 tmp=./conf$$-$RANDOM
26165 (umask 077 && mkdir "$tmp")
26166 } ||
26168 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26169 { (exit 1); exit 1; }
26172 # Set up the scripts for CONFIG_FILES section.
26173 # No need to generate them if there are no CONFIG_FILES.
26174 # This happens for instance with `./config.status config.h'.
26175 if test -n "$CONFIG_FILES"; then
26178 ac_cr=' '
26179 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26180 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26181 ac_cs_awk_cr='\\r'
26182 else
26183 ac_cs_awk_cr=$ac_cr
26186 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26187 _ACEOF
26191 echo "cat >conf$$subs.awk <<_ACEOF" &&
26192 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26193 echo "_ACEOF"
26194 } >conf$$subs.sh ||
26195 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26196 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26197 { (exit 1); exit 1; }; }
26198 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26199 ac_delim='%!_!# '
26200 for ac_last_try in false false false false false :; do
26201 . ./conf$$subs.sh ||
26202 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26203 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26204 { (exit 1); exit 1; }; }
26206 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26207 break
26208 elif $ac_last_try; then
26209 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26210 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26211 { (exit 1); exit 1; }; }
26212 else
26213 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26215 done
26216 rm -f conf$$subs.sh
26218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26219 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26220 _ACEOF
26221 sed -n '
26223 s/^/S["/; s/!.*/"]=/
26226 s/^[^!]*!//
26227 :repl
26228 t repl
26229 s/'"$ac_delim"'$//
26230 t delim
26233 s/\(.\{148\}\).*/\1/
26234 t more1
26235 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26238 b repl
26239 :more1
26240 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26243 s/.\{148\}//
26244 t nl
26245 :delim
26247 s/\(.\{148\}\).*/\1/
26248 t more2
26249 s/["\\]/\\&/g; s/^/"/; s/$/"/
26252 :more2
26253 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26256 s/.\{148\}//
26257 t delim
26258 ' <conf$$subs.awk | sed '
26259 /^[^""]/{
26261 s/\n//
26263 ' >>$CONFIG_STATUS || ac_write_fail=1
26264 rm -f conf$$subs.awk
26265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26266 _ACAWK
26267 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26268 for (key in S) S_is_set[key] = 1
26269 FS = "\a"
26273 line = $ 0
26274 nfields = split(line, field, "@")
26275 substed = 0
26276 len = length(field[1])
26277 for (i = 2; i < nfields; i++) {
26278 key = field[i]
26279 keylen = length(key)
26280 if (S_is_set[key]) {
26281 value = S[key]
26282 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26283 len += length(value) + length(field[++i])
26284 substed = 1
26285 } else
26286 len += 1 + keylen
26289 print line
26292 _ACAWK
26293 _ACEOF
26294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26295 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26296 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26297 else
26299 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26300 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26301 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26302 { (exit 1); exit 1; }; }
26303 _ACEOF
26305 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26306 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26307 # trailing colons and then remove the whole line if VPATH becomes empty
26308 # (actually we leave an empty line to preserve line numbers).
26309 if test "x$srcdir" = x.; then
26310 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26311 s/:*\$(srcdir):*/:/
26312 s/:*\${srcdir}:*/:/
26313 s/:*@srcdir@:*/:/
26314 s/^\([^=]*=[ ]*\):*/\1/
26315 s/:*$//
26316 s/^[^=]*=[ ]*$//
26320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26321 fi # test -n "$CONFIG_FILES"
26323 # Set up the scripts for CONFIG_HEADERS section.
26324 # No need to generate them if there are no CONFIG_HEADERS.
26325 # This happens for instance with `./config.status Makefile'.
26326 if test -n "$CONFIG_HEADERS"; then
26327 cat >"$tmp/defines.awk" <<\_ACAWK ||
26328 BEGIN {
26329 _ACEOF
26331 # Transform confdefs.h into an awk script `defines.awk', embedded as
26332 # here-document in config.status, that substitutes the proper values into
26333 # config.h.in to produce config.h.
26335 # Create a delimiter string that does not exist in confdefs.h, to ease
26336 # handling of long lines.
26337 ac_delim='%!_!# '
26338 for ac_last_try in false false :; do
26339 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26340 if test -z "$ac_t"; then
26341 break
26342 elif $ac_last_try; then
26343 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26344 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26345 { (exit 1); exit 1; }; }
26346 else
26347 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26349 done
26351 # For the awk script, D is an array of macro values keyed by name,
26352 # likewise P contains macro parameters if any. Preserve backslash
26353 # newline sequences.
26355 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26356 sed -n '
26357 s/.\{148\}/&'"$ac_delim"'/g
26358 t rset
26359 :rset
26360 s/^[ ]*#[ ]*define[ ][ ]*/ /
26361 t def
26363 :def
26364 s/\\$//
26365 t bsnl
26366 s/["\\]/\\&/g
26367 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26368 D["\1"]=" \3"/p
26369 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26371 :bsnl
26372 s/["\\]/\\&/g
26373 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26374 D["\1"]=" \3\\\\\\n"\\/p
26375 t cont
26376 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26377 t cont
26379 :cont
26381 s/.\{148\}/&'"$ac_delim"'/g
26382 t clear
26383 :clear
26384 s/\\$//
26385 t bsnlc
26386 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26388 :bsnlc
26389 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26390 b cont
26391 ' <confdefs.h | sed '
26392 s/'"$ac_delim"'/"\\\
26393 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26396 for (key in D) D_is_set[key] = 1
26397 FS = "\a"
26399 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26400 line = \$ 0
26401 split(line, arg, " ")
26402 if (arg[1] == "#") {
26403 defundef = arg[2]
26404 mac1 = arg[3]
26405 } else {
26406 defundef = substr(arg[1], 2)
26407 mac1 = arg[2]
26409 split(mac1, mac2, "(") #)
26410 macro = mac2[1]
26411 if (D_is_set[macro]) {
26412 # Preserve the white space surrounding the "#".
26413 prefix = substr(line, 1, index(line, defundef) - 1)
26414 print prefix "define", macro P[macro] D[macro]
26415 next
26416 } else {
26417 # Replace #undef with comments. This is necessary, for example,
26418 # in the case of _POSIX_SOURCE, which is predefined and required
26419 # on some systems where configure will not decide to define it.
26420 if (defundef == "undef") {
26421 print "/*", line, "*/"
26422 next
26426 { print }
26427 _ACAWK
26428 _ACEOF
26429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26430 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26431 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26432 { (exit 1); exit 1; }; }
26433 fi # test -n "$CONFIG_HEADERS"
26436 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26437 shift
26438 for ac_tag
26440 case $ac_tag in
26441 :[FHLC]) ac_mode=$ac_tag; continue;;
26442 esac
26443 case $ac_mode$ac_tag in
26444 :[FHL]*:*);;
26445 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26446 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26447 { (exit 1); exit 1; }; };;
26448 :[FH]-) ac_tag=-:-;;
26449 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26450 esac
26451 ac_save_IFS=$IFS
26452 IFS=:
26453 set x $ac_tag
26454 IFS=$ac_save_IFS
26455 shift
26456 ac_file=$1
26457 shift
26459 case $ac_mode in
26460 :L) ac_source=$1;;
26461 :[FH])
26462 ac_file_inputs=
26463 for ac_f
26465 case $ac_f in
26466 -) ac_f="$tmp/stdin";;
26467 *) # Look for the file first in the build tree, then in the source tree
26468 # (if the path is not absolute). The absolute path cannot be DOS-style,
26469 # because $ac_f cannot contain `:'.
26470 test -f "$ac_f" ||
26471 case $ac_f in
26472 [\\/$]*) false;;
26473 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26474 esac ||
26475 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26476 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26477 { (exit 1); exit 1; }; };;
26478 esac
26479 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26480 ac_file_inputs="$ac_file_inputs '$ac_f'"
26481 done
26483 # Let's still pretend it is `configure' which instantiates (i.e., don't
26484 # use $as_me), people would be surprised to read:
26485 # /* config.h. Generated by config.status. */
26486 configure_input='Generated from '`
26487 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26488 `' by configure.'
26489 if test x"$ac_file" != x-; then
26490 configure_input="$ac_file. $configure_input"
26491 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26492 $as_echo "$as_me: creating $ac_file" >&6;}
26494 # Neutralize special characters interpreted by sed in replacement strings.
26495 case $configure_input in #(
26496 *\&* | *\|* | *\\* )
26497 ac_sed_conf_input=`$as_echo "$configure_input" |
26498 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26499 *) ac_sed_conf_input=$configure_input;;
26500 esac
26502 case $ac_tag in
26503 *:-:* | *:-) cat >"$tmp/stdin" \
26504 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26505 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26506 { (exit 1); exit 1; }; } ;;
26507 esac
26509 esac
26511 ac_dir=`$as_dirname -- "$ac_file" ||
26512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26513 X"$ac_file" : 'X\(//\)[^/]' \| \
26514 X"$ac_file" : 'X\(//\)$' \| \
26515 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26516 $as_echo X"$ac_file" |
26517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26518 s//\1/
26521 /^X\(\/\/\)[^/].*/{
26522 s//\1/
26525 /^X\(\/\/\)$/{
26526 s//\1/
26529 /^X\(\/\).*/{
26530 s//\1/
26533 s/.*/./; q'`
26534 { as_dir="$ac_dir"
26535 case $as_dir in #(
26536 -*) as_dir=./$as_dir;;
26537 esac
26538 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26539 as_dirs=
26540 while :; do
26541 case $as_dir in #(
26542 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26543 *) as_qdir=$as_dir;;
26544 esac
26545 as_dirs="'$as_qdir' $as_dirs"
26546 as_dir=`$as_dirname -- "$as_dir" ||
26547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26548 X"$as_dir" : 'X\(//\)[^/]' \| \
26549 X"$as_dir" : 'X\(//\)$' \| \
26550 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26551 $as_echo X"$as_dir" |
26552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26553 s//\1/
26556 /^X\(\/\/\)[^/].*/{
26557 s//\1/
26560 /^X\(\/\/\)$/{
26561 s//\1/
26564 /^X\(\/\).*/{
26565 s//\1/
26568 s/.*/./; q'`
26569 test -d "$as_dir" && break
26570 done
26571 test -z "$as_dirs" || eval "mkdir $as_dirs"
26572 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26573 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26574 { (exit 1); exit 1; }; }; }
26575 ac_builddir=.
26577 case "$ac_dir" in
26578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26581 # A ".." for each directory in $ac_dir_suffix.
26582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26583 case $ac_top_builddir_sub in
26584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26586 esac ;;
26587 esac
26588 ac_abs_top_builddir=$ac_pwd
26589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26590 # for backward compatibility:
26591 ac_top_builddir=$ac_top_build_prefix
26593 case $srcdir in
26594 .) # We are building in place.
26595 ac_srcdir=.
26596 ac_top_srcdir=$ac_top_builddir_sub
26597 ac_abs_top_srcdir=$ac_pwd ;;
26598 [\\/]* | ?:[\\/]* ) # Absolute name.
26599 ac_srcdir=$srcdir$ac_dir_suffix;
26600 ac_top_srcdir=$srcdir
26601 ac_abs_top_srcdir=$srcdir ;;
26602 *) # Relative name.
26603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26604 ac_top_srcdir=$ac_top_build_prefix$srcdir
26605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26606 esac
26607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26610 case $ac_mode in
26613 # CONFIG_FILE
26616 case $INSTALL in
26617 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26618 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26619 esac
26620 _ACEOF
26622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26623 # If the template does not know about datarootdir, expand it.
26624 # FIXME: This hack should be removed a few years after 2.60.
26625 ac_datarootdir_hack=; ac_datarootdir_seen=
26627 ac_sed_dataroot='
26628 /datarootdir/ {
26632 /@datadir@/p
26633 /@docdir@/p
26634 /@infodir@/p
26635 /@localedir@/p
26636 /@mandir@/p
26638 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26639 *datarootdir*) ac_datarootdir_seen=yes;;
26640 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26641 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26642 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26643 _ACEOF
26644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26645 ac_datarootdir_hack='
26646 s&@datadir@&$datadir&g
26647 s&@docdir@&$docdir&g
26648 s&@infodir@&$infodir&g
26649 s&@localedir@&$localedir&g
26650 s&@mandir@&$mandir&g
26651 s&\\\${datarootdir}&$datarootdir&g' ;;
26652 esac
26653 _ACEOF
26655 # Neutralize VPATH when `$srcdir' = `.'.
26656 # Shell code in configure.ac might set extrasub.
26657 # FIXME: do we really want to maintain this feature?
26658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26659 ac_sed_extra="$ac_vpsub
26660 $extrasub
26661 _ACEOF
26662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26664 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26665 s|@configure_input@|$ac_sed_conf_input|;t t
26666 s&@top_builddir@&$ac_top_builddir_sub&;t t
26667 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26668 s&@srcdir@&$ac_srcdir&;t t
26669 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26670 s&@top_srcdir@&$ac_top_srcdir&;t t
26671 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26672 s&@builddir@&$ac_builddir&;t t
26673 s&@abs_builddir@&$ac_abs_builddir&;t t
26674 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26675 s&@INSTALL@&$ac_INSTALL&;t t
26676 $ac_datarootdir_hack
26678 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26679 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26680 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26681 { (exit 1); exit 1; }; }
26683 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26684 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26685 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26686 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26687 which seems to be undefined. Please make sure it is defined." >&5
26688 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26689 which seems to be undefined. Please make sure it is defined." >&2;}
26691 rm -f "$tmp/stdin"
26692 case $ac_file in
26693 -) cat "$tmp/out" && rm -f "$tmp/out";;
26694 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26695 esac \
26696 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26697 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26698 { (exit 1); exit 1; }; }
26702 # CONFIG_HEADER
26704 if test x"$ac_file" != x-; then
26706 $as_echo "/* $configure_input */" \
26707 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26708 } >"$tmp/config.h" \
26709 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26710 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26711 { (exit 1); exit 1; }; }
26712 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26713 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26714 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26715 else
26716 rm -f "$ac_file"
26717 mv "$tmp/config.h" "$ac_file" \
26718 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26719 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26720 { (exit 1); exit 1; }; }
26722 else
26723 $as_echo "/* $configure_input */" \
26724 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26725 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26726 $as_echo "$as_me: error: could not create -" >&2;}
26727 { (exit 1); exit 1; }; }
26731 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26732 $as_echo "$as_me: executing $ac_file commands" >&6;}
26734 esac
26737 case $ac_file$ac_mode in
26738 "default":C)
26740 ### Make the necessary directories, if they don't exist.
26741 for dir in etc lisp ; do
26742 test -d ${dir} || mkdir ${dir}
26743 done
26745 # Build src/Makefile from ${srcdir}/src/Makefile.c
26746 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26747 # This must be done after src/config.h is built, since we rely on that file.
26749 echo creating src/epaths.h
26750 ${MAKE-make} epaths-force
26752 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26753 # `..' to `. .' unless invoked with -traditional
26755 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
26756 CPPFLAGS="$CPPFLAGS -traditional"
26759 echo creating lib-src/Makefile
26760 ( cd lib-src
26761 rm -f junk.c junk1.c junk2.c
26762 sed -e '/start of cpp stuff/q' \
26763 < Makefile.c > junk1.c
26764 sed -e '1,/start of cpp stuff/d'\
26765 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26766 < Makefile.c > junk.c
26767 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26768 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26769 cat junk1.c junk2.c > Makefile.new
26770 rm -f junk.c junk1.c junk2.c
26771 chmod 444 Makefile.new
26772 mv -f Makefile.new Makefile
26775 echo creating src/Makefile
26776 ( cd src
26777 rm -f junk.c junk1.c junk2.c
26778 sed -e '/start of cpp stuff/q' \
26779 < Makefile.c > junk1.c
26780 sed -e '1,/start of cpp stuff/d'\
26781 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26782 < Makefile.c > junk.c
26783 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26784 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26785 cat junk1.c junk2.c > Makefile.new
26786 rm -f junk.c junk1.c junk2.c
26787 chmod 444 Makefile.new
26788 mv -f Makefile.new Makefile
26791 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
26792 echo creating src/.gdbinit
26793 echo source $srcdir/src/.gdbinit > src/.gdbinit
26798 esac
26799 done # for ac_tag
26802 { (exit 0); exit 0; }
26803 _ACEOF
26804 chmod +x $CONFIG_STATUS
26805 ac_clean_files=$ac_clean_files_save
26807 test $ac_write_fail = 0 ||
26808 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26809 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26810 { (exit 1); exit 1; }; }
26813 # configure is writing to config.log, and then calls config.status.
26814 # config.status does its own redirection, appending to config.log.
26815 # Unfortunately, on DOS this fails, as config.log is still kept open
26816 # by configure, so config.status won't be able to write to it; its
26817 # output is simply discarded. So we exec the FD to /dev/null,
26818 # effectively closing config.log, so it can be properly (re)opened and
26819 # appended to by config.status. When coming back to configure, we
26820 # need to make the FD available again.
26821 if test "$no_create" != yes; then
26822 ac_cs_success=:
26823 ac_config_status_args=
26824 test "$silent" = yes &&
26825 ac_config_status_args="$ac_config_status_args --quiet"
26826 exec 5>/dev/null
26827 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26828 exec 5>>config.log
26829 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26830 # would make configure fail if this is the last instruction.
26831 $ac_cs_success || { (exit 1); exit 1; }
26833 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26834 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
26835 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}