When killing buffers with ido, don't offer virtual buffers for completion.
[emacs.git] / configure
blob050d10514122f3a25647e5ac0a88ed2be912bce4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.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='24.0.50'
598 PACKAGE_STRING='emacs 24.0.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 LIB_MATH
706 CRT_DIR
707 LIBSOUND
708 PKG_CONFIG
709 ALSA_CFLAGS
710 ALSA_LIBS
711 CFLAGS_SOUND
712 SET_MAKE
713 XMKMF
714 HAVE_XSERVER
715 RSVG_CFLAGS
716 RSVG_LIBS
717 GTK_CFLAGS
718 GTK_LIBS
719 GTK_OBJ
720 DBUS_CFLAGS
721 DBUS_LIBS
722 DBUS_OBJ
723 GCONF_CFLAGS
724 GCONF_LIBS
725 LIBSELINUX_LIBS
726 LIBXTR6
727 FONTCONFIG_CFLAGS
728 FONTCONFIG_LIBS
729 XFT_CFLAGS
730 XFT_LIBS
731 LIBOTF_CFLAGS
732 LIBOTF_LIBS
733 M17N_FLT_CFLAGS
734 M17N_FLT_LIBS
735 FREETYPE_CFLAGS
736 FREETYPE_LIBS
737 LIBXPM
738 LIBJPEG
739 LIBPNG
740 LIBTIFF
741 LIBGIF
742 LIBGPM
743 LIBXSM
744 ALLOCA
745 liblockfile
746 LIBS_MAIL
747 LIBOBJS
748 NEED_SETGID
749 KMEM_GROUP
750 GETLOADAVG_LIBS
751 GETOPT_H
752 GETOPTOBJS
753 LIBHESIOD
754 LIBRESOLV
755 COM_ERRLIB
756 CRYPTOLIB
757 KRB5LIB
758 DESLIB
759 KRB4LIB
760 version
761 configuration
762 canonical
763 srcdir
764 lispdir
765 locallisppath
766 lisppath
767 x_default_search_path
768 etcdir
769 archlibdir
770 bitmapdir
771 gamedir
772 gameuser
773 c_switch_system
774 c_switch_machine
775 unexec
776 LD_SWITCH_X_SITE
777 LD_SWITCH_X_SITE_AUX
778 C_SWITCH_X_SITE
779 C_SWITCH_X_SYSTEM
780 X_TOOLKIT_TYPE
781 machfile
782 opsysfile
783 ns_appdir
784 ns_appbindir
785 ns_appresdir
786 ns_appsrc
787 GNUSTEP_MAKEFILES
788 GNUSTEP_SYSTEM_HEADERS
789 GNUSTEP_SYSTEM_LIBRARIES
790 GNU_OBJC_CFLAGS
791 LIB_SRC_EXTRA_INSTALLABLES
792 OTHER_FILES
793 XMENU_OBJ
794 XOBJ
795 WIDGET_OBJ
796 TOOLKIT_LIBW
797 LTLIBOBJS'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 with_pop
802 with_kerberos
803 with_kerberos5
804 with_hesiod
805 with_mmdf
806 with_mail_unlink
807 with_mailhost
808 with_sound
809 with_sync_input
810 with_x_toolkit
811 with_xpm
812 with_jpeg
813 with_tiff
814 with_gif
815 with_png
816 with_rsvg
817 with_xft
818 with_libotf
819 with_m17n_flt
820 with_toolkit_scroll_bars
821 with_xaw3d
822 with_xim
823 with_ns
824 with_gpm
825 with_dbus
826 with_gconf
827 with_selinux
828 with_makeinfo
829 with_gtk
830 with_gcc
831 with_pkg_config_prog
832 with_crt_dir
833 with_gnustep_conf
834 enable_ns_self_contained
835 enable_asserts
836 enable_maintainer_mode
837 enable_locallisppath
838 enable_checking
839 enable_profiling
840 enable_autodepend
841 enable_largefile
842 with_x
844 ac_precious_vars='build_alias
845 host_alias
846 target_alias
848 CFLAGS
849 LDFLAGS
850 LIBS
851 CPPFLAGS
853 XMKMF'
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
904 ac_prev=
905 ac_dashdash=
906 for ac_option
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
911 ac_prev=
912 continue
915 case $ac_option in
916 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 *) ac_optarg=yes ;;
918 esac
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
924 ac_dashdash=yes ;;
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
943 --config-cache | -C)
944 cache_file=config.cache ;;
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
963 { (exit 1); exit 1; }; }
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=no ;;
975 -docdir | --docdir | --docdi | --doc | --do)
976 ac_prev=docdir ;;
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 docdir=$ac_optarg ;;
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981 ac_prev=dvidir ;;
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 dvidir=$ac_optarg ;;
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
990 { (exit 1); exit 1; }; }
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
995 "enable_$ac_useropt"
996 "*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=\$ac_optarg ;;
1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004 | --exec | --exe | --ex)
1005 ac_prev=exec_prefix ;;
1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008 | --exec=* | --exe=* | --ex=*)
1009 exec_prefix=$ac_optarg ;;
1011 -gas | --gas | --ga | --g)
1012 # Obsolete; use --with-gas.
1013 with_gas=yes ;;
1015 -help | --help | --hel | --he | -h)
1016 ac_init_help=long ;;
1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018 ac_init_help=recursive ;;
1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020 ac_init_help=short ;;
1022 -host | --host | --hos | --ho)
1023 ac_prev=host_alias ;;
1024 -host=* | --host=* | --hos=* | --ho=*)
1025 host_alias=$ac_optarg ;;
1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 ac_prev=htmldir ;;
1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 | --ht=*)
1031 htmldir=$ac_optarg ;;
1033 -includedir | --includedir | --includedi | --included | --include \
1034 | --includ | --inclu | --incl | --inc)
1035 ac_prev=includedir ;;
1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
1038 includedir=$ac_optarg ;;
1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 ac_prev=infodir ;;
1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043 infodir=$ac_optarg ;;
1045 -libdir | --libdir | --libdi | --libd)
1046 ac_prev=libdir ;;
1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048 libdir=$ac_optarg ;;
1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051 | --libexe | --libex | --libe)
1052 ac_prev=libexecdir ;;
1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054 | --libexe=* | --libex=* | --libe=*)
1055 libexecdir=$ac_optarg ;;
1057 -localedir | --localedir | --localedi | --localed | --locale)
1058 ac_prev=localedir ;;
1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060 localedir=$ac_optarg ;;
1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
1063 | --localstate | --localstat | --localsta | --localst | --locals)
1064 ac_prev=localstatedir ;;
1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067 localstatedir=$ac_optarg ;;
1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 ac_prev=mandir ;;
1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072 mandir=$ac_optarg ;;
1074 -nfp | --nfp | --nf)
1075 # Obsolete; use --without-fp.
1076 with_fp=no ;;
1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079 | --no-cr | --no-c | -n)
1080 no_create=yes ;;
1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 no_recursion=yes ;;
1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088 | --oldin | --oldi | --old | --ol | --o)
1089 ac_prev=oldincludedir ;;
1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093 oldincludedir=$ac_optarg ;;
1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 ac_prev=prefix ;;
1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098 prefix=$ac_optarg ;;
1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101 | --program-pre | --program-pr | --program-p)
1102 ac_prev=program_prefix ;;
1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105 program_prefix=$ac_optarg ;;
1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108 | --program-suf | --program-su | --program-s)
1109 ac_prev=program_suffix ;;
1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112 program_suffix=$ac_optarg ;;
1114 -program-transform-name | --program-transform-name \
1115 | --program-transform-nam | --program-transform-na \
1116 | --program-transform-n | --program-transform- \
1117 | --program-transform | --program-transfor \
1118 | --program-transfo | --program-transf \
1119 | --program-trans | --program-tran \
1120 | --progr-tra | --program-tr | --program-t)
1121 ac_prev=program_transform_name ;;
1122 -program-transform-name=* | --program-transform-name=* \
1123 | --program-transform-nam=* | --program-transform-na=* \
1124 | --program-transform-n=* | --program-transform-=* \
1125 | --program-transform=* | --program-transfor=* \
1126 | --program-transfo=* | --program-transf=* \
1127 | --program-trans=* | --program-tran=* \
1128 | --progr-tra=* | --program-tr=* | --program-t=*)
1129 program_transform_name=$ac_optarg ;;
1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 ac_prev=pdfdir ;;
1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134 pdfdir=$ac_optarg ;;
1136 -psdir | --psdir | --psdi | --psd | --ps)
1137 ac_prev=psdir ;;
1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 psdir=$ac_optarg ;;
1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142 | -silent | --silent | --silen | --sile | --sil)
1143 silent=yes ;;
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 ac_prev=sbindir ;;
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 | --sbi=* | --sb=*)
1149 sbindir=$ac_optarg ;;
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1154 | --sha | --sh)
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 | --sha=* | --sh=*)
1160 sharedstatedir=$ac_optarg ;;
1162 -site | --site | --sit)
1163 ac_prev=site ;;
1164 -site=* | --site=* | --sit=*)
1165 site=$ac_optarg ;;
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 ac_prev=srcdir ;;
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 verbose=yes ;;
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1190 -with-* | --with-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=\$ac_optarg ;;
1207 -without-* | --without-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1212 { (exit 1); exit 1; }; }
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1242 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1243 Try \`$0 --help' for more information." >&2
1244 { (exit 1); exit 1; }; }
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1251 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1252 { (exit 1); exit 1; }; }
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1264 esac
1265 done
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1270 { (exit 1); exit 1; }; }
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1277 { (exit 1); exit 1; }; } ;;
1278 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 esac
1282 # Check all directory arguments for consistency.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1288 eval ac_val=\$$ac_var
1289 # Remove trailing slashes.
1290 case $ac_val in
1291 */ )
1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\$ac_val;;
1294 esac
1295 # Be sure to have absolute directory names.
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1301 { (exit 1); exit 1; }; }
1302 done
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1307 build=$build_alias
1308 host=$host_alias
1309 target=$target_alias
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1322 ac_tool_prefix=
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325 test "$silent" = yes && exec 6>/dev/null
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1332 { (exit 1); exit 1; }; }
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1335 { (exit 1); exit 1; }; }
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1356 /^X\(\/\/\)$/{
1357 s//\1/
1360 /^X\(\/\).*/{
1361 s//\1/
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1369 else
1370 ac_srcdir_defaulted=no
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1375 { (exit 1); exit 1; }; }
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1380 { (exit 1); exit 1; }; }
1381 pwd)`
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 srcdir=.
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1389 case $srcdir in
1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 esac
1392 for ac_var in $ac_precious_vars; do
1393 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_${ac_var}_value=\$${ac_var}
1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 done
1400 # Report the --help message.
1402 if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1405 cat <<_ACEOF
1406 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE. See below for descriptions of some of the useful variables.
1413 Defaults for the options are specified in brackets.
1415 Configuration:
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1426 Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 [PREFIX]
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1437 For better control, use the options below.
1439 Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1459 _ACEOF
1461 cat <<\_ACEOF
1463 Program names:
1464 --program-prefix=PREFIX prepend PREFIX to installed program names
1465 --program-suffix=SUFFIX append SUFFIX to installed program names
1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1468 X features:
1469 --x-includes=DIR X include files are in DIR
1470 --x-libraries=DIR X library files are in DIR
1472 System types:
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1481 esac
1482 cat <<\_ACEOF
1484 Optional Features:
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --disable-ns-self-contained
1489 disable self contained build under NeXTstep
1490 --enable-asserts compile code with asserts enabled
1491 --enable-maintainer-mode
1492 enable make rules and dependencies not useful (and
1493 sometimes confusing) to the casual installer
1494 --enable-locallisppath=PATH
1495 directories Emacs should search for lisp files
1496 specific to this site
1497 --enable-checking[=LIST]
1498 enable expensive run-time checks. With LIST, enable
1499 only specific categories of checks. Categories are:
1500 all,yes,no. Flags are: stringbytes, stringoverrun,
1501 stringfreelist, xmallocoverrun, conslist
1502 --enable-profiling build emacs with profiling support. This might not
1503 work on all platforms
1504 --enable-autodepend automatically generate dependencies to .h-files.
1505 Requires GNU Make and Gcc. Enabled if GNU Make and
1506 Gcc is found
1507 --disable-largefile omit support for large files
1509 Optional Packages:
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --without-pop don't support POP mail retrieval with movemail
1513 --with-kerberos support Kerberos-authenticated POP
1514 --with-kerberos5 support Kerberos version 5 authenticated POP
1515 --with-hesiod support Hesiod to get the POP server host
1516 --with-mmdf support MMDF mailboxes
1517 --with-mail-unlink unlink, rather than empty, mail spool after reading
1518 --with-mailhost=HOSTNAME
1519 string giving default POP mail host
1520 --without-sound don't compile with sound support
1521 --without-sync-input process async input synchronously
1522 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1523 athena, motif, no)
1524 --without-xpm don't compile with XPM image support
1525 --without-jpeg don't compile with JPEG image support
1526 --without-tiff don't compile with TIFF image support
1527 --without-gif don't compile with GIF image support
1528 --without-png don't compile with PNG image support
1529 --without-rsvg don't compile with SVG image support
1530 --without-xft don't use XFT for anti aliased fonts
1531 --without-libotf don't use libotf for OpenType font support
1532 --without-m17n-flt don't use m17n-flt for text shaping
1533 --without-toolkit-scroll-bars
1534 don't use Motif or Xaw3d scroll bars
1535 --without-xaw3d don't use Xaw3d
1536 --without-xim don't use X11 XIM
1537 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1538 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1539 console
1540 --without-dbus don't compile with D-Bus support
1541 --without-gconf don't compile with GConf support
1542 --without-selinux don't compile with SELinux support
1543 --without-makeinfo don't require makeinfo for building manuals
1545 --with-pkg-config-prog=PATH
1546 path to pkg-config for finding GTK and librsvg
1547 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1548 /usr/lib, or /usr/lib64 on some platforms.
1549 --with-gnustep-conf=PATH
1550 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1551 or /etc/GNUstep/GNUstep.conf
1552 --with-x use the X Window System
1554 Some influential environment variables:
1555 CC C compiler command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558 nonstandard directory <lib dir>
1559 LIBS libraries to pass to the linker, e.g. -l<library>
1560 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1561 you have headers in a nonstandard directory <include dir>
1562 CPP C preprocessor
1563 XMKMF Path to xmkmf, Makefile generator for X Window System
1565 Use these variables to override the choices made by `configure' or to help
1566 it to find libraries and programs with nonstandard names/locations.
1568 _ACEOF
1569 ac_status=$?
1572 if test "$ac_init_help" = "recursive"; then
1573 # If there are subdirs, report their specific --help.
1574 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575 test -d "$ac_dir" ||
1576 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577 continue
1578 ac_builddir=.
1580 case "$ac_dir" in
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586 case $ac_top_builddir_sub in
1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589 esac ;;
1590 esac
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1596 case $srcdir in
1597 .) # We are building in place.
1598 ac_srcdir=.
1599 ac_top_srcdir=$ac_top_builddir_sub
1600 ac_abs_top_srcdir=$ac_pwd ;;
1601 [\\/]* | ?:[\\/]* ) # Absolute name.
1602 ac_srcdir=$srcdir$ac_dir_suffix;
1603 ac_top_srcdir=$srcdir
1604 ac_abs_top_srcdir=$srcdir ;;
1605 *) # Relative name.
1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607 ac_top_srcdir=$ac_top_build_prefix$srcdir
1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609 esac
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612 cd "$ac_dir" || { ac_status=$?; continue; }
1613 # Check for guested configure.
1614 if test -f "$ac_srcdir/configure.gnu"; then
1615 echo &&
1616 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617 elif test -f "$ac_srcdir/configure"; then
1618 echo &&
1619 $SHELL "$ac_srcdir/configure" --help=recursive
1620 else
1621 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622 fi || ac_status=$?
1623 cd "$ac_pwd" || { ac_status=$?; break; }
1624 done
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1629 cat <<\_ACEOF
1630 emacs configure 24.0.50
1631 generated by GNU Autoconf 2.62
1633 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1634 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1637 _ACEOF
1638 exit
1640 cat >config.log <<_ACEOF
1641 This file contains any messages produced by compilers while
1642 running configure, to aid debugging if configure makes a mistake.
1644 It was created by emacs $as_me 24.0.50, which was
1645 generated by GNU Autoconf 2.62. Invocation command line was
1647 $ $0 $@
1649 _ACEOF
1650 exec 5>>config.log
1652 cat <<_ASUNAME
1653 ## --------- ##
1654 ## Platform. ##
1655 ## --------- ##
1657 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1658 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1659 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1660 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1661 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1663 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1664 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1666 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1667 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1668 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1669 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1670 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1671 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1672 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1674 _ASUNAME
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 for as_dir in $PATH
1679 IFS=$as_save_IFS
1680 test -z "$as_dir" && as_dir=.
1681 $as_echo "PATH: $as_dir"
1682 done
1683 IFS=$as_save_IFS
1685 } >&5
1687 cat >&5 <<_ACEOF
1690 ## ----------- ##
1691 ## Core tests. ##
1692 ## ----------- ##
1694 _ACEOF
1697 # Keep a trace of the command line.
1698 # Strip out --no-create and --no-recursion so they do not pile up.
1699 # Strip out --silent because we don't want to record it for future runs.
1700 # Also quote any args containing shell meta-characters.
1701 # Make two passes to allow for proper duplicate-argument suppression.
1702 ac_configure_args=
1703 ac_configure_args0=
1704 ac_configure_args1=
1705 ac_must_keep_next=false
1706 for ac_pass in 1 2
1708 for ac_arg
1710 case $ac_arg in
1711 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1712 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1713 | -silent | --silent | --silen | --sile | --sil)
1714 continue ;;
1715 *\'*)
1716 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1717 esac
1718 case $ac_pass in
1719 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1721 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1722 if test $ac_must_keep_next = true; then
1723 ac_must_keep_next=false # Got value, back to normal.
1724 else
1725 case $ac_arg in
1726 *=* | --config-cache | -C | -disable-* | --disable-* \
1727 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1728 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1729 | -with-* | --with-* | -without-* | --without-* | --x)
1730 case "$ac_configure_args0 " in
1731 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1732 esac
1734 -* ) ac_must_keep_next=true ;;
1735 esac
1737 ac_configure_args="$ac_configure_args '$ac_arg'"
1739 esac
1740 done
1741 done
1742 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1743 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1745 # When interrupted or exit'd, cleanup temporary files, and complete
1746 # config.log. We remove comments because anyway the quotes in there
1747 # would cause problems or look ugly.
1748 # WARNING: Use '\'' to represent an apostrophe within the trap.
1749 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1750 trap 'exit_status=$?
1751 # Save into config.log some information that might help in debugging.
1753 echo
1755 cat <<\_ASBOX
1756 ## ---------------- ##
1757 ## Cache variables. ##
1758 ## ---------------- ##
1759 _ASBOX
1760 echo
1761 # The following way of writing the cache mishandles newlines in values,
1763 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1764 eval ac_val=\$$ac_var
1765 case $ac_val in #(
1766 *${as_nl}*)
1767 case $ac_var in #(
1768 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1769 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1770 esac
1771 case $ac_var in #(
1772 _ | IFS | as_nl) ;; #(
1773 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1774 *) $as_unset $ac_var ;;
1775 esac ;;
1776 esac
1777 done
1778 (set) 2>&1 |
1779 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1780 *${as_nl}ac_space=\ *)
1781 sed -n \
1782 "s/'\''/'\''\\\\'\'''\''/g;
1783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1784 ;; #(
1786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1788 esac |
1789 sort
1791 echo
1793 cat <<\_ASBOX
1794 ## ----------------- ##
1795 ## Output variables. ##
1796 ## ----------------- ##
1797 _ASBOX
1798 echo
1799 for ac_var in $ac_subst_vars
1801 eval ac_val=\$$ac_var
1802 case $ac_val in
1803 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804 esac
1805 $as_echo "$ac_var='\''$ac_val'\''"
1806 done | sort
1807 echo
1809 if test -n "$ac_subst_files"; then
1810 cat <<\_ASBOX
1811 ## ------------------- ##
1812 ## File substitutions. ##
1813 ## ------------------- ##
1814 _ASBOX
1815 echo
1816 for ac_var in $ac_subst_files
1818 eval ac_val=\$$ac_var
1819 case $ac_val in
1820 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821 esac
1822 $as_echo "$ac_var='\''$ac_val'\''"
1823 done | sort
1824 echo
1827 if test -s confdefs.h; then
1828 cat <<\_ASBOX
1829 ## ----------- ##
1830 ## confdefs.h. ##
1831 ## ----------- ##
1832 _ASBOX
1833 echo
1834 cat confdefs.h
1835 echo
1837 test "$ac_signal" != 0 &&
1838 $as_echo "$as_me: caught signal $ac_signal"
1839 $as_echo "$as_me: exit $exit_status"
1840 } >&5
1841 rm -f core *.core core.conftest.* &&
1842 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1843 exit $exit_status
1845 for ac_signal in 1 2 13 15; do
1846 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1847 done
1848 ac_signal=0
1850 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1851 rm -f -r conftest* confdefs.h
1853 # Predefined preprocessor variables.
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_NAME "$PACKAGE_NAME"
1857 _ACEOF
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862 _ACEOF
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1867 _ACEOF
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_STRING "$PACKAGE_STRING"
1872 _ACEOF
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877 _ACEOF
1880 # Let the site file select an alternate cache file if it wants to.
1881 # Prefer an explicitly selected file to automatically selected ones.
1882 ac_site_file1=NONE
1883 ac_site_file2=NONE
1884 if test -n "$CONFIG_SITE"; then
1885 ac_site_file1=$CONFIG_SITE
1886 elif test "x$prefix" != xNONE; then
1887 ac_site_file1=$prefix/share/config.site
1888 ac_site_file2=$prefix/etc/config.site
1889 else
1890 ac_site_file1=$ac_default_prefix/share/config.site
1891 ac_site_file2=$ac_default_prefix/etc/config.site
1893 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1895 test "x$ac_site_file" = xNONE && continue
1896 if test -r "$ac_site_file"; then
1897 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1899 sed 's/^/| /' "$ac_site_file" >&5
1900 . "$ac_site_file"
1902 done
1904 if test -r "$cache_file"; then
1905 # Some versions of bash will fail to source /dev/null (special
1906 # files actually), so we avoid doing that.
1907 if test -f "$cache_file"; then
1908 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 $as_echo "$as_me: loading cache $cache_file" >&6;}
1910 case $cache_file in
1911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912 *) . "./$cache_file";;
1913 esac
1915 else
1916 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 $as_echo "$as_me: creating cache $cache_file" >&6;}
1918 >$cache_file
1921 ac_header_list="$ac_header_list sys/time.h"
1922 ac_header_list="$ac_header_list unistd.h"
1923 ac_func_list="$ac_func_list alarm"
1924 # Check that the precious variables saved in the cache have kept the same
1925 # value.
1926 ac_cache_corrupted=false
1927 for ac_var in $ac_precious_vars; do
1928 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1929 eval ac_new_set=\$ac_env_${ac_var}_set
1930 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1931 eval ac_new_val=\$ac_env_${ac_var}_value
1932 case $ac_old_set,$ac_new_set in
1933 set,)
1934 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1935 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1936 ac_cache_corrupted=: ;;
1937 ,set)
1938 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1939 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1940 ac_cache_corrupted=: ;;
1941 ,);;
1943 if test "x$ac_old_val" != "x$ac_new_val"; then
1944 # differences in whitespace do not lead to failure.
1945 ac_old_val_w=`echo x $ac_old_val`
1946 ac_new_val_w=`echo x $ac_new_val`
1947 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1948 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1949 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1950 ac_cache_corrupted=:
1951 else
1952 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1953 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1954 eval $ac_var=\$ac_old_val
1956 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1957 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1958 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1959 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1960 fi;;
1961 esac
1962 # Pass precious variables to config.status.
1963 if test "$ac_new_set" = set; then
1964 case $ac_new_val in
1965 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1966 *) ac_arg=$ac_var=$ac_new_val ;;
1967 esac
1968 case " $ac_configure_args " in
1969 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1970 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1971 esac
1973 done
1974 if $ac_cache_corrupted; then
1975 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1976 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1977 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1978 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1979 { (exit 1); exit 1; }; }
2006 ac_ext=c
2007 ac_cpp='$CPP $CPPFLAGS'
2008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2017 test "$program_prefix" != NONE &&
2018 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2019 # Use a double $ so make ignores it.
2020 test "$program_suffix" != NONE &&
2021 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2022 # Double any \ or $.
2023 # By default was `s,x,x', remove it if useless.
2024 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2025 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2028 lispdir='${datadir}/emacs/${version}/lisp'
2029 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2030 '${datadir}/emacs/site-lisp'
2031 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2032 etcdir='${datadir}/emacs/${version}/etc'
2033 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2034 docdir='${datadir}/emacs/${version}/etc'
2035 gamedir='${localstatedir}/games/emacs'
2037 gameuser=games
2042 # Check whether --with-pop was given.
2043 if test "${with_pop+set}" = set; then
2044 withval=$with_pop;
2045 else
2046 with_pop=yes
2049 if test "$with_pop" = yes; then
2050 cat >>confdefs.h <<\_ACEOF
2051 #define MAIL_USE_POP 1
2052 _ACEOF
2058 # Check whether --with-kerberos was given.
2059 if test "${with_kerberos+set}" = set; then
2060 withval=$with_kerberos;
2061 else
2062 with_kerberos=no
2065 if test "$with_kerberos" != no; then
2066 cat >>confdefs.h <<\_ACEOF
2067 #define KERBEROS 1
2068 _ACEOF
2074 # Check whether --with-kerberos5 was given.
2075 if test "${with_kerberos5+set}" = set; then
2076 withval=$with_kerberos5;
2077 else
2078 with_kerberos5=no
2081 if test "${with_kerberos5}" != no; then
2082 if test "${with_kerberos}" = no; then
2083 with_kerberos=yes
2084 cat >>confdefs.h <<\_ACEOF
2085 #define KERBEROS 1
2086 _ACEOF
2090 cat >>confdefs.h <<\_ACEOF
2091 #define KERBEROS5 1
2092 _ACEOF
2097 # Check whether --with-hesiod was given.
2098 if test "${with_hesiod+set}" = set; then
2099 withval=$with_hesiod;
2100 else
2101 with_hesiod=no
2104 if test "$with_hesiod" != no; then
2106 cat >>confdefs.h <<\_ACEOF
2107 #define HESIOD 1
2108 _ACEOF
2113 # Check whether --with-mmdf was given.
2114 if test "${with_mmdf+set}" = set; then
2115 withval=$with_mmdf;
2116 else
2117 with_mmdf=no
2120 if test "$with_mmdf" != no; then
2122 cat >>confdefs.h <<\_ACEOF
2123 #define MAIL_USE_MMDF 1
2124 _ACEOF
2129 # Check whether --with-mail-unlink was given.
2130 if test "${with_mail_unlink+set}" = set; then
2131 withval=$with_mail_unlink;
2132 else
2133 with_mail_unlink=no
2136 if test "$with_mail_unlink" != no; then
2138 cat >>confdefs.h <<\_ACEOF
2139 #define MAIL_UNLINK_SPOOL 1
2140 _ACEOF
2145 # Check whether --with-mailhost was given.
2146 if test "${with_mailhost+set}" = set; then
2147 withval=$with_mailhost;
2148 cat >>confdefs.h <<_ACEOF
2149 #define MAILHOST "$withval"
2150 _ACEOF
2156 # Check whether --with-sound was given.
2157 if test "${with_sound+set}" = set; then
2158 withval=$with_sound;
2159 else
2160 with_sound=yes
2165 # Check whether --with-sync-input was given.
2166 if test "${with_sync_input+set}" = set; then
2167 withval=$with_sync_input;
2168 else
2169 with_sync_input=yes
2172 if test "$with_sync_input" = yes; then
2174 cat >>confdefs.h <<\_ACEOF
2175 #define SYNC_INPUT 1
2176 _ACEOF
2181 # Check whether --with-x-toolkit was given.
2182 if test "${with_x_toolkit+set}" = set; then
2183 withval=$with_x_toolkit; case "${withval}" in
2184 y | ye | yes ) val=gtk ;;
2185 n | no ) val=no ;;
2186 l | lu | luc | luci | lucid ) val=lucid ;;
2187 a | at | ath | athe | athen | athena ) val=athena ;;
2188 m | mo | mot | moti | motif ) val=motif ;;
2189 g | gt | gtk ) val=gtk ;;
2191 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2192 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2193 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2194 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2195 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2196 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2197 { (exit 1); exit 1; }; }
2199 esac
2200 with_x_toolkit=$val
2206 # Check whether --with-xpm was given.
2207 if test "${with_xpm+set}" = set; then
2208 withval=$with_xpm;
2209 else
2210 with_xpm=yes
2214 # Check whether --with-jpeg was given.
2215 if test "${with_jpeg+set}" = set; then
2216 withval=$with_jpeg;
2217 else
2218 with_jpeg=yes
2222 # Check whether --with-tiff was given.
2223 if test "${with_tiff+set}" = set; then
2224 withval=$with_tiff;
2225 else
2226 with_tiff=yes
2230 # Check whether --with-gif was given.
2231 if test "${with_gif+set}" = set; then
2232 withval=$with_gif;
2233 else
2234 with_gif=yes
2238 # Check whether --with-png was given.
2239 if test "${with_png+set}" = set; then
2240 withval=$with_png;
2241 else
2242 with_png=yes
2246 # Check whether --with-rsvg was given.
2247 if test "${with_rsvg+set}" = set; then
2248 withval=$with_rsvg;
2249 else
2250 with_rsvg=yes
2255 # Check whether --with-xft was given.
2256 if test "${with_xft+set}" = set; then
2257 withval=$with_xft;
2258 else
2259 with_xft=yes
2263 # Check whether --with-libotf was given.
2264 if test "${with_libotf+set}" = set; then
2265 withval=$with_libotf;
2266 else
2267 with_libotf=yes
2271 # Check whether --with-m17n-flt was given.
2272 if test "${with_m17n_flt+set}" = set; then
2273 withval=$with_m17n_flt;
2274 else
2275 with_m17n_flt=yes
2280 # Check whether --with-toolkit-scroll-bars was given.
2281 if test "${with_toolkit_scroll_bars+set}" = set; then
2282 withval=$with_toolkit_scroll_bars;
2283 else
2284 with_toolkit_scroll_bars=yes
2288 # Check whether --with-xaw3d was given.
2289 if test "${with_xaw3d+set}" = set; then
2290 withval=$with_xaw3d;
2291 else
2292 with_xaw3d=yes
2296 # Check whether --with-xim was given.
2297 if test "${with_xim+set}" = set; then
2298 withval=$with_xim;
2299 else
2300 with_xim=yes
2304 # Check whether --with-ns was given.
2305 if test "${with_ns+set}" = set; then
2306 withval=$with_ns;
2307 else
2308 with_ns=no
2313 # Check whether --with-gpm was given.
2314 if test "${with_gpm+set}" = set; then
2315 withval=$with_gpm;
2316 else
2317 with_gpm=yes
2321 # Check whether --with-dbus was given.
2322 if test "${with_dbus+set}" = set; then
2323 withval=$with_dbus;
2324 else
2325 with_dbus=yes
2329 # Check whether --with-gconf was given.
2330 if test "${with_gconf+set}" = set; then
2331 withval=$with_gconf;
2332 else
2333 with_gconf=yes
2337 # Check whether --with-selinux was given.
2338 if test "${with_selinux+set}" = set; then
2339 withval=$with_selinux;
2340 else
2341 with_selinux=yes
2345 ## For the times when you want to build Emacs but don't have
2346 ## a suitable makeinfo, and can live without the manuals.
2348 # Check whether --with-makeinfo was given.
2349 if test "${with_makeinfo+set}" = set; then
2350 withval=$with_makeinfo;
2351 else
2352 with_makeinfo=yes
2357 # Check whether --with-gtk was given.
2358 if test "${with_gtk+set}" = set; then
2359 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2360 specify a toolkit." >&5
2361 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2362 specify a toolkit." >&2;}
2363 { (exit 1); exit 1; }; }
2368 # Check whether --with-gcc was given.
2369 if test "${with_gcc+set}" = set; then
2370 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2371 variable to specify a compiler." >&5
2372 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2373 variable to specify a compiler." >&2;}
2374 { (exit 1); exit 1; }; }
2379 # Check whether --with-pkg-config-prog was given.
2380 if test "${with_pkg_config_prog+set}" = set; then
2381 withval=$with_pkg_config_prog;
2384 if test "X${with_pkg_config_prog}" != X; then
2385 if test "${with_pkg_config_prog}" != yes; then
2386 PKG_CONFIG="${with_pkg_config_prog}"
2390 CRT_DIR=
2392 # Check whether --with-crt-dir was given.
2393 if test "${with_crt_dir+set}" = set; then
2394 withval=$with_crt_dir;
2397 CRT_DIR="${with_crt_dir}"
2400 # Check whether --with-gnustep-conf was given.
2401 if test "${with_gnustep_conf+set}" = set; then
2402 withval=$with_gnustep_conf;
2405 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2406 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2407 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2408 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2410 # Check whether --enable-ns-self-contained was given.
2411 if test "${enable_ns_self_contained+set}" = set; then
2412 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2413 else
2414 EN_NS_SELF_CONTAINED=yes
2418 # Check whether --enable-asserts was given.
2419 if test "${enable_asserts+set}" = set; then
2420 enableval=$enable_asserts; USE_XASSERTS=$enableval
2421 else
2422 USE_XASSERTS=no
2426 # Check whether --enable-maintainer-mode was given.
2427 if test "${enable_maintainer_mode+set}" = set; then
2428 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2429 else
2430 USE_MAINTAINER_MODE=no
2433 if test $USE_MAINTAINER_MODE = yes; then
2434 MAINT=
2435 else
2436 MAINT=#
2440 # Check whether --enable-locallisppath was given.
2441 if test "${enable_locallisppath+set}" = set; then
2442 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2443 locallisppath=
2444 elif test "${enableval}" != "yes"; then
2445 locallisppath=${enableval}
2450 # Check whether --enable-checking was given.
2451 if test "${enable_checking+set}" = set; then
2452 enableval=$enable_checking; ac_checking_flags="${enableval}"
2455 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2456 for check in $ac_checking_flags
2458 case $check in
2459 # these set all the flags to specific states
2460 yes) ac_enable_checking=1 ;;
2461 no) ac_enable_checking= ;
2462 ac_gc_check_stringbytes= ;
2463 ac_gc_check_string_overrun= ;
2464 ac_gc_check_string_free_list= ;
2465 ac_xmalloc_overrun= ;
2466 ac_gc_check_cons_list= ;;
2467 all) ac_enable_checking=1 ;
2468 ac_gc_check_stringbytes=1 ;
2469 ac_gc_check_string_overrun=1 ;
2470 ac_gc_check_string_free_list=1 ;
2471 ac_xmalloc_overrun=1 ;
2472 ac_gc_check_cons_list=1 ;;
2473 # these enable particular checks
2474 stringbytes) ac_gc_check_stringbytes=1 ;;
2475 stringoverrun) ac_gc_check_string_overrun=1 ;;
2476 stringfreelist) ac_gc_check_string_free_list=1 ;;
2477 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2478 conslist) ac_gc_check_cons_list=1 ;;
2479 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2480 $as_echo "$as_me: error: unknown check category $check" >&2;}
2481 { (exit 1); exit 1; }; } ;;
2482 esac
2483 done
2484 IFS="$ac_save_IFS"
2486 if test x$ac_enable_checking != x ; then
2488 cat >>confdefs.h <<\_ACEOF
2489 #define ENABLE_CHECKING 1
2490 _ACEOF
2493 if test x$ac_gc_check_stringbytes != x ; then
2495 cat >>confdefs.h <<\_ACEOF
2496 #define GC_CHECK_STRING_BYTES 1
2497 _ACEOF
2500 if test x$ac_gc_check_stringoverrun != x ; then
2502 cat >>confdefs.h <<\_ACEOF
2503 #define GC_CHECK_STRING_OVERRUN 1
2504 _ACEOF
2507 if test x$ac_gc_check_string_free_list != x ; then
2509 cat >>confdefs.h <<\_ACEOF
2510 #define GC_CHECK_STRING_FREE_LIST 1
2511 _ACEOF
2514 if test x$ac_xmalloc_overrun != x ; then
2516 cat >>confdefs.h <<\_ACEOF
2517 #define XMALLOC_OVERRUN_CHECK 1
2518 _ACEOF
2521 if test x$ac_gc_check_cons_list != x ; then
2523 cat >>confdefs.h <<\_ACEOF
2524 #define GC_CHECK_CONS_LIST 1
2525 _ACEOF
2529 # Check whether --enable-profiling was given.
2530 if test "${enable_profiling+set}" = set; then
2531 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2534 if test x$ac_enable_profiling != x ; then
2535 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2536 PROFILING_LDFLAGS="-pg"
2537 else
2538 PROFILING_CFLAGS=
2539 PROFILING_LDFLAGS=
2542 # Check whether --enable-autodepend was given.
2543 if test "${enable_autodepend+set}" = set; then
2544 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2545 else
2546 ac_enable_autodepend=yes
2550 #### Make srcdir absolute, if it isn't already. It's important to
2551 #### avoid running the path through pwd unnecessarily, since pwd can
2552 #### give you automounter prefixes, which can go away. We do all this
2553 #### so Emacs can find its files when run uninstalled.
2554 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2555 unset CDPATH
2556 case "${srcdir}" in
2557 /* ) ;;
2559 ## We may be able to use the $PWD environment variable to make this
2560 ## absolute. But sometimes PWD is inaccurate.
2561 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2562 ## but that tested only for a well-formed and valid PWD,
2563 ## it did not object when PWD was well-formed and valid but just wrong.
2564 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2565 then
2566 srcdir="$PWD"
2567 else
2568 srcdir="`(cd ${srcdir}; pwd)`"
2571 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2572 esac
2574 #### Check if the source directory already has a configured system in it.
2575 if test `pwd` != `(cd ${srcdir} && pwd)` \
2576 && test -f "${srcdir}/src/config.h" ; then
2577 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2578 as a build directory right now; it has been configured in its own
2579 right. To configure in another directory as well, you MUST
2580 use GNU make. If you do not have GNU make, then you must
2581 now do \`make distclean' in ${srcdir},
2582 and then run $0 again." >&5
2583 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2584 as a build directory right now; it has been configured in its own
2585 right. To configure in another directory as well, you MUST
2586 use GNU make. If you do not have GNU make, then you must
2587 now do \`make distclean' in ${srcdir},
2588 and then run $0 again." >&2;}
2591 #### Given the configuration name, set machfile and opsysfile to the
2592 #### names of the m/*.h and s/*.h files we should use.
2594 ### Canonicalize the configuration name.
2596 ac_aux_dir=
2597 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2598 if test -f "$ac_dir/install-sh"; then
2599 ac_aux_dir=$ac_dir
2600 ac_install_sh="$ac_aux_dir/install-sh -c"
2601 break
2602 elif test -f "$ac_dir/install.sh"; then
2603 ac_aux_dir=$ac_dir
2604 ac_install_sh="$ac_aux_dir/install.sh -c"
2605 break
2606 elif test -f "$ac_dir/shtool"; then
2607 ac_aux_dir=$ac_dir
2608 ac_install_sh="$ac_aux_dir/shtool install -c"
2609 break
2611 done
2612 if test -z "$ac_aux_dir"; then
2613 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2614 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2615 { (exit 1); exit 1; }; }
2618 # These three variables are undocumented and unsupported,
2619 # and are intended to be withdrawn in a future Autoconf release.
2620 # They can cause serious problems if a builder's source tree is in a directory
2621 # whose full name contains unusual characters.
2622 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2623 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2624 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2627 # Make sure we can run config.sub.
2628 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2629 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2630 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2631 { (exit 1); exit 1; }; }
2633 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2634 $as_echo_n "checking build system type... " >&6; }
2635 if test "${ac_cv_build+set}" = set; then
2636 $as_echo_n "(cached) " >&6
2637 else
2638 ac_build_alias=$build_alias
2639 test "x$ac_build_alias" = x &&
2640 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2641 test "x$ac_build_alias" = x &&
2642 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2643 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2644 { (exit 1); exit 1; }; }
2645 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2646 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2647 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2648 { (exit 1); exit 1; }; }
2651 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2652 $as_echo "$ac_cv_build" >&6; }
2653 case $ac_cv_build in
2654 *-*-*) ;;
2655 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2656 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2657 { (exit 1); exit 1; }; };;
2658 esac
2659 build=$ac_cv_build
2660 ac_save_IFS=$IFS; IFS='-'
2661 set x $ac_cv_build
2662 shift
2663 build_cpu=$1
2664 build_vendor=$2
2665 shift; shift
2666 # Remember, the first character of IFS is used to create $*,
2667 # except with old shells:
2668 build_os=$*
2669 IFS=$ac_save_IFS
2670 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2673 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2674 $as_echo_n "checking host system type... " >&6; }
2675 if test "${ac_cv_host+set}" = set; then
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test "x$host_alias" = x; then
2679 ac_cv_host=$ac_cv_build
2680 else
2681 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2682 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2683 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2684 { (exit 1); exit 1; }; }
2688 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2689 $as_echo "$ac_cv_host" >&6; }
2690 case $ac_cv_host in
2691 *-*-*) ;;
2692 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2693 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2694 { (exit 1); exit 1; }; };;
2695 esac
2696 host=$ac_cv_host
2697 ac_save_IFS=$IFS; IFS='-'
2698 set x $ac_cv_host
2699 shift
2700 host_cpu=$1
2701 host_vendor=$2
2702 shift; shift
2703 # Remember, the first character of IFS is used to create $*,
2704 # except with old shells:
2705 host_os=$*
2706 IFS=$ac_save_IFS
2707 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2710 canonical=$host
2711 configuration=${host_alias-${build_alias-$host}}
2715 ### If you add support for a new configuration, add code to this
2716 ### switch statement to recognize your configuration name and select
2717 ### the appropriate operating system and machine description files.
2719 ### You would hope that you could choose an m/*.h file pretty much
2720 ### based on the machine portion of the configuration name, and an s-
2721 ### file based on the operating system portion. However, it turns out
2722 ### that each m/*.h file is pretty manufacturer-specific - for
2723 ### example mips.h is MIPS
2724 ### So we basically have to have a special case for each
2725 ### configuration name.
2727 ### As far as handling version numbers on operating systems is
2728 ### concerned, make sure things will fail in a fixable way. If
2729 ### /etc/MACHINES doesn't say anything about version numbers, be
2730 ### prepared to handle anything reasonably. If version numbers
2731 ### matter, be sure /etc/MACHINES says something about it.
2733 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2734 ### "System V Release 4"; he writes, "The old convention encouraged
2735 ### confusion between `system' and `release' levels'."
2737 machine='' opsys='' unported=no
2738 case "${canonical}" in
2740 ## FreeBSD ports
2741 *-*-freebsd* )
2742 opsys=freebsd
2743 case "${canonical}" in
2744 alpha*-*-freebsd*) machine=alpha ;;
2745 arm*-*-freebsd*) machine=arm ;;
2746 ia64-*-freebsd*) machine=ia64 ;;
2747 sparc-*-freebsd*) machine=sparc ;;
2748 sparc64-*-freebsd*) machine=sparc ;;
2749 powerpc-*-freebsd*) machine=macppc ;;
2750 i[3456]86-*-freebsd*) machine=intel386 ;;
2751 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2752 esac
2755 ## FreeBSD kernel + glibc based userland
2756 *-*-kfreebsd*gnu* )
2757 opsys=gnu-kfreebsd
2758 case "${canonical}" in
2759 alpha*-*-kfreebsd*) machine=alpha ;;
2760 ia64-*-kfreebsd*) machine=ia64 ;;
2761 sparc-*-kfreebsd*) machine=sparc ;;
2762 sparc64-*-kfreebsd*) machine=sparc ;;
2763 powerpc-*-kfreebsd*) machine=macppc ;;
2764 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2765 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2766 esac
2769 ## NetBSD ports
2770 *-*-netbsd* )
2771 opsys=netbsd
2772 if test -f /usr/lib/crti.o; then
2774 cat >>confdefs.h <<\_ACEOF
2775 #define HAVE_CRTIN /**/
2776 _ACEOF
2780 case "${canonical}" in
2781 alpha*-*-netbsd*) machine=alpha ;;
2782 i[3456]86-*-netbsd*) machine=intel386 ;;
2783 mips-*-netbsd*) machine=mips ;;
2784 mipsel-*-netbsd*) machine=mips ;;
2785 mipseb-*-netbsd*) machine=mips ;;
2786 powerpc-*-netbsd*) machine=macppc ;;
2787 sparc*-*-netbsd*) machine=sparc ;;
2788 vax-*-netbsd*) machine=vax ;;
2789 arm-*-netbsd*) machine=arm ;;
2790 x86_64-*-netbsd*) machine=amdx86-64 ;;
2791 hppa-*-netbsd*) machine=hp800 ;;
2792 m68k-*-netbsd*) machine=m68k ;;
2793 esac
2796 ## OpenBSD ports
2797 *-*-openbsd* )
2798 opsys=openbsd
2799 case "${canonical}" in
2800 alpha*-*-openbsd*) machine=alpha ;;
2801 arm-*-openbsd*) machine=arm ;;
2802 i386-*-openbsd*) machine=intel386 ;;
2803 powerpc-*-openbsd*) machine=macppc ;;
2804 sparc*-*-openbsd*) machine=sparc ;;
2805 vax-*-openbsd*) machine=vax ;;
2806 x86_64-*-openbsd*) machine=amdx86-64 ;;
2807 hppa-*-openbsd*) machine=hp800 ;;
2808 esac
2811 alpha*-*-linux-gnu* )
2812 machine=alpha opsys=gnu-linux
2815 arm*-*-linux-gnu* )
2816 machine=arm opsys=gnu-linux
2819 ## Apple Darwin / Mac OS X
2820 *-apple-darwin* )
2821 case "${canonical}" in
2822 i[3456]86-* ) machine=intel386 ;;
2823 powerpc-* ) machine=macppc ;;
2824 x86_64-* ) machine=amdx86-64 ;;
2825 * ) unported=yes ;;
2826 esac
2827 opsys=darwin
2828 # Define CPP as follows to make autoconf work correctly.
2829 CPP="${CC-cc} -E -no-cpp-precomp"
2830 # Use fink packages if available.
2831 if test -d /sw/include && test -d /sw/lib; then
2832 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2833 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2834 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2838 ## HP 9000 series 700 and 800, running HP/UX
2839 hppa*-hp-hpux10.2* )
2840 machine=hp800 opsys=hpux10-20
2842 hppa*-hp-hpux1[1-9]* )
2843 machine=hp800 opsys=hpux11
2844 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2847 hppa*-*-linux-gnu* )
2848 machine=hp800 opsys=gnu-linux
2851 ## IBM machines
2852 s390-*-linux-gnu* )
2853 machine=ibms390 opsys=gnu-linux
2855 s390x-*-linux-gnu* )
2856 machine=ibms390x opsys=gnu-linux
2858 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2859 machine=ibmrs6000 opsys=aix4-2
2861 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2862 machine=ibmrs6000 opsys=aix4-2
2864 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2865 machine=ibmrs6000 opsys=aix4-2
2867 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2868 machine=ibmrs6000 opsys=aix4-2
2871 ## Macintosh PowerPC
2872 powerpc*-*-linux-gnu* )
2873 machine=macppc opsys=gnu-linux
2876 ## Silicon Graphics machines
2877 ## Iris 4D
2878 mips-sgi-irix6.5 )
2879 machine=iris4d opsys=irix6-5
2880 # Without defining _LANGUAGE_C, things get masked out in the headers
2881 # so that, for instance, grepping for `free' in stdlib.h fails and
2882 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2883 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2884 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2887 ## Suns
2888 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2889 machine=sparc opsys=gnu-linux
2892 *-sun-solaris* \
2893 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2894 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2895 case "${canonical}" in
2896 i[3456]86-*-* ) machine=intel386 ;;
2897 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2898 sparc* ) machine=sparc ;;
2899 * ) unported=yes ;;
2900 esac
2901 case "${canonical}" in
2902 *-sunos5.6* | *-solaris2.6* )
2903 opsys=sol2-6
2904 NON_GNU_CPP=/usr/ccs/lib/cpp
2905 RANLIB="ar -ts"
2907 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2908 opsys=sol2-6
2909 emacs_check_sunpro_c=yes
2910 NON_GNU_CPP=/usr/ccs/lib/cpp
2912 *-sunos5* | *-solaris* )
2913 opsys=sol2-10
2914 emacs_check_sunpro_c=yes
2915 NON_GNU_CPP=/usr/ccs/lib/cpp
2917 esac
2918 ## Watch out for a compiler that we know will not work.
2919 case "${canonical}" in
2920 *-solaris* | *-sunos5* )
2921 if [ "x$CC" = x/usr/ucb/cc ]; then
2922 ## /usr/ucb/cc doesn't work;
2923 ## we should find some other compiler that does work.
2924 unset CC
2927 *) ;;
2928 esac
2931 ## IA-64
2932 ia64*-*-linux* )
2933 machine=ia64 opsys=gnu-linux
2936 ## Intel 386 machines where we don't care about the manufacturer
2937 i[3456]86-*-* )
2938 machine=intel386
2939 case "${canonical}" in
2940 *-cygwin ) opsys=cygwin ;;
2941 *-darwin* ) opsys=darwin
2942 CPP="${CC-cc} -E -no-cpp-precomp"
2944 *-linux-gnu* ) opsys=gnu-linux ;;
2945 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2946 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2947 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2948 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2949 esac
2952 ## m68k Linux-based GNU system
2953 m68k-*-linux-gnu* )
2954 machine=m68k opsys=gnu-linux
2957 ## Mips Linux-based GNU system
2958 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2959 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2960 machine=mips opsys=gnu-linux
2963 ## AMD x86-64 Linux-based GNU system
2964 x86_64-*-linux-gnu* )
2965 machine=amdx86-64 opsys=gnu-linux
2968 ## Tensilica Xtensa Linux-based GNU system
2969 xtensa*-*-linux-gnu* )
2970 machine=xtensa opsys=gnu-linux
2973 ## SuperH Linux-based GNU system
2974 sh[34]*-*-linux-gnu* )
2975 machine=sh3 opsys=gnu-linux
2979 unported=yes
2981 esac
2983 ### If the code above didn't choose an operating system, just choose
2984 ### an operating system based on the configuration name. You really
2985 ### only want to use this when you have no idea what the right
2986 ### operating system is; if you know what operating systems a machine
2987 ### runs, it's cleaner to make it explicit in the case statement
2988 ### above.
2989 if test x"${opsys}" = x; then
2990 case "${canonical}" in
2991 *-gnu* ) opsys=gnu ;;
2993 unported=yes
2995 esac
3000 if test $unported = yes; then
3001 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3002 Check \`etc/MACHINES' for recognized configuration names." >&5
3003 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3004 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3005 { (exit 1); exit 1; }; }
3008 machfile="m/${machine}.h"
3009 opsysfile="s/${opsys}.h"
3012 #### Choose a compiler.
3013 test -n "$CC" && cc_specified=yes
3015 # Save the value of CFLAGS that the user specified.
3016 SPECIFIED_CFLAGS="$CFLAGS"
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 if test -n "$ac_tool_prefix"; then
3024 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3025 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3026 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if test "${ac_cv_prog_CC+set}" = set; then
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3042 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3045 done
3046 done
3047 IFS=$as_save_IFS
3051 CC=$ac_cv_prog_CC
3052 if test -n "$CC"; then
3053 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3054 $as_echo "$CC" >&6; }
3055 else
3056 { $as_echo "$as_me:$LINENO: result: no" >&5
3057 $as_echo "no" >&6; }
3062 if test -z "$ac_cv_prog_CC"; then
3063 ac_ct_CC=$CC
3064 # Extract the first word of "gcc", so it can be a program name with args.
3065 set dummy gcc; ac_word=$2
3066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3069 $as_echo_n "(cached) " >&6
3070 else
3071 if test -n "$ac_ct_CC"; then
3072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081 ac_cv_prog_ac_ct_CC="gcc"
3082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3085 done
3086 done
3087 IFS=$as_save_IFS
3091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3092 if test -n "$ac_ct_CC"; then
3093 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3094 $as_echo "$ac_ct_CC" >&6; }
3095 else
3096 { $as_echo "$as_me:$LINENO: result: no" >&5
3097 $as_echo "no" >&6; }
3100 if test "x$ac_ct_CC" = x; then
3101 CC=""
3102 else
3103 case $cross_compiling:$ac_tool_warned in
3104 yes:)
3105 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3106 whose name does not start with the host triplet. If you think this
3107 configuration is useful to you, please write to autoconf@gnu.org." >&5
3108 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3109 whose name does not start with the host triplet. If you think this
3110 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3111 ac_tool_warned=yes ;;
3112 esac
3113 CC=$ac_ct_CC
3115 else
3116 CC="$ac_cv_prog_CC"
3119 if test -z "$CC"; then
3120 if test -n "$ac_tool_prefix"; then
3121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3122 set dummy ${ac_tool_prefix}cc; ac_word=$2
3123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_CC+set}" = set; then
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138 ac_cv_prog_CC="${ac_tool_prefix}cc"
3139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3142 done
3143 done
3144 IFS=$as_save_IFS
3148 CC=$ac_cv_prog_CC
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3152 else
3153 { $as_echo "$as_me:$LINENO: result: no" >&5
3154 $as_echo "no" >&6; }
3160 if test -z "$CC"; then
3161 # Extract the first word of "cc", so it can be a program name with args.
3162 set dummy cc; ac_word=$2
3163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_CC+set}" = set; then
3166 $as_echo_n "(cached) " >&6
3167 else
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3170 else
3171 ac_prog_rejected=no
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3180 ac_prog_rejected=yes
3181 continue
3183 ac_cv_prog_CC="cc"
3184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3187 done
3188 done
3189 IFS=$as_save_IFS
3191 if test $ac_prog_rejected = yes; then
3192 # We found a bogon in the path, so make sure we never use it.
3193 set dummy $ac_cv_prog_CC
3194 shift
3195 if test $# != 0; then
3196 # We chose a different compiler from the bogus one.
3197 # However, it has the same basename, so the bogon will be chosen
3198 # first if we set CC to just the basename; use the full file name.
3199 shift
3200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3205 CC=$ac_cv_prog_CC
3206 if test -n "$CC"; then
3207 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3208 $as_echo "$CC" >&6; }
3209 else
3210 { $as_echo "$as_me:$LINENO: result: no" >&5
3211 $as_echo "no" >&6; }
3216 if test -z "$CC"; then
3217 if test -n "$ac_tool_prefix"; then
3218 for ac_prog in cl.exe
3220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if test "${ac_cv_prog_CC+set}" = set; then
3225 $as_echo_n "(cached) " >&6
3226 else
3227 if test -n "$CC"; then
3228 ac_cv_prog_CC="$CC" # Let the user override the test.
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 break 2
3241 done
3242 done
3243 IFS=$as_save_IFS
3247 CC=$ac_cv_prog_CC
3248 if test -n "$CC"; then
3249 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3250 $as_echo "$CC" >&6; }
3251 else
3252 { $as_echo "$as_me:$LINENO: result: no" >&5
3253 $as_echo "no" >&6; }
3257 test -n "$CC" && break
3258 done
3260 if test -z "$CC"; then
3261 ac_ct_CC=$CC
3262 for ac_prog in cl.exe
3264 # Extract the first word of "$ac_prog", so it can be a program name with args.
3265 set dummy $ac_prog; ac_word=$2
3266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3269 $as_echo_n "(cached) " >&6
3270 else
3271 if test -n "$ac_ct_CC"; then
3272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281 ac_cv_prog_ac_ct_CC="$ac_prog"
3282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3285 done
3286 done
3287 IFS=$as_save_IFS
3291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3292 if test -n "$ac_ct_CC"; then
3293 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3294 $as_echo "$ac_ct_CC" >&6; }
3295 else
3296 { $as_echo "$as_me:$LINENO: result: no" >&5
3297 $as_echo "no" >&6; }
3301 test -n "$ac_ct_CC" && break
3302 done
3304 if test "x$ac_ct_CC" = x; then
3305 CC=""
3306 else
3307 case $cross_compiling:$ac_tool_warned in
3308 yes:)
3309 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3310 whose name does not start with the host triplet. If you think this
3311 configuration is useful to you, please write to autoconf@gnu.org." >&5
3312 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3313 whose name does not start with the host triplet. If you think this
3314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3315 ac_tool_warned=yes ;;
3316 esac
3317 CC=$ac_ct_CC
3324 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3325 See \`config.log' for more details." >&5
3326 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3327 See \`config.log' for more details." >&2;}
3328 { (exit 1); exit 1; }; }
3330 # Provide some information about the compiler.
3331 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3332 set X $ac_compile
3333 ac_compiler=$2
3334 { (ac_try="$ac_compiler --version >&5"
3335 case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338 esac
3339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3340 $as_echo "$ac_try_echo") >&5
3341 (eval "$ac_compiler --version >&5") 2>&5
3342 ac_status=$?
3343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }
3345 { (ac_try="$ac_compiler -v >&5"
3346 case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349 esac
3350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3351 $as_echo "$ac_try_echo") >&5
3352 (eval "$ac_compiler -v >&5") 2>&5
3353 ac_status=$?
3354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }
3356 { (ac_try="$ac_compiler -V >&5"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362 $as_echo "$ac_try_echo") >&5
3363 (eval "$ac_compiler -V >&5") 2>&5
3364 ac_status=$?
3365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }
3368 cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h. */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3376 main ()
3380 return 0;
3382 _ACEOF
3383 ac_clean_files_save=$ac_clean_files
3384 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3385 # Try to create an executable without -o first, disregard a.out.
3386 # It will help us diagnose broken compilers, and finding out an intuition
3387 # of exeext.
3388 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3389 $as_echo_n "checking for C compiler default output file name... " >&6; }
3390 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3392 # The possible output files:
3393 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3395 ac_rmfiles=
3396 for ac_file in $ac_files
3398 case $ac_file in
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3401 esac
3402 done
3403 rm -f $ac_rmfiles
3405 if { (ac_try="$ac_link_default"
3406 case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3411 $as_echo "$ac_try_echo") >&5
3412 (eval "$ac_link_default") 2>&5
3413 ac_status=$?
3414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; then
3416 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3417 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3418 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3419 # so that the user can short-circuit this test for compilers unknown to
3420 # Autoconf.
3421 for ac_file in $ac_files ''
3423 test -f "$ac_file" || continue
3424 case $ac_file in
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3427 [ab].out )
3428 # We found the default executable, but exeext='' is most
3429 # certainly right.
3430 break;;
3431 *.* )
3432 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3433 then :; else
3434 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3436 # We set ac_cv_exeext here because the later test for it is not
3437 # safe: cross compilers may not add the suffix if given an `-o'
3438 # argument, so we may need to know it at that point already.
3439 # Even if this section looks crufty: it has the advantage of
3440 # actually working.
3441 break;;
3443 break;;
3444 esac
3445 done
3446 test "$ac_cv_exeext" = no && ac_cv_exeext=
3448 else
3449 ac_file=''
3452 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3453 $as_echo "$ac_file" >&6; }
3454 if test -z "$ac_file"; then
3455 $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3459 See \`config.log' for more details." >&5
3460 $as_echo "$as_me: error: C compiler cannot create executables
3461 See \`config.log' for more details." >&2;}
3462 { (exit 77); exit 77; }; }
3465 ac_exeext=$ac_cv_exeext
3467 # Check that the compiler produces executables we can run. If not, either
3468 # the compiler is broken, or we cross compile.
3469 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3470 $as_echo_n "checking whether the C compiler works... " >&6; }
3471 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3472 # If not cross compiling, check that we can run a simple program.
3473 if test "$cross_compiling" != yes; then
3474 if { ac_try='./$ac_file'
3475 { (case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480 $as_echo "$ac_try_echo") >&5
3481 (eval "$ac_try") 2>&5
3482 ac_status=$?
3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3485 cross_compiling=no
3486 else
3487 if test "$cross_compiling" = maybe; then
3488 cross_compiling=yes
3489 else
3490 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3491 If you meant to cross compile, use \`--host'.
3492 See \`config.log' for more details." >&5
3493 $as_echo "$as_me: error: cannot run C compiled programs.
3494 If you meant to cross compile, use \`--host'.
3495 See \`config.log' for more details." >&2;}
3496 { (exit 1); exit 1; }; }
3500 { $as_echo "$as_me:$LINENO: result: yes" >&5
3501 $as_echo "yes" >&6; }
3503 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3504 ac_clean_files=$ac_clean_files_save
3505 # Check that the compiler produces executables we can run. If not, either
3506 # the compiler is broken, or we cross compile.
3507 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3508 $as_echo_n "checking whether we are cross compiling... " >&6; }
3509 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3510 $as_echo "$cross_compiling" >&6; }
3512 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3513 $as_echo_n "checking for suffix of executables... " >&6; }
3514 if { (ac_try="$ac_link"
3515 case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518 esac
3519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3520 $as_echo "$ac_try_echo") >&5
3521 (eval "$ac_link") 2>&5
3522 ac_status=$?
3523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; then
3525 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3526 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3527 # work properly (i.e., refer to `conftest.exe'), while it won't with
3528 # `rm'.
3529 for ac_file in conftest.exe conftest conftest.*; do
3530 test -f "$ac_file" || continue
3531 case $ac_file in
3532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3533 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3534 break;;
3535 * ) break;;
3536 esac
3537 done
3538 else
3539 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3540 See \`config.log' for more details." >&5
3541 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3542 See \`config.log' for more details." >&2;}
3543 { (exit 1); exit 1; }; }
3546 rm -f conftest$ac_cv_exeext
3547 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3548 $as_echo "$ac_cv_exeext" >&6; }
3550 rm -f conftest.$ac_ext
3551 EXEEXT=$ac_cv_exeext
3552 ac_exeext=$EXEEXT
3553 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3554 $as_echo_n "checking for suffix of object files... " >&6; }
3555 if test "${ac_cv_objext+set}" = set; then
3556 $as_echo_n "(cached) " >&6
3557 else
3558 cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h. */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3566 main ()
3570 return 0;
3572 _ACEOF
3573 rm -f conftest.o conftest.obj
3574 if { (ac_try="$ac_compile"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3580 $as_echo "$ac_try_echo") >&5
3581 (eval "$ac_compile") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; then
3585 for ac_file in conftest.o conftest.obj conftest.*; do
3586 test -f "$ac_file" || continue;
3587 case $ac_file in
3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3589 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3590 break;;
3591 esac
3592 done
3593 else
3594 $as_echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3597 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3598 See \`config.log' for more details." >&5
3599 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3600 See \`config.log' for more details." >&2;}
3601 { (exit 1); exit 1; }; }
3604 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3606 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3607 $as_echo "$ac_cv_objext" >&6; }
3608 OBJEXT=$ac_cv_objext
3609 ac_objext=$OBJEXT
3610 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3611 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3612 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3613 $as_echo_n "(cached) " >&6
3614 else
3615 cat >conftest.$ac_ext <<_ACEOF
3616 /* confdefs.h. */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3623 main ()
3625 #ifndef __GNUC__
3626 choke me
3627 #endif
3630 return 0;
3632 _ACEOF
3633 rm -f conftest.$ac_objext
3634 if { (ac_try="$ac_compile"
3635 case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638 esac
3639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3640 $as_echo "$ac_try_echo") >&5
3641 (eval "$ac_compile") 2>conftest.er1
3642 ac_status=$?
3643 grep -v '^ *+' conftest.er1 >conftest.err
3644 rm -f conftest.er1
3645 cat conftest.err >&5
3646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } && {
3648 test -z "$ac_c_werror_flag" ||
3649 test ! -s conftest.err
3650 } && test -s conftest.$ac_objext; then
3651 ac_compiler_gnu=yes
3652 else
3653 $as_echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3656 ac_compiler_gnu=no
3659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3663 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3664 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3665 if test $ac_compiler_gnu = yes; then
3666 GCC=yes
3667 else
3668 GCC=
3670 ac_test_CFLAGS=${CFLAGS+set}
3671 ac_save_CFLAGS=$CFLAGS
3672 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3673 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3674 if test "${ac_cv_prog_cc_g+set}" = set; then
3675 $as_echo_n "(cached) " >&6
3676 else
3677 ac_save_c_werror_flag=$ac_c_werror_flag
3678 ac_c_werror_flag=yes
3679 ac_cv_prog_cc_g=no
3680 CFLAGS="-g"
3681 cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h. */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3689 main ()
3693 return 0;
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703 $as_echo "$ac_try_echo") >&5
3704 (eval "$ac_compile") 2>conftest.er1
3705 ac_status=$?
3706 grep -v '^ *+' conftest.er1 >conftest.err
3707 rm -f conftest.er1
3708 cat conftest.err >&5
3709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && {
3711 test -z "$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest.$ac_objext; then
3714 ac_cv_prog_cc_g=yes
3715 else
3716 $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3719 CFLAGS=""
3720 cat >conftest.$ac_ext <<_ACEOF
3721 /* confdefs.h. */
3722 _ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3728 main ()
3732 return 0;
3734 _ACEOF
3735 rm -f conftest.$ac_objext
3736 if { (ac_try="$ac_compile"
3737 case "(($ac_try" in
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3740 esac
3741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3742 $as_echo "$ac_try_echo") >&5
3743 (eval "$ac_compile") 2>conftest.er1
3744 ac_status=$?
3745 grep -v '^ *+' conftest.er1 >conftest.err
3746 rm -f conftest.er1
3747 cat conftest.err >&5
3748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } && {
3750 test -z "$ac_c_werror_flag" ||
3751 test ! -s conftest.err
3752 } && test -s conftest.$ac_objext; then
3754 else
3755 $as_echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3758 ac_c_werror_flag=$ac_save_c_werror_flag
3759 CFLAGS="-g"
3760 cat >conftest.$ac_ext <<_ACEOF
3761 /* confdefs.h. */
3762 _ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3768 main ()
3772 return 0;
3774 _ACEOF
3775 rm -f conftest.$ac_objext
3776 if { (ac_try="$ac_compile"
3777 case "(($ac_try" in
3778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779 *) ac_try_echo=$ac_try;;
3780 esac
3781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3782 $as_echo "$ac_try_echo") >&5
3783 (eval "$ac_compile") 2>conftest.er1
3784 ac_status=$?
3785 grep -v '^ *+' conftest.er1 >conftest.err
3786 rm -f conftest.er1
3787 cat conftest.err >&5
3788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } && {
3790 test -z "$ac_c_werror_flag" ||
3791 test ! -s conftest.err
3792 } && test -s conftest.$ac_objext; then
3793 ac_cv_prog_cc_g=yes
3794 else
3795 $as_echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 ac_c_werror_flag=$ac_save_c_werror_flag
3810 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3811 $as_echo "$ac_cv_prog_cc_g" >&6; }
3812 if test "$ac_test_CFLAGS" = set; then
3813 CFLAGS=$ac_save_CFLAGS
3814 elif test $ac_cv_prog_cc_g = yes; then
3815 if test "$GCC" = yes; then
3816 CFLAGS="-g -O2"
3817 else
3818 CFLAGS="-g"
3820 else
3821 if test "$GCC" = yes; then
3822 CFLAGS="-O2"
3823 else
3824 CFLAGS=
3827 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3829 if test "${ac_cv_prog_cc_c89+set}" = set; then
3830 $as_echo_n "(cached) " >&6
3831 else
3832 ac_cv_prog_cc_c89=no
3833 ac_save_CC=$CC
3834 cat >conftest.$ac_ext <<_ACEOF
3835 /* confdefs.h. */
3836 _ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3840 #include <stdarg.h>
3841 #include <stdio.h>
3842 #include <sys/types.h>
3843 #include <sys/stat.h>
3844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3845 struct buf { int x; };
3846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3847 static char *e (p, i)
3848 char **p;
3849 int i;
3851 return p[i];
3853 static char *f (char * (*g) (char **, int), char **p, ...)
3855 char *s;
3856 va_list v;
3857 va_start (v,p);
3858 s = g (p, va_arg (v,int));
3859 va_end (v);
3860 return s;
3863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3864 function prototypes and stuff, but not '\xHH' hex character constants.
3865 These don't provoke an error unfortunately, instead are silently treated
3866 as 'x'. The following induces an error, until -std is added to get
3867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3868 array size at least. It's necessary to write '\x00'==0 to get something
3869 that's true only with -std. */
3870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3873 inside strings and character constants. */
3874 #define FOO(x) 'x'
3875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3877 int test (int i, double x);
3878 struct s1 {int (*f) (int a);};
3879 struct s2 {int (*f) (double a);};
3880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3881 int argc;
3882 char **argv;
3884 main ()
3886 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3888 return 0;
3890 _ACEOF
3891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3894 CC="$ac_save_CC $ac_arg"
3895 rm -f conftest.$ac_objext
3896 if { (ac_try="$ac_compile"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3902 $as_echo "$ac_try_echo") >&5
3903 (eval "$ac_compile") 2>conftest.er1
3904 ac_status=$?
3905 grep -v '^ *+' conftest.er1 >conftest.err
3906 rm -f conftest.er1
3907 cat conftest.err >&5
3908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } && {
3910 test -z "$ac_c_werror_flag" ||
3911 test ! -s conftest.err
3912 } && test -s conftest.$ac_objext; then
3913 ac_cv_prog_cc_c89=$ac_arg
3914 else
3915 $as_echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3921 rm -f core conftest.err conftest.$ac_objext
3922 test "x$ac_cv_prog_cc_c89" != "xno" && break
3923 done
3924 rm -f conftest.$ac_ext
3925 CC=$ac_save_CC
3928 # AC_CACHE_VAL
3929 case "x$ac_cv_prog_cc_c89" in
3931 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3932 $as_echo "none needed" >&6; } ;;
3933 xno)
3934 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3935 $as_echo "unsupported" >&6; } ;;
3937 CC="$CC $ac_cv_prog_cc_c89"
3938 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3939 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3940 esac
3943 ac_ext=c
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950 # On Suns, sometimes $CPP names a directory.
3951 if test -n "$CPP" && test -d "$CPP"; then
3952 CPP=
3955 ## If not using gcc, and on Solaris, and no CPP specified, see if
3956 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3957 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3958 test x"$CPP" = x; then
3959 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3960 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3962 if test "${emacs_cv_sunpro_c+set}" = set; then
3963 $as_echo_n "(cached) " >&6
3964 else
3965 cat >conftest.$ac_ext <<_ACEOF
3966 /* confdefs.h. */
3967 _ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3973 main ()
3975 #ifndef __SUNPRO_C
3976 fail;
3977 #endif
3980 return 0;
3982 _ACEOF
3983 rm -f conftest.$ac_objext conftest$ac_exeext
3984 if { (ac_try="$ac_link"
3985 case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988 esac
3989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3990 $as_echo "$ac_try_echo") >&5
3991 (eval "$ac_link") 2>conftest.er1
3992 ac_status=$?
3993 grep -v '^ *+' conftest.er1 >conftest.err
3994 rm -f conftest.er1
3995 cat conftest.err >&5
3996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } && {
3998 test -z "$ac_c_werror_flag" ||
3999 test ! -s conftest.err
4000 } && test -s conftest$ac_exeext && {
4001 test "$cross_compiling" = yes ||
4002 $as_test_x conftest$ac_exeext
4003 }; then
4004 emacs_cv_sunpro_c=yes
4005 else
4006 $as_echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 emacs_cv_sunpro_c=no
4012 rm -rf conftest.dSYM
4013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4014 conftest$ac_exeext conftest.$ac_ext
4017 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4018 $as_echo "$emacs_cv_sunpro_c" >&6; }
4020 if test x"$emacs_cv_sunpro_c" = xyes; then
4021 NON_GNU_CPP="$CC -E -Xs"
4025 #### Some systems specify a CPP to use unless we are using GCC.
4026 #### Now that we know whether we are using GCC, we can decide whether
4027 #### to use that one.
4028 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4029 then
4030 CPP="$NON_GNU_CPP"
4033 #### Some systems specify a CC to use unless we are using GCC.
4034 #### Now that we know whether we are using GCC, we can decide whether
4035 #### to use that one.
4036 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4037 test x$cc_specified != xyes
4038 then
4039 CC="$NON_GNU_CC"
4042 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4043 then
4044 CC="$CC $GCC_TEST_OPTIONS"
4047 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4048 then
4049 CC="$CC $NON_GCC_TEST_OPTIONS"
4052 ac_ext=c
4053 ac_cpp='$CPP $CPPFLAGS'
4054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4058 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4059 # On Suns, sometimes $CPP names a directory.
4060 if test -n "$CPP" && test -d "$CPP"; then
4061 CPP=
4063 if test -z "$CPP"; then
4064 if test "${ac_cv_prog_CPP+set}" = set; then
4065 $as_echo_n "(cached) " >&6
4066 else
4067 # Double quotes because CPP needs to be expanded
4068 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4070 ac_preproc_ok=false
4071 for ac_c_preproc_warn_flag in '' yes
4073 # Use a header file that comes with gcc, so configuring glibc
4074 # with a fresh cross-compiler works.
4075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4076 # <limits.h> exists even on freestanding compilers.
4077 # On the NeXT, cc -E runs the code through the compiler's parser,
4078 # not just through cpp. "Syntax error" is here to catch this case.
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h. */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 #ifdef __STDC__
4086 # include <limits.h>
4087 #else
4088 # include <assert.h>
4089 #endif
4090 Syntax error
4091 _ACEOF
4092 if { (ac_try="$ac_cpp conftest.$ac_ext"
4093 case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096 esac
4097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4098 $as_echo "$ac_try_echo") >&5
4099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4100 ac_status=$?
4101 grep -v '^ *+' conftest.er1 >conftest.err
4102 rm -f conftest.er1
4103 cat conftest.err >&5
4104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } >/dev/null && {
4106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4108 }; then
4110 else
4111 $as_echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 # Broken: fails on valid input.
4115 continue
4118 rm -f conftest.err conftest.$ac_ext
4120 # OK, works on sane cases. Now check whether nonexistent headers
4121 # can be detected and how.
4122 cat >conftest.$ac_ext <<_ACEOF
4123 /* confdefs.h. */
4124 _ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4128 #include <ac_nonexistent.h>
4129 _ACEOF
4130 if { (ac_try="$ac_cpp conftest.$ac_ext"
4131 case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134 esac
4135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4136 $as_echo "$ac_try_echo") >&5
4137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } >/dev/null && {
4144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4146 }; then
4147 # Broken: success on invalid input.
4148 continue
4149 else
4150 $as_echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 # Passes both tests.
4154 ac_preproc_ok=:
4155 break
4158 rm -f conftest.err conftest.$ac_ext
4160 done
4161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4162 rm -f conftest.err conftest.$ac_ext
4163 if $ac_preproc_ok; then
4164 break
4167 done
4168 ac_cv_prog_CPP=$CPP
4171 CPP=$ac_cv_prog_CPP
4172 else
4173 ac_cv_prog_CPP=$CPP
4175 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4176 $as_echo "$CPP" >&6; }
4177 ac_preproc_ok=false
4178 for ac_c_preproc_warn_flag in '' yes
4180 # Use a header file that comes with gcc, so configuring glibc
4181 # with a fresh cross-compiler works.
4182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4183 # <limits.h> exists even on freestanding compilers.
4184 # On the NeXT, cc -E runs the code through the compiler's parser,
4185 # not just through cpp. "Syntax error" is here to catch this case.
4186 cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h. */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4192 #ifdef __STDC__
4193 # include <limits.h>
4194 #else
4195 # include <assert.h>
4196 #endif
4197 Syntax error
4198 _ACEOF
4199 if { (ac_try="$ac_cpp conftest.$ac_ext"
4200 case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4205 $as_echo "$ac_try_echo") >&5
4206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4207 ac_status=$?
4208 grep -v '^ *+' conftest.er1 >conftest.err
4209 rm -f conftest.er1
4210 cat conftest.err >&5
4211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } >/dev/null && {
4213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4214 test ! -s conftest.err
4215 }; then
4217 else
4218 $as_echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 # Broken: fails on valid input.
4222 continue
4225 rm -f conftest.err conftest.$ac_ext
4227 # OK, works on sane cases. Now check whether nonexistent headers
4228 # can be detected and how.
4229 cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h. */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 #include <ac_nonexistent.h>
4236 _ACEOF
4237 if { (ac_try="$ac_cpp conftest.$ac_ext"
4238 case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241 esac
4242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4243 $as_echo "$ac_try_echo") >&5
4244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } >/dev/null && {
4251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4252 test ! -s conftest.err
4253 }; then
4254 # Broken: success on invalid input.
4255 continue
4256 else
4257 $as_echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4260 # Passes both tests.
4261 ac_preproc_ok=:
4262 break
4265 rm -f conftest.err conftest.$ac_ext
4267 done
4268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4269 rm -f conftest.err conftest.$ac_ext
4270 if $ac_preproc_ok; then
4272 else
4273 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4274 See \`config.log' for more details." >&5
4275 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4276 See \`config.log' for more details." >&2;}
4277 { (exit 1); exit 1; }; }
4280 ac_ext=c
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4288 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4289 if test "${ac_cv_path_GREP+set}" = set; then
4290 $as_echo_n "(cached) " >&6
4291 else
4292 if test -z "$GREP"; then
4293 ac_path_GREP_found=false
4294 # Loop through the user's path and test for each of PROGNAME-LIST
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_prog in grep ggrep; do
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4303 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4304 # Check for GNU ac_path_GREP and select it if it is found.
4305 # Check for GNU $ac_path_GREP
4306 case `"$ac_path_GREP" --version 2>&1` in
4307 *GNU*)
4308 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4310 ac_count=0
4311 $as_echo_n 0123456789 >"conftest.in"
4312 while :
4314 cat "conftest.in" "conftest.in" >"conftest.tmp"
4315 mv "conftest.tmp" "conftest.in"
4316 cp "conftest.in" "conftest.nl"
4317 $as_echo 'GREP' >> "conftest.nl"
4318 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4320 ac_count=`expr $ac_count + 1`
4321 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4322 # Best one so far, save it but keep looking for a better one
4323 ac_cv_path_GREP="$ac_path_GREP"
4324 ac_path_GREP_max=$ac_count
4326 # 10*(2^10) chars as input seems more than enough
4327 test $ac_count -gt 10 && break
4328 done
4329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4330 esac
4332 $ac_path_GREP_found && break 3
4333 done
4334 done
4335 done
4336 IFS=$as_save_IFS
4337 if test -z "$ac_cv_path_GREP"; then
4338 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4339 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4340 { (exit 1); exit 1; }; }
4342 else
4343 ac_cv_path_GREP=$GREP
4347 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4348 $as_echo "$ac_cv_path_GREP" >&6; }
4349 GREP="$ac_cv_path_GREP"
4352 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4353 $as_echo_n "checking for egrep... " >&6; }
4354 if test "${ac_cv_path_EGREP+set}" = set; then
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4358 then ac_cv_path_EGREP="$GREP -E"
4359 else
4360 if test -z "$EGREP"; then
4361 ac_path_EGREP_found=false
4362 # Loop through the user's path and test for each of PROGNAME-LIST
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_prog in egrep; do
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4371 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4372 # Check for GNU ac_path_EGREP and select it if it is found.
4373 # Check for GNU $ac_path_EGREP
4374 case `"$ac_path_EGREP" --version 2>&1` in
4375 *GNU*)
4376 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4378 ac_count=0
4379 $as_echo_n 0123456789 >"conftest.in"
4380 while :
4382 cat "conftest.in" "conftest.in" >"conftest.tmp"
4383 mv "conftest.tmp" "conftest.in"
4384 cp "conftest.in" "conftest.nl"
4385 $as_echo 'EGREP' >> "conftest.nl"
4386 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4388 ac_count=`expr $ac_count + 1`
4389 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4390 # Best one so far, save it but keep looking for a better one
4391 ac_cv_path_EGREP="$ac_path_EGREP"
4392 ac_path_EGREP_max=$ac_count
4394 # 10*(2^10) chars as input seems more than enough
4395 test $ac_count -gt 10 && break
4396 done
4397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4398 esac
4400 $ac_path_EGREP_found && break 3
4401 done
4402 done
4403 done
4404 IFS=$as_save_IFS
4405 if test -z "$ac_cv_path_EGREP"; then
4406 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4407 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4408 { (exit 1); exit 1; }; }
4410 else
4411 ac_cv_path_EGREP=$EGREP
4416 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4417 $as_echo "$ac_cv_path_EGREP" >&6; }
4418 EGREP="$ac_cv_path_EGREP"
4421 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4422 $as_echo_n "checking for ANSI C header files... " >&6; }
4423 if test "${ac_cv_header_stdc+set}" = set; then
4424 $as_echo_n "(cached) " >&6
4425 else
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <stdlib.h>
4433 #include <stdarg.h>
4434 #include <string.h>
4435 #include <float.h>
4438 main ()
4442 return 0;
4444 _ACEOF
4445 rm -f conftest.$ac_objext
4446 if { (ac_try="$ac_compile"
4447 case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4450 esac
4451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4452 $as_echo "$ac_try_echo") >&5
4453 (eval "$ac_compile") 2>conftest.er1
4454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } && {
4460 test -z "$ac_c_werror_flag" ||
4461 test ! -s conftest.err
4462 } && test -s conftest.$ac_objext; then
4463 ac_cv_header_stdc=yes
4464 else
4465 $as_echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4468 ac_cv_header_stdc=no
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 if test $ac_cv_header_stdc = yes; then
4474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4475 cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h. */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4481 #include <string.h>
4483 _ACEOF
4484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4485 $EGREP "memchr" >/dev/null 2>&1; then
4487 else
4488 ac_cv_header_stdc=no
4490 rm -f conftest*
4494 if test $ac_cv_header_stdc = yes; then
4495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4496 cat >conftest.$ac_ext <<_ACEOF
4497 /* confdefs.h. */
4498 _ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4502 #include <stdlib.h>
4504 _ACEOF
4505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4506 $EGREP "free" >/dev/null 2>&1; then
4508 else
4509 ac_cv_header_stdc=no
4511 rm -f conftest*
4515 if test $ac_cv_header_stdc = yes; then
4516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4517 if test "$cross_compiling" = yes; then
4519 else
4520 cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h. */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 #include <ctype.h>
4527 #include <stdlib.h>
4528 #if ((' ' & 0x0FF) == 0x020)
4529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4531 #else
4532 # define ISLOWER(c) \
4533 (('a' <= (c) && (c) <= 'i') \
4534 || ('j' <= (c) && (c) <= 'r') \
4535 || ('s' <= (c) && (c) <= 'z'))
4536 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4537 #endif
4539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4541 main ()
4543 int i;
4544 for (i = 0; i < 256; i++)
4545 if (XOR (islower (i), ISLOWER (i))
4546 || toupper (i) != TOUPPER (i))
4547 return 2;
4548 return 0;
4550 _ACEOF
4551 rm -f conftest$ac_exeext
4552 if { (ac_try="$ac_link"
4553 case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556 esac
4557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4558 $as_echo "$ac_try_echo") >&5
4559 (eval "$ac_link") 2>&5
4560 ac_status=$?
4561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4563 { (case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4566 esac
4567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4568 $as_echo "$ac_try_echo") >&5
4569 (eval "$ac_try") 2>&5
4570 ac_status=$?
4571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4574 else
4575 $as_echo "$as_me: program exited with status $ac_status" >&5
4576 $as_echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4579 ( exit $ac_status )
4580 ac_cv_header_stdc=no
4582 rm -rf conftest.dSYM
4583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4589 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4590 $as_echo "$ac_cv_header_stdc" >&6; }
4591 if test $ac_cv_header_stdc = yes; then
4593 cat >>confdefs.h <<\_ACEOF
4594 #define STDC_HEADERS 1
4595 _ACEOF
4599 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4609 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4610 inttypes.h stdint.h unistd.h
4612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4613 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4614 $as_echo_n "checking for $ac_header... " >&6; }
4615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4616 $as_echo_n "(cached) " >&6
4617 else
4618 cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h. */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4624 $ac_includes_default
4626 #include <$ac_header>
4627 _ACEOF
4628 rm -f conftest.$ac_objext
4629 if { (ac_try="$ac_compile"
4630 case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633 esac
4634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4635 $as_echo "$ac_try_echo") >&5
4636 (eval "$ac_compile") 2>conftest.er1
4637 ac_status=$?
4638 grep -v '^ *+' conftest.er1 >conftest.err
4639 rm -f conftest.er1
4640 cat conftest.err >&5
4641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } && {
4643 test -z "$ac_c_werror_flag" ||
4644 test ! -s conftest.err
4645 } && test -s conftest.$ac_objext; then
4646 eval "$as_ac_Header=yes"
4647 else
4648 $as_echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4651 eval "$as_ac_Header=no"
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 ac_res=`eval 'as_val=${'$as_ac_Header'}
4657 $as_echo "$as_val"'`
4658 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4659 $as_echo "$ac_res" >&6; }
4660 if test `eval 'as_val=${'$as_ac_Header'}
4661 $as_echo "$as_val"'` = yes; then
4662 cat >>confdefs.h <<_ACEOF
4663 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4664 _ACEOF
4668 done
4672 if test "${ac_cv_header_minix_config_h+set}" = set; then
4673 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4674 $as_echo_n "checking for minix/config.h... " >&6; }
4675 if test "${ac_cv_header_minix_config_h+set}" = set; then
4676 $as_echo_n "(cached) " >&6
4678 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4679 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4680 else
4681 # Is the header compilable?
4682 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4683 $as_echo_n "checking minix/config.h usability... " >&6; }
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 $ac_includes_default
4691 #include <minix/config.h>
4692 _ACEOF
4693 rm -f conftest.$ac_objext
4694 if { (ac_try="$ac_compile"
4695 case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698 esac
4699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4700 $as_echo "$ac_try_echo") >&5
4701 (eval "$ac_compile") 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } && {
4708 test -z "$ac_c_werror_flag" ||
4709 test ! -s conftest.err
4710 } && test -s conftest.$ac_objext; then
4711 ac_header_compiler=yes
4712 else
4713 $as_echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4716 ac_header_compiler=no
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4721 $as_echo "$ac_header_compiler" >&6; }
4723 # Is the header present?
4724 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4725 $as_echo_n "checking minix/config.h presence... " >&6; }
4726 cat >conftest.$ac_ext <<_ACEOF
4727 /* confdefs.h. */
4728 _ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4732 #include <minix/config.h>
4733 _ACEOF
4734 if { (ac_try="$ac_cpp conftest.$ac_ext"
4735 case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4738 esac
4739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4740 $as_echo "$ac_try_echo") >&5
4741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4742 ac_status=$?
4743 grep -v '^ *+' conftest.er1 >conftest.err
4744 rm -f conftest.er1
4745 cat conftest.err >&5
4746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } >/dev/null && {
4748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4749 test ! -s conftest.err
4750 }; then
4751 ac_header_preproc=yes
4752 else
4753 $as_echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4756 ac_header_preproc=no
4759 rm -f conftest.err conftest.$ac_ext
4760 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4761 $as_echo "$ac_header_preproc" >&6; }
4763 # So? What about this header?
4764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4765 yes:no: )
4766 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4767 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4768 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4769 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4770 ac_header_preproc=yes
4772 no:yes:* )
4773 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4774 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4775 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4776 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4778 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4780 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4782 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4784 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4787 esac
4788 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4789 $as_echo_n "checking for minix/config.h... " >&6; }
4790 if test "${ac_cv_header_minix_config_h+set}" = set; then
4791 $as_echo_n "(cached) " >&6
4792 else
4793 ac_cv_header_minix_config_h=$ac_header_preproc
4795 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4796 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4799 if test $ac_cv_header_minix_config_h = yes; then
4800 MINIX=yes
4801 else
4802 MINIX=
4806 if test "$MINIX" = yes; then
4808 cat >>confdefs.h <<\_ACEOF
4809 #define _POSIX_SOURCE 1
4810 _ACEOF
4813 cat >>confdefs.h <<\_ACEOF
4814 #define _POSIX_1_SOURCE 2
4815 _ACEOF
4818 cat >>confdefs.h <<\_ACEOF
4819 #define _MINIX 1
4820 _ACEOF
4826 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4827 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4828 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4829 $as_echo_n "(cached) " >&6
4830 else
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4838 # define __EXTENSIONS__ 1
4839 $ac_includes_default
4841 main ()
4845 return 0;
4847 _ACEOF
4848 rm -f conftest.$ac_objext
4849 if { (ac_try="$ac_compile"
4850 case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853 esac
4854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4855 $as_echo "$ac_try_echo") >&5
4856 (eval "$ac_compile") 2>conftest.er1
4857 ac_status=$?
4858 grep -v '^ *+' conftest.er1 >conftest.err
4859 rm -f conftest.er1
4860 cat conftest.err >&5
4861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } && {
4863 test -z "$ac_c_werror_flag" ||
4864 test ! -s conftest.err
4865 } && test -s conftest.$ac_objext; then
4866 ac_cv_safe_to_define___extensions__=yes
4867 else
4868 $as_echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4871 ac_cv_safe_to_define___extensions__=no
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4877 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4878 test $ac_cv_safe_to_define___extensions__ = yes &&
4879 cat >>confdefs.h <<\_ACEOF
4880 #define __EXTENSIONS__ 1
4881 _ACEOF
4883 cat >>confdefs.h <<\_ACEOF
4884 #define _ALL_SOURCE 1
4885 _ACEOF
4887 cat >>confdefs.h <<\_ACEOF
4888 #define _GNU_SOURCE 1
4889 _ACEOF
4891 cat >>confdefs.h <<\_ACEOF
4892 #define _POSIX_PTHREAD_SEMANTICS 1
4893 _ACEOF
4895 cat >>confdefs.h <<\_ACEOF
4896 #define _TANDEM_SOURCE 1
4897 _ACEOF
4901 ### Use -Wno-pointer-sign if the compiler supports it
4902 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4903 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4904 SAVE_CFLAGS="$CFLAGS"
4905 CFLAGS="$CFLAGS -Wno-pointer-sign"
4906 cat >conftest.$ac_ext <<_ACEOF
4907 /* confdefs.h. */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4914 main ()
4918 return 0;
4920 _ACEOF
4921 rm -f conftest.$ac_objext
4922 if { (ac_try="$ac_compile"
4923 case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4928 $as_echo "$ac_try_echo") >&5
4929 (eval "$ac_compile") 2>conftest.er1
4930 ac_status=$?
4931 grep -v '^ *+' conftest.er1 >conftest.err
4932 rm -f conftest.er1
4933 cat conftest.err >&5
4934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } && {
4936 test -z "$ac_c_werror_flag" ||
4937 test ! -s conftest.err
4938 } && test -s conftest.$ac_objext; then
4939 has_option=yes
4940 else
4941 $as_echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4944 has_option=no
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 if test $has_option = yes; then
4949 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4951 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4952 $as_echo "$has_option" >&6; }
4953 CFLAGS="$SAVE_CFLAGS"
4954 unset has_option
4955 unset SAVE_CFLAGS
4957 ### Use -Wdeclaration-after-statement if the compiler supports it
4958 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4959 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4960 SAVE_CFLAGS="$CFLAGS"
4961 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4962 cat >conftest.$ac_ext <<_ACEOF
4963 /* confdefs.h. */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4970 main ()
4974 return 0;
4976 _ACEOF
4977 rm -f conftest.$ac_objext
4978 if { (ac_try="$ac_compile"
4979 case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982 esac
4983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4984 $as_echo "$ac_try_echo") >&5
4985 (eval "$ac_compile") 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } && {
4992 test -z "$ac_c_werror_flag" ||
4993 test ! -s conftest.err
4994 } && test -s conftest.$ac_objext; then
4995 has_option=yes
4996 else
4997 $as_echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5000 has_option=no
5003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 if test $has_option = yes; then
5005 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5007 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5008 $as_echo "$has_option" >&6; }
5009 CFLAGS="$SAVE_CFLAGS"
5010 unset has_option
5011 unset SAVE_CFLAGS
5013 #### Some other nice autoconf tests.
5015 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5016 $as_echo_n "checking whether ln -s works... " >&6; }
5017 LN_S=$as_ln_s
5018 if test "$LN_S" = "ln -s"; then
5019 { $as_echo "$as_me:$LINENO: result: yes" >&5
5020 $as_echo "yes" >&6; }
5021 else
5022 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5023 $as_echo "no, using $LN_S" >&6; }
5026 ac_ext=c
5027 ac_cpp='$CPP $CPPFLAGS'
5028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5032 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5033 # On Suns, sometimes $CPP names a directory.
5034 if test -n "$CPP" && test -d "$CPP"; then
5035 CPP=
5037 if test -z "$CPP"; then
5038 if test "${ac_cv_prog_CPP+set}" = set; then
5039 $as_echo_n "(cached) " >&6
5040 else
5041 # Double quotes because CPP needs to be expanded
5042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5044 ac_preproc_ok=false
5045 for ac_c_preproc_warn_flag in '' yes
5047 # Use a header file that comes with gcc, so configuring glibc
5048 # with a fresh cross-compiler works.
5049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5050 # <limits.h> exists even on freestanding compilers.
5051 # On the NeXT, cc -E runs the code through the compiler's parser,
5052 # not just through cpp. "Syntax error" is here to catch this case.
5053 cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h. */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5059 #ifdef __STDC__
5060 # include <limits.h>
5061 #else
5062 # include <assert.h>
5063 #endif
5064 Syntax error
5065 _ACEOF
5066 if { (ac_try="$ac_cpp conftest.$ac_ext"
5067 case "(($ac_try" in
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5070 esac
5071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5072 $as_echo "$ac_try_echo") >&5
5073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null && {
5080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5082 }; then
5084 else
5085 $as_echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5088 # Broken: fails on valid input.
5089 continue
5092 rm -f conftest.err conftest.$ac_ext
5094 # OK, works on sane cases. Now check whether nonexistent headers
5095 # can be detected and how.
5096 cat >conftest.$ac_ext <<_ACEOF
5097 /* confdefs.h. */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5102 #include <ac_nonexistent.h>
5103 _ACEOF
5104 if { (ac_try="$ac_cpp conftest.$ac_ext"
5105 case "(($ac_try" in
5106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5108 esac
5109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5110 $as_echo "$ac_try_echo") >&5
5111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null && {
5118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5119 test ! -s conftest.err
5120 }; then
5121 # Broken: success on invalid input.
5122 continue
5123 else
5124 $as_echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5127 # Passes both tests.
5128 ac_preproc_ok=:
5129 break
5132 rm -f conftest.err conftest.$ac_ext
5134 done
5135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5136 rm -f conftest.err conftest.$ac_ext
5137 if $ac_preproc_ok; then
5138 break
5141 done
5142 ac_cv_prog_CPP=$CPP
5145 CPP=$ac_cv_prog_CPP
5146 else
5147 ac_cv_prog_CPP=$CPP
5149 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5150 $as_echo "$CPP" >&6; }
5151 ac_preproc_ok=false
5152 for ac_c_preproc_warn_flag in '' yes
5154 # Use a header file that comes with gcc, so configuring glibc
5155 # with a fresh cross-compiler works.
5156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5157 # <limits.h> exists even on freestanding compilers.
5158 # On the NeXT, cc -E runs the code through the compiler's parser,
5159 # not just through cpp. "Syntax error" is here to catch this case.
5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h. */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5166 #ifdef __STDC__
5167 # include <limits.h>
5168 #else
5169 # include <assert.h>
5170 #endif
5171 Syntax error
5172 _ACEOF
5173 if { (ac_try="$ac_cpp conftest.$ac_ext"
5174 case "(($ac_try" in
5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5177 esac
5178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5179 $as_echo "$ac_try_echo") >&5
5180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } >/dev/null && {
5187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5188 test ! -s conftest.err
5189 }; then
5191 else
5192 $as_echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5195 # Broken: fails on valid input.
5196 continue
5199 rm -f conftest.err conftest.$ac_ext
5201 # OK, works on sane cases. Now check whether nonexistent headers
5202 # can be detected and how.
5203 cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h. */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <ac_nonexistent.h>
5210 _ACEOF
5211 if { (ac_try="$ac_cpp conftest.$ac_ext"
5212 case "(($ac_try" in
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5215 esac
5216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5217 $as_echo "$ac_try_echo") >&5
5218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } >/dev/null && {
5225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5226 test ! -s conftest.err
5227 }; then
5228 # Broken: success on invalid input.
5229 continue
5230 else
5231 $as_echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5234 # Passes both tests.
5235 ac_preproc_ok=:
5236 break
5239 rm -f conftest.err conftest.$ac_ext
5241 done
5242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5243 rm -f conftest.err conftest.$ac_ext
5244 if $ac_preproc_ok; then
5246 else
5247 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5248 See \`config.log' for more details." >&5
5249 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5250 See \`config.log' for more details." >&2;}
5251 { (exit 1); exit 1; }; }
5254 ac_ext=c
5255 ac_cpp='$CPP $CPPFLAGS'
5256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5260 # Find a good install program. We prefer a C program (faster),
5261 # so one script is as good as another. But avoid the broken or
5262 # incompatible versions:
5263 # SysV /etc/install, /usr/sbin/install
5264 # SunOS /usr/etc/install
5265 # IRIX /sbin/install
5266 # AIX /bin/install
5267 # AmigaOS /C/install, which installs bootblocks on floppy discs
5268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5271 # OS/2's system install, which has a completely different semantic
5272 # ./install, which can be erroneously created by make from ./install.sh.
5273 # Reject install programs that cannot install multiple files.
5274 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5275 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5276 if test -z "$INSTALL"; then
5277 if test "${ac_cv_path_install+set}" = set; then
5278 $as_echo_n "(cached) " >&6
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 # Account for people who put trailing slashes in PATH elements.
5286 case $as_dir/ in
5287 ./ | .// | /cC/* | \
5288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5289 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5290 /usr/ucb/* ) ;;
5292 # OSF1 and SCO ODT 3.0 have their own names for install.
5293 # Don't use installbsd from OSF since it installs stuff as root
5294 # by default.
5295 for ac_prog in ginstall scoinst install; do
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5298 if test $ac_prog = install &&
5299 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5300 # AIX install. It has an incompatible calling convention.
5302 elif test $ac_prog = install &&
5303 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5304 # program-specific install script used by HP pwplus--don't use.
5306 else
5307 rm -rf conftest.one conftest.two conftest.dir
5308 echo one > conftest.one
5309 echo two > conftest.two
5310 mkdir conftest.dir
5311 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5312 test -s conftest.one && test -s conftest.two &&
5313 test -s conftest.dir/conftest.one &&
5314 test -s conftest.dir/conftest.two
5315 then
5316 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5317 break 3
5321 done
5322 done
5324 esac
5326 done
5327 IFS=$as_save_IFS
5329 rm -rf conftest.one conftest.two conftest.dir
5332 if test "${ac_cv_path_install+set}" = set; then
5333 INSTALL=$ac_cv_path_install
5334 else
5335 # As a last resort, use the slow shell script. Don't cache a
5336 # value for INSTALL within a source directory, because that will
5337 # break other packages using the cache if that directory is
5338 # removed, or if the value is a relative name.
5339 INSTALL=$ac_install_sh
5342 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5343 $as_echo "$INSTALL" >&6; }
5345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5346 # It thinks the first close brace ends the variable substitution.
5347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5353 if test "x$RANLIB" = x; then
5354 if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_RANLIB+set}" = set; then
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$RANLIB"; then
5363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
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_prog_RANLIB="${ac_tool_prefix}ranlib"
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
5382 RANLIB=$ac_cv_prog_RANLIB
5383 if test -n "$RANLIB"; then
5384 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5385 $as_echo "$RANLIB" >&6; }
5386 else
5387 { $as_echo "$as_me:$LINENO: result: no" >&5
5388 $as_echo "no" >&6; }
5393 if test -z "$ac_cv_prog_RANLIB"; then
5394 ac_ct_RANLIB=$RANLIB
5395 # Extract the first word of "ranlib", so it can be a program name with args.
5396 set dummy ranlib; ac_word=$2
5397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5400 $as_echo_n "(cached) " >&6
5401 else
5402 if test -n "$ac_ct_RANLIB"; then
5403 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
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_prog_ac_ct_RANLIB="ranlib"
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
5422 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5423 if test -n "$ac_ct_RANLIB"; then
5424 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5425 $as_echo "$ac_ct_RANLIB" >&6; }
5426 else
5427 { $as_echo "$as_me:$LINENO: result: no" >&5
5428 $as_echo "no" >&6; }
5431 if test "x$ac_ct_RANLIB" = x; then
5432 RANLIB=":"
5433 else
5434 case $cross_compiling:$ac_tool_warned in
5435 yes:)
5436 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5437 whose name does not start with the host triplet. If you think this
5438 configuration is useful to you, please write to autoconf@gnu.org." >&5
5439 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5440 whose name does not start with the host triplet. If you think this
5441 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5442 ac_tool_warned=yes ;;
5443 esac
5444 RANLIB=$ac_ct_RANLIB
5446 else
5447 RANLIB="$ac_cv_prog_RANLIB"
5451 # Extract the first word of "install-info", so it can be a program name with args.
5452 set dummy install-info; ac_word=$2
5453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5456 $as_echo_n "(cached) " >&6
5457 else
5458 case $INSTALL_INFO in
5459 [\\/]* | ?:[\\/]*)
5460 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5474 done
5475 done
5476 IFS=$as_save_IFS
5479 esac
5481 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5482 if test -n "$INSTALL_INFO"; then
5483 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5484 $as_echo "$INSTALL_INFO" >&6; }
5485 else
5486 { $as_echo "$as_me:$LINENO: result: no" >&5
5487 $as_echo "no" >&6; }
5491 # Extract the first word of "install-info", so it can be a program name with args.
5492 set dummy install-info; ac_word=$2
5493 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5496 $as_echo_n "(cached) " >&6
5497 else
5498 case $INSTALL_INFO in
5499 [\\/]* | ?:[\\/]*)
5500 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in /usr/sbin
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5514 done
5515 done
5516 IFS=$as_save_IFS
5519 esac
5521 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5522 if test -n "$INSTALL_INFO"; then
5523 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5524 $as_echo "$INSTALL_INFO" >&6; }
5525 else
5526 { $as_echo "$as_me:$LINENO: result: no" >&5
5527 $as_echo "no" >&6; }
5531 # Extract the first word of "install-info", so it can be a program name with args.
5532 set dummy install-info; ac_word=$2
5533 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5536 $as_echo_n "(cached) " >&6
5537 else
5538 case $INSTALL_INFO in
5539 [\\/]* | ?:[\\/]*)
5540 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in /sbin
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5554 done
5555 done
5556 IFS=$as_save_IFS
5558 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5560 esac
5562 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5563 if test -n "$INSTALL_INFO"; then
5564 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5565 $as_echo "$INSTALL_INFO" >&6; }
5566 else
5567 { $as_echo "$as_me:$LINENO: result: no" >&5
5568 $as_echo "no" >&6; }
5572 # Extract the first word of "gzip", so it can be a program name with args.
5573 set dummy gzip; ac_word=$2
5574 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5577 $as_echo_n "(cached) " >&6
5578 else
5579 case $GZIP_PROG in
5580 [\\/]* | ?:[\\/]*)
5581 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5595 done
5596 done
5597 IFS=$as_save_IFS
5600 esac
5602 GZIP_PROG=$ac_cv_path_GZIP_PROG
5603 if test -n "$GZIP_PROG"; then
5604 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5605 $as_echo "$GZIP_PROG" >&6; }
5606 else
5607 { $as_echo "$as_me:$LINENO: result: no" >&5
5608 $as_echo "no" >&6; }
5614 ## Need makeinfo >= 4.6 (?) to build the manuals.
5615 # Extract the first word of "makeinfo", so it can be a program name with args.
5616 set dummy makeinfo; ac_word=$2
5617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5620 $as_echo_n "(cached) " >&6
5621 else
5622 case $MAKEINFO in
5623 [\\/]* | ?:[\\/]*)
5624 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5634 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 break 2
5638 done
5639 done
5640 IFS=$as_save_IFS
5642 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5644 esac
5646 MAKEINFO=$ac_cv_path_MAKEINFO
5647 if test -n "$MAKEINFO"; then
5648 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5649 $as_echo "$MAKEINFO" >&6; }
5650 else
5651 { $as_echo "$as_me:$LINENO: result: no" >&5
5652 $as_echo "no" >&6; }
5656 if test "$MAKEINFO" != "no" && \
5657 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
5658 MAKEINFO=no
5661 ## Makeinfo is unusual. For a released Emacs, the manuals are
5662 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5663 ## therefore in the category of "special tools" not normally required, which
5664 ## configure does not have to check for (eg autoconf itself).
5665 ## In a Bazaar checkout on the other hand, the manuals are not included.
5666 ## So makeinfo is a requirement to build from Bazaar, and configure
5667 ## should test for it as it does for any other build requirement.
5668 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5669 ## with pre-built manuals, from a Bazaar checkout.
5670 if test "$MAKEINFO" = "no"; then
5671 if test "x${with_makeinfo}" = "xno"; then
5672 MAKEINFO=off
5673 elif test ! -e $srcdir/info/emacs; then
5674 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5675 source tree does not seem to have pre-built manuals in the \`info' directory.
5676 Either install a suitable version of makeinfo, or re-run configure
5677 with the \`--without-makeinfo' option to build without the manuals. " >&5
5678 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5679 source tree does not seem to have pre-built manuals in the \`info' directory.
5680 Either install a suitable version of makeinfo, or re-run configure
5681 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5682 { (exit 1); exit 1; }; }
5687 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5688 then
5689 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5692 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5693 then
5694 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5698 late_LDFLAGS=$LDFLAGS
5699 if test "$GCC" = yes; then
5700 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5701 else
5702 LDFLAGS="$LDFLAGS -znocombreloc"
5705 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5706 $as_echo_n "checking for -znocombreloc... " >&6; }
5707 cat >conftest.$ac_ext <<_ACEOF
5708 main(){return 0;}
5709 _ACEOF
5710 rm -f conftest.$ac_objext conftest$ac_exeext
5711 if { (ac_try="$ac_link"
5712 case "(($ac_try" in
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5715 esac
5716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5717 $as_echo "$ac_try_echo") >&5
5718 (eval "$ac_link") 2>conftest.er1
5719 ac_status=$?
5720 grep -v '^ *+' conftest.er1 >conftest.err
5721 rm -f conftest.er1
5722 cat conftest.err >&5
5723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } && {
5725 test -z "$ac_c_werror_flag" ||
5726 test ! -s conftest.err
5727 } && test -s conftest$ac_exeext && {
5728 test "$cross_compiling" = yes ||
5729 $as_test_x conftest$ac_exeext
5730 }; then
5731 { $as_echo "$as_me:$LINENO: result: yes" >&5
5732 $as_echo "yes" >&6; }
5733 else
5734 $as_echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 LDFLAGS=$late_LDFLAGS
5738 { $as_echo "$as_me:$LINENO: result: no" >&5
5739 $as_echo "no" >&6; }
5742 rm -rf conftest.dSYM
5743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5744 conftest$ac_exeext conftest.$ac_ext
5746 LIB_MATH=-lm
5748 case $opsys in
5749 cygwin )
5750 LIB_MATH=
5752 darwin )
5753 ## Adding -lm confuses the dynamic linker, so omit it.
5754 LIB_MATH=
5756 esac
5760 #### Extract some information from the operating system and machine files.
5762 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5763 - which libraries the lib-src programs will want, and
5764 - whether the GNU malloc routines are usable..." >&5
5765 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5766 - which libraries the lib-src programs will want, and
5767 - whether the GNU malloc routines are usable..." >&6;}
5769 ### First figure out CFLAGS (which we use for running the compiler here)
5770 ### and REAL_CFLAGS (which we use for real compilation).
5771 ### The two are the same except on a few systems, where they are made
5772 ### different to work around various lossages. For example,
5773 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5774 ### as implying static linking.
5776 ### If the CFLAGS env var is specified, we use that value
5777 ### instead of the default.
5779 ### It's not important that this name contain the PID; you can't run
5780 ### two configures in the same directory and have anything work
5781 ### anyway.
5782 tempcname="conftest.c"
5784 echo '
5785 #include "'${srcdir}'/src/'${opsysfile}'"
5786 #include "'${srcdir}'/src/'${machfile}'"
5787 #ifndef LIBS_SYSTEM
5788 #define LIBS_SYSTEM
5789 #endif
5790 #ifndef C_SWITCH_SYSTEM
5791 #define C_SWITCH_SYSTEM
5792 #endif
5793 #ifndef C_SWITCH_MACHINE
5794 #define C_SWITCH_MACHINE
5795 #endif
5796 configure___ libsrc_libs=LIBS_SYSTEM
5797 configure___ c_switch_system=C_SWITCH_SYSTEM
5798 configure___ c_switch_machine=C_SWITCH_MACHINE
5800 configure___ LIBX=-lX11
5802 configure___ unexec=UNEXEC
5804 #ifdef SYSTEM_MALLOC
5805 configure___ system_malloc=yes
5806 #else
5807 configure___ system_malloc=no
5808 #endif
5810 #ifdef USE_MMAP_FOR_BUFFERS
5811 configure___ use_mmap_for_buffers=yes
5812 #else
5813 configure___ use_mmap_for_buffers=no
5814 #endif
5816 #ifndef C_OPTIMIZE_SWITCH
5817 #ifdef __GNUC__
5818 #define C_OPTIMIZE_SWITCH -O2
5819 #else
5820 #define C_OPTIMIZE_SWITCH -O
5821 #endif
5822 #endif
5824 #ifndef C_WARNINGS_SWITCH
5825 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5826 #endif
5828 #ifndef LD_SWITCH_MACHINE
5829 #define LD_SWITCH_MACHINE
5830 #endif
5832 #ifndef LD_SWITCH_SYSTEM
5833 #define LD_SWITCH_SYSTEM
5834 #endif
5836 #ifndef LD_SWITCH_X_SITE_AUX
5837 #define LD_SWITCH_X_SITE_AUX
5838 #endif
5840 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5841 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5843 #ifdef THIS_IS_CONFIGURE
5845 /* Get the CFLAGS for tests in configure. */
5846 #ifdef __GNUC__
5847 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5848 #else
5849 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5850 #endif
5852 #else /* not THIS_IS_CONFIGURE */
5854 /* Get the CFLAGS for real compilation. */
5855 #ifdef __GNUC__
5856 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5857 #else
5858 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5859 #endif
5861 #endif /* not THIS_IS_CONFIGURE */
5862 ' > ${tempcname}
5864 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5866 # The value of CPP is a quoted variable reference, so we need to do this
5867 # to get its actual value...
5868 CPP=`eval "echo $CPP"`
5869 eval `${CPP} -Isrc ${tempcname} \
5870 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5871 if test "x$SPECIFIED_CFLAGS" = x; then
5872 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5873 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5874 else
5875 REAL_CFLAGS="$CFLAGS"
5877 rm ${tempcname}
5879 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5881 ### Make sure subsequent tests use flags consistent with the build flags.
5883 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5884 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5885 else
5886 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5891 # Check whether --enable-largefile was given.
5892 if test "${enable_largefile+set}" = set; then
5893 enableval=$enable_largefile;
5896 if test "$enable_largefile" != no; then
5898 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5899 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5900 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5901 $as_echo_n "(cached) " >&6
5902 else
5903 ac_cv_sys_largefile_CC=no
5904 if test "$GCC" != yes; then
5905 ac_save_CC=$CC
5906 while :; do
5907 # IRIX 6.2 and later do not support large files by default,
5908 # so use the C compiler's -n32 option if that helps.
5909 cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 #include <sys/types.h>
5916 /* Check that off_t can represent 2**63 - 1 correctly.
5917 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5918 since some C++ compilers masquerading as C compilers
5919 incorrectly reject 9223372036854775807. */
5920 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5921 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5922 && LARGE_OFF_T % 2147483647 == 1)
5923 ? 1 : -1];
5925 main ()
5929 return 0;
5931 _ACEOF
5932 rm -f conftest.$ac_objext
5933 if { (ac_try="$ac_compile"
5934 case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937 esac
5938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5939 $as_echo "$ac_try_echo") >&5
5940 (eval "$ac_compile") 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_c_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest.$ac_objext; then
5950 break
5951 else
5952 $as_echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5958 rm -f core conftest.err conftest.$ac_objext
5959 CC="$CC -n32"
5960 rm -f conftest.$ac_objext
5961 if { (ac_try="$ac_compile"
5962 case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965 esac
5966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5967 $as_echo "$ac_try_echo") >&5
5968 (eval "$ac_compile") 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && {
5975 test -z "$ac_c_werror_flag" ||
5976 test ! -s conftest.err
5977 } && test -s conftest.$ac_objext; then
5978 ac_cv_sys_largefile_CC=' -n32'; break
5979 else
5980 $as_echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5986 rm -f core conftest.err conftest.$ac_objext
5987 break
5988 done
5989 CC=$ac_save_CC
5990 rm -f conftest.$ac_ext
5993 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5994 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5995 if test "$ac_cv_sys_largefile_CC" != no; then
5996 CC=$CC$ac_cv_sys_largefile_CC
5999 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6000 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6001 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6002 $as_echo_n "(cached) " >&6
6003 else
6004 while :; do
6005 cat >conftest.$ac_ext <<_ACEOF
6006 /* confdefs.h. */
6007 _ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6011 #include <sys/types.h>
6012 /* Check that off_t can represent 2**63 - 1 correctly.
6013 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6014 since some C++ compilers masquerading as C compilers
6015 incorrectly reject 9223372036854775807. */
6016 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6017 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6018 && LARGE_OFF_T % 2147483647 == 1)
6019 ? 1 : -1];
6021 main ()
6025 return 0;
6027 _ACEOF
6028 rm -f conftest.$ac_objext
6029 if { (ac_try="$ac_compile"
6030 case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033 esac
6034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6035 $as_echo "$ac_try_echo") >&5
6036 (eval "$ac_compile") 2>conftest.er1
6037 ac_status=$?
6038 grep -v '^ *+' conftest.er1 >conftest.err
6039 rm -f conftest.er1
6040 cat conftest.err >&5
6041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } && {
6043 test -z "$ac_c_werror_flag" ||
6044 test ! -s conftest.err
6045 } && test -s conftest.$ac_objext; then
6046 ac_cv_sys_file_offset_bits=no; break
6047 else
6048 $as_echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 #define _FILE_OFFSET_BITS 64
6062 #include <sys/types.h>
6063 /* Check that off_t can represent 2**63 - 1 correctly.
6064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6065 since some C++ compilers masquerading as C compilers
6066 incorrectly reject 9223372036854775807. */
6067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6069 && LARGE_OFF_T % 2147483647 == 1)
6070 ? 1 : -1];
6072 main ()
6076 return 0;
6078 _ACEOF
6079 rm -f conftest.$ac_objext
6080 if { (ac_try="$ac_compile"
6081 case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6084 esac
6085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6086 $as_echo "$ac_try_echo") >&5
6087 (eval "$ac_compile") 2>conftest.er1
6088 ac_status=$?
6089 grep -v '^ *+' conftest.er1 >conftest.err
6090 rm -f conftest.er1
6091 cat conftest.err >&5
6092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } && {
6094 test -z "$ac_c_werror_flag" ||
6095 test ! -s conftest.err
6096 } && test -s conftest.$ac_objext; then
6097 ac_cv_sys_file_offset_bits=64; break
6098 else
6099 $as_echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 ac_cv_sys_file_offset_bits=unknown
6107 break
6108 done
6110 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6111 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6112 case $ac_cv_sys_file_offset_bits in #(
6113 no | unknown) ;;
6115 cat >>confdefs.h <<_ACEOF
6116 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6117 _ACEOF
6119 esac
6120 rm -rf conftest*
6121 if test $ac_cv_sys_file_offset_bits = unknown; then
6122 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6123 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6124 if test "${ac_cv_sys_large_files+set}" = set; then
6125 $as_echo_n "(cached) " >&6
6126 else
6127 while :; do
6128 cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h. */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 #include <sys/types.h>
6135 /* Check that off_t can represent 2**63 - 1 correctly.
6136 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6137 since some C++ compilers masquerading as C compilers
6138 incorrectly reject 9223372036854775807. */
6139 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6140 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6141 && LARGE_OFF_T % 2147483647 == 1)
6142 ? 1 : -1];
6144 main ()
6148 return 0;
6150 _ACEOF
6151 rm -f conftest.$ac_objext
6152 if { (ac_try="$ac_compile"
6153 case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156 esac
6157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6158 $as_echo "$ac_try_echo") >&5
6159 (eval "$ac_compile") 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && {
6166 test -z "$ac_c_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest.$ac_objext; then
6169 ac_cv_sys_large_files=no; break
6170 else
6171 $as_echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h. */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 #define _LARGE_FILES 1
6185 #include <sys/types.h>
6186 /* Check that off_t can represent 2**63 - 1 correctly.
6187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6188 since some C++ compilers masquerading as C compilers
6189 incorrectly reject 9223372036854775807. */
6190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6192 && LARGE_OFF_T % 2147483647 == 1)
6193 ? 1 : -1];
6195 main ()
6199 return 0;
6201 _ACEOF
6202 rm -f conftest.$ac_objext
6203 if { (ac_try="$ac_compile"
6204 case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207 esac
6208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209 $as_echo "$ac_try_echo") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6211 ac_status=$?
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
6220 ac_cv_sys_large_files=1; break
6221 else
6222 $as_echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 ac_cv_sys_large_files=unknown
6230 break
6231 done
6233 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6234 $as_echo "$ac_cv_sys_large_files" >&6; }
6235 case $ac_cv_sys_large_files in #(
6236 no | unknown) ;;
6238 cat >>confdefs.h <<_ACEOF
6239 #define _LARGE_FILES $ac_cv_sys_large_files
6240 _ACEOF
6242 esac
6243 rm -rf conftest*
6249 ## If user specified a crt-dir, use that unconditionally.
6250 if test "X$CRT_DIR" = "X"; then
6252 case "$canonical" in
6253 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6254 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6255 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6256 ## For anything else (eg /usr/lib32), it is up the user to specify
6257 ## the location (bug#5655).
6258 ## Test for crtn.o, not just the directory, because sometimes the
6259 ## directory exists but does not have the relevant files (bug#1287).
6260 ## FIXME better to test for binary compatibility somehow.
6261 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6264 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6265 esac
6267 case "$opsys" in
6268 hpux10-20) CRT_DIR=/lib ;;
6269 esac
6271 ## Default is /usr/lib.
6272 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6274 else
6276 ## Some platforms don't use any of these files, so it is not
6277 ## appropriate to put this test outside the if block.
6278 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6279 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6280 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6281 { (exit 1); exit 1; }; }
6291 if test "${with_sound}" != "no"; then
6292 # Sound support for GNU/Linux and the free BSDs.
6296 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6298 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6300 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6301 $as_echo_n "checking for $ac_header... " >&6; }
6302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6303 $as_echo_n "(cached) " >&6
6305 ac_res=`eval 'as_val=${'$as_ac_Header'}
6306 $as_echo "$as_val"'`
6307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6308 $as_echo "$ac_res" >&6; }
6309 else
6310 # Is the header compilable?
6311 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6312 $as_echo_n "checking $ac_header usability... " >&6; }
6313 cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h. */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 $ac_includes_default
6320 #include <$ac_header>
6321 _ACEOF
6322 rm -f conftest.$ac_objext
6323 if { (ac_try="$ac_compile"
6324 case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327 esac
6328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6329 $as_echo "$ac_try_echo") >&5
6330 (eval "$ac_compile") 2>conftest.er1
6331 ac_status=$?
6332 grep -v '^ *+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } && {
6337 test -z "$ac_c_werror_flag" ||
6338 test ! -s conftest.err
6339 } && test -s conftest.$ac_objext; then
6340 ac_header_compiler=yes
6341 else
6342 $as_echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6345 ac_header_compiler=no
6348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6350 $as_echo "$ac_header_compiler" >&6; }
6352 # Is the header present?
6353 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6354 $as_echo_n "checking $ac_header presence... " >&6; }
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h. */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 #include <$ac_header>
6362 _ACEOF
6363 if { (ac_try="$ac_cpp conftest.$ac_ext"
6364 case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367 esac
6368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6369 $as_echo "$ac_try_echo") >&5
6370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6371 ac_status=$?
6372 grep -v '^ *+' conftest.er1 >conftest.err
6373 rm -f conftest.er1
6374 cat conftest.err >&5
6375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } >/dev/null && {
6377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6378 test ! -s conftest.err
6379 }; then
6380 ac_header_preproc=yes
6381 else
6382 $as_echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6385 ac_header_preproc=no
6388 rm -f conftest.err conftest.$ac_ext
6389 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6390 $as_echo "$ac_header_preproc" >&6; }
6392 # So? What about this header?
6393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6394 yes:no: )
6395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6396 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6398 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6399 ac_header_preproc=yes
6401 no:yes:* )
6402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6403 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6405 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6407 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6409 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6411 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6413 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6416 esac
6417 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6418 $as_echo_n "checking for $ac_header... " >&6; }
6419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6420 $as_echo_n "(cached) " >&6
6421 else
6422 eval "$as_ac_Header=\$ac_header_preproc"
6424 ac_res=`eval 'as_val=${'$as_ac_Header'}
6425 $as_echo "$as_val"'`
6426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6427 $as_echo "$ac_res" >&6; }
6430 if test `eval 'as_val=${'$as_ac_Header'}
6431 $as_echo "$as_val"'` = yes; then
6432 cat >>confdefs.h <<_ACEOF
6433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6434 _ACEOF
6438 done
6440 # Emulation library used on NetBSD.
6441 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6442 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6443 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6444 $as_echo_n "(cached) " >&6
6445 else
6446 ac_check_lib_save_LIBS=$LIBS
6447 LIBS="-lossaudio $LIBS"
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h. */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6455 /* Override any GCC internal prototype to avoid an error.
6456 Use char because int might match the return type of a GCC
6457 builtin and then its argument prototype would still apply. */
6458 #ifdef __cplusplus
6459 extern "C"
6460 #endif
6461 char _oss_ioctl ();
6463 main ()
6465 return _oss_ioctl ();
6467 return 0;
6469 _ACEOF
6470 rm -f conftest.$ac_objext conftest$ac_exeext
6471 if { (ac_try="$ac_link"
6472 case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6475 esac
6476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6477 $as_echo "$ac_try_echo") >&5
6478 (eval "$ac_link") 2>conftest.er1
6479 ac_status=$?
6480 grep -v '^ *+' conftest.er1 >conftest.err
6481 rm -f conftest.er1
6482 cat conftest.err >&5
6483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && {
6485 test -z "$ac_c_werror_flag" ||
6486 test ! -s conftest.err
6487 } && test -s conftest$ac_exeext && {
6488 test "$cross_compiling" = yes ||
6489 $as_test_x conftest$ac_exeext
6490 }; then
6491 ac_cv_lib_ossaudio__oss_ioctl=yes
6492 else
6493 $as_echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6496 ac_cv_lib_ossaudio__oss_ioctl=no
6499 rm -rf conftest.dSYM
6500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6501 conftest$ac_exeext conftest.$ac_ext
6502 LIBS=$ac_check_lib_save_LIBS
6504 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6505 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6506 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6507 LIBSOUND=-lossaudio
6508 else
6509 LIBSOUND=
6514 ALSA_REQUIRED=1.0.0
6515 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6517 succeeded=no
6519 # Extract the first word of "pkg-config", so it can be a program name with args.
6520 set dummy pkg-config; ac_word=$2
6521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6524 $as_echo_n "(cached) " >&6
6525 else
6526 case $PKG_CONFIG in
6527 [\\/]* | ?:[\\/]*)
6528 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6542 done
6543 done
6544 IFS=$as_save_IFS
6546 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6548 esac
6550 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6551 if test -n "$PKG_CONFIG"; then
6552 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6553 $as_echo "$PKG_CONFIG" >&6; }
6554 else
6555 { $as_echo "$as_me:$LINENO: result: no" >&5
6556 $as_echo "no" >&6; }
6561 if test "$PKG_CONFIG" = "no" ; then
6562 HAVE_ALSA=no
6563 else
6564 PKG_CONFIG_MIN_VERSION=0.9.0
6565 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6566 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6567 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6569 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6570 { $as_echo "$as_me:$LINENO: result: yes" >&5
6571 $as_echo "yes" >&6; }
6572 succeeded=yes
6574 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6575 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6576 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6577 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6578 $as_echo "$ALSA_CFLAGS" >&6; }
6580 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6581 $as_echo_n "checking ALSA_LIBS... " >&6; }
6582 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6583 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6584 $as_echo "$ALSA_LIBS" >&6; }
6585 else
6586 { $as_echo "$as_me:$LINENO: result: no" >&5
6587 $as_echo "no" >&6; }
6588 ALSA_CFLAGS=""
6589 ALSA_LIBS=""
6590 ## If we have a custom action on failure, don't print errors, but
6591 ## do set a variable so people can do so.
6592 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6598 else
6599 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6600 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6604 if test $succeeded = yes; then
6605 HAVE_ALSA=yes
6606 else
6607 HAVE_ALSA=no
6610 if test $HAVE_ALSA = yes; then
6611 SAVE_CFLAGS="$CFLAGS"
6612 SAVE_LDFLAGS="$LDFLAGS"
6613 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6614 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6615 cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h. */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 #include <asoundlib.h>
6623 main ()
6625 snd_lib_error_set_handler (0);
6627 return 0;
6629 _ACEOF
6630 rm -f conftest.$ac_objext
6631 if { (ac_try="$ac_compile"
6632 case "(($ac_try" in
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6635 esac
6636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6637 $as_echo "$ac_try_echo") >&5
6638 (eval "$ac_compile") 2>conftest.er1
6639 ac_status=$?
6640 grep -v '^ *+' conftest.er1 >conftest.err
6641 rm -f conftest.er1
6642 cat conftest.err >&5
6643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } && {
6645 test -z "$ac_c_werror_flag" ||
6646 test ! -s conftest.err
6647 } && test -s conftest.$ac_objext; then
6648 emacs_alsa_normal=yes
6649 else
6650 $as_echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6653 emacs_alsa_normal=no
6656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657 if test "$emacs_alsa_normal" != yes; then
6658 cat >conftest.$ac_ext <<_ACEOF
6659 /* confdefs.h. */
6660 _ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6664 #include <alsa/asoundlib.h>
6666 main ()
6668 snd_lib_error_set_handler (0);
6670 return 0;
6672 _ACEOF
6673 rm -f conftest.$ac_objext
6674 if { (ac_try="$ac_compile"
6675 case "(($ac_try" in
6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677 *) ac_try_echo=$ac_try;;
6678 esac
6679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6680 $as_echo "$ac_try_echo") >&5
6681 (eval "$ac_compile") 2>conftest.er1
6682 ac_status=$?
6683 grep -v '^ *+' conftest.er1 >conftest.err
6684 rm -f conftest.er1
6685 cat conftest.err >&5
6686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } && {
6688 test -z "$ac_c_werror_flag" ||
6689 test ! -s conftest.err
6690 } && test -s conftest.$ac_objext; then
6691 emacs_alsa_subdir=yes
6692 else
6693 $as_echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6696 emacs_alsa_subdir=no
6699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700 if test "$emacs_alsa_subdir" != yes; then
6701 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6702 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6703 { (exit 1); exit 1; }; }
6705 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6708 CFLAGS="$SAVE_CFLAGS"
6709 LDFLAGS="$SAVE_LDFLAGS"
6710 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6711 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6713 cat >>confdefs.h <<\_ACEOF
6714 #define HAVE_ALSA 1
6715 _ACEOF
6746 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6747 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6748 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6749 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6750 sys/utsname.h pwd.h utmp.h
6752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6754 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6755 $as_echo_n "checking for $ac_header... " >&6; }
6756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6757 $as_echo_n "(cached) " >&6
6759 ac_res=`eval 'as_val=${'$as_ac_Header'}
6760 $as_echo "$as_val"'`
6761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6762 $as_echo "$ac_res" >&6; }
6763 else
6764 # Is the header compilable?
6765 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6766 $as_echo_n "checking $ac_header usability... " >&6; }
6767 cat >conftest.$ac_ext <<_ACEOF
6768 /* confdefs.h. */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 $ac_includes_default
6774 #include <$ac_header>
6775 _ACEOF
6776 rm -f conftest.$ac_objext
6777 if { (ac_try="$ac_compile"
6778 case "(($ac_try" in
6779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6780 *) ac_try_echo=$ac_try;;
6781 esac
6782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6783 $as_echo "$ac_try_echo") >&5
6784 (eval "$ac_compile") 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } && {
6791 test -z "$ac_c_werror_flag" ||
6792 test ! -s conftest.err
6793 } && test -s conftest.$ac_objext; then
6794 ac_header_compiler=yes
6795 else
6796 $as_echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6799 ac_header_compiler=no
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6804 $as_echo "$ac_header_compiler" >&6; }
6806 # Is the header present?
6807 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6808 $as_echo_n "checking $ac_header presence... " >&6; }
6809 cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 #include <$ac_header>
6816 _ACEOF
6817 if { (ac_try="$ac_cpp conftest.$ac_ext"
6818 case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821 esac
6822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6823 $as_echo "$ac_try_echo") >&5
6824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } >/dev/null && {
6831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 }; then
6834 ac_header_preproc=yes
6835 else
6836 $as_echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 ac_header_preproc=no
6842 rm -f conftest.err conftest.$ac_ext
6843 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6844 $as_echo "$ac_header_preproc" >&6; }
6846 # So? What about this header?
6847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6848 yes:no: )
6849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6850 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6853 ac_header_preproc=yes
6855 no:yes:* )
6856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6857 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6859 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6861 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6863 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6867 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6870 esac
6871 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6872 $as_echo_n "checking for $ac_header... " >&6; }
6873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6874 $as_echo_n "(cached) " >&6
6875 else
6876 eval "$as_ac_Header=\$ac_header_preproc"
6878 ac_res=`eval 'as_val=${'$as_ac_Header'}
6879 $as_echo "$as_val"'`
6880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6881 $as_echo "$ac_res" >&6; }
6884 if test `eval 'as_val=${'$as_ac_Header'}
6885 $as_echo "$as_val"'` = yes; then
6886 cat >>confdefs.h <<_ACEOF
6887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6888 _ACEOF
6892 done
6895 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6896 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6897 cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h. */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903 #include <sys/personality.h>
6905 main ()
6907 personality (PER_LINUX32)
6909 return 0;
6911 _ACEOF
6912 rm -f conftest.$ac_objext
6913 if { (ac_try="$ac_compile"
6914 case "(($ac_try" in
6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6917 esac
6918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6919 $as_echo "$ac_try_echo") >&5
6920 (eval "$ac_compile") 2>conftest.er1
6921 ac_status=$?
6922 grep -v '^ *+' conftest.er1 >conftest.err
6923 rm -f conftest.er1
6924 cat conftest.err >&5
6925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } && {
6927 test -z "$ac_c_werror_flag" ||
6928 test ! -s conftest.err
6929 } && test -s conftest.$ac_objext; then
6930 emacs_cv_personality_linux32=yes
6931 else
6932 $as_echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6935 emacs_cv_personality_linux32=no
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6940 $as_echo "$emacs_cv_personality_linux32" >&6; }
6942 if test $emacs_cv_personality_linux32 = yes; then
6944 cat >>confdefs.h <<\_ACEOF
6945 #define HAVE_PERSONALITY_LINUX32 1
6946 _ACEOF
6951 for ac_header in term.h
6953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6954 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6955 $as_echo_n "checking for $ac_header... " >&6; }
6956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6957 $as_echo_n "(cached) " >&6
6958 else
6959 cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h. */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 #include <$ac_header>
6966 _ACEOF
6967 if { (ac_try="$ac_cpp conftest.$ac_ext"
6968 case "(($ac_try" in
6969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6970 *) ac_try_echo=$ac_try;;
6971 esac
6972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6973 $as_echo "$ac_try_echo") >&5
6974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6975 ac_status=$?
6976 grep -v '^ *+' conftest.er1 >conftest.err
6977 rm -f conftest.er1
6978 cat conftest.err >&5
6979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } >/dev/null && {
6981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6982 test ! -s conftest.err
6983 }; then
6984 eval "$as_ac_Header=yes"
6985 else
6986 $as_echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6989 eval "$as_ac_Header=no"
6992 rm -f conftest.err conftest.$ac_ext
6994 ac_res=`eval 'as_val=${'$as_ac_Header'}
6995 $as_echo "$as_val"'`
6996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6997 $as_echo "$ac_res" >&6; }
6998 if test `eval 'as_val=${'$as_ac_Header'}
6999 $as_echo "$as_val"'` = yes; then
7000 cat >>confdefs.h <<_ACEOF
7001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7002 _ACEOF
7006 done
7008 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7009 $as_echo_n "checking for ANSI C header files... " >&6; }
7010 if test "${ac_cv_header_stdc+set}" = set; then
7011 $as_echo_n "(cached) " >&6
7012 else
7013 cat >conftest.$ac_ext <<_ACEOF
7014 /* confdefs.h. */
7015 _ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7019 #include <stdlib.h>
7020 #include <stdarg.h>
7021 #include <string.h>
7022 #include <float.h>
7025 main ()
7029 return 0;
7031 _ACEOF
7032 rm -f conftest.$ac_objext
7033 if { (ac_try="$ac_compile"
7034 case "(($ac_try" in
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7037 esac
7038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7039 $as_echo "$ac_try_echo") >&5
7040 (eval "$ac_compile") 2>conftest.er1
7041 ac_status=$?
7042 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1
7044 cat conftest.err >&5
7045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && {
7047 test -z "$ac_c_werror_flag" ||
7048 test ! -s conftest.err
7049 } && test -s conftest.$ac_objext; then
7050 ac_cv_header_stdc=yes
7051 else
7052 $as_echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7055 ac_cv_header_stdc=no
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 if test $ac_cv_header_stdc = yes; then
7061 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7062 cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h. */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 #include <string.h>
7070 _ACEOF
7071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7072 $EGREP "memchr" >/dev/null 2>&1; then
7074 else
7075 ac_cv_header_stdc=no
7077 rm -f conftest*
7081 if test $ac_cv_header_stdc = yes; then
7082 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7083 cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 #include <stdlib.h>
7091 _ACEOF
7092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7093 $EGREP "free" >/dev/null 2>&1; then
7095 else
7096 ac_cv_header_stdc=no
7098 rm -f conftest*
7102 if test $ac_cv_header_stdc = yes; then
7103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7104 if test "$cross_compiling" = yes; then
7106 else
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h. */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 #include <ctype.h>
7114 #include <stdlib.h>
7115 #if ((' ' & 0x0FF) == 0x020)
7116 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7117 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7118 #else
7119 # define ISLOWER(c) \
7120 (('a' <= (c) && (c) <= 'i') \
7121 || ('j' <= (c) && (c) <= 'r') \
7122 || ('s' <= (c) && (c) <= 'z'))
7123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7124 #endif
7126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7128 main ()
7130 int i;
7131 for (i = 0; i < 256; i++)
7132 if (XOR (islower (i), ISLOWER (i))
7133 || toupper (i) != TOUPPER (i))
7134 return 2;
7135 return 0;
7137 _ACEOF
7138 rm -f conftest$ac_exeext
7139 if { (ac_try="$ac_link"
7140 case "(($ac_try" in
7141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142 *) ac_try_echo=$ac_try;;
7143 esac
7144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7145 $as_echo "$ac_try_echo") >&5
7146 (eval "$ac_link") 2>&5
7147 ac_status=$?
7148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7150 { (case "(($ac_try" in
7151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152 *) ac_try_echo=$ac_try;;
7153 esac
7154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7155 $as_echo "$ac_try_echo") >&5
7156 (eval "$ac_try") 2>&5
7157 ac_status=$?
7158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7161 else
7162 $as_echo "$as_me: program exited with status $ac_status" >&5
7163 $as_echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7166 ( exit $ac_status )
7167 ac_cv_header_stdc=no
7169 rm -rf conftest.dSYM
7170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7176 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7177 $as_echo "$ac_cv_header_stdc" >&6; }
7178 if test $ac_cv_header_stdc = yes; then
7180 cat >>confdefs.h <<\_ACEOF
7181 #define STDC_HEADERS 1
7182 _ACEOF
7186 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7187 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7188 if test "${ac_cv_header_time+set}" = set; then
7189 $as_echo_n "(cached) " >&6
7190 else
7191 cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h. */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 #include <sys/types.h>
7198 #include <sys/time.h>
7199 #include <time.h>
7202 main ()
7204 if ((struct tm *) 0)
7205 return 0;
7207 return 0;
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7212 case "(($ac_try" in
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7215 esac
7216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7217 $as_echo "$ac_try_echo") >&5
7218 (eval "$ac_compile") 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && {
7225 test -z "$ac_c_werror_flag" ||
7226 test ! -s conftest.err
7227 } && test -s conftest.$ac_objext; then
7228 ac_cv_header_time=yes
7229 else
7230 $as_echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7233 ac_cv_header_time=no
7236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7239 $as_echo "$ac_cv_header_time" >&6; }
7240 if test $ac_cv_header_time = yes; then
7242 cat >>confdefs.h <<\_ACEOF
7243 #define TIME_WITH_SYS_TIME 1
7244 _ACEOF
7248 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7249 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7250 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7251 $as_echo_n "(cached) " >&6
7252 else
7253 cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h. */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 $ac_includes_default
7261 main ()
7263 #ifndef sys_siglist
7264 (void) sys_siglist;
7265 #endif
7268 return 0;
7270 _ACEOF
7271 rm -f conftest.$ac_objext
7272 if { (ac_try="$ac_compile"
7273 case "(($ac_try" in
7274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7275 *) ac_try_echo=$ac_try;;
7276 esac
7277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7278 $as_echo "$ac_try_echo") >&5
7279 (eval "$ac_compile") 2>conftest.er1
7280 ac_status=$?
7281 grep -v '^ *+' conftest.er1 >conftest.err
7282 rm -f conftest.er1
7283 cat conftest.err >&5
7284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } && {
7286 test -z "$ac_c_werror_flag" ||
7287 test ! -s conftest.err
7288 } && test -s conftest.$ac_objext; then
7289 ac_cv_have_decl_sys_siglist=yes
7290 else
7291 $as_echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7294 ac_cv_have_decl_sys_siglist=no
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7300 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7301 if test $ac_cv_have_decl_sys_siglist = yes; then
7303 cat >>confdefs.h <<_ACEOF
7304 #define HAVE_DECL_SYS_SIGLIST 1
7305 _ACEOF
7308 else
7309 cat >>confdefs.h <<_ACEOF
7310 #define HAVE_DECL_SYS_SIGLIST 0
7311 _ACEOF
7317 if test $ac_cv_have_decl_sys_siglist != yes; then
7318 # For Tru64, at least:
7319 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7320 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7321 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7322 $as_echo_n "(cached) " >&6
7323 else
7324 cat >conftest.$ac_ext <<_ACEOF
7325 /* confdefs.h. */
7326 _ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7330 $ac_includes_default
7332 main ()
7334 #ifndef __sys_siglist
7335 (void) __sys_siglist;
7336 #endif
7339 return 0;
7341 _ACEOF
7342 rm -f conftest.$ac_objext
7343 if { (ac_try="$ac_compile"
7344 case "(($ac_try" in
7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346 *) ac_try_echo=$ac_try;;
7347 esac
7348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7349 $as_echo "$ac_try_echo") >&5
7350 (eval "$ac_compile") 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && {
7357 test -z "$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7359 } && test -s conftest.$ac_objext; then
7360 ac_cv_have_decl___sys_siglist=yes
7361 else
7362 $as_echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 ac_cv_have_decl___sys_siglist=no
7368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7371 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7372 if test $ac_cv_have_decl___sys_siglist = yes; then
7374 cat >>confdefs.h <<_ACEOF
7375 #define HAVE_DECL___SYS_SIGLIST 1
7376 _ACEOF
7379 else
7380 cat >>confdefs.h <<_ACEOF
7381 #define HAVE_DECL___SYS_SIGLIST 0
7382 _ACEOF
7388 if test $ac_cv_have_decl___sys_siglist = yes; then
7390 cat >>confdefs.h <<\_ACEOF
7391 #define sys_siglist __sys_siglist
7392 _ACEOF
7396 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7397 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7398 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7399 $as_echo_n "(cached) " >&6
7400 else
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h. */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 #include <sys/types.h>
7408 #include <sys/wait.h>
7409 #ifndef WEXITSTATUS
7410 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7411 #endif
7412 #ifndef WIFEXITED
7413 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7414 #endif
7417 main ()
7419 int s;
7420 wait (&s);
7421 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7423 return 0;
7425 _ACEOF
7426 rm -f conftest.$ac_objext
7427 if { (ac_try="$ac_compile"
7428 case "(($ac_try" in
7429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7430 *) ac_try_echo=$ac_try;;
7431 esac
7432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7433 $as_echo "$ac_try_echo") >&5
7434 (eval "$ac_compile") 2>conftest.er1
7435 ac_status=$?
7436 grep -v '^ *+' conftest.er1 >conftest.err
7437 rm -f conftest.er1
7438 cat conftest.err >&5
7439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } && {
7441 test -z "$ac_c_werror_flag" ||
7442 test ! -s conftest.err
7443 } && test -s conftest.$ac_objext; then
7444 ac_cv_header_sys_wait_h=yes
7445 else
7446 $as_echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 ac_cv_header_sys_wait_h=no
7452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7455 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7456 if test $ac_cv_header_sys_wait_h = yes; then
7458 cat >>confdefs.h <<\_ACEOF
7459 #define HAVE_SYS_WAIT_H 1
7460 _ACEOF
7465 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7466 $as_echo_n "checking for struct utimbuf... " >&6; }
7467 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7468 $as_echo_n "(cached) " >&6
7469 else
7470 cat >conftest.$ac_ext <<_ACEOF
7471 /* confdefs.h. */
7472 _ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 #ifdef TIME_WITH_SYS_TIME
7477 #include <sys/time.h>
7478 #include <time.h>
7479 #else
7480 #ifdef HAVE_SYS_TIME_H
7481 #include <sys/time.h>
7482 #else
7483 #include <time.h>
7484 #endif
7485 #endif
7486 #ifdef HAVE_UTIME_H
7487 #include <utime.h>
7488 #endif
7490 main ()
7492 static struct utimbuf x; x.actime = x.modtime;
7494 return 0;
7496 _ACEOF
7497 rm -f conftest.$ac_objext
7498 if { (ac_try="$ac_compile"
7499 case "(($ac_try" in
7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7502 esac
7503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7504 $as_echo "$ac_try_echo") >&5
7505 (eval "$ac_compile") 2>conftest.er1
7506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
7510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest.$ac_objext; then
7515 emacs_cv_struct_utimbuf=yes
7516 else
7517 $as_echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7520 emacs_cv_struct_utimbuf=no
7523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7526 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7527 if test $emacs_cv_struct_utimbuf = yes; then
7529 cat >>confdefs.h <<\_ACEOF
7530 #define HAVE_STRUCT_UTIMBUF 1
7531 _ACEOF
7535 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7536 $as_echo_n "checking return type of signal handlers... " >&6; }
7537 if test "${ac_cv_type_signal+set}" = set; then
7538 $as_echo_n "(cached) " >&6
7539 else
7540 cat >conftest.$ac_ext <<_ACEOF
7541 /* confdefs.h. */
7542 _ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h. */
7546 #include <sys/types.h>
7547 #include <signal.h>
7550 main ()
7552 return *(signal (0, 0)) (0) == 1;
7554 return 0;
7556 _ACEOF
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7559 case "(($ac_try" in
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7562 esac
7563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7564 $as_echo "$ac_try_echo") >&5
7565 (eval "$ac_compile") 2>conftest.er1
7566 ac_status=$?
7567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
7570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && {
7572 test -z "$ac_c_werror_flag" ||
7573 test ! -s conftest.err
7574 } && test -s conftest.$ac_objext; then
7575 ac_cv_type_signal=int
7576 else
7577 $as_echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7580 ac_cv_type_signal=void
7583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7586 $as_echo "$ac_cv_type_signal" >&6; }
7588 cat >>confdefs.h <<_ACEOF
7589 #define RETSIGTYPE $ac_cv_type_signal
7590 _ACEOF
7594 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7595 $as_echo_n "checking for speed_t... " >&6; }
7596 if test "${emacs_cv_speed_t+set}" = set; then
7597 $as_echo_n "(cached) " >&6
7598 else
7599 cat >conftest.$ac_ext <<_ACEOF
7600 /* confdefs.h. */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 #include <termios.h>
7607 main ()
7609 speed_t x = 1;
7611 return 0;
7613 _ACEOF
7614 rm -f conftest.$ac_objext
7615 if { (ac_try="$ac_compile"
7616 case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619 esac
7620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7621 $as_echo "$ac_try_echo") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.$ac_objext; then
7632 emacs_cv_speed_t=yes
7633 else
7634 $as_echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7637 emacs_cv_speed_t=no
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7642 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7643 $as_echo "$emacs_cv_speed_t" >&6; }
7644 if test $emacs_cv_speed_t = yes; then
7646 cat >>confdefs.h <<\_ACEOF
7647 #define HAVE_SPEED_T 1
7648 _ACEOF
7652 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7653 $as_echo_n "checking for struct timeval... " >&6; }
7654 if test "${emacs_cv_struct_timeval+set}" = set; then
7655 $as_echo_n "(cached) " >&6
7656 else
7657 cat >conftest.$ac_ext <<_ACEOF
7658 /* confdefs.h. */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 #ifdef TIME_WITH_SYS_TIME
7664 #include <sys/time.h>
7665 #include <time.h>
7666 #else
7667 #ifdef HAVE_SYS_TIME_H
7668 #include <sys/time.h>
7669 #else
7670 #include <time.h>
7671 #endif
7672 #endif
7674 main ()
7676 static struct timeval x; x.tv_sec = x.tv_usec;
7678 return 0;
7680 _ACEOF
7681 rm -f conftest.$ac_objext
7682 if { (ac_try="$ac_compile"
7683 case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7686 esac
7687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7688 $as_echo "$ac_try_echo") >&5
7689 (eval "$ac_compile") 2>conftest.er1
7690 ac_status=$?
7691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
7694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest.$ac_objext; then
7699 emacs_cv_struct_timeval=yes
7700 else
7701 $as_echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7704 emacs_cv_struct_timeval=no
7707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7710 $as_echo "$emacs_cv_struct_timeval" >&6; }
7711 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7712 if test $emacs_cv_struct_timeval = yes; then
7714 cat >>confdefs.h <<\_ACEOF
7715 #define HAVE_TIMEVAL 1
7716 _ACEOF
7720 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7721 $as_echo_n "checking for struct exception... " >&6; }
7722 if test "${emacs_cv_struct_exception+set}" = set; then
7723 $as_echo_n "(cached) " >&6
7724 else
7725 cat >conftest.$ac_ext <<_ACEOF
7726 /* confdefs.h. */
7727 _ACEOF
7728 cat confdefs.h >>conftest.$ac_ext
7729 cat >>conftest.$ac_ext <<_ACEOF
7730 /* end confdefs.h. */
7731 #include <math.h>
7733 main ()
7735 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7737 return 0;
7739 _ACEOF
7740 rm -f conftest.$ac_objext
7741 if { (ac_try="$ac_compile"
7742 case "(($ac_try" in
7743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744 *) ac_try_echo=$ac_try;;
7745 esac
7746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7747 $as_echo "$ac_try_echo") >&5
7748 (eval "$ac_compile") 2>conftest.er1
7749 ac_status=$?
7750 grep -v '^ *+' conftest.er1 >conftest.err
7751 rm -f conftest.er1
7752 cat conftest.err >&5
7753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } && {
7755 test -z "$ac_c_werror_flag" ||
7756 test ! -s conftest.err
7757 } && test -s conftest.$ac_objext; then
7758 emacs_cv_struct_exception=yes
7759 else
7760 $as_echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7763 emacs_cv_struct_exception=no
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7769 $as_echo "$emacs_cv_struct_exception" >&6; }
7770 HAVE_EXCEPTION=$emacs_cv_struct_exception
7771 if test $emacs_cv_struct_exception != yes; then
7773 cat >>confdefs.h <<\_ACEOF
7774 #define NO_MATHERR 1
7775 _ACEOF
7780 for ac_header in sys/socket.h
7782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7784 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7785 $as_echo_n "checking for $ac_header... " >&6; }
7786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7787 $as_echo_n "(cached) " >&6
7789 ac_res=`eval 'as_val=${'$as_ac_Header'}
7790 $as_echo "$as_val"'`
7791 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7792 $as_echo "$ac_res" >&6; }
7793 else
7794 # Is the header compilable?
7795 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7796 $as_echo_n "checking $ac_header usability... " >&6; }
7797 cat >conftest.$ac_ext <<_ACEOF
7798 /* confdefs.h. */
7799 _ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7803 $ac_includes_default
7804 #include <$ac_header>
7805 _ACEOF
7806 rm -f conftest.$ac_objext
7807 if { (ac_try="$ac_compile"
7808 case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7811 esac
7812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7813 $as_echo "$ac_try_echo") >&5
7814 (eval "$ac_compile") 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } && {
7821 test -z "$ac_c_werror_flag" ||
7822 test ! -s conftest.err
7823 } && test -s conftest.$ac_objext; then
7824 ac_header_compiler=yes
7825 else
7826 $as_echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7829 ac_header_compiler=no
7832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7833 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7834 $as_echo "$ac_header_compiler" >&6; }
7836 # Is the header present?
7837 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7838 $as_echo_n "checking $ac_header presence... " >&6; }
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 #include <$ac_header>
7846 _ACEOF
7847 if { (ac_try="$ac_cpp conftest.$ac_ext"
7848 case "(($ac_try" in
7849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7851 esac
7852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7853 $as_echo "$ac_try_echo") >&5
7854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7855 ac_status=$?
7856 grep -v '^ *+' conftest.er1 >conftest.err
7857 rm -f conftest.er1
7858 cat conftest.err >&5
7859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } >/dev/null && {
7861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7863 }; then
7864 ac_header_preproc=yes
7865 else
7866 $as_echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7869 ac_header_preproc=no
7872 rm -f conftest.err conftest.$ac_ext
7873 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7874 $as_echo "$ac_header_preproc" >&6; }
7876 # So? What about this header?
7877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7878 yes:no: )
7879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7880 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7882 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7883 ac_header_preproc=yes
7885 no:yes:* )
7886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7887 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7889 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7891 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7893 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7895 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7897 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7900 esac
7901 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7902 $as_echo_n "checking for $ac_header... " >&6; }
7903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7904 $as_echo_n "(cached) " >&6
7905 else
7906 eval "$as_ac_Header=\$ac_header_preproc"
7908 ac_res=`eval 'as_val=${'$as_ac_Header'}
7909 $as_echo "$as_val"'`
7910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7911 $as_echo "$ac_res" >&6; }
7914 if test `eval 'as_val=${'$as_ac_Header'}
7915 $as_echo "$as_val"'` = yes; then
7916 cat >>confdefs.h <<_ACEOF
7917 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7918 _ACEOF
7922 done
7925 for ac_header in net/if.h
7927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7928 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7929 $as_echo_n "checking for $ac_header... " >&6; }
7930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7931 $as_echo_n "(cached) " >&6
7932 else
7933 cat >conftest.$ac_ext <<_ACEOF
7934 /* confdefs.h. */
7935 _ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7939 $ac_includes_default
7940 #if HAVE_SYS_SOCKET_H
7941 #include <sys/socket.h>
7942 #endif
7944 #include <$ac_header>
7945 _ACEOF
7946 rm -f conftest.$ac_objext
7947 if { (ac_try="$ac_compile"
7948 case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7951 esac
7952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7953 $as_echo "$ac_try_echo") >&5
7954 (eval "$ac_compile") 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } && {
7961 test -z "$ac_c_werror_flag" ||
7962 test ! -s conftest.err
7963 } && test -s conftest.$ac_objext; then
7964 eval "$as_ac_Header=yes"
7965 else
7966 $as_echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7969 eval "$as_ac_Header=no"
7972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 ac_res=`eval 'as_val=${'$as_ac_Header'}
7975 $as_echo "$as_val"'`
7976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7977 $as_echo "$ac_res" >&6; }
7978 if test `eval 'as_val=${'$as_ac_Header'}
7979 $as_echo "$as_val"'` = yes; then
7980 cat >>confdefs.h <<_ACEOF
7981 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7982 _ACEOF
7986 done
7989 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7990 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7991 if test "${ac_cv_struct_tm+set}" = set; then
7992 $as_echo_n "(cached) " >&6
7993 else
7994 cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h. */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8000 #include <sys/types.h>
8001 #include <time.h>
8004 main ()
8006 struct tm tm;
8007 int *p = &tm.tm_sec;
8008 return !p;
8010 return 0;
8012 _ACEOF
8013 rm -f conftest.$ac_objext
8014 if { (ac_try="$ac_compile"
8015 case "(($ac_try" in
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8018 esac
8019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8020 $as_echo "$ac_try_echo") >&5
8021 (eval "$ac_compile") 2>conftest.er1
8022 ac_status=$?
8023 grep -v '^ *+' conftest.er1 >conftest.err
8024 rm -f conftest.er1
8025 cat conftest.err >&5
8026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && {
8028 test -z "$ac_c_werror_flag" ||
8029 test ! -s conftest.err
8030 } && test -s conftest.$ac_objext; then
8031 ac_cv_struct_tm=time.h
8032 else
8033 $as_echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8036 ac_cv_struct_tm=sys/time.h
8039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8042 $as_echo "$ac_cv_struct_tm" >&6; }
8043 if test $ac_cv_struct_tm = sys/time.h; then
8045 cat >>confdefs.h <<\_ACEOF
8046 #define TM_IN_SYS_TIME 1
8047 _ACEOF
8051 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8052 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8053 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8054 $as_echo_n "(cached) " >&6
8055 else
8056 cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h. */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 #include <sys/types.h>
8063 #include <$ac_cv_struct_tm>
8067 main ()
8069 static struct tm ac_aggr;
8070 if (ac_aggr.tm_zone)
8071 return 0;
8073 return 0;
8075 _ACEOF
8076 rm -f conftest.$ac_objext
8077 if { (ac_try="$ac_compile"
8078 case "(($ac_try" in
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8081 esac
8082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8083 $as_echo "$ac_try_echo") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8085 ac_status=$?
8086 grep -v '^ *+' conftest.er1 >conftest.err
8087 rm -f conftest.er1
8088 cat conftest.err >&5
8089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && {
8091 test -z "$ac_c_werror_flag" ||
8092 test ! -s conftest.err
8093 } && test -s conftest.$ac_objext; then
8094 ac_cv_member_struct_tm_tm_zone=yes
8095 else
8096 $as_echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8099 cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h. */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8105 #include <sys/types.h>
8106 #include <$ac_cv_struct_tm>
8110 main ()
8112 static struct tm ac_aggr;
8113 if (sizeof ac_aggr.tm_zone)
8114 return 0;
8116 return 0;
8118 _ACEOF
8119 rm -f conftest.$ac_objext
8120 if { (ac_try="$ac_compile"
8121 case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8124 esac
8125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8126 $as_echo "$ac_try_echo") >&5
8127 (eval "$ac_compile") 2>conftest.er1
8128 ac_status=$?
8129 grep -v '^ *+' conftest.er1 >conftest.err
8130 rm -f conftest.er1
8131 cat conftest.err >&5
8132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } && {
8134 test -z "$ac_c_werror_flag" ||
8135 test ! -s conftest.err
8136 } && test -s conftest.$ac_objext; then
8137 ac_cv_member_struct_tm_tm_zone=yes
8138 else
8139 $as_echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8142 ac_cv_member_struct_tm_tm_zone=no
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8151 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8152 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8154 cat >>confdefs.h <<_ACEOF
8155 #define HAVE_STRUCT_TM_TM_ZONE 1
8156 _ACEOF
8161 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8163 cat >>confdefs.h <<\_ACEOF
8164 #define HAVE_TM_ZONE 1
8165 _ACEOF
8167 else
8168 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8169 $as_echo_n "checking whether tzname is declared... " >&6; }
8170 if test "${ac_cv_have_decl_tzname+set}" = set; then
8171 $as_echo_n "(cached) " >&6
8172 else
8173 cat >conftest.$ac_ext <<_ACEOF
8174 /* confdefs.h. */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8179 #include <time.h>
8182 main ()
8184 #ifndef tzname
8185 (void) tzname;
8186 #endif
8189 return 0;
8191 _ACEOF
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8194 case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197 esac
8198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8199 $as_echo "$ac_try_echo") >&5
8200 (eval "$ac_compile") 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest.$ac_objext; then
8210 ac_cv_have_decl_tzname=yes
8211 else
8212 $as_echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_cv_have_decl_tzname=no
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8221 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8222 if test $ac_cv_have_decl_tzname = yes; then
8224 cat >>confdefs.h <<_ACEOF
8225 #define HAVE_DECL_TZNAME 1
8226 _ACEOF
8229 else
8230 cat >>confdefs.h <<_ACEOF
8231 #define HAVE_DECL_TZNAME 0
8232 _ACEOF
8238 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8239 $as_echo_n "checking for tzname... " >&6; }
8240 if test "${ac_cv_var_tzname+set}" = set; then
8241 $as_echo_n "(cached) " >&6
8242 else
8243 cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h. */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8249 #include <time.h>
8250 #if !HAVE_DECL_TZNAME
8251 extern char *tzname[];
8252 #endif
8255 main ()
8257 return tzname[0][0];
8259 return 0;
8261 _ACEOF
8262 rm -f conftest.$ac_objext conftest$ac_exeext
8263 if { (ac_try="$ac_link"
8264 case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267 esac
8268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8269 $as_echo "$ac_try_echo") >&5
8270 (eval "$ac_link") 2>conftest.er1
8271 ac_status=$?
8272 grep -v '^ *+' conftest.er1 >conftest.err
8273 rm -f conftest.er1
8274 cat conftest.err >&5
8275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } && {
8277 test -z "$ac_c_werror_flag" ||
8278 test ! -s conftest.err
8279 } && test -s conftest$ac_exeext && {
8280 test "$cross_compiling" = yes ||
8281 $as_test_x conftest$ac_exeext
8282 }; then
8283 ac_cv_var_tzname=yes
8284 else
8285 $as_echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 ac_cv_var_tzname=no
8291 rm -rf conftest.dSYM
8292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8293 conftest$ac_exeext conftest.$ac_ext
8295 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8296 $as_echo "$ac_cv_var_tzname" >&6; }
8297 if test $ac_cv_var_tzname = yes; then
8299 cat >>confdefs.h <<\_ACEOF
8300 #define HAVE_TZNAME 1
8301 _ACEOF
8306 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8307 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8308 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8309 $as_echo_n "(cached) " >&6
8310 else
8311 cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h. */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8317 #include <time.h>
8320 main ()
8322 static struct tm ac_aggr;
8323 if (ac_aggr.tm_gmtoff)
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_tm_tm_gmtoff=yes
8348 else
8349 $as_echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h. */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 #include <time.h>
8361 main ()
8363 static struct tm ac_aggr;
8364 if (sizeof ac_aggr.tm_gmtoff)
8365 return 0;
8367 return 0;
8369 _ACEOF
8370 rm -f conftest.$ac_objext
8371 if { (ac_try="$ac_compile"
8372 case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375 esac
8376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8377 $as_echo "$ac_try_echo") >&5
8378 (eval "$ac_compile") 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } && {
8385 test -z "$ac_c_werror_flag" ||
8386 test ! -s conftest.err
8387 } && test -s conftest.$ac_objext; then
8388 ac_cv_member_struct_tm_tm_gmtoff=yes
8389 else
8390 $as_echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 ac_cv_member_struct_tm_tm_gmtoff=no
8396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8402 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8403 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8405 cat >>confdefs.h <<\_ACEOF
8406 #define HAVE_TM_GMTOFF 1
8407 _ACEOF
8411 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8412 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8413 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8414 $as_echo_n "(cached) " >&6
8415 else
8416 cat >conftest.$ac_ext <<_ACEOF
8417 /* confdefs.h. */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8422 $ac_includes_default
8423 #if HAVE_SYS_SOCKET_H
8424 #include <sys/socket.h>
8425 #endif
8426 #if HAVE_NET_IF_H
8427 #include <net/if.h>
8428 #endif
8431 main ()
8433 static struct ifreq ac_aggr;
8434 if (ac_aggr.ifr_flags)
8435 return 0;
8437 return 0;
8439 _ACEOF
8440 rm -f conftest.$ac_objext
8441 if { (ac_try="$ac_compile"
8442 case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8445 esac
8446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8447 $as_echo "$ac_try_echo") >&5
8448 (eval "$ac_compile") 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } && {
8455 test -z "$ac_c_werror_flag" ||
8456 test ! -s conftest.err
8457 } && test -s conftest.$ac_objext; then
8458 ac_cv_member_struct_ifreq_ifr_flags=yes
8459 else
8460 $as_echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h. */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8469 $ac_includes_default
8470 #if HAVE_SYS_SOCKET_H
8471 #include <sys/socket.h>
8472 #endif
8473 #if HAVE_NET_IF_H
8474 #include <net/if.h>
8475 #endif
8478 main ()
8480 static struct ifreq ac_aggr;
8481 if (sizeof ac_aggr.ifr_flags)
8482 return 0;
8484 return 0;
8486 _ACEOF
8487 rm -f conftest.$ac_objext
8488 if { (ac_try="$ac_compile"
8489 case "(($ac_try" in
8490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491 *) ac_try_echo=$ac_try;;
8492 esac
8493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8494 $as_echo "$ac_try_echo") >&5
8495 (eval "$ac_compile") 2>conftest.er1
8496 ac_status=$?
8497 grep -v '^ *+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } && {
8502 test -z "$ac_c_werror_flag" ||
8503 test ! -s conftest.err
8504 } && test -s conftest.$ac_objext; then
8505 ac_cv_member_struct_ifreq_ifr_flags=yes
8506 else
8507 $as_echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 ac_cv_member_struct_ifreq_ifr_flags=no
8513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8519 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8520 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8522 cat >>confdefs.h <<_ACEOF
8523 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8524 _ACEOF
8528 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8529 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8530 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8531 $as_echo_n "(cached) " >&6
8532 else
8533 cat >conftest.$ac_ext <<_ACEOF
8534 /* confdefs.h. */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 $ac_includes_default
8540 #if HAVE_SYS_SOCKET_H
8541 #include <sys/socket.h>
8542 #endif
8543 #if HAVE_NET_IF_H
8544 #include <net/if.h>
8545 #endif
8548 main ()
8550 static struct ifreq ac_aggr;
8551 if (ac_aggr.ifr_hwaddr)
8552 return 0;
8554 return 0;
8556 _ACEOF
8557 rm -f conftest.$ac_objext
8558 if { (ac_try="$ac_compile"
8559 case "(($ac_try" in
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8562 esac
8563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8564 $as_echo "$ac_try_echo") >&5
8565 (eval "$ac_compile") 2>conftest.er1
8566 ac_status=$?
8567 grep -v '^ *+' conftest.er1 >conftest.err
8568 rm -f conftest.er1
8569 cat conftest.err >&5
8570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } && {
8572 test -z "$ac_c_werror_flag" ||
8573 test ! -s conftest.err
8574 } && test -s conftest.$ac_objext; then
8575 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8576 else
8577 $as_echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8580 cat >conftest.$ac_ext <<_ACEOF
8581 /* confdefs.h. */
8582 _ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8586 $ac_includes_default
8587 #if HAVE_SYS_SOCKET_H
8588 #include <sys/socket.h>
8589 #endif
8590 #if HAVE_NET_IF_H
8591 #include <net/if.h>
8592 #endif
8595 main ()
8597 static struct ifreq ac_aggr;
8598 if (sizeof ac_aggr.ifr_hwaddr)
8599 return 0;
8601 return 0;
8603 _ACEOF
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8606 case "(($ac_try" in
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8609 esac
8610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8611 $as_echo "$ac_try_echo") >&5
8612 (eval "$ac_compile") 2>conftest.er1
8613 ac_status=$?
8614 grep -v '^ *+' conftest.er1 >conftest.err
8615 rm -f conftest.er1
8616 cat conftest.err >&5
8617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && {
8619 test -z "$ac_c_werror_flag" ||
8620 test ! -s conftest.err
8621 } && test -s conftest.$ac_objext; then
8622 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8623 else
8624 $as_echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8627 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8636 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8637 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8639 cat >>confdefs.h <<_ACEOF
8640 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8641 _ACEOF
8645 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8646 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8647 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8648 $as_echo_n "(cached) " >&6
8649 else
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h. */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 $ac_includes_default
8657 #if HAVE_SYS_SOCKET_H
8658 #include <sys/socket.h>
8659 #endif
8660 #if HAVE_NET_IF_H
8661 #include <net/if.h>
8662 #endif
8665 main ()
8667 static struct ifreq ac_aggr;
8668 if (ac_aggr.ifr_netmask)
8669 return 0;
8671 return 0;
8673 _ACEOF
8674 rm -f conftest.$ac_objext
8675 if { (ac_try="$ac_compile"
8676 case "(($ac_try" in
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8679 esac
8680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8681 $as_echo "$ac_try_echo") >&5
8682 (eval "$ac_compile") 2>conftest.er1
8683 ac_status=$?
8684 grep -v '^ *+' conftest.er1 >conftest.err
8685 rm -f conftest.er1
8686 cat conftest.err >&5
8687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } && {
8689 test -z "$ac_c_werror_flag" ||
8690 test ! -s conftest.err
8691 } && test -s conftest.$ac_objext; then
8692 ac_cv_member_struct_ifreq_ifr_netmask=yes
8693 else
8694 $as_echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h. */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 #if HAVE_SYS_SOCKET_H
8705 #include <sys/socket.h>
8706 #endif
8707 #if HAVE_NET_IF_H
8708 #include <net/if.h>
8709 #endif
8712 main ()
8714 static struct ifreq ac_aggr;
8715 if (sizeof ac_aggr.ifr_netmask)
8716 return 0;
8718 return 0;
8720 _ACEOF
8721 rm -f conftest.$ac_objext
8722 if { (ac_try="$ac_compile"
8723 case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726 esac
8727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8728 $as_echo "$ac_try_echo") >&5
8729 (eval "$ac_compile") 2>conftest.er1
8730 ac_status=$?
8731 grep -v '^ *+' conftest.er1 >conftest.err
8732 rm -f conftest.er1
8733 cat conftest.err >&5
8734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } && {
8736 test -z "$ac_c_werror_flag" ||
8737 test ! -s conftest.err
8738 } && test -s conftest.$ac_objext; then
8739 ac_cv_member_struct_ifreq_ifr_netmask=yes
8740 else
8741 $as_echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8744 ac_cv_member_struct_ifreq_ifr_netmask=no
8747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8753 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8754 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8756 cat >>confdefs.h <<_ACEOF
8757 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8758 _ACEOF
8762 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8763 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8764 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8765 $as_echo_n "(cached) " >&6
8766 else
8767 cat >conftest.$ac_ext <<_ACEOF
8768 /* confdefs.h. */
8769 _ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8773 $ac_includes_default
8774 #if HAVE_SYS_SOCKET_H
8775 #include <sys/socket.h>
8776 #endif
8777 #if HAVE_NET_IF_H
8778 #include <net/if.h>
8779 #endif
8782 main ()
8784 static struct ifreq ac_aggr;
8785 if (ac_aggr.ifr_broadaddr)
8786 return 0;
8788 return 0;
8790 _ACEOF
8791 rm -f conftest.$ac_objext
8792 if { (ac_try="$ac_compile"
8793 case "(($ac_try" in
8794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8796 esac
8797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8798 $as_echo "$ac_try_echo") >&5
8799 (eval "$ac_compile") 2>conftest.er1
8800 ac_status=$?
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
8804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } && {
8806 test -z "$ac_c_werror_flag" ||
8807 test ! -s conftest.err
8808 } && test -s conftest.$ac_objext; then
8809 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8810 else
8811 $as_echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 cat >conftest.$ac_ext <<_ACEOF
8815 /* confdefs.h. */
8816 _ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8820 $ac_includes_default
8821 #if HAVE_SYS_SOCKET_H
8822 #include <sys/socket.h>
8823 #endif
8824 #if HAVE_NET_IF_H
8825 #include <net/if.h>
8826 #endif
8829 main ()
8831 static struct ifreq ac_aggr;
8832 if (sizeof ac_aggr.ifr_broadaddr)
8833 return 0;
8835 return 0;
8837 _ACEOF
8838 rm -f conftest.$ac_objext
8839 if { (ac_try="$ac_compile"
8840 case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843 esac
8844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8845 $as_echo "$ac_try_echo") >&5
8846 (eval "$ac_compile") 2>conftest.er1
8847 ac_status=$?
8848 grep -v '^ *+' conftest.er1 >conftest.err
8849 rm -f conftest.er1
8850 cat conftest.err >&5
8851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } && {
8853 test -z "$ac_c_werror_flag" ||
8854 test ! -s conftest.err
8855 } && test -s conftest.$ac_objext; then
8856 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8857 else
8858 $as_echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8869 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8870 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8871 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8873 cat >>confdefs.h <<_ACEOF
8874 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8875 _ACEOF
8879 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8880 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8881 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8882 $as_echo_n "(cached) " >&6
8883 else
8884 cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h. */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 $ac_includes_default
8891 #if HAVE_SYS_SOCKET_H
8892 #include <sys/socket.h>
8893 #endif
8894 #if HAVE_NET_IF_H
8895 #include <net/if.h>
8896 #endif
8899 main ()
8901 static struct ifreq ac_aggr;
8902 if (ac_aggr.ifr_addr)
8903 return 0;
8905 return 0;
8907 _ACEOF
8908 rm -f conftest.$ac_objext
8909 if { (ac_try="$ac_compile"
8910 case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8913 esac
8914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8915 $as_echo "$ac_try_echo") >&5
8916 (eval "$ac_compile") 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } && {
8923 test -z "$ac_c_werror_flag" ||
8924 test ! -s conftest.err
8925 } && test -s conftest.$ac_objext; then
8926 ac_cv_member_struct_ifreq_ifr_addr=yes
8927 else
8928 $as_echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8931 cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h. */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 $ac_includes_default
8938 #if HAVE_SYS_SOCKET_H
8939 #include <sys/socket.h>
8940 #endif
8941 #if HAVE_NET_IF_H
8942 #include <net/if.h>
8943 #endif
8946 main ()
8948 static struct ifreq ac_aggr;
8949 if (sizeof ac_aggr.ifr_addr)
8950 return 0;
8952 return 0;
8954 _ACEOF
8955 rm -f conftest.$ac_objext
8956 if { (ac_try="$ac_compile"
8957 case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960 esac
8961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8962 $as_echo "$ac_try_echo") >&5
8963 (eval "$ac_compile") 2>conftest.er1
8964 ac_status=$?
8965 grep -v '^ *+' conftest.er1 >conftest.err
8966 rm -f conftest.er1
8967 cat conftest.err >&5
8968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } && {
8970 test -z "$ac_c_werror_flag" ||
8971 test ! -s conftest.err
8972 } && test -s conftest.$ac_objext; then
8973 ac_cv_member_struct_ifreq_ifr_addr=yes
8974 else
8975 $as_echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8978 ac_cv_member_struct_ifreq_ifr_addr=no
8981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8987 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8988 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8990 cat >>confdefs.h <<_ACEOF
8991 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8992 _ACEOF
8999 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9000 $as_echo_n "checking for function prototypes... " >&6; }
9001 if test "$ac_cv_prog_cc_c89" != no; then
9002 { $as_echo "$as_me:$LINENO: result: yes" >&5
9003 $as_echo "yes" >&6; }
9005 cat >>confdefs.h <<\_ACEOF
9006 #define PROTOTYPES 1
9007 _ACEOF
9010 cat >>confdefs.h <<\_ACEOF
9011 #define __PROTOTYPES 1
9012 _ACEOF
9014 else
9015 { $as_echo "$as_me:$LINENO: result: no" >&5
9016 $as_echo "no" >&6; }
9019 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9020 $as_echo_n "checking for working volatile... " >&6; }
9021 if test "${ac_cv_c_volatile+set}" = set; then
9022 $as_echo_n "(cached) " >&6
9023 else
9024 cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h. */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9032 main ()
9035 volatile int x;
9036 int * volatile y = (int *) 0;
9037 return !x && !y;
9039 return 0;
9041 _ACEOF
9042 rm -f conftest.$ac_objext
9043 if { (ac_try="$ac_compile"
9044 case "(($ac_try" in
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9047 esac
9048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9049 $as_echo "$ac_try_echo") >&5
9050 (eval "$ac_compile") 2>conftest.er1
9051 ac_status=$?
9052 grep -v '^ *+' conftest.er1 >conftest.err
9053 rm -f conftest.er1
9054 cat conftest.err >&5
9055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } && {
9057 test -z "$ac_c_werror_flag" ||
9058 test ! -s conftest.err
9059 } && test -s conftest.$ac_objext; then
9060 ac_cv_c_volatile=yes
9061 else
9062 $as_echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9065 ac_cv_c_volatile=no
9068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9071 $as_echo "$ac_cv_c_volatile" >&6; }
9072 if test $ac_cv_c_volatile = no; then
9074 cat >>confdefs.h <<\_ACEOF
9075 #define volatile /**/
9076 _ACEOF
9080 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9081 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9082 if test "${ac_cv_c_const+set}" = set; then
9083 $as_echo_n "(cached) " >&6
9084 else
9085 cat >conftest.$ac_ext <<_ACEOF
9086 /* confdefs.h. */
9087 _ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h. */
9093 main ()
9095 /* FIXME: Include the comments suggested by Paul. */
9096 #ifndef __cplusplus
9097 /* Ultrix mips cc rejects this. */
9098 typedef int charset[2];
9099 const charset cs;
9100 /* SunOS 4.1.1 cc rejects this. */
9101 char const *const *pcpcc;
9102 char **ppc;
9103 /* NEC SVR4.0.2 mips cc rejects this. */
9104 struct point {int x, y;};
9105 static struct point const zero = {0,0};
9106 /* AIX XL C 1.02.0.0 rejects this.
9107 It does not let you subtract one const X* pointer from another in
9108 an arm of an if-expression whose if-part is not a constant
9109 expression */
9110 const char *g = "string";
9111 pcpcc = &g + (g ? g-g : 0);
9112 /* HPUX 7.0 cc rejects these. */
9113 ++pcpcc;
9114 ppc = (char**) pcpcc;
9115 pcpcc = (char const *const *) ppc;
9116 { /* SCO 3.2v4 cc rejects this. */
9117 char *t;
9118 char const *s = 0 ? (char *) 0 : (char const *) 0;
9120 *t++ = 0;
9121 if (s) return 0;
9123 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9124 int x[] = {25, 17};
9125 const int *foo = &x[0];
9126 ++foo;
9128 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9129 typedef const int *iptr;
9130 iptr p = 0;
9131 ++p;
9133 { /* AIX XL C 1.02.0.0 rejects this saying
9134 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9135 struct s { int j; const int *ap[3]; };
9136 struct s *b; b->j = 5;
9138 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9139 const int foo = 10;
9140 if (!foo) return 0;
9142 return !cs[0] && !zero.x;
9143 #endif
9146 return 0;
9148 _ACEOF
9149 rm -f conftest.$ac_objext
9150 if { (ac_try="$ac_compile"
9151 case "(($ac_try" in
9152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153 *) ac_try_echo=$ac_try;;
9154 esac
9155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9156 $as_echo "$ac_try_echo") >&5
9157 (eval "$ac_compile") 2>conftest.er1
9158 ac_status=$?
9159 grep -v '^ *+' conftest.er1 >conftest.err
9160 rm -f conftest.er1
9161 cat conftest.err >&5
9162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } && {
9164 test -z "$ac_c_werror_flag" ||
9165 test ! -s conftest.err
9166 } && test -s conftest.$ac_objext; then
9167 ac_cv_c_const=yes
9168 else
9169 $as_echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9172 ac_cv_c_const=no
9175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9177 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9178 $as_echo "$ac_cv_c_const" >&6; }
9179 if test $ac_cv_c_const = no; then
9181 cat >>confdefs.h <<\_ACEOF
9182 #define const /**/
9183 _ACEOF
9187 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9188 $as_echo_n "checking for void * support... " >&6; }
9189 if test "${emacs_cv_void_star+set}" = set; then
9190 $as_echo_n "(cached) " >&6
9191 else
9192 cat >conftest.$ac_ext <<_ACEOF
9193 /* confdefs.h. */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9200 main ()
9202 void * foo;
9204 return 0;
9206 _ACEOF
9207 rm -f conftest.$ac_objext
9208 if { (ac_try="$ac_compile"
9209 case "(($ac_try" in
9210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211 *) ac_try_echo=$ac_try;;
9212 esac
9213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9214 $as_echo "$ac_try_echo") >&5
9215 (eval "$ac_compile") 2>conftest.er1
9216 ac_status=$?
9217 grep -v '^ *+' conftest.er1 >conftest.err
9218 rm -f conftest.er1
9219 cat conftest.err >&5
9220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } && {
9222 test -z "$ac_c_werror_flag" ||
9223 test ! -s conftest.err
9224 } && test -s conftest.$ac_objext; then
9225 emacs_cv_void_star=yes
9226 else
9227 $as_echo "$as_me: failed program was:" >&5
9228 sed 's/^/| /' conftest.$ac_ext >&5
9230 emacs_cv_void_star=no
9233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9236 $as_echo "$emacs_cv_void_star" >&6; }
9237 if test $emacs_cv_void_star = yes; then
9238 cat >>confdefs.h <<\_ACEOF
9239 #define POINTER_TYPE void
9240 _ACEOF
9242 else
9243 cat >>confdefs.h <<\_ACEOF
9244 #define POINTER_TYPE char
9245 _ACEOF
9253 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9254 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9255 set x ${MAKE-make}
9256 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9257 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9258 $as_echo_n "(cached) " >&6
9259 else
9260 cat >conftest.make <<\_ACEOF
9261 SHELL = /bin/sh
9262 all:
9263 @echo '@@@%%%=$(MAKE)=@@@%%%'
9264 _ACEOF
9265 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9266 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9267 *@@@%%%=?*=@@@%%%*)
9268 eval ac_cv_prog_make_${ac_make}_set=yes;;
9270 eval ac_cv_prog_make_${ac_make}_set=no;;
9271 esac
9272 rm -f conftest.make
9274 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9275 { $as_echo "$as_me:$LINENO: result: yes" >&5
9276 $as_echo "yes" >&6; }
9277 SET_MAKE=
9278 else
9279 { $as_echo "$as_me:$LINENO: result: no" >&5
9280 $as_echo "no" >&6; }
9281 SET_MAKE="MAKE=${MAKE-make}"
9285 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9286 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9287 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9288 HAVE_GNU_MAKE=no
9289 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9290 if test "x$testval" != x; then
9291 HAVE_GNU_MAKE=yes
9292 else
9293 ac_enable_autodepend=no
9295 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9296 $as_echo "$HAVE_GNU_MAKE" >&6; }
9297 if test $HAVE_GNU_MAKE = yes; then
9298 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9299 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9300 SAVE_CFLAGS="$CFLAGS"
9301 CFLAGS="$CFLAGS -MMD -MF deps.d"
9302 cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h. */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9310 main ()
9314 return 0;
9316 _ACEOF
9317 rm -f conftest.$ac_objext
9318 if { (ac_try="$ac_compile"
9319 case "(($ac_try" in
9320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9321 *) ac_try_echo=$ac_try;;
9322 esac
9323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9324 $as_echo "$ac_try_echo") >&5
9325 (eval "$ac_compile") 2>conftest.er1
9326 ac_status=$?
9327 grep -v '^ *+' conftest.er1 >conftest.err
9328 rm -f conftest.er1
9329 cat conftest.err >&5
9330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } && {
9332 test -z "$ac_c_werror_flag" ||
9333 test ! -s conftest.err
9334 } && test -s conftest.$ac_objext; then
9336 else
9337 $as_echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.$ac_ext >&5
9340 ac_enable_autodepend=no
9343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344 CFLAGS="$SAVE_CFLAGS"
9345 test -f deps.d || ac_enable_autodepend=no
9346 rm -rf deps.d
9347 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9348 $as_echo "$ac_enable_autodepend" >&6; }
9350 if test $ac_enable_autodepend = yes; then
9352 cat >>confdefs.h <<\_ACEOF
9353 #define AUTO_DEPEND 1
9354 _ACEOF
9359 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9360 $as_echo_n "checking for long file names... " >&6; }
9361 if test "${ac_cv_sys_long_file_names+set}" = set; then
9362 $as_echo_n "(cached) " >&6
9363 else
9364 ac_cv_sys_long_file_names=yes
9365 # Test for long file names in all the places we know might matter:
9366 # . the current directory, where building will happen
9367 # $prefix/lib where we will be installing things
9368 # $exec_prefix/lib likewise
9369 # $TMPDIR if set, where it might want to write temporary files
9370 # /tmp where it might want to write temporary files
9371 # /var/tmp likewise
9372 # /usr/tmp likewise
9373 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9374 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9375 # in the usual case where exec_prefix is '${prefix}'.
9376 case $ac_dir in #(
9377 . | /* | ?:[\\/]*) ;; #(
9378 *) continue;;
9379 esac
9380 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9381 ac_xdir=$ac_dir/cf$$
9382 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9383 ac_tf1=$ac_xdir/conftest9012345
9384 ac_tf2=$ac_xdir/conftest9012346
9385 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9386 ac_cv_sys_long_file_names=no
9387 rm -f -r "$ac_xdir" 2>/dev/null
9388 test $ac_cv_sys_long_file_names = no && break
9389 done
9391 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9392 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9393 if test $ac_cv_sys_long_file_names = yes; then
9395 cat >>confdefs.h <<\_ACEOF
9396 #define HAVE_LONG_FILE_NAMES 1
9397 _ACEOF
9402 #### Choose a window system.
9404 { $as_echo "$as_me:$LINENO: checking for X" >&5
9405 $as_echo_n "checking for X... " >&6; }
9408 # Check whether --with-x was given.
9409 if test "${with_x+set}" = set; then
9410 withval=$with_x;
9413 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9414 if test "x$with_x" = xno; then
9415 # The user explicitly disabled X.
9416 have_x=disabled
9417 else
9418 case $x_includes,$x_libraries in #(
9419 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9420 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9421 { (exit 1); exit 1; }; };; #(
9422 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9423 $as_echo_n "(cached) " >&6
9424 else
9425 # One or both of the vars are not set, and there is no cached value.
9426 ac_x_includes=no ac_x_libraries=no
9427 rm -f -r conftest.dir
9428 if mkdir conftest.dir; then
9429 cd conftest.dir
9430 cat >Imakefile <<'_ACEOF'
9431 incroot:
9432 @echo incroot='${INCROOT}'
9433 usrlibdir:
9434 @echo usrlibdir='${USRLIBDIR}'
9435 libdir:
9436 @echo libdir='${LIBDIR}'
9437 _ACEOF
9438 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9440 for ac_var in incroot usrlibdir libdir; do
9441 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9442 done
9443 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9444 for ac_extension in a so sl dylib la dll; do
9445 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9446 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9447 ac_im_usrlibdir=$ac_im_libdir; break
9449 done
9450 # Screen out bogus values from the imake configuration. They are
9451 # bogus both because they are the default anyway, and because
9452 # using them would break gcc on systems where it needs fixed includes.
9453 case $ac_im_incroot in
9454 /usr/include) ac_x_includes= ;;
9455 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9456 esac
9457 case $ac_im_usrlibdir in
9458 /usr/lib | /lib) ;;
9459 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9460 esac
9462 cd ..
9463 rm -f -r conftest.dir
9466 # Standard set of common directories for X headers.
9467 # Check X11 before X11Rn because it is often a symlink to the current release.
9468 ac_x_header_dirs='
9469 /usr/X11/include
9470 /usr/X11R6/include
9471 /usr/X11R5/include
9472 /usr/X11R4/include
9474 /usr/include/X11
9475 /usr/include/X11R6
9476 /usr/include/X11R5
9477 /usr/include/X11R4
9479 /usr/local/X11/include
9480 /usr/local/X11R6/include
9481 /usr/local/X11R5/include
9482 /usr/local/X11R4/include
9484 /usr/local/include/X11
9485 /usr/local/include/X11R6
9486 /usr/local/include/X11R5
9487 /usr/local/include/X11R4
9489 /usr/X386/include
9490 /usr/x386/include
9491 /usr/XFree86/include/X11
9493 /usr/include
9494 /usr/local/include
9495 /usr/unsupported/include
9496 /usr/athena/include
9497 /usr/local/x11r5/include
9498 /usr/lpp/Xamples/include
9500 /usr/openwin/include
9501 /usr/openwin/share/include'
9503 if test "$ac_x_includes" = no; then
9504 # Guess where to find include files, by looking for Xlib.h.
9505 # First, try using that file with no special directory specified.
9506 cat >conftest.$ac_ext <<_ACEOF
9507 /* confdefs.h. */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9512 #include <X11/Xlib.h>
9513 _ACEOF
9514 if { (ac_try="$ac_cpp conftest.$ac_ext"
9515 case "(($ac_try" in
9516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517 *) ac_try_echo=$ac_try;;
9518 esac
9519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9520 $as_echo "$ac_try_echo") >&5
9521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } >/dev/null && {
9528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9529 test ! -s conftest.err
9530 }; then
9531 # We can compile using X headers with no special include directory.
9532 ac_x_includes=
9533 else
9534 $as_echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9537 for ac_dir in $ac_x_header_dirs; do
9538 if test -r "$ac_dir/X11/Xlib.h"; then
9539 ac_x_includes=$ac_dir
9540 break
9542 done
9545 rm -f conftest.err conftest.$ac_ext
9546 fi # $ac_x_includes = no
9548 if test "$ac_x_libraries" = no; then
9549 # Check for the libraries.
9550 # See if we find them without any special options.
9551 # Don't add to $LIBS permanently.
9552 ac_save_LIBS=$LIBS
9553 LIBS="-lX11 $LIBS"
9554 cat >conftest.$ac_ext <<_ACEOF
9555 /* confdefs.h. */
9556 _ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9560 #include <X11/Xlib.h>
9562 main ()
9564 XrmInitialize ()
9566 return 0;
9568 _ACEOF
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (ac_try="$ac_link"
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_link") 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); } && {
9584 test -z "$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 } && test -s conftest$ac_exeext && {
9587 test "$cross_compiling" = yes ||
9588 $as_test_x conftest$ac_exeext
9589 }; then
9590 LIBS=$ac_save_LIBS
9591 # We can link X programs with no special library path.
9592 ac_x_libraries=
9593 else
9594 $as_echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 LIBS=$ac_save_LIBS
9598 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9600 # Don't even attempt the hair of trying to link an X program!
9601 for ac_extension in a so sl dylib la dll; do
9602 if test -r "$ac_dir/libX11.$ac_extension"; then
9603 ac_x_libraries=$ac_dir
9604 break 2
9606 done
9607 done
9610 rm -rf conftest.dSYM
9611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9612 conftest$ac_exeext conftest.$ac_ext
9613 fi # $ac_x_libraries = no
9615 case $ac_x_includes,$ac_x_libraries in #(
9616 no,* | *,no | *\'*)
9617 # Didn't find X, or a directory has "'" in its name.
9618 ac_cv_have_x="have_x=no";; #(
9620 # Record where we found X for the cache.
9621 ac_cv_have_x="have_x=yes\
9622 ac_x_includes='$ac_x_includes'\
9623 ac_x_libraries='$ac_x_libraries'"
9624 esac
9626 ;; #(
9627 *) have_x=yes;;
9628 esac
9629 eval "$ac_cv_have_x"
9630 fi # $with_x != no
9632 if test "$have_x" != yes; then
9633 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9634 $as_echo "$have_x" >&6; }
9635 no_x=yes
9636 else
9637 # If each of the values was on the command line, it overrides each guess.
9638 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9639 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9640 # Update the cache value to reflect the command line values.
9641 ac_cv_have_x="have_x=yes\
9642 ac_x_includes='$x_includes'\
9643 ac_x_libraries='$x_libraries'"
9644 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9645 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9648 if test "$no_x" = yes; then
9649 window_system=none
9650 else
9651 window_system=x11
9654 ## Workaround for bug in autoconf <= 2.62.
9655 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9656 ## No need to do anything special for these standard directories.
9657 ## This is an experiment, take it out if it causes problems.
9658 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9660 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9664 if test "${x_libraries}" != NONE; then
9665 if test -n "${x_libraries}"; then
9666 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9667 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9669 x_default_search_path=""
9670 x_search_path=${x_libraries}
9671 if test -z "${x_search_path}"; then
9672 x_search_path=/usr/lib
9674 for x_library in `echo ${x_search_path}: | \
9675 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9676 x_search_path="\
9677 ${x_library}/X11/%L/%T/%N%C%S:\
9678 ${x_library}/X11/%l/%T/%N%C%S:\
9679 ${x_library}/X11/%T/%N%C%S:\
9680 ${x_library}/X11/%L/%T/%N%S:\
9681 ${x_library}/X11/%l/%T/%N%S:\
9682 ${x_library}/X11/%T/%N%S"
9683 if test x"${x_default_search_path}" = x; then
9684 x_default_search_path=${x_search_path}
9685 else
9686 x_default_search_path="${x_search_path}:${x_default_search_path}"
9688 done
9690 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9691 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9694 if test x"${x_includes}" = x; then
9695 bitmapdir=/usr/include/X11/bitmaps
9696 else
9697 # accumulate include directories that have X11 bitmap subdirectories
9698 bmd_acc="dummyval"
9699 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9700 if test -d "${bmd}/X11/bitmaps"; then
9701 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9703 if test -d "${bmd}/bitmaps"; then
9704 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9706 done
9707 if test ${bmd_acc} != "dummyval"; then
9708 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9712 HAVE_NS=no
9713 NS_IMPL_COCOA=no
9714 NS_IMPL_GNUSTEP=no
9715 tmp_CPPFLAGS="$CPPFLAGS"
9716 tmp_CFLAGS="$CFLAGS"
9717 CPPFLAGS="$CPPFLAGS -x objective-c"
9718 CFLAGS="$CFLAGS -x objective-c"
9719 if test "${with_ns}" != no; then
9720 if test "${opsys}" = darwin; then
9721 NS_IMPL_COCOA=yes
9722 ns_appdir=`pwd`/nextstep/Emacs.app
9723 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9724 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9725 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9726 elif test -f $GNUSTEP_CONFIG_FILE; then
9727 NS_IMPL_GNUSTEP=yes
9728 ns_appdir=`pwd`/nextstep/Emacs.app
9729 ns_appbindir=`pwd`/nextstep/Emacs.app
9730 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9731 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9732 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9733 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9734 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9735 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9736 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9737 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9738 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9740 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9741 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9742 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9743 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9744 $as_echo_n "(cached) " >&6
9746 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9747 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9748 else
9749 # Is the header compilable?
9750 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9751 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9752 cat >conftest.$ac_ext <<_ACEOF
9753 /* confdefs.h. */
9754 _ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9758 $ac_includes_default
9759 #include <AppKit/AppKit.h>
9760 _ACEOF
9761 rm -f conftest.$ac_objext
9762 if { (ac_try="$ac_compile"
9763 case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766 esac
9767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9768 $as_echo "$ac_try_echo") >&5
9769 (eval "$ac_compile") 2>conftest.er1
9770 ac_status=$?
9771 grep -v '^ *+' conftest.er1 >conftest.err
9772 rm -f conftest.er1
9773 cat conftest.err >&5
9774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } && {
9776 test -z "$ac_c_werror_flag" ||
9777 test ! -s conftest.err
9778 } && test -s conftest.$ac_objext; then
9779 ac_header_compiler=yes
9780 else
9781 $as_echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9784 ac_header_compiler=no
9787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9789 $as_echo "$ac_header_compiler" >&6; }
9791 # Is the header present?
9792 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9793 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9794 cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h. */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9800 #include <AppKit/AppKit.h>
9801 _ACEOF
9802 if { (ac_try="$ac_cpp conftest.$ac_ext"
9803 case "(($ac_try" in
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9806 esac
9807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9808 $as_echo "$ac_try_echo") >&5
9809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9810 ac_status=$?
9811 grep -v '^ *+' conftest.er1 >conftest.err
9812 rm -f conftest.er1
9813 cat conftest.err >&5
9814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } >/dev/null && {
9816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9817 test ! -s conftest.err
9818 }; then
9819 ac_header_preproc=yes
9820 else
9821 $as_echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9824 ac_header_preproc=no
9827 rm -f conftest.err conftest.$ac_ext
9828 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9829 $as_echo "$ac_header_preproc" >&6; }
9831 # So? What about this header?
9832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9833 yes:no: )
9834 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9835 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9836 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9837 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9838 ac_header_preproc=yes
9840 no:yes:* )
9841 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9842 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9843 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9844 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9845 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9846 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9847 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9848 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9849 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9850 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9851 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9852 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9855 esac
9856 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9857 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9858 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9859 $as_echo_n "(cached) " >&6
9860 else
9861 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9863 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9864 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9867 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9868 HAVE_NS=yes
9869 else
9870 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9871 files are missing or cannot be compiled." >&5
9872 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9873 files are missing or cannot be compiled." >&2;}
9874 { (exit 1); exit 1; }; }
9878 NS_HAVE_NSINTEGER=yes
9879 cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h. */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9885 #include <Foundation/NSObjCRuntime.h>
9887 main ()
9889 NSInteger i;
9891 return 0;
9893 _ACEOF
9894 rm -f conftest.$ac_objext
9895 if { (ac_try="$ac_compile"
9896 case "(($ac_try" in
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9899 esac
9900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9901 $as_echo "$ac_try_echo") >&5
9902 (eval "$ac_compile") 2>conftest.er1
9903 ac_status=$?
9904 grep -v '^ *+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest.$ac_objext; then
9912 ns_have_nsinteger=yes
9913 else
9914 $as_echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9917 ns_have_nsinteger=no
9920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921 if test $ns_have_nsinteger = no; then
9922 NS_HAVE_NSINTEGER=no
9925 if test "${HAVE_NS}" = yes; then
9926 window_system=nextstep
9927 with_xft=no
9928 # set up packaging dirs
9929 exec_prefix=${ns_appbindir}
9930 libexecdir=${ns_appbindir}/libexec
9931 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9932 prefix=${ns_appresdir}
9935 CFLAGS="$tmp_CFLAGS"
9936 CPPFLAGS="$tmp_CPPFLAGS"
9938 case "${window_system}" in
9939 x11 )
9940 HAVE_X_WINDOWS=yes
9941 HAVE_X11=yes
9942 case "${with_x_toolkit}" in
9943 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9944 motif ) USE_X_TOOLKIT=MOTIF ;;
9945 gtk ) with_gtk=yes
9946 USE_X_TOOLKIT=none ;;
9947 no ) USE_X_TOOLKIT=none ;;
9948 * ) USE_X_TOOLKIT=maybe ;;
9949 esac
9951 nextstep | none )
9952 HAVE_X_WINDOWS=no
9953 HAVE_X11=no
9954 USE_X_TOOLKIT=none
9956 esac
9958 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9959 # Extract the first word of "X", so it can be a program name with args.
9960 set dummy X; ac_word=$2
9961 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9962 $as_echo_n "checking for $ac_word... " >&6; }
9963 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9964 $as_echo_n "(cached) " >&6
9965 else
9966 if test -n "$HAVE_XSERVER"; then
9967 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9968 else
9969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970 for as_dir in $PATH
9972 IFS=$as_save_IFS
9973 test -z "$as_dir" && as_dir=.
9974 for ac_exec_ext in '' $ac_executable_extensions; do
9975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9976 ac_cv_prog_HAVE_XSERVER="true"
9977 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9978 break 2
9980 done
9981 done
9982 IFS=$as_save_IFS
9984 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9987 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9988 if test -n "$HAVE_XSERVER"; then
9989 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9990 $as_echo "$HAVE_XSERVER" >&6; }
9991 else
9992 { $as_echo "$as_me:$LINENO: result: no" >&5
9993 $as_echo "no" >&6; }
9997 if test "$HAVE_XSERVER" = true ||
9998 test -n "$DISPLAY" ||
9999 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10000 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10001 were found. You should install the relevant development files for X
10002 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10003 sure you have development files for image handling, i.e.
10004 tiff, gif, jpeg, png and xpm.
10005 If you are sure you want Emacs compiled without X window support, pass
10006 --without-x
10007 to configure." >&5
10008 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10009 were found. You should install the relevant development files for X
10010 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10011 sure you have development files for image handling, i.e.
10012 tiff, gif, jpeg, png and xpm.
10013 If you are sure you want Emacs compiled without X window support, pass
10014 --without-x
10015 to configure." >&2;}
10016 { (exit 1); exit 1; }; }
10020 ### If we're using X11, we should use the X menu package.
10021 HAVE_MENUS=no
10022 case ${HAVE_X11} in
10023 yes ) HAVE_MENUS=yes ;;
10024 esac
10026 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10027 # Assume not, until told otherwise.
10028 GNU_MALLOC=yes
10029 doug_lea_malloc=yes
10030 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10031 $as_echo_n "checking for malloc_get_state... " >&6; }
10032 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10033 $as_echo_n "(cached) " >&6
10034 else
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h. */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10043 #define malloc_get_state innocuous_malloc_get_state
10045 /* System header to define __stub macros and hopefully few prototypes,
10046 which can conflict with char malloc_get_state (); below.
10047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10048 <limits.h> exists even on freestanding compilers. */
10050 #ifdef __STDC__
10051 # include <limits.h>
10052 #else
10053 # include <assert.h>
10054 #endif
10056 #undef malloc_get_state
10058 /* Override any GCC internal prototype to avoid an error.
10059 Use char because int might match the return type of a GCC
10060 builtin and then its argument prototype would still apply. */
10061 #ifdef __cplusplus
10062 extern "C"
10063 #endif
10064 char malloc_get_state ();
10065 /* The GNU C library defines this for functions which it implements
10066 to always fail with ENOSYS. Some functions are actually named
10067 something starting with __ and the normal name is an alias. */
10068 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10069 choke me
10070 #endif
10073 main ()
10075 return malloc_get_state ();
10077 return 0;
10079 _ACEOF
10080 rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (ac_try="$ac_link"
10082 case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10085 esac
10086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10087 $as_echo "$ac_try_echo") >&5
10088 (eval "$ac_link") 2>conftest.er1
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } && {
10095 test -z "$ac_c_werror_flag" ||
10096 test ! -s conftest.err
10097 } && test -s conftest$ac_exeext && {
10098 test "$cross_compiling" = yes ||
10099 $as_test_x conftest$ac_exeext
10100 }; then
10101 ac_cv_func_malloc_get_state=yes
10102 else
10103 $as_echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10106 ac_cv_func_malloc_get_state=no
10109 rm -rf conftest.dSYM
10110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10111 conftest$ac_exeext conftest.$ac_ext
10113 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10114 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10115 if test $ac_cv_func_malloc_get_state = yes; then
10117 else
10118 doug_lea_malloc=no
10121 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10122 $as_echo_n "checking for malloc_set_state... " >&6; }
10123 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10124 $as_echo_n "(cached) " >&6
10125 else
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h. */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10134 #define malloc_set_state innocuous_malloc_set_state
10136 /* System header to define __stub macros and hopefully few prototypes,
10137 which can conflict with char malloc_set_state (); below.
10138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10139 <limits.h> exists even on freestanding compilers. */
10141 #ifdef __STDC__
10142 # include <limits.h>
10143 #else
10144 # include <assert.h>
10145 #endif
10147 #undef malloc_set_state
10149 /* Override any GCC internal prototype to avoid an error.
10150 Use char because int might match the return type of a GCC
10151 builtin and then its argument prototype would still apply. */
10152 #ifdef __cplusplus
10153 extern "C"
10154 #endif
10155 char malloc_set_state ();
10156 /* The GNU C library defines this for functions which it implements
10157 to always fail with ENOSYS. Some functions are actually named
10158 something starting with __ and the normal name is an alias. */
10159 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10160 choke me
10161 #endif
10164 main ()
10166 return malloc_set_state ();
10168 return 0;
10170 _ACEOF
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (ac_try="$ac_link"
10173 case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10176 esac
10177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10178 $as_echo "$ac_try_echo") >&5
10179 (eval "$ac_link") 2>conftest.er1
10180 ac_status=$?
10181 grep -v '^ *+' conftest.er1 >conftest.err
10182 rm -f conftest.er1
10183 cat conftest.err >&5
10184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } && {
10186 test -z "$ac_c_werror_flag" ||
10187 test ! -s conftest.err
10188 } && test -s conftest$ac_exeext && {
10189 test "$cross_compiling" = yes ||
10190 $as_test_x conftest$ac_exeext
10191 }; then
10192 ac_cv_func_malloc_set_state=yes
10193 else
10194 $as_echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10197 ac_cv_func_malloc_set_state=no
10200 rm -rf conftest.dSYM
10201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10202 conftest$ac_exeext conftest.$ac_ext
10204 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10205 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10206 if test $ac_cv_func_malloc_set_state = yes; then
10208 else
10209 doug_lea_malloc=no
10212 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10213 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10214 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10215 $as_echo_n "(cached) " >&6
10216 else
10217 cat >conftest.$ac_ext <<_ACEOF
10218 /* confdefs.h. */
10219 _ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h. */
10223 extern void (* __after_morecore_hook)();
10225 main ()
10227 __after_morecore_hook = 0
10229 return 0;
10231 _ACEOF
10232 rm -f conftest.$ac_objext conftest$ac_exeext
10233 if { (ac_try="$ac_link"
10234 case "(($ac_try" in
10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10237 esac
10238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10239 $as_echo "$ac_try_echo") >&5
10240 (eval "$ac_link") 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } && {
10247 test -z "$ac_c_werror_flag" ||
10248 test ! -s conftest.err
10249 } && test -s conftest$ac_exeext && {
10250 test "$cross_compiling" = yes ||
10251 $as_test_x conftest$ac_exeext
10252 }; then
10253 emacs_cv_var___after_morecore_hook=yes
10254 else
10255 $as_echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 emacs_cv_var___after_morecore_hook=no
10261 rm -rf conftest.dSYM
10262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10263 conftest$ac_exeext conftest.$ac_ext
10265 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10266 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10267 if test $emacs_cv_var___after_morecore_hook = no; then
10268 doug_lea_malloc=no
10270 if test "${system_malloc}" = "yes"; then
10271 GNU_MALLOC=no
10272 GNU_MALLOC_reason="
10273 (The GNU allocators don't work with this system configuration.)"
10275 if test "$doug_lea_malloc" = "yes" ; then
10276 if test "$GNU_MALLOC" = yes ; then
10277 GNU_MALLOC_reason="
10278 (Using Doug Lea's new malloc from the GNU C Library.)"
10281 cat >>confdefs.h <<\_ACEOF
10282 #define DOUG_LEA_MALLOC 1
10283 _ACEOF
10287 if test x"${REL_ALLOC}" = x; then
10288 REL_ALLOC=${GNU_MALLOC}
10294 for ac_header in stdlib.h unistd.h
10296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10299 $as_echo_n "checking for $ac_header... " >&6; }
10300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10301 $as_echo_n "(cached) " >&6
10303 ac_res=`eval 'as_val=${'$as_ac_Header'}
10304 $as_echo "$as_val"'`
10305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10306 $as_echo "$ac_res" >&6; }
10307 else
10308 # Is the header compilable?
10309 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10310 $as_echo_n "checking $ac_header usability... " >&6; }
10311 cat >conftest.$ac_ext <<_ACEOF
10312 /* confdefs.h. */
10313 _ACEOF
10314 cat confdefs.h >>conftest.$ac_ext
10315 cat >>conftest.$ac_ext <<_ACEOF
10316 /* end confdefs.h. */
10317 $ac_includes_default
10318 #include <$ac_header>
10319 _ACEOF
10320 rm -f conftest.$ac_objext
10321 if { (ac_try="$ac_compile"
10322 case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10325 esac
10326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10327 $as_echo "$ac_try_echo") >&5
10328 (eval "$ac_compile") 2>conftest.er1
10329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } && {
10335 test -z "$ac_c_werror_flag" ||
10336 test ! -s conftest.err
10337 } && test -s conftest.$ac_objext; then
10338 ac_header_compiler=yes
10339 else
10340 $as_echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10343 ac_header_compiler=no
10346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10347 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10348 $as_echo "$ac_header_compiler" >&6; }
10350 # Is the header present?
10351 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10352 $as_echo_n "checking $ac_header presence... " >&6; }
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h. */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 #include <$ac_header>
10360 _ACEOF
10361 if { (ac_try="$ac_cpp conftest.$ac_ext"
10362 case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10365 esac
10366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10367 $as_echo "$ac_try_echo") >&5
10368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10369 ac_status=$?
10370 grep -v '^ *+' conftest.er1 >conftest.err
10371 rm -f conftest.er1
10372 cat conftest.err >&5
10373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } >/dev/null && {
10375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10376 test ! -s conftest.err
10377 }; then
10378 ac_header_preproc=yes
10379 else
10380 $as_echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10383 ac_header_preproc=no
10386 rm -f conftest.err conftest.$ac_ext
10387 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10388 $as_echo "$ac_header_preproc" >&6; }
10390 # So? What about this header?
10391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10392 yes:no: )
10393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10394 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10396 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10397 ac_header_preproc=yes
10399 no:yes:* )
10400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10401 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10403 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10405 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10407 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10409 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10411 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10414 esac
10415 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10416 $as_echo_n "checking for $ac_header... " >&6; }
10417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10418 $as_echo_n "(cached) " >&6
10419 else
10420 eval "$as_ac_Header=\$ac_header_preproc"
10422 ac_res=`eval 'as_val=${'$as_ac_Header'}
10423 $as_echo "$as_val"'`
10424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10425 $as_echo "$ac_res" >&6; }
10428 if test `eval 'as_val=${'$as_ac_Header'}
10429 $as_echo "$as_val"'` = yes; then
10430 cat >>confdefs.h <<_ACEOF
10431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10432 _ACEOF
10436 done
10439 for ac_func in getpagesize
10441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10442 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10443 $as_echo_n "checking for $ac_func... " >&6; }
10444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10445 $as_echo_n "(cached) " >&6
10446 else
10447 cat >conftest.$ac_ext <<_ACEOF
10448 /* confdefs.h. */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10455 #define $ac_func innocuous_$ac_func
10457 /* System header to define __stub macros and hopefully few prototypes,
10458 which can conflict with char $ac_func (); below.
10459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10460 <limits.h> exists even on freestanding compilers. */
10462 #ifdef __STDC__
10463 # include <limits.h>
10464 #else
10465 # include <assert.h>
10466 #endif
10468 #undef $ac_func
10470 /* Override any GCC internal prototype to avoid an error.
10471 Use char because int might match the return type of a GCC
10472 builtin and then its argument prototype would still apply. */
10473 #ifdef __cplusplus
10474 extern "C"
10475 #endif
10476 char $ac_func ();
10477 /* The GNU C library defines this for functions which it implements
10478 to always fail with ENOSYS. Some functions are actually named
10479 something starting with __ and the normal name is an alias. */
10480 #if defined __stub_$ac_func || defined __stub___$ac_func
10481 choke me
10482 #endif
10485 main ()
10487 return $ac_func ();
10489 return 0;
10491 _ACEOF
10492 rm -f conftest.$ac_objext conftest$ac_exeext
10493 if { (ac_try="$ac_link"
10494 case "(($ac_try" in
10495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10496 *) ac_try_echo=$ac_try;;
10497 esac
10498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10499 $as_echo "$ac_try_echo") >&5
10500 (eval "$ac_link") 2>conftest.er1
10501 ac_status=$?
10502 grep -v '^ *+' conftest.er1 >conftest.err
10503 rm -f conftest.er1
10504 cat conftest.err >&5
10505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && {
10507 test -z "$ac_c_werror_flag" ||
10508 test ! -s conftest.err
10509 } && test -s conftest$ac_exeext && {
10510 test "$cross_compiling" = yes ||
10511 $as_test_x conftest$ac_exeext
10512 }; then
10513 eval "$as_ac_var=yes"
10514 else
10515 $as_echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 eval "$as_ac_var=no"
10521 rm -rf conftest.dSYM
10522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10523 conftest$ac_exeext conftest.$ac_ext
10525 ac_res=`eval 'as_val=${'$as_ac_var'}
10526 $as_echo "$as_val"'`
10527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10528 $as_echo "$ac_res" >&6; }
10529 if test `eval 'as_val=${'$as_ac_var'}
10530 $as_echo "$as_val"'` = yes; then
10531 cat >>confdefs.h <<_ACEOF
10532 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10533 _ACEOF
10536 done
10538 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10539 $as_echo_n "checking for working mmap... " >&6; }
10540 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10541 $as_echo_n "(cached) " >&6
10542 else
10543 if test "$cross_compiling" = yes; then
10544 ac_cv_func_mmap_fixed_mapped=no
10545 else
10546 cat >conftest.$ac_ext <<_ACEOF
10547 /* confdefs.h. */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552 $ac_includes_default
10553 /* malloc might have been renamed as rpl_malloc. */
10554 #undef malloc
10556 /* Thanks to Mike Haertel and Jim Avera for this test.
10557 Here is a matrix of mmap possibilities:
10558 mmap private not fixed
10559 mmap private fixed at somewhere currently unmapped
10560 mmap private fixed at somewhere already mapped
10561 mmap shared not fixed
10562 mmap shared fixed at somewhere currently unmapped
10563 mmap shared fixed at somewhere already mapped
10564 For private mappings, we should verify that changes cannot be read()
10565 back from the file, nor mmap's back from the file at a different
10566 address. (There have been systems where private was not correctly
10567 implemented like the infamous i386 svr4.0, and systems where the
10568 VM page cache was not coherent with the file system buffer cache
10569 like early versions of FreeBSD and possibly contemporary NetBSD.)
10570 For shared mappings, we should conversely verify that changes get
10571 propagated back to all the places they're supposed to be.
10573 Grep wants private fixed already mapped.
10574 The main things grep needs to know about mmap are:
10575 * does it exist and is it safe to write into the mmap'd area
10576 * how to use it (BSD variants) */
10578 #include <fcntl.h>
10579 #include <sys/mman.h>
10581 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10582 char *malloc ();
10583 #endif
10585 /* This mess was copied from the GNU getpagesize.h. */
10586 #ifndef HAVE_GETPAGESIZE
10587 /* Assume that all systems that can run configure have sys/param.h. */
10588 # ifndef HAVE_SYS_PARAM_H
10589 # define HAVE_SYS_PARAM_H 1
10590 # endif
10592 # ifdef _SC_PAGESIZE
10593 # define getpagesize() sysconf(_SC_PAGESIZE)
10594 # else /* no _SC_PAGESIZE */
10595 # ifdef HAVE_SYS_PARAM_H
10596 # include <sys/param.h>
10597 # ifdef EXEC_PAGESIZE
10598 # define getpagesize() EXEC_PAGESIZE
10599 # else /* no EXEC_PAGESIZE */
10600 # ifdef NBPG
10601 # define getpagesize() NBPG * CLSIZE
10602 # ifndef CLSIZE
10603 # define CLSIZE 1
10604 # endif /* no CLSIZE */
10605 # else /* no NBPG */
10606 # ifdef NBPC
10607 # define getpagesize() NBPC
10608 # else /* no NBPC */
10609 # ifdef PAGESIZE
10610 # define getpagesize() PAGESIZE
10611 # endif /* PAGESIZE */
10612 # endif /* no NBPC */
10613 # endif /* no NBPG */
10614 # endif /* no EXEC_PAGESIZE */
10615 # else /* no HAVE_SYS_PARAM_H */
10616 # define getpagesize() 8192 /* punt totally */
10617 # endif /* no HAVE_SYS_PARAM_H */
10618 # endif /* no _SC_PAGESIZE */
10620 #endif /* no HAVE_GETPAGESIZE */
10623 main ()
10625 char *data, *data2, *data3;
10626 int i, pagesize;
10627 int fd;
10629 pagesize = getpagesize ();
10631 /* First, make a file with some known garbage in it. */
10632 data = (char *) malloc (pagesize);
10633 if (!data)
10634 return 1;
10635 for (i = 0; i < pagesize; ++i)
10636 *(data + i) = rand ();
10637 umask (0);
10638 fd = creat ("conftest.mmap", 0600);
10639 if (fd < 0)
10640 return 1;
10641 if (write (fd, data, pagesize) != pagesize)
10642 return 1;
10643 close (fd);
10645 /* Next, try to mmap the file at a fixed address which already has
10646 something else allocated at it. If we can, also make sure that
10647 we see the same garbage. */
10648 fd = open ("conftest.mmap", O_RDWR);
10649 if (fd < 0)
10650 return 1;
10651 data2 = (char *) malloc (2 * pagesize);
10652 if (!data2)
10653 return 1;
10654 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10655 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10656 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10657 return 1;
10658 for (i = 0; i < pagesize; ++i)
10659 if (*(data + i) != *(data2 + i))
10660 return 1;
10662 /* Finally, make sure that changes to the mapped area do not
10663 percolate back to the file as seen by read(). (This is a bug on
10664 some variants of i386 svr4.0.) */
10665 for (i = 0; i < pagesize; ++i)
10666 *(data2 + i) = *(data2 + i) + 1;
10667 data3 = (char *) malloc (pagesize);
10668 if (!data3)
10669 return 1;
10670 if (read (fd, data3, pagesize) != pagesize)
10671 return 1;
10672 for (i = 0; i < pagesize; ++i)
10673 if (*(data + i) != *(data3 + i))
10674 return 1;
10675 close (fd);
10676 return 0;
10678 _ACEOF
10679 rm -f conftest$ac_exeext
10680 if { (ac_try="$ac_link"
10681 case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10684 esac
10685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10686 $as_echo "$ac_try_echo") >&5
10687 (eval "$ac_link") 2>&5
10688 ac_status=$?
10689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10691 { (case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694 esac
10695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10696 $as_echo "$ac_try_echo") >&5
10697 (eval "$ac_try") 2>&5
10698 ac_status=$?
10699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 ac_cv_func_mmap_fixed_mapped=yes
10702 else
10703 $as_echo "$as_me: program exited with status $ac_status" >&5
10704 $as_echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10707 ( exit $ac_status )
10708 ac_cv_func_mmap_fixed_mapped=no
10710 rm -rf conftest.dSYM
10711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10716 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10717 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10718 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10720 cat >>confdefs.h <<\_ACEOF
10721 #define HAVE_MMAP 1
10722 _ACEOF
10725 rm -f conftest.mmap
10727 if test $use_mmap_for_buffers = yes; then
10728 REL_ALLOC=no
10731 LIBS="$libsrc_libs $LIBS"
10734 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10735 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10736 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10737 $as_echo_n "(cached) " >&6
10738 else
10739 ac_check_lib_save_LIBS=$LIBS
10740 LIBS="-ldnet $LIBS"
10741 cat >conftest.$ac_ext <<_ACEOF
10742 /* confdefs.h. */
10743 _ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10748 /* Override any GCC internal prototype to avoid an error.
10749 Use char because int might match the return type of a GCC
10750 builtin and then its argument prototype would still apply. */
10751 #ifdef __cplusplus
10752 extern "C"
10753 #endif
10754 char dnet_ntoa ();
10756 main ()
10758 return dnet_ntoa ();
10760 return 0;
10762 _ACEOF
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (ac_try="$ac_link"
10765 case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768 esac
10769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10770 $as_echo "$ac_try_echo") >&5
10771 (eval "$ac_link") 2>conftest.er1
10772 ac_status=$?
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
10776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } && {
10778 test -z "$ac_c_werror_flag" ||
10779 test ! -s conftest.err
10780 } && test -s conftest$ac_exeext && {
10781 test "$cross_compiling" = yes ||
10782 $as_test_x conftest$ac_exeext
10783 }; then
10784 ac_cv_lib_dnet_dnet_ntoa=yes
10785 else
10786 $as_echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_cv_lib_dnet_dnet_ntoa=no
10792 rm -rf conftest.dSYM
10793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10794 conftest$ac_exeext conftest.$ac_ext
10795 LIBS=$ac_check_lib_save_LIBS
10797 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10798 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10799 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10800 cat >>confdefs.h <<_ACEOF
10801 #define HAVE_LIBDNET 1
10802 _ACEOF
10804 LIBS="-ldnet $LIBS"
10809 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10810 $as_echo_n "checking for main in -lXbsd... " >&6; }
10811 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10812 $as_echo_n "(cached) " >&6
10813 else
10814 ac_check_lib_save_LIBS=$LIBS
10815 LIBS="-lXbsd $LIBS"
10816 cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h. */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10825 main ()
10827 return main ();
10829 return 0;
10831 _ACEOF
10832 rm -f conftest.$ac_objext conftest$ac_exeext
10833 if { (ac_try="$ac_link"
10834 case "(($ac_try" in
10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10837 esac
10838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10839 $as_echo "$ac_try_echo") >&5
10840 (eval "$ac_link") 2>conftest.er1
10841 ac_status=$?
10842 grep -v '^ *+' conftest.er1 >conftest.err
10843 rm -f conftest.er1
10844 cat conftest.err >&5
10845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } && {
10847 test -z "$ac_c_werror_flag" ||
10848 test ! -s conftest.err
10849 } && test -s conftest$ac_exeext && {
10850 test "$cross_compiling" = yes ||
10851 $as_test_x conftest$ac_exeext
10852 }; then
10853 ac_cv_lib_Xbsd_main=yes
10854 else
10855 $as_echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10858 ac_cv_lib_Xbsd_main=no
10861 rm -rf conftest.dSYM
10862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10863 conftest$ac_exeext conftest.$ac_ext
10864 LIBS=$ac_check_lib_save_LIBS
10866 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10867 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10868 if test $ac_cv_lib_Xbsd_main = yes; then
10869 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10874 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10875 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10876 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10877 $as_echo_n "(cached) " >&6
10878 else
10879 ac_check_lib_save_LIBS=$LIBS
10880 LIBS="-lpthreads $LIBS"
10881 cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h. */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10891 #ifdef __cplusplus
10892 extern "C"
10893 #endif
10894 char cma_open ();
10896 main ()
10898 return cma_open ();
10900 return 0;
10902 _ACEOF
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (ac_try="$ac_link"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908 esac
10909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10910 $as_echo "$ac_try_echo") >&5
10911 (eval "$ac_link") 2>conftest.er1
10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } && {
10918 test -z "$ac_c_werror_flag" ||
10919 test ! -s conftest.err
10920 } && test -s conftest$ac_exeext && {
10921 test "$cross_compiling" = yes ||
10922 $as_test_x conftest$ac_exeext
10923 }; then
10924 ac_cv_lib_pthreads_cma_open=yes
10925 else
10926 $as_echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 ac_cv_lib_pthreads_cma_open=no
10932 rm -rf conftest.dSYM
10933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10934 conftest$ac_exeext conftest.$ac_ext
10935 LIBS=$ac_check_lib_save_LIBS
10937 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10938 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10939 if test $ac_cv_lib_pthreads_cma_open = yes; then
10940 cat >>confdefs.h <<_ACEOF
10941 #define HAVE_LIBPTHREADS 1
10942 _ACEOF
10944 LIBS="-lpthreads $LIBS"
10950 case ${host_os} in
10951 aix*)
10952 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10953 $as_echo_n "checking for -bbigtoc option... " >&6; }
10954 if test "${gdb_cv_bigtoc+set}" = set; then
10955 $as_echo_n "(cached) " >&6
10956 else
10958 case $GCC in
10959 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10960 *) gdb_cv_bigtoc=-bbigtoc ;;
10961 esac
10963 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10964 cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h. */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10972 main ()
10974 int i;
10976 return 0;
10978 _ACEOF
10979 rm -f conftest.$ac_objext conftest$ac_exeext
10980 if { (ac_try="$ac_link"
10981 case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10984 esac
10985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10986 $as_echo "$ac_try_echo") >&5
10987 (eval "$ac_link") 2>conftest.er1
10988 ac_status=$?
10989 grep -v '^ *+' conftest.er1 >conftest.err
10990 rm -f conftest.er1
10991 cat conftest.err >&5
10992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } && {
10994 test -z "$ac_c_werror_flag" ||
10995 test ! -s conftest.err
10996 } && test -s conftest$ac_exeext && {
10997 test "$cross_compiling" = yes ||
10998 $as_test_x conftest$ac_exeext
10999 }; then
11001 else
11002 $as_echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11005 gdb_cv_bigtoc=
11008 rm -rf conftest.dSYM
11009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11010 conftest$ac_exeext conftest.$ac_ext
11013 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11014 $as_echo "$gdb_cv_bigtoc" >&6; }
11016 esac
11018 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11019 # used for the tests that follow. We set them back to REAL_CFLAGS and
11020 # REAL_CPPFLAGS later on.
11022 REAL_CPPFLAGS="$CPPFLAGS"
11024 if test "${HAVE_X11}" = "yes"; then
11025 DEFS="$C_SWITCH_X_SITE $DEFS"
11026 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11027 LIBS="$LIBX $LIBS"
11028 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11029 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11031 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11032 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11033 # but it's more convenient here to set LD_RUN_PATH
11034 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11035 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11036 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11037 export LD_RUN_PATH
11040 if test "${opsys}" = "gnu-linux"; then
11041 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11042 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11043 cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h. */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11051 main ()
11053 XOpenDisplay ("foo");
11055 return 0;
11057 _ACEOF
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11063 esac
11064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11065 $as_echo "$ac_try_echo") >&5
11066 (eval "$ac_link") 2>conftest.er1
11067 ac_status=$?
11068 grep -v '^ *+' conftest.er1 >conftest.err
11069 rm -f conftest.er1
11070 cat conftest.err >&5
11071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } && {
11073 test -z "$ac_c_werror_flag" ||
11074 test ! -s conftest.err
11075 } && test -s conftest$ac_exeext && {
11076 test "$cross_compiling" = yes ||
11077 $as_test_x conftest$ac_exeext
11078 }; then
11079 xlinux_first_failure=no
11080 else
11081 $as_echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11084 xlinux_first_failure=yes
11087 rm -rf conftest.dSYM
11088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11089 conftest$ac_exeext conftest.$ac_ext
11090 if test "${xlinux_first_failure}" = "yes"; then
11091 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11092 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11093 OLD_CPPFLAGS="$CPPFLAGS"
11094 OLD_LIBS="$LIBS"
11095 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11096 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11097 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11098 LIBS="$LIBS -b i486-linuxaout"
11099 cat >conftest.$ac_ext <<_ACEOF
11100 /* confdefs.h. */
11101 _ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11107 main ()
11109 XOpenDisplay ("foo");
11111 return 0;
11113 _ACEOF
11114 rm -f conftest.$ac_objext conftest$ac_exeext
11115 if { (ac_try="$ac_link"
11116 case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11119 esac
11120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11121 $as_echo "$ac_try_echo") >&5
11122 (eval "$ac_link") 2>conftest.er1
11123 ac_status=$?
11124 grep -v '^ *+' conftest.er1 >conftest.err
11125 rm -f conftest.er1
11126 cat conftest.err >&5
11127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } && {
11129 test -z "$ac_c_werror_flag" ||
11130 test ! -s conftest.err
11131 } && test -s conftest$ac_exeext && {
11132 test "$cross_compiling" = yes ||
11133 $as_test_x conftest$ac_exeext
11134 }; then
11135 xlinux_second_failure=no
11136 else
11137 $as_echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11140 xlinux_second_failure=yes
11143 rm -rf conftest.dSYM
11144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11145 conftest$ac_exeext conftest.$ac_ext
11146 if test "${xlinux_second_failure}" = "yes"; then
11147 # If we get the same failure with -b, there is no use adding -b.
11148 # So take it out. This plays safe.
11149 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11150 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11151 CPPFLAGS="$OLD_CPPFLAGS"
11152 LIBS="$OLD_LIBS"
11153 { $as_echo "$as_me:$LINENO: result: no" >&5
11154 $as_echo "no" >&6; }
11155 else
11156 { $as_echo "$as_me:$LINENO: result: yes" >&5
11157 $as_echo "yes" >&6; }
11159 else
11160 { $as_echo "$as_me:$LINENO: result: no" >&5
11161 $as_echo "no" >&6; }
11165 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11166 # header files included from there.
11167 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11168 $as_echo_n "checking for Xkb... " >&6; }
11169 cat >conftest.$ac_ext <<_ACEOF
11170 /* confdefs.h. */
11171 _ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 #include <X11/Xlib.h>
11176 #include <X11/XKBlib.h>
11178 main ()
11180 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11182 return 0;
11184 _ACEOF
11185 rm -f conftest.$ac_objext conftest$ac_exeext
11186 if { (ac_try="$ac_link"
11187 case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11190 esac
11191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11192 $as_echo "$ac_try_echo") >&5
11193 (eval "$ac_link") 2>conftest.er1
11194 ac_status=$?
11195 grep -v '^ *+' conftest.er1 >conftest.err
11196 rm -f conftest.er1
11197 cat conftest.err >&5
11198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } && {
11200 test -z "$ac_c_werror_flag" ||
11201 test ! -s conftest.err
11202 } && test -s conftest$ac_exeext && {
11203 test "$cross_compiling" = yes ||
11204 $as_test_x conftest$ac_exeext
11205 }; then
11206 emacs_xkb=yes
11207 else
11208 $as_echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 emacs_xkb=no
11214 rm -rf conftest.dSYM
11215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11216 conftest$ac_exeext conftest.$ac_ext
11217 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11218 $as_echo "$emacs_xkb" >&6; }
11219 if test $emacs_xkb = yes; then
11221 cat >>confdefs.h <<\_ACEOF
11222 #define HAVE_XKBGETKEYBOARD 1
11223 _ACEOF
11231 for ac_func in XrmSetDatabase XScreenResourceString \
11232 XScreenNumberOfScreen XSetWMProtocols
11234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11235 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11236 $as_echo_n "checking for $ac_func... " >&6; }
11237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11238 $as_echo_n "(cached) " >&6
11239 else
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h. */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11248 #define $ac_func innocuous_$ac_func
11250 /* System header to define __stub macros and hopefully few prototypes,
11251 which can conflict with char $ac_func (); below.
11252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11253 <limits.h> exists even on freestanding compilers. */
11255 #ifdef __STDC__
11256 # include <limits.h>
11257 #else
11258 # include <assert.h>
11259 #endif
11261 #undef $ac_func
11263 /* Override any GCC internal prototype to avoid an error.
11264 Use char because int might match the return type of a GCC
11265 builtin and then its argument prototype would still apply. */
11266 #ifdef __cplusplus
11267 extern "C"
11268 #endif
11269 char $ac_func ();
11270 /* The GNU C library defines this for functions which it implements
11271 to always fail with ENOSYS. Some functions are actually named
11272 something starting with __ and the normal name is an alias. */
11273 #if defined __stub_$ac_func || defined __stub___$ac_func
11274 choke me
11275 #endif
11278 main ()
11280 return $ac_func ();
11282 return 0;
11284 _ACEOF
11285 rm -f conftest.$ac_objext conftest$ac_exeext
11286 if { (ac_try="$ac_link"
11287 case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290 esac
11291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11292 $as_echo "$ac_try_echo") >&5
11293 (eval "$ac_link") 2>conftest.er1
11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } && {
11300 test -z "$ac_c_werror_flag" ||
11301 test ! -s conftest.err
11302 } && test -s conftest$ac_exeext && {
11303 test "$cross_compiling" = yes ||
11304 $as_test_x conftest$ac_exeext
11305 }; then
11306 eval "$as_ac_var=yes"
11307 else
11308 $as_echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11311 eval "$as_ac_var=no"
11314 rm -rf conftest.dSYM
11315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11316 conftest$ac_exeext conftest.$ac_ext
11318 ac_res=`eval 'as_val=${'$as_ac_var'}
11319 $as_echo "$as_val"'`
11320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11321 $as_echo "$ac_res" >&6; }
11322 if test `eval 'as_val=${'$as_ac_var'}
11323 $as_echo "$as_val"'` = yes; then
11324 cat >>confdefs.h <<_ACEOF
11325 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11326 _ACEOF
11329 done
11333 if test "${window_system}" = "x11"; then
11334 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11335 $as_echo_n "checking X11 version 6... " >&6; }
11336 if test "${emacs_cv_x11_version_6+set}" = set; then
11337 $as_echo_n "(cached) " >&6
11338 else
11339 cat >conftest.$ac_ext <<_ACEOF
11340 /* confdefs.h. */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345 #include <X11/Xlib.h>
11347 main ()
11349 #if XlibSpecificationRelease < 6
11350 fail;
11351 #endif
11354 return 0;
11356 _ACEOF
11357 rm -f conftest.$ac_objext conftest$ac_exeext
11358 if { (ac_try="$ac_link"
11359 case "(($ac_try" in
11360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11361 *) ac_try_echo=$ac_try;;
11362 esac
11363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11364 $as_echo "$ac_try_echo") >&5
11365 (eval "$ac_link") 2>conftest.er1
11366 ac_status=$?
11367 grep -v '^ *+' conftest.er1 >conftest.err
11368 rm -f conftest.er1
11369 cat conftest.err >&5
11370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } && {
11372 test -z "$ac_c_werror_flag" ||
11373 test ! -s conftest.err
11374 } && test -s conftest$ac_exeext && {
11375 test "$cross_compiling" = yes ||
11376 $as_test_x conftest$ac_exeext
11377 }; then
11378 emacs_cv_x11_version_6=yes
11379 else
11380 $as_echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11383 emacs_cv_x11_version_6=no
11386 rm -rf conftest.dSYM
11387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11388 conftest$ac_exeext conftest.$ac_ext
11391 if test $emacs_cv_x11_version_6 = yes; then
11392 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11393 $as_echo "6 or newer" >&6; }
11395 cat >>confdefs.h <<\_ACEOF
11396 #define HAVE_X11R6 1
11397 _ACEOF
11399 else
11400 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11401 $as_echo "before 6" >&6; }
11406 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11407 HAVE_RSVG=no
11408 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11409 if test "${with_rsvg}" != "no"; then
11410 RSVG_REQUIRED=2.11.0
11411 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11414 succeeded=no
11416 # Extract the first word of "pkg-config", so it can be a program name with args.
11417 set dummy pkg-config; ac_word=$2
11418 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11419 $as_echo_n "checking for $ac_word... " >&6; }
11420 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11421 $as_echo_n "(cached) " >&6
11422 else
11423 case $PKG_CONFIG in
11424 [\\/]* | ?:[\\/]*)
11425 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11429 for as_dir in $PATH
11431 IFS=$as_save_IFS
11432 test -z "$as_dir" && as_dir=.
11433 for ac_exec_ext in '' $ac_executable_extensions; do
11434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11435 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11437 break 2
11439 done
11440 done
11441 IFS=$as_save_IFS
11443 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11445 esac
11447 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11448 if test -n "$PKG_CONFIG"; then
11449 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11450 $as_echo "$PKG_CONFIG" >&6; }
11451 else
11452 { $as_echo "$as_me:$LINENO: result: no" >&5
11453 $as_echo "no" >&6; }
11458 if test "$PKG_CONFIG" = "no" ; then
11460 else
11461 PKG_CONFIG_MIN_VERSION=0.9.0
11462 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11463 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11464 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11466 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11467 { $as_echo "$as_me:$LINENO: result: yes" >&5
11468 $as_echo "yes" >&6; }
11469 succeeded=yes
11471 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11472 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11473 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11474 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11475 $as_echo "$RSVG_CFLAGS" >&6; }
11477 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11478 $as_echo_n "checking RSVG_LIBS... " >&6; }
11479 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11480 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11481 $as_echo "$RSVG_LIBS" >&6; }
11482 else
11483 { $as_echo "$as_me:$LINENO: result: no" >&5
11484 $as_echo "no" >&6; }
11485 RSVG_CFLAGS=""
11486 RSVG_LIBS=""
11487 ## If we have a custom action on failure, don't print errors, but
11488 ## do set a variable so people can do so.
11489 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11495 else
11496 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11497 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11501 if test $succeeded = yes; then
11503 else
11510 if test ".${RSVG_CFLAGS}" != "."; then
11511 HAVE_RSVG=yes
11513 cat >>confdefs.h <<\_ACEOF
11514 #define HAVE_RSVG 1
11515 _ACEOF
11517 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11518 LIBS="$RSVG_LIBS $LIBS"
11524 HAVE_GTK=no
11525 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11526 GLIB_REQUIRED=2.6
11527 GTK_REQUIRED=2.6
11528 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11531 succeeded=no
11533 # Extract the first word of "pkg-config", so it can be a program name with args.
11534 set dummy pkg-config; ac_word=$2
11535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11536 $as_echo_n "checking for $ac_word... " >&6; }
11537 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11538 $as_echo_n "(cached) " >&6
11539 else
11540 case $PKG_CONFIG in
11541 [\\/]* | ?:[\\/]*)
11542 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11548 IFS=$as_save_IFS
11549 test -z "$as_dir" && as_dir=.
11550 for ac_exec_ext in '' $ac_executable_extensions; do
11551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11552 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11554 break 2
11556 done
11557 done
11558 IFS=$as_save_IFS
11560 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11562 esac
11564 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11565 if test -n "$PKG_CONFIG"; then
11566 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11567 $as_echo "$PKG_CONFIG" >&6; }
11568 else
11569 { $as_echo "$as_me:$LINENO: result: no" >&5
11570 $as_echo "no" >&6; }
11575 if test "$PKG_CONFIG" = "no" ; then
11576 pkg_check_gtk=no
11577 else
11578 PKG_CONFIG_MIN_VERSION=0.9.0
11579 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11580 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11581 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11583 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11584 { $as_echo "$as_me:$LINENO: result: yes" >&5
11585 $as_echo "yes" >&6; }
11586 succeeded=yes
11588 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11589 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11590 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11591 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11592 $as_echo "$GTK_CFLAGS" >&6; }
11594 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11595 $as_echo_n "checking GTK_LIBS... " >&6; }
11596 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11597 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11598 $as_echo "$GTK_LIBS" >&6; }
11599 else
11600 { $as_echo "$as_me:$LINENO: result: no" >&5
11601 $as_echo "no" >&6; }
11602 GTK_CFLAGS=""
11603 GTK_LIBS=""
11604 ## If we have a custom action on failure, don't print errors, but
11605 ## do set a variable so people can do so.
11606 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11612 else
11613 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11614 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11618 if test $succeeded = yes; then
11619 pkg_check_gtk=yes
11620 else
11621 pkg_check_gtk=no
11624 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11625 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11626 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11627 { (exit 1); exit 1; }; }
11632 GTK_OBJ=
11633 if test x"$pkg_check_gtk" = xyes; then
11637 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11638 CFLAGS="$CFLAGS $GTK_CFLAGS"
11639 LIBS="$GTK_LIBS $LIBS"
11640 GTK_COMPILES=no
11642 for ac_func in gtk_main
11644 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11645 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11646 $as_echo_n "checking for $ac_func... " >&6; }
11647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11648 $as_echo_n "(cached) " >&6
11649 else
11650 cat >conftest.$ac_ext <<_ACEOF
11651 /* confdefs.h. */
11652 _ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11658 #define $ac_func innocuous_$ac_func
11660 /* System header to define __stub macros and hopefully few prototypes,
11661 which can conflict with char $ac_func (); below.
11662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663 <limits.h> exists even on freestanding compilers. */
11665 #ifdef __STDC__
11666 # include <limits.h>
11667 #else
11668 # include <assert.h>
11669 #endif
11671 #undef $ac_func
11673 /* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11676 #ifdef __cplusplus
11677 extern "C"
11678 #endif
11679 char $ac_func ();
11680 /* The GNU C library defines this for functions which it implements
11681 to always fail with ENOSYS. Some functions are actually named
11682 something starting with __ and the normal name is an alias. */
11683 #if defined __stub_$ac_func || defined __stub___$ac_func
11684 choke me
11685 #endif
11688 main ()
11690 return $ac_func ();
11692 return 0;
11694 _ACEOF
11695 rm -f conftest.$ac_objext conftest$ac_exeext
11696 if { (ac_try="$ac_link"
11697 case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11700 esac
11701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11702 $as_echo "$ac_try_echo") >&5
11703 (eval "$ac_link") 2>conftest.er1
11704 ac_status=$?
11705 grep -v '^ *+' conftest.er1 >conftest.err
11706 rm -f conftest.er1
11707 cat conftest.err >&5
11708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } && {
11710 test -z "$ac_c_werror_flag" ||
11711 test ! -s conftest.err
11712 } && test -s conftest$ac_exeext && {
11713 test "$cross_compiling" = yes ||
11714 $as_test_x conftest$ac_exeext
11715 }; then
11716 eval "$as_ac_var=yes"
11717 else
11718 $as_echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11721 eval "$as_ac_var=no"
11724 rm -rf conftest.dSYM
11725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11726 conftest$ac_exeext conftest.$ac_ext
11728 ac_res=`eval 'as_val=${'$as_ac_var'}
11729 $as_echo "$as_val"'`
11730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11731 $as_echo "$ac_res" >&6; }
11732 if test `eval 'as_val=${'$as_ac_var'}
11733 $as_echo "$as_val"'` = yes; then
11734 cat >>confdefs.h <<_ACEOF
11735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11736 _ACEOF
11737 GTK_COMPILES=yes
11739 done
11741 if test "${GTK_COMPILES}" != "yes"; then
11742 if test "$USE_X_TOOLKIT" != "maybe"; then
11743 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11744 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11745 { (exit 1); exit 1; }; };
11747 else
11748 HAVE_GTK=yes
11750 cat >>confdefs.h <<\_ACEOF
11751 #define USE_GTK 1
11752 _ACEOF
11754 GTK_OBJ=gtkutil.o
11755 USE_X_TOOLKIT=none
11756 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11758 else
11759 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11760 closing open displays. This is no problem if you just use
11761 one display, but if you use more than one and close one of them
11762 Emacs may crash." >&5
11763 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11764 closing open displays. This is no problem if you just use
11765 one display, but if you use more than one and close one of them
11766 Emacs may crash." >&2;}
11767 sleep 3
11775 if test "${HAVE_GTK}" = "yes"; then
11777 if test "$with_toolkit_scroll_bars" != no; then
11778 with_toolkit_scroll_bars=yes
11781 HAVE_GTK_MULTIDISPLAY=no
11783 for ac_func in gdk_display_open
11785 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11786 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11787 $as_echo_n "checking for $ac_func... " >&6; }
11788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11789 $as_echo_n "(cached) " >&6
11790 else
11791 cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h. */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11799 #define $ac_func innocuous_$ac_func
11801 /* System header to define __stub macros and hopefully few prototypes,
11802 which can conflict with char $ac_func (); below.
11803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804 <limits.h> exists even on freestanding compilers. */
11806 #ifdef __STDC__
11807 # include <limits.h>
11808 #else
11809 # include <assert.h>
11810 #endif
11812 #undef $ac_func
11814 /* Override any GCC internal prototype to avoid an error.
11815 Use char because int might match the return type of a GCC
11816 builtin and then its argument prototype would still apply. */
11817 #ifdef __cplusplus
11818 extern "C"
11819 #endif
11820 char $ac_func ();
11821 /* The GNU C library defines this for functions which it implements
11822 to always fail with ENOSYS. Some functions are actually named
11823 something starting with __ and the normal name is an alias. */
11824 #if defined __stub_$ac_func || defined __stub___$ac_func
11825 choke me
11826 #endif
11829 main ()
11831 return $ac_func ();
11833 return 0;
11835 _ACEOF
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (ac_try="$ac_link"
11838 case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841 esac
11842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11843 $as_echo "$ac_try_echo") >&5
11844 (eval "$ac_link") 2>conftest.er1
11845 ac_status=$?
11846 grep -v '^ *+' conftest.er1 >conftest.err
11847 rm -f conftest.er1
11848 cat conftest.err >&5
11849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } && {
11851 test -z "$ac_c_werror_flag" ||
11852 test ! -s conftest.err
11853 } && test -s conftest$ac_exeext && {
11854 test "$cross_compiling" = yes ||
11855 $as_test_x conftest$ac_exeext
11856 }; then
11857 eval "$as_ac_var=yes"
11858 else
11859 $as_echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11862 eval "$as_ac_var=no"
11865 rm -rf conftest.dSYM
11866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11867 conftest$ac_exeext conftest.$ac_ext
11869 ac_res=`eval 'as_val=${'$as_ac_var'}
11870 $as_echo "$as_val"'`
11871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11872 $as_echo "$ac_res" >&6; }
11873 if test `eval 'as_val=${'$as_ac_var'}
11874 $as_echo "$as_val"'` = yes; then
11875 cat >>confdefs.h <<_ACEOF
11876 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11877 _ACEOF
11878 HAVE_GTK_MULTIDISPLAY=yes
11880 done
11882 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11884 cat >>confdefs.h <<\_ACEOF
11885 #define HAVE_GTK_MULTIDISPLAY 1
11886 _ACEOF
11890 HAVE_GTK_FILE_SELECTION=no
11891 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11892 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11893 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11894 $as_echo_n "(cached) " >&6
11895 else
11896 cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h. */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 $ac_includes_default
11903 #include <gtk/gtk.h>
11906 main ()
11908 #ifndef GTK_TYPE_FILE_SELECTION
11909 (void) GTK_TYPE_FILE_SELECTION;
11910 #endif
11913 return 0;
11915 _ACEOF
11916 rm -f conftest.$ac_objext
11917 if { (ac_try="$ac_compile"
11918 case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921 esac
11922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923 $as_echo "$ac_try_echo") >&5
11924 (eval "$ac_compile") 2>conftest.er1
11925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
11929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest.$ac_objext; then
11934 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11935 else
11936 $as_echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11945 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11946 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11947 HAVE_GTK_FILE_SELECTION=yes
11948 else
11949 HAVE_GTK_FILE_SELECTION=no
11952 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11954 for ac_func in gtk_file_selection_new
11956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11957 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11958 $as_echo_n "checking for $ac_func... " >&6; }
11959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11960 $as_echo_n "(cached) " >&6
11961 else
11962 cat >conftest.$ac_ext <<_ACEOF
11963 /* confdefs.h. */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11970 #define $ac_func innocuous_$ac_func
11972 /* System header to define __stub macros and hopefully few prototypes,
11973 which can conflict with char $ac_func (); below.
11974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975 <limits.h> exists even on freestanding compilers. */
11977 #ifdef __STDC__
11978 # include <limits.h>
11979 #else
11980 # include <assert.h>
11981 #endif
11983 #undef $ac_func
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char $ac_func ();
11992 /* The GNU C library defines this for functions which it implements
11993 to always fail with ENOSYS. Some functions are actually named
11994 something starting with __ and the normal name is an alias. */
11995 #if defined __stub_$ac_func || defined __stub___$ac_func
11996 choke me
11997 #endif
12000 main ()
12002 return $ac_func ();
12004 return 0;
12006 _ACEOF
12007 rm -f conftest.$ac_objext conftest$ac_exeext
12008 if { (ac_try="$ac_link"
12009 case "(($ac_try" in
12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12012 esac
12013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12014 $as_echo "$ac_try_echo") >&5
12015 (eval "$ac_link") 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } && {
12022 test -z "$ac_c_werror_flag" ||
12023 test ! -s conftest.err
12024 } && test -s conftest$ac_exeext && {
12025 test "$cross_compiling" = yes ||
12026 $as_test_x conftest$ac_exeext
12027 }; then
12028 eval "$as_ac_var=yes"
12029 else
12030 $as_echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12033 eval "$as_ac_var=no"
12036 rm -rf conftest.dSYM
12037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12038 conftest$ac_exeext conftest.$ac_ext
12040 ac_res=`eval 'as_val=${'$as_ac_var'}
12041 $as_echo "$as_val"'`
12042 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12043 $as_echo "$ac_res" >&6; }
12044 if test `eval 'as_val=${'$as_ac_var'}
12045 $as_echo "$as_val"'` = yes; then
12046 cat >>confdefs.h <<_ACEOF
12047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12048 _ACEOF
12049 HAVE_GTK_FILE_SELECTION=yes
12050 else
12051 HAVE_GTK_FILE_SELECTION=no
12053 done
12057 HAVE_GTK_FILE_CHOOSER=no
12058 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12059 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12060 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12061 $as_echo_n "(cached) " >&6
12062 else
12063 cat >conftest.$ac_ext <<_ACEOF
12064 /* confdefs.h. */
12065 _ACEOF
12066 cat confdefs.h >>conftest.$ac_ext
12067 cat >>conftest.$ac_ext <<_ACEOF
12068 /* end confdefs.h. */
12069 $ac_includes_default
12070 #include <gtk/gtk.h>
12073 main ()
12075 #ifndef GTK_TYPE_FILE_CHOOSER
12076 (void) GTK_TYPE_FILE_CHOOSER;
12077 #endif
12080 return 0;
12082 _ACEOF
12083 rm -f conftest.$ac_objext
12084 if { (ac_try="$ac_compile"
12085 case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12088 esac
12089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12090 $as_echo "$ac_try_echo") >&5
12091 (eval "$ac_compile") 2>conftest.er1
12092 ac_status=$?
12093 grep -v '^ *+' conftest.er1 >conftest.err
12094 rm -f conftest.er1
12095 cat conftest.err >&5
12096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } && {
12098 test -z "$ac_c_werror_flag" ||
12099 test ! -s conftest.err
12100 } && test -s conftest.$ac_objext; then
12101 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12102 else
12103 $as_echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12106 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12111 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12112 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12113 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12114 HAVE_GTK_FILE_CHOOSER=yes
12115 else
12116 HAVE_GTK_FILE_CHOOSER=no
12119 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12121 for ac_func in gtk_file_chooser_dialog_new
12123 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12124 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12125 $as_echo_n "checking for $ac_func... " >&6; }
12126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12127 $as_echo_n "(cached) " >&6
12128 else
12129 cat >conftest.$ac_ext <<_ACEOF
12130 /* confdefs.h. */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12137 #define $ac_func innocuous_$ac_func
12139 /* System header to define __stub macros and hopefully few prototypes,
12140 which can conflict with char $ac_func (); below.
12141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12142 <limits.h> exists even on freestanding compilers. */
12144 #ifdef __STDC__
12145 # include <limits.h>
12146 #else
12147 # include <assert.h>
12148 #endif
12150 #undef $ac_func
12152 /* Override any GCC internal prototype to avoid an error.
12153 Use char because int might match the return type of a GCC
12154 builtin and then its argument prototype would still apply. */
12155 #ifdef __cplusplus
12156 extern "C"
12157 #endif
12158 char $ac_func ();
12159 /* The GNU C library defines this for functions which it implements
12160 to always fail with ENOSYS. Some functions are actually named
12161 something starting with __ and the normal name is an alias. */
12162 #if defined __stub_$ac_func || defined __stub___$ac_func
12163 choke me
12164 #endif
12167 main ()
12169 return $ac_func ();
12171 return 0;
12173 _ACEOF
12174 rm -f conftest.$ac_objext conftest$ac_exeext
12175 if { (ac_try="$ac_link"
12176 case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179 esac
12180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12181 $as_echo "$ac_try_echo") >&5
12182 (eval "$ac_link") 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } && {
12189 test -z "$ac_c_werror_flag" ||
12190 test ! -s conftest.err
12191 } && test -s conftest$ac_exeext && {
12192 test "$cross_compiling" = yes ||
12193 $as_test_x conftest$ac_exeext
12194 }; then
12195 eval "$as_ac_var=yes"
12196 else
12197 $as_echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12200 eval "$as_ac_var=no"
12203 rm -rf conftest.dSYM
12204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12205 conftest$ac_exeext conftest.$ac_ext
12207 ac_res=`eval 'as_val=${'$as_ac_var'}
12208 $as_echo "$as_val"'`
12209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12210 $as_echo "$ac_res" >&6; }
12211 if test `eval 'as_val=${'$as_ac_var'}
12212 $as_echo "$as_val"'` = yes; then
12213 cat >>confdefs.h <<_ACEOF
12214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12215 _ACEOF
12216 HAVE_GTK_FILE_CHOOSER=yes
12217 else
12218 HAVE_GTK_FILE_CHOOSER=no
12220 done
12224 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12225 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12227 cat >>confdefs.h <<\_ACEOF
12228 #define HAVE_GTK_FILE_BOTH 1
12229 _ACEOF
12233 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12234 HAVE_GTK_AND_PTHREAD=no
12236 for ac_header in pthread.h
12238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12240 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12241 $as_echo_n "checking for $ac_header... " >&6; }
12242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12243 $as_echo_n "(cached) " >&6
12245 ac_res=`eval 'as_val=${'$as_ac_Header'}
12246 $as_echo "$as_val"'`
12247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12248 $as_echo "$ac_res" >&6; }
12249 else
12250 # Is the header compilable?
12251 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12252 $as_echo_n "checking $ac_header usability... " >&6; }
12253 cat >conftest.$ac_ext <<_ACEOF
12254 /* confdefs.h. */
12255 _ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12259 $ac_includes_default
12260 #include <$ac_header>
12261 _ACEOF
12262 rm -f conftest.$ac_objext
12263 if { (ac_try="$ac_compile"
12264 case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12267 esac
12268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12269 $as_echo "$ac_try_echo") >&5
12270 (eval "$ac_compile") 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } && {
12277 test -z "$ac_c_werror_flag" ||
12278 test ! -s conftest.err
12279 } && test -s conftest.$ac_objext; then
12280 ac_header_compiler=yes
12281 else
12282 $as_echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12285 ac_header_compiler=no
12288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12289 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12290 $as_echo "$ac_header_compiler" >&6; }
12292 # Is the header present?
12293 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12294 $as_echo_n "checking $ac_header presence... " >&6; }
12295 cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h. */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12301 #include <$ac_header>
12302 _ACEOF
12303 if { (ac_try="$ac_cpp conftest.$ac_ext"
12304 case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12307 esac
12308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12309 $as_echo "$ac_try_echo") >&5
12310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12311 ac_status=$?
12312 grep -v '^ *+' conftest.er1 >conftest.err
12313 rm -f conftest.er1
12314 cat conftest.err >&5
12315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } >/dev/null && {
12317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12318 test ! -s conftest.err
12319 }; then
12320 ac_header_preproc=yes
12321 else
12322 $as_echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 ac_header_preproc=no
12328 rm -f conftest.err conftest.$ac_ext
12329 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12330 $as_echo "$ac_header_preproc" >&6; }
12332 # So? What about this header?
12333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12334 yes:no: )
12335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12336 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12338 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12339 ac_header_preproc=yes
12341 no:yes:* )
12342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12343 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12345 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12347 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12349 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12353 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12356 esac
12357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12358 $as_echo_n "checking for $ac_header... " >&6; }
12359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12360 $as_echo_n "(cached) " >&6
12361 else
12362 eval "$as_ac_Header=\$ac_header_preproc"
12364 ac_res=`eval 'as_val=${'$as_ac_Header'}
12365 $as_echo "$as_val"'`
12366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12367 $as_echo "$ac_res" >&6; }
12370 if test `eval 'as_val=${'$as_ac_Header'}
12371 $as_echo "$as_val"'` = yes; then
12372 cat >>confdefs.h <<_ACEOF
12373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12374 _ACEOF
12378 done
12380 if test "$ac_cv_header_pthread_h"; then
12381 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12382 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12383 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12384 $as_echo_n "(cached) " >&6
12385 else
12386 ac_check_lib_save_LIBS=$LIBS
12387 LIBS="-lpthread $LIBS"
12388 cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h. */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12395 /* Override any GCC internal prototype to avoid an error.
12396 Use char because int might match the return type of a GCC
12397 builtin and then its argument prototype would still apply. */
12398 #ifdef __cplusplus
12399 extern "C"
12400 #endif
12401 char pthread_self ();
12403 main ()
12405 return pthread_self ();
12407 return 0;
12409 _ACEOF
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (ac_try="$ac_link"
12412 case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12415 esac
12416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12417 $as_echo "$ac_try_echo") >&5
12418 (eval "$ac_link") 2>conftest.er1
12419 ac_status=$?
12420 grep -v '^ *+' conftest.er1 >conftest.err
12421 rm -f conftest.er1
12422 cat conftest.err >&5
12423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } && {
12425 test -z "$ac_c_werror_flag" ||
12426 test ! -s conftest.err
12427 } && test -s conftest$ac_exeext && {
12428 test "$cross_compiling" = yes ||
12429 $as_test_x conftest$ac_exeext
12430 }; then
12431 ac_cv_lib_pthread_pthread_self=yes
12432 else
12433 $as_echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12436 ac_cv_lib_pthread_pthread_self=no
12439 rm -rf conftest.dSYM
12440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12441 conftest$ac_exeext conftest.$ac_ext
12442 LIBS=$ac_check_lib_save_LIBS
12444 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12445 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12446 if test $ac_cv_lib_pthread_pthread_self = yes; then
12447 HAVE_GTK_AND_PTHREAD=yes
12451 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12452 case "${canonical}" in
12453 *-hpux*) ;;
12454 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12455 esac
12457 cat >>confdefs.h <<\_ACEOF
12458 #define HAVE_GTK_AND_PTHREAD 1
12459 _ACEOF
12465 HAVE_DBUS=no
12466 DBUS_OBJ=
12467 if test "${with_dbus}" = "yes"; then
12469 succeeded=no
12471 # Extract the first word of "pkg-config", so it can be a program name with args.
12472 set dummy pkg-config; ac_word=$2
12473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12474 $as_echo_n "checking for $ac_word... " >&6; }
12475 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12476 $as_echo_n "(cached) " >&6
12477 else
12478 case $PKG_CONFIG in
12479 [\\/]* | ?:[\\/]*)
12480 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12486 IFS=$as_save_IFS
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12490 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 break 2
12494 done
12495 done
12496 IFS=$as_save_IFS
12498 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12500 esac
12502 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12503 if test -n "$PKG_CONFIG"; then
12504 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12505 $as_echo "$PKG_CONFIG" >&6; }
12506 else
12507 { $as_echo "$as_me:$LINENO: result: no" >&5
12508 $as_echo "no" >&6; }
12513 if test "$PKG_CONFIG" = "no" ; then
12514 HAVE_DBUS=no
12515 else
12516 PKG_CONFIG_MIN_VERSION=0.9.0
12517 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12518 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12519 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12521 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12522 { $as_echo "$as_me:$LINENO: result: yes" >&5
12523 $as_echo "yes" >&6; }
12524 succeeded=yes
12526 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12527 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12528 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12529 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12530 $as_echo "$DBUS_CFLAGS" >&6; }
12532 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12533 $as_echo_n "checking DBUS_LIBS... " >&6; }
12534 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12535 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12536 $as_echo "$DBUS_LIBS" >&6; }
12537 else
12538 { $as_echo "$as_me:$LINENO: result: no" >&5
12539 $as_echo "no" >&6; }
12540 DBUS_CFLAGS=""
12541 DBUS_LIBS=""
12542 ## If we have a custom action on failure, don't print errors, but
12543 ## do set a variable so people can do so.
12544 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12550 else
12551 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12552 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12556 if test $succeeded = yes; then
12557 HAVE_DBUS=yes
12558 else
12559 HAVE_DBUS=no
12562 if test "$HAVE_DBUS" = yes; then
12563 LIBS="$LIBS $DBUS_LIBS"
12565 cat >>confdefs.h <<\_ACEOF
12566 #define HAVE_DBUS 1
12567 _ACEOF
12570 for ac_func in dbus_watch_get_unix_fd
12572 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12573 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12574 $as_echo_n "checking for $ac_func... " >&6; }
12575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12576 $as_echo_n "(cached) " >&6
12577 else
12578 cat >conftest.$ac_ext <<_ACEOF
12579 /* confdefs.h. */
12580 _ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12586 #define $ac_func innocuous_$ac_func
12588 /* System header to define __stub macros and hopefully few prototypes,
12589 which can conflict with char $ac_func (); below.
12590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12591 <limits.h> exists even on freestanding compilers. */
12593 #ifdef __STDC__
12594 # include <limits.h>
12595 #else
12596 # include <assert.h>
12597 #endif
12599 #undef $ac_func
12601 /* Override any GCC internal prototype to avoid an error.
12602 Use char because int might match the return type of a GCC
12603 builtin and then its argument prototype would still apply. */
12604 #ifdef __cplusplus
12605 extern "C"
12606 #endif
12607 char $ac_func ();
12608 /* The GNU C library defines this for functions which it implements
12609 to always fail with ENOSYS. Some functions are actually named
12610 something starting with __ and the normal name is an alias. */
12611 #if defined __stub_$ac_func || defined __stub___$ac_func
12612 choke me
12613 #endif
12616 main ()
12618 return $ac_func ();
12620 return 0;
12622 _ACEOF
12623 rm -f conftest.$ac_objext conftest$ac_exeext
12624 if { (ac_try="$ac_link"
12625 case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12628 esac
12629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12630 $as_echo "$ac_try_echo") >&5
12631 (eval "$ac_link") 2>conftest.er1
12632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } && {
12638 test -z "$ac_c_werror_flag" ||
12639 test ! -s conftest.err
12640 } && test -s conftest$ac_exeext && {
12641 test "$cross_compiling" = yes ||
12642 $as_test_x conftest$ac_exeext
12643 }; then
12644 eval "$as_ac_var=yes"
12645 else
12646 $as_echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 eval "$as_ac_var=no"
12652 rm -rf conftest.dSYM
12653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12654 conftest$ac_exeext conftest.$ac_ext
12656 ac_res=`eval 'as_val=${'$as_ac_var'}
12657 $as_echo "$as_val"'`
12658 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12659 $as_echo "$ac_res" >&6; }
12660 if test `eval 'as_val=${'$as_ac_var'}
12661 $as_echo "$as_val"'` = yes; then
12662 cat >>confdefs.h <<_ACEOF
12663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12664 _ACEOF
12667 done
12669 DBUS_OBJ=dbusbind.o
12674 HAVE_GCONF=no
12675 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12677 succeeded=no
12679 # Extract the first word of "pkg-config", so it can be a program name with args.
12680 set dummy pkg-config; ac_word=$2
12681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12682 $as_echo_n "checking for $ac_word... " >&6; }
12683 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12684 $as_echo_n "(cached) " >&6
12685 else
12686 case $PKG_CONFIG in
12687 [\\/]* | ?:[\\/]*)
12688 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12692 for as_dir in $PATH
12694 IFS=$as_save_IFS
12695 test -z "$as_dir" && as_dir=.
12696 for ac_exec_ext in '' $ac_executable_extensions; do
12697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12698 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12700 break 2
12702 done
12703 done
12704 IFS=$as_save_IFS
12706 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12708 esac
12710 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12711 if test -n "$PKG_CONFIG"; then
12712 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12713 $as_echo "$PKG_CONFIG" >&6; }
12714 else
12715 { $as_echo "$as_me:$LINENO: result: no" >&5
12716 $as_echo "no" >&6; }
12721 if test "$PKG_CONFIG" = "no" ; then
12722 HAVE_GCONF=no
12723 else
12724 PKG_CONFIG_MIN_VERSION=0.9.0
12725 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12726 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12727 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12729 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12730 { $as_echo "$as_me:$LINENO: result: yes" >&5
12731 $as_echo "yes" >&6; }
12732 succeeded=yes
12734 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12735 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12736 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12737 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12738 $as_echo "$GCONF_CFLAGS" >&6; }
12740 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12741 $as_echo_n "checking GCONF_LIBS... " >&6; }
12742 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12743 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12744 $as_echo "$GCONF_LIBS" >&6; }
12745 else
12746 { $as_echo "$as_me:$LINENO: result: no" >&5
12747 $as_echo "no" >&6; }
12748 GCONF_CFLAGS=""
12749 GCONF_LIBS=""
12750 ## If we have a custom action on failure, don't print errors, but
12751 ## do set a variable so people can do so.
12752 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12758 else
12759 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12760 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12764 if test $succeeded = yes; then
12765 HAVE_GCONF=yes
12766 else
12767 HAVE_GCONF=no
12770 if test "$HAVE_GCONF" = yes; then
12772 cat >>confdefs.h <<\_ACEOF
12773 #define HAVE_GCONF 1
12774 _ACEOF
12779 HAVE_LIBSELINUX=no
12780 LIBSELINUX_LIBS=
12781 if test "${with_selinux}" = "yes"; then
12782 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
12783 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12784 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
12785 $as_echo_n "(cached) " >&6
12786 else
12787 ac_check_lib_save_LIBS=$LIBS
12788 LIBS="-lselinux $LIBS"
12789 cat >conftest.$ac_ext <<_ACEOF
12790 /* confdefs.h. */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12796 /* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
12799 #ifdef __cplusplus
12800 extern "C"
12801 #endif
12802 char lgetfilecon ();
12804 main ()
12806 return lgetfilecon ();
12808 return 0;
12810 _ACEOF
12811 rm -f conftest.$ac_objext conftest$ac_exeext
12812 if { (ac_try="$ac_link"
12813 case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12816 esac
12817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12818 $as_echo "$ac_try_echo") >&5
12819 (eval "$ac_link") 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } && {
12826 test -z "$ac_c_werror_flag" ||
12827 test ! -s conftest.err
12828 } && test -s conftest$ac_exeext && {
12829 test "$cross_compiling" = yes ||
12830 $as_test_x conftest$ac_exeext
12831 }; then
12832 ac_cv_lib_selinux_lgetfilecon=yes
12833 else
12834 $as_echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12837 ac_cv_lib_selinux_lgetfilecon=no
12840 rm -rf conftest.dSYM
12841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12842 conftest$ac_exeext conftest.$ac_ext
12843 LIBS=$ac_check_lib_save_LIBS
12845 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12846 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12847 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
12848 HAVE_LIBSELINUX=yes
12849 else
12850 HAVE_LIBSELINUX=no
12853 if test "$HAVE_LIBSELINUX" = yes; then
12855 cat >>confdefs.h <<\_ACEOF
12856 #define HAVE_LIBSELINUX 1
12857 _ACEOF
12859 LIBSELINUX_LIBS=-lselinux
12864 HAVE_XAW3D=no
12865 LUCID_LIBW=
12866 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12867 if test "$with_xaw3d" != no; then
12868 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12869 $as_echo_n "checking for xaw3d... " >&6; }
12870 if test "${emacs_cv_xaw3d+set}" = set; then
12871 $as_echo_n "(cached) " >&6
12872 else
12873 cat >conftest.$ac_ext <<_ACEOF
12874 /* confdefs.h. */
12875 _ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12880 #include <X11/Intrinsic.h>
12881 #include <X11/Xaw3d/Simple.h>
12883 main ()
12887 return 0;
12889 _ACEOF
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (ac_try="$ac_link"
12892 case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895 esac
12896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12897 $as_echo "$ac_try_echo") >&5
12898 (eval "$ac_link") 2>conftest.er1
12899 ac_status=$?
12900 grep -v '^ *+' conftest.er1 >conftest.err
12901 rm -f conftest.er1
12902 cat conftest.err >&5
12903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } && {
12905 test -z "$ac_c_werror_flag" ||
12906 test ! -s conftest.err
12907 } && test -s conftest$ac_exeext && {
12908 test "$cross_compiling" = yes ||
12909 $as_test_x conftest$ac_exeext
12910 }; then
12911 emacs_cv_xaw3d=yes
12912 else
12913 $as_echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 emacs_cv_xaw3d=no
12919 rm -rf conftest.dSYM
12920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12921 conftest$ac_exeext conftest.$ac_ext
12924 else
12925 emacs_cv_xaw3d=no
12927 if test $emacs_cv_xaw3d = yes; then
12928 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12929 $as_echo "yes; using Lucid toolkit" >&6; }
12930 USE_X_TOOLKIT=LUCID
12931 HAVE_XAW3D=yes
12932 LUCID_LIBW=-lXaw3d
12934 cat >>confdefs.h <<\_ACEOF
12935 #define HAVE_XAW3D 1
12936 _ACEOF
12938 else
12939 { $as_echo "$as_me:$LINENO: result: no" >&5
12940 $as_echo "no" >&6; }
12941 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12942 $as_echo_n "checking for libXaw... " >&6; }
12943 if test "${emacs_cv_xaw+set}" = set; then
12944 $as_echo_n "(cached) " >&6
12945 else
12946 cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h. */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12953 #include <X11/Intrinsic.h>
12954 #include <X11/Xaw/Simple.h>
12956 main ()
12960 return 0;
12962 _ACEOF
12963 rm -f conftest.$ac_objext conftest$ac_exeext
12964 if { (ac_try="$ac_link"
12965 case "(($ac_try" in
12966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12968 esac
12969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12970 $as_echo "$ac_try_echo") >&5
12971 (eval "$ac_link") 2>conftest.er1
12972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } && {
12978 test -z "$ac_c_werror_flag" ||
12979 test ! -s conftest.err
12980 } && test -s conftest$ac_exeext && {
12981 test "$cross_compiling" = yes ||
12982 $as_test_x conftest$ac_exeext
12983 }; then
12984 emacs_cv_xaw=yes
12985 else
12986 $as_echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12989 emacs_cv_xaw=no
12992 rm -rf conftest.dSYM
12993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12994 conftest$ac_exeext conftest.$ac_ext
12997 if test $emacs_cv_xaw = yes; then
12998 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12999 $as_echo "yes; using Lucid toolkit" >&6; }
13000 USE_X_TOOLKIT=LUCID
13001 LUCID_LIBW=-lXaw
13002 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13003 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13004 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13005 { (exit 1); exit 1; }; }
13006 else
13007 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13008 $as_echo "no; do not use toolkit by default" >&6; }
13009 USE_X_TOOLKIT=none
13014 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13016 LIBXTR6=
13017 if test "${USE_X_TOOLKIT}" != "none"; then
13018 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13019 $as_echo_n "checking X11 toolkit version... " >&6; }
13020 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13021 $as_echo_n "(cached) " >&6
13022 else
13023 cat >conftest.$ac_ext <<_ACEOF
13024 /* confdefs.h. */
13025 _ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13029 #include <X11/Intrinsic.h>
13031 main ()
13033 #if XtSpecificationRelease < 6
13034 fail;
13035 #endif
13038 return 0;
13040 _ACEOF
13041 rm -f conftest.$ac_objext conftest$ac_exeext
13042 if { (ac_try="$ac_link"
13043 case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13046 esac
13047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13048 $as_echo "$ac_try_echo") >&5
13049 (eval "$ac_link") 2>conftest.er1
13050 ac_status=$?
13051 grep -v '^ *+' conftest.er1 >conftest.err
13052 rm -f conftest.er1
13053 cat conftest.err >&5
13054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } && {
13056 test -z "$ac_c_werror_flag" ||
13057 test ! -s conftest.err
13058 } && test -s conftest$ac_exeext && {
13059 test "$cross_compiling" = yes ||
13060 $as_test_x conftest$ac_exeext
13061 }; then
13062 emacs_cv_x11_toolkit_version_6=yes
13063 else
13064 $as_echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13067 emacs_cv_x11_toolkit_version_6=no
13070 rm -rf conftest.dSYM
13071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13072 conftest$ac_exeext conftest.$ac_ext
13075 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13076 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13077 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13078 $as_echo "6 or newer" >&6; }
13080 cat >>confdefs.h <<\_ACEOF
13081 #define HAVE_X11XTR6 1
13082 _ACEOF
13084 LIBXTR6="-lSM -lICE"
13085 case "$opsys" in
13086 ## Use libw.a along with X11R6 Xt.
13087 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13088 esac
13089 else
13090 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13091 $as_echo "before 6" >&6; }
13094 OLDLIBS="$LIBS"
13095 if test x$HAVE_X11XTR6 = xyes; then
13096 LIBS="-lXt -lSM -lICE $LIBS"
13097 else
13098 LIBS="-lXt $LIBS"
13101 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13102 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13103 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13104 $as_echo_n "(cached) " >&6
13105 else
13106 ac_check_lib_save_LIBS=$LIBS
13107 LIBS="-lXmu $LIBS"
13108 cat >conftest.$ac_ext <<_ACEOF
13109 /* confdefs.h. */
13110 _ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13115 /* Override any GCC internal prototype to avoid an error.
13116 Use char because int might match the return type of a GCC
13117 builtin and then its argument prototype would still apply. */
13118 #ifdef __cplusplus
13119 extern "C"
13120 #endif
13121 char XmuConvertStandardSelection ();
13123 main ()
13125 return XmuConvertStandardSelection ();
13127 return 0;
13129 _ACEOF
13130 rm -f conftest.$ac_objext conftest$ac_exeext
13131 if { (ac_try="$ac_link"
13132 case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13135 esac
13136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13137 $as_echo "$ac_try_echo") >&5
13138 (eval "$ac_link") 2>conftest.er1
13139 ac_status=$?
13140 grep -v '^ *+' conftest.er1 >conftest.err
13141 rm -f conftest.er1
13142 cat conftest.err >&5
13143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } && {
13145 test -z "$ac_c_werror_flag" ||
13146 test ! -s conftest.err
13147 } && test -s conftest$ac_exeext && {
13148 test "$cross_compiling" = yes ||
13149 $as_test_x conftest$ac_exeext
13150 }; then
13151 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13152 else
13153 $as_echo "$as_me: failed program was:" >&5
13154 sed 's/^/| /' conftest.$ac_ext >&5
13156 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13159 rm -rf conftest.dSYM
13160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13161 conftest$ac_exeext conftest.$ac_ext
13162 LIBS=$ac_check_lib_save_LIBS
13164 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13165 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13166 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13167 cat >>confdefs.h <<_ACEOF
13168 #define HAVE_LIBXMU 1
13169 _ACEOF
13171 LIBS="-lXmu $LIBS"
13175 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13179 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13180 if test "${HAVE_X11}" = "yes"; then
13181 if test "${USE_X_TOOLKIT}" != "none"; then
13183 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13184 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13185 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13186 $as_echo_n "(cached) " >&6
13187 else
13188 ac_check_lib_save_LIBS=$LIBS
13189 LIBS="-lXext $LIBS"
13190 cat >conftest.$ac_ext <<_ACEOF
13191 /* confdefs.h. */
13192 _ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13197 /* Override any GCC internal prototype to avoid an error.
13198 Use char because int might match the return type of a GCC
13199 builtin and then its argument prototype would still apply. */
13200 #ifdef __cplusplus
13201 extern "C"
13202 #endif
13203 char XShapeQueryExtension ();
13205 main ()
13207 return XShapeQueryExtension ();
13209 return 0;
13211 _ACEOF
13212 rm -f conftest.$ac_objext conftest$ac_exeext
13213 if { (ac_try="$ac_link"
13214 case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13217 esac
13218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13219 $as_echo "$ac_try_echo") >&5
13220 (eval "$ac_link") 2>conftest.er1
13221 ac_status=$?
13222 grep -v '^ *+' conftest.er1 >conftest.err
13223 rm -f conftest.er1
13224 cat conftest.err >&5
13225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } && {
13227 test -z "$ac_c_werror_flag" ||
13228 test ! -s conftest.err
13229 } && test -s conftest$ac_exeext && {
13230 test "$cross_compiling" = yes ||
13231 $as_test_x conftest$ac_exeext
13232 }; then
13233 ac_cv_lib_Xext_XShapeQueryExtension=yes
13234 else
13235 $as_echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13238 ac_cv_lib_Xext_XShapeQueryExtension=no
13241 rm -rf conftest.dSYM
13242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13243 conftest$ac_exeext conftest.$ac_ext
13244 LIBS=$ac_check_lib_save_LIBS
13246 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13247 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13248 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13249 cat >>confdefs.h <<_ACEOF
13250 #define HAVE_LIBXEXT 1
13251 _ACEOF
13253 LIBS="-lXext $LIBS"
13260 LIBXP=
13261 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13262 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13263 $as_echo_n "checking for Motif version 2.1... " >&6; }
13264 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13265 $as_echo_n "(cached) " >&6
13266 else
13267 cat >conftest.$ac_ext <<_ACEOF
13268 /* confdefs.h. */
13269 _ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h. */
13273 #include <Xm/Xm.h>
13275 main ()
13277 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13278 int x = 5;
13279 #else
13280 Motif version prior to 2.1.
13281 #endif
13283 return 0;
13285 _ACEOF
13286 rm -f conftest.$ac_objext
13287 if { (ac_try="$ac_compile"
13288 case "(($ac_try" in
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13291 esac
13292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13293 $as_echo "$ac_try_echo") >&5
13294 (eval "$ac_compile") 2>conftest.er1
13295 ac_status=$?
13296 grep -v '^ *+' conftest.er1 >conftest.err
13297 rm -f conftest.er1
13298 cat conftest.err >&5
13299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } && {
13301 test -z "$ac_c_werror_flag" ||
13302 test ! -s conftest.err
13303 } && test -s conftest.$ac_objext; then
13304 emacs_cv_motif_version_2_1=yes
13305 else
13306 $as_echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13309 emacs_cv_motif_version_2_1=no
13312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13315 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13316 if test $emacs_cv_motif_version_2_1 = yes; then
13317 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13318 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13319 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13320 $as_echo_n "(cached) " >&6
13321 else
13322 ac_check_lib_save_LIBS=$LIBS
13323 LIBS="-lXp $LIBS"
13324 cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h. */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13331 /* Override any GCC internal prototype to avoid an error.
13332 Use char because int might match the return type of a GCC
13333 builtin and then its argument prototype would still apply. */
13334 #ifdef __cplusplus
13335 extern "C"
13336 #endif
13337 char XpCreateContext ();
13339 main ()
13341 return XpCreateContext ();
13343 return 0;
13345 _ACEOF
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (ac_try="$ac_link"
13348 case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13351 esac
13352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13353 $as_echo "$ac_try_echo") >&5
13354 (eval "$ac_link") 2>conftest.er1
13355 ac_status=$?
13356 grep -v '^ *+' conftest.er1 >conftest.err
13357 rm -f conftest.er1
13358 cat conftest.err >&5
13359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } && {
13361 test -z "$ac_c_werror_flag" ||
13362 test ! -s conftest.err
13363 } && test -s conftest$ac_exeext && {
13364 test "$cross_compiling" = yes ||
13365 $as_test_x conftest$ac_exeext
13366 }; then
13367 ac_cv_lib_Xp_XpCreateContext=yes
13368 else
13369 $as_echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13372 ac_cv_lib_Xp_XpCreateContext=no
13375 rm -rf conftest.dSYM
13376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13377 conftest$ac_exeext conftest.$ac_ext
13378 LIBS=$ac_check_lib_save_LIBS
13380 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13381 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13382 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13383 LIBXP=-lXp
13386 else
13387 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13388 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13389 if test "${emacs_cv_lesstif+set}" = set; then
13390 $as_echo_n "(cached) " >&6
13391 else
13392 # We put this in CFLAGS temporarily to precede other -I options
13393 # that might be in CFLAGS temporarily.
13394 # We put this in CPPFLAGS where it precedes the other -I options.
13395 OLD_CPPFLAGS=$CPPFLAGS
13396 OLD_CFLAGS=$CFLAGS
13397 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13398 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13399 cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h. */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13405 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13407 main ()
13409 int x = 5;
13411 return 0;
13413 _ACEOF
13414 rm -f conftest.$ac_objext
13415 if { (ac_try="$ac_compile"
13416 case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13419 esac
13420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13421 $as_echo "$ac_try_echo") >&5
13422 (eval "$ac_compile") 2>conftest.er1
13423 ac_status=$?
13424 grep -v '^ *+' conftest.er1 >conftest.err
13425 rm -f conftest.er1
13426 cat conftest.err >&5
13427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } && {
13429 test -z "$ac_c_werror_flag" ||
13430 test ! -s conftest.err
13431 } && test -s conftest.$ac_objext; then
13432 emacs_cv_lesstif=yes
13433 else
13434 $as_echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 emacs_cv_lesstif=no
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13442 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13443 $as_echo "$emacs_cv_lesstif" >&6; }
13444 if test $emacs_cv_lesstif = yes; then
13445 # Make sure this -I option remains in CPPFLAGS after it is set
13446 # back to REAL_CPPFLAGS.
13447 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13448 # have those other -I options anyway. Ultimately, having this
13449 # directory ultimately in CPPFLAGS will be enough.
13450 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13451 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13452 else
13453 CFLAGS=$OLD_CFLAGS
13454 CPPFLAGS=$OLD_CPPFLAGS
13461 USE_TOOLKIT_SCROLL_BARS=no
13462 if test "${with_toolkit_scroll_bars}" != "no"; then
13463 if test "${USE_X_TOOLKIT}" != "none"; then
13464 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13465 cat >>confdefs.h <<\_ACEOF
13466 #define USE_TOOLKIT_SCROLL_BARS 1
13467 _ACEOF
13469 HAVE_XAW3D=no
13470 USE_TOOLKIT_SCROLL_BARS=yes
13471 elif test "${HAVE_XAW3D}" = "yes"; then
13472 cat >>confdefs.h <<\_ACEOF
13473 #define USE_TOOLKIT_SCROLL_BARS 1
13474 _ACEOF
13476 USE_TOOLKIT_SCROLL_BARS=yes
13478 elif test "${HAVE_GTK}" = "yes"; then
13479 cat >>confdefs.h <<\_ACEOF
13480 #define USE_TOOLKIT_SCROLL_BARS 1
13481 _ACEOF
13483 USE_TOOLKIT_SCROLL_BARS=yes
13484 elif test "${HAVE_NS}" = "yes"; then
13485 cat >>confdefs.h <<\_ACEOF
13486 #define USE_TOOLKIT_SCROLL_BARS 1
13487 _ACEOF
13489 USE_TOOLKIT_SCROLL_BARS=yes
13493 cat >conftest.$ac_ext <<_ACEOF
13494 /* confdefs.h. */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13500 #include <X11/Xlib.h>
13501 #include <X11/Xresource.h>
13503 main ()
13505 XIMProc callback;
13507 return 0;
13509 _ACEOF
13510 rm -f conftest.$ac_objext
13511 if { (ac_try="$ac_compile"
13512 case "(($ac_try" in
13513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514 *) ac_try_echo=$ac_try;;
13515 esac
13516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13517 $as_echo "$ac_try_echo") >&5
13518 (eval "$ac_compile") 2>conftest.er1
13519 ac_status=$?
13520 grep -v '^ *+' conftest.er1 >conftest.err
13521 rm -f conftest.er1
13522 cat conftest.err >&5
13523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } && {
13525 test -z "$ac_c_werror_flag" ||
13526 test ! -s conftest.err
13527 } && test -s conftest.$ac_objext; then
13528 HAVE_XIM=yes
13530 cat >>confdefs.h <<\_ACEOF
13531 #define HAVE_XIM 1
13532 _ACEOF
13534 else
13535 $as_echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13538 HAVE_XIM=no
13541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544 if test "${with_xim}" != "no"; then
13546 cat >>confdefs.h <<\_ACEOF
13547 #define USE_XIM 1
13548 _ACEOF
13553 if test "${HAVE_XIM}" != "no"; then
13554 late_CFLAGS=$CFLAGS
13555 if test "$GCC" = yes; then
13556 CFLAGS="$CFLAGS --pedantic-errors"
13558 cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h. */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13565 #include <X11/Xlib.h>
13566 #include <X11/Xresource.h>
13568 main ()
13570 Display *display;
13571 XrmDatabase db;
13572 char *res_name;
13573 char *res_class;
13574 XIMProc callback;
13575 XPointer *client_data;
13576 #ifndef __GNUC__
13577 /* If we're not using GCC, it's probably not XFree86, and this is
13578 probably right, but we can't use something like --pedantic-errors. */
13579 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13580 char*, XIMProc, XPointer*);
13581 #endif
13582 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13583 client_data);
13585 return 0;
13587 _ACEOF
13588 rm -f conftest.$ac_objext
13589 if { (ac_try="$ac_compile"
13590 case "(($ac_try" in
13591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592 *) ac_try_echo=$ac_try;;
13593 esac
13594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13595 $as_echo "$ac_try_echo") >&5
13596 (eval "$ac_compile") 2>conftest.er1
13597 ac_status=$?
13598 grep -v '^ *+' conftest.er1 >conftest.err
13599 rm -f conftest.er1
13600 cat conftest.err >&5
13601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } && {
13603 test -z "$ac_c_werror_flag" ||
13604 test ! -s conftest.err
13605 } && test -s conftest.$ac_objext; then
13606 emacs_cv_arg6_star=yes
13607 else
13608 $as_echo "$as_me: failed program was:" >&5
13609 sed 's/^/| /' conftest.$ac_ext >&5
13614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 if test "$emacs_cv_arg6_star" = yes; then
13617 cat >>confdefs.h <<\_ACEOF
13618 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13619 _ACEOF
13621 else
13622 cat >>confdefs.h <<\_ACEOF
13623 #define XRegisterIMInstantiateCallback_arg6 XPointer
13624 _ACEOF
13627 CFLAGS=$late_CFLAGS
13630 ### Start of font-backend (under any platform) section.
13631 # (nothing here yet -- this is a placeholder)
13632 ### End of font-backend (under any platform) section.
13634 ### Start of font-backend (under X11) section.
13635 if test "${HAVE_X11}" = "yes"; then
13637 succeeded=no
13639 # Extract the first word of "pkg-config", so it can be a program name with args.
13640 set dummy pkg-config; ac_word=$2
13641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13642 $as_echo_n "checking for $ac_word... " >&6; }
13643 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13644 $as_echo_n "(cached) " >&6
13645 else
13646 case $PKG_CONFIG in
13647 [\\/]* | ?:[\\/]*)
13648 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652 for as_dir in $PATH
13654 IFS=$as_save_IFS
13655 test -z "$as_dir" && as_dir=.
13656 for ac_exec_ext in '' $ac_executable_extensions; do
13657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13658 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13660 break 2
13662 done
13663 done
13664 IFS=$as_save_IFS
13666 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13668 esac
13670 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13671 if test -n "$PKG_CONFIG"; then
13672 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13673 $as_echo "$PKG_CONFIG" >&6; }
13674 else
13675 { $as_echo "$as_me:$LINENO: result: no" >&5
13676 $as_echo "no" >&6; }
13681 if test "$PKG_CONFIG" = "no" ; then
13682 HAVE_FC=no
13683 else
13684 PKG_CONFIG_MIN_VERSION=0.9.0
13685 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13686 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13687 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13689 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13690 { $as_echo "$as_me:$LINENO: result: yes" >&5
13691 $as_echo "yes" >&6; }
13692 succeeded=yes
13694 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13695 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13696 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13697 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13698 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13700 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13701 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13702 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13703 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13704 $as_echo "$FONTCONFIG_LIBS" >&6; }
13705 else
13706 { $as_echo "$as_me:$LINENO: result: no" >&5
13707 $as_echo "no" >&6; }
13708 FONTCONFIG_CFLAGS=""
13709 FONTCONFIG_LIBS=""
13710 ## If we have a custom action on failure, don't print errors, but
13711 ## do set a variable so people can do so.
13712 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13718 else
13719 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13720 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13724 if test $succeeded = yes; then
13725 HAVE_FC=yes
13726 else
13727 HAVE_FC=no
13731 ## Use -lXft if available, unless `--with-xft=no'.
13732 HAVE_XFT=maybe
13733 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13734 with_xft="no";
13736 if test "x${with_xft}" != "xno"; then
13739 succeeded=no
13741 # Extract the first word of "pkg-config", so it can be a program name with args.
13742 set dummy pkg-config; ac_word=$2
13743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13744 $as_echo_n "checking for $ac_word... " >&6; }
13745 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13746 $as_echo_n "(cached) " >&6
13747 else
13748 case $PKG_CONFIG in
13749 [\\/]* | ?:[\\/]*)
13750 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in $PATH
13756 IFS=$as_save_IFS
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13760 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13761 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13762 break 2
13764 done
13765 done
13766 IFS=$as_save_IFS
13768 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13770 esac
13772 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13773 if test -n "$PKG_CONFIG"; then
13774 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13775 $as_echo "$PKG_CONFIG" >&6; }
13776 else
13777 { $as_echo "$as_me:$LINENO: result: no" >&5
13778 $as_echo "no" >&6; }
13783 if test "$PKG_CONFIG" = "no" ; then
13784 HAVE_XFT=no
13785 else
13786 PKG_CONFIG_MIN_VERSION=0.9.0
13787 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13788 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13789 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13791 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13792 { $as_echo "$as_me:$LINENO: result: yes" >&5
13793 $as_echo "yes" >&6; }
13794 succeeded=yes
13796 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13797 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13798 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13799 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13800 $as_echo "$XFT_CFLAGS" >&6; }
13802 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13803 $as_echo_n "checking XFT_LIBS... " >&6; }
13804 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13805 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13806 $as_echo "$XFT_LIBS" >&6; }
13807 else
13808 { $as_echo "$as_me:$LINENO: result: no" >&5
13809 $as_echo "no" >&6; }
13810 XFT_CFLAGS=""
13811 XFT_LIBS=""
13812 ## If we have a custom action on failure, don't print errors, but
13813 ## do set a variable so people can do so.
13814 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13820 else
13821 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13822 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13826 if test $succeeded = yes; then
13828 else
13829 HAVE_XFT=no
13832 ## Because xftfont.c uses XRenderQueryExtension, we also
13833 ## need to link to -lXrender.
13834 HAVE_XRENDER=no
13835 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13836 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13837 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13838 $as_echo_n "(cached) " >&6
13839 else
13840 ac_check_lib_save_LIBS=$LIBS
13841 LIBS="-lXrender $LIBS"
13842 cat >conftest.$ac_ext <<_ACEOF
13843 /* confdefs.h. */
13844 _ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13849 /* Override any GCC internal prototype to avoid an error.
13850 Use char because int might match the return type of a GCC
13851 builtin and then its argument prototype would still apply. */
13852 #ifdef __cplusplus
13853 extern "C"
13854 #endif
13855 char XRenderQueryExtension ();
13857 main ()
13859 return XRenderQueryExtension ();
13861 return 0;
13863 _ACEOF
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (ac_try="$ac_link"
13866 case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869 esac
13870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13871 $as_echo "$ac_try_echo") >&5
13872 (eval "$ac_link") 2>conftest.er1
13873 ac_status=$?
13874 grep -v '^ *+' conftest.er1 >conftest.err
13875 rm -f conftest.er1
13876 cat conftest.err >&5
13877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } && {
13879 test -z "$ac_c_werror_flag" ||
13880 test ! -s conftest.err
13881 } && test -s conftest$ac_exeext && {
13882 test "$cross_compiling" = yes ||
13883 $as_test_x conftest$ac_exeext
13884 }; then
13885 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13886 else
13887 $as_echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13890 ac_cv_lib_Xrender_XRenderQueryExtension=no
13893 rm -rf conftest.dSYM
13894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13895 conftest$ac_exeext conftest.$ac_ext
13896 LIBS=$ac_check_lib_save_LIBS
13898 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13899 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13900 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13901 HAVE_XRENDER=yes
13904 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13905 OLD_CPPFLAGS="$CPPFLAGS"
13906 OLD_CFLAGS="$CFLAGS"
13907 OLD_LIBS="$LIBS"
13908 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13909 CFLAGS="$CFLAGS $XFT_CFLAGS"
13910 XFT_LIBS="-lXrender $XFT_LIBS"
13911 LIBS="$XFT_LIBS $LIBS"
13912 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13913 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13914 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13915 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13916 $as_echo_n "(cached) " >&6
13918 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13919 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13920 else
13921 # Is the header compilable?
13922 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13923 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13924 cat >conftest.$ac_ext <<_ACEOF
13925 /* confdefs.h. */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 $ac_includes_default
13931 #include <X11/Xft/Xft.h>
13932 _ACEOF
13933 rm -f conftest.$ac_objext
13934 if { (ac_try="$ac_compile"
13935 case "(($ac_try" in
13936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13938 esac
13939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13940 $as_echo "$ac_try_echo") >&5
13941 (eval "$ac_compile") 2>conftest.er1
13942 ac_status=$?
13943 grep -v '^ *+' conftest.er1 >conftest.err
13944 rm -f conftest.er1
13945 cat conftest.err >&5
13946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } && {
13948 test -z "$ac_c_werror_flag" ||
13949 test ! -s conftest.err
13950 } && test -s conftest.$ac_objext; then
13951 ac_header_compiler=yes
13952 else
13953 $as_echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13956 ac_header_compiler=no
13959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13960 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13961 $as_echo "$ac_header_compiler" >&6; }
13963 # Is the header present?
13964 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13965 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13966 cat >conftest.$ac_ext <<_ACEOF
13967 /* confdefs.h. */
13968 _ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972 #include <X11/Xft/Xft.h>
13973 _ACEOF
13974 if { (ac_try="$ac_cpp conftest.$ac_ext"
13975 case "(($ac_try" in
13976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13977 *) ac_try_echo=$ac_try;;
13978 esac
13979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13980 $as_echo "$ac_try_echo") >&5
13981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13982 ac_status=$?
13983 grep -v '^ *+' conftest.er1 >conftest.err
13984 rm -f conftest.er1
13985 cat conftest.err >&5
13986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } >/dev/null && {
13988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13989 test ! -s conftest.err
13990 }; then
13991 ac_header_preproc=yes
13992 else
13993 $as_echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ac_header_preproc=no
13999 rm -f conftest.err conftest.$ac_ext
14000 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14001 $as_echo "$ac_header_preproc" >&6; }
14003 # So? What about this header?
14004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14005 yes:no: )
14006 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14007 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14008 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14009 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14010 ac_header_preproc=yes
14012 no:yes:* )
14013 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14014 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14015 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14016 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14017 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14018 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14019 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14020 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14021 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14022 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14023 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14024 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14027 esac
14028 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14029 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14030 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14031 $as_echo_n "(cached) " >&6
14032 else
14033 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14035 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14036 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14039 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14040 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14041 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14042 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14043 $as_echo_n "(cached) " >&6
14044 else
14045 ac_check_lib_save_LIBS=$LIBS
14046 LIBS="-lXft $XFT_LIBS $LIBS"
14047 cat >conftest.$ac_ext <<_ACEOF
14048 /* confdefs.h. */
14049 _ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14054 /* Override any GCC internal prototype to avoid an error.
14055 Use char because int might match the return type of a GCC
14056 builtin and then its argument prototype would still apply. */
14057 #ifdef __cplusplus
14058 extern "C"
14059 #endif
14060 char XftFontOpen ();
14062 main ()
14064 return XftFontOpen ();
14066 return 0;
14068 _ACEOF
14069 rm -f conftest.$ac_objext conftest$ac_exeext
14070 if { (ac_try="$ac_link"
14071 case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14074 esac
14075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14076 $as_echo "$ac_try_echo") >&5
14077 (eval "$ac_link") 2>conftest.er1
14078 ac_status=$?
14079 grep -v '^ *+' conftest.er1 >conftest.err
14080 rm -f conftest.er1
14081 cat conftest.err >&5
14082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } && {
14084 test -z "$ac_c_werror_flag" ||
14085 test ! -s conftest.err
14086 } && test -s conftest$ac_exeext && {
14087 test "$cross_compiling" = yes ||
14088 $as_test_x conftest$ac_exeext
14089 }; then
14090 ac_cv_lib_Xft_XftFontOpen=yes
14091 else
14092 $as_echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14095 ac_cv_lib_Xft_XftFontOpen=no
14098 rm -rf conftest.dSYM
14099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14100 conftest$ac_exeext conftest.$ac_ext
14101 LIBS=$ac_check_lib_save_LIBS
14103 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14104 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14105 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14106 HAVE_XFT=yes
14113 if test "${HAVE_XFT}" = "yes"; then
14115 cat >>confdefs.h <<\_ACEOF
14116 #define HAVE_XFT 1
14117 _ACEOF
14120 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14121 else
14122 CPPFLAGS="$OLD_CPPFLAGS"
14123 CFLAGS="$OLD_CFLAGS"
14124 LIBS="$OLD_LIBS"
14125 fi # "${HAVE_XFT}" = "yes"
14126 fi # "$HAVE_XFT" != no
14127 fi # "x${with_xft}" != "xno"
14129 if test "$HAVE_XFT" != "yes"; then
14130 HAVE_XFT=no
14134 HAVE_FREETYPE=no
14135 ## We used to allow building with FreeType and without Xft.
14136 ## However, the ftx font backend driver is not in good shape.
14137 if test "${HAVE_XFT}" = "yes"; then
14138 HAVE_FREETYPE=yes
14139 FONTCONFIG_CFLAGS=
14140 FONTCONFIG_LIBS=
14143 HAVE_LIBOTF=no
14144 if test "${HAVE_FREETYPE}" = "yes"; then
14146 cat >>confdefs.h <<\_ACEOF
14147 #define HAVE_FREETYPE 1
14148 _ACEOF
14150 if test "${with_libotf}" != "no"; then
14152 succeeded=no
14154 # Extract the first word of "pkg-config", so it can be a program name with args.
14155 set dummy pkg-config; ac_word=$2
14156 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14157 $as_echo_n "checking for $ac_word... " >&6; }
14158 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14159 $as_echo_n "(cached) " >&6
14160 else
14161 case $PKG_CONFIG in
14162 [\\/]* | ?:[\\/]*)
14163 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14167 for as_dir in $PATH
14169 IFS=$as_save_IFS
14170 test -z "$as_dir" && as_dir=.
14171 for ac_exec_ext in '' $ac_executable_extensions; do
14172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14173 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14174 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14175 break 2
14177 done
14178 done
14179 IFS=$as_save_IFS
14181 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14183 esac
14185 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14186 if test -n "$PKG_CONFIG"; then
14187 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14188 $as_echo "$PKG_CONFIG" >&6; }
14189 else
14190 { $as_echo "$as_me:$LINENO: result: no" >&5
14191 $as_echo "no" >&6; }
14196 if test "$PKG_CONFIG" = "no" ; then
14197 HAVE_LIBOTF=no
14198 else
14199 PKG_CONFIG_MIN_VERSION=0.9.0
14200 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14201 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14202 $as_echo_n "checking for libotf... " >&6; }
14204 if $PKG_CONFIG --exists "libotf" 2>&5; then
14205 { $as_echo "$as_me:$LINENO: result: yes" >&5
14206 $as_echo "yes" >&6; }
14207 succeeded=yes
14209 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14210 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14211 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14212 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14213 $as_echo "$LIBOTF_CFLAGS" >&6; }
14215 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14216 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14217 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14218 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14219 $as_echo "$LIBOTF_LIBS" >&6; }
14220 else
14221 { $as_echo "$as_me:$LINENO: result: no" >&5
14222 $as_echo "no" >&6; }
14223 LIBOTF_CFLAGS=""
14224 LIBOTF_LIBS=""
14225 ## If we have a custom action on failure, don't print errors, but
14226 ## do set a variable so people can do so.
14227 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14233 else
14234 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14235 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14239 if test $succeeded = yes; then
14240 HAVE_LIBOTF=yes
14241 else
14242 HAVE_LIBOTF=no
14245 if test "$HAVE_LIBOTF" = "yes"; then
14247 cat >>confdefs.h <<\_ACEOF
14248 #define HAVE_LIBOTF 1
14249 _ACEOF
14251 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14252 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14253 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14254 $as_echo_n "(cached) " >&6
14255 else
14256 ac_check_lib_save_LIBS=$LIBS
14257 LIBS="-lotf $LIBS"
14258 cat >conftest.$ac_ext <<_ACEOF
14259 /* confdefs.h. */
14260 _ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14265 /* Override any GCC internal prototype to avoid an error.
14266 Use char because int might match the return type of a GCC
14267 builtin and then its argument prototype would still apply. */
14268 #ifdef __cplusplus
14269 extern "C"
14270 #endif
14271 char OTF_get_variation_glyphs ();
14273 main ()
14275 return OTF_get_variation_glyphs ();
14277 return 0;
14279 _ACEOF
14280 rm -f conftest.$ac_objext conftest$ac_exeext
14281 if { (ac_try="$ac_link"
14282 case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14285 esac
14286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14287 $as_echo "$ac_try_echo") >&5
14288 (eval "$ac_link") 2>conftest.er1
14289 ac_status=$?
14290 grep -v '^ *+' conftest.er1 >conftest.err
14291 rm -f conftest.er1
14292 cat conftest.err >&5
14293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } && {
14295 test -z "$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14297 } && test -s conftest$ac_exeext && {
14298 test "$cross_compiling" = yes ||
14299 $as_test_x conftest$ac_exeext
14300 }; then
14301 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14302 else
14303 $as_echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14309 rm -rf conftest.dSYM
14310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14311 conftest$ac_exeext conftest.$ac_ext
14312 LIBS=$ac_check_lib_save_LIBS
14314 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14315 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14316 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14317 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14318 else
14319 HAVE_OTF_GET_VARIATION_GLYPHS=no
14322 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14324 cat >>confdefs.h <<\_ACEOF
14325 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14326 _ACEOF
14333 HAVE_M17N_FLT=no
14334 if test "${HAVE_LIBOTF}" = yes; then
14335 if test "${with_m17n_flt}" != "no"; then
14337 succeeded=no
14339 # Extract the first word of "pkg-config", so it can be a program name with args.
14340 set dummy pkg-config; ac_word=$2
14341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14342 $as_echo_n "checking for $ac_word... " >&6; }
14343 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14344 $as_echo_n "(cached) " >&6
14345 else
14346 case $PKG_CONFIG in
14347 [\\/]* | ?:[\\/]*)
14348 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352 for as_dir in $PATH
14354 IFS=$as_save_IFS
14355 test -z "$as_dir" && as_dir=.
14356 for ac_exec_ext in '' $ac_executable_extensions; do
14357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14358 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14360 break 2
14362 done
14363 done
14364 IFS=$as_save_IFS
14366 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14368 esac
14370 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14371 if test -n "$PKG_CONFIG"; then
14372 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14373 $as_echo "$PKG_CONFIG" >&6; }
14374 else
14375 { $as_echo "$as_me:$LINENO: result: no" >&5
14376 $as_echo "no" >&6; }
14381 if test "$PKG_CONFIG" = "no" ; then
14382 HAVE_M17N_FLT=no
14383 else
14384 PKG_CONFIG_MIN_VERSION=0.9.0
14385 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14386 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14387 $as_echo_n "checking for m17n-flt... " >&6; }
14389 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14390 { $as_echo "$as_me:$LINENO: result: yes" >&5
14391 $as_echo "yes" >&6; }
14392 succeeded=yes
14394 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14395 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14396 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14397 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14398 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14400 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14401 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14402 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14403 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14404 $as_echo "$M17N_FLT_LIBS" >&6; }
14405 else
14406 { $as_echo "$as_me:$LINENO: result: no" >&5
14407 $as_echo "no" >&6; }
14408 M17N_FLT_CFLAGS=""
14409 M17N_FLT_LIBS=""
14410 ## If we have a custom action on failure, don't print errors, but
14411 ## do set a variable so people can do so.
14412 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14418 else
14419 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14420 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14424 if test $succeeded = yes; then
14425 HAVE_M17N_FLT=yes
14426 else
14427 HAVE_M17N_FLT=no
14430 if test "$HAVE_M17N_FLT" = "yes"; then
14432 cat >>confdefs.h <<\_ACEOF
14433 #define HAVE_M17N_FLT 1
14434 _ACEOF
14439 else
14440 HAVE_XFT=no
14441 HAVE_FREETYPE=no
14442 HAVE_LIBOTF=no
14443 HAVE_M17N_FLT=no
14445 ### End of font-backend (under X11) section.
14456 ### Use -lXpm if available, unless `--with-xpm=no'.
14457 HAVE_XPM=no
14458 LIBXPM=
14459 if test "${HAVE_X11}" = "yes"; then
14460 if test "${with_xpm}" != "no"; then
14461 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14462 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14463 $as_echo_n "checking for X11/xpm.h... " >&6; }
14464 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14465 $as_echo_n "(cached) " >&6
14467 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14468 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14469 else
14470 # Is the header compilable?
14471 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14472 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14473 cat >conftest.$ac_ext <<_ACEOF
14474 /* confdefs.h. */
14475 _ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479 $ac_includes_default
14480 #include <X11/xpm.h>
14481 _ACEOF
14482 rm -f conftest.$ac_objext
14483 if { (ac_try="$ac_compile"
14484 case "(($ac_try" in
14485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486 *) ac_try_echo=$ac_try;;
14487 esac
14488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14489 $as_echo "$ac_try_echo") >&5
14490 (eval "$ac_compile") 2>conftest.er1
14491 ac_status=$?
14492 grep -v '^ *+' conftest.er1 >conftest.err
14493 rm -f conftest.er1
14494 cat conftest.err >&5
14495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); } && {
14497 test -z "$ac_c_werror_flag" ||
14498 test ! -s conftest.err
14499 } && test -s conftest.$ac_objext; then
14500 ac_header_compiler=yes
14501 else
14502 $as_echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ac_header_compiler=no
14508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14510 $as_echo "$ac_header_compiler" >&6; }
14512 # Is the header present?
14513 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14514 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14515 cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h. */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 #include <X11/xpm.h>
14522 _ACEOF
14523 if { (ac_try="$ac_cpp conftest.$ac_ext"
14524 case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14527 esac
14528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14529 $as_echo "$ac_try_echo") >&5
14530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14531 ac_status=$?
14532 grep -v '^ *+' conftest.er1 >conftest.err
14533 rm -f conftest.er1
14534 cat conftest.err >&5
14535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } >/dev/null && {
14537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14538 test ! -s conftest.err
14539 }; then
14540 ac_header_preproc=yes
14541 else
14542 $as_echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ac_header_preproc=no
14548 rm -f conftest.err conftest.$ac_ext
14549 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14550 $as_echo "$ac_header_preproc" >&6; }
14552 # So? What about this header?
14553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14554 yes:no: )
14555 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14556 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14557 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14558 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14559 ac_header_preproc=yes
14561 no:yes:* )
14562 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14563 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14564 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14565 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14566 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14567 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14568 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14569 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14570 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14571 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14572 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14573 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14576 esac
14577 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14578 $as_echo_n "checking for X11/xpm.h... " >&6; }
14579 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14580 $as_echo_n "(cached) " >&6
14581 else
14582 ac_cv_header_X11_xpm_h=$ac_header_preproc
14584 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14585 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14588 if test $ac_cv_header_X11_xpm_h = yes; then
14589 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14590 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14591 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14592 $as_echo_n "(cached) " >&6
14593 else
14594 ac_check_lib_save_LIBS=$LIBS
14595 LIBS="-lXpm -lX11 $LIBS"
14596 cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h. */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14603 /* Override any GCC internal prototype to avoid an error.
14604 Use char because int might match the return type of a GCC
14605 builtin and then its argument prototype would still apply. */
14606 #ifdef __cplusplus
14607 extern "C"
14608 #endif
14609 char XpmReadFileToPixmap ();
14611 main ()
14613 return XpmReadFileToPixmap ();
14615 return 0;
14617 _ACEOF
14618 rm -f conftest.$ac_objext conftest$ac_exeext
14619 if { (ac_try="$ac_link"
14620 case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14623 esac
14624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14625 $as_echo "$ac_try_echo") >&5
14626 (eval "$ac_link") 2>conftest.er1
14627 ac_status=$?
14628 grep -v '^ *+' conftest.er1 >conftest.err
14629 rm -f conftest.er1
14630 cat conftest.err >&5
14631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } && {
14633 test -z "$ac_c_werror_flag" ||
14634 test ! -s conftest.err
14635 } && test -s conftest$ac_exeext && {
14636 test "$cross_compiling" = yes ||
14637 $as_test_x conftest$ac_exeext
14638 }; then
14639 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14640 else
14641 $as_echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14644 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14647 rm -rf conftest.dSYM
14648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14649 conftest$ac_exeext conftest.$ac_ext
14650 LIBS=$ac_check_lib_save_LIBS
14652 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14653 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14654 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14655 HAVE_XPM=yes
14661 if test "${HAVE_XPM}" = "yes"; then
14662 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14663 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14664 cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h. */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 #include "X11/xpm.h"
14671 #ifndef XpmReturnAllocPixels
14672 no_return_alloc_pixels
14673 #endif
14675 _ACEOF
14676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14677 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14678 HAVE_XPM=no
14679 else
14680 HAVE_XPM=yes
14682 rm -f conftest*
14685 if test "${HAVE_XPM}" = "yes"; then
14686 { $as_echo "$as_me:$LINENO: result: yes" >&5
14687 $as_echo "yes" >&6; }
14688 else
14689 { $as_echo "$as_me:$LINENO: result: no" >&5
14690 $as_echo "no" >&6; }
14695 if test "${HAVE_XPM}" = "yes"; then
14697 cat >>confdefs.h <<\_ACEOF
14698 #define HAVE_XPM 1
14699 _ACEOF
14701 LIBXPM=-lXpm
14706 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14707 HAVE_JPEG=no
14708 LIBJPEG=
14709 if test "${HAVE_X11}" = "yes"; then
14710 if test "${with_jpeg}" != "no"; then
14711 if test "${ac_cv_header_jerror_h+set}" = set; then
14712 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14713 $as_echo_n "checking for jerror.h... " >&6; }
14714 if test "${ac_cv_header_jerror_h+set}" = set; then
14715 $as_echo_n "(cached) " >&6
14717 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14718 $as_echo "$ac_cv_header_jerror_h" >&6; }
14719 else
14720 # Is the header compilable?
14721 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14722 $as_echo_n "checking jerror.h usability... " >&6; }
14723 cat >conftest.$ac_ext <<_ACEOF
14724 /* confdefs.h. */
14725 _ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h. */
14729 $ac_includes_default
14730 #include <jerror.h>
14731 _ACEOF
14732 rm -f conftest.$ac_objext
14733 if { (ac_try="$ac_compile"
14734 case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14737 esac
14738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14739 $as_echo "$ac_try_echo") >&5
14740 (eval "$ac_compile") 2>conftest.er1
14741 ac_status=$?
14742 grep -v '^ *+' conftest.er1 >conftest.err
14743 rm -f conftest.er1
14744 cat conftest.err >&5
14745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } && {
14747 test -z "$ac_c_werror_flag" ||
14748 test ! -s conftest.err
14749 } && test -s conftest.$ac_objext; then
14750 ac_header_compiler=yes
14751 else
14752 $as_echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 ac_header_compiler=no
14758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14759 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14760 $as_echo "$ac_header_compiler" >&6; }
14762 # Is the header present?
14763 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14764 $as_echo_n "checking jerror.h presence... " >&6; }
14765 cat >conftest.$ac_ext <<_ACEOF
14766 /* confdefs.h. */
14767 _ACEOF
14768 cat confdefs.h >>conftest.$ac_ext
14769 cat >>conftest.$ac_ext <<_ACEOF
14770 /* end confdefs.h. */
14771 #include <jerror.h>
14772 _ACEOF
14773 if { (ac_try="$ac_cpp conftest.$ac_ext"
14774 case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14777 esac
14778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14779 $as_echo "$ac_try_echo") >&5
14780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14781 ac_status=$?
14782 grep -v '^ *+' conftest.er1 >conftest.err
14783 rm -f conftest.er1
14784 cat conftest.err >&5
14785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } >/dev/null && {
14787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14788 test ! -s conftest.err
14789 }; then
14790 ac_header_preproc=yes
14791 else
14792 $as_echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14795 ac_header_preproc=no
14798 rm -f conftest.err conftest.$ac_ext
14799 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14800 $as_echo "$ac_header_preproc" >&6; }
14802 # So? What about this header?
14803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14804 yes:no: )
14805 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14806 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14807 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14808 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14809 ac_header_preproc=yes
14811 no:yes:* )
14812 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14813 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14814 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14815 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14816 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14817 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14818 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14819 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14820 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14821 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14822 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14823 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14826 esac
14827 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14828 $as_echo_n "checking for jerror.h... " >&6; }
14829 if test "${ac_cv_header_jerror_h+set}" = set; then
14830 $as_echo_n "(cached) " >&6
14831 else
14832 ac_cv_header_jerror_h=$ac_header_preproc
14834 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14835 $as_echo "$ac_cv_header_jerror_h" >&6; }
14838 if test $ac_cv_header_jerror_h = yes; then
14839 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14840 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14841 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14842 $as_echo_n "(cached) " >&6
14843 else
14844 ac_check_lib_save_LIBS=$LIBS
14845 LIBS="-ljpeg $LIBS"
14846 cat >conftest.$ac_ext <<_ACEOF
14847 /* confdefs.h. */
14848 _ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h. */
14853 /* Override any GCC internal prototype to avoid an error.
14854 Use char because int might match the return type of a GCC
14855 builtin and then its argument prototype would still apply. */
14856 #ifdef __cplusplus
14857 extern "C"
14858 #endif
14859 char jpeg_destroy_compress ();
14861 main ()
14863 return jpeg_destroy_compress ();
14865 return 0;
14867 _ACEOF
14868 rm -f conftest.$ac_objext conftest$ac_exeext
14869 if { (ac_try="$ac_link"
14870 case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14873 esac
14874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14875 $as_echo "$ac_try_echo") >&5
14876 (eval "$ac_link") 2>conftest.er1
14877 ac_status=$?
14878 grep -v '^ *+' conftest.er1 >conftest.err
14879 rm -f conftest.er1
14880 cat conftest.err >&5
14881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } && {
14883 test -z "$ac_c_werror_flag" ||
14884 test ! -s conftest.err
14885 } && test -s conftest$ac_exeext && {
14886 test "$cross_compiling" = yes ||
14887 $as_test_x conftest$ac_exeext
14888 }; then
14889 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14890 else
14891 $as_echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14894 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14897 rm -rf conftest.dSYM
14898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14899 conftest$ac_exeext conftest.$ac_ext
14900 LIBS=$ac_check_lib_save_LIBS
14902 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14903 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14904 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14905 HAVE_JPEG=yes
14914 if test "${HAVE_JPEG}" = "yes"; then
14915 cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_JPEG 1
14917 _ACEOF
14919 cat >conftest.$ac_ext <<_ACEOF
14920 /* confdefs.h. */
14921 _ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h. */
14925 #include <jpeglib.h>
14926 version=JPEG_LIB_VERSION
14928 _ACEOF
14929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14930 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14931 cat >>confdefs.h <<\_ACEOF
14932 #define HAVE_JPEG 1
14933 _ACEOF
14935 else
14936 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14937 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14938 HAVE_JPEG=no
14940 rm -f conftest*
14943 if test "${HAVE_JPEG}" = "yes"; then
14944 LIBJPEG=-ljpeg
14949 ### Use -lpng if available, unless `--with-png=no'.
14950 HAVE_PNG=no
14951 LIBPNG=
14952 if test "${HAVE_X11}" = "yes"; then
14953 if test "${with_png}" != "no"; then
14954 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14955 # in /usr/include/libpng.
14958 for ac_header in png.h libpng/png.h
14960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14962 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14963 $as_echo_n "checking for $ac_header... " >&6; }
14964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14965 $as_echo_n "(cached) " >&6
14967 ac_res=`eval 'as_val=${'$as_ac_Header'}
14968 $as_echo "$as_val"'`
14969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14970 $as_echo "$ac_res" >&6; }
14971 else
14972 # Is the header compilable?
14973 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14974 $as_echo_n "checking $ac_header usability... " >&6; }
14975 cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h. */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 $ac_includes_default
14982 #include <$ac_header>
14983 _ACEOF
14984 rm -f conftest.$ac_objext
14985 if { (ac_try="$ac_compile"
14986 case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14989 esac
14990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14991 $as_echo "$ac_try_echo") >&5
14992 (eval "$ac_compile") 2>conftest.er1
14993 ac_status=$?
14994 grep -v '^ *+' conftest.er1 >conftest.err
14995 rm -f conftest.er1
14996 cat conftest.err >&5
14997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } && {
14999 test -z "$ac_c_werror_flag" ||
15000 test ! -s conftest.err
15001 } && test -s conftest.$ac_objext; then
15002 ac_header_compiler=yes
15003 else
15004 $as_echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15007 ac_header_compiler=no
15010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15012 $as_echo "$ac_header_compiler" >&6; }
15014 # Is the header present?
15015 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15016 $as_echo_n "checking $ac_header presence... " >&6; }
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h. */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 #include <$ac_header>
15024 _ACEOF
15025 if { (ac_try="$ac_cpp conftest.$ac_ext"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15029 esac
15030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15031 $as_echo "$ac_try_echo") >&5
15032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15033 ac_status=$?
15034 grep -v '^ *+' conftest.er1 >conftest.err
15035 rm -f conftest.er1
15036 cat conftest.err >&5
15037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } >/dev/null && {
15039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15040 test ! -s conftest.err
15041 }; then
15042 ac_header_preproc=yes
15043 else
15044 $as_echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15047 ac_header_preproc=no
15050 rm -f conftest.err conftest.$ac_ext
15051 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15052 $as_echo "$ac_header_preproc" >&6; }
15054 # So? What about this header?
15055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15056 yes:no: )
15057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15058 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15060 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15061 ac_header_preproc=yes
15063 no:yes:* )
15064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15065 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15067 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15069 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15071 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15073 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15075 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15078 esac
15079 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15080 $as_echo_n "checking for $ac_header... " >&6; }
15081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15082 $as_echo_n "(cached) " >&6
15083 else
15084 eval "$as_ac_Header=\$ac_header_preproc"
15086 ac_res=`eval 'as_val=${'$as_ac_Header'}
15087 $as_echo "$as_val"'`
15088 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15089 $as_echo "$ac_res" >&6; }
15092 if test `eval 'as_val=${'$as_ac_Header'}
15093 $as_echo "$as_val"'` = yes; then
15094 cat >>confdefs.h <<_ACEOF
15095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15096 _ACEOF
15100 done
15102 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15103 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15104 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15105 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15106 $as_echo_n "(cached) " >&6
15107 else
15108 ac_check_lib_save_LIBS=$LIBS
15109 LIBS="-lpng -lz -lm $LIBS"
15110 cat >conftest.$ac_ext <<_ACEOF
15111 /* confdefs.h. */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15117 /* Override any GCC internal prototype to avoid an error.
15118 Use char because int might match the return type of a GCC
15119 builtin and then its argument prototype would still apply. */
15120 #ifdef __cplusplus
15121 extern "C"
15122 #endif
15123 char png_get_channels ();
15125 main ()
15127 return png_get_channels ();
15129 return 0;
15131 _ACEOF
15132 rm -f conftest.$ac_objext conftest$ac_exeext
15133 if { (ac_try="$ac_link"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15137 esac
15138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15139 $as_echo "$ac_try_echo") >&5
15140 (eval "$ac_link") 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } && {
15147 test -z "$ac_c_werror_flag" ||
15148 test ! -s conftest.err
15149 } && test -s conftest$ac_exeext && {
15150 test "$cross_compiling" = yes ||
15151 $as_test_x conftest$ac_exeext
15152 }; then
15153 ac_cv_lib_png_png_get_channels=yes
15154 else
15155 $as_echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15158 ac_cv_lib_png_png_get_channels=no
15161 rm -rf conftest.dSYM
15162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15163 conftest$ac_exeext conftest.$ac_ext
15164 LIBS=$ac_check_lib_save_LIBS
15166 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15167 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15168 if test $ac_cv_lib_png_png_get_channels = yes; then
15169 HAVE_PNG=yes
15175 if test "${HAVE_PNG}" = "yes"; then
15177 cat >>confdefs.h <<\_ACEOF
15178 #define HAVE_PNG 1
15179 _ACEOF
15181 LIBPNG="-lpng -lz -lm"
15186 ### Use -ltiff if available, unless `--with-tiff=no'.
15187 HAVE_TIFF=no
15188 LIBTIFF=
15189 if test "${HAVE_X11}" = "yes"; then
15190 if test "${with_tiff}" != "no"; then
15191 if test "${ac_cv_header_tiffio_h+set}" = set; then
15192 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15193 $as_echo_n "checking for tiffio.h... " >&6; }
15194 if test "${ac_cv_header_tiffio_h+set}" = set; then
15195 $as_echo_n "(cached) " >&6
15197 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15198 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15199 else
15200 # Is the header compilable?
15201 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15202 $as_echo_n "checking tiffio.h usability... " >&6; }
15203 cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h. */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 $ac_includes_default
15210 #include <tiffio.h>
15211 _ACEOF
15212 rm -f conftest.$ac_objext
15213 if { (ac_try="$ac_compile"
15214 case "(($ac_try" in
15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15217 esac
15218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15219 $as_echo "$ac_try_echo") >&5
15220 (eval "$ac_compile") 2>conftest.er1
15221 ac_status=$?
15222 grep -v '^ *+' conftest.er1 >conftest.err
15223 rm -f conftest.er1
15224 cat conftest.err >&5
15225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } && {
15227 test -z "$ac_c_werror_flag" ||
15228 test ! -s conftest.err
15229 } && test -s conftest.$ac_objext; then
15230 ac_header_compiler=yes
15231 else
15232 $as_echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235 ac_header_compiler=no
15238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15239 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15240 $as_echo "$ac_header_compiler" >&6; }
15242 # Is the header present?
15243 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15244 $as_echo_n "checking tiffio.h presence... " >&6; }
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h. */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 #include <tiffio.h>
15252 _ACEOF
15253 if { (ac_try="$ac_cpp conftest.$ac_ext"
15254 case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15257 esac
15258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15259 $as_echo "$ac_try_echo") >&5
15260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15261 ac_status=$?
15262 grep -v '^ *+' conftest.er1 >conftest.err
15263 rm -f conftest.er1
15264 cat conftest.err >&5
15265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } >/dev/null && {
15267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15268 test ! -s conftest.err
15269 }; then
15270 ac_header_preproc=yes
15271 else
15272 $as_echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ac_header_preproc=no
15278 rm -f conftest.err conftest.$ac_ext
15279 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15280 $as_echo "$ac_header_preproc" >&6; }
15282 # So? What about this header?
15283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15284 yes:no: )
15285 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15286 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15287 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15288 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15289 ac_header_preproc=yes
15291 no:yes:* )
15292 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15293 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15294 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15295 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15296 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15297 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15298 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15299 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15300 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15301 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15302 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15303 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15306 esac
15307 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15308 $as_echo_n "checking for tiffio.h... " >&6; }
15309 if test "${ac_cv_header_tiffio_h+set}" = set; then
15310 $as_echo_n "(cached) " >&6
15311 else
15312 ac_cv_header_tiffio_h=$ac_header_preproc
15314 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15315 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15318 if test $ac_cv_header_tiffio_h = yes; then
15319 tifflibs="-lz -lm"
15320 # At least one tiff package requires the jpeg library.
15321 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15322 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15323 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15324 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15325 $as_echo_n "(cached) " >&6
15326 else
15327 ac_check_lib_save_LIBS=$LIBS
15328 LIBS="-ltiff $tifflibs $LIBS"
15329 cat >conftest.$ac_ext <<_ACEOF
15330 /* confdefs.h. */
15331 _ACEOF
15332 cat confdefs.h >>conftest.$ac_ext
15333 cat >>conftest.$ac_ext <<_ACEOF
15334 /* end confdefs.h. */
15336 /* Override any GCC internal prototype to avoid an error.
15337 Use char because int might match the return type of a GCC
15338 builtin and then its argument prototype would still apply. */
15339 #ifdef __cplusplus
15340 extern "C"
15341 #endif
15342 char TIFFGetVersion ();
15344 main ()
15346 return TIFFGetVersion ();
15348 return 0;
15350 _ACEOF
15351 rm -f conftest.$ac_objext conftest$ac_exeext
15352 if { (ac_try="$ac_link"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15356 esac
15357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15358 $as_echo "$ac_try_echo") >&5
15359 (eval "$ac_link") 2>conftest.er1
15360 ac_status=$?
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
15364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && {
15366 test -z "$ac_c_werror_flag" ||
15367 test ! -s conftest.err
15368 } && test -s conftest$ac_exeext && {
15369 test "$cross_compiling" = yes ||
15370 $as_test_x conftest$ac_exeext
15371 }; then
15372 ac_cv_lib_tiff_TIFFGetVersion=yes
15373 else
15374 $as_echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 ac_cv_lib_tiff_TIFFGetVersion=no
15380 rm -rf conftest.dSYM
15381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15382 conftest$ac_exeext conftest.$ac_ext
15383 LIBS=$ac_check_lib_save_LIBS
15385 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15386 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15387 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15388 HAVE_TIFF=yes
15396 if test "${HAVE_TIFF}" = "yes"; then
15398 cat >>confdefs.h <<\_ACEOF
15399 #define HAVE_TIFF 1
15400 _ACEOF
15402 LIBTIFF=-ltiff
15407 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15408 HAVE_GIF=no
15409 LIBGIF=
15410 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15411 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15412 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15413 $as_echo_n "checking for gif_lib.h... " >&6; }
15414 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15415 $as_echo_n "(cached) " >&6
15417 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15418 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15419 else
15420 # Is the header compilable?
15421 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15422 $as_echo_n "checking gif_lib.h usability... " >&6; }
15423 cat >conftest.$ac_ext <<_ACEOF
15424 /* confdefs.h. */
15425 _ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h. */
15429 $ac_includes_default
15430 #include <gif_lib.h>
15431 _ACEOF
15432 rm -f conftest.$ac_objext
15433 if { (ac_try="$ac_compile"
15434 case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15437 esac
15438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15439 $as_echo "$ac_try_echo") >&5
15440 (eval "$ac_compile") 2>conftest.er1
15441 ac_status=$?
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
15445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } && {
15447 test -z "$ac_c_werror_flag" ||
15448 test ! -s conftest.err
15449 } && test -s conftest.$ac_objext; then
15450 ac_header_compiler=yes
15451 else
15452 $as_echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ac_header_compiler=no
15458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15459 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15460 $as_echo "$ac_header_compiler" >&6; }
15462 # Is the header present?
15463 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15464 $as_echo_n "checking gif_lib.h presence... " >&6; }
15465 cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h. */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 #include <gif_lib.h>
15472 _ACEOF
15473 if { (ac_try="$ac_cpp conftest.$ac_ext"
15474 case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15477 esac
15478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15479 $as_echo "$ac_try_echo") >&5
15480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15481 ac_status=$?
15482 grep -v '^ *+' conftest.er1 >conftest.err
15483 rm -f conftest.er1
15484 cat conftest.err >&5
15485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } >/dev/null && {
15487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15488 test ! -s conftest.err
15489 }; then
15490 ac_header_preproc=yes
15491 else
15492 $as_echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15495 ac_header_preproc=no
15498 rm -f conftest.err conftest.$ac_ext
15499 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15500 $as_echo "$ac_header_preproc" >&6; }
15502 # So? What about this header?
15503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15504 yes:no: )
15505 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15506 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15507 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15508 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15509 ac_header_preproc=yes
15511 no:yes:* )
15512 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15513 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15514 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15515 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15516 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15517 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15518 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15519 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15520 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15521 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15522 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15523 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15526 esac
15527 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15528 $as_echo_n "checking for gif_lib.h... " >&6; }
15529 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15530 $as_echo_n "(cached) " >&6
15531 else
15532 ac_cv_header_gif_lib_h=$ac_header_preproc
15534 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15535 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15538 if test $ac_cv_header_gif_lib_h = yes; then
15539 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15540 # Earlier versions can crash Emacs.
15541 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15542 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15543 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15544 $as_echo_n "(cached) " >&6
15545 else
15546 ac_check_lib_save_LIBS=$LIBS
15547 LIBS="-lgif $LIBS"
15548 cat >conftest.$ac_ext <<_ACEOF
15549 /* confdefs.h. */
15550 _ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15555 /* Override any GCC internal prototype to avoid an error.
15556 Use char because int might match the return type of a GCC
15557 builtin and then its argument prototype would still apply. */
15558 #ifdef __cplusplus
15559 extern "C"
15560 #endif
15561 char EGifPutExtensionLast ();
15563 main ()
15565 return EGifPutExtensionLast ();
15567 return 0;
15569 _ACEOF
15570 rm -f conftest.$ac_objext conftest$ac_exeext
15571 if { (ac_try="$ac_link"
15572 case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15575 esac
15576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15577 $as_echo "$ac_try_echo") >&5
15578 (eval "$ac_link") 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } && {
15585 test -z "$ac_c_werror_flag" ||
15586 test ! -s conftest.err
15587 } && test -s conftest$ac_exeext && {
15588 test "$cross_compiling" = yes ||
15589 $as_test_x conftest$ac_exeext
15590 }; then
15591 ac_cv_lib_gif_EGifPutExtensionLast=yes
15592 else
15593 $as_echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15596 ac_cv_lib_gif_EGifPutExtensionLast=no
15599 rm -rf conftest.dSYM
15600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15601 conftest$ac_exeext conftest.$ac_ext
15602 LIBS=$ac_check_lib_save_LIBS
15604 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15605 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15606 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15607 HAVE_GIF=yes
15608 else
15609 HAVE_GIF=maybe
15616 if test "$HAVE_GIF" = yes; then
15617 LIBGIF=-lgif
15618 elif test "$HAVE_GIF" = maybe; then
15619 # If gif_lib.h but no libgif, try libungif.
15620 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15621 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15622 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15623 $as_echo_n "(cached) " >&6
15624 else
15625 ac_check_lib_save_LIBS=$LIBS
15626 LIBS="-lungif $LIBS"
15627 cat >conftest.$ac_ext <<_ACEOF
15628 /* confdefs.h. */
15629 _ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h. */
15634 /* Override any GCC internal prototype to avoid an error.
15635 Use char because int might match the return type of a GCC
15636 builtin and then its argument prototype would still apply. */
15637 #ifdef __cplusplus
15638 extern "C"
15639 #endif
15640 char EGifPutExtensionLast ();
15642 main ()
15644 return EGifPutExtensionLast ();
15646 return 0;
15648 _ACEOF
15649 rm -f conftest.$ac_objext conftest$ac_exeext
15650 if { (ac_try="$ac_link"
15651 case "(($ac_try" in
15652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653 *) ac_try_echo=$ac_try;;
15654 esac
15655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15656 $as_echo "$ac_try_echo") >&5
15657 (eval "$ac_link") 2>conftest.er1
15658 ac_status=$?
15659 grep -v '^ *+' conftest.er1 >conftest.err
15660 rm -f conftest.er1
15661 cat conftest.err >&5
15662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } && {
15664 test -z "$ac_c_werror_flag" ||
15665 test ! -s conftest.err
15666 } && test -s conftest$ac_exeext && {
15667 test "$cross_compiling" = yes ||
15668 $as_test_x conftest$ac_exeext
15669 }; then
15670 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15671 else
15672 $as_echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 ac_cv_lib_ungif_EGifPutExtensionLast=no
15678 rm -rf conftest.dSYM
15679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15680 conftest$ac_exeext conftest.$ac_ext
15681 LIBS=$ac_check_lib_save_LIBS
15683 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15684 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15685 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15686 HAVE_GIF=yes
15687 else
15688 HAVE_GIF=no
15691 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15694 if test "${HAVE_GIF}" = "yes"; then
15696 cat >>confdefs.h <<\_ACEOF
15697 #define HAVE_GIF 1
15698 _ACEOF
15704 if test "${HAVE_X11}" = "yes"; then
15705 MISSING=""
15706 WITH_NO=""
15707 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15708 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15709 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15710 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15711 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15712 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15713 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15714 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15715 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15716 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15718 if test "X${MISSING}" != X; then
15719 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15720 $MISSING
15721 Maybe some development libraries/packages are missing?
15722 If you don't want to link with them give
15723 $WITH_NO
15724 as options to configure" >&5
15725 $as_echo "$as_me: error: The following required libraries were not found:
15726 $MISSING
15727 Maybe some development libraries/packages are missing?
15728 If you don't want to link with them give
15729 $WITH_NO
15730 as options to configure" >&2;}
15731 { (exit 1); exit 1; }; }
15735 ### Use -lgpm if available, unless `--with-gpm=no'.
15736 HAVE_GPM=no
15737 LIBGPM=
15738 if test "${with_gpm}" != "no"; then
15739 if test "${ac_cv_header_gpm_h+set}" = set; then
15740 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15741 $as_echo_n "checking for gpm.h... " >&6; }
15742 if test "${ac_cv_header_gpm_h+set}" = set; then
15743 $as_echo_n "(cached) " >&6
15745 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15746 $as_echo "$ac_cv_header_gpm_h" >&6; }
15747 else
15748 # Is the header compilable?
15749 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15750 $as_echo_n "checking gpm.h usability... " >&6; }
15751 cat >conftest.$ac_ext <<_ACEOF
15752 /* confdefs.h. */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15757 $ac_includes_default
15758 #include <gpm.h>
15759 _ACEOF
15760 rm -f conftest.$ac_objext
15761 if { (ac_try="$ac_compile"
15762 case "(($ac_try" in
15763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15765 esac
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768 (eval "$ac_compile") 2>conftest.er1
15769 ac_status=$?
15770 grep -v '^ *+' conftest.er1 >conftest.err
15771 rm -f conftest.er1
15772 cat conftest.err >&5
15773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest.$ac_objext; then
15778 ac_header_compiler=yes
15779 else
15780 $as_echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15783 ac_header_compiler=no
15786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15787 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15788 $as_echo "$ac_header_compiler" >&6; }
15790 # Is the header present?
15791 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15792 $as_echo_n "checking gpm.h presence... " >&6; }
15793 cat >conftest.$ac_ext <<_ACEOF
15794 /* confdefs.h. */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15799 #include <gpm.h>
15800 _ACEOF
15801 if { (ac_try="$ac_cpp conftest.$ac_ext"
15802 case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15805 esac
15806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15807 $as_echo "$ac_try_echo") >&5
15808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15809 ac_status=$?
15810 grep -v '^ *+' conftest.er1 >conftest.err
15811 rm -f conftest.er1
15812 cat conftest.err >&5
15813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } >/dev/null && {
15815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15816 test ! -s conftest.err
15817 }; then
15818 ac_header_preproc=yes
15819 else
15820 $as_echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15823 ac_header_preproc=no
15826 rm -f conftest.err conftest.$ac_ext
15827 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15828 $as_echo "$ac_header_preproc" >&6; }
15830 # So? What about this header?
15831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15832 yes:no: )
15833 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15834 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15835 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15836 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15837 ac_header_preproc=yes
15839 no:yes:* )
15840 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15841 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15842 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15843 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15844 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15845 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15846 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15847 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15848 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15849 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15850 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15851 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15854 esac
15855 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15856 $as_echo_n "checking for gpm.h... " >&6; }
15857 if test "${ac_cv_header_gpm_h+set}" = set; then
15858 $as_echo_n "(cached) " >&6
15859 else
15860 ac_cv_header_gpm_h=$ac_header_preproc
15862 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15863 $as_echo "$ac_cv_header_gpm_h" >&6; }
15866 if test $ac_cv_header_gpm_h = yes; then
15867 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15868 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15869 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15870 $as_echo_n "(cached) " >&6
15871 else
15872 ac_check_lib_save_LIBS=$LIBS
15873 LIBS="-lgpm $LIBS"
15874 cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h. */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15881 /* Override any GCC internal prototype to avoid an error.
15882 Use char because int might match the return type of a GCC
15883 builtin and then its argument prototype would still apply. */
15884 #ifdef __cplusplus
15885 extern "C"
15886 #endif
15887 char Gpm_Open ();
15889 main ()
15891 return Gpm_Open ();
15893 return 0;
15895 _ACEOF
15896 rm -f conftest.$ac_objext conftest$ac_exeext
15897 if { (ac_try="$ac_link"
15898 case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15901 esac
15902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15903 $as_echo "$ac_try_echo") >&5
15904 (eval "$ac_link") 2>conftest.er1
15905 ac_status=$?
15906 grep -v '^ *+' conftest.er1 >conftest.err
15907 rm -f conftest.er1
15908 cat conftest.err >&5
15909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } && {
15911 test -z "$ac_c_werror_flag" ||
15912 test ! -s conftest.err
15913 } && test -s conftest$ac_exeext && {
15914 test "$cross_compiling" = yes ||
15915 $as_test_x conftest$ac_exeext
15916 }; then
15917 ac_cv_lib_gpm_Gpm_Open=yes
15918 else
15919 $as_echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15922 ac_cv_lib_gpm_Gpm_Open=no
15925 rm -rf conftest.dSYM
15926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15927 conftest$ac_exeext conftest.$ac_ext
15928 LIBS=$ac_check_lib_save_LIBS
15930 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15931 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15932 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15933 HAVE_GPM=yes
15940 if test "${HAVE_GPM}" = "yes"; then
15942 cat >>confdefs.h <<\_ACEOF
15943 #define HAVE_GPM 1
15944 _ACEOF
15946 LIBGPM=-lgpm
15951 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15952 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15953 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15954 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15955 $as_echo_n "(cached) " >&6
15957 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15958 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15959 else
15960 # Is the header compilable?
15961 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15962 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15963 cat >conftest.$ac_ext <<_ACEOF
15964 /* confdefs.h. */
15965 _ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h. */
15969 $ac_includes_default
15970 #include <malloc/malloc.h>
15971 _ACEOF
15972 rm -f conftest.$ac_objext
15973 if { (ac_try="$ac_compile"
15974 case "(($ac_try" in
15975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15976 *) ac_try_echo=$ac_try;;
15977 esac
15978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15979 $as_echo "$ac_try_echo") >&5
15980 (eval "$ac_compile") 2>conftest.er1
15981 ac_status=$?
15982 grep -v '^ *+' conftest.er1 >conftest.err
15983 rm -f conftest.er1
15984 cat conftest.err >&5
15985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } && {
15987 test -z "$ac_c_werror_flag" ||
15988 test ! -s conftest.err
15989 } && test -s conftest.$ac_objext; then
15990 ac_header_compiler=yes
15991 else
15992 $as_echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15995 ac_header_compiler=no
15998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15999 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16000 $as_echo "$ac_header_compiler" >&6; }
16002 # Is the header present?
16003 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16004 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16005 cat >conftest.$ac_ext <<_ACEOF
16006 /* confdefs.h. */
16007 _ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 #include <malloc/malloc.h>
16012 _ACEOF
16013 if { (ac_try="$ac_cpp conftest.$ac_ext"
16014 case "(($ac_try" in
16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16017 esac
16018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16019 $as_echo "$ac_try_echo") >&5
16020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16021 ac_status=$?
16022 grep -v '^ *+' conftest.er1 >conftest.err
16023 rm -f conftest.er1
16024 cat conftest.err >&5
16025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } >/dev/null && {
16027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16028 test ! -s conftest.err
16029 }; then
16030 ac_header_preproc=yes
16031 else
16032 $as_echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16035 ac_header_preproc=no
16038 rm -f conftest.err conftest.$ac_ext
16039 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16040 $as_echo "$ac_header_preproc" >&6; }
16042 # So? What about this header?
16043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16044 yes:no: )
16045 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16046 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16047 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16048 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16049 ac_header_preproc=yes
16051 no:yes:* )
16052 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16053 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16054 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16055 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16056 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16057 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16058 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16059 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16060 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16061 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16062 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16063 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16066 esac
16067 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16068 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16069 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16070 $as_echo_n "(cached) " >&6
16071 else
16072 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16074 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16075 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16078 if test $ac_cv_header_malloc_malloc_h = yes; then
16080 cat >>confdefs.h <<\_ACEOF
16081 #define HAVE_MALLOC_MALLOC_H 1
16082 _ACEOF
16088 C_SWITCH_X_SYSTEM=
16089 ### Use NeXTstep API to implement GUI.
16090 if test "${HAVE_NS}" = "yes"; then
16092 cat >>confdefs.h <<\_ACEOF
16093 #define HAVE_NS 1
16094 _ACEOF
16096 if test "${NS_IMPL_COCOA}" = "yes"; then
16098 cat >>confdefs.h <<\_ACEOF
16099 #define NS_IMPL_COCOA 1
16100 _ACEOF
16102 GNU_OBJC_CFLAGS=
16104 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16106 cat >>confdefs.h <<\_ACEOF
16107 #define NS_IMPL_GNUSTEP 1
16108 _ACEOF
16110 # See also .m.o rule in Makefile.in */
16111 # FIXME: are all these flags really needed? Document here why. */
16112 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16113 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16115 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16117 cat >>confdefs.h <<\_ACEOF
16118 #define NS_HAVE_NSINTEGER 1
16119 _ACEOF
16122 # We also have mouse menus.
16123 HAVE_MENUS=yes
16124 OTHER_FILES=ns-app
16128 ### Use session management (-lSM -lICE) if available
16129 HAVE_X_SM=no
16130 LIBXSM=
16131 if test "${HAVE_X11}" = "yes"; then
16132 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16133 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16134 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16135 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16136 $as_echo_n "(cached) " >&6
16138 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16139 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16140 else
16141 # Is the header compilable?
16142 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16143 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16144 cat >conftest.$ac_ext <<_ACEOF
16145 /* confdefs.h. */
16146 _ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16150 $ac_includes_default
16151 #include <X11/SM/SMlib.h>
16152 _ACEOF
16153 rm -f conftest.$ac_objext
16154 if { (ac_try="$ac_compile"
16155 case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16158 esac
16159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16160 $as_echo "$ac_try_echo") >&5
16161 (eval "$ac_compile") 2>conftest.er1
16162 ac_status=$?
16163 grep -v '^ *+' conftest.er1 >conftest.err
16164 rm -f conftest.er1
16165 cat conftest.err >&5
16166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_c_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest.$ac_objext; then
16171 ac_header_compiler=yes
16172 else
16173 $as_echo "$as_me: failed program was:" >&5
16174 sed 's/^/| /' conftest.$ac_ext >&5
16176 ac_header_compiler=no
16179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16180 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16181 $as_echo "$ac_header_compiler" >&6; }
16183 # Is the header present?
16184 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16185 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16186 cat >conftest.$ac_ext <<_ACEOF
16187 /* confdefs.h. */
16188 _ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 #include <X11/SM/SMlib.h>
16193 _ACEOF
16194 if { (ac_try="$ac_cpp conftest.$ac_ext"
16195 case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16198 esac
16199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16200 $as_echo "$ac_try_echo") >&5
16201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16202 ac_status=$?
16203 grep -v '^ *+' conftest.er1 >conftest.err
16204 rm -f conftest.er1
16205 cat conftest.err >&5
16206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } >/dev/null && {
16208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16209 test ! -s conftest.err
16210 }; then
16211 ac_header_preproc=yes
16212 else
16213 $as_echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16216 ac_header_preproc=no
16219 rm -f conftest.err conftest.$ac_ext
16220 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16221 $as_echo "$ac_header_preproc" >&6; }
16223 # So? What about this header?
16224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16225 yes:no: )
16226 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16227 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16228 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16229 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16230 ac_header_preproc=yes
16232 no:yes:* )
16233 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16234 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16235 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16236 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16237 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16238 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16239 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16240 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16241 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16242 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16243 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16244 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16247 esac
16248 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16249 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16250 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16251 $as_echo_n "(cached) " >&6
16252 else
16253 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16255 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16256 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16259 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16260 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16261 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16262 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16263 $as_echo_n "(cached) " >&6
16264 else
16265 ac_check_lib_save_LIBS=$LIBS
16266 LIBS="-lSM -lICE $LIBS"
16267 cat >conftest.$ac_ext <<_ACEOF
16268 /* confdefs.h. */
16269 _ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h. */
16274 /* Override any GCC internal prototype to avoid an error.
16275 Use char because int might match the return type of a GCC
16276 builtin and then its argument prototype would still apply. */
16277 #ifdef __cplusplus
16278 extern "C"
16279 #endif
16280 char SmcOpenConnection ();
16282 main ()
16284 return SmcOpenConnection ();
16286 return 0;
16288 _ACEOF
16289 rm -f conftest.$ac_objext conftest$ac_exeext
16290 if { (ac_try="$ac_link"
16291 case "(($ac_try" in
16292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293 *) ac_try_echo=$ac_try;;
16294 esac
16295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16296 $as_echo "$ac_try_echo") >&5
16297 (eval "$ac_link") 2>conftest.er1
16298 ac_status=$?
16299 grep -v '^ *+' conftest.er1 >conftest.err
16300 rm -f conftest.er1
16301 cat conftest.err >&5
16302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } && {
16304 test -z "$ac_c_werror_flag" ||
16305 test ! -s conftest.err
16306 } && test -s conftest$ac_exeext && {
16307 test "$cross_compiling" = yes ||
16308 $as_test_x conftest$ac_exeext
16309 }; then
16310 ac_cv_lib_SM_SmcOpenConnection=yes
16311 else
16312 $as_echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16315 ac_cv_lib_SM_SmcOpenConnection=no
16318 rm -rf conftest.dSYM
16319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16320 conftest$ac_exeext conftest.$ac_ext
16321 LIBS=$ac_check_lib_save_LIBS
16323 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16324 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16325 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16326 HAVE_X_SM=yes
16333 if test "${HAVE_X_SM}" = "yes"; then
16335 cat >>confdefs.h <<\_ACEOF
16336 #define HAVE_X_SM 1
16337 _ACEOF
16339 LIBXSM="-lSM -lICE"
16340 case "$LIBS" in
16341 *-lSM*) ;;
16342 *) LIBS="$LIBXSM $LIBS" ;;
16343 esac
16348 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16349 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16350 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16351 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16352 $as_echo_n "(cached) " >&6
16353 else
16354 cat >conftest.$ac_ext <<_ACEOF
16355 /* confdefs.h. */
16356 _ACEOF
16357 cat confdefs.h >>conftest.$ac_ext
16358 cat >>conftest.$ac_ext <<_ACEOF
16359 /* end confdefs.h. */
16360 #include <netdb.h>
16362 main ()
16364 return h_errno;
16366 return 0;
16368 _ACEOF
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (ac_try="$ac_link"
16371 case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16374 esac
16375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16376 $as_echo "$ac_try_echo") >&5
16377 (eval "$ac_link") 2>conftest.er1
16378 ac_status=$?
16379 grep -v '^ *+' conftest.er1 >conftest.err
16380 rm -f conftest.er1
16381 cat conftest.err >&5
16382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } && {
16384 test -z "$ac_c_werror_flag" ||
16385 test ! -s conftest.err
16386 } && test -s conftest$ac_exeext && {
16387 test "$cross_compiling" = yes ||
16388 $as_test_x conftest$ac_exeext
16389 }; then
16390 emacs_cv_netdb_declares_h_errno=yes
16391 else
16392 $as_echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16395 emacs_cv_netdb_declares_h_errno=no
16398 rm -rf conftest.dSYM
16399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16400 conftest$ac_exeext conftest.$ac_ext
16402 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16403 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16404 if test $emacs_cv_netdb_declares_h_errno = yes; then
16406 cat >>confdefs.h <<\_ACEOF
16407 #define HAVE_H_ERRNO 1
16408 _ACEOF
16412 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16413 # for constant arguments. Useless!
16414 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16415 $as_echo_n "checking for working alloca.h... " >&6; }
16416 if test "${ac_cv_working_alloca_h+set}" = set; then
16417 $as_echo_n "(cached) " >&6
16418 else
16419 cat >conftest.$ac_ext <<_ACEOF
16420 /* confdefs.h. */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 #include <alloca.h>
16427 main ()
16429 char *p = (char *) alloca (2 * sizeof (int));
16430 if (p) return 0;
16432 return 0;
16434 _ACEOF
16435 rm -f conftest.$ac_objext conftest$ac_exeext
16436 if { (ac_try="$ac_link"
16437 case "(($ac_try" in
16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16440 esac
16441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16442 $as_echo "$ac_try_echo") >&5
16443 (eval "$ac_link") 2>conftest.er1
16444 ac_status=$?
16445 grep -v '^ *+' conftest.er1 >conftest.err
16446 rm -f conftest.er1
16447 cat conftest.err >&5
16448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } && {
16450 test -z "$ac_c_werror_flag" ||
16451 test ! -s conftest.err
16452 } && test -s conftest$ac_exeext && {
16453 test "$cross_compiling" = yes ||
16454 $as_test_x conftest$ac_exeext
16455 }; then
16456 ac_cv_working_alloca_h=yes
16457 else
16458 $as_echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 ac_cv_working_alloca_h=no
16464 rm -rf conftest.dSYM
16465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16466 conftest$ac_exeext conftest.$ac_ext
16468 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16469 $as_echo "$ac_cv_working_alloca_h" >&6; }
16470 if test $ac_cv_working_alloca_h = yes; then
16472 cat >>confdefs.h <<\_ACEOF
16473 #define HAVE_ALLOCA_H 1
16474 _ACEOF
16478 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16479 $as_echo_n "checking for alloca... " >&6; }
16480 if test "${ac_cv_func_alloca_works+set}" = set; then
16481 $as_echo_n "(cached) " >&6
16482 else
16483 cat >conftest.$ac_ext <<_ACEOF
16484 /* confdefs.h. */
16485 _ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16489 #ifdef __GNUC__
16490 # define alloca __builtin_alloca
16491 #else
16492 # ifdef _MSC_VER
16493 # include <malloc.h>
16494 # define alloca _alloca
16495 # else
16496 # ifdef HAVE_ALLOCA_H
16497 # include <alloca.h>
16498 # else
16499 # ifdef _AIX
16500 #pragma alloca
16501 # else
16502 # ifndef alloca /* predefined by HP cc +Olibcalls */
16503 char *alloca ();
16504 # endif
16505 # endif
16506 # endif
16507 # endif
16508 #endif
16511 main ()
16513 char *p = (char *) alloca (1);
16514 if (p) return 0;
16516 return 0;
16518 _ACEOF
16519 rm -f conftest.$ac_objext conftest$ac_exeext
16520 if { (ac_try="$ac_link"
16521 case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16524 esac
16525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16526 $as_echo "$ac_try_echo") >&5
16527 (eval "$ac_link") 2>conftest.er1
16528 ac_status=$?
16529 grep -v '^ *+' conftest.er1 >conftest.err
16530 rm -f conftest.er1
16531 cat conftest.err >&5
16532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } && {
16534 test -z "$ac_c_werror_flag" ||
16535 test ! -s conftest.err
16536 } && test -s conftest$ac_exeext && {
16537 test "$cross_compiling" = yes ||
16538 $as_test_x conftest$ac_exeext
16539 }; then
16540 ac_cv_func_alloca_works=yes
16541 else
16542 $as_echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16545 ac_cv_func_alloca_works=no
16548 rm -rf conftest.dSYM
16549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16550 conftest$ac_exeext conftest.$ac_ext
16552 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16553 $as_echo "$ac_cv_func_alloca_works" >&6; }
16555 if test $ac_cv_func_alloca_works = yes; then
16557 cat >>confdefs.h <<\_ACEOF
16558 #define HAVE_ALLOCA 1
16559 _ACEOF
16561 else
16562 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16563 # that cause trouble. Some versions do not even contain alloca or
16564 # contain a buggy version. If you still want to use their alloca,
16565 # use ar to extract alloca.o from them instead of compiling alloca.c.
16567 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16569 cat >>confdefs.h <<\_ACEOF
16570 #define C_ALLOCA 1
16571 _ACEOF
16574 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16575 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16576 if test "${ac_cv_os_cray+set}" = set; then
16577 $as_echo_n "(cached) " >&6
16578 else
16579 cat >conftest.$ac_ext <<_ACEOF
16580 /* confdefs.h. */
16581 _ACEOF
16582 cat confdefs.h >>conftest.$ac_ext
16583 cat >>conftest.$ac_ext <<_ACEOF
16584 /* end confdefs.h. */
16585 #if defined CRAY && ! defined CRAY2
16586 webecray
16587 #else
16588 wenotbecray
16589 #endif
16591 _ACEOF
16592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16593 $EGREP "webecray" >/dev/null 2>&1; then
16594 ac_cv_os_cray=yes
16595 else
16596 ac_cv_os_cray=no
16598 rm -f conftest*
16601 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16602 $as_echo "$ac_cv_os_cray" >&6; }
16603 if test $ac_cv_os_cray = yes; then
16604 for ac_func in _getb67 GETB67 getb67; do
16605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16606 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16607 $as_echo_n "checking for $ac_func... " >&6; }
16608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16609 $as_echo_n "(cached) " >&6
16610 else
16611 cat >conftest.$ac_ext <<_ACEOF
16612 /* confdefs.h. */
16613 _ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16619 #define $ac_func innocuous_$ac_func
16621 /* System header to define __stub macros and hopefully few prototypes,
16622 which can conflict with char $ac_func (); below.
16623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16624 <limits.h> exists even on freestanding compilers. */
16626 #ifdef __STDC__
16627 # include <limits.h>
16628 #else
16629 # include <assert.h>
16630 #endif
16632 #undef $ac_func
16634 /* Override any GCC internal prototype to avoid an error.
16635 Use char because int might match the return type of a GCC
16636 builtin and then its argument prototype would still apply. */
16637 #ifdef __cplusplus
16638 extern "C"
16639 #endif
16640 char $ac_func ();
16641 /* The GNU C library defines this for functions which it implements
16642 to always fail with ENOSYS. Some functions are actually named
16643 something starting with __ and the normal name is an alias. */
16644 #if defined __stub_$ac_func || defined __stub___$ac_func
16645 choke me
16646 #endif
16649 main ()
16651 return $ac_func ();
16653 return 0;
16655 _ACEOF
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (ac_try="$ac_link"
16658 case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16661 esac
16662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16663 $as_echo "$ac_try_echo") >&5
16664 (eval "$ac_link") 2>conftest.er1
16665 ac_status=$?
16666 grep -v '^ *+' conftest.er1 >conftest.err
16667 rm -f conftest.er1
16668 cat conftest.err >&5
16669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } && {
16671 test -z "$ac_c_werror_flag" ||
16672 test ! -s conftest.err
16673 } && test -s conftest$ac_exeext && {
16674 test "$cross_compiling" = yes ||
16675 $as_test_x conftest$ac_exeext
16676 }; then
16677 eval "$as_ac_var=yes"
16678 else
16679 $as_echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16682 eval "$as_ac_var=no"
16685 rm -rf conftest.dSYM
16686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16687 conftest$ac_exeext conftest.$ac_ext
16689 ac_res=`eval 'as_val=${'$as_ac_var'}
16690 $as_echo "$as_val"'`
16691 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16692 $as_echo "$ac_res" >&6; }
16693 if test `eval 'as_val=${'$as_ac_var'}
16694 $as_echo "$as_val"'` = yes; then
16696 cat >>confdefs.h <<_ACEOF
16697 #define CRAY_STACKSEG_END $ac_func
16698 _ACEOF
16700 break
16703 done
16706 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16707 $as_echo_n "checking stack direction for C alloca... " >&6; }
16708 if test "${ac_cv_c_stack_direction+set}" = set; then
16709 $as_echo_n "(cached) " >&6
16710 else
16711 if test "$cross_compiling" = yes; then
16712 ac_cv_c_stack_direction=0
16713 else
16714 cat >conftest.$ac_ext <<_ACEOF
16715 /* confdefs.h. */
16716 _ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16720 $ac_includes_default
16722 find_stack_direction ()
16724 static char *addr = 0;
16725 auto char dummy;
16726 if (addr == 0)
16728 addr = &dummy;
16729 return find_stack_direction ();
16731 else
16732 return (&dummy > addr) ? 1 : -1;
16736 main ()
16738 return find_stack_direction () < 0;
16740 _ACEOF
16741 rm -f conftest$ac_exeext
16742 if { (ac_try="$ac_link"
16743 case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16746 esac
16747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16748 $as_echo "$ac_try_echo") >&5
16749 (eval "$ac_link") 2>&5
16750 ac_status=$?
16751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16753 { (case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756 esac
16757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16758 $as_echo "$ac_try_echo") >&5
16759 (eval "$ac_try") 2>&5
16760 ac_status=$?
16761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; }; then
16763 ac_cv_c_stack_direction=1
16764 else
16765 $as_echo "$as_me: program exited with status $ac_status" >&5
16766 $as_echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 ( exit $ac_status )
16770 ac_cv_c_stack_direction=-1
16772 rm -rf conftest.dSYM
16773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16778 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16779 $as_echo "$ac_cv_c_stack_direction" >&6; }
16781 cat >>confdefs.h <<_ACEOF
16782 #define STACK_DIRECTION $ac_cv_c_stack_direction
16783 _ACEOF
16789 if test x"$ac_cv_func_alloca_works" != xyes; then
16790 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16791 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16792 { (exit 1); exit 1; }; }
16795 # fmod, logb, and frexp are found in -lm on most systems.
16796 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16798 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16799 $as_echo_n "checking for sqrt in -lm... " >&6; }
16800 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16801 $as_echo_n "(cached) " >&6
16802 else
16803 ac_check_lib_save_LIBS=$LIBS
16804 LIBS="-lm $LIBS"
16805 cat >conftest.$ac_ext <<_ACEOF
16806 /* confdefs.h. */
16807 _ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h. */
16812 /* Override any GCC internal prototype to avoid an error.
16813 Use char because int might match the return type of a GCC
16814 builtin and then its argument prototype would still apply. */
16815 #ifdef __cplusplus
16816 extern "C"
16817 #endif
16818 char sqrt ();
16820 main ()
16822 return sqrt ();
16824 return 0;
16826 _ACEOF
16827 rm -f conftest.$ac_objext conftest$ac_exeext
16828 if { (ac_try="$ac_link"
16829 case "(($ac_try" in
16830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831 *) ac_try_echo=$ac_try;;
16832 esac
16833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16834 $as_echo "$ac_try_echo") >&5
16835 (eval "$ac_link") 2>conftest.er1
16836 ac_status=$?
16837 grep -v '^ *+' conftest.er1 >conftest.err
16838 rm -f conftest.er1
16839 cat conftest.err >&5
16840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } && {
16842 test -z "$ac_c_werror_flag" ||
16843 test ! -s conftest.err
16844 } && test -s conftest$ac_exeext && {
16845 test "$cross_compiling" = yes ||
16846 $as_test_x conftest$ac_exeext
16847 }; then
16848 ac_cv_lib_m_sqrt=yes
16849 else
16850 $as_echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 ac_cv_lib_m_sqrt=no
16856 rm -rf conftest.dSYM
16857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16858 conftest$ac_exeext conftest.$ac_ext
16859 LIBS=$ac_check_lib_save_LIBS
16861 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16862 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16863 if test $ac_cv_lib_m_sqrt = yes; then
16864 cat >>confdefs.h <<_ACEOF
16865 #define HAVE_LIBM 1
16866 _ACEOF
16868 LIBS="-lm $LIBS"
16873 # Check for mail-locking functions in a "mail" library. Probably this should
16874 # have the same check as for liblockfile below.
16875 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16876 $as_echo_n "checking for maillock in -lmail... " >&6; }
16877 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16878 $as_echo_n "(cached) " >&6
16879 else
16880 ac_check_lib_save_LIBS=$LIBS
16881 LIBS="-lmail $LIBS"
16882 cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h. */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16889 /* Override any GCC internal prototype to avoid an error.
16890 Use char because int might match the return type of a GCC
16891 builtin and then its argument prototype would still apply. */
16892 #ifdef __cplusplus
16893 extern "C"
16894 #endif
16895 char maillock ();
16897 main ()
16899 return maillock ();
16901 return 0;
16903 _ACEOF
16904 rm -f conftest.$ac_objext conftest$ac_exeext
16905 if { (ac_try="$ac_link"
16906 case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16909 esac
16910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16911 $as_echo "$ac_try_echo") >&5
16912 (eval "$ac_link") 2>conftest.er1
16913 ac_status=$?
16914 grep -v '^ *+' conftest.er1 >conftest.err
16915 rm -f conftest.er1
16916 cat conftest.err >&5
16917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } && {
16919 test -z "$ac_c_werror_flag" ||
16920 test ! -s conftest.err
16921 } && test -s conftest$ac_exeext && {
16922 test "$cross_compiling" = yes ||
16923 $as_test_x conftest$ac_exeext
16924 }; then
16925 ac_cv_lib_mail_maillock=yes
16926 else
16927 $as_echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16930 ac_cv_lib_mail_maillock=no
16933 rm -rf conftest.dSYM
16934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16935 conftest$ac_exeext conftest.$ac_ext
16936 LIBS=$ac_check_lib_save_LIBS
16938 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16939 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16940 if test $ac_cv_lib_mail_maillock = yes; then
16941 have_mail=yes
16942 else
16943 have_mail=no
16946 if test $have_mail = yes; then
16947 LIBS_MAIL=-lmail
16948 LIBS="$LIBS_MAIL $LIBS"
16950 cat >>confdefs.h <<\_ACEOF
16951 #define HAVE_LIBMAIL 1
16952 _ACEOF
16954 else
16955 LIBS_MAIL=
16957 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16958 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16959 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16960 $as_echo_n "(cached) " >&6
16961 else
16962 ac_check_lib_save_LIBS=$LIBS
16963 LIBS="-llockfile $LIBS"
16964 cat >conftest.$ac_ext <<_ACEOF
16965 /* confdefs.h. */
16966 _ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h. */
16971 /* Override any GCC internal prototype to avoid an error.
16972 Use char because int might match the return type of a GCC
16973 builtin and then its argument prototype would still apply. */
16974 #ifdef __cplusplus
16975 extern "C"
16976 #endif
16977 char maillock ();
16979 main ()
16981 return maillock ();
16983 return 0;
16985 _ACEOF
16986 rm -f conftest.$ac_objext conftest$ac_exeext
16987 if { (ac_try="$ac_link"
16988 case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16991 esac
16992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16993 $as_echo "$ac_try_echo") >&5
16994 (eval "$ac_link") 2>conftest.er1
16995 ac_status=$?
16996 grep -v '^ *+' conftest.er1 >conftest.err
16997 rm -f conftest.er1
16998 cat conftest.err >&5
16999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } && {
17001 test -z "$ac_c_werror_flag" ||
17002 test ! -s conftest.err
17003 } && test -s conftest$ac_exeext && {
17004 test "$cross_compiling" = yes ||
17005 $as_test_x conftest$ac_exeext
17006 }; then
17007 ac_cv_lib_lockfile_maillock=yes
17008 else
17009 $as_echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 ac_cv_lib_lockfile_maillock=no
17015 rm -rf conftest.dSYM
17016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17017 conftest$ac_exeext conftest.$ac_ext
17018 LIBS=$ac_check_lib_save_LIBS
17020 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17021 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17022 if test $ac_cv_lib_lockfile_maillock = yes; then
17023 have_lockfile=yes
17024 else
17025 have_lockfile=no
17028 if test $have_lockfile = yes; then
17029 LIBS_MAIL=-llockfile
17030 LIBS="$LIBS_MAIL $LIBS"
17032 cat >>confdefs.h <<\_ACEOF
17033 #define HAVE_LIBLOCKFILE 1
17034 _ACEOF
17036 else
17037 # If we have the shared liblockfile, assume we must use it for mail
17038 # locking (e.g. Debian). If we couldn't link against liblockfile
17039 # (no liblockfile.a installed), ensure that we don't need to.
17040 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17041 set dummy liblockfile.so; ac_word=$2
17042 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17043 $as_echo_n "checking for $ac_word... " >&6; }
17044 if test "${ac_cv_prog_liblockfile+set}" = set; then
17045 $as_echo_n "(cached) " >&6
17046 else
17047 if test -n "$liblockfile"; then
17048 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17049 else
17050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17051 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17052 for as_dir in $as_dummy
17054 IFS=$as_save_IFS
17055 test -z "$as_dir" && as_dir=.
17056 for ac_exec_ext in '' $ac_executable_extensions; do
17057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17058 ac_cv_prog_liblockfile="yes"
17059 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17060 break 2
17062 done
17063 done
17064 IFS=$as_save_IFS
17066 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17069 liblockfile=$ac_cv_prog_liblockfile
17070 if test -n "$liblockfile"; then
17071 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17072 $as_echo "$liblockfile" >&6; }
17073 else
17074 { $as_echo "$as_me:$LINENO: result: no" >&5
17075 $as_echo "no" >&6; }
17079 if test $ac_cv_prog_liblockfile = yes; then
17080 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17081 This probably means that movemail could lose mail.
17082 There may be a \`development' package to install containing liblockfile." >&5
17083 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17084 This probably means that movemail could lose mail.
17085 There may be a \`development' package to install containing liblockfile." >&2;}
17086 { (exit 1); exit 1; }; }
17090 for ac_func in touchlock
17092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17093 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17094 $as_echo_n "checking for $ac_func... " >&6; }
17095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17096 $as_echo_n "(cached) " >&6
17097 else
17098 cat >conftest.$ac_ext <<_ACEOF
17099 /* confdefs.h. */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17106 #define $ac_func innocuous_$ac_func
17108 /* System header to define __stub macros and hopefully few prototypes,
17109 which can conflict with char $ac_func (); below.
17110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17111 <limits.h> exists even on freestanding compilers. */
17113 #ifdef __STDC__
17114 # include <limits.h>
17115 #else
17116 # include <assert.h>
17117 #endif
17119 #undef $ac_func
17121 /* Override any GCC internal prototype to avoid an error.
17122 Use char because int might match the return type of a GCC
17123 builtin and then its argument prototype would still apply. */
17124 #ifdef __cplusplus
17125 extern "C"
17126 #endif
17127 char $ac_func ();
17128 /* The GNU C library defines this for functions which it implements
17129 to always fail with ENOSYS. Some functions are actually named
17130 something starting with __ and the normal name is an alias. */
17131 #if defined __stub_$ac_func || defined __stub___$ac_func
17132 choke me
17133 #endif
17136 main ()
17138 return $ac_func ();
17140 return 0;
17142 _ACEOF
17143 rm -f conftest.$ac_objext conftest$ac_exeext
17144 if { (ac_try="$ac_link"
17145 case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17148 esac
17149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17150 $as_echo "$ac_try_echo") >&5
17151 (eval "$ac_link") 2>conftest.er1
17152 ac_status=$?
17153 grep -v '^ *+' conftest.er1 >conftest.err
17154 rm -f conftest.er1
17155 cat conftest.err >&5
17156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } && {
17158 test -z "$ac_c_werror_flag" ||
17159 test ! -s conftest.err
17160 } && test -s conftest$ac_exeext && {
17161 test "$cross_compiling" = yes ||
17162 $as_test_x conftest$ac_exeext
17163 }; then
17164 eval "$as_ac_var=yes"
17165 else
17166 $as_echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17169 eval "$as_ac_var=no"
17172 rm -rf conftest.dSYM
17173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17174 conftest$ac_exeext conftest.$ac_ext
17176 ac_res=`eval 'as_val=${'$as_ac_var'}
17177 $as_echo "$as_val"'`
17178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17179 $as_echo "$ac_res" >&6; }
17180 if test `eval 'as_val=${'$as_ac_var'}
17181 $as_echo "$as_val"'` = yes; then
17182 cat >>confdefs.h <<_ACEOF
17183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17184 _ACEOF
17187 done
17190 for ac_header in maillock.h
17192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17194 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17195 $as_echo_n "checking for $ac_header... " >&6; }
17196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17197 $as_echo_n "(cached) " >&6
17199 ac_res=`eval 'as_val=${'$as_ac_Header'}
17200 $as_echo "$as_val"'`
17201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17202 $as_echo "$ac_res" >&6; }
17203 else
17204 # Is the header compilable?
17205 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17206 $as_echo_n "checking $ac_header usability... " >&6; }
17207 cat >conftest.$ac_ext <<_ACEOF
17208 /* confdefs.h. */
17209 _ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h. */
17213 $ac_includes_default
17214 #include <$ac_header>
17215 _ACEOF
17216 rm -f conftest.$ac_objext
17217 if { (ac_try="$ac_compile"
17218 case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17221 esac
17222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17223 $as_echo "$ac_try_echo") >&5
17224 (eval "$ac_compile") 2>conftest.er1
17225 ac_status=$?
17226 grep -v '^ *+' conftest.er1 >conftest.err
17227 rm -f conftest.er1
17228 cat conftest.err >&5
17229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } && {
17231 test -z "$ac_c_werror_flag" ||
17232 test ! -s conftest.err
17233 } && test -s conftest.$ac_objext; then
17234 ac_header_compiler=yes
17235 else
17236 $as_echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17239 ac_header_compiler=no
17242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17243 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17244 $as_echo "$ac_header_compiler" >&6; }
17246 # Is the header present?
17247 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17248 $as_echo_n "checking $ac_header presence... " >&6; }
17249 cat >conftest.$ac_ext <<_ACEOF
17250 /* confdefs.h. */
17251 _ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17255 #include <$ac_header>
17256 _ACEOF
17257 if { (ac_try="$ac_cpp conftest.$ac_ext"
17258 case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17261 esac
17262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17263 $as_echo "$ac_try_echo") >&5
17264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17265 ac_status=$?
17266 grep -v '^ *+' conftest.er1 >conftest.err
17267 rm -f conftest.er1
17268 cat conftest.err >&5
17269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } >/dev/null && {
17271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17272 test ! -s conftest.err
17273 }; then
17274 ac_header_preproc=yes
17275 else
17276 $as_echo "$as_me: failed program was:" >&5
17277 sed 's/^/| /' conftest.$ac_ext >&5
17279 ac_header_preproc=no
17282 rm -f conftest.err conftest.$ac_ext
17283 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17284 $as_echo "$ac_header_preproc" >&6; }
17286 # So? What about this header?
17287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17288 yes:no: )
17289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17290 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17293 ac_header_preproc=yes
17295 no:yes:* )
17296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17297 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17299 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17301 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17303 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17305 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17307 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17310 esac
17311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17312 $as_echo_n "checking for $ac_header... " >&6; }
17313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17314 $as_echo_n "(cached) " >&6
17315 else
17316 eval "$as_ac_Header=\$ac_header_preproc"
17318 ac_res=`eval 'as_val=${'$as_ac_Header'}
17319 $as_echo "$as_val"'`
17320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17321 $as_echo "$ac_res" >&6; }
17324 if test `eval 'as_val=${'$as_ac_Header'}
17325 $as_echo "$as_val"'` = yes; then
17326 cat >>confdefs.h <<_ACEOF
17327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17328 _ACEOF
17332 done
17407 for ac_func in gethostname getdomainname dup2 \
17408 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17409 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17410 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17411 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17412 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17413 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17414 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17415 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17416 cfmakeraw cfsetspeed
17418 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17419 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17420 $as_echo_n "checking for $ac_func... " >&6; }
17421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17422 $as_echo_n "(cached) " >&6
17423 else
17424 cat >conftest.$ac_ext <<_ACEOF
17425 /* confdefs.h. */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17432 #define $ac_func innocuous_$ac_func
17434 /* System header to define __stub macros and hopefully few prototypes,
17435 which can conflict with char $ac_func (); below.
17436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17437 <limits.h> exists even on freestanding compilers. */
17439 #ifdef __STDC__
17440 # include <limits.h>
17441 #else
17442 # include <assert.h>
17443 #endif
17445 #undef $ac_func
17447 /* Override any GCC internal prototype to avoid an error.
17448 Use char because int might match the return type of a GCC
17449 builtin and then its argument prototype would still apply. */
17450 #ifdef __cplusplus
17451 extern "C"
17452 #endif
17453 char $ac_func ();
17454 /* The GNU C library defines this for functions which it implements
17455 to always fail with ENOSYS. Some functions are actually named
17456 something starting with __ and the normal name is an alias. */
17457 #if defined __stub_$ac_func || defined __stub___$ac_func
17458 choke me
17459 #endif
17462 main ()
17464 return $ac_func ();
17466 return 0;
17468 _ACEOF
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (ac_try="$ac_link"
17471 case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17474 esac
17475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17476 $as_echo "$ac_try_echo") >&5
17477 (eval "$ac_link") 2>conftest.er1
17478 ac_status=$?
17479 grep -v '^ *+' conftest.er1 >conftest.err
17480 rm -f conftest.er1
17481 cat conftest.err >&5
17482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } && {
17484 test -z "$ac_c_werror_flag" ||
17485 test ! -s conftest.err
17486 } && test -s conftest$ac_exeext && {
17487 test "$cross_compiling" = yes ||
17488 $as_test_x conftest$ac_exeext
17489 }; then
17490 eval "$as_ac_var=yes"
17491 else
17492 $as_echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17495 eval "$as_ac_var=no"
17498 rm -rf conftest.dSYM
17499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17500 conftest$ac_exeext conftest.$ac_ext
17502 ac_res=`eval 'as_val=${'$as_ac_var'}
17503 $as_echo "$as_val"'`
17504 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17505 $as_echo "$ac_res" >&6; }
17506 if test `eval 'as_val=${'$as_ac_var'}
17507 $as_echo "$as_val"'` = yes; then
17508 cat >>confdefs.h <<_ACEOF
17509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17510 _ACEOF
17513 done
17517 for ac_header in sys/un.h
17519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17521 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17522 $as_echo_n "checking for $ac_header... " >&6; }
17523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17524 $as_echo_n "(cached) " >&6
17526 ac_res=`eval 'as_val=${'$as_ac_Header'}
17527 $as_echo "$as_val"'`
17528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17529 $as_echo "$ac_res" >&6; }
17530 else
17531 # Is the header compilable?
17532 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17533 $as_echo_n "checking $ac_header usability... " >&6; }
17534 cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h. */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17540 $ac_includes_default
17541 #include <$ac_header>
17542 _ACEOF
17543 rm -f conftest.$ac_objext
17544 if { (ac_try="$ac_compile"
17545 case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17548 esac
17549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17550 $as_echo "$ac_try_echo") >&5
17551 (eval "$ac_compile") 2>conftest.er1
17552 ac_status=$?
17553 grep -v '^ *+' conftest.er1 >conftest.err
17554 rm -f conftest.er1
17555 cat conftest.err >&5
17556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); } && {
17558 test -z "$ac_c_werror_flag" ||
17559 test ! -s conftest.err
17560 } && test -s conftest.$ac_objext; then
17561 ac_header_compiler=yes
17562 else
17563 $as_echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17566 ac_header_compiler=no
17569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17570 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17571 $as_echo "$ac_header_compiler" >&6; }
17573 # Is the header present?
17574 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17575 $as_echo_n "checking $ac_header presence... " >&6; }
17576 cat >conftest.$ac_ext <<_ACEOF
17577 /* confdefs.h. */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17582 #include <$ac_header>
17583 _ACEOF
17584 if { (ac_try="$ac_cpp conftest.$ac_ext"
17585 case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17588 esac
17589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17590 $as_echo "$ac_try_echo") >&5
17591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17592 ac_status=$?
17593 grep -v '^ *+' conftest.er1 >conftest.err
17594 rm -f conftest.er1
17595 cat conftest.err >&5
17596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } >/dev/null && {
17598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17599 test ! -s conftest.err
17600 }; then
17601 ac_header_preproc=yes
17602 else
17603 $as_echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_header_preproc=no
17609 rm -f conftest.err conftest.$ac_ext
17610 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17611 $as_echo "$ac_header_preproc" >&6; }
17613 # So? What about this header?
17614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17615 yes:no: )
17616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17617 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17619 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17620 ac_header_preproc=yes
17622 no:yes:* )
17623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17624 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17626 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17628 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17630 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17632 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17634 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17637 esac
17638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17639 $as_echo_n "checking for $ac_header... " >&6; }
17640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17641 $as_echo_n "(cached) " >&6
17642 else
17643 eval "$as_ac_Header=\$ac_header_preproc"
17645 ac_res=`eval 'as_val=${'$as_ac_Header'}
17646 $as_echo "$as_val"'`
17647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17648 $as_echo "$ac_res" >&6; }
17651 if test `eval 'as_val=${'$as_ac_Header'}
17652 $as_echo "$as_val"'` = yes; then
17653 cat >>confdefs.h <<_ACEOF
17654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17655 _ACEOF
17659 done
17666 for ac_header in $ac_header_list
17668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17670 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17671 $as_echo_n "checking for $ac_header... " >&6; }
17672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17673 $as_echo_n "(cached) " >&6
17675 ac_res=`eval 'as_val=${'$as_ac_Header'}
17676 $as_echo "$as_val"'`
17677 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17678 $as_echo "$ac_res" >&6; }
17679 else
17680 # Is the header compilable?
17681 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17682 $as_echo_n "checking $ac_header usability... " >&6; }
17683 cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h. */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 $ac_includes_default
17690 #include <$ac_header>
17691 _ACEOF
17692 rm -f conftest.$ac_objext
17693 if { (ac_try="$ac_compile"
17694 case "(($ac_try" in
17695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696 *) ac_try_echo=$ac_try;;
17697 esac
17698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17699 $as_echo "$ac_try_echo") >&5
17700 (eval "$ac_compile") 2>conftest.er1
17701 ac_status=$?
17702 grep -v '^ *+' conftest.er1 >conftest.err
17703 rm -f conftest.er1
17704 cat conftest.err >&5
17705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } && {
17707 test -z "$ac_c_werror_flag" ||
17708 test ! -s conftest.err
17709 } && test -s conftest.$ac_objext; then
17710 ac_header_compiler=yes
17711 else
17712 $as_echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17715 ac_header_compiler=no
17718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17719 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17720 $as_echo "$ac_header_compiler" >&6; }
17722 # Is the header present?
17723 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17724 $as_echo_n "checking $ac_header presence... " >&6; }
17725 cat >conftest.$ac_ext <<_ACEOF
17726 /* confdefs.h. */
17727 _ACEOF
17728 cat confdefs.h >>conftest.$ac_ext
17729 cat >>conftest.$ac_ext <<_ACEOF
17730 /* end confdefs.h. */
17731 #include <$ac_header>
17732 _ACEOF
17733 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
17747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17748 test ! -s conftest.err
17749 }; then
17750 ac_header_preproc=yes
17751 else
17752 $as_echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17755 ac_header_preproc=no
17758 rm -f conftest.err conftest.$ac_ext
17759 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17760 $as_echo "$ac_header_preproc" >&6; }
17762 # So? What about this header?
17763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17764 yes:no: )
17765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17766 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17768 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17769 ac_header_preproc=yes
17771 no:yes:* )
17772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17773 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17775 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17777 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17779 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17781 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17783 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17786 esac
17787 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17788 $as_echo_n "checking for $ac_header... " >&6; }
17789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17790 $as_echo_n "(cached) " >&6
17791 else
17792 eval "$as_ac_Header=\$ac_header_preproc"
17794 ac_res=`eval 'as_val=${'$as_ac_Header'}
17795 $as_echo "$as_val"'`
17796 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17797 $as_echo "$ac_res" >&6; }
17800 if test `eval 'as_val=${'$as_ac_Header'}
17801 $as_echo "$as_val"'` = yes; then
17802 cat >>confdefs.h <<_ACEOF
17803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17804 _ACEOF
17808 done
17818 for ac_func in $ac_func_list
17820 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17821 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17822 $as_echo_n "checking for $ac_func... " >&6; }
17823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17824 $as_echo_n "(cached) " >&6
17825 else
17826 cat >conftest.$ac_ext <<_ACEOF
17827 /* confdefs.h. */
17828 _ACEOF
17829 cat confdefs.h >>conftest.$ac_ext
17830 cat >>conftest.$ac_ext <<_ACEOF
17831 /* end confdefs.h. */
17832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17834 #define $ac_func innocuous_$ac_func
17836 /* System header to define __stub macros and hopefully few prototypes,
17837 which can conflict with char $ac_func (); below.
17838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17839 <limits.h> exists even on freestanding compilers. */
17841 #ifdef __STDC__
17842 # include <limits.h>
17843 #else
17844 # include <assert.h>
17845 #endif
17847 #undef $ac_func
17849 /* Override any GCC internal prototype to avoid an error.
17850 Use char because int might match the return type of a GCC
17851 builtin and then its argument prototype would still apply. */
17852 #ifdef __cplusplus
17853 extern "C"
17854 #endif
17855 char $ac_func ();
17856 /* The GNU C library defines this for functions which it implements
17857 to always fail with ENOSYS. Some functions are actually named
17858 something starting with __ and the normal name is an alias. */
17859 #if defined __stub_$ac_func || defined __stub___$ac_func
17860 choke me
17861 #endif
17864 main ()
17866 return $ac_func ();
17868 return 0;
17870 _ACEOF
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (ac_try="$ac_link"
17873 case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17876 esac
17877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17878 $as_echo "$ac_try_echo") >&5
17879 (eval "$ac_link") 2>conftest.er1
17880 ac_status=$?
17881 grep -v '^ *+' conftest.er1 >conftest.err
17882 rm -f conftest.er1
17883 cat conftest.err >&5
17884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } && {
17886 test -z "$ac_c_werror_flag" ||
17887 test ! -s conftest.err
17888 } && test -s conftest$ac_exeext && {
17889 test "$cross_compiling" = yes ||
17890 $as_test_x conftest$ac_exeext
17891 }; then
17892 eval "$as_ac_var=yes"
17893 else
17894 $as_echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17897 eval "$as_ac_var=no"
17900 rm -rf conftest.dSYM
17901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17902 conftest$ac_exeext conftest.$ac_ext
17904 ac_res=`eval 'as_val=${'$as_ac_var'}
17905 $as_echo "$as_val"'`
17906 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17907 $as_echo "$ac_res" >&6; }
17908 if test `eval 'as_val=${'$as_ac_var'}
17909 $as_echo "$as_val"'` = yes; then
17910 cat >>confdefs.h <<_ACEOF
17911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17912 _ACEOF
17915 done
17933 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17934 $as_echo_n "checking for working mktime... " >&6; }
17935 if test "${ac_cv_func_working_mktime+set}" = set; then
17936 $as_echo_n "(cached) " >&6
17937 else
17938 if test "$cross_compiling" = yes; then
17939 ac_cv_func_working_mktime=no
17940 else
17941 cat >conftest.$ac_ext <<_ACEOF
17942 /* confdefs.h. */
17943 _ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 /* Test program from Paul Eggert and Tony Leneis. */
17948 #ifdef TIME_WITH_SYS_TIME
17949 # include <sys/time.h>
17950 # include <time.h>
17951 #else
17952 # ifdef HAVE_SYS_TIME_H
17953 # include <sys/time.h>
17954 # else
17955 # include <time.h>
17956 # endif
17957 #endif
17959 #include <limits.h>
17960 #include <stdlib.h>
17962 #ifdef HAVE_UNISTD_H
17963 # include <unistd.h>
17964 #endif
17966 #ifndef HAVE_ALARM
17967 # define alarm(X) /* empty */
17968 #endif
17970 /* Work around redefinition to rpl_putenv by other config tests. */
17971 #undef putenv
17973 static time_t time_t_max;
17974 static time_t time_t_min;
17976 /* Values we'll use to set the TZ environment variable. */
17977 static char *tz_strings[] = {
17978 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17979 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17981 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17983 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17984 Based on a problem report from Andreas Jaeger. */
17985 static int
17986 spring_forward_gap ()
17988 /* glibc (up to about 1998-10-07) failed this test. */
17989 struct tm tm;
17991 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17992 instead of "TZ=America/Vancouver" in order to detect the bug even
17993 on systems that don't support the Olson extension, or don't have the
17994 full zoneinfo tables installed. */
17995 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17997 tm.tm_year = 98;
17998 tm.tm_mon = 3;
17999 tm.tm_mday = 5;
18000 tm.tm_hour = 2;
18001 tm.tm_min = 0;
18002 tm.tm_sec = 0;
18003 tm.tm_isdst = -1;
18004 return mktime (&tm) != (time_t) -1;
18007 static int
18008 mktime_test1 (now)
18009 time_t now;
18011 struct tm *lt;
18012 return ! (lt = localtime (&now)) || mktime (lt) == now;
18015 static int
18016 mktime_test (now)
18017 time_t now;
18019 return (mktime_test1 (now)
18020 && mktime_test1 ((time_t) (time_t_max - now))
18021 && mktime_test1 ((time_t) (time_t_min + now)));
18024 static int
18025 irix_6_4_bug ()
18027 /* Based on code from Ariel Faigon. */
18028 struct tm tm;
18029 tm.tm_year = 96;
18030 tm.tm_mon = 3;
18031 tm.tm_mday = 0;
18032 tm.tm_hour = 0;
18033 tm.tm_min = 0;
18034 tm.tm_sec = 0;
18035 tm.tm_isdst = -1;
18036 mktime (&tm);
18037 return tm.tm_mon == 2 && tm.tm_mday == 31;
18040 static int
18041 bigtime_test (j)
18042 int j;
18044 struct tm tm;
18045 time_t now;
18046 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18047 now = mktime (&tm);
18048 if (now != (time_t) -1)
18050 struct tm *lt = localtime (&now);
18051 if (! (lt
18052 && lt->tm_year == tm.tm_year
18053 && lt->tm_mon == tm.tm_mon
18054 && lt->tm_mday == tm.tm_mday
18055 && lt->tm_hour == tm.tm_hour
18056 && lt->tm_min == tm.tm_min
18057 && lt->tm_sec == tm.tm_sec
18058 && lt->tm_yday == tm.tm_yday
18059 && lt->tm_wday == tm.tm_wday
18060 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18061 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18062 return 0;
18064 return 1;
18067 static int
18068 year_2050_test ()
18070 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18071 ignoring leap seconds. */
18072 unsigned long int answer = 2527315200UL;
18074 struct tm tm;
18075 time_t t;
18076 tm.tm_year = 2050 - 1900;
18077 tm.tm_mon = 2 - 1;
18078 tm.tm_mday = 1;
18079 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18080 tm.tm_isdst = -1;
18082 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18083 instead of "TZ=America/Vancouver" in order to detect the bug even
18084 on systems that don't support the Olson extension, or don't have the
18085 full zoneinfo tables installed. */
18086 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18088 t = mktime (&tm);
18090 /* Check that the result is either a failure, or close enough
18091 to the correct answer that we can assume the discrepancy is
18092 due to leap seconds. */
18093 return (t == (time_t) -1
18094 || (0 < t && answer - 120 <= t && t <= answer + 120));
18098 main ()
18100 time_t t, delta;
18101 int i, j;
18103 /* This test makes some buggy mktime implementations loop.
18104 Give up after 60 seconds; a mktime slower than that
18105 isn't worth using anyway. */
18106 alarm (60);
18108 for (;;)
18110 t = (time_t_max << 1) + 1;
18111 if (t <= time_t_max)
18112 break;
18113 time_t_max = t;
18115 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18117 delta = time_t_max / 997; /* a suitable prime number */
18118 for (i = 0; i < N_STRINGS; i++)
18120 if (tz_strings[i])
18121 putenv (tz_strings[i]);
18123 for (t = 0; t <= time_t_max - delta; t += delta)
18124 if (! mktime_test (t))
18125 return 1;
18126 if (! (mktime_test ((time_t) 1)
18127 && mktime_test ((time_t) (60 * 60))
18128 && mktime_test ((time_t) (60 * 60 * 24))))
18129 return 1;
18131 for (j = 1; ; j <<= 1)
18132 if (! bigtime_test (j))
18133 return 1;
18134 else if (INT_MAX / 2 < j)
18135 break;
18136 if (! bigtime_test (INT_MAX))
18137 return 1;
18139 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18141 _ACEOF
18142 rm -f conftest$ac_exeext
18143 if { (ac_try="$ac_link"
18144 case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18147 esac
18148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18149 $as_echo "$ac_try_echo") >&5
18150 (eval "$ac_link") 2>&5
18151 ac_status=$?
18152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18154 { (case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18157 esac
18158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18159 $as_echo "$ac_try_echo") >&5
18160 (eval "$ac_try") 2>&5
18161 ac_status=$?
18162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; }; then
18164 ac_cv_func_working_mktime=yes
18165 else
18166 $as_echo "$as_me: program exited with status $ac_status" >&5
18167 $as_echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18170 ( exit $ac_status )
18171 ac_cv_func_working_mktime=no
18173 rm -rf conftest.dSYM
18174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18179 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18180 $as_echo "$ac_cv_func_working_mktime" >&6; }
18181 if test $ac_cv_func_working_mktime = no; then
18182 case " $LIBOBJS " in
18183 *" mktime.$ac_objext "* ) ;;
18184 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18186 esac
18190 if test "$ac_cv_func_working_mktime" = no; then
18192 cat >>confdefs.h <<\_ACEOF
18193 #define BROKEN_MKTIME 1
18194 _ACEOF
18198 ac_have_func=no # yes means we've found a way to get the load average.
18200 # Make sure getloadavg.c is where it belongs, at configure-time.
18201 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18202 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18203 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18204 { (exit 1); exit 1; }; }
18206 ac_save_LIBS=$LIBS
18208 # Check for getloadavg, but be sure not to touch the cache variable.
18209 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18210 $as_echo_n "checking for getloadavg... " >&6; }
18211 if test "${ac_cv_func_getloadavg+set}" = set; then
18212 $as_echo_n "(cached) " >&6
18213 else
18214 cat >conftest.$ac_ext <<_ACEOF
18215 /* confdefs.h. */
18216 _ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18220 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18222 #define getloadavg innocuous_getloadavg
18224 /* System header to define __stub macros and hopefully few prototypes,
18225 which can conflict with char getloadavg (); below.
18226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18227 <limits.h> exists even on freestanding compilers. */
18229 #ifdef __STDC__
18230 # include <limits.h>
18231 #else
18232 # include <assert.h>
18233 #endif
18235 #undef getloadavg
18237 /* Override any GCC internal prototype to avoid an error.
18238 Use char because int might match the return type of a GCC
18239 builtin and then its argument prototype would still apply. */
18240 #ifdef __cplusplus
18241 extern "C"
18242 #endif
18243 char getloadavg ();
18244 /* The GNU C library defines this for functions which it implements
18245 to always fail with ENOSYS. Some functions are actually named
18246 something starting with __ and the normal name is an alias. */
18247 #if defined __stub_getloadavg || defined __stub___getloadavg
18248 choke me
18249 #endif
18252 main ()
18254 return getloadavg ();
18256 return 0;
18258 _ACEOF
18259 rm -f conftest.$ac_objext conftest$ac_exeext
18260 if { (ac_try="$ac_link"
18261 case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18264 esac
18265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18266 $as_echo "$ac_try_echo") >&5
18267 (eval "$ac_link") 2>conftest.er1
18268 ac_status=$?
18269 grep -v '^ *+' conftest.er1 >conftest.err
18270 rm -f conftest.er1
18271 cat conftest.err >&5
18272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } && {
18274 test -z "$ac_c_werror_flag" ||
18275 test ! -s conftest.err
18276 } && test -s conftest$ac_exeext && {
18277 test "$cross_compiling" = yes ||
18278 $as_test_x conftest$ac_exeext
18279 }; then
18280 ac_cv_func_getloadavg=yes
18281 else
18282 $as_echo "$as_me: failed program was:" >&5
18283 sed 's/^/| /' conftest.$ac_ext >&5
18285 ac_cv_func_getloadavg=no
18288 rm -rf conftest.dSYM
18289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18290 conftest$ac_exeext conftest.$ac_ext
18292 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18293 $as_echo "$ac_cv_func_getloadavg" >&6; }
18294 if test $ac_cv_func_getloadavg = yes; then
18295 exit 0
18296 else
18297 exit 1
18299 ) && ac_have_func=yes
18301 # On HPUX9, an unprivileged user can get load averages through this function.
18303 for ac_func in pstat_getdynamic
18305 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18306 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18307 $as_echo_n "checking for $ac_func... " >&6; }
18308 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18309 $as_echo_n "(cached) " >&6
18310 else
18311 cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h. */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18319 #define $ac_func innocuous_$ac_func
18321 /* System header to define __stub macros and hopefully few prototypes,
18322 which can conflict with char $ac_func (); below.
18323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18324 <limits.h> exists even on freestanding compilers. */
18326 #ifdef __STDC__
18327 # include <limits.h>
18328 #else
18329 # include <assert.h>
18330 #endif
18332 #undef $ac_func
18334 /* Override any GCC internal prototype to avoid an error.
18335 Use char because int might match the return type of a GCC
18336 builtin and then its argument prototype would still apply. */
18337 #ifdef __cplusplus
18338 extern "C"
18339 #endif
18340 char $ac_func ();
18341 /* The GNU C library defines this for functions which it implements
18342 to always fail with ENOSYS. Some functions are actually named
18343 something starting with __ and the normal name is an alias. */
18344 #if defined __stub_$ac_func || defined __stub___$ac_func
18345 choke me
18346 #endif
18349 main ()
18351 return $ac_func ();
18353 return 0;
18355 _ACEOF
18356 rm -f conftest.$ac_objext conftest$ac_exeext
18357 if { (ac_try="$ac_link"
18358 case "(($ac_try" in
18359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360 *) ac_try_echo=$ac_try;;
18361 esac
18362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18363 $as_echo "$ac_try_echo") >&5
18364 (eval "$ac_link") 2>conftest.er1
18365 ac_status=$?
18366 grep -v '^ *+' conftest.er1 >conftest.err
18367 rm -f conftest.er1
18368 cat conftest.err >&5
18369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } && {
18371 test -z "$ac_c_werror_flag" ||
18372 test ! -s conftest.err
18373 } && test -s conftest$ac_exeext && {
18374 test "$cross_compiling" = yes ||
18375 $as_test_x conftest$ac_exeext
18376 }; then
18377 eval "$as_ac_var=yes"
18378 else
18379 $as_echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18382 eval "$as_ac_var=no"
18385 rm -rf conftest.dSYM
18386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18387 conftest$ac_exeext conftest.$ac_ext
18389 ac_res=`eval 'as_val=${'$as_ac_var'}
18390 $as_echo "$as_val"'`
18391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18392 $as_echo "$ac_res" >&6; }
18393 if test `eval 'as_val=${'$as_ac_var'}
18394 $as_echo "$as_val"'` = yes; then
18395 cat >>confdefs.h <<_ACEOF
18396 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18397 _ACEOF
18400 done
18403 # Solaris has libkstat which does not require root.
18405 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18406 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18407 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18408 $as_echo_n "(cached) " >&6
18409 else
18410 ac_check_lib_save_LIBS=$LIBS
18411 LIBS="-lkstat $LIBS"
18412 cat >conftest.$ac_ext <<_ACEOF
18413 /* confdefs.h. */
18414 _ACEOF
18415 cat confdefs.h >>conftest.$ac_ext
18416 cat >>conftest.$ac_ext <<_ACEOF
18417 /* end confdefs.h. */
18419 /* Override any GCC internal prototype to avoid an error.
18420 Use char because int might match the return type of a GCC
18421 builtin and then its argument prototype would still apply. */
18422 #ifdef __cplusplus
18423 extern "C"
18424 #endif
18425 char kstat_open ();
18427 main ()
18429 return kstat_open ();
18431 return 0;
18433 _ACEOF
18434 rm -f conftest.$ac_objext conftest$ac_exeext
18435 if { (ac_try="$ac_link"
18436 case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18439 esac
18440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18441 $as_echo "$ac_try_echo") >&5
18442 (eval "$ac_link") 2>conftest.er1
18443 ac_status=$?
18444 grep -v '^ *+' conftest.er1 >conftest.err
18445 rm -f conftest.er1
18446 cat conftest.err >&5
18447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } && {
18449 test -z "$ac_c_werror_flag" ||
18450 test ! -s conftest.err
18451 } && test -s conftest$ac_exeext && {
18452 test "$cross_compiling" = yes ||
18453 $as_test_x conftest$ac_exeext
18454 }; then
18455 ac_cv_lib_kstat_kstat_open=yes
18456 else
18457 $as_echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18460 ac_cv_lib_kstat_kstat_open=no
18463 rm -rf conftest.dSYM
18464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18465 conftest$ac_exeext conftest.$ac_ext
18466 LIBS=$ac_check_lib_save_LIBS
18468 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18469 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18470 if test $ac_cv_lib_kstat_kstat_open = yes; then
18471 cat >>confdefs.h <<_ACEOF
18472 #define HAVE_LIBKSTAT 1
18473 _ACEOF
18475 LIBS="-lkstat $LIBS"
18479 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18481 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18482 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18483 # to get the right answer into the cache.
18484 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18485 if test $ac_have_func = no; then
18486 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18487 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18488 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18489 $as_echo_n "(cached) " >&6
18490 else
18491 ac_check_lib_save_LIBS=$LIBS
18492 LIBS="-lelf $LIBS"
18493 cat >conftest.$ac_ext <<_ACEOF
18494 /* confdefs.h. */
18495 _ACEOF
18496 cat confdefs.h >>conftest.$ac_ext
18497 cat >>conftest.$ac_ext <<_ACEOF
18498 /* end confdefs.h. */
18500 /* Override any GCC internal prototype to avoid an error.
18501 Use char because int might match the return type of a GCC
18502 builtin and then its argument prototype would still apply. */
18503 #ifdef __cplusplus
18504 extern "C"
18505 #endif
18506 char elf_begin ();
18508 main ()
18510 return elf_begin ();
18512 return 0;
18514 _ACEOF
18515 rm -f conftest.$ac_objext conftest$ac_exeext
18516 if { (ac_try="$ac_link"
18517 case "(($ac_try" in
18518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519 *) ac_try_echo=$ac_try;;
18520 esac
18521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18522 $as_echo "$ac_try_echo") >&5
18523 (eval "$ac_link") 2>conftest.er1
18524 ac_status=$?
18525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
18528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } && {
18530 test -z "$ac_c_werror_flag" ||
18531 test ! -s conftest.err
18532 } && test -s conftest$ac_exeext && {
18533 test "$cross_compiling" = yes ||
18534 $as_test_x conftest$ac_exeext
18535 }; then
18536 ac_cv_lib_elf_elf_begin=yes
18537 else
18538 $as_echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18541 ac_cv_lib_elf_elf_begin=no
18544 rm -rf conftest.dSYM
18545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18546 conftest$ac_exeext conftest.$ac_ext
18547 LIBS=$ac_check_lib_save_LIBS
18549 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18550 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18551 if test $ac_cv_lib_elf_elf_begin = yes; then
18552 LIBS="-lelf $LIBS"
18556 if test $ac_have_func = no; then
18557 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18558 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18559 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18560 $as_echo_n "(cached) " >&6
18561 else
18562 ac_check_lib_save_LIBS=$LIBS
18563 LIBS="-lkvm $LIBS"
18564 cat >conftest.$ac_ext <<_ACEOF
18565 /* confdefs.h. */
18566 _ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18571 /* Override any GCC internal prototype to avoid an error.
18572 Use char because int might match the return type of a GCC
18573 builtin and then its argument prototype would still apply. */
18574 #ifdef __cplusplus
18575 extern "C"
18576 #endif
18577 char kvm_open ();
18579 main ()
18581 return kvm_open ();
18583 return 0;
18585 _ACEOF
18586 rm -f conftest.$ac_objext conftest$ac_exeext
18587 if { (ac_try="$ac_link"
18588 case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18591 esac
18592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18593 $as_echo "$ac_try_echo") >&5
18594 (eval "$ac_link") 2>conftest.er1
18595 ac_status=$?
18596 grep -v '^ *+' conftest.er1 >conftest.err
18597 rm -f conftest.er1
18598 cat conftest.err >&5
18599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); } && {
18601 test -z "$ac_c_werror_flag" ||
18602 test ! -s conftest.err
18603 } && test -s conftest$ac_exeext && {
18604 test "$cross_compiling" = yes ||
18605 $as_test_x conftest$ac_exeext
18606 }; then
18607 ac_cv_lib_kvm_kvm_open=yes
18608 else
18609 $as_echo "$as_me: failed program was:" >&5
18610 sed 's/^/| /' conftest.$ac_ext >&5
18612 ac_cv_lib_kvm_kvm_open=no
18615 rm -rf conftest.dSYM
18616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18617 conftest$ac_exeext conftest.$ac_ext
18618 LIBS=$ac_check_lib_save_LIBS
18620 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18621 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18622 if test $ac_cv_lib_kvm_kvm_open = yes; then
18623 LIBS="-lkvm $LIBS"
18626 # Check for the 4.4BSD definition of getloadavg.
18627 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18628 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18629 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18630 $as_echo_n "(cached) " >&6
18631 else
18632 ac_check_lib_save_LIBS=$LIBS
18633 LIBS="-lutil $LIBS"
18634 cat >conftest.$ac_ext <<_ACEOF
18635 /* confdefs.h. */
18636 _ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18641 /* Override any GCC internal prototype to avoid an error.
18642 Use char because int might match the return type of a GCC
18643 builtin and then its argument prototype would still apply. */
18644 #ifdef __cplusplus
18645 extern "C"
18646 #endif
18647 char getloadavg ();
18649 main ()
18651 return getloadavg ();
18653 return 0;
18655 _ACEOF
18656 rm -f conftest.$ac_objext conftest$ac_exeext
18657 if { (ac_try="$ac_link"
18658 case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18661 esac
18662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18663 $as_echo "$ac_try_echo") >&5
18664 (eval "$ac_link") 2>conftest.er1
18665 ac_status=$?
18666 grep -v '^ *+' conftest.er1 >conftest.err
18667 rm -f conftest.er1
18668 cat conftest.err >&5
18669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); } && {
18671 test -z "$ac_c_werror_flag" ||
18672 test ! -s conftest.err
18673 } && test -s conftest$ac_exeext && {
18674 test "$cross_compiling" = yes ||
18675 $as_test_x conftest$ac_exeext
18676 }; then
18677 ac_cv_lib_util_getloadavg=yes
18678 else
18679 $as_echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18682 ac_cv_lib_util_getloadavg=no
18685 rm -rf conftest.dSYM
18686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18687 conftest$ac_exeext conftest.$ac_ext
18688 LIBS=$ac_check_lib_save_LIBS
18690 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18691 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18692 if test $ac_cv_lib_util_getloadavg = yes; then
18693 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18698 if test $ac_have_func = no; then
18699 # There is a commonly available library for RS/6000 AIX.
18700 # Since it is not a standard part of AIX, it might be installed locally.
18701 ac_getloadavg_LIBS=$LIBS
18702 LIBS="-L/usr/local/lib $LIBS"
18703 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18704 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18705 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18706 $as_echo_n "(cached) " >&6
18707 else
18708 ac_check_lib_save_LIBS=$LIBS
18709 LIBS="-lgetloadavg $LIBS"
18710 cat >conftest.$ac_ext <<_ACEOF
18711 /* confdefs.h. */
18712 _ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18717 /* Override any GCC internal prototype to avoid an error.
18718 Use char because int might match the return type of a GCC
18719 builtin and then its argument prototype would still apply. */
18720 #ifdef __cplusplus
18721 extern "C"
18722 #endif
18723 char getloadavg ();
18725 main ()
18727 return getloadavg ();
18729 return 0;
18731 _ACEOF
18732 rm -f conftest.$ac_objext conftest$ac_exeext
18733 if { (ac_try="$ac_link"
18734 case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18737 esac
18738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18739 $as_echo "$ac_try_echo") >&5
18740 (eval "$ac_link") 2>conftest.er1
18741 ac_status=$?
18742 grep -v '^ *+' conftest.er1 >conftest.err
18743 rm -f conftest.er1
18744 cat conftest.err >&5
18745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } && {
18747 test -z "$ac_c_werror_flag" ||
18748 test ! -s conftest.err
18749 } && test -s conftest$ac_exeext && {
18750 test "$cross_compiling" = yes ||
18751 $as_test_x conftest$ac_exeext
18752 }; then
18753 ac_cv_lib_getloadavg_getloadavg=yes
18754 else
18755 $as_echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18758 ac_cv_lib_getloadavg_getloadavg=no
18761 rm -rf conftest.dSYM
18762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18763 conftest$ac_exeext conftest.$ac_ext
18764 LIBS=$ac_check_lib_save_LIBS
18766 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18767 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18768 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18769 LIBS="-lgetloadavg $LIBS"
18770 else
18771 LIBS=$ac_getloadavg_LIBS
18776 # Make sure it is really in the library, if we think we found it,
18777 # otherwise set up the replacement function.
18779 for ac_func in getloadavg
18781 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18782 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18783 $as_echo_n "checking for $ac_func... " >&6; }
18784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18785 $as_echo_n "(cached) " >&6
18786 else
18787 cat >conftest.$ac_ext <<_ACEOF
18788 /* confdefs.h. */
18789 _ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18795 #define $ac_func innocuous_$ac_func
18797 /* System header to define __stub macros and hopefully few prototypes,
18798 which can conflict with char $ac_func (); below.
18799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18800 <limits.h> exists even on freestanding compilers. */
18802 #ifdef __STDC__
18803 # include <limits.h>
18804 #else
18805 # include <assert.h>
18806 #endif
18808 #undef $ac_func
18810 /* Override any GCC internal prototype to avoid an error.
18811 Use char because int might match the return type of a GCC
18812 builtin and then its argument prototype would still apply. */
18813 #ifdef __cplusplus
18814 extern "C"
18815 #endif
18816 char $ac_func ();
18817 /* The GNU C library defines this for functions which it implements
18818 to always fail with ENOSYS. Some functions are actually named
18819 something starting with __ and the normal name is an alias. */
18820 #if defined __stub_$ac_func || defined __stub___$ac_func
18821 choke me
18822 #endif
18825 main ()
18827 return $ac_func ();
18829 return 0;
18831 _ACEOF
18832 rm -f conftest.$ac_objext conftest$ac_exeext
18833 if { (ac_try="$ac_link"
18834 case "(($ac_try" in
18835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18837 esac
18838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18839 $as_echo "$ac_try_echo") >&5
18840 (eval "$ac_link") 2>conftest.er1
18841 ac_status=$?
18842 grep -v '^ *+' conftest.er1 >conftest.err
18843 rm -f conftest.er1
18844 cat conftest.err >&5
18845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } && {
18847 test -z "$ac_c_werror_flag" ||
18848 test ! -s conftest.err
18849 } && test -s conftest$ac_exeext && {
18850 test "$cross_compiling" = yes ||
18851 $as_test_x conftest$ac_exeext
18852 }; then
18853 eval "$as_ac_var=yes"
18854 else
18855 $as_echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18858 eval "$as_ac_var=no"
18861 rm -rf conftest.dSYM
18862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18863 conftest$ac_exeext conftest.$ac_ext
18865 ac_res=`eval 'as_val=${'$as_ac_var'}
18866 $as_echo "$as_val"'`
18867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18868 $as_echo "$ac_res" >&6; }
18869 if test `eval 'as_val=${'$as_ac_var'}
18870 $as_echo "$as_val"'` = yes; then
18871 cat >>confdefs.h <<_ACEOF
18872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18873 _ACEOF
18875 else
18876 case " $LIBOBJS " in
18877 *" getloadavg.$ac_objext "* ) ;;
18878 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18880 esac
18883 cat >>confdefs.h <<\_ACEOF
18884 #define C_GETLOADAVG 1
18885 _ACEOF
18887 # Figure out what our getloadavg.c needs.
18888 ac_have_func=no
18889 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18890 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18891 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18892 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18893 $as_echo_n "(cached) " >&6
18895 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18896 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18897 else
18898 # Is the header compilable?
18899 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18900 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18901 cat >conftest.$ac_ext <<_ACEOF
18902 /* confdefs.h. */
18903 _ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18907 $ac_includes_default
18908 #include <sys/dg_sys_info.h>
18909 _ACEOF
18910 rm -f conftest.$ac_objext
18911 if { (ac_try="$ac_compile"
18912 case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18915 esac
18916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18917 $as_echo "$ac_try_echo") >&5
18918 (eval "$ac_compile") 2>conftest.er1
18919 ac_status=$?
18920 grep -v '^ *+' conftest.er1 >conftest.err
18921 rm -f conftest.er1
18922 cat conftest.err >&5
18923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } && {
18925 test -z "$ac_c_werror_flag" ||
18926 test ! -s conftest.err
18927 } && test -s conftest.$ac_objext; then
18928 ac_header_compiler=yes
18929 else
18930 $as_echo "$as_me: failed program was:" >&5
18931 sed 's/^/| /' conftest.$ac_ext >&5
18933 ac_header_compiler=no
18936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18937 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18938 $as_echo "$ac_header_compiler" >&6; }
18940 # Is the header present?
18941 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18942 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18943 cat >conftest.$ac_ext <<_ACEOF
18944 /* confdefs.h. */
18945 _ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h. */
18949 #include <sys/dg_sys_info.h>
18950 _ACEOF
18951 if { (ac_try="$ac_cpp conftest.$ac_ext"
18952 case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18955 esac
18956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18957 $as_echo "$ac_try_echo") >&5
18958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18959 ac_status=$?
18960 grep -v '^ *+' conftest.er1 >conftest.err
18961 rm -f conftest.er1
18962 cat conftest.err >&5
18963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); } >/dev/null && {
18965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18966 test ! -s conftest.err
18967 }; then
18968 ac_header_preproc=yes
18969 else
18970 $as_echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18973 ac_header_preproc=no
18976 rm -f conftest.err conftest.$ac_ext
18977 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18978 $as_echo "$ac_header_preproc" >&6; }
18980 # So? What about this header?
18981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18982 yes:no: )
18983 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18984 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18985 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18986 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18987 ac_header_preproc=yes
18989 no:yes:* )
18990 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18991 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18992 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18993 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18994 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18995 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18996 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18997 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18998 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18999 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19000 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19001 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19004 esac
19005 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19006 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19007 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19008 $as_echo_n "(cached) " >&6
19009 else
19010 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19012 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19013 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19016 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19017 ac_have_func=yes
19019 cat >>confdefs.h <<\_ACEOF
19020 #define DGUX 1
19021 _ACEOF
19024 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19025 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19026 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19027 $as_echo_n "(cached) " >&6
19028 else
19029 ac_check_lib_save_LIBS=$LIBS
19030 LIBS="-ldgc $LIBS"
19031 cat >conftest.$ac_ext <<_ACEOF
19032 /* confdefs.h. */
19033 _ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19038 /* Override any GCC internal prototype to avoid an error.
19039 Use char because int might match the return type of a GCC
19040 builtin and then its argument prototype would still apply. */
19041 #ifdef __cplusplus
19042 extern "C"
19043 #endif
19044 char dg_sys_info ();
19046 main ()
19048 return dg_sys_info ();
19050 return 0;
19052 _ACEOF
19053 rm -f conftest.$ac_objext conftest$ac_exeext
19054 if { (ac_try="$ac_link"
19055 case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19058 esac
19059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19060 $as_echo "$ac_try_echo") >&5
19061 (eval "$ac_link") 2>conftest.er1
19062 ac_status=$?
19063 grep -v '^ *+' conftest.er1 >conftest.err
19064 rm -f conftest.er1
19065 cat conftest.err >&5
19066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } && {
19068 test -z "$ac_c_werror_flag" ||
19069 test ! -s conftest.err
19070 } && test -s conftest$ac_exeext && {
19071 test "$cross_compiling" = yes ||
19072 $as_test_x conftest$ac_exeext
19073 }; then
19074 ac_cv_lib_dgc_dg_sys_info=yes
19075 else
19076 $as_echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19079 ac_cv_lib_dgc_dg_sys_info=no
19082 rm -rf conftest.dSYM
19083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19084 conftest$ac_exeext conftest.$ac_ext
19085 LIBS=$ac_check_lib_save_LIBS
19087 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19088 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19089 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19090 cat >>confdefs.h <<_ACEOF
19091 #define HAVE_LIBDGC 1
19092 _ACEOF
19094 LIBS="-ldgc $LIBS"
19102 if test "${ac_cv_header_locale_h+set}" = set; then
19103 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19104 $as_echo_n "checking for locale.h... " >&6; }
19105 if test "${ac_cv_header_locale_h+set}" = set; then
19106 $as_echo_n "(cached) " >&6
19108 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19109 $as_echo "$ac_cv_header_locale_h" >&6; }
19110 else
19111 # Is the header compilable?
19112 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19113 $as_echo_n "checking locale.h usability... " >&6; }
19114 cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h. */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19120 $ac_includes_default
19121 #include <locale.h>
19122 _ACEOF
19123 rm -f conftest.$ac_objext
19124 if { (ac_try="$ac_compile"
19125 case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19128 esac
19129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19130 $as_echo "$ac_try_echo") >&5
19131 (eval "$ac_compile") 2>conftest.er1
19132 ac_status=$?
19133 grep -v '^ *+' conftest.er1 >conftest.err
19134 rm -f conftest.er1
19135 cat conftest.err >&5
19136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); } && {
19138 test -z "$ac_c_werror_flag" ||
19139 test ! -s conftest.err
19140 } && test -s conftest.$ac_objext; then
19141 ac_header_compiler=yes
19142 else
19143 $as_echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ac_header_compiler=no
19149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19150 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19151 $as_echo "$ac_header_compiler" >&6; }
19153 # Is the header present?
19154 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19155 $as_echo_n "checking locale.h presence... " >&6; }
19156 cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h. */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19162 #include <locale.h>
19163 _ACEOF
19164 if { (ac_try="$ac_cpp conftest.$ac_ext"
19165 case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19168 esac
19169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19170 $as_echo "$ac_try_echo") >&5
19171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19172 ac_status=$?
19173 grep -v '^ *+' conftest.er1 >conftest.err
19174 rm -f conftest.er1
19175 cat conftest.err >&5
19176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } >/dev/null && {
19178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19179 test ! -s conftest.err
19180 }; then
19181 ac_header_preproc=yes
19182 else
19183 $as_echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19186 ac_header_preproc=no
19189 rm -f conftest.err conftest.$ac_ext
19190 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19191 $as_echo "$ac_header_preproc" >&6; }
19193 # So? What about this header?
19194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19195 yes:no: )
19196 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19197 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19198 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19199 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19200 ac_header_preproc=yes
19202 no:yes:* )
19203 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19204 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19205 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19206 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19207 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19208 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19209 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19210 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19211 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19212 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19213 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19214 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19217 esac
19218 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19219 $as_echo_n "checking for locale.h... " >&6; }
19220 if test "${ac_cv_header_locale_h+set}" = set; then
19221 $as_echo_n "(cached) " >&6
19222 else
19223 ac_cv_header_locale_h=$ac_header_preproc
19225 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19226 $as_echo "$ac_cv_header_locale_h" >&6; }
19232 for ac_func in setlocale
19234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19235 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19236 $as_echo_n "checking for $ac_func... " >&6; }
19237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19238 $as_echo_n "(cached) " >&6
19239 else
19240 cat >conftest.$ac_ext <<_ACEOF
19241 /* confdefs.h. */
19242 _ACEOF
19243 cat confdefs.h >>conftest.$ac_ext
19244 cat >>conftest.$ac_ext <<_ACEOF
19245 /* end confdefs.h. */
19246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19248 #define $ac_func innocuous_$ac_func
19250 /* System header to define __stub macros and hopefully few prototypes,
19251 which can conflict with char $ac_func (); below.
19252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19253 <limits.h> exists even on freestanding compilers. */
19255 #ifdef __STDC__
19256 # include <limits.h>
19257 #else
19258 # include <assert.h>
19259 #endif
19261 #undef $ac_func
19263 /* Override any GCC internal prototype to avoid an error.
19264 Use char because int might match the return type of a GCC
19265 builtin and then its argument prototype would still apply. */
19266 #ifdef __cplusplus
19267 extern "C"
19268 #endif
19269 char $ac_func ();
19270 /* The GNU C library defines this for functions which it implements
19271 to always fail with ENOSYS. Some functions are actually named
19272 something starting with __ and the normal name is an alias. */
19273 #if defined __stub_$ac_func || defined __stub___$ac_func
19274 choke me
19275 #endif
19278 main ()
19280 return $ac_func ();
19282 return 0;
19284 _ACEOF
19285 rm -f conftest.$ac_objext conftest$ac_exeext
19286 if { (ac_try="$ac_link"
19287 case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19290 esac
19291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19292 $as_echo "$ac_try_echo") >&5
19293 (eval "$ac_link") 2>conftest.er1
19294 ac_status=$?
19295 grep -v '^ *+' conftest.er1 >conftest.err
19296 rm -f conftest.er1
19297 cat conftest.err >&5
19298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } && {
19300 test -z "$ac_c_werror_flag" ||
19301 test ! -s conftest.err
19302 } && test -s conftest$ac_exeext && {
19303 test "$cross_compiling" = yes ||
19304 $as_test_x conftest$ac_exeext
19305 }; then
19306 eval "$as_ac_var=yes"
19307 else
19308 $as_echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19311 eval "$as_ac_var=no"
19314 rm -rf conftest.dSYM
19315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19316 conftest$ac_exeext conftest.$ac_ext
19318 ac_res=`eval 'as_val=${'$as_ac_var'}
19319 $as_echo "$as_val"'`
19320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19321 $as_echo "$ac_res" >&6; }
19322 if test `eval 'as_val=${'$as_ac_var'}
19323 $as_echo "$as_val"'` = yes; then
19324 cat >>confdefs.h <<_ACEOF
19325 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19326 _ACEOF
19329 done
19332 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19333 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19334 # Irix 4.0.5F has the header but not the library.
19335 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19336 ac_have_func=yes
19338 cat >>confdefs.h <<\_ACEOF
19339 #define SVR4 1
19340 _ACEOF
19344 if test $ac_have_func = no; then
19345 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19346 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19347 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19348 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19349 $as_echo_n "(cached) " >&6
19351 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19352 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19353 else
19354 # Is the header compilable?
19355 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19356 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19357 cat >conftest.$ac_ext <<_ACEOF
19358 /* confdefs.h. */
19359 _ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 $ac_includes_default
19364 #include <inq_stats/cpustats.h>
19365 _ACEOF
19366 rm -f conftest.$ac_objext
19367 if { (ac_try="$ac_compile"
19368 case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19371 esac
19372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19373 $as_echo "$ac_try_echo") >&5
19374 (eval "$ac_compile") 2>conftest.er1
19375 ac_status=$?
19376 grep -v '^ *+' conftest.er1 >conftest.err
19377 rm -f conftest.er1
19378 cat conftest.err >&5
19379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } && {
19381 test -z "$ac_c_werror_flag" ||
19382 test ! -s conftest.err
19383 } && test -s conftest.$ac_objext; then
19384 ac_header_compiler=yes
19385 else
19386 $as_echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_header_compiler=no
19392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19393 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19394 $as_echo "$ac_header_compiler" >&6; }
19396 # Is the header present?
19397 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19398 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19399 cat >conftest.$ac_ext <<_ACEOF
19400 /* confdefs.h. */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19405 #include <inq_stats/cpustats.h>
19406 _ACEOF
19407 if { (ac_try="$ac_cpp conftest.$ac_ext"
19408 case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19411 esac
19412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19413 $as_echo "$ac_try_echo") >&5
19414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19415 ac_status=$?
19416 grep -v '^ *+' conftest.er1 >conftest.err
19417 rm -f conftest.er1
19418 cat conftest.err >&5
19419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } >/dev/null && {
19421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19422 test ! -s conftest.err
19423 }; then
19424 ac_header_preproc=yes
19425 else
19426 $as_echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19429 ac_header_preproc=no
19432 rm -f conftest.err conftest.$ac_ext
19433 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19434 $as_echo "$ac_header_preproc" >&6; }
19436 # So? What about this header?
19437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19438 yes:no: )
19439 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19440 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19441 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19442 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19443 ac_header_preproc=yes
19445 no:yes:* )
19446 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19447 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19448 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19449 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19450 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19451 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19452 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19453 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19454 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19455 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19456 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19457 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19460 esac
19461 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19462 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19463 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19464 $as_echo_n "(cached) " >&6
19465 else
19466 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19468 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19469 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19472 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19473 ac_have_func=yes
19475 cat >>confdefs.h <<\_ACEOF
19476 #define UMAX 1
19477 _ACEOF
19480 cat >>confdefs.h <<\_ACEOF
19481 #define UMAX4_3 1
19482 _ACEOF
19489 if test $ac_have_func = no; then
19490 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19491 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19492 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19493 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19494 $as_echo_n "(cached) " >&6
19496 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19497 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19498 else
19499 # Is the header compilable?
19500 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19501 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19502 cat >conftest.$ac_ext <<_ACEOF
19503 /* confdefs.h. */
19504 _ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h. */
19508 $ac_includes_default
19509 #include <sys/cpustats.h>
19510 _ACEOF
19511 rm -f conftest.$ac_objext
19512 if { (ac_try="$ac_compile"
19513 case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19516 esac
19517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19518 $as_echo "$ac_try_echo") >&5
19519 (eval "$ac_compile") 2>conftest.er1
19520 ac_status=$?
19521 grep -v '^ *+' conftest.er1 >conftest.err
19522 rm -f conftest.er1
19523 cat conftest.err >&5
19524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } && {
19526 test -z "$ac_c_werror_flag" ||
19527 test ! -s conftest.err
19528 } && test -s conftest.$ac_objext; then
19529 ac_header_compiler=yes
19530 else
19531 $as_echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19534 ac_header_compiler=no
19537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19538 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19539 $as_echo "$ac_header_compiler" >&6; }
19541 # Is the header present?
19542 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19543 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19544 cat >conftest.$ac_ext <<_ACEOF
19545 /* confdefs.h. */
19546 _ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19550 #include <sys/cpustats.h>
19551 _ACEOF
19552 if { (ac_try="$ac_cpp conftest.$ac_ext"
19553 case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19556 esac
19557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19558 $as_echo "$ac_try_echo") >&5
19559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19560 ac_status=$?
19561 grep -v '^ *+' conftest.er1 >conftest.err
19562 rm -f conftest.er1
19563 cat conftest.err >&5
19564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } >/dev/null && {
19566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19567 test ! -s conftest.err
19568 }; then
19569 ac_header_preproc=yes
19570 else
19571 $as_echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19574 ac_header_preproc=no
19577 rm -f conftest.err conftest.$ac_ext
19578 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19579 $as_echo "$ac_header_preproc" >&6; }
19581 # So? What about this header?
19582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19583 yes:no: )
19584 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19585 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19586 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19587 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19588 ac_header_preproc=yes
19590 no:yes:* )
19591 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19592 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19593 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19594 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19595 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19596 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19597 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19598 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19599 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19600 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19601 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19602 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19605 esac
19606 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19607 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19608 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19609 $as_echo_n "(cached) " >&6
19610 else
19611 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19613 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19614 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19617 if test $ac_cv_header_sys_cpustats_h = yes; then
19618 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19619 #define UMAX 1
19620 _ACEOF
19627 if test $ac_have_func = no; then
19629 for ac_header in mach/mach.h
19631 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19633 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19634 $as_echo_n "checking for $ac_header... " >&6; }
19635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19636 $as_echo_n "(cached) " >&6
19638 ac_res=`eval 'as_val=${'$as_ac_Header'}
19639 $as_echo "$as_val"'`
19640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19641 $as_echo "$ac_res" >&6; }
19642 else
19643 # Is the header compilable?
19644 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19645 $as_echo_n "checking $ac_header usability... " >&6; }
19646 cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h. */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 $ac_includes_default
19653 #include <$ac_header>
19654 _ACEOF
19655 rm -f conftest.$ac_objext
19656 if { (ac_try="$ac_compile"
19657 case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19660 esac
19661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19662 $as_echo "$ac_try_echo") >&5
19663 (eval "$ac_compile") 2>conftest.er1
19664 ac_status=$?
19665 grep -v '^ *+' conftest.er1 >conftest.err
19666 rm -f conftest.er1
19667 cat conftest.err >&5
19668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } && {
19670 test -z "$ac_c_werror_flag" ||
19671 test ! -s conftest.err
19672 } && test -s conftest.$ac_objext; then
19673 ac_header_compiler=yes
19674 else
19675 $as_echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19678 ac_header_compiler=no
19681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19682 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19683 $as_echo "$ac_header_compiler" >&6; }
19685 # Is the header present?
19686 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19687 $as_echo_n "checking $ac_header presence... " >&6; }
19688 cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h. */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19694 #include <$ac_header>
19695 _ACEOF
19696 if { (ac_try="$ac_cpp conftest.$ac_ext"
19697 case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19700 esac
19701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19702 $as_echo "$ac_try_echo") >&5
19703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19704 ac_status=$?
19705 grep -v '^ *+' conftest.er1 >conftest.err
19706 rm -f conftest.er1
19707 cat conftest.err >&5
19708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } >/dev/null && {
19710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19711 test ! -s conftest.err
19712 }; then
19713 ac_header_preproc=yes
19714 else
19715 $as_echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 ac_header_preproc=no
19721 rm -f conftest.err conftest.$ac_ext
19722 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19723 $as_echo "$ac_header_preproc" >&6; }
19725 # So? What about this header?
19726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19727 yes:no: )
19728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19729 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19731 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19732 ac_header_preproc=yes
19734 no:yes:* )
19735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19736 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19738 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19740 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19742 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19744 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19746 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19749 esac
19750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19751 $as_echo_n "checking for $ac_header... " >&6; }
19752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19753 $as_echo_n "(cached) " >&6
19754 else
19755 eval "$as_ac_Header=\$ac_header_preproc"
19757 ac_res=`eval 'as_val=${'$as_ac_Header'}
19758 $as_echo "$as_val"'`
19759 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19760 $as_echo "$ac_res" >&6; }
19763 if test `eval 'as_val=${'$as_ac_Header'}
19764 $as_echo "$as_val"'` = yes; then
19765 cat >>confdefs.h <<_ACEOF
19766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19767 _ACEOF
19771 done
19776 for ac_header in nlist.h
19778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19780 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19781 $as_echo_n "checking for $ac_header... " >&6; }
19782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19783 $as_echo_n "(cached) " >&6
19785 ac_res=`eval 'as_val=${'$as_ac_Header'}
19786 $as_echo "$as_val"'`
19787 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19788 $as_echo "$ac_res" >&6; }
19789 else
19790 # Is the header compilable?
19791 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19792 $as_echo_n "checking $ac_header usability... " >&6; }
19793 cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h. */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19799 $ac_includes_default
19800 #include <$ac_header>
19801 _ACEOF
19802 rm -f conftest.$ac_objext
19803 if { (ac_try="$ac_compile"
19804 case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19807 esac
19808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19809 $as_echo "$ac_try_echo") >&5
19810 (eval "$ac_compile") 2>conftest.er1
19811 ac_status=$?
19812 grep -v '^ *+' conftest.er1 >conftest.err
19813 rm -f conftest.er1
19814 cat conftest.err >&5
19815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } && {
19817 test -z "$ac_c_werror_flag" ||
19818 test ! -s conftest.err
19819 } && test -s conftest.$ac_objext; then
19820 ac_header_compiler=yes
19821 else
19822 $as_echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19825 ac_header_compiler=no
19828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19829 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19830 $as_echo "$ac_header_compiler" >&6; }
19832 # Is the header present?
19833 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19834 $as_echo_n "checking $ac_header presence... " >&6; }
19835 cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h. */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 #include <$ac_header>
19842 _ACEOF
19843 if { (ac_try="$ac_cpp conftest.$ac_ext"
19844 case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19847 esac
19848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19849 $as_echo "$ac_try_echo") >&5
19850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19851 ac_status=$?
19852 grep -v '^ *+' conftest.er1 >conftest.err
19853 rm -f conftest.er1
19854 cat conftest.err >&5
19855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } >/dev/null && {
19857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19858 test ! -s conftest.err
19859 }; then
19860 ac_header_preproc=yes
19861 else
19862 $as_echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19865 ac_header_preproc=no
19868 rm -f conftest.err conftest.$ac_ext
19869 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19870 $as_echo "$ac_header_preproc" >&6; }
19872 # So? What about this header?
19873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19874 yes:no: )
19875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19876 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19878 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19879 ac_header_preproc=yes
19881 no:yes:* )
19882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19883 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19885 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19887 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19889 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19891 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19893 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19896 esac
19897 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19898 $as_echo_n "checking for $ac_header... " >&6; }
19899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19900 $as_echo_n "(cached) " >&6
19901 else
19902 eval "$as_ac_Header=\$ac_header_preproc"
19904 ac_res=`eval 'as_val=${'$as_ac_Header'}
19905 $as_echo "$as_val"'`
19906 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19907 $as_echo "$ac_res" >&6; }
19910 if test `eval 'as_val=${'$as_ac_Header'}
19911 $as_echo "$as_val"'` = yes; then
19912 cat >>confdefs.h <<_ACEOF
19913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19914 _ACEOF
19915 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19916 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19917 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19918 $as_echo_n "(cached) " >&6
19919 else
19920 cat >conftest.$ac_ext <<_ACEOF
19921 /* confdefs.h. */
19922 _ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19926 #include <nlist.h>
19929 main ()
19931 static struct nlist ac_aggr;
19932 if (ac_aggr.n_un.n_name)
19933 return 0;
19935 return 0;
19937 _ACEOF
19938 rm -f conftest.$ac_objext
19939 if { (ac_try="$ac_compile"
19940 case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19943 esac
19944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19945 $as_echo "$ac_try_echo") >&5
19946 (eval "$ac_compile") 2>conftest.er1
19947 ac_status=$?
19948 grep -v '^ *+' conftest.er1 >conftest.err
19949 rm -f conftest.er1
19950 cat conftest.err >&5
19951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); } && {
19953 test -z "$ac_c_werror_flag" ||
19954 test ! -s conftest.err
19955 } && test -s conftest.$ac_objext; then
19956 ac_cv_member_struct_nlist_n_un_n_name=yes
19957 else
19958 $as_echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19961 cat >conftest.$ac_ext <<_ACEOF
19962 /* confdefs.h. */
19963 _ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19967 #include <nlist.h>
19970 main ()
19972 static struct nlist ac_aggr;
19973 if (sizeof ac_aggr.n_un.n_name)
19974 return 0;
19976 return 0;
19978 _ACEOF
19979 rm -f conftest.$ac_objext
19980 if { (ac_try="$ac_compile"
19981 case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19984 esac
19985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19986 $as_echo "$ac_try_echo") >&5
19987 (eval "$ac_compile") 2>conftest.er1
19988 ac_status=$?
19989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -f conftest.er1
19991 cat conftest.err >&5
19992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } && {
19994 test -z "$ac_c_werror_flag" ||
19995 test ! -s conftest.err
19996 } && test -s conftest.$ac_objext; then
19997 ac_cv_member_struct_nlist_n_un_n_name=yes
19998 else
19999 $as_echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20002 ac_cv_member_struct_nlist_n_un_n_name=no
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20011 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20012 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20014 cat >>confdefs.h <<_ACEOF
20015 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20016 _ACEOF
20019 cat >>confdefs.h <<\_ACEOF
20020 #define NLIST_NAME_UNION 1
20021 _ACEOF
20028 done
20031 done
20034 # Some definitions of getloadavg require that the program be installed setgid.
20035 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20036 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20037 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20038 $as_echo_n "(cached) " >&6
20039 else
20040 cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h. */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20046 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20047 #ifdef LDAV_PRIVILEGED
20048 Yowza Am I SETGID yet
20049 #endif
20050 _ACEOF
20051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20052 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20053 ac_cv_func_getloadavg_setgid=yes
20054 else
20055 ac_cv_func_getloadavg_setgid=no
20057 rm -f conftest*
20060 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20061 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20062 if test $ac_cv_func_getloadavg_setgid = yes; then
20063 NEED_SETGID=true
20065 cat >>confdefs.h <<\_ACEOF
20066 #define GETLOADAVG_PRIVILEGED 1
20067 _ACEOF
20069 else
20070 NEED_SETGID=false
20073 if test $ac_cv_func_getloadavg_setgid = yes; then
20074 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20075 $as_echo_n "checking group of /dev/kmem... " >&6; }
20076 if test "${ac_cv_group_kmem+set}" = set; then
20077 $as_echo_n "(cached) " >&6
20078 else
20079 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20080 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20081 # If we got an error (system does not support symlinks), try without -L.
20082 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20083 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20084 | sed -ne 's/[ ][ ]*/ /g;
20085 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20086 / /s/.* //;p;'`
20089 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20090 $as_echo "$ac_cv_group_kmem" >&6; }
20091 KMEM_GROUP=$ac_cv_group_kmem
20093 if test "x$ac_save_LIBS" = x; then
20094 GETLOADAVG_LIBS=$LIBS
20095 else
20096 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20098 LIBS=$ac_save_LIBS
20102 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20103 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20104 if test "${ac_cv_sys_largefile_source+set}" = set; then
20105 $as_echo_n "(cached) " >&6
20106 else
20107 while :; do
20108 cat >conftest.$ac_ext <<_ACEOF
20109 /* confdefs.h. */
20110 _ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h. */
20114 #include <sys/types.h> /* for off_t */
20115 #include <stdio.h>
20117 main ()
20119 int (*fp) (FILE *, off_t, int) = fseeko;
20120 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20122 return 0;
20124 _ACEOF
20125 rm -f conftest.$ac_objext conftest$ac_exeext
20126 if { (ac_try="$ac_link"
20127 case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20130 esac
20131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20132 $as_echo "$ac_try_echo") >&5
20133 (eval "$ac_link") 2>conftest.er1
20134 ac_status=$?
20135 grep -v '^ *+' conftest.er1 >conftest.err
20136 rm -f conftest.er1
20137 cat conftest.err >&5
20138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } && {
20140 test -z "$ac_c_werror_flag" ||
20141 test ! -s conftest.err
20142 } && test -s conftest$ac_exeext && {
20143 test "$cross_compiling" = yes ||
20144 $as_test_x conftest$ac_exeext
20145 }; then
20146 ac_cv_sys_largefile_source=no; break
20147 else
20148 $as_echo "$as_me: failed program was:" >&5
20149 sed 's/^/| /' conftest.$ac_ext >&5
20154 rm -rf conftest.dSYM
20155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20156 conftest$ac_exeext conftest.$ac_ext
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h. */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 #define _LARGEFILE_SOURCE 1
20164 #include <sys/types.h> /* for off_t */
20165 #include <stdio.h>
20167 main ()
20169 int (*fp) (FILE *, off_t, int) = fseeko;
20170 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20172 return 0;
20174 _ACEOF
20175 rm -f conftest.$ac_objext conftest$ac_exeext
20176 if { (ac_try="$ac_link"
20177 case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20180 esac
20181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20182 $as_echo "$ac_try_echo") >&5
20183 (eval "$ac_link") 2>conftest.er1
20184 ac_status=$?
20185 grep -v '^ *+' conftest.er1 >conftest.err
20186 rm -f conftest.er1
20187 cat conftest.err >&5
20188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } && {
20190 test -z "$ac_c_werror_flag" ||
20191 test ! -s conftest.err
20192 } && test -s conftest$ac_exeext && {
20193 test "$cross_compiling" = yes ||
20194 $as_test_x conftest$ac_exeext
20195 }; then
20196 ac_cv_sys_largefile_source=1; break
20197 else
20198 $as_echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20204 rm -rf conftest.dSYM
20205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20206 conftest$ac_exeext conftest.$ac_ext
20207 ac_cv_sys_largefile_source=unknown
20208 break
20209 done
20211 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20212 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20213 case $ac_cv_sys_largefile_source in #(
20214 no | unknown) ;;
20216 cat >>confdefs.h <<_ACEOF
20217 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20218 _ACEOF
20220 esac
20221 rm -rf conftest*
20223 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20224 # in glibc 2.1.3, but that breaks too many other things.
20225 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20226 if test $ac_cv_sys_largefile_source != unknown; then
20228 cat >>confdefs.h <<\_ACEOF
20229 #define HAVE_FSEEKO 1
20230 _ACEOF
20235 # Configure getopt.
20236 # getopt.m4 serial 10
20238 # The getopt module assume you want GNU getopt, with getopt_long etc,
20239 # rather than vanilla POSIX getopt. This means your your code should
20240 # always include <getopt.h> for the getopt prototypes.
20252 # Prerequisites of lib/getopt*.
20257 GETOPT_H=
20259 for ac_header in getopt.h
20261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20263 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20264 $as_echo_n "checking for $ac_header... " >&6; }
20265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20266 $as_echo_n "(cached) " >&6
20268 ac_res=`eval 'as_val=${'$as_ac_Header'}
20269 $as_echo "$as_val"'`
20270 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20271 $as_echo "$ac_res" >&6; }
20272 else
20273 # Is the header compilable?
20274 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20275 $as_echo_n "checking $ac_header usability... " >&6; }
20276 cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h. */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 $ac_includes_default
20283 #include <$ac_header>
20284 _ACEOF
20285 rm -f conftest.$ac_objext
20286 if { (ac_try="$ac_compile"
20287 case "(($ac_try" in
20288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20289 *) ac_try_echo=$ac_try;;
20290 esac
20291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20292 $as_echo "$ac_try_echo") >&5
20293 (eval "$ac_compile") 2>conftest.er1
20294 ac_status=$?
20295 grep -v '^ *+' conftest.er1 >conftest.err
20296 rm -f conftest.er1
20297 cat conftest.err >&5
20298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } && {
20300 test -z "$ac_c_werror_flag" ||
20301 test ! -s conftest.err
20302 } && test -s conftest.$ac_objext; then
20303 ac_header_compiler=yes
20304 else
20305 $as_echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20308 ac_header_compiler=no
20311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20312 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20313 $as_echo "$ac_header_compiler" >&6; }
20315 # Is the header present?
20316 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20317 $as_echo_n "checking $ac_header presence... " >&6; }
20318 cat >conftest.$ac_ext <<_ACEOF
20319 /* confdefs.h. */
20320 _ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20324 #include <$ac_header>
20325 _ACEOF
20326 if { (ac_try="$ac_cpp conftest.$ac_ext"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20330 esac
20331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20332 $as_echo "$ac_try_echo") >&5
20333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20334 ac_status=$?
20335 grep -v '^ *+' conftest.er1 >conftest.err
20336 rm -f conftest.er1
20337 cat conftest.err >&5
20338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } >/dev/null && {
20340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20341 test ! -s conftest.err
20342 }; then
20343 ac_header_preproc=yes
20344 else
20345 $as_echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ac_header_preproc=no
20351 rm -f conftest.err conftest.$ac_ext
20352 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20353 $as_echo "$ac_header_preproc" >&6; }
20355 # So? What about this header?
20356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20357 yes:no: )
20358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20359 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20361 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20362 ac_header_preproc=yes
20364 no:yes:* )
20365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20366 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20368 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20370 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20372 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20376 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20379 esac
20380 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20381 $as_echo_n "checking for $ac_header... " >&6; }
20382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20383 $as_echo_n "(cached) " >&6
20384 else
20385 eval "$as_ac_Header=\$ac_header_preproc"
20387 ac_res=`eval 'as_val=${'$as_ac_Header'}
20388 $as_echo "$as_val"'`
20389 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20390 $as_echo "$ac_res" >&6; }
20393 if test `eval 'as_val=${'$as_ac_Header'}
20394 $as_echo "$as_val"'` = yes; then
20395 cat >>confdefs.h <<_ACEOF
20396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20397 _ACEOF
20399 else
20400 GETOPT_H=getopt.h
20403 done
20405 if test -z "$GETOPT_H"; then
20407 for ac_func in getopt_long_only
20409 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20410 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20411 $as_echo_n "checking for $ac_func... " >&6; }
20412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20413 $as_echo_n "(cached) " >&6
20414 else
20415 cat >conftest.$ac_ext <<_ACEOF
20416 /* confdefs.h. */
20417 _ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20423 #define $ac_func innocuous_$ac_func
20425 /* System header to define __stub macros and hopefully few prototypes,
20426 which can conflict with char $ac_func (); below.
20427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20428 <limits.h> exists even on freestanding compilers. */
20430 #ifdef __STDC__
20431 # include <limits.h>
20432 #else
20433 # include <assert.h>
20434 #endif
20436 #undef $ac_func
20438 /* Override any GCC internal prototype to avoid an error.
20439 Use char because int might match the return type of a GCC
20440 builtin and then its argument prototype would still apply. */
20441 #ifdef __cplusplus
20442 extern "C"
20443 #endif
20444 char $ac_func ();
20445 /* The GNU C library defines this for functions which it implements
20446 to always fail with ENOSYS. Some functions are actually named
20447 something starting with __ and the normal name is an alias. */
20448 #if defined __stub_$ac_func || defined __stub___$ac_func
20449 choke me
20450 #endif
20453 main ()
20455 return $ac_func ();
20457 return 0;
20459 _ACEOF
20460 rm -f conftest.$ac_objext conftest$ac_exeext
20461 if { (ac_try="$ac_link"
20462 case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20465 esac
20466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20467 $as_echo "$ac_try_echo") >&5
20468 (eval "$ac_link") 2>conftest.er1
20469 ac_status=$?
20470 grep -v '^ *+' conftest.er1 >conftest.err
20471 rm -f conftest.er1
20472 cat conftest.err >&5
20473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest$ac_exeext && {
20478 test "$cross_compiling" = yes ||
20479 $as_test_x conftest$ac_exeext
20480 }; then
20481 eval "$as_ac_var=yes"
20482 else
20483 $as_echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20486 eval "$as_ac_var=no"
20489 rm -rf conftest.dSYM
20490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20491 conftest$ac_exeext conftest.$ac_ext
20493 ac_res=`eval 'as_val=${'$as_ac_var'}
20494 $as_echo "$as_val"'`
20495 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20496 $as_echo "$ac_res" >&6; }
20497 if test `eval 'as_val=${'$as_ac_var'}
20498 $as_echo "$as_val"'` = yes; then
20499 cat >>confdefs.h <<_ACEOF
20500 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20501 _ACEOF
20503 else
20504 GETOPT_H=getopt.h
20506 done
20510 if test -z "$GETOPT_H"; then
20511 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20512 $as_echo_n "checking whether optreset is declared... " >&6; }
20513 if test "${ac_cv_have_decl_optreset+set}" = set; then
20514 $as_echo_n "(cached) " >&6
20515 else
20516 cat >conftest.$ac_ext <<_ACEOF
20517 /* confdefs.h. */
20518 _ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20522 #include <getopt.h>
20525 main ()
20527 #ifndef optreset
20528 (void) optreset;
20529 #endif
20532 return 0;
20534 _ACEOF
20535 rm -f conftest.$ac_objext
20536 if { (ac_try="$ac_compile"
20537 case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20540 esac
20541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20542 $as_echo "$ac_try_echo") >&5
20543 (eval "$ac_compile") 2>conftest.er1
20544 ac_status=$?
20545 grep -v '^ *+' conftest.er1 >conftest.err
20546 rm -f conftest.er1
20547 cat conftest.err >&5
20548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); } && {
20550 test -z "$ac_c_werror_flag" ||
20551 test ! -s conftest.err
20552 } && test -s conftest.$ac_objext; then
20553 ac_cv_have_decl_optreset=yes
20554 else
20555 $as_echo "$as_me: failed program was:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20558 ac_cv_have_decl_optreset=no
20561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20563 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20564 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20565 if test $ac_cv_have_decl_optreset = yes; then
20566 GETOPT_H=getopt.h
20571 if test -z "$GETOPT_H"; then
20572 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20573 $as_echo_n "checking for working GNU getopt function... " >&6; }
20574 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20575 $as_echo_n "(cached) " >&6
20576 else
20577 if test "$cross_compiling" = yes; then
20578 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20579 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20580 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20581 $as_echo_n "(cached) " >&6
20582 else
20583 cat >conftest.$ac_ext <<_ACEOF
20584 /* confdefs.h. */
20585 _ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20589 #include <getopt.h>
20592 main ()
20594 #ifndef getopt_clip
20595 (void) getopt_clip;
20596 #endif
20599 return 0;
20601 _ACEOF
20602 rm -f conftest.$ac_objext
20603 if { (ac_try="$ac_compile"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20607 esac
20608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20609 $as_echo "$ac_try_echo") >&5
20610 (eval "$ac_compile") 2>conftest.er1
20611 ac_status=$?
20612 grep -v '^ *+' conftest.er1 >conftest.err
20613 rm -f conftest.er1
20614 cat conftest.err >&5
20615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && {
20617 test -z "$ac_c_werror_flag" ||
20618 test ! -s conftest.err
20619 } && test -s conftest.$ac_objext; then
20620 ac_cv_have_decl_getopt_clip=yes
20621 else
20622 $as_echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20625 ac_cv_have_decl_getopt_clip=no
20628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20630 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20631 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20632 if test $ac_cv_have_decl_getopt_clip = yes; then
20633 gl_cv_func_gnu_getopt=no
20634 else
20635 gl_cv_func_gnu_getopt=yes
20638 else
20639 cat >conftest.$ac_ext <<_ACEOF
20640 /* confdefs.h. */
20641 _ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h. */
20645 #include <getopt.h>
20647 main ()
20650 char *myargv[3];
20651 myargv[0] = "conftest";
20652 myargv[1] = "-+";
20653 myargv[2] = 0;
20654 return getopt (2, myargv, "+a") != '?';
20657 return 0;
20659 _ACEOF
20660 rm -f conftest$ac_exeext
20661 if { (ac_try="$ac_link"
20662 case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20665 esac
20666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20667 $as_echo "$ac_try_echo") >&5
20668 (eval "$ac_link") 2>&5
20669 ac_status=$?
20670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20672 { (case "(($ac_try" in
20673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674 *) ac_try_echo=$ac_try;;
20675 esac
20676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20677 $as_echo "$ac_try_echo") >&5
20678 (eval "$ac_try") 2>&5
20679 ac_status=$?
20680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; }; then
20682 gl_cv_func_gnu_getopt=yes
20683 else
20684 $as_echo "$as_me: program exited with status $ac_status" >&5
20685 $as_echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20688 ( exit $ac_status )
20689 gl_cv_func_gnu_getopt=no
20691 rm -rf conftest.dSYM
20692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20697 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20698 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20699 if test "$gl_cv_func_gnu_getopt" = "no"; then
20700 GETOPT_H=getopt.h
20706 if test -n "$GETOPT_H"; then
20709 GETOPT_H=getopt.h
20711 cat >>confdefs.h <<\_ACEOF
20712 #define __GETOPT_PREFIX rpl_
20713 _ACEOF
20718 GETOPTOBJS='getopt.o getopt1.o'
20725 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20726 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20727 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20728 $as_echo_n "(cached) " >&6
20729 else
20730 # Use it with a single arg.
20731 cat >conftest.$ac_ext <<_ACEOF
20732 /* confdefs.h. */
20733 _ACEOF
20734 cat confdefs.h >>conftest.$ac_ext
20735 cat >>conftest.$ac_ext <<_ACEOF
20736 /* end confdefs.h. */
20737 $ac_includes_default
20739 main ()
20741 getpgrp (0);
20743 return 0;
20745 _ACEOF
20746 rm -f conftest.$ac_objext
20747 if { (ac_try="$ac_compile"
20748 case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20751 esac
20752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20753 $as_echo "$ac_try_echo") >&5
20754 (eval "$ac_compile") 2>conftest.er1
20755 ac_status=$?
20756 grep -v '^ *+' conftest.er1 >conftest.err
20757 rm -f conftest.er1
20758 cat conftest.err >&5
20759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } && {
20761 test -z "$ac_c_werror_flag" ||
20762 test ! -s conftest.err
20763 } && test -s conftest.$ac_objext; then
20764 ac_cv_func_getpgrp_void=no
20765 else
20766 $as_echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20769 ac_cv_func_getpgrp_void=yes
20772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20775 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20776 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20777 if test $ac_cv_func_getpgrp_void = yes; then
20779 cat >>confdefs.h <<\_ACEOF
20780 #define GETPGRP_VOID 1
20781 _ACEOF
20787 for ac_func in strftime
20789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20790 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20791 $as_echo_n "checking for $ac_func... " >&6; }
20792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20793 $as_echo_n "(cached) " >&6
20794 else
20795 cat >conftest.$ac_ext <<_ACEOF
20796 /* confdefs.h. */
20797 _ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h. */
20801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20803 #define $ac_func innocuous_$ac_func
20805 /* System header to define __stub macros and hopefully few prototypes,
20806 which can conflict with char $ac_func (); below.
20807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20808 <limits.h> exists even on freestanding compilers. */
20810 #ifdef __STDC__
20811 # include <limits.h>
20812 #else
20813 # include <assert.h>
20814 #endif
20816 #undef $ac_func
20818 /* Override any GCC internal prototype to avoid an error.
20819 Use char because int might match the return type of a GCC
20820 builtin and then its argument prototype would still apply. */
20821 #ifdef __cplusplus
20822 extern "C"
20823 #endif
20824 char $ac_func ();
20825 /* The GNU C library defines this for functions which it implements
20826 to always fail with ENOSYS. Some functions are actually named
20827 something starting with __ and the normal name is an alias. */
20828 #if defined __stub_$ac_func || defined __stub___$ac_func
20829 choke me
20830 #endif
20833 main ()
20835 return $ac_func ();
20837 return 0;
20839 _ACEOF
20840 rm -f conftest.$ac_objext conftest$ac_exeext
20841 if { (ac_try="$ac_link"
20842 case "(($ac_try" in
20843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844 *) ac_try_echo=$ac_try;;
20845 esac
20846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20847 $as_echo "$ac_try_echo") >&5
20848 (eval "$ac_link") 2>conftest.er1
20849 ac_status=$?
20850 grep -v '^ *+' conftest.er1 >conftest.err
20851 rm -f conftest.er1
20852 cat conftest.err >&5
20853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); } && {
20855 test -z "$ac_c_werror_flag" ||
20856 test ! -s conftest.err
20857 } && test -s conftest$ac_exeext && {
20858 test "$cross_compiling" = yes ||
20859 $as_test_x conftest$ac_exeext
20860 }; then
20861 eval "$as_ac_var=yes"
20862 else
20863 $as_echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20866 eval "$as_ac_var=no"
20869 rm -rf conftest.dSYM
20870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20871 conftest$ac_exeext conftest.$ac_ext
20873 ac_res=`eval 'as_val=${'$as_ac_var'}
20874 $as_echo "$as_val"'`
20875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20876 $as_echo "$ac_res" >&6; }
20877 if test `eval 'as_val=${'$as_ac_var'}
20878 $as_echo "$as_val"'` = yes; then
20879 cat >>confdefs.h <<_ACEOF
20880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20881 _ACEOF
20883 else
20884 # strftime is in -lintl on SCO UNIX.
20885 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20886 $as_echo_n "checking for strftime in -lintl... " >&6; }
20887 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20888 $as_echo_n "(cached) " >&6
20889 else
20890 ac_check_lib_save_LIBS=$LIBS
20891 LIBS="-lintl $LIBS"
20892 cat >conftest.$ac_ext <<_ACEOF
20893 /* confdefs.h. */
20894 _ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20899 /* Override any GCC internal prototype to avoid an error.
20900 Use char because int might match the return type of a GCC
20901 builtin and then its argument prototype would still apply. */
20902 #ifdef __cplusplus
20903 extern "C"
20904 #endif
20905 char strftime ();
20907 main ()
20909 return strftime ();
20911 return 0;
20913 _ACEOF
20914 rm -f conftest.$ac_objext conftest$ac_exeext
20915 if { (ac_try="$ac_link"
20916 case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20919 esac
20920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20921 $as_echo "$ac_try_echo") >&5
20922 (eval "$ac_link") 2>conftest.er1
20923 ac_status=$?
20924 grep -v '^ *+' conftest.er1 >conftest.err
20925 rm -f conftest.er1
20926 cat conftest.err >&5
20927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } && {
20929 test -z "$ac_c_werror_flag" ||
20930 test ! -s conftest.err
20931 } && test -s conftest$ac_exeext && {
20932 test "$cross_compiling" = yes ||
20933 $as_test_x conftest$ac_exeext
20934 }; then
20935 ac_cv_lib_intl_strftime=yes
20936 else
20937 $as_echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 ac_cv_lib_intl_strftime=no
20943 rm -rf conftest.dSYM
20944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20945 conftest$ac_exeext conftest.$ac_ext
20946 LIBS=$ac_check_lib_save_LIBS
20948 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20949 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20950 if test $ac_cv_lib_intl_strftime = yes; then
20951 cat >>confdefs.h <<\_ACEOF
20952 #define HAVE_STRFTIME 1
20953 _ACEOF
20955 LIBS="-lintl $LIBS"
20959 done
20962 # UNIX98 PTYs.
20964 for ac_func in grantpt
20966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20967 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20968 $as_echo_n "checking for $ac_func... " >&6; }
20969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20970 $as_echo_n "(cached) " >&6
20971 else
20972 cat >conftest.$ac_ext <<_ACEOF
20973 /* confdefs.h. */
20974 _ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h. */
20978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20980 #define $ac_func innocuous_$ac_func
20982 /* System header to define __stub macros and hopefully few prototypes,
20983 which can conflict with char $ac_func (); below.
20984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20985 <limits.h> exists even on freestanding compilers. */
20987 #ifdef __STDC__
20988 # include <limits.h>
20989 #else
20990 # include <assert.h>
20991 #endif
20993 #undef $ac_func
20995 /* Override any GCC internal prototype to avoid an error.
20996 Use char because int might match the return type of a GCC
20997 builtin and then its argument prototype would still apply. */
20998 #ifdef __cplusplus
20999 extern "C"
21000 #endif
21001 char $ac_func ();
21002 /* The GNU C library defines this for functions which it implements
21003 to always fail with ENOSYS. Some functions are actually named
21004 something starting with __ and the normal name is an alias. */
21005 #if defined __stub_$ac_func || defined __stub___$ac_func
21006 choke me
21007 #endif
21010 main ()
21012 return $ac_func ();
21014 return 0;
21016 _ACEOF
21017 rm -f conftest.$ac_objext conftest$ac_exeext
21018 if { (ac_try="$ac_link"
21019 case "(($ac_try" in
21020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21022 esac
21023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21024 $as_echo "$ac_try_echo") >&5
21025 (eval "$ac_link") 2>conftest.er1
21026 ac_status=$?
21027 grep -v '^ *+' conftest.er1 >conftest.err
21028 rm -f conftest.er1
21029 cat conftest.err >&5
21030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } && {
21032 test -z "$ac_c_werror_flag" ||
21033 test ! -s conftest.err
21034 } && test -s conftest$ac_exeext && {
21035 test "$cross_compiling" = yes ||
21036 $as_test_x conftest$ac_exeext
21037 }; then
21038 eval "$as_ac_var=yes"
21039 else
21040 $as_echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21043 eval "$as_ac_var=no"
21046 rm -rf conftest.dSYM
21047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21048 conftest$ac_exeext conftest.$ac_ext
21050 ac_res=`eval 'as_val=${'$as_ac_var'}
21051 $as_echo "$as_val"'`
21052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21053 $as_echo "$ac_res" >&6; }
21054 if test `eval 'as_val=${'$as_ac_var'}
21055 $as_echo "$as_val"'` = yes; then
21056 cat >>confdefs.h <<_ACEOF
21057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21058 _ACEOF
21061 done
21064 # PTY-related GNU extensions.
21066 for ac_func in getpt
21068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21069 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21070 $as_echo_n "checking for $ac_func... " >&6; }
21071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21072 $as_echo_n "(cached) " >&6
21073 else
21074 cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h. */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21082 #define $ac_func innocuous_$ac_func
21084 /* System header to define __stub macros and hopefully few prototypes,
21085 which can conflict with char $ac_func (); below.
21086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21087 <limits.h> exists even on freestanding compilers. */
21089 #ifdef __STDC__
21090 # include <limits.h>
21091 #else
21092 # include <assert.h>
21093 #endif
21095 #undef $ac_func
21097 /* Override any GCC internal prototype to avoid an error.
21098 Use char because int might match the return type of a GCC
21099 builtin and then its argument prototype would still apply. */
21100 #ifdef __cplusplus
21101 extern "C"
21102 #endif
21103 char $ac_func ();
21104 /* The GNU C library defines this for functions which it implements
21105 to always fail with ENOSYS. Some functions are actually named
21106 something starting with __ and the normal name is an alias. */
21107 #if defined __stub_$ac_func || defined __stub___$ac_func
21108 choke me
21109 #endif
21112 main ()
21114 return $ac_func ();
21116 return 0;
21118 _ACEOF
21119 rm -f conftest.$ac_objext conftest$ac_exeext
21120 if { (ac_try="$ac_link"
21121 case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21124 esac
21125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21126 $as_echo "$ac_try_echo") >&5
21127 (eval "$ac_link") 2>conftest.er1
21128 ac_status=$?
21129 grep -v '^ *+' conftest.er1 >conftest.err
21130 rm -f conftest.er1
21131 cat conftest.err >&5
21132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } && {
21134 test -z "$ac_c_werror_flag" ||
21135 test ! -s conftest.err
21136 } && test -s conftest$ac_exeext && {
21137 test "$cross_compiling" = yes ||
21138 $as_test_x conftest$ac_exeext
21139 }; then
21140 eval "$as_ac_var=yes"
21141 else
21142 $as_echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21145 eval "$as_ac_var=no"
21148 rm -rf conftest.dSYM
21149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21150 conftest$ac_exeext conftest.$ac_ext
21152 ac_res=`eval 'as_val=${'$as_ac_var'}
21153 $as_echo "$as_val"'`
21154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21155 $as_echo "$ac_res" >&6; }
21156 if test `eval 'as_val=${'$as_ac_var'}
21157 $as_echo "$as_val"'` = yes; then
21158 cat >>confdefs.h <<_ACEOF
21159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21160 _ACEOF
21163 done
21166 # Check this now, so that we will NOT find the above functions in ncurses.
21167 # That is because we have not set up to link ncurses in lib-src.
21168 # It's better to believe a function is not available
21169 # than to expect to find it in ncurses.
21170 # Also we need tputs and frieds to be able to build at all.
21171 have_tputs_et_al=true
21172 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21173 $as_echo_n "checking for library containing tputs... " >&6; }
21174 if test "${ac_cv_search_tputs+set}" = set; then
21175 $as_echo_n "(cached) " >&6
21176 else
21177 ac_func_search_save_LIBS=$LIBS
21178 cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h. */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21185 /* Override any GCC internal prototype to avoid an error.
21186 Use char because int might match the return type of a GCC
21187 builtin and then its argument prototype would still apply. */
21188 #ifdef __cplusplus
21189 extern "C"
21190 #endif
21191 char tputs ();
21193 main ()
21195 return tputs ();
21197 return 0;
21199 _ACEOF
21200 for ac_lib in '' ncurses terminfo termcap; do
21201 if test -z "$ac_lib"; then
21202 ac_res="none required"
21203 else
21204 ac_res=-l$ac_lib
21205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21207 rm -f conftest.$ac_objext conftest$ac_exeext
21208 if { (ac_try="$ac_link"
21209 case "(($ac_try" in
21210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211 *) ac_try_echo=$ac_try;;
21212 esac
21213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21214 $as_echo "$ac_try_echo") >&5
21215 (eval "$ac_link") 2>conftest.er1
21216 ac_status=$?
21217 grep -v '^ *+' conftest.er1 >conftest.err
21218 rm -f conftest.er1
21219 cat conftest.err >&5
21220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); } && {
21222 test -z "$ac_c_werror_flag" ||
21223 test ! -s conftest.err
21224 } && test -s conftest$ac_exeext && {
21225 test "$cross_compiling" = yes ||
21226 $as_test_x conftest$ac_exeext
21227 }; then
21228 ac_cv_search_tputs=$ac_res
21229 else
21230 $as_echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.$ac_ext >&5
21236 rm -rf conftest.dSYM
21237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21238 conftest$ac_exeext
21239 if test "${ac_cv_search_tputs+set}" = set; then
21240 break
21242 done
21243 if test "${ac_cv_search_tputs+set}" = set; then
21245 else
21246 ac_cv_search_tputs=no
21248 rm conftest.$ac_ext
21249 LIBS=$ac_func_search_save_LIBS
21251 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21252 $as_echo "$ac_cv_search_tputs" >&6; }
21253 ac_res=$ac_cv_search_tputs
21254 if test "$ac_res" != no; then
21255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21257 else
21258 have_tputs_et_al=false
21261 if test "$have_tputs_et_al" != true; then
21262 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21263 Maybe some development libraries/packages are missing? Try installing
21264 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21265 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21266 Maybe some development libraries/packages are missing? Try installing
21267 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21268 { (exit 1); exit 1; }; }
21270 # Must define this when any termcap library is found.
21272 cat >>confdefs.h <<\_ACEOF
21273 #define HAVE_LIBNCURSES 1
21274 _ACEOF
21277 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21279 resolv=no
21280 cat >conftest.$ac_ext <<_ACEOF
21281 /* confdefs.h. */
21282 _ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21286 #include <netinet/in.h>
21287 #include <arpa/nameser.h>
21288 #include <resolv.h>
21290 main ()
21292 return res_init();
21294 return 0;
21296 _ACEOF
21297 rm -f conftest.$ac_objext conftest$ac_exeext
21298 if { (ac_try="$ac_link"
21299 case "(($ac_try" in
21300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301 *) ac_try_echo=$ac_try;;
21302 esac
21303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21304 $as_echo "$ac_try_echo") >&5
21305 (eval "$ac_link") 2>conftest.er1
21306 ac_status=$?
21307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
21310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } && {
21312 test -z "$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21314 } && test -s conftest$ac_exeext && {
21315 test "$cross_compiling" = yes ||
21316 $as_test_x conftest$ac_exeext
21317 }; then
21318 have_res_init=yes
21319 else
21320 $as_echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21323 have_res_init=no
21326 rm -rf conftest.dSYM
21327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21328 conftest$ac_exeext conftest.$ac_ext
21329 if test "$have_res_init" = no; then
21330 OLIBS="$LIBS"
21331 LIBS="$LIBS -lresolv"
21332 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21333 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21334 cat >conftest.$ac_ext <<_ACEOF
21335 /* confdefs.h. */
21336 _ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340 #include <netinet/in.h>
21341 #include <arpa/nameser.h>
21342 #include <resolv.h>
21344 main ()
21346 return res_init();
21348 return 0;
21350 _ACEOF
21351 rm -f conftest.$ac_objext conftest$ac_exeext
21352 if { (ac_try="$ac_link"
21353 case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21356 esac
21357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21358 $as_echo "$ac_try_echo") >&5
21359 (eval "$ac_link") 2>conftest.er1
21360 ac_status=$?
21361 grep -v '^ *+' conftest.er1 >conftest.err
21362 rm -f conftest.er1
21363 cat conftest.err >&5
21364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } && {
21366 test -z "$ac_c_werror_flag" ||
21367 test ! -s conftest.err
21368 } && test -s conftest$ac_exeext && {
21369 test "$cross_compiling" = yes ||
21370 $as_test_x conftest$ac_exeext
21371 }; then
21372 have_res_init=yes
21373 else
21374 $as_echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21377 have_res_init=no
21380 rm -rf conftest.dSYM
21381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21382 conftest$ac_exeext conftest.$ac_ext
21383 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21384 $as_echo "$have_res_init" >&6; }
21385 if test "$have_res_init" = yes ; then
21386 resolv=yes
21388 LIBS="$OLIBS"
21391 if test "$have_res_init" = yes; then
21393 cat >>confdefs.h <<\_ACEOF
21394 #define HAVE_RES_INIT 1
21395 _ACEOF
21399 # Do we need the Hesiod library to provide the support routines?
21400 LIBHESIOD=
21401 if test "$with_hesiod" != no ; then
21402 # Don't set $LIBS here -- see comments above. FIXME which comments?
21403 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21404 $as_echo_n "checking for res_send... " >&6; }
21405 if test "${ac_cv_func_res_send+set}" = set; then
21406 $as_echo_n "(cached) " >&6
21407 else
21408 cat >conftest.$ac_ext <<_ACEOF
21409 /* confdefs.h. */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21414 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21416 #define res_send innocuous_res_send
21418 /* System header to define __stub macros and hopefully few prototypes,
21419 which can conflict with char res_send (); below.
21420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21421 <limits.h> exists even on freestanding compilers. */
21423 #ifdef __STDC__
21424 # include <limits.h>
21425 #else
21426 # include <assert.h>
21427 #endif
21429 #undef res_send
21431 /* Override any GCC internal prototype to avoid an error.
21432 Use char because int might match the return type of a GCC
21433 builtin and then its argument prototype would still apply. */
21434 #ifdef __cplusplus
21435 extern "C"
21436 #endif
21437 char res_send ();
21438 /* The GNU C library defines this for functions which it implements
21439 to always fail with ENOSYS. Some functions are actually named
21440 something starting with __ and the normal name is an alias. */
21441 #if defined __stub_res_send || defined __stub___res_send
21442 choke me
21443 #endif
21446 main ()
21448 return res_send ();
21450 return 0;
21452 _ACEOF
21453 rm -f conftest.$ac_objext conftest$ac_exeext
21454 if { (ac_try="$ac_link"
21455 case "(($ac_try" in
21456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457 *) ac_try_echo=$ac_try;;
21458 esac
21459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21460 $as_echo "$ac_try_echo") >&5
21461 (eval "$ac_link") 2>conftest.er1
21462 ac_status=$?
21463 grep -v '^ *+' conftest.er1 >conftest.err
21464 rm -f conftest.er1
21465 cat conftest.err >&5
21466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } && {
21468 test -z "$ac_c_werror_flag" ||
21469 test ! -s conftest.err
21470 } && test -s conftest$ac_exeext && {
21471 test "$cross_compiling" = yes ||
21472 $as_test_x conftest$ac_exeext
21473 }; then
21474 ac_cv_func_res_send=yes
21475 else
21476 $as_echo "$as_me: failed program was:" >&5
21477 sed 's/^/| /' conftest.$ac_ext >&5
21479 ac_cv_func_res_send=no
21482 rm -rf conftest.dSYM
21483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21484 conftest$ac_exeext conftest.$ac_ext
21486 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21487 $as_echo "$ac_cv_func_res_send" >&6; }
21488 if test $ac_cv_func_res_send = yes; then
21490 else
21491 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21492 $as_echo_n "checking for __res_send... " >&6; }
21493 if test "${ac_cv_func___res_send+set}" = set; then
21494 $as_echo_n "(cached) " >&6
21495 else
21496 cat >conftest.$ac_ext <<_ACEOF
21497 /* confdefs.h. */
21498 _ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h. */
21502 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21504 #define __res_send innocuous___res_send
21506 /* System header to define __stub macros and hopefully few prototypes,
21507 which can conflict with char __res_send (); below.
21508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21509 <limits.h> exists even on freestanding compilers. */
21511 #ifdef __STDC__
21512 # include <limits.h>
21513 #else
21514 # include <assert.h>
21515 #endif
21517 #undef __res_send
21519 /* Override any GCC internal prototype to avoid an error.
21520 Use char because int might match the return type of a GCC
21521 builtin and then its argument prototype would still apply. */
21522 #ifdef __cplusplus
21523 extern "C"
21524 #endif
21525 char __res_send ();
21526 /* The GNU C library defines this for functions which it implements
21527 to always fail with ENOSYS. Some functions are actually named
21528 something starting with __ and the normal name is an alias. */
21529 #if defined __stub___res_send || defined __stub_____res_send
21530 choke me
21531 #endif
21534 main ()
21536 return __res_send ();
21538 return 0;
21540 _ACEOF
21541 rm -f conftest.$ac_objext conftest$ac_exeext
21542 if { (ac_try="$ac_link"
21543 case "(($ac_try" in
21544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21545 *) ac_try_echo=$ac_try;;
21546 esac
21547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21548 $as_echo "$ac_try_echo") >&5
21549 (eval "$ac_link") 2>conftest.er1
21550 ac_status=$?
21551 grep -v '^ *+' conftest.er1 >conftest.err
21552 rm -f conftest.er1
21553 cat conftest.err >&5
21554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); } && {
21556 test -z "$ac_c_werror_flag" ||
21557 test ! -s conftest.err
21558 } && test -s conftest$ac_exeext && {
21559 test "$cross_compiling" = yes ||
21560 $as_test_x conftest$ac_exeext
21561 }; then
21562 ac_cv_func___res_send=yes
21563 else
21564 $as_echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21567 ac_cv_func___res_send=no
21570 rm -rf conftest.dSYM
21571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21572 conftest$ac_exeext conftest.$ac_ext
21574 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21575 $as_echo "$ac_cv_func___res_send" >&6; }
21576 if test $ac_cv_func___res_send = yes; then
21578 else
21579 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21580 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21581 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21582 $as_echo_n "(cached) " >&6
21583 else
21584 ac_check_lib_save_LIBS=$LIBS
21585 LIBS="-lresolv $LIBS"
21586 cat >conftest.$ac_ext <<_ACEOF
21587 /* confdefs.h. */
21588 _ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h. */
21593 /* Override any GCC internal prototype to avoid an error.
21594 Use char because int might match the return type of a GCC
21595 builtin and then its argument prototype would still apply. */
21596 #ifdef __cplusplus
21597 extern "C"
21598 #endif
21599 char res_send ();
21601 main ()
21603 return res_send ();
21605 return 0;
21607 _ACEOF
21608 rm -f conftest.$ac_objext conftest$ac_exeext
21609 if { (ac_try="$ac_link"
21610 case "(($ac_try" in
21611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612 *) ac_try_echo=$ac_try;;
21613 esac
21614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21615 $as_echo "$ac_try_echo") >&5
21616 (eval "$ac_link") 2>conftest.er1
21617 ac_status=$?
21618 grep -v '^ *+' conftest.er1 >conftest.err
21619 rm -f conftest.er1
21620 cat conftest.err >&5
21621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } && {
21623 test -z "$ac_c_werror_flag" ||
21624 test ! -s conftest.err
21625 } && test -s conftest$ac_exeext && {
21626 test "$cross_compiling" = yes ||
21627 $as_test_x conftest$ac_exeext
21628 }; then
21629 ac_cv_lib_resolv_res_send=yes
21630 else
21631 $as_echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 ac_cv_lib_resolv_res_send=no
21637 rm -rf conftest.dSYM
21638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21639 conftest$ac_exeext conftest.$ac_ext
21640 LIBS=$ac_check_lib_save_LIBS
21642 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21643 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21644 if test $ac_cv_lib_resolv_res_send = yes; then
21645 resolv=yes
21646 else
21647 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21648 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21649 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21650 $as_echo_n "(cached) " >&6
21651 else
21652 ac_check_lib_save_LIBS=$LIBS
21653 LIBS="-lresolv $LIBS"
21654 cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h. */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21661 /* Override any GCC internal prototype to avoid an error.
21662 Use char because int might match the return type of a GCC
21663 builtin and then its argument prototype would still apply. */
21664 #ifdef __cplusplus
21665 extern "C"
21666 #endif
21667 char __res_send ();
21669 main ()
21671 return __res_send ();
21673 return 0;
21675 _ACEOF
21676 rm -f conftest.$ac_objext conftest$ac_exeext
21677 if { (ac_try="$ac_link"
21678 case "(($ac_try" in
21679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21680 *) ac_try_echo=$ac_try;;
21681 esac
21682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21683 $as_echo "$ac_try_echo") >&5
21684 (eval "$ac_link") 2>conftest.er1
21685 ac_status=$?
21686 grep -v '^ *+' conftest.er1 >conftest.err
21687 rm -f conftest.er1
21688 cat conftest.err >&5
21689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); } && {
21691 test -z "$ac_c_werror_flag" ||
21692 test ! -s conftest.err
21693 } && test -s conftest$ac_exeext && {
21694 test "$cross_compiling" = yes ||
21695 $as_test_x conftest$ac_exeext
21696 }; then
21697 ac_cv_lib_resolv___res_send=yes
21698 else
21699 $as_echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21702 ac_cv_lib_resolv___res_send=no
21705 rm -rf conftest.dSYM
21706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21707 conftest$ac_exeext conftest.$ac_ext
21708 LIBS=$ac_check_lib_save_LIBS
21710 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21711 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21712 if test $ac_cv_lib_resolv___res_send = yes; then
21713 resolv=yes
21722 if test "$resolv" = yes ; then
21723 RESOLVLIB=-lresolv
21724 else
21725 RESOLVLIB=
21727 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21728 $as_echo_n "checking for hes_getmailhost... " >&6; }
21729 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21730 $as_echo_n "(cached) " >&6
21731 else
21732 cat >conftest.$ac_ext <<_ACEOF
21733 /* confdefs.h. */
21734 _ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h. */
21738 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21740 #define hes_getmailhost innocuous_hes_getmailhost
21742 /* System header to define __stub macros and hopefully few prototypes,
21743 which can conflict with char hes_getmailhost (); below.
21744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21745 <limits.h> exists even on freestanding compilers. */
21747 #ifdef __STDC__
21748 # include <limits.h>
21749 #else
21750 # include <assert.h>
21751 #endif
21753 #undef hes_getmailhost
21755 /* Override any GCC internal prototype to avoid an error.
21756 Use char because int might match the return type of a GCC
21757 builtin and then its argument prototype would still apply. */
21758 #ifdef __cplusplus
21759 extern "C"
21760 #endif
21761 char hes_getmailhost ();
21762 /* The GNU C library defines this for functions which it implements
21763 to always fail with ENOSYS. Some functions are actually named
21764 something starting with __ and the normal name is an alias. */
21765 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21766 choke me
21767 #endif
21770 main ()
21772 return hes_getmailhost ();
21774 return 0;
21776 _ACEOF
21777 rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (ac_try="$ac_link"
21779 case "(($ac_try" in
21780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21782 esac
21783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21784 $as_echo "$ac_try_echo") >&5
21785 (eval "$ac_link") 2>conftest.er1
21786 ac_status=$?
21787 grep -v '^ *+' conftest.er1 >conftest.err
21788 rm -f conftest.er1
21789 cat conftest.err >&5
21790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } && {
21792 test -z "$ac_c_werror_flag" ||
21793 test ! -s conftest.err
21794 } && test -s conftest$ac_exeext && {
21795 test "$cross_compiling" = yes ||
21796 $as_test_x conftest$ac_exeext
21797 }; then
21798 ac_cv_func_hes_getmailhost=yes
21799 else
21800 $as_echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21803 ac_cv_func_hes_getmailhost=no
21806 rm -rf conftest.dSYM
21807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21808 conftest$ac_exeext conftest.$ac_ext
21810 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21811 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21812 if test $ac_cv_func_hes_getmailhost = yes; then
21814 else
21815 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21816 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21817 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21818 $as_echo_n "(cached) " >&6
21819 else
21820 ac_check_lib_save_LIBS=$LIBS
21821 LIBS="-lhesiod $RESOLVLIB $LIBS"
21822 cat >conftest.$ac_ext <<_ACEOF
21823 /* confdefs.h. */
21824 _ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h. */
21829 /* Override any GCC internal prototype to avoid an error.
21830 Use char because int might match the return type of a GCC
21831 builtin and then its argument prototype would still apply. */
21832 #ifdef __cplusplus
21833 extern "C"
21834 #endif
21835 char hes_getmailhost ();
21837 main ()
21839 return hes_getmailhost ();
21841 return 0;
21843 _ACEOF
21844 rm -f conftest.$ac_objext conftest$ac_exeext
21845 if { (ac_try="$ac_link"
21846 case "(($ac_try" in
21847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848 *) ac_try_echo=$ac_try;;
21849 esac
21850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21851 $as_echo "$ac_try_echo") >&5
21852 (eval "$ac_link") 2>conftest.er1
21853 ac_status=$?
21854 grep -v '^ *+' conftest.er1 >conftest.err
21855 rm -f conftest.er1
21856 cat conftest.err >&5
21857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); } && {
21859 test -z "$ac_c_werror_flag" ||
21860 test ! -s conftest.err
21861 } && test -s conftest$ac_exeext && {
21862 test "$cross_compiling" = yes ||
21863 $as_test_x conftest$ac_exeext
21864 }; then
21865 ac_cv_lib_hesiod_hes_getmailhost=yes
21866 else
21867 $as_echo "$as_me: failed program was:" >&5
21868 sed 's/^/| /' conftest.$ac_ext >&5
21870 ac_cv_lib_hesiod_hes_getmailhost=no
21873 rm -rf conftest.dSYM
21874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21875 conftest$ac_exeext conftest.$ac_ext
21876 LIBS=$ac_check_lib_save_LIBS
21878 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21879 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21880 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21881 hesiod=yes
21882 else
21889 if test x"$hesiod" = xyes; then
21891 cat >>confdefs.h <<\_ACEOF
21892 #define HAVE_LIBHESIOD 1
21893 _ACEOF
21895 LIBHESIOD=-lhesiod
21900 # Do we need libresolv (due to res_init or Hesiod)?
21901 if test "$resolv" = yes ; then
21903 cat >>confdefs.h <<\_ACEOF
21904 #define HAVE_LIBRESOLV 1
21905 _ACEOF
21907 LIBRESOLV=-lresolv
21908 else
21909 LIBRESOLV=
21913 # These tell us which Kerberos-related libraries to use.
21914 COM_ERRLIB=
21915 CRYPTOLIB=
21916 KRB5LIB=
21917 DESLIB=
21918 KRB4LIB=
21920 if test "${with_kerberos}" != no; then
21921 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21922 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21923 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21924 $as_echo_n "(cached) " >&6
21925 else
21926 ac_check_lib_save_LIBS=$LIBS
21927 LIBS="-lcom_err $LIBS"
21928 cat >conftest.$ac_ext <<_ACEOF
21929 /* confdefs.h. */
21930 _ACEOF
21931 cat confdefs.h >>conftest.$ac_ext
21932 cat >>conftest.$ac_ext <<_ACEOF
21933 /* end confdefs.h. */
21935 /* Override any GCC internal prototype to avoid an error.
21936 Use char because int might match the return type of a GCC
21937 builtin and then its argument prototype would still apply. */
21938 #ifdef __cplusplus
21939 extern "C"
21940 #endif
21941 char com_err ();
21943 main ()
21945 return com_err ();
21947 return 0;
21949 _ACEOF
21950 rm -f conftest.$ac_objext conftest$ac_exeext
21951 if { (ac_try="$ac_link"
21952 case "(($ac_try" in
21953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954 *) ac_try_echo=$ac_try;;
21955 esac
21956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21957 $as_echo "$ac_try_echo") >&5
21958 (eval "$ac_link") 2>conftest.er1
21959 ac_status=$?
21960 grep -v '^ *+' conftest.er1 >conftest.err
21961 rm -f conftest.er1
21962 cat conftest.err >&5
21963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } && {
21965 test -z "$ac_c_werror_flag" ||
21966 test ! -s conftest.err
21967 } && test -s conftest$ac_exeext && {
21968 test "$cross_compiling" = yes ||
21969 $as_test_x conftest$ac_exeext
21970 }; then
21971 ac_cv_lib_com_err_com_err=yes
21972 else
21973 $as_echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21976 ac_cv_lib_com_err_com_err=no
21979 rm -rf conftest.dSYM
21980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21981 conftest$ac_exeext conftest.$ac_ext
21982 LIBS=$ac_check_lib_save_LIBS
21984 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21985 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21986 if test $ac_cv_lib_com_err_com_err = yes; then
21987 have_com_err=yes
21988 else
21989 have_com_err=no
21992 if test $have_com_err = yes; then
21993 COM_ERRLIB=-lcom_err
21994 LIBS="$COM_ERRLIB $LIBS"
21996 cat >>confdefs.h <<\_ACEOF
21997 #define HAVE_LIBCOM_ERR 1
21998 _ACEOF
22001 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22002 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22003 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22004 $as_echo_n "(cached) " >&6
22005 else
22006 ac_check_lib_save_LIBS=$LIBS
22007 LIBS="-lcrypto $LIBS"
22008 cat >conftest.$ac_ext <<_ACEOF
22009 /* confdefs.h. */
22010 _ACEOF
22011 cat confdefs.h >>conftest.$ac_ext
22012 cat >>conftest.$ac_ext <<_ACEOF
22013 /* end confdefs.h. */
22015 /* Override any GCC internal prototype to avoid an error.
22016 Use char because int might match the return type of a GCC
22017 builtin and then its argument prototype would still apply. */
22018 #ifdef __cplusplus
22019 extern "C"
22020 #endif
22021 char mit_des_cbc_encrypt ();
22023 main ()
22025 return mit_des_cbc_encrypt ();
22027 return 0;
22029 _ACEOF
22030 rm -f conftest.$ac_objext conftest$ac_exeext
22031 if { (ac_try="$ac_link"
22032 case "(($ac_try" in
22033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034 *) ac_try_echo=$ac_try;;
22035 esac
22036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22037 $as_echo "$ac_try_echo") >&5
22038 (eval "$ac_link") 2>conftest.er1
22039 ac_status=$?
22040 grep -v '^ *+' conftest.er1 >conftest.err
22041 rm -f conftest.er1
22042 cat conftest.err >&5
22043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } && {
22045 test -z "$ac_c_werror_flag" ||
22046 test ! -s conftest.err
22047 } && test -s conftest$ac_exeext && {
22048 test "$cross_compiling" = yes ||
22049 $as_test_x conftest$ac_exeext
22050 }; then
22051 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22052 else
22053 $as_echo "$as_me: failed program was:" >&5
22054 sed 's/^/| /' conftest.$ac_ext >&5
22056 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22059 rm -rf conftest.dSYM
22060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22061 conftest$ac_exeext conftest.$ac_ext
22062 LIBS=$ac_check_lib_save_LIBS
22064 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22065 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22066 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22067 have_crypto=yes
22068 else
22069 have_crypto=no
22072 if test $have_crypto = yes; then
22073 CRYPTOLIB=-lcrypto
22074 LIBS="$CRYPTOLIB $LIBS"
22076 cat >>confdefs.h <<\_ACEOF
22077 #define HAVE_LIBCRYPTO 1
22078 _ACEOF
22081 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22082 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22083 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22084 $as_echo_n "(cached) " >&6
22085 else
22086 ac_check_lib_save_LIBS=$LIBS
22087 LIBS="-lk5crypto $LIBS"
22088 cat >conftest.$ac_ext <<_ACEOF
22089 /* confdefs.h. */
22090 _ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22095 /* Override any GCC internal prototype to avoid an error.
22096 Use char because int might match the return type of a GCC
22097 builtin and then its argument prototype would still apply. */
22098 #ifdef __cplusplus
22099 extern "C"
22100 #endif
22101 char mit_des_cbc_encrypt ();
22103 main ()
22105 return mit_des_cbc_encrypt ();
22107 return 0;
22109 _ACEOF
22110 rm -f conftest.$ac_objext conftest$ac_exeext
22111 if { (ac_try="$ac_link"
22112 case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22115 esac
22116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22117 $as_echo "$ac_try_echo") >&5
22118 (eval "$ac_link") 2>conftest.er1
22119 ac_status=$?
22120 grep -v '^ *+' conftest.er1 >conftest.err
22121 rm -f conftest.er1
22122 cat conftest.err >&5
22123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); } && {
22125 test -z "$ac_c_werror_flag" ||
22126 test ! -s conftest.err
22127 } && test -s conftest$ac_exeext && {
22128 test "$cross_compiling" = yes ||
22129 $as_test_x conftest$ac_exeext
22130 }; then
22131 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22132 else
22133 $as_echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22136 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22139 rm -rf conftest.dSYM
22140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22141 conftest$ac_exeext conftest.$ac_ext
22142 LIBS=$ac_check_lib_save_LIBS
22144 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22145 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22146 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22147 have_k5crypto=yes
22148 else
22149 have_k5crypto=no
22152 if test $have_k5crypto = yes; then
22153 CRYPTOLIB=-lk5crypto
22154 LIBS="$CRYPTOLIB $LIBS"
22156 cat >>confdefs.h <<\_ACEOF
22157 #define HAVE_LIBK5CRYPTO 1
22158 _ACEOF
22161 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22162 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22163 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22164 $as_echo_n "(cached) " >&6
22165 else
22166 ac_check_lib_save_LIBS=$LIBS
22167 LIBS="-lkrb5 $LIBS"
22168 cat >conftest.$ac_ext <<_ACEOF
22169 /* confdefs.h. */
22170 _ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h. */
22175 /* Override any GCC internal prototype to avoid an error.
22176 Use char because int might match the return type of a GCC
22177 builtin and then its argument prototype would still apply. */
22178 #ifdef __cplusplus
22179 extern "C"
22180 #endif
22181 char krb5_init_context ();
22183 main ()
22185 return krb5_init_context ();
22187 return 0;
22189 _ACEOF
22190 rm -f conftest.$ac_objext conftest$ac_exeext
22191 if { (ac_try="$ac_link"
22192 case "(($ac_try" in
22193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22194 *) ac_try_echo=$ac_try;;
22195 esac
22196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22197 $as_echo "$ac_try_echo") >&5
22198 (eval "$ac_link") 2>conftest.er1
22199 ac_status=$?
22200 grep -v '^ *+' conftest.er1 >conftest.err
22201 rm -f conftest.er1
22202 cat conftest.err >&5
22203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); } && {
22205 test -z "$ac_c_werror_flag" ||
22206 test ! -s conftest.err
22207 } && test -s conftest$ac_exeext && {
22208 test "$cross_compiling" = yes ||
22209 $as_test_x conftest$ac_exeext
22210 }; then
22211 ac_cv_lib_krb5_krb5_init_context=yes
22212 else
22213 $as_echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22216 ac_cv_lib_krb5_krb5_init_context=no
22219 rm -rf conftest.dSYM
22220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22221 conftest$ac_exeext conftest.$ac_ext
22222 LIBS=$ac_check_lib_save_LIBS
22224 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22225 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22226 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22227 have_krb5=yes
22228 else
22229 have_krb5=no
22232 if test $have_krb5=yes; then
22233 KRB5LIB=-lkrb5
22234 LIBS="$KRB5LIB $LIBS"
22236 cat >>confdefs.h <<\_ACEOF
22237 #define HAVE_LIBKRB5 1
22238 _ACEOF
22241 if test "${with_kerberos5}" = no; then
22242 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22243 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22244 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22245 $as_echo_n "(cached) " >&6
22246 else
22247 ac_check_lib_save_LIBS=$LIBS
22248 LIBS="-ldes425 $LIBS"
22249 cat >conftest.$ac_ext <<_ACEOF
22250 /* confdefs.h. */
22251 _ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22256 /* Override any GCC internal prototype to avoid an error.
22257 Use char because int might match the return type of a GCC
22258 builtin and then its argument prototype would still apply. */
22259 #ifdef __cplusplus
22260 extern "C"
22261 #endif
22262 char des_cbc_encrypt ();
22264 main ()
22266 return des_cbc_encrypt ();
22268 return 0;
22270 _ACEOF
22271 rm -f conftest.$ac_objext conftest$ac_exeext
22272 if { (ac_try="$ac_link"
22273 case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22276 esac
22277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22278 $as_echo "$ac_try_echo") >&5
22279 (eval "$ac_link") 2>conftest.er1
22280 ac_status=$?
22281 grep -v '^ *+' conftest.er1 >conftest.err
22282 rm -f conftest.er1
22283 cat conftest.err >&5
22284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } && {
22286 test -z "$ac_c_werror_flag" ||
22287 test ! -s conftest.err
22288 } && test -s conftest$ac_exeext && {
22289 test "$cross_compiling" = yes ||
22290 $as_test_x conftest$ac_exeext
22291 }; then
22292 ac_cv_lib_des425_des_cbc_encrypt=yes
22293 else
22294 $as_echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22297 ac_cv_lib_des425_des_cbc_encrypt=no
22300 rm -rf conftest.dSYM
22301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22302 conftest$ac_exeext conftest.$ac_ext
22303 LIBS=$ac_check_lib_save_LIBS
22305 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22306 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22307 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22308 have_des425=yes
22309 else
22310 have_des425=no
22313 if test $have_des425 = yes; then
22314 DESLIB=-ldes425
22315 LIBS="$DESLIB $LIBS"
22317 cat >>confdefs.h <<\_ACEOF
22318 #define HAVE_LIBDES425 1
22319 _ACEOF
22321 else
22322 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22323 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22324 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22325 $as_echo_n "(cached) " >&6
22326 else
22327 ac_check_lib_save_LIBS=$LIBS
22328 LIBS="-ldes $LIBS"
22329 cat >conftest.$ac_ext <<_ACEOF
22330 /* confdefs.h. */
22331 _ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h. */
22336 /* Override any GCC internal prototype to avoid an error.
22337 Use char because int might match the return type of a GCC
22338 builtin and then its argument prototype would still apply. */
22339 #ifdef __cplusplus
22340 extern "C"
22341 #endif
22342 char des_cbc_encrypt ();
22344 main ()
22346 return des_cbc_encrypt ();
22348 return 0;
22350 _ACEOF
22351 rm -f conftest.$ac_objext conftest$ac_exeext
22352 if { (ac_try="$ac_link"
22353 case "(($ac_try" in
22354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355 *) ac_try_echo=$ac_try;;
22356 esac
22357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22358 $as_echo "$ac_try_echo") >&5
22359 (eval "$ac_link") 2>conftest.er1
22360 ac_status=$?
22361 grep -v '^ *+' conftest.er1 >conftest.err
22362 rm -f conftest.er1
22363 cat conftest.err >&5
22364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); } && {
22366 test -z "$ac_c_werror_flag" ||
22367 test ! -s conftest.err
22368 } && test -s conftest$ac_exeext && {
22369 test "$cross_compiling" = yes ||
22370 $as_test_x conftest$ac_exeext
22371 }; then
22372 ac_cv_lib_des_des_cbc_encrypt=yes
22373 else
22374 $as_echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22377 ac_cv_lib_des_des_cbc_encrypt=no
22380 rm -rf conftest.dSYM
22381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22382 conftest$ac_exeext conftest.$ac_ext
22383 LIBS=$ac_check_lib_save_LIBS
22385 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22386 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22387 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22388 have_des=yes
22389 else
22390 have_des=no
22393 if test $have_des = yes; then
22394 DESLIB=-ldes
22395 LIBS="$DESLIB $LIBS"
22397 cat >>confdefs.h <<\_ACEOF
22398 #define HAVE_LIBDES 1
22399 _ACEOF
22403 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22404 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22405 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22406 $as_echo_n "(cached) " >&6
22407 else
22408 ac_check_lib_save_LIBS=$LIBS
22409 LIBS="-lkrb4 $LIBS"
22410 cat >conftest.$ac_ext <<_ACEOF
22411 /* confdefs.h. */
22412 _ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h. */
22417 /* Override any GCC internal prototype to avoid an error.
22418 Use char because int might match the return type of a GCC
22419 builtin and then its argument prototype would still apply. */
22420 #ifdef __cplusplus
22421 extern "C"
22422 #endif
22423 char krb_get_cred ();
22425 main ()
22427 return krb_get_cred ();
22429 return 0;
22431 _ACEOF
22432 rm -f conftest.$ac_objext conftest$ac_exeext
22433 if { (ac_try="$ac_link"
22434 case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22437 esac
22438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22439 $as_echo "$ac_try_echo") >&5
22440 (eval "$ac_link") 2>conftest.er1
22441 ac_status=$?
22442 grep -v '^ *+' conftest.er1 >conftest.err
22443 rm -f conftest.er1
22444 cat conftest.err >&5
22445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } && {
22447 test -z "$ac_c_werror_flag" ||
22448 test ! -s conftest.err
22449 } && test -s conftest$ac_exeext && {
22450 test "$cross_compiling" = yes ||
22451 $as_test_x conftest$ac_exeext
22452 }; then
22453 ac_cv_lib_krb4_krb_get_cred=yes
22454 else
22455 $as_echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22458 ac_cv_lib_krb4_krb_get_cred=no
22461 rm -rf conftest.dSYM
22462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22463 conftest$ac_exeext conftest.$ac_ext
22464 LIBS=$ac_check_lib_save_LIBS
22466 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22467 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22468 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22469 have_krb4=yes
22470 else
22471 have_krb4=no
22474 if test $have_krb4 = yes; then
22475 KRB4LIB=-lkrb4
22476 LIBS="$KRB4LIB $LIBS"
22478 cat >>confdefs.h <<\_ACEOF
22479 #define HAVE_LIBKRB4 1
22480 _ACEOF
22482 else
22483 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22484 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22485 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22486 $as_echo_n "(cached) " >&6
22487 else
22488 ac_check_lib_save_LIBS=$LIBS
22489 LIBS="-lkrb $LIBS"
22490 cat >conftest.$ac_ext <<_ACEOF
22491 /* confdefs.h. */
22492 _ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h. */
22497 /* Override any GCC internal prototype to avoid an error.
22498 Use char because int might match the return type of a GCC
22499 builtin and then its argument prototype would still apply. */
22500 #ifdef __cplusplus
22501 extern "C"
22502 #endif
22503 char krb_get_cred ();
22505 main ()
22507 return krb_get_cred ();
22509 return 0;
22511 _ACEOF
22512 rm -f conftest.$ac_objext conftest$ac_exeext
22513 if { (ac_try="$ac_link"
22514 case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22517 esac
22518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22519 $as_echo "$ac_try_echo") >&5
22520 (eval "$ac_link") 2>conftest.er1
22521 ac_status=$?
22522 grep -v '^ *+' conftest.er1 >conftest.err
22523 rm -f conftest.er1
22524 cat conftest.err >&5
22525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } && {
22527 test -z "$ac_c_werror_flag" ||
22528 test ! -s conftest.err
22529 } && test -s conftest$ac_exeext && {
22530 test "$cross_compiling" = yes ||
22531 $as_test_x conftest$ac_exeext
22532 }; then
22533 ac_cv_lib_krb_krb_get_cred=yes
22534 else
22535 $as_echo "$as_me: failed program was:" >&5
22536 sed 's/^/| /' conftest.$ac_ext >&5
22538 ac_cv_lib_krb_krb_get_cred=no
22541 rm -rf conftest.dSYM
22542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22543 conftest$ac_exeext conftest.$ac_ext
22544 LIBS=$ac_check_lib_save_LIBS
22546 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22547 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22548 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22549 have_krb=yes
22550 else
22551 have_krb=no
22554 if test $have_krb = yes; then
22555 KRB4LIB=-lkrb
22556 LIBS="$KRB4LIB $LIBS"
22558 cat >>confdefs.h <<\_ACEOF
22559 #define HAVE_LIBKRB 1
22560 _ACEOF
22566 if test "${with_kerberos5}" != no; then
22568 for ac_header in krb5.h
22570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
22577 ac_res=`eval 'as_val=${'$as_ac_Header'}
22578 $as_echo "$as_val"'`
22579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22580 $as_echo "$ac_res" >&6; }
22581 else
22582 # Is the header compilable?
22583 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22584 $as_echo_n "checking $ac_header usability... " >&6; }
22585 cat >conftest.$ac_ext <<_ACEOF
22586 /* confdefs.h. */
22587 _ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591 $ac_includes_default
22592 #include <$ac_header>
22593 _ACEOF
22594 rm -f conftest.$ac_objext
22595 if { (ac_try="$ac_compile"
22596 case "(($ac_try" in
22597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598 *) ac_try_echo=$ac_try;;
22599 esac
22600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22601 $as_echo "$ac_try_echo") >&5
22602 (eval "$ac_compile") 2>conftest.er1
22603 ac_status=$?
22604 grep -v '^ *+' conftest.er1 >conftest.err
22605 rm -f conftest.er1
22606 cat conftest.err >&5
22607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } && {
22609 test -z "$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 } && test -s conftest.$ac_objext; then
22612 ac_header_compiler=yes
22613 else
22614 $as_echo "$as_me: failed program was:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22617 ac_header_compiler=no
22620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22621 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22622 $as_echo "$ac_header_compiler" >&6; }
22624 # Is the header present?
22625 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22626 $as_echo_n "checking $ac_header presence... " >&6; }
22627 cat >conftest.$ac_ext <<_ACEOF
22628 /* confdefs.h. */
22629 _ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h. */
22633 #include <$ac_header>
22634 _ACEOF
22635 if { (ac_try="$ac_cpp conftest.$ac_ext"
22636 case "(($ac_try" in
22637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22638 *) ac_try_echo=$ac_try;;
22639 esac
22640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22641 $as_echo "$ac_try_echo") >&5
22642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22643 ac_status=$?
22644 grep -v '^ *+' conftest.er1 >conftest.err
22645 rm -f conftest.er1
22646 cat conftest.err >&5
22647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); } >/dev/null && {
22649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22650 test ! -s conftest.err
22651 }; then
22652 ac_header_preproc=yes
22653 else
22654 $as_echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22657 ac_header_preproc=no
22660 rm -f conftest.err conftest.$ac_ext
22661 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22662 $as_echo "$ac_header_preproc" >&6; }
22664 # So? What about this header?
22665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22666 yes:no: )
22667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22668 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22670 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22671 ac_header_preproc=yes
22673 no:yes:* )
22674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22675 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22677 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22679 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22681 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22685 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22688 esac
22689 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22690 $as_echo_n "checking for $ac_header... " >&6; }
22691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22692 $as_echo_n "(cached) " >&6
22693 else
22694 eval "$as_ac_Header=\$ac_header_preproc"
22696 ac_res=`eval 'as_val=${'$as_ac_Header'}
22697 $as_echo "$as_val"'`
22698 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22699 $as_echo "$ac_res" >&6; }
22702 if test `eval 'as_val=${'$as_ac_Header'}
22703 $as_echo "$as_val"'` = yes; then
22704 cat >>confdefs.h <<_ACEOF
22705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22706 _ACEOF
22707 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22708 $as_echo_n "checking for krb5_error.text... " >&6; }
22709 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22710 $as_echo_n "(cached) " >&6
22711 else
22712 cat >conftest.$ac_ext <<_ACEOF
22713 /* confdefs.h. */
22714 _ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h. */
22718 #include <krb5.h>
22721 main ()
22723 static krb5_error ac_aggr;
22724 if (ac_aggr.text)
22725 return 0;
22727 return 0;
22729 _ACEOF
22730 rm -f conftest.$ac_objext
22731 if { (ac_try="$ac_compile"
22732 case "(($ac_try" in
22733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22734 *) ac_try_echo=$ac_try;;
22735 esac
22736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22737 $as_echo "$ac_try_echo") >&5
22738 (eval "$ac_compile") 2>conftest.er1
22739 ac_status=$?
22740 grep -v '^ *+' conftest.er1 >conftest.err
22741 rm -f conftest.er1
22742 cat conftest.err >&5
22743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } && {
22745 test -z "$ac_c_werror_flag" ||
22746 test ! -s conftest.err
22747 } && test -s conftest.$ac_objext; then
22748 ac_cv_member_krb5_error_text=yes
22749 else
22750 $as_echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22753 cat >conftest.$ac_ext <<_ACEOF
22754 /* confdefs.h. */
22755 _ACEOF
22756 cat confdefs.h >>conftest.$ac_ext
22757 cat >>conftest.$ac_ext <<_ACEOF
22758 /* end confdefs.h. */
22759 #include <krb5.h>
22762 main ()
22764 static krb5_error ac_aggr;
22765 if (sizeof ac_aggr.text)
22766 return 0;
22768 return 0;
22770 _ACEOF
22771 rm -f conftest.$ac_objext
22772 if { (ac_try="$ac_compile"
22773 case "(($ac_try" in
22774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775 *) ac_try_echo=$ac_try;;
22776 esac
22777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22778 $as_echo "$ac_try_echo") >&5
22779 (eval "$ac_compile") 2>conftest.er1
22780 ac_status=$?
22781 grep -v '^ *+' conftest.er1 >conftest.err
22782 rm -f conftest.er1
22783 cat conftest.err >&5
22784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); } && {
22786 test -z "$ac_c_werror_flag" ||
22787 test ! -s conftest.err
22788 } && test -s conftest.$ac_objext; then
22789 ac_cv_member_krb5_error_text=yes
22790 else
22791 $as_echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22794 ac_cv_member_krb5_error_text=no
22797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22802 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22803 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22804 if test $ac_cv_member_krb5_error_text = yes; then
22806 cat >>confdefs.h <<_ACEOF
22807 #define HAVE_KRB5_ERROR_TEXT 1
22808 _ACEOF
22812 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22813 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22814 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22815 $as_echo_n "(cached) " >&6
22816 else
22817 cat >conftest.$ac_ext <<_ACEOF
22818 /* confdefs.h. */
22819 _ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h. */
22823 #include <krb5.h>
22826 main ()
22828 static krb5_error ac_aggr;
22829 if (ac_aggr.e_text)
22830 return 0;
22832 return 0;
22834 _ACEOF
22835 rm -f conftest.$ac_objext
22836 if { (ac_try="$ac_compile"
22837 case "(($ac_try" in
22838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839 *) ac_try_echo=$ac_try;;
22840 esac
22841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22842 $as_echo "$ac_try_echo") >&5
22843 (eval "$ac_compile") 2>conftest.er1
22844 ac_status=$?
22845 grep -v '^ *+' conftest.er1 >conftest.err
22846 rm -f conftest.er1
22847 cat conftest.err >&5
22848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } && {
22850 test -z "$ac_c_werror_flag" ||
22851 test ! -s conftest.err
22852 } && test -s conftest.$ac_objext; then
22853 ac_cv_member_krb5_error_e_text=yes
22854 else
22855 $as_echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22858 cat >conftest.$ac_ext <<_ACEOF
22859 /* confdefs.h. */
22860 _ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h. */
22864 #include <krb5.h>
22867 main ()
22869 static krb5_error ac_aggr;
22870 if (sizeof ac_aggr.e_text)
22871 return 0;
22873 return 0;
22875 _ACEOF
22876 rm -f conftest.$ac_objext
22877 if { (ac_try="$ac_compile"
22878 case "(($ac_try" in
22879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880 *) ac_try_echo=$ac_try;;
22881 esac
22882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22883 $as_echo "$ac_try_echo") >&5
22884 (eval "$ac_compile") 2>conftest.er1
22885 ac_status=$?
22886 grep -v '^ *+' conftest.er1 >conftest.err
22887 rm -f conftest.er1
22888 cat conftest.err >&5
22889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } && {
22891 test -z "$ac_c_werror_flag" ||
22892 test ! -s conftest.err
22893 } && test -s conftest.$ac_objext; then
22894 ac_cv_member_krb5_error_e_text=yes
22895 else
22896 $as_echo "$as_me: failed program was:" >&5
22897 sed 's/^/| /' conftest.$ac_ext >&5
22899 ac_cv_member_krb5_error_e_text=no
22902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22907 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22908 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22909 if test $ac_cv_member_krb5_error_e_text = yes; then
22911 cat >>confdefs.h <<_ACEOF
22912 #define HAVE_KRB5_ERROR_E_TEXT 1
22913 _ACEOF
22920 done
22922 else
22924 for ac_header in des.h
22926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22928 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22929 $as_echo_n "checking for $ac_header... " >&6; }
22930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22931 $as_echo_n "(cached) " >&6
22933 ac_res=`eval 'as_val=${'$as_ac_Header'}
22934 $as_echo "$as_val"'`
22935 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22936 $as_echo "$ac_res" >&6; }
22937 else
22938 # Is the header compilable?
22939 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22940 $as_echo_n "checking $ac_header usability... " >&6; }
22941 cat >conftest.$ac_ext <<_ACEOF
22942 /* confdefs.h. */
22943 _ACEOF
22944 cat confdefs.h >>conftest.$ac_ext
22945 cat >>conftest.$ac_ext <<_ACEOF
22946 /* end confdefs.h. */
22947 $ac_includes_default
22948 #include <$ac_header>
22949 _ACEOF
22950 rm -f conftest.$ac_objext
22951 if { (ac_try="$ac_compile"
22952 case "(($ac_try" in
22953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954 *) ac_try_echo=$ac_try;;
22955 esac
22956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22957 $as_echo "$ac_try_echo") >&5
22958 (eval "$ac_compile") 2>conftest.er1
22959 ac_status=$?
22960 grep -v '^ *+' conftest.er1 >conftest.err
22961 rm -f conftest.er1
22962 cat conftest.err >&5
22963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); } && {
22965 test -z "$ac_c_werror_flag" ||
22966 test ! -s conftest.err
22967 } && test -s conftest.$ac_objext; then
22968 ac_header_compiler=yes
22969 else
22970 $as_echo "$as_me: failed program was:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22973 ac_header_compiler=no
22976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22977 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22978 $as_echo "$ac_header_compiler" >&6; }
22980 # Is the header present?
22981 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22982 $as_echo_n "checking $ac_header presence... " >&6; }
22983 cat >conftest.$ac_ext <<_ACEOF
22984 /* confdefs.h. */
22985 _ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h. */
22989 #include <$ac_header>
22990 _ACEOF
22991 if { (ac_try="$ac_cpp conftest.$ac_ext"
22992 case "(($ac_try" in
22993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994 *) ac_try_echo=$ac_try;;
22995 esac
22996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22997 $as_echo "$ac_try_echo") >&5
22998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22999 ac_status=$?
23000 grep -v '^ *+' conftest.er1 >conftest.err
23001 rm -f conftest.er1
23002 cat conftest.err >&5
23003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); } >/dev/null && {
23005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23006 test ! -s conftest.err
23007 }; then
23008 ac_header_preproc=yes
23009 else
23010 $as_echo "$as_me: failed program was:" >&5
23011 sed 's/^/| /' conftest.$ac_ext >&5
23013 ac_header_preproc=no
23016 rm -f conftest.err conftest.$ac_ext
23017 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23018 $as_echo "$ac_header_preproc" >&6; }
23020 # So? What about this header?
23021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23022 yes:no: )
23023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23024 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23026 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23027 ac_header_preproc=yes
23029 no:yes:* )
23030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23031 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23033 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23035 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23037 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23039 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23041 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23044 esac
23045 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23046 $as_echo_n "checking for $ac_header... " >&6; }
23047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23048 $as_echo_n "(cached) " >&6
23049 else
23050 eval "$as_ac_Header=\$ac_header_preproc"
23052 ac_res=`eval 'as_val=${'$as_ac_Header'}
23053 $as_echo "$as_val"'`
23054 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23055 $as_echo "$ac_res" >&6; }
23058 if test `eval 'as_val=${'$as_ac_Header'}
23059 $as_echo "$as_val"'` = yes; then
23060 cat >>confdefs.h <<_ACEOF
23061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23062 _ACEOF
23064 else
23066 for ac_header in kerberosIV/des.h
23068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23070 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23071 $as_echo_n "checking for $ac_header... " >&6; }
23072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23073 $as_echo_n "(cached) " >&6
23075 ac_res=`eval 'as_val=${'$as_ac_Header'}
23076 $as_echo "$as_val"'`
23077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23078 $as_echo "$ac_res" >&6; }
23079 else
23080 # Is the header compilable?
23081 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23082 $as_echo_n "checking $ac_header usability... " >&6; }
23083 cat >conftest.$ac_ext <<_ACEOF
23084 /* confdefs.h. */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 $ac_includes_default
23090 #include <$ac_header>
23091 _ACEOF
23092 rm -f conftest.$ac_objext
23093 if { (ac_try="$ac_compile"
23094 case "(($ac_try" in
23095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096 *) ac_try_echo=$ac_try;;
23097 esac
23098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23099 $as_echo "$ac_try_echo") >&5
23100 (eval "$ac_compile") 2>conftest.er1
23101 ac_status=$?
23102 grep -v '^ *+' conftest.er1 >conftest.err
23103 rm -f conftest.er1
23104 cat conftest.err >&5
23105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); } && {
23107 test -z "$ac_c_werror_flag" ||
23108 test ! -s conftest.err
23109 } && test -s conftest.$ac_objext; then
23110 ac_header_compiler=yes
23111 else
23112 $as_echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23115 ac_header_compiler=no
23118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23119 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23120 $as_echo "$ac_header_compiler" >&6; }
23122 # Is the header present?
23123 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23124 $as_echo_n "checking $ac_header presence... " >&6; }
23125 cat >conftest.$ac_ext <<_ACEOF
23126 /* confdefs.h. */
23127 _ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h. */
23131 #include <$ac_header>
23132 _ACEOF
23133 if { (ac_try="$ac_cpp conftest.$ac_ext"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23137 esac
23138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23139 $as_echo "$ac_try_echo") >&5
23140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23141 ac_status=$?
23142 grep -v '^ *+' conftest.er1 >conftest.err
23143 rm -f conftest.er1
23144 cat conftest.err >&5
23145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); } >/dev/null && {
23147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23148 test ! -s conftest.err
23149 }; then
23150 ac_header_preproc=yes
23151 else
23152 $as_echo "$as_me: failed program was:" >&5
23153 sed 's/^/| /' conftest.$ac_ext >&5
23155 ac_header_preproc=no
23158 rm -f conftest.err conftest.$ac_ext
23159 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23160 $as_echo "$ac_header_preproc" >&6; }
23162 # So? What about this header?
23163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23164 yes:no: )
23165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23166 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23168 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23169 ac_header_preproc=yes
23171 no:yes:* )
23172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23173 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23175 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23177 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23179 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23181 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23183 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23186 esac
23187 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23188 $as_echo_n "checking for $ac_header... " >&6; }
23189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23190 $as_echo_n "(cached) " >&6
23191 else
23192 eval "$as_ac_Header=\$ac_header_preproc"
23194 ac_res=`eval 'as_val=${'$as_ac_Header'}
23195 $as_echo "$as_val"'`
23196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23197 $as_echo "$ac_res" >&6; }
23200 if test `eval 'as_val=${'$as_ac_Header'}
23201 $as_echo "$as_val"'` = yes; then
23202 cat >>confdefs.h <<_ACEOF
23203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23204 _ACEOF
23206 else
23208 for ac_header in kerberos/des.h
23210 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23212 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23213 $as_echo_n "checking for $ac_header... " >&6; }
23214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23215 $as_echo_n "(cached) " >&6
23217 ac_res=`eval 'as_val=${'$as_ac_Header'}
23218 $as_echo "$as_val"'`
23219 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23220 $as_echo "$ac_res" >&6; }
23221 else
23222 # Is the header compilable?
23223 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23224 $as_echo_n "checking $ac_header usability... " >&6; }
23225 cat >conftest.$ac_ext <<_ACEOF
23226 /* confdefs.h. */
23227 _ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h. */
23231 $ac_includes_default
23232 #include <$ac_header>
23233 _ACEOF
23234 rm -f conftest.$ac_objext
23235 if { (ac_try="$ac_compile"
23236 case "(($ac_try" in
23237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238 *) ac_try_echo=$ac_try;;
23239 esac
23240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23241 $as_echo "$ac_try_echo") >&5
23242 (eval "$ac_compile") 2>conftest.er1
23243 ac_status=$?
23244 grep -v '^ *+' conftest.er1 >conftest.err
23245 rm -f conftest.er1
23246 cat conftest.err >&5
23247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); } && {
23249 test -z "$ac_c_werror_flag" ||
23250 test ! -s conftest.err
23251 } && test -s conftest.$ac_objext; then
23252 ac_header_compiler=yes
23253 else
23254 $as_echo "$as_me: failed program was:" >&5
23255 sed 's/^/| /' conftest.$ac_ext >&5
23257 ac_header_compiler=no
23260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23261 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23262 $as_echo "$ac_header_compiler" >&6; }
23264 # Is the header present?
23265 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23266 $as_echo_n "checking $ac_header presence... " >&6; }
23267 cat >conftest.$ac_ext <<_ACEOF
23268 /* confdefs.h. */
23269 _ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h. */
23273 #include <$ac_header>
23274 _ACEOF
23275 if { (ac_try="$ac_cpp conftest.$ac_ext"
23276 case "(($ac_try" in
23277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278 *) ac_try_echo=$ac_try;;
23279 esac
23280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23281 $as_echo "$ac_try_echo") >&5
23282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23283 ac_status=$?
23284 grep -v '^ *+' conftest.er1 >conftest.err
23285 rm -f conftest.er1
23286 cat conftest.err >&5
23287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); } >/dev/null && {
23289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23290 test ! -s conftest.err
23291 }; then
23292 ac_header_preproc=yes
23293 else
23294 $as_echo "$as_me: failed program was:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23297 ac_header_preproc=no
23300 rm -f conftest.err conftest.$ac_ext
23301 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23302 $as_echo "$ac_header_preproc" >&6; }
23304 # So? What about this header?
23305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23306 yes:no: )
23307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23308 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23310 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23311 ac_header_preproc=yes
23313 no:yes:* )
23314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23315 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23317 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23319 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23321 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23323 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23325 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23328 esac
23329 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23330 $as_echo_n "checking for $ac_header... " >&6; }
23331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23332 $as_echo_n "(cached) " >&6
23333 else
23334 eval "$as_ac_Header=\$ac_header_preproc"
23336 ac_res=`eval 'as_val=${'$as_ac_Header'}
23337 $as_echo "$as_val"'`
23338 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23339 $as_echo "$ac_res" >&6; }
23342 if test `eval 'as_val=${'$as_ac_Header'}
23343 $as_echo "$as_val"'` = yes; then
23344 cat >>confdefs.h <<_ACEOF
23345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23346 _ACEOF
23350 done
23354 done
23358 done
23361 for ac_header in krb.h
23363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23365 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23366 $as_echo_n "checking for $ac_header... " >&6; }
23367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23368 $as_echo_n "(cached) " >&6
23370 ac_res=`eval 'as_val=${'$as_ac_Header'}
23371 $as_echo "$as_val"'`
23372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23373 $as_echo "$ac_res" >&6; }
23374 else
23375 # Is the header compilable?
23376 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23377 $as_echo_n "checking $ac_header usability... " >&6; }
23378 cat >conftest.$ac_ext <<_ACEOF
23379 /* confdefs.h. */
23380 _ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23384 $ac_includes_default
23385 #include <$ac_header>
23386 _ACEOF
23387 rm -f conftest.$ac_objext
23388 if { (ac_try="$ac_compile"
23389 case "(($ac_try" in
23390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391 *) ac_try_echo=$ac_try;;
23392 esac
23393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23394 $as_echo "$ac_try_echo") >&5
23395 (eval "$ac_compile") 2>conftest.er1
23396 ac_status=$?
23397 grep -v '^ *+' conftest.er1 >conftest.err
23398 rm -f conftest.er1
23399 cat conftest.err >&5
23400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); } && {
23402 test -z "$ac_c_werror_flag" ||
23403 test ! -s conftest.err
23404 } && test -s conftest.$ac_objext; then
23405 ac_header_compiler=yes
23406 else
23407 $as_echo "$as_me: failed program was:" >&5
23408 sed 's/^/| /' conftest.$ac_ext >&5
23410 ac_header_compiler=no
23413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23415 $as_echo "$ac_header_compiler" >&6; }
23417 # Is the header present?
23418 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23419 $as_echo_n "checking $ac_header presence... " >&6; }
23420 cat >conftest.$ac_ext <<_ACEOF
23421 /* confdefs.h. */
23422 _ACEOF
23423 cat confdefs.h >>conftest.$ac_ext
23424 cat >>conftest.$ac_ext <<_ACEOF
23425 /* end confdefs.h. */
23426 #include <$ac_header>
23427 _ACEOF
23428 if { (ac_try="$ac_cpp conftest.$ac_ext"
23429 case "(($ac_try" in
23430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23431 *) ac_try_echo=$ac_try;;
23432 esac
23433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23434 $as_echo "$ac_try_echo") >&5
23435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23436 ac_status=$?
23437 grep -v '^ *+' conftest.er1 >conftest.err
23438 rm -f conftest.er1
23439 cat conftest.err >&5
23440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); } >/dev/null && {
23442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23443 test ! -s conftest.err
23444 }; then
23445 ac_header_preproc=yes
23446 else
23447 $as_echo "$as_me: failed program was:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23450 ac_header_preproc=no
23453 rm -f conftest.err conftest.$ac_ext
23454 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23455 $as_echo "$ac_header_preproc" >&6; }
23457 # So? What about this header?
23458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23459 yes:no: )
23460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23461 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23463 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23464 ac_header_preproc=yes
23466 no:yes:* )
23467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23468 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23470 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23472 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23474 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23476 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23478 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23481 esac
23482 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23483 $as_echo_n "checking for $ac_header... " >&6; }
23484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23485 $as_echo_n "(cached) " >&6
23486 else
23487 eval "$as_ac_Header=\$ac_header_preproc"
23489 ac_res=`eval 'as_val=${'$as_ac_Header'}
23490 $as_echo "$as_val"'`
23491 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23492 $as_echo "$ac_res" >&6; }
23495 if test `eval 'as_val=${'$as_ac_Header'}
23496 $as_echo "$as_val"'` = yes; then
23497 cat >>confdefs.h <<_ACEOF
23498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23499 _ACEOF
23501 else
23503 for ac_header in kerberosIV/krb.h
23505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23508 $as_echo_n "checking for $ac_header... " >&6; }
23509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23510 $as_echo_n "(cached) " >&6
23512 ac_res=`eval 'as_val=${'$as_ac_Header'}
23513 $as_echo "$as_val"'`
23514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23515 $as_echo "$ac_res" >&6; }
23516 else
23517 # Is the header compilable?
23518 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23519 $as_echo_n "checking $ac_header usability... " >&6; }
23520 cat >conftest.$ac_ext <<_ACEOF
23521 /* confdefs.h. */
23522 _ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h. */
23526 $ac_includes_default
23527 #include <$ac_header>
23528 _ACEOF
23529 rm -f conftest.$ac_objext
23530 if { (ac_try="$ac_compile"
23531 case "(($ac_try" in
23532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533 *) ac_try_echo=$ac_try;;
23534 esac
23535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23536 $as_echo "$ac_try_echo") >&5
23537 (eval "$ac_compile") 2>conftest.er1
23538 ac_status=$?
23539 grep -v '^ *+' conftest.er1 >conftest.err
23540 rm -f conftest.er1
23541 cat conftest.err >&5
23542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } && {
23544 test -z "$ac_c_werror_flag" ||
23545 test ! -s conftest.err
23546 } && test -s conftest.$ac_objext; then
23547 ac_header_compiler=yes
23548 else
23549 $as_echo "$as_me: failed program was:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23552 ac_header_compiler=no
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23556 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23557 $as_echo "$ac_header_compiler" >&6; }
23559 # Is the header present?
23560 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23561 $as_echo_n "checking $ac_header presence... " >&6; }
23562 cat >conftest.$ac_ext <<_ACEOF
23563 /* confdefs.h. */
23564 _ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h. */
23568 #include <$ac_header>
23569 _ACEOF
23570 if { (ac_try="$ac_cpp conftest.$ac_ext"
23571 case "(($ac_try" in
23572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573 *) ac_try_echo=$ac_try;;
23574 esac
23575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23576 $as_echo "$ac_try_echo") >&5
23577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23578 ac_status=$?
23579 grep -v '^ *+' conftest.er1 >conftest.err
23580 rm -f conftest.er1
23581 cat conftest.err >&5
23582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); } >/dev/null && {
23584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23585 test ! -s conftest.err
23586 }; then
23587 ac_header_preproc=yes
23588 else
23589 $as_echo "$as_me: failed program was:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23592 ac_header_preproc=no
23595 rm -f conftest.err conftest.$ac_ext
23596 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23597 $as_echo "$ac_header_preproc" >&6; }
23599 # So? What about this header?
23600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23601 yes:no: )
23602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23603 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23605 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23606 ac_header_preproc=yes
23608 no:yes:* )
23609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23610 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23612 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23614 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23616 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23620 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23623 esac
23624 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23625 $as_echo_n "checking for $ac_header... " >&6; }
23626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23627 $as_echo_n "(cached) " >&6
23628 else
23629 eval "$as_ac_Header=\$ac_header_preproc"
23631 ac_res=`eval 'as_val=${'$as_ac_Header'}
23632 $as_echo "$as_val"'`
23633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23634 $as_echo "$ac_res" >&6; }
23637 if test `eval 'as_val=${'$as_ac_Header'}
23638 $as_echo "$as_val"'` = yes; then
23639 cat >>confdefs.h <<_ACEOF
23640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23641 _ACEOF
23643 else
23645 for ac_header in kerberos/krb.h
23647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23649 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23650 $as_echo_n "checking for $ac_header... " >&6; }
23651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23652 $as_echo_n "(cached) " >&6
23654 ac_res=`eval 'as_val=${'$as_ac_Header'}
23655 $as_echo "$as_val"'`
23656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23657 $as_echo "$ac_res" >&6; }
23658 else
23659 # Is the header compilable?
23660 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23661 $as_echo_n "checking $ac_header usability... " >&6; }
23662 cat >conftest.$ac_ext <<_ACEOF
23663 /* confdefs.h. */
23664 _ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h. */
23668 $ac_includes_default
23669 #include <$ac_header>
23670 _ACEOF
23671 rm -f conftest.$ac_objext
23672 if { (ac_try="$ac_compile"
23673 case "(($ac_try" in
23674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23675 *) ac_try_echo=$ac_try;;
23676 esac
23677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23678 $as_echo "$ac_try_echo") >&5
23679 (eval "$ac_compile") 2>conftest.er1
23680 ac_status=$?
23681 grep -v '^ *+' conftest.er1 >conftest.err
23682 rm -f conftest.er1
23683 cat conftest.err >&5
23684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } && {
23686 test -z "$ac_c_werror_flag" ||
23687 test ! -s conftest.err
23688 } && test -s conftest.$ac_objext; then
23689 ac_header_compiler=yes
23690 else
23691 $as_echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23694 ac_header_compiler=no
23697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23698 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23699 $as_echo "$ac_header_compiler" >&6; }
23701 # Is the header present?
23702 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23703 $as_echo_n "checking $ac_header presence... " >&6; }
23704 cat >conftest.$ac_ext <<_ACEOF
23705 /* confdefs.h. */
23706 _ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h. */
23710 #include <$ac_header>
23711 _ACEOF
23712 if { (ac_try="$ac_cpp conftest.$ac_ext"
23713 case "(($ac_try" in
23714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23715 *) ac_try_echo=$ac_try;;
23716 esac
23717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23718 $as_echo "$ac_try_echo") >&5
23719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23720 ac_status=$?
23721 grep -v '^ *+' conftest.er1 >conftest.err
23722 rm -f conftest.er1
23723 cat conftest.err >&5
23724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); } >/dev/null && {
23726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23727 test ! -s conftest.err
23728 }; then
23729 ac_header_preproc=yes
23730 else
23731 $as_echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23734 ac_header_preproc=no
23737 rm -f conftest.err conftest.$ac_ext
23738 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23739 $as_echo "$ac_header_preproc" >&6; }
23741 # So? What about this header?
23742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23743 yes:no: )
23744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23745 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23748 ac_header_preproc=yes
23750 no:yes:* )
23751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23752 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23754 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23756 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23758 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23762 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23765 esac
23766 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23767 $as_echo_n "checking for $ac_header... " >&6; }
23768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23769 $as_echo_n "(cached) " >&6
23770 else
23771 eval "$as_ac_Header=\$ac_header_preproc"
23773 ac_res=`eval 'as_val=${'$as_ac_Header'}
23774 $as_echo "$as_val"'`
23775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23776 $as_echo "$ac_res" >&6; }
23779 if test `eval 'as_val=${'$as_ac_Header'}
23780 $as_echo "$as_val"'` = yes; then
23781 cat >>confdefs.h <<_ACEOF
23782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23783 _ACEOF
23787 done
23791 done
23795 done
23799 for ac_header in com_err.h
23801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23804 $as_echo_n "checking for $ac_header... " >&6; }
23805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23806 $as_echo_n "(cached) " >&6
23808 ac_res=`eval 'as_val=${'$as_ac_Header'}
23809 $as_echo "$as_val"'`
23810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23811 $as_echo "$ac_res" >&6; }
23812 else
23813 # Is the header compilable?
23814 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23815 $as_echo_n "checking $ac_header usability... " >&6; }
23816 cat >conftest.$ac_ext <<_ACEOF
23817 /* confdefs.h. */
23818 _ACEOF
23819 cat confdefs.h >>conftest.$ac_ext
23820 cat >>conftest.$ac_ext <<_ACEOF
23821 /* end confdefs.h. */
23822 $ac_includes_default
23823 #include <$ac_header>
23824 _ACEOF
23825 rm -f conftest.$ac_objext
23826 if { (ac_try="$ac_compile"
23827 case "(($ac_try" in
23828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23829 *) ac_try_echo=$ac_try;;
23830 esac
23831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23832 $as_echo "$ac_try_echo") >&5
23833 (eval "$ac_compile") 2>conftest.er1
23834 ac_status=$?
23835 grep -v '^ *+' conftest.er1 >conftest.err
23836 rm -f conftest.er1
23837 cat conftest.err >&5
23838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); } && {
23840 test -z "$ac_c_werror_flag" ||
23841 test ! -s conftest.err
23842 } && test -s conftest.$ac_objext; then
23843 ac_header_compiler=yes
23844 else
23845 $as_echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23848 ac_header_compiler=no
23851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23852 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23853 $as_echo "$ac_header_compiler" >&6; }
23855 # Is the header present?
23856 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23857 $as_echo_n "checking $ac_header presence... " >&6; }
23858 cat >conftest.$ac_ext <<_ACEOF
23859 /* confdefs.h. */
23860 _ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h. */
23864 #include <$ac_header>
23865 _ACEOF
23866 if { (ac_try="$ac_cpp conftest.$ac_ext"
23867 case "(($ac_try" in
23868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23869 *) ac_try_echo=$ac_try;;
23870 esac
23871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23872 $as_echo "$ac_try_echo") >&5
23873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23874 ac_status=$?
23875 grep -v '^ *+' conftest.er1 >conftest.err
23876 rm -f conftest.er1
23877 cat conftest.err >&5
23878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); } >/dev/null && {
23880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23881 test ! -s conftest.err
23882 }; then
23883 ac_header_preproc=yes
23884 else
23885 $as_echo "$as_me: failed program was:" >&5
23886 sed 's/^/| /' conftest.$ac_ext >&5
23888 ac_header_preproc=no
23891 rm -f conftest.err conftest.$ac_ext
23892 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23893 $as_echo "$ac_header_preproc" >&6; }
23895 # So? What about this header?
23896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23897 yes:no: )
23898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23899 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23902 ac_header_preproc=yes
23904 no:yes:* )
23905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23906 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23908 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23910 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23912 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23916 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23919 esac
23920 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23921 $as_echo_n "checking for $ac_header... " >&6; }
23922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23923 $as_echo_n "(cached) " >&6
23924 else
23925 eval "$as_ac_Header=\$ac_header_preproc"
23927 ac_res=`eval 'as_val=${'$as_ac_Header'}
23928 $as_echo "$as_val"'`
23929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23930 $as_echo "$ac_res" >&6; }
23933 if test `eval 'as_val=${'$as_ac_Header'}
23934 $as_echo "$as_val"'` = yes; then
23935 cat >>confdefs.h <<_ACEOF
23936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23937 _ACEOF
23941 done
23951 # Solaris requires -lintl if you want strerror (which calls dgettext)
23952 # to return localized messages.
23954 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23955 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23956 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23957 $as_echo_n "(cached) " >&6
23958 else
23959 ac_check_lib_save_LIBS=$LIBS
23960 LIBS="-lintl $LIBS"
23961 cat >conftest.$ac_ext <<_ACEOF
23962 /* confdefs.h. */
23963 _ACEOF
23964 cat confdefs.h >>conftest.$ac_ext
23965 cat >>conftest.$ac_ext <<_ACEOF
23966 /* end confdefs.h. */
23968 /* Override any GCC internal prototype to avoid an error.
23969 Use char because int might match the return type of a GCC
23970 builtin and then its argument prototype would still apply. */
23971 #ifdef __cplusplus
23972 extern "C"
23973 #endif
23974 char dgettext ();
23976 main ()
23978 return dgettext ();
23980 return 0;
23982 _ACEOF
23983 rm -f conftest.$ac_objext conftest$ac_exeext
23984 if { (ac_try="$ac_link"
23985 case "(($ac_try" in
23986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23987 *) ac_try_echo=$ac_try;;
23988 esac
23989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23990 $as_echo "$ac_try_echo") >&5
23991 (eval "$ac_link") 2>conftest.er1
23992 ac_status=$?
23993 grep -v '^ *+' conftest.er1 >conftest.err
23994 rm -f conftest.er1
23995 cat conftest.err >&5
23996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); } && {
23998 test -z "$ac_c_werror_flag" ||
23999 test ! -s conftest.err
24000 } && test -s conftest$ac_exeext && {
24001 test "$cross_compiling" = yes ||
24002 $as_test_x conftest$ac_exeext
24003 }; then
24004 ac_cv_lib_intl_dgettext=yes
24005 else
24006 $as_echo "$as_me: failed program was:" >&5
24007 sed 's/^/| /' conftest.$ac_ext >&5
24009 ac_cv_lib_intl_dgettext=no
24012 rm -rf conftest.dSYM
24013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24014 conftest$ac_exeext conftest.$ac_ext
24015 LIBS=$ac_check_lib_save_LIBS
24017 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24018 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24019 if test $ac_cv_lib_intl_dgettext = yes; then
24020 cat >>confdefs.h <<_ACEOF
24021 #define HAVE_LIBINTL 1
24022 _ACEOF
24024 LIBS="-lintl $LIBS"
24029 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24030 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24031 if test "${emacs_cv_localtime_cache+set}" = set; then
24032 $as_echo_n "(cached) " >&6
24033 else
24034 if test x$ac_cv_func_tzset = xyes; then
24035 if test "$cross_compiling" = yes; then
24036 # If we have tzset, assume the worst when cross-compiling.
24037 emacs_cv_localtime_cache=yes
24038 else
24039 cat >conftest.$ac_ext <<_ACEOF
24040 /* confdefs.h. */
24041 _ACEOF
24042 cat confdefs.h >>conftest.$ac_ext
24043 cat >>conftest.$ac_ext <<_ACEOF
24044 /* end confdefs.h. */
24045 #include <time.h>
24046 extern char **environ;
24047 unset_TZ ()
24049 char **from, **to;
24050 for (to = from = environ; (*to = *from); from++)
24051 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24052 to++;
24054 char TZ_GMT0[] = "TZ=GMT0";
24055 char TZ_PST8[] = "TZ=PST8";
24056 main()
24058 time_t now = time ((time_t *) 0);
24059 int hour_GMT0, hour_unset;
24060 if (putenv (TZ_GMT0) != 0)
24061 exit (1);
24062 hour_GMT0 = localtime (&now)->tm_hour;
24063 unset_TZ ();
24064 hour_unset = localtime (&now)->tm_hour;
24065 if (putenv (TZ_PST8) != 0)
24066 exit (1);
24067 if (localtime (&now)->tm_hour == hour_GMT0)
24068 exit (1);
24069 unset_TZ ();
24070 if (localtime (&now)->tm_hour != hour_unset)
24071 exit (1);
24072 exit (0);
24074 _ACEOF
24075 rm -f conftest$ac_exeext
24076 if { (ac_try="$ac_link"
24077 case "(($ac_try" in
24078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24079 *) ac_try_echo=$ac_try;;
24080 esac
24081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24082 $as_echo "$ac_try_echo") >&5
24083 (eval "$ac_link") 2>&5
24084 ac_status=$?
24085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24087 { (case "(($ac_try" in
24088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24089 *) ac_try_echo=$ac_try;;
24090 esac
24091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24092 $as_echo "$ac_try_echo") >&5
24093 (eval "$ac_try") 2>&5
24094 ac_status=$?
24095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); }; }; then
24097 emacs_cv_localtime_cache=no
24098 else
24099 $as_echo "$as_me: program exited with status $ac_status" >&5
24100 $as_echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24103 ( exit $ac_status )
24104 emacs_cv_localtime_cache=yes
24106 rm -rf conftest.dSYM
24107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24111 else
24112 # If we lack tzset, report that localtime does not cache TZ,
24113 # since we can't invalidate the cache if we don't have tzset.
24114 emacs_cv_localtime_cache=no
24117 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24118 $as_echo "$emacs_cv_localtime_cache" >&6; }
24119 if test $emacs_cv_localtime_cache = yes; then
24121 cat >>confdefs.h <<\_ACEOF
24122 #define LOCALTIME_CACHE 1
24123 _ACEOF
24127 if test "x$HAVE_TIMEVAL" = xyes; then
24129 for ac_func in gettimeofday
24131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24132 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24133 $as_echo_n "checking for $ac_func... " >&6; }
24134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24135 $as_echo_n "(cached) " >&6
24136 else
24137 cat >conftest.$ac_ext <<_ACEOF
24138 /* confdefs.h. */
24139 _ACEOF
24140 cat confdefs.h >>conftest.$ac_ext
24141 cat >>conftest.$ac_ext <<_ACEOF
24142 /* end confdefs.h. */
24143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24145 #define $ac_func innocuous_$ac_func
24147 /* System header to define __stub macros and hopefully few prototypes,
24148 which can conflict with char $ac_func (); below.
24149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24150 <limits.h> exists even on freestanding compilers. */
24152 #ifdef __STDC__
24153 # include <limits.h>
24154 #else
24155 # include <assert.h>
24156 #endif
24158 #undef $ac_func
24160 /* Override any GCC internal prototype to avoid an error.
24161 Use char because int might match the return type of a GCC
24162 builtin and then its argument prototype would still apply. */
24163 #ifdef __cplusplus
24164 extern "C"
24165 #endif
24166 char $ac_func ();
24167 /* The GNU C library defines this for functions which it implements
24168 to always fail with ENOSYS. Some functions are actually named
24169 something starting with __ and the normal name is an alias. */
24170 #if defined __stub_$ac_func || defined __stub___$ac_func
24171 choke me
24172 #endif
24175 main ()
24177 return $ac_func ();
24179 return 0;
24181 _ACEOF
24182 rm -f conftest.$ac_objext conftest$ac_exeext
24183 if { (ac_try="$ac_link"
24184 case "(($ac_try" in
24185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24186 *) ac_try_echo=$ac_try;;
24187 esac
24188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24189 $as_echo "$ac_try_echo") >&5
24190 (eval "$ac_link") 2>conftest.er1
24191 ac_status=$?
24192 grep -v '^ *+' conftest.er1 >conftest.err
24193 rm -f conftest.er1
24194 cat conftest.err >&5
24195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196 (exit $ac_status); } && {
24197 test -z "$ac_c_werror_flag" ||
24198 test ! -s conftest.err
24199 } && test -s conftest$ac_exeext && {
24200 test "$cross_compiling" = yes ||
24201 $as_test_x conftest$ac_exeext
24202 }; then
24203 eval "$as_ac_var=yes"
24204 else
24205 $as_echo "$as_me: failed program was:" >&5
24206 sed 's/^/| /' conftest.$ac_ext >&5
24208 eval "$as_ac_var=no"
24211 rm -rf conftest.dSYM
24212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24213 conftest$ac_exeext conftest.$ac_ext
24215 ac_res=`eval 'as_val=${'$as_ac_var'}
24216 $as_echo "$as_val"'`
24217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24218 $as_echo "$ac_res" >&6; }
24219 if test `eval 'as_val=${'$as_ac_var'}
24220 $as_echo "$as_val"'` = yes; then
24221 cat >>confdefs.h <<_ACEOF
24222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24223 _ACEOF
24226 done
24228 if test $ac_cv_func_gettimeofday = yes; then
24229 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24230 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24231 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24232 $as_echo_n "(cached) " >&6
24233 else
24234 cat >conftest.$ac_ext <<_ACEOF
24235 /* confdefs.h. */
24236 _ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h. */
24241 #ifdef TIME_WITH_SYS_TIME
24242 #include <sys/time.h>
24243 #include <time.h>
24244 #else
24245 #ifdef HAVE_SYS_TIME_H
24246 #include <sys/time.h>
24247 #else
24248 #include <time.h>
24249 #endif
24250 #endif
24252 main ()
24254 struct timeval time;
24255 gettimeofday (&time, 0);
24257 return 0;
24259 _ACEOF
24260 rm -f conftest.$ac_objext
24261 if { (ac_try="$ac_compile"
24262 case "(($ac_try" in
24263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24264 *) ac_try_echo=$ac_try;;
24265 esac
24266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24267 $as_echo "$ac_try_echo") >&5
24268 (eval "$ac_compile") 2>conftest.er1
24269 ac_status=$?
24270 grep -v '^ *+' conftest.er1 >conftest.err
24271 rm -f conftest.er1
24272 cat conftest.err >&5
24273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274 (exit $ac_status); } && {
24275 test -z "$ac_c_werror_flag" ||
24276 test ! -s conftest.err
24277 } && test -s conftest.$ac_objext; then
24278 emacs_cv_gettimeofday_two_arguments=yes
24279 else
24280 $as_echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24283 emacs_cv_gettimeofday_two_arguments=no
24286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24288 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24289 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24290 if test $emacs_cv_gettimeofday_two_arguments = no; then
24292 cat >>confdefs.h <<\_ACEOF
24293 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24294 _ACEOF
24300 ok_so_far=yes
24301 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24302 $as_echo_n "checking for socket... " >&6; }
24303 if test "${ac_cv_func_socket+set}" = set; then
24304 $as_echo_n "(cached) " >&6
24305 else
24306 cat >conftest.$ac_ext <<_ACEOF
24307 /* confdefs.h. */
24308 _ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h. */
24312 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24314 #define socket innocuous_socket
24316 /* System header to define __stub macros and hopefully few prototypes,
24317 which can conflict with char socket (); below.
24318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24319 <limits.h> exists even on freestanding compilers. */
24321 #ifdef __STDC__
24322 # include <limits.h>
24323 #else
24324 # include <assert.h>
24325 #endif
24327 #undef socket
24329 /* Override any GCC internal prototype to avoid an error.
24330 Use char because int might match the return type of a GCC
24331 builtin and then its argument prototype would still apply. */
24332 #ifdef __cplusplus
24333 extern "C"
24334 #endif
24335 char socket ();
24336 /* The GNU C library defines this for functions which it implements
24337 to always fail with ENOSYS. Some functions are actually named
24338 something starting with __ and the normal name is an alias. */
24339 #if defined __stub_socket || defined __stub___socket
24340 choke me
24341 #endif
24344 main ()
24346 return socket ();
24348 return 0;
24350 _ACEOF
24351 rm -f conftest.$ac_objext conftest$ac_exeext
24352 if { (ac_try="$ac_link"
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_link") 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_exeext && {
24369 test "$cross_compiling" = yes ||
24370 $as_test_x conftest$ac_exeext
24371 }; then
24372 ac_cv_func_socket=yes
24373 else
24374 $as_echo "$as_me: failed program was:" >&5
24375 sed 's/^/| /' conftest.$ac_ext >&5
24377 ac_cv_func_socket=no
24380 rm -rf conftest.dSYM
24381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24382 conftest$ac_exeext conftest.$ac_ext
24384 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24385 $as_echo "$ac_cv_func_socket" >&6; }
24386 if test $ac_cv_func_socket = yes; then
24388 else
24389 ok_so_far=no
24392 if test $ok_so_far = yes; then
24393 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24394 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24395 $as_echo_n "checking for netinet/in.h... " >&6; }
24396 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24397 $as_echo_n "(cached) " >&6
24399 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24400 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24401 else
24402 # Is the header compilable?
24403 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24404 $as_echo_n "checking netinet/in.h usability... " >&6; }
24405 cat >conftest.$ac_ext <<_ACEOF
24406 /* confdefs.h. */
24407 _ACEOF
24408 cat confdefs.h >>conftest.$ac_ext
24409 cat >>conftest.$ac_ext <<_ACEOF
24410 /* end confdefs.h. */
24411 $ac_includes_default
24412 #include <netinet/in.h>
24413 _ACEOF
24414 rm -f conftest.$ac_objext
24415 if { (ac_try="$ac_compile"
24416 case "(($ac_try" in
24417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24418 *) ac_try_echo=$ac_try;;
24419 esac
24420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24421 $as_echo "$ac_try_echo") >&5
24422 (eval "$ac_compile") 2>conftest.er1
24423 ac_status=$?
24424 grep -v '^ *+' conftest.er1 >conftest.err
24425 rm -f conftest.er1
24426 cat conftest.err >&5
24427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); } && {
24429 test -z "$ac_c_werror_flag" ||
24430 test ! -s conftest.err
24431 } && test -s conftest.$ac_objext; then
24432 ac_header_compiler=yes
24433 else
24434 $as_echo "$as_me: failed program was:" >&5
24435 sed 's/^/| /' conftest.$ac_ext >&5
24437 ac_header_compiler=no
24440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24441 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24442 $as_echo "$ac_header_compiler" >&6; }
24444 # Is the header present?
24445 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24446 $as_echo_n "checking netinet/in.h presence... " >&6; }
24447 cat >conftest.$ac_ext <<_ACEOF
24448 /* confdefs.h. */
24449 _ACEOF
24450 cat confdefs.h >>conftest.$ac_ext
24451 cat >>conftest.$ac_ext <<_ACEOF
24452 /* end confdefs.h. */
24453 #include <netinet/in.h>
24454 _ACEOF
24455 if { (ac_try="$ac_cpp conftest.$ac_ext"
24456 case "(($ac_try" in
24457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24458 *) ac_try_echo=$ac_try;;
24459 esac
24460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24461 $as_echo "$ac_try_echo") >&5
24462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24463 ac_status=$?
24464 grep -v '^ *+' conftest.er1 >conftest.err
24465 rm -f conftest.er1
24466 cat conftest.err >&5
24467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); } >/dev/null && {
24469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24470 test ! -s conftest.err
24471 }; then
24472 ac_header_preproc=yes
24473 else
24474 $as_echo "$as_me: failed program was:" >&5
24475 sed 's/^/| /' conftest.$ac_ext >&5
24477 ac_header_preproc=no
24480 rm -f conftest.err conftest.$ac_ext
24481 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24482 $as_echo "$ac_header_preproc" >&6; }
24484 # So? What about this header?
24485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24486 yes:no: )
24487 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24488 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24489 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24490 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24491 ac_header_preproc=yes
24493 no:yes:* )
24494 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24495 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24496 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24497 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24498 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24499 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24500 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24501 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24502 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24503 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24504 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24505 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24508 esac
24509 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24510 $as_echo_n "checking for netinet/in.h... " >&6; }
24511 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24512 $as_echo_n "(cached) " >&6
24513 else
24514 ac_cv_header_netinet_in_h=$ac_header_preproc
24516 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24517 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24520 if test $ac_cv_header_netinet_in_h = yes; then
24522 else
24523 ok_so_far=no
24528 if test $ok_so_far = yes; then
24529 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24530 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24531 $as_echo_n "checking for arpa/inet.h... " >&6; }
24532 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24533 $as_echo_n "(cached) " >&6
24535 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24536 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24537 else
24538 # Is the header compilable?
24539 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24540 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24541 cat >conftest.$ac_ext <<_ACEOF
24542 /* confdefs.h. */
24543 _ACEOF
24544 cat confdefs.h >>conftest.$ac_ext
24545 cat >>conftest.$ac_ext <<_ACEOF
24546 /* end confdefs.h. */
24547 $ac_includes_default
24548 #include <arpa/inet.h>
24549 _ACEOF
24550 rm -f conftest.$ac_objext
24551 if { (ac_try="$ac_compile"
24552 case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24555 esac
24556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24557 $as_echo "$ac_try_echo") >&5
24558 (eval "$ac_compile") 2>conftest.er1
24559 ac_status=$?
24560 grep -v '^ *+' conftest.er1 >conftest.err
24561 rm -f conftest.er1
24562 cat conftest.err >&5
24563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564 (exit $ac_status); } && {
24565 test -z "$ac_c_werror_flag" ||
24566 test ! -s conftest.err
24567 } && test -s conftest.$ac_objext; then
24568 ac_header_compiler=yes
24569 else
24570 $as_echo "$as_me: failed program was:" >&5
24571 sed 's/^/| /' conftest.$ac_ext >&5
24573 ac_header_compiler=no
24576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24577 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24578 $as_echo "$ac_header_compiler" >&6; }
24580 # Is the header present?
24581 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24582 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24583 cat >conftest.$ac_ext <<_ACEOF
24584 /* confdefs.h. */
24585 _ACEOF
24586 cat confdefs.h >>conftest.$ac_ext
24587 cat >>conftest.$ac_ext <<_ACEOF
24588 /* end confdefs.h. */
24589 #include <arpa/inet.h>
24590 _ACEOF
24591 if { (ac_try="$ac_cpp conftest.$ac_ext"
24592 case "(($ac_try" in
24593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24594 *) ac_try_echo=$ac_try;;
24595 esac
24596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24597 $as_echo "$ac_try_echo") >&5
24598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24599 ac_status=$?
24600 grep -v '^ *+' conftest.er1 >conftest.err
24601 rm -f conftest.er1
24602 cat conftest.err >&5
24603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); } >/dev/null && {
24605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24606 test ! -s conftest.err
24607 }; then
24608 ac_header_preproc=yes
24609 else
24610 $as_echo "$as_me: failed program was:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24613 ac_header_preproc=no
24616 rm -f conftest.err conftest.$ac_ext
24617 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24618 $as_echo "$ac_header_preproc" >&6; }
24620 # So? What about this header?
24621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24622 yes:no: )
24623 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24624 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24625 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24626 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24627 ac_header_preproc=yes
24629 no:yes:* )
24630 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24631 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24632 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24633 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24634 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24635 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24636 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24637 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24638 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24639 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24640 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24641 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24644 esac
24645 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24646 $as_echo_n "checking for arpa/inet.h... " >&6; }
24647 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24648 $as_echo_n "(cached) " >&6
24649 else
24650 ac_cv_header_arpa_inet_h=$ac_header_preproc
24652 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24653 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24656 if test $ac_cv_header_arpa_inet_h = yes; then
24658 else
24659 ok_so_far=no
24664 if test $ok_so_far = yes; then
24666 cat >>confdefs.h <<\_ACEOF
24667 #define HAVE_INET_SOCKETS 1
24668 _ACEOF
24673 for ac_header in sys/ioctl.h
24675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24677 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24678 $as_echo_n "checking for $ac_header... " >&6; }
24679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24680 $as_echo_n "(cached) " >&6
24682 ac_res=`eval 'as_val=${'$as_ac_Header'}
24683 $as_echo "$as_val"'`
24684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24685 $as_echo "$ac_res" >&6; }
24686 else
24687 # Is the header compilable?
24688 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24689 $as_echo_n "checking $ac_header usability... " >&6; }
24690 cat >conftest.$ac_ext <<_ACEOF
24691 /* confdefs.h. */
24692 _ACEOF
24693 cat confdefs.h >>conftest.$ac_ext
24694 cat >>conftest.$ac_ext <<_ACEOF
24695 /* end confdefs.h. */
24696 $ac_includes_default
24697 #include <$ac_header>
24698 _ACEOF
24699 rm -f conftest.$ac_objext
24700 if { (ac_try="$ac_compile"
24701 case "(($ac_try" in
24702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703 *) ac_try_echo=$ac_try;;
24704 esac
24705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24706 $as_echo "$ac_try_echo") >&5
24707 (eval "$ac_compile") 2>conftest.er1
24708 ac_status=$?
24709 grep -v '^ *+' conftest.er1 >conftest.err
24710 rm -f conftest.er1
24711 cat conftest.err >&5
24712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); } && {
24714 test -z "$ac_c_werror_flag" ||
24715 test ! -s conftest.err
24716 } && test -s conftest.$ac_objext; then
24717 ac_header_compiler=yes
24718 else
24719 $as_echo "$as_me: failed program was:" >&5
24720 sed 's/^/| /' conftest.$ac_ext >&5
24722 ac_header_compiler=no
24725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24727 $as_echo "$ac_header_compiler" >&6; }
24729 # Is the header present?
24730 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24731 $as_echo_n "checking $ac_header presence... " >&6; }
24732 cat >conftest.$ac_ext <<_ACEOF
24733 /* confdefs.h. */
24734 _ACEOF
24735 cat confdefs.h >>conftest.$ac_ext
24736 cat >>conftest.$ac_ext <<_ACEOF
24737 /* end confdefs.h. */
24738 #include <$ac_header>
24739 _ACEOF
24740 if { (ac_try="$ac_cpp conftest.$ac_ext"
24741 case "(($ac_try" in
24742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24743 *) ac_try_echo=$ac_try;;
24744 esac
24745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24746 $as_echo "$ac_try_echo") >&5
24747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24748 ac_status=$?
24749 grep -v '^ *+' conftest.er1 >conftest.err
24750 rm -f conftest.er1
24751 cat conftest.err >&5
24752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); } >/dev/null && {
24754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24755 test ! -s conftest.err
24756 }; then
24757 ac_header_preproc=yes
24758 else
24759 $as_echo "$as_me: failed program was:" >&5
24760 sed 's/^/| /' conftest.$ac_ext >&5
24762 ac_header_preproc=no
24765 rm -f conftest.err conftest.$ac_ext
24766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24767 $as_echo "$ac_header_preproc" >&6; }
24769 # So? What about this header?
24770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24771 yes:no: )
24772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24773 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24775 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24776 ac_header_preproc=yes
24778 no:yes:* )
24779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24780 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24782 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24784 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24786 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24790 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24793 esac
24794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24795 $as_echo_n "checking for $ac_header... " >&6; }
24796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24797 $as_echo_n "(cached) " >&6
24798 else
24799 eval "$as_ac_Header=\$ac_header_preproc"
24801 ac_res=`eval 'as_val=${'$as_ac_Header'}
24802 $as_echo "$as_val"'`
24803 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24804 $as_echo "$ac_res" >&6; }
24807 if test `eval 'as_val=${'$as_ac_Header'}
24808 $as_echo "$as_val"'` = yes; then
24809 cat >>confdefs.h <<_ACEOF
24810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24811 _ACEOF
24815 done
24818 if test -f /usr/lpp/X11/bin/smt.exp; then
24820 cat >>confdefs.h <<\_ACEOF
24821 #define HAVE_AIX_SMT_EXP 1
24822 _ACEOF
24826 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24827 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24828 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24829 { $as_echo "$as_me:$LINENO: result: yes" >&5
24830 $as_echo "yes" >&6; }
24832 cat >>confdefs.h <<\_ACEOF
24833 #define HAVE_DEV_PTMX 1
24834 _ACEOF
24836 else
24837 { $as_echo "$as_me:$LINENO: result: no" >&5
24838 $as_echo "no" >&6; }
24841 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24842 $as_echo_n "checking for pid_t... " >&6; }
24843 if test "${ac_cv_type_pid_t+set}" = set; then
24844 $as_echo_n "(cached) " >&6
24845 else
24846 ac_cv_type_pid_t=no
24847 cat >conftest.$ac_ext <<_ACEOF
24848 /* confdefs.h. */
24849 _ACEOF
24850 cat confdefs.h >>conftest.$ac_ext
24851 cat >>conftest.$ac_ext <<_ACEOF
24852 /* end confdefs.h. */
24853 $ac_includes_default
24855 main ()
24857 if (sizeof (pid_t))
24858 return 0;
24860 return 0;
24862 _ACEOF
24863 rm -f conftest.$ac_objext
24864 if { (ac_try="$ac_compile"
24865 case "(($ac_try" in
24866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24867 *) ac_try_echo=$ac_try;;
24868 esac
24869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24870 $as_echo "$ac_try_echo") >&5
24871 (eval "$ac_compile") 2>conftest.er1
24872 ac_status=$?
24873 grep -v '^ *+' conftest.er1 >conftest.err
24874 rm -f conftest.er1
24875 cat conftest.err >&5
24876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); } && {
24878 test -z "$ac_c_werror_flag" ||
24879 test ! -s conftest.err
24880 } && test -s conftest.$ac_objext; then
24881 cat >conftest.$ac_ext <<_ACEOF
24882 /* confdefs.h. */
24883 _ACEOF
24884 cat confdefs.h >>conftest.$ac_ext
24885 cat >>conftest.$ac_ext <<_ACEOF
24886 /* end confdefs.h. */
24887 $ac_includes_default
24889 main ()
24891 if (sizeof ((pid_t)))
24892 return 0;
24894 return 0;
24896 _ACEOF
24897 rm -f conftest.$ac_objext
24898 if { (ac_try="$ac_compile"
24899 case "(($ac_try" in
24900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901 *) ac_try_echo=$ac_try;;
24902 esac
24903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24904 $as_echo "$ac_try_echo") >&5
24905 (eval "$ac_compile") 2>conftest.er1
24906 ac_status=$?
24907 grep -v '^ *+' conftest.er1 >conftest.err
24908 rm -f conftest.er1
24909 cat conftest.err >&5
24910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } && {
24912 test -z "$ac_c_werror_flag" ||
24913 test ! -s conftest.err
24914 } && test -s conftest.$ac_objext; then
24916 else
24917 $as_echo "$as_me: failed program was:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24920 ac_cv_type_pid_t=yes
24923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24924 else
24925 $as_echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24933 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24934 $as_echo "$ac_cv_type_pid_t" >&6; }
24935 if test $ac_cv_type_pid_t = yes; then
24937 else
24939 cat >>confdefs.h <<_ACEOF
24940 #define pid_t int
24941 _ACEOF
24946 for ac_header in vfork.h
24948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24950 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24951 $as_echo_n "checking for $ac_header... " >&6; }
24952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24953 $as_echo_n "(cached) " >&6
24955 ac_res=`eval 'as_val=${'$as_ac_Header'}
24956 $as_echo "$as_val"'`
24957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24958 $as_echo "$ac_res" >&6; }
24959 else
24960 # Is the header compilable?
24961 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24962 $as_echo_n "checking $ac_header usability... " >&6; }
24963 cat >conftest.$ac_ext <<_ACEOF
24964 /* confdefs.h. */
24965 _ACEOF
24966 cat confdefs.h >>conftest.$ac_ext
24967 cat >>conftest.$ac_ext <<_ACEOF
24968 /* end confdefs.h. */
24969 $ac_includes_default
24970 #include <$ac_header>
24971 _ACEOF
24972 rm -f conftest.$ac_objext
24973 if { (ac_try="$ac_compile"
24974 case "(($ac_try" in
24975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976 *) ac_try_echo=$ac_try;;
24977 esac
24978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24979 $as_echo "$ac_try_echo") >&5
24980 (eval "$ac_compile") 2>conftest.er1
24981 ac_status=$?
24982 grep -v '^ *+' conftest.er1 >conftest.err
24983 rm -f conftest.er1
24984 cat conftest.err >&5
24985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 (exit $ac_status); } && {
24987 test -z "$ac_c_werror_flag" ||
24988 test ! -s conftest.err
24989 } && test -s conftest.$ac_objext; then
24990 ac_header_compiler=yes
24991 else
24992 $as_echo "$as_me: failed program was:" >&5
24993 sed 's/^/| /' conftest.$ac_ext >&5
24995 ac_header_compiler=no
24998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24999 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25000 $as_echo "$ac_header_compiler" >&6; }
25002 # Is the header present?
25003 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25004 $as_echo_n "checking $ac_header presence... " >&6; }
25005 cat >conftest.$ac_ext <<_ACEOF
25006 /* confdefs.h. */
25007 _ACEOF
25008 cat confdefs.h >>conftest.$ac_ext
25009 cat >>conftest.$ac_ext <<_ACEOF
25010 /* end confdefs.h. */
25011 #include <$ac_header>
25012 _ACEOF
25013 if { (ac_try="$ac_cpp conftest.$ac_ext"
25014 case "(($ac_try" in
25015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25016 *) ac_try_echo=$ac_try;;
25017 esac
25018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25019 $as_echo "$ac_try_echo") >&5
25020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25021 ac_status=$?
25022 grep -v '^ *+' conftest.er1 >conftest.err
25023 rm -f conftest.er1
25024 cat conftest.err >&5
25025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); } >/dev/null && {
25027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25028 test ! -s conftest.err
25029 }; then
25030 ac_header_preproc=yes
25031 else
25032 $as_echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25035 ac_header_preproc=no
25038 rm -f conftest.err conftest.$ac_ext
25039 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25040 $as_echo "$ac_header_preproc" >&6; }
25042 # So? What about this header?
25043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25044 yes:no: )
25045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25046 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25048 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25049 ac_header_preproc=yes
25051 no:yes:* )
25052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25053 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25055 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25057 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25059 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25063 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25066 esac
25067 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25068 $as_echo_n "checking for $ac_header... " >&6; }
25069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25070 $as_echo_n "(cached) " >&6
25071 else
25072 eval "$as_ac_Header=\$ac_header_preproc"
25074 ac_res=`eval 'as_val=${'$as_ac_Header'}
25075 $as_echo "$as_val"'`
25076 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25077 $as_echo "$ac_res" >&6; }
25080 if test `eval 'as_val=${'$as_ac_Header'}
25081 $as_echo "$as_val"'` = yes; then
25082 cat >>confdefs.h <<_ACEOF
25083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25084 _ACEOF
25088 done
25092 for ac_func in fork vfork
25094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25095 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25096 $as_echo_n "checking for $ac_func... " >&6; }
25097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25098 $as_echo_n "(cached) " >&6
25099 else
25100 cat >conftest.$ac_ext <<_ACEOF
25101 /* confdefs.h. */
25102 _ACEOF
25103 cat confdefs.h >>conftest.$ac_ext
25104 cat >>conftest.$ac_ext <<_ACEOF
25105 /* end confdefs.h. */
25106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25108 #define $ac_func innocuous_$ac_func
25110 /* System header to define __stub macros and hopefully few prototypes,
25111 which can conflict with char $ac_func (); below.
25112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25113 <limits.h> exists even on freestanding compilers. */
25115 #ifdef __STDC__
25116 # include <limits.h>
25117 #else
25118 # include <assert.h>
25119 #endif
25121 #undef $ac_func
25123 /* Override any GCC internal prototype to avoid an error.
25124 Use char because int might match the return type of a GCC
25125 builtin and then its argument prototype would still apply. */
25126 #ifdef __cplusplus
25127 extern "C"
25128 #endif
25129 char $ac_func ();
25130 /* The GNU C library defines this for functions which it implements
25131 to always fail with ENOSYS. Some functions are actually named
25132 something starting with __ and the normal name is an alias. */
25133 #if defined __stub_$ac_func || defined __stub___$ac_func
25134 choke me
25135 #endif
25138 main ()
25140 return $ac_func ();
25142 return 0;
25144 _ACEOF
25145 rm -f conftest.$ac_objext conftest$ac_exeext
25146 if { (ac_try="$ac_link"
25147 case "(($ac_try" in
25148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25149 *) ac_try_echo=$ac_try;;
25150 esac
25151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25152 $as_echo "$ac_try_echo") >&5
25153 (eval "$ac_link") 2>conftest.er1
25154 ac_status=$?
25155 grep -v '^ *+' conftest.er1 >conftest.err
25156 rm -f conftest.er1
25157 cat conftest.err >&5
25158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } && {
25160 test -z "$ac_c_werror_flag" ||
25161 test ! -s conftest.err
25162 } && test -s conftest$ac_exeext && {
25163 test "$cross_compiling" = yes ||
25164 $as_test_x conftest$ac_exeext
25165 }; then
25166 eval "$as_ac_var=yes"
25167 else
25168 $as_echo "$as_me: failed program was:" >&5
25169 sed 's/^/| /' conftest.$ac_ext >&5
25171 eval "$as_ac_var=no"
25174 rm -rf conftest.dSYM
25175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25176 conftest$ac_exeext conftest.$ac_ext
25178 ac_res=`eval 'as_val=${'$as_ac_var'}
25179 $as_echo "$as_val"'`
25180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25181 $as_echo "$ac_res" >&6; }
25182 if test `eval 'as_val=${'$as_ac_var'}
25183 $as_echo "$as_val"'` = yes; then
25184 cat >>confdefs.h <<_ACEOF
25185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25186 _ACEOF
25189 done
25191 if test "x$ac_cv_func_fork" = xyes; then
25192 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25193 $as_echo_n "checking for working fork... " >&6; }
25194 if test "${ac_cv_func_fork_works+set}" = set; then
25195 $as_echo_n "(cached) " >&6
25196 else
25197 if test "$cross_compiling" = yes; then
25198 ac_cv_func_fork_works=cross
25199 else
25200 cat >conftest.$ac_ext <<_ACEOF
25201 /* confdefs.h. */
25202 _ACEOF
25203 cat confdefs.h >>conftest.$ac_ext
25204 cat >>conftest.$ac_ext <<_ACEOF
25205 /* end confdefs.h. */
25206 $ac_includes_default
25208 main ()
25211 /* By Ruediger Kuhlmann. */
25212 return fork () < 0;
25215 return 0;
25217 _ACEOF
25218 rm -f conftest$ac_exeext
25219 if { (ac_try="$ac_link"
25220 case "(($ac_try" in
25221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25222 *) ac_try_echo=$ac_try;;
25223 esac
25224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25225 $as_echo "$ac_try_echo") >&5
25226 (eval "$ac_link") 2>&5
25227 ac_status=$?
25228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25230 { (case "(($ac_try" in
25231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25232 *) ac_try_echo=$ac_try;;
25233 esac
25234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25235 $as_echo "$ac_try_echo") >&5
25236 (eval "$ac_try") 2>&5
25237 ac_status=$?
25238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; }; then
25240 ac_cv_func_fork_works=yes
25241 else
25242 $as_echo "$as_me: program exited with status $ac_status" >&5
25243 $as_echo "$as_me: failed program was:" >&5
25244 sed 's/^/| /' conftest.$ac_ext >&5
25246 ( exit $ac_status )
25247 ac_cv_func_fork_works=no
25249 rm -rf conftest.dSYM
25250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25255 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25256 $as_echo "$ac_cv_func_fork_works" >&6; }
25258 else
25259 ac_cv_func_fork_works=$ac_cv_func_fork
25261 if test "x$ac_cv_func_fork_works" = xcross; then
25262 case $host in
25263 *-*-amigaos* | *-*-msdosdjgpp*)
25264 # Override, as these systems have only a dummy fork() stub
25265 ac_cv_func_fork_works=no
25268 ac_cv_func_fork_works=yes
25270 esac
25271 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25272 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25274 ac_cv_func_vfork_works=$ac_cv_func_vfork
25275 if test "x$ac_cv_func_vfork" = xyes; then
25276 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25277 $as_echo_n "checking for working vfork... " >&6; }
25278 if test "${ac_cv_func_vfork_works+set}" = set; then
25279 $as_echo_n "(cached) " >&6
25280 else
25281 if test "$cross_compiling" = yes; then
25282 ac_cv_func_vfork_works=cross
25283 else
25284 cat >conftest.$ac_ext <<_ACEOF
25285 /* confdefs.h. */
25286 _ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h. */
25290 /* Thanks to Paul Eggert for this test. */
25291 $ac_includes_default
25292 #include <sys/wait.h>
25293 #ifdef HAVE_VFORK_H
25294 # include <vfork.h>
25295 #endif
25296 /* On some sparc systems, changes by the child to local and incoming
25297 argument registers are propagated back to the parent. The compiler
25298 is told about this with #include <vfork.h>, but some compilers
25299 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25300 static variable whose address is put into a register that is
25301 clobbered by the vfork. */
25302 static void
25303 #ifdef __cplusplus
25304 sparc_address_test (int arg)
25305 # else
25306 sparc_address_test (arg) int arg;
25307 #endif
25309 static pid_t child;
25310 if (!child) {
25311 child = vfork ();
25312 if (child < 0) {
25313 perror ("vfork");
25314 _exit(2);
25316 if (!child) {
25317 arg = getpid();
25318 write(-1, "", 0);
25319 _exit (arg);
25325 main ()
25327 pid_t parent = getpid ();
25328 pid_t child;
25330 sparc_address_test (0);
25332 child = vfork ();
25334 if (child == 0) {
25335 /* Here is another test for sparc vfork register problems. This
25336 test uses lots of local variables, at least as many local
25337 variables as main has allocated so far including compiler
25338 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25339 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25340 reuse the register of parent for one of the local variables,
25341 since it will think that parent can't possibly be used any more
25342 in this routine. Assigning to the local variable will thus
25343 munge parent in the parent process. */
25344 pid_t
25345 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25346 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25347 /* Convince the compiler that p..p7 are live; otherwise, it might
25348 use the same hardware register for all 8 local variables. */
25349 if (p != p1 || p != p2 || p != p3 || p != p4
25350 || p != p5 || p != p6 || p != p7)
25351 _exit(1);
25353 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25354 from child file descriptors. If the child closes a descriptor
25355 before it execs or exits, this munges the parent's descriptor
25356 as well. Test for this by closing stdout in the child. */
25357 _exit(close(fileno(stdout)) != 0);
25358 } else {
25359 int status;
25360 struct stat st;
25362 while (wait(&status) != child)
25364 return (
25365 /* Was there some problem with vforking? */
25366 child < 0
25368 /* Did the child fail? (This shouldn't happen.) */
25369 || status
25371 /* Did the vfork/compiler bug occur? */
25372 || parent != getpid()
25374 /* Did the file descriptor bug occur? */
25375 || fstat(fileno(stdout), &st) != 0
25379 _ACEOF
25380 rm -f conftest$ac_exeext
25381 if { (ac_try="$ac_link"
25382 case "(($ac_try" in
25383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25384 *) ac_try_echo=$ac_try;;
25385 esac
25386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25387 $as_echo "$ac_try_echo") >&5
25388 (eval "$ac_link") 2>&5
25389 ac_status=$?
25390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25392 { (case "(($ac_try" in
25393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394 *) ac_try_echo=$ac_try;;
25395 esac
25396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25397 $as_echo "$ac_try_echo") >&5
25398 (eval "$ac_try") 2>&5
25399 ac_status=$?
25400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); }; }; then
25402 ac_cv_func_vfork_works=yes
25403 else
25404 $as_echo "$as_me: program exited with status $ac_status" >&5
25405 $as_echo "$as_me: failed program was:" >&5
25406 sed 's/^/| /' conftest.$ac_ext >&5
25408 ( exit $ac_status )
25409 ac_cv_func_vfork_works=no
25411 rm -rf conftest.dSYM
25412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25417 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25418 $as_echo "$ac_cv_func_vfork_works" >&6; }
25421 if test "x$ac_cv_func_fork_works" = xcross; then
25422 ac_cv_func_vfork_works=$ac_cv_func_vfork
25423 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25424 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25427 if test "x$ac_cv_func_vfork_works" = xyes; then
25429 cat >>confdefs.h <<\_ACEOF
25430 #define HAVE_WORKING_VFORK 1
25431 _ACEOF
25433 else
25435 cat >>confdefs.h <<\_ACEOF
25436 #define vfork fork
25437 _ACEOF
25440 if test "x$ac_cv_func_fork_works" = xyes; then
25442 cat >>confdefs.h <<\_ACEOF
25443 #define HAVE_WORKING_FORK 1
25444 _ACEOF
25449 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25450 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25451 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25452 $as_echo_n "(cached) " >&6
25453 else
25454 cat >conftest.$ac_ext <<_ACEOF
25455 /* confdefs.h. */
25456 _ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h. */
25460 #include <langinfo.h>
25462 main ()
25464 char* cs = nl_langinfo(CODESET);
25466 return 0;
25468 _ACEOF
25469 rm -f conftest.$ac_objext conftest$ac_exeext
25470 if { (ac_try="$ac_link"
25471 case "(($ac_try" in
25472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25473 *) ac_try_echo=$ac_try;;
25474 esac
25475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25476 $as_echo "$ac_try_echo") >&5
25477 (eval "$ac_link") 2>conftest.er1
25478 ac_status=$?
25479 grep -v '^ *+' conftest.er1 >conftest.err
25480 rm -f conftest.er1
25481 cat conftest.err >&5
25482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); } && {
25484 test -z "$ac_c_werror_flag" ||
25485 test ! -s conftest.err
25486 } && test -s conftest$ac_exeext && {
25487 test "$cross_compiling" = yes ||
25488 $as_test_x conftest$ac_exeext
25489 }; then
25490 emacs_cv_langinfo_codeset=yes
25491 else
25492 $as_echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.$ac_ext >&5
25495 emacs_cv_langinfo_codeset=no
25498 rm -rf conftest.dSYM
25499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25500 conftest$ac_exeext conftest.$ac_ext
25503 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25504 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25505 if test $emacs_cv_langinfo_codeset = yes; then
25507 cat >>confdefs.h <<\_ACEOF
25508 #define HAVE_LANGINFO_CODESET 1
25509 _ACEOF
25513 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25514 $as_echo_n "checking for size_t... " >&6; }
25515 if test "${ac_cv_type_size_t+set}" = set; then
25516 $as_echo_n "(cached) " >&6
25517 else
25518 ac_cv_type_size_t=no
25519 cat >conftest.$ac_ext <<_ACEOF
25520 /* confdefs.h. */
25521 _ACEOF
25522 cat confdefs.h >>conftest.$ac_ext
25523 cat >>conftest.$ac_ext <<_ACEOF
25524 /* end confdefs.h. */
25525 $ac_includes_default
25527 main ()
25529 if (sizeof (size_t))
25530 return 0;
25532 return 0;
25534 _ACEOF
25535 rm -f conftest.$ac_objext
25536 if { (ac_try="$ac_compile"
25537 case "(($ac_try" in
25538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25539 *) ac_try_echo=$ac_try;;
25540 esac
25541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25542 $as_echo "$ac_try_echo") >&5
25543 (eval "$ac_compile") 2>conftest.er1
25544 ac_status=$?
25545 grep -v '^ *+' conftest.er1 >conftest.err
25546 rm -f conftest.er1
25547 cat conftest.err >&5
25548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549 (exit $ac_status); } && {
25550 test -z "$ac_c_werror_flag" ||
25551 test ! -s conftest.err
25552 } && test -s conftest.$ac_objext; then
25553 cat >conftest.$ac_ext <<_ACEOF
25554 /* confdefs.h. */
25555 _ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h. */
25559 $ac_includes_default
25561 main ()
25563 if (sizeof ((size_t)))
25564 return 0;
25566 return 0;
25568 _ACEOF
25569 rm -f conftest.$ac_objext
25570 if { (ac_try="$ac_compile"
25571 case "(($ac_try" in
25572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25573 *) ac_try_echo=$ac_try;;
25574 esac
25575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25576 $as_echo "$ac_try_echo") >&5
25577 (eval "$ac_compile") 2>conftest.er1
25578 ac_status=$?
25579 grep -v '^ *+' conftest.er1 >conftest.err
25580 rm -f conftest.er1
25581 cat conftest.err >&5
25582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } && {
25584 test -z "$ac_c_werror_flag" ||
25585 test ! -s conftest.err
25586 } && test -s conftest.$ac_objext; then
25588 else
25589 $as_echo "$as_me: failed program was:" >&5
25590 sed 's/^/| /' conftest.$ac_ext >&5
25592 ac_cv_type_size_t=yes
25595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25596 else
25597 $as_echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25605 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25606 $as_echo "$ac_cv_type_size_t" >&6; }
25607 if test $ac_cv_type_size_t = yes; then
25609 cat >>confdefs.h <<_ACEOF
25610 #define HAVE_SIZE_T 1
25611 _ACEOF
25617 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25618 $as_echo_n "checking for mbstate_t... " >&6; }
25619 if test "${ac_cv_type_mbstate_t+set}" = set; then
25620 $as_echo_n "(cached) " >&6
25621 else
25622 cat >conftest.$ac_ext <<_ACEOF
25623 /* confdefs.h. */
25624 _ACEOF
25625 cat confdefs.h >>conftest.$ac_ext
25626 cat >>conftest.$ac_ext <<_ACEOF
25627 /* end confdefs.h. */
25628 $ac_includes_default
25629 # include <wchar.h>
25631 main ()
25633 mbstate_t x; return sizeof x;
25635 return 0;
25637 _ACEOF
25638 rm -f conftest.$ac_objext
25639 if { (ac_try="$ac_compile"
25640 case "(($ac_try" in
25641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642 *) ac_try_echo=$ac_try;;
25643 esac
25644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25645 $as_echo "$ac_try_echo") >&5
25646 (eval "$ac_compile") 2>conftest.er1
25647 ac_status=$?
25648 grep -v '^ *+' conftest.er1 >conftest.err
25649 rm -f conftest.er1
25650 cat conftest.err >&5
25651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652 (exit $ac_status); } && {
25653 test -z "$ac_c_werror_flag" ||
25654 test ! -s conftest.err
25655 } && test -s conftest.$ac_objext; then
25656 ac_cv_type_mbstate_t=yes
25657 else
25658 $as_echo "$as_me: failed program was:" >&5
25659 sed 's/^/| /' conftest.$ac_ext >&5
25661 ac_cv_type_mbstate_t=no
25664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25666 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25667 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25668 if test $ac_cv_type_mbstate_t = yes; then
25670 cat >>confdefs.h <<\_ACEOF
25671 #define HAVE_MBSTATE_T 1
25672 _ACEOF
25674 else
25676 cat >>confdefs.h <<\_ACEOF
25677 #define mbstate_t int
25678 _ACEOF
25682 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25683 $as_echo_n "checking for C restrict keyword... " >&6; }
25684 if test "${emacs_cv_c_restrict+set}" = set; then
25685 $as_echo_n "(cached) " >&6
25686 else
25687 cat >conftest.$ac_ext <<_ACEOF
25688 /* confdefs.h. */
25689 _ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h. */
25693 void fred (int *restrict x);
25695 main ()
25699 return 0;
25701 _ACEOF
25702 rm -f conftest.$ac_objext
25703 if { (ac_try="$ac_compile"
25704 case "(($ac_try" in
25705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25706 *) ac_try_echo=$ac_try;;
25707 esac
25708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25709 $as_echo "$ac_try_echo") >&5
25710 (eval "$ac_compile") 2>conftest.er1
25711 ac_status=$?
25712 grep -v '^ *+' conftest.er1 >conftest.err
25713 rm -f conftest.er1
25714 cat conftest.err >&5
25715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); } && {
25717 test -z "$ac_c_werror_flag" ||
25718 test ! -s conftest.err
25719 } && test -s conftest.$ac_objext; then
25720 emacs_cv_c_restrict=yes
25721 else
25722 $as_echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25725 cat >conftest.$ac_ext <<_ACEOF
25726 /* confdefs.h. */
25727 _ACEOF
25728 cat confdefs.h >>conftest.$ac_ext
25729 cat >>conftest.$ac_ext <<_ACEOF
25730 /* end confdefs.h. */
25731 void fred (int *__restrict x);
25733 main ()
25737 return 0;
25739 _ACEOF
25740 rm -f conftest.$ac_objext
25741 if { (ac_try="$ac_compile"
25742 case "(($ac_try" in
25743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25744 *) ac_try_echo=$ac_try;;
25745 esac
25746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25747 $as_echo "$ac_try_echo") >&5
25748 (eval "$ac_compile") 2>conftest.er1
25749 ac_status=$?
25750 grep -v '^ *+' conftest.er1 >conftest.err
25751 rm -f conftest.er1
25752 cat conftest.err >&5
25753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); } && {
25755 test -z "$ac_c_werror_flag" ||
25756 test ! -s conftest.err
25757 } && test -s conftest.$ac_objext; then
25758 emacs_cv_c_restrict=__restrict
25759 else
25760 $as_echo "$as_me: failed program was:" >&5
25761 sed 's/^/| /' conftest.$ac_ext >&5
25763 emacs_cv_c_restrict=no
25766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25771 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25772 $as_echo "$emacs_cv_c_restrict" >&6; }
25773 case "$emacs_cv_c_restrict" in
25774 yes) emacs_restrict=restrict;;
25775 no) emacs_restrict="";;
25776 *) emacs_restrict="$emacs_cv_c_restrict";;
25777 esac
25778 if test "$emacs_restrict" != __restrict; then
25780 cat >>confdefs.h <<_ACEOF
25781 #define __restrict $emacs_restrict
25782 _ACEOF
25786 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25787 $as_echo_n "checking for C restricted array declarations... " >&6; }
25788 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25789 $as_echo_n "(cached) " >&6
25790 else
25791 cat >conftest.$ac_ext <<_ACEOF
25792 /* confdefs.h. */
25793 _ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h. */
25797 void fred (int x[__restrict]);
25799 main ()
25803 return 0;
25805 _ACEOF
25806 rm -f conftest.$ac_objext
25807 if { (ac_try="$ac_compile"
25808 case "(($ac_try" in
25809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25810 *) ac_try_echo=$ac_try;;
25811 esac
25812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25813 $as_echo "$ac_try_echo") >&5
25814 (eval "$ac_compile") 2>conftest.er1
25815 ac_status=$?
25816 grep -v '^ *+' conftest.er1 >conftest.err
25817 rm -f conftest.er1
25818 cat conftest.err >&5
25819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820 (exit $ac_status); } && {
25821 test -z "$ac_c_werror_flag" ||
25822 test ! -s conftest.err
25823 } && test -s conftest.$ac_objext; then
25824 emacs_cv_c_restrict_arr=yes
25825 else
25826 $as_echo "$as_me: failed program was:" >&5
25827 sed 's/^/| /' conftest.$ac_ext >&5
25829 emacs_cv_c_restrict_arr=no
25832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25834 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25835 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25836 if test "$emacs_cv_c_restrict_arr" = yes; then
25838 cat >>confdefs.h <<\_ACEOF
25839 #define __restrict_arr __restrict
25840 _ACEOF
25846 # Set up the CFLAGS for real compilation, so we can substitute it.
25847 CFLAGS="$REAL_CFLAGS"
25848 CPPFLAGS="$REAL_CPPFLAGS"
25850 #### Find out which version of Emacs this is.
25851 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25852 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25853 if test x"${version}" = x; then
25854 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25855 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25856 { (exit 1); exit 1; }; }
25858 if test x"${version}" != x"$PACKAGE_VERSION"; then
25859 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25860 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25863 ### Specify what sort of things we'll be editing into Makefile and config.h.
25864 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25895 ## Used in lwlib/Makefile.in.
25912 cat >>confdefs.h <<_ACEOF
25913 #define EMACS_CONFIGURATION "${canonical}"
25914 _ACEOF
25917 cat >>confdefs.h <<_ACEOF
25918 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25919 _ACEOF
25922 cat >>confdefs.h <<_ACEOF
25923 #define config_machfile "${machfile}"
25924 _ACEOF
25927 cat >>confdefs.h <<_ACEOF
25928 #define config_opsysfile "${opsysfile}"
25929 _ACEOF
25932 cat >>confdefs.h <<_ACEOF
25933 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25934 _ACEOF
25937 cat >>confdefs.h <<_ACEOF
25938 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25939 _ACEOF
25942 cat >>confdefs.h <<_ACEOF
25943 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25944 _ACEOF
25947 XMENU_OBJ=
25948 XOBJ=
25949 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25951 cat >>confdefs.h <<\_ACEOF
25952 #define HAVE_X_WINDOWS 1
25953 _ACEOF
25955 XMENU_OBJ=xmenu.o
25956 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
25961 WIDGET_OBJ=
25962 MOTIF_LIBW=
25963 if test "${USE_X_TOOLKIT}" != "none" ; then
25964 WIDGET_OBJ=widget.o
25966 cat >>confdefs.h <<\_ACEOF
25967 #define USE_X_TOOLKIT 1
25968 _ACEOF
25970 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25972 cat >>confdefs.h <<\_ACEOF
25973 #define USE_LUCID 1
25974 _ACEOF
25976 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25978 cat >>confdefs.h <<\_ACEOF
25979 #define USE_MOTIF 1
25980 _ACEOF
25982 MOTIF_LIBW=-lXm
25983 case "$opsys" in
25984 gnu-linux)
25985 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
25986 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
25989 unixware)
25990 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
25991 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
25992 MOTIF_LIBW="MOTIF_LIBW -lXimp"
25995 aix4-2)
25996 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
25997 MOTIF_LIBW="$MOTIF_LIBW -li18n"
25999 esac
26000 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26005 case "$USE_X_TOOLKIT" in
26006 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26007 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26008 *) TOOLKIT_LIBW= ;;
26009 esac
26012 if test "${HAVE_X11}" = "yes" ; then
26014 cat >>confdefs.h <<\_ACEOF
26015 #define HAVE_X11 1
26016 _ACEOF
26019 if test "${HAVE_MENUS}" = "yes" ; then
26021 cat >>confdefs.h <<\_ACEOF
26022 #define HAVE_MENUS 1
26023 _ACEOF
26026 if test "${GNU_MALLOC}" = "yes" ; then
26028 cat >>confdefs.h <<\_ACEOF
26029 #define GNU_MALLOC 1
26030 _ACEOF
26033 if test "${REL_ALLOC}" = "yes" ; then
26035 cat >>confdefs.h <<\_ACEOF
26036 #define REL_ALLOC 1
26037 _ACEOF
26046 #### Report on what we decided to do.
26047 #### Report GTK as a toolkit, even if it doesn't use Xt.
26048 #### It makes printing result more understandable as using GTK sets
26049 #### toolkit_scroll_bars to yes by default.
26050 if test "${HAVE_GTK}" = "yes"; then
26051 USE_X_TOOLKIT=GTK
26054 echo "
26055 Configured for \`${canonical}'.
26057 Where should the build process find the source code? ${srcdir}
26058 What operating system and machine description files should Emacs use?
26059 \`${opsysfile}' and \`${machfile}'
26060 What compiler should emacs be built with? ${CC} ${CFLAGS}
26061 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26062 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26063 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26064 What window system should Emacs use? ${window_system}
26065 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26067 if test -n "${x_includes}"; then
26068 echo " Where do we find X Windows header files? ${x_includes}"
26069 else
26070 echo " Where do we find X Windows header files? Standard dirs"
26072 if test -n "${x_libraries}"; then
26073 echo " Where do we find X Windows libraries? ${x_libraries}"
26074 else
26075 echo " Where do we find X Windows libraries? Standard dirs"
26078 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26079 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26080 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26081 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26082 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26083 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26084 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26085 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26086 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26087 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26088 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26090 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26091 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26092 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26093 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26095 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26096 echo
26098 if test $USE_XASSERTS = yes; then
26099 echo " Compiling with asserts turned on."
26100 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26103 echo
26105 if test "$HAVE_NS" = "yes"; then
26106 echo
26107 echo "You must run \"make install\" in order to test the built application.
26108 The installed application will go to nextstep/Emacs.app and can be
26109 run or moved from there."
26110 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26111 echo "The application will be fully self-contained."
26112 else
26113 echo "The lisp resources for the application will be installed under ${prefix}.
26114 You may need to run \"make install\" with sudo. The application will fail
26115 to run if these resources are not installed."
26117 echo
26120 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26121 echo "D-Bus integration has been tested for GNU/Linux only."
26122 echo
26126 # Remove any trailing slashes in these variables.
26127 test "${prefix}" != NONE &&
26128 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26129 test "${exec_prefix}" != NONE &&
26130 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26132 # Now get this: Some word that is part of the ${srcdir} directory name
26133 # or the ${configuration} value might, just might, happen to be an
26134 # identifier like `sun4' or `i386' or something, and be predefined by
26135 # the C preprocessor to some helpful value like 1, or maybe the empty
26136 # string. Needless to say consequent macro substitutions are less
26137 # than conducive to the makefile finding the correct directory.
26138 cpp_undefs="`echo $srcdir $configuration $canonical unix |
26139 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26140 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26142 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26143 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26144 ## from Makefile.c can correctly provide the arg `-traditional' to the
26145 ## C preprocessor.
26147 cat >conftest.$ac_ext <<_ACEOF
26148 /* confdefs.h. */
26149 _ACEOF
26150 cat confdefs.h >>conftest.$ac_ext
26151 cat >>conftest.$ac_ext <<_ACEOF
26152 /* end confdefs.h. */
26153 yes..yes
26154 _ACEOF
26155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26156 $EGREP "yes..yes" >/dev/null 2>&1; then
26157 CPP_NEED_TRADITIONAL=no
26158 else
26159 CPP_NEED_TRADITIONAL=yes
26161 rm -f conftest*
26164 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"
26166 ac_config_commands="$ac_config_commands default"
26168 cat >confcache <<\_ACEOF
26169 # This file is a shell script that caches the results of configure
26170 # tests run on this system so they can be shared between configure
26171 # scripts and configure runs, see configure's option --config-cache.
26172 # It is not useful on other systems. If it contains results you don't
26173 # want to keep, you may remove or edit it.
26175 # config.status only pays attention to the cache file if you give it
26176 # the --recheck option to rerun configure.
26178 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26179 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26180 # following values.
26182 _ACEOF
26184 # The following way of writing the cache mishandles newlines in values,
26185 # but we know of no workaround that is simple, portable, and efficient.
26186 # So, we kill variables containing newlines.
26187 # Ultrix sh set writes to stderr and can't be redirected directly,
26188 # and sets the high bit in the cache file unless we assign to the vars.
26190 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26191 eval ac_val=\$$ac_var
26192 case $ac_val in #(
26193 *${as_nl}*)
26194 case $ac_var in #(
26195 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26196 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26197 esac
26198 case $ac_var in #(
26199 _ | IFS | as_nl) ;; #(
26200 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26201 *) $as_unset $ac_var ;;
26202 esac ;;
26203 esac
26204 done
26206 (set) 2>&1 |
26207 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26208 *${as_nl}ac_space=\ *)
26209 # `set' does not quote correctly, so add quotes (double-quote
26210 # substitution turns \\\\ into \\, and sed turns \\ into \).
26211 sed -n \
26212 "s/'/'\\\\''/g;
26213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26214 ;; #(
26216 # `set' quotes correctly as required by POSIX, so do not add quotes.
26217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26219 esac |
26220 sort
26222 sed '
26223 /^ac_cv_env_/b end
26224 t clear
26225 :clear
26226 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26227 t end
26228 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26229 :end' >>confcache
26230 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26231 if test -w "$cache_file"; then
26232 test "x$cache_file" != "x/dev/null" &&
26233 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26234 $as_echo "$as_me: updating cache $cache_file" >&6;}
26235 cat confcache >$cache_file
26236 else
26237 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26238 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26241 rm -f confcache
26243 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26244 # Let make expand exec_prefix.
26245 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26247 DEFS=-DHAVE_CONFIG_H
26249 ac_libobjs=
26250 ac_ltlibobjs=
26251 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26252 # 1. Remove the extension, and $U if already installed.
26253 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26254 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26255 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26256 # will be set to the directory where LIBOBJS objects are built.
26257 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26258 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26259 done
26260 LIBOBJS=$ac_libobjs
26262 LTLIBOBJS=$ac_ltlibobjs
26266 : ${CONFIG_STATUS=./config.status}
26267 ac_write_fail=0
26268 ac_clean_files_save=$ac_clean_files
26269 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26270 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26271 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26272 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26273 #! $SHELL
26274 # Generated by $as_me.
26275 # Run this file to recreate the current configuration.
26276 # Compiler output produced by configure, useful for debugging
26277 # configure, is in config.log if it exists.
26279 debug=false
26280 ac_cs_recheck=false
26281 ac_cs_silent=false
26282 SHELL=\${CONFIG_SHELL-$SHELL}
26283 _ACEOF
26285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26286 ## --------------------- ##
26287 ## M4sh Initialization. ##
26288 ## --------------------- ##
26290 # Be more Bourne compatible
26291 DUALCASE=1; export DUALCASE # for MKS sh
26292 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26293 emulate sh
26294 NULLCMD=:
26295 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26296 # is contrary to our usage. Disable this feature.
26297 alias -g '${1+"$@"}'='"$@"'
26298 setopt NO_GLOB_SUBST
26299 else
26300 case `(set -o) 2>/dev/null` in
26301 *posix*) set -o posix ;;
26302 esac
26309 # PATH needs CR
26310 # Avoid depending upon Character Ranges.
26311 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26312 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26313 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26314 as_cr_digits='0123456789'
26315 as_cr_alnum=$as_cr_Letters$as_cr_digits
26317 as_nl='
26319 export as_nl
26320 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26321 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26322 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26323 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26324 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26325 as_echo='printf %s\n'
26326 as_echo_n='printf %s'
26327 else
26328 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26329 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26330 as_echo_n='/usr/ucb/echo -n'
26331 else
26332 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26333 as_echo_n_body='eval
26334 arg=$1;
26335 case $arg in
26336 *"$as_nl"*)
26337 expr "X$arg" : "X\\(.*\\)$as_nl";
26338 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26339 esac;
26340 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26342 export as_echo_n_body
26343 as_echo_n='sh -c $as_echo_n_body as_echo'
26345 export as_echo_body
26346 as_echo='sh -c $as_echo_body as_echo'
26349 # The user is always right.
26350 if test "${PATH_SEPARATOR+set}" != set; then
26351 PATH_SEPARATOR=:
26352 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26353 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26354 PATH_SEPARATOR=';'
26358 # Support unset when possible.
26359 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26360 as_unset=unset
26361 else
26362 as_unset=false
26366 # IFS
26367 # We need space, tab and new line, in precisely that order. Quoting is
26368 # there to prevent editors from complaining about space-tab.
26369 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26370 # splitting by setting IFS to empty value.)
26371 IFS=" "" $as_nl"
26373 # Find who we are. Look in the path if we contain no directory separator.
26374 case $0 in
26375 *[\\/]* ) as_myself=$0 ;;
26376 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26377 for as_dir in $PATH
26379 IFS=$as_save_IFS
26380 test -z "$as_dir" && as_dir=.
26381 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26382 done
26383 IFS=$as_save_IFS
26386 esac
26387 # We did not find ourselves, most probably we were run as `sh COMMAND'
26388 # in which case we are not to be found in the path.
26389 if test "x$as_myself" = x; then
26390 as_myself=$0
26392 if test ! -f "$as_myself"; then
26393 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26394 { (exit 1); exit 1; }
26397 # Work around bugs in pre-3.0 UWIN ksh.
26398 for as_var in ENV MAIL MAILPATH
26399 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26400 done
26401 PS1='$ '
26402 PS2='> '
26403 PS4='+ '
26405 # NLS nuisances.
26406 LC_ALL=C
26407 export LC_ALL
26408 LANGUAGE=C
26409 export LANGUAGE
26411 # Required to use basename.
26412 if expr a : '\(a\)' >/dev/null 2>&1 &&
26413 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26414 as_expr=expr
26415 else
26416 as_expr=false
26419 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26420 as_basename=basename
26421 else
26422 as_basename=false
26426 # Name of the executable.
26427 as_me=`$as_basename -- "$0" ||
26428 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26429 X"$0" : 'X\(//\)$' \| \
26430 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26431 $as_echo X/"$0" |
26432 sed '/^.*\/\([^/][^/]*\)\/*$/{
26433 s//\1/
26436 /^X\/\(\/\/\)$/{
26437 s//\1/
26440 /^X\/\(\/\).*/{
26441 s//\1/
26444 s/.*/./; q'`
26446 # CDPATH.
26447 $as_unset CDPATH
26451 as_lineno_1=$LINENO
26452 as_lineno_2=$LINENO
26453 test "x$as_lineno_1" != "x$as_lineno_2" &&
26454 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26456 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26457 # uniformly replaced by the line number. The first 'sed' inserts a
26458 # line-number line after each line using $LINENO; the second 'sed'
26459 # does the real work. The second script uses 'N' to pair each
26460 # line-number line with the line containing $LINENO, and appends
26461 # trailing '-' during substitution so that $LINENO is not a special
26462 # case at line end.
26463 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26464 # scripts with optimization help from Paolo Bonzini. Blame Lee
26465 # E. McMahon (1931-1989) for sed's syntax. :-)
26466 sed -n '
26468 /[$]LINENO/=
26469 ' <$as_myself |
26470 sed '
26471 s/[$]LINENO.*/&-/
26472 t lineno
26474 :lineno
26476 :loop
26477 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26478 t loop
26479 s/-\n.*//
26480 ' >$as_me.lineno &&
26481 chmod +x "$as_me.lineno" ||
26482 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26483 { (exit 1); exit 1; }; }
26485 # Don't try to exec as it changes $[0], causing all sort of problems
26486 # (the dirname of $[0] is not the place where we might find the
26487 # original and so on. Autoconf is especially sensitive to this).
26488 . "./$as_me.lineno"
26489 # Exit status is that of the last command.
26490 exit
26494 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26495 as_dirname=dirname
26496 else
26497 as_dirname=false
26500 ECHO_C= ECHO_N= ECHO_T=
26501 case `echo -n x` in
26502 -n*)
26503 case `echo 'x\c'` in
26504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26505 *) ECHO_C='\c';;
26506 esac;;
26508 ECHO_N='-n';;
26509 esac
26510 if expr a : '\(a\)' >/dev/null 2>&1 &&
26511 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26512 as_expr=expr
26513 else
26514 as_expr=false
26517 rm -f conf$$ conf$$.exe conf$$.file
26518 if test -d conf$$.dir; then
26519 rm -f conf$$.dir/conf$$.file
26520 else
26521 rm -f conf$$.dir
26522 mkdir conf$$.dir 2>/dev/null
26524 if (echo >conf$$.file) 2>/dev/null; then
26525 if ln -s conf$$.file conf$$ 2>/dev/null; then
26526 as_ln_s='ln -s'
26527 # ... but there are two gotchas:
26528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26530 # In both cases, we have to default to `cp -p'.
26531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26532 as_ln_s='cp -p'
26533 elif ln conf$$.file conf$$ 2>/dev/null; then
26534 as_ln_s=ln
26535 else
26536 as_ln_s='cp -p'
26538 else
26539 as_ln_s='cp -p'
26541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26542 rmdir conf$$.dir 2>/dev/null
26544 if mkdir -p . 2>/dev/null; then
26545 as_mkdir_p=:
26546 else
26547 test -d ./-p && rmdir ./-p
26548 as_mkdir_p=false
26551 if test -x / >/dev/null 2>&1; then
26552 as_test_x='test -x'
26553 else
26554 if ls -dL / >/dev/null 2>&1; then
26555 as_ls_L_option=L
26556 else
26557 as_ls_L_option=
26559 as_test_x='
26560 eval sh -c '\''
26561 if test -d "$1"; then
26562 test -d "$1/.";
26563 else
26564 case $1 in
26565 -*)set "./$1";;
26566 esac;
26567 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26568 ???[sx]*):;;*)false;;esac;fi
26569 '\'' sh
26572 as_executable_p=$as_test_x
26574 # Sed expression to map a string onto a valid CPP name.
26575 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26577 # Sed expression to map a string onto a valid variable name.
26578 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26581 exec 6>&1
26583 # Save the log message, to keep $[0] and so on meaningful, and to
26584 # report actual input values of CONFIG_FILES etc. instead of their
26585 # values after options handling.
26586 ac_log="
26587 This file was extended by emacs $as_me 24.0.50, which was
26588 generated by GNU Autoconf 2.62. Invocation command line was
26590 CONFIG_FILES = $CONFIG_FILES
26591 CONFIG_HEADERS = $CONFIG_HEADERS
26592 CONFIG_LINKS = $CONFIG_LINKS
26593 CONFIG_COMMANDS = $CONFIG_COMMANDS
26594 $ $0 $@
26596 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26599 _ACEOF
26601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26602 # Files that config.status was made for.
26603 config_files="$ac_config_files"
26604 config_headers="$ac_config_headers"
26605 config_commands="$ac_config_commands"
26607 _ACEOF
26609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26610 ac_cs_usage="\
26611 \`$as_me' instantiates files from templates according to the
26612 current configuration.
26614 Usage: $0 [OPTIONS] [FILE]...
26616 -h, --help print this help, then exit
26617 -V, --version print version number and configuration settings, then exit
26618 -q, --quiet do not print progress messages
26619 -d, --debug don't remove temporary files
26620 --recheck update $as_me by reconfiguring in the same conditions
26621 --file=FILE[:TEMPLATE]
26622 instantiate the configuration file FILE
26623 --header=FILE[:TEMPLATE]
26624 instantiate the configuration header FILE
26626 Configuration files:
26627 $config_files
26629 Configuration headers:
26630 $config_headers
26632 Configuration commands:
26633 $config_commands
26635 Report bugs to <bug-autoconf@gnu.org>."
26637 _ACEOF
26638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26639 ac_cs_version="\\
26640 emacs config.status 24.0.50
26641 configured by $0, generated by GNU Autoconf 2.62,
26642 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26644 Copyright (C) 2008 Free Software Foundation, Inc.
26645 This config.status script is free software; the Free Software Foundation
26646 gives unlimited permission to copy, distribute and modify it."
26648 ac_pwd='$ac_pwd'
26649 srcdir='$srcdir'
26650 INSTALL='$INSTALL'
26651 test -n "\$AWK" || AWK=awk
26652 _ACEOF
26654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26655 # The default lists apply if the user does not specify any file.
26656 ac_need_defaults=:
26657 while test $# != 0
26659 case $1 in
26660 --*=*)
26661 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26662 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26663 ac_shift=:
26666 ac_option=$1
26667 ac_optarg=$2
26668 ac_shift=shift
26670 esac
26672 case $ac_option in
26673 # Handling of the options.
26674 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26675 ac_cs_recheck=: ;;
26676 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26677 $as_echo "$ac_cs_version"; exit ;;
26678 --debug | --debu | --deb | --de | --d | -d )
26679 debug=: ;;
26680 --file | --fil | --fi | --f )
26681 $ac_shift
26682 case $ac_optarg in
26683 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26684 esac
26685 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26686 ac_need_defaults=false;;
26687 --header | --heade | --head | --hea )
26688 $ac_shift
26689 case $ac_optarg in
26690 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26691 esac
26692 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26693 ac_need_defaults=false;;
26694 --he | --h)
26695 # Conflict between --help and --header
26696 { $as_echo "$as_me: error: ambiguous option: $1
26697 Try \`$0 --help' for more information." >&2
26698 { (exit 1); exit 1; }; };;
26699 --help | --hel | -h )
26700 $as_echo "$ac_cs_usage"; exit ;;
26701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26702 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26703 ac_cs_silent=: ;;
26705 # This is an error.
26706 -*) { $as_echo "$as_me: error: unrecognized option: $1
26707 Try \`$0 --help' for more information." >&2
26708 { (exit 1); exit 1; }; } ;;
26710 *) ac_config_targets="$ac_config_targets $1"
26711 ac_need_defaults=false ;;
26713 esac
26714 shift
26715 done
26717 ac_configure_extra_args=
26719 if $ac_cs_silent; then
26720 exec 6>/dev/null
26721 ac_configure_extra_args="$ac_configure_extra_args --silent"
26724 _ACEOF
26725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26726 if \$ac_cs_recheck; then
26727 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26728 shift
26729 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26730 CONFIG_SHELL='$SHELL'
26731 export CONFIG_SHELL
26732 exec "\$@"
26735 _ACEOF
26736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26737 exec 5>>config.log
26739 echo
26740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26741 ## Running $as_me. ##
26742 _ASBOX
26743 $as_echo "$ac_log"
26744 } >&5
26746 _ACEOF
26747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26749 # INIT-COMMANDS
26751 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26753 _ACEOF
26755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26757 # Handling of arguments.
26758 for ac_config_target in $ac_config_targets
26760 case $ac_config_target in
26761 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26762 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26763 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26764 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26765 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26766 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26767 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26768 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26769 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26770 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26771 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26772 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26773 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26775 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26776 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26777 { (exit 1); exit 1; }; };;
26778 esac
26779 done
26782 # If the user did not use the arguments to specify the items to instantiate,
26783 # then the envvar interface is used. Set only those that are not.
26784 # We use the long form for the default assignment because of an extremely
26785 # bizarre bug on SunOS 4.1.3.
26786 if $ac_need_defaults; then
26787 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26788 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26789 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26792 # Have a temporary directory for convenience. Make it in the build tree
26793 # simply because there is no reason against having it here, and in addition,
26794 # creating and moving files from /tmp can sometimes cause problems.
26795 # Hook for its removal unless debugging.
26796 # Note that there is a small window in which the directory will not be cleaned:
26797 # after its creation but before its name has been assigned to `$tmp'.
26798 $debug ||
26800 tmp=
26801 trap 'exit_status=$?
26802 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26804 trap '{ (exit 1); exit 1; }' 1 2 13 15
26806 # Create a (secure) tmp directory for tmp files.
26809 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26810 test -n "$tmp" && test -d "$tmp"
26811 } ||
26813 tmp=./conf$$-$RANDOM
26814 (umask 077 && mkdir "$tmp")
26815 } ||
26817 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26818 { (exit 1); exit 1; }
26821 # Set up the scripts for CONFIG_FILES section.
26822 # No need to generate them if there are no CONFIG_FILES.
26823 # This happens for instance with `./config.status config.h'.
26824 if test -n "$CONFIG_FILES"; then
26827 ac_cr=' '
26828 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26829 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26830 ac_cs_awk_cr='\\r'
26831 else
26832 ac_cs_awk_cr=$ac_cr
26835 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26836 _ACEOF
26840 echo "cat >conf$$subs.awk <<_ACEOF" &&
26841 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26842 echo "_ACEOF"
26843 } >conf$$subs.sh ||
26844 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26845 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26846 { (exit 1); exit 1; }; }
26847 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26848 ac_delim='%!_!# '
26849 for ac_last_try in false false false false false :; do
26850 . ./conf$$subs.sh ||
26851 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26852 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26853 { (exit 1); exit 1; }; }
26855 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26856 break
26857 elif $ac_last_try; then
26858 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26859 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26860 { (exit 1); exit 1; }; }
26861 else
26862 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26864 done
26865 rm -f conf$$subs.sh
26867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26868 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26869 _ACEOF
26870 sed -n '
26872 s/^/S["/; s/!.*/"]=/
26875 s/^[^!]*!//
26876 :repl
26877 t repl
26878 s/'"$ac_delim"'$//
26879 t delim
26882 s/\(.\{148\}\).*/\1/
26883 t more1
26884 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26887 b repl
26888 :more1
26889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26892 s/.\{148\}//
26893 t nl
26894 :delim
26896 s/\(.\{148\}\).*/\1/
26897 t more2
26898 s/["\\]/\\&/g; s/^/"/; s/$/"/
26901 :more2
26902 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26905 s/.\{148\}//
26906 t delim
26907 ' <conf$$subs.awk | sed '
26908 /^[^""]/{
26910 s/\n//
26912 ' >>$CONFIG_STATUS || ac_write_fail=1
26913 rm -f conf$$subs.awk
26914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26915 _ACAWK
26916 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26917 for (key in S) S_is_set[key] = 1
26918 FS = "\a"
26922 line = $ 0
26923 nfields = split(line, field, "@")
26924 substed = 0
26925 len = length(field[1])
26926 for (i = 2; i < nfields; i++) {
26927 key = field[i]
26928 keylen = length(key)
26929 if (S_is_set[key]) {
26930 value = S[key]
26931 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26932 len += length(value) + length(field[++i])
26933 substed = 1
26934 } else
26935 len += 1 + keylen
26938 print line
26941 _ACAWK
26942 _ACEOF
26943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26944 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26945 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26946 else
26948 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26949 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26950 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26951 { (exit 1); exit 1; }; }
26952 _ACEOF
26954 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26955 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26956 # trailing colons and then remove the whole line if VPATH becomes empty
26957 # (actually we leave an empty line to preserve line numbers).
26958 if test "x$srcdir" = x.; then
26959 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26960 s/:*\$(srcdir):*/:/
26961 s/:*\${srcdir}:*/:/
26962 s/:*@srcdir@:*/:/
26963 s/^\([^=]*=[ ]*\):*/\1/
26964 s/:*$//
26965 s/^[^=]*=[ ]*$//
26969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26970 fi # test -n "$CONFIG_FILES"
26972 # Set up the scripts for CONFIG_HEADERS section.
26973 # No need to generate them if there are no CONFIG_HEADERS.
26974 # This happens for instance with `./config.status Makefile'.
26975 if test -n "$CONFIG_HEADERS"; then
26976 cat >"$tmp/defines.awk" <<\_ACAWK ||
26977 BEGIN {
26978 _ACEOF
26980 # Transform confdefs.h into an awk script `defines.awk', embedded as
26981 # here-document in config.status, that substitutes the proper values into
26982 # config.h.in to produce config.h.
26984 # Create a delimiter string that does not exist in confdefs.h, to ease
26985 # handling of long lines.
26986 ac_delim='%!_!# '
26987 for ac_last_try in false false :; do
26988 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26989 if test -z "$ac_t"; then
26990 break
26991 elif $ac_last_try; then
26992 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26993 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26994 { (exit 1); exit 1; }; }
26995 else
26996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26998 done
27000 # For the awk script, D is an array of macro values keyed by name,
27001 # likewise P contains macro parameters if any. Preserve backslash
27002 # newline sequences.
27004 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27005 sed -n '
27006 s/.\{148\}/&'"$ac_delim"'/g
27007 t rset
27008 :rset
27009 s/^[ ]*#[ ]*define[ ][ ]*/ /
27010 t def
27012 :def
27013 s/\\$//
27014 t bsnl
27015 s/["\\]/\\&/g
27016 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27017 D["\1"]=" \3"/p
27018 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27020 :bsnl
27021 s/["\\]/\\&/g
27022 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27023 D["\1"]=" \3\\\\\\n"\\/p
27024 t cont
27025 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27026 t cont
27028 :cont
27030 s/.\{148\}/&'"$ac_delim"'/g
27031 t clear
27032 :clear
27033 s/\\$//
27034 t bsnlc
27035 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27037 :bsnlc
27038 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27039 b cont
27040 ' <confdefs.h | sed '
27041 s/'"$ac_delim"'/"\\\
27042 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27045 for (key in D) D_is_set[key] = 1
27046 FS = "\a"
27048 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27049 line = \$ 0
27050 split(line, arg, " ")
27051 if (arg[1] == "#") {
27052 defundef = arg[2]
27053 mac1 = arg[3]
27054 } else {
27055 defundef = substr(arg[1], 2)
27056 mac1 = arg[2]
27058 split(mac1, mac2, "(") #)
27059 macro = mac2[1]
27060 if (D_is_set[macro]) {
27061 # Preserve the white space surrounding the "#".
27062 prefix = substr(line, 1, index(line, defundef) - 1)
27063 print prefix "define", macro P[macro] D[macro]
27064 next
27065 } else {
27066 # Replace #undef with comments. This is necessary, for example,
27067 # in the case of _POSIX_SOURCE, which is predefined and required
27068 # on some systems where configure will not decide to define it.
27069 if (defundef == "undef") {
27070 print "/*", line, "*/"
27071 next
27075 { print }
27076 _ACAWK
27077 _ACEOF
27078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27079 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27080 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27081 { (exit 1); exit 1; }; }
27082 fi # test -n "$CONFIG_HEADERS"
27085 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27086 shift
27087 for ac_tag
27089 case $ac_tag in
27090 :[FHLC]) ac_mode=$ac_tag; continue;;
27091 esac
27092 case $ac_mode$ac_tag in
27093 :[FHL]*:*);;
27094 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27095 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27096 { (exit 1); exit 1; }; };;
27097 :[FH]-) ac_tag=-:-;;
27098 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27099 esac
27100 ac_save_IFS=$IFS
27101 IFS=:
27102 set x $ac_tag
27103 IFS=$ac_save_IFS
27104 shift
27105 ac_file=$1
27106 shift
27108 case $ac_mode in
27109 :L) ac_source=$1;;
27110 :[FH])
27111 ac_file_inputs=
27112 for ac_f
27114 case $ac_f in
27115 -) ac_f="$tmp/stdin";;
27116 *) # Look for the file first in the build tree, then in the source tree
27117 # (if the path is not absolute). The absolute path cannot be DOS-style,
27118 # because $ac_f cannot contain `:'.
27119 test -f "$ac_f" ||
27120 case $ac_f in
27121 [\\/$]*) false;;
27122 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27123 esac ||
27124 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27125 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27126 { (exit 1); exit 1; }; };;
27127 esac
27128 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27129 ac_file_inputs="$ac_file_inputs '$ac_f'"
27130 done
27132 # Let's still pretend it is `configure' which instantiates (i.e., don't
27133 # use $as_me), people would be surprised to read:
27134 # /* config.h. Generated by config.status. */
27135 configure_input='Generated from '`
27136 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27137 `' by configure.'
27138 if test x"$ac_file" != x-; then
27139 configure_input="$ac_file. $configure_input"
27140 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27141 $as_echo "$as_me: creating $ac_file" >&6;}
27143 # Neutralize special characters interpreted by sed in replacement strings.
27144 case $configure_input in #(
27145 *\&* | *\|* | *\\* )
27146 ac_sed_conf_input=`$as_echo "$configure_input" |
27147 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27148 *) ac_sed_conf_input=$configure_input;;
27149 esac
27151 case $ac_tag in
27152 *:-:* | *:-) cat >"$tmp/stdin" \
27153 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27154 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27155 { (exit 1); exit 1; }; } ;;
27156 esac
27158 esac
27160 ac_dir=`$as_dirname -- "$ac_file" ||
27161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27162 X"$ac_file" : 'X\(//\)[^/]' \| \
27163 X"$ac_file" : 'X\(//\)$' \| \
27164 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27165 $as_echo X"$ac_file" |
27166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27167 s//\1/
27170 /^X\(\/\/\)[^/].*/{
27171 s//\1/
27174 /^X\(\/\/\)$/{
27175 s//\1/
27178 /^X\(\/\).*/{
27179 s//\1/
27182 s/.*/./; q'`
27183 { as_dir="$ac_dir"
27184 case $as_dir in #(
27185 -*) as_dir=./$as_dir;;
27186 esac
27187 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27188 as_dirs=
27189 while :; do
27190 case $as_dir in #(
27191 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27192 *) as_qdir=$as_dir;;
27193 esac
27194 as_dirs="'$as_qdir' $as_dirs"
27195 as_dir=`$as_dirname -- "$as_dir" ||
27196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27197 X"$as_dir" : 'X\(//\)[^/]' \| \
27198 X"$as_dir" : 'X\(//\)$' \| \
27199 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27200 $as_echo X"$as_dir" |
27201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27202 s//\1/
27205 /^X\(\/\/\)[^/].*/{
27206 s//\1/
27209 /^X\(\/\/\)$/{
27210 s//\1/
27213 /^X\(\/\).*/{
27214 s//\1/
27217 s/.*/./; q'`
27218 test -d "$as_dir" && break
27219 done
27220 test -z "$as_dirs" || eval "mkdir $as_dirs"
27221 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27222 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27223 { (exit 1); exit 1; }; }; }
27224 ac_builddir=.
27226 case "$ac_dir" in
27227 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27229 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27230 # A ".." for each directory in $ac_dir_suffix.
27231 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27232 case $ac_top_builddir_sub in
27233 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27234 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27235 esac ;;
27236 esac
27237 ac_abs_top_builddir=$ac_pwd
27238 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27239 # for backward compatibility:
27240 ac_top_builddir=$ac_top_build_prefix
27242 case $srcdir in
27243 .) # We are building in place.
27244 ac_srcdir=.
27245 ac_top_srcdir=$ac_top_builddir_sub
27246 ac_abs_top_srcdir=$ac_pwd ;;
27247 [\\/]* | ?:[\\/]* ) # Absolute name.
27248 ac_srcdir=$srcdir$ac_dir_suffix;
27249 ac_top_srcdir=$srcdir
27250 ac_abs_top_srcdir=$srcdir ;;
27251 *) # Relative name.
27252 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27253 ac_top_srcdir=$ac_top_build_prefix$srcdir
27254 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27255 esac
27256 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27259 case $ac_mode in
27262 # CONFIG_FILE
27265 case $INSTALL in
27266 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27267 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27268 esac
27269 _ACEOF
27271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27272 # If the template does not know about datarootdir, expand it.
27273 # FIXME: This hack should be removed a few years after 2.60.
27274 ac_datarootdir_hack=; ac_datarootdir_seen=
27276 ac_sed_dataroot='
27277 /datarootdir/ {
27281 /@datadir@/p
27282 /@docdir@/p
27283 /@infodir@/p
27284 /@localedir@/p
27285 /@mandir@/p
27287 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27288 *datarootdir*) ac_datarootdir_seen=yes;;
27289 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27290 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27291 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27292 _ACEOF
27293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27294 ac_datarootdir_hack='
27295 s&@datadir@&$datadir&g
27296 s&@docdir@&$docdir&g
27297 s&@infodir@&$infodir&g
27298 s&@localedir@&$localedir&g
27299 s&@mandir@&$mandir&g
27300 s&\\\${datarootdir}&$datarootdir&g' ;;
27301 esac
27302 _ACEOF
27304 # Neutralize VPATH when `$srcdir' = `.'.
27305 # Shell code in configure.ac might set extrasub.
27306 # FIXME: do we really want to maintain this feature?
27307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27308 ac_sed_extra="$ac_vpsub
27309 $extrasub
27310 _ACEOF
27311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27314 s|@configure_input@|$ac_sed_conf_input|;t t
27315 s&@top_builddir@&$ac_top_builddir_sub&;t t
27316 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27317 s&@srcdir@&$ac_srcdir&;t t
27318 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27319 s&@top_srcdir@&$ac_top_srcdir&;t t
27320 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27321 s&@builddir@&$ac_builddir&;t t
27322 s&@abs_builddir@&$ac_abs_builddir&;t t
27323 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27324 s&@INSTALL@&$ac_INSTALL&;t t
27325 $ac_datarootdir_hack
27327 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27328 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27329 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27330 { (exit 1); exit 1; }; }
27332 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27333 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27334 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27335 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27336 which seems to be undefined. Please make sure it is defined." >&5
27337 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27338 which seems to be undefined. Please make sure it is defined." >&2;}
27340 rm -f "$tmp/stdin"
27341 case $ac_file in
27342 -) cat "$tmp/out" && rm -f "$tmp/out";;
27343 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27344 esac \
27345 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27346 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27347 { (exit 1); exit 1; }; }
27351 # CONFIG_HEADER
27353 if test x"$ac_file" != x-; then
27355 $as_echo "/* $configure_input */" \
27356 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27357 } >"$tmp/config.h" \
27358 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27359 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27360 { (exit 1); exit 1; }; }
27361 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27362 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27363 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27364 else
27365 rm -f "$ac_file"
27366 mv "$tmp/config.h" "$ac_file" \
27367 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27368 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27369 { (exit 1); exit 1; }; }
27371 else
27372 $as_echo "/* $configure_input */" \
27373 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27374 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27375 $as_echo "$as_me: error: could not create -" >&2;}
27376 { (exit 1); exit 1; }; }
27380 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27381 $as_echo "$as_me: executing $ac_file commands" >&6;}
27383 esac
27386 case $ac_file$ac_mode in
27387 "default":C)
27389 ### Make the necessary directories, if they don't exist.
27390 for dir in etc lisp ; do
27391 test -d ${dir} || mkdir ${dir}
27392 done
27394 # Build src/Makefile from ${srcdir}/src/Makefile.c
27395 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27396 # This must be done after src/config.h is built, since we rely on that file.
27398 echo creating src/epaths.h
27399 ${MAKE-make} epaths-force
27401 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27402 # `..' to `. .' unless invoked with -traditional
27404 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27405 CPPFLAGS="$CPPFLAGS -traditional"
27408 echo creating lib-src/Makefile
27409 ( cd lib-src
27410 rm -f junk.c junk1.c junk2.c
27411 sed -e '/start of cpp stuff/q' \
27412 < Makefile.c > junk1.c
27413 sed -e '1,/start of cpp stuff/d'\
27414 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27415 < Makefile.c > junk.c
27416 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27417 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27418 cat junk1.c junk2.c > Makefile.new
27419 rm -f junk.c junk1.c junk2.c
27420 chmod 444 Makefile.new
27421 mv -f Makefile.new Makefile
27424 echo creating src/Makefile
27425 ( cd src
27426 rm -f junk.c junk1.c junk2.c
27427 sed -e '/start of cpp stuff/q' \
27428 < Makefile.c > junk1.c
27429 sed -e '1,/start of cpp stuff/d'\
27430 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27431 < Makefile.c > junk.c
27432 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27433 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27434 cat junk1.c junk2.c > Makefile.new
27435 rm -f junk.c junk1.c junk2.c
27436 chmod 444 Makefile.new
27437 mv -f Makefile.new Makefile
27440 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27441 echo creating src/.gdbinit
27442 echo source $srcdir/src/.gdbinit > src/.gdbinit
27447 esac
27448 done # for ac_tag
27451 { (exit 0); exit 0; }
27452 _ACEOF
27453 chmod +x $CONFIG_STATUS
27454 ac_clean_files=$ac_clean_files_save
27456 test $ac_write_fail = 0 ||
27457 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27458 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27459 { (exit 1); exit 1; }; }
27462 # configure is writing to config.log, and then calls config.status.
27463 # config.status does its own redirection, appending to config.log.
27464 # Unfortunately, on DOS this fails, as config.log is still kept open
27465 # by configure, so config.status won't be able to write to it; its
27466 # output is simply discarded. So we exec the FD to /dev/null,
27467 # effectively closing config.log, so it can be properly (re)opened and
27468 # appended to by config.status. When coming back to configure, we
27469 # need to make the FD available again.
27470 if test "$no_create" != yes; then
27471 ac_cs_success=:
27472 ac_config_status_args=
27473 test "$silent" = yes &&
27474 ac_config_status_args="$ac_config_status_args --quiet"
27475 exec 5>/dev/null
27476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27477 exec 5>>config.log
27478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27479 # would make configure fail if this is the last instruction.
27480 $ac_cs_success || { (exit 1); exit 1; }
27482 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27483 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27484 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}