initial imagemagick readme
[emacs.git] / configure
blob2557e41c4bfc4b7896f403d19c7fab77cee1fcee
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 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='LTLIBOBJS
642 OTHER_FILES
643 LIB_SRC_EXTRA_INSTALLABLES
644 GNU_OBJC_CFLAGS
645 GNUSTEP_SYSTEM_LIBRARIES
646 GNUSTEP_SYSTEM_HEADERS
647 GNUSTEP_MAKEFILES
648 ns_appsrc
649 ns_appresdir
650 ns_appbindir
651 ns_appdir
652 opsysfile
653 machfile
654 X_TOOLKIT_TYPE
655 C_SWITCH_X_SITE
656 LD_SWITCH_X_SITE_AUX
657 LD_SWITCH_X_SITE
658 c_switch_machine
659 c_switch_system
660 gameuser
661 gamedir
662 bitmapdir
663 archlibdir
664 etcdir
665 x_default_search_path
666 lisppath
667 locallisppath
668 lispdir
669 srcdir
670 canonical
671 configuration
672 version
673 KRB4LIB
674 DESLIB
675 KRB5LIB
676 CRYPTOLIB
677 COM_ERRLIB
678 LIBRESOLV
679 LIBHESIOD
680 GETOPTOBJS
681 GETOPT_H
682 GETLOADAVG_LIBS
683 KMEM_GROUP
684 NEED_SETGID
685 LIBOBJS
686 LIBS_MAIL
687 liblockfile
688 ALLOCA
689 LIBGPM
690 LIBGIF
691 LIBTIFF
692 LIBPNG
693 LIBJPEG
694 LIBXPM
695 FREETYPE_LIBS
696 FREETYPE_CFLAGS
697 M17N_FLT_LIBS
698 M17N_FLT_CFLAGS
699 LIBOTF_LIBS
700 LIBOTF_CFLAGS
701 XFT_LIBS
702 XFT_CFLAGS
703 FONTCONFIG_LIBS
704 FONTCONFIG_CFLAGS
705 GCONF_LIBS
706 GCONF_CFLAGS
707 DBUS_LIBS
708 DBUS_CFLAGS
709 GTK_LIBS
710 GTK_CFLAGS
711 IMAGEMAGICK_LIBS
712 IMAGEMAGICK_CFLAGS
713 RSVG_LIBS
714 RSVG_CFLAGS
715 HAVE_XSERVER
716 XMKMF
717 SET_MAKE
718 CFLAGS_SOUND
719 ALSA_LIBS
720 ALSA_CFLAGS
721 PKG_CONFIG
722 LIBSOUND
723 MAKEINFO
724 GZIP_PROG
725 INSTALL_INFO
726 RANLIB
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 LN_S
731 EGREP
732 GREP
734 OBJEXT
735 EXEEXT
736 ac_ct_CC
737 CPPFLAGS
738 LDFLAGS
739 CFLAGS
741 host_os
742 host_vendor
743 host_cpu
744 host
745 build_os
746 build_vendor
747 build_cpu
748 build
749 MAINT
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_BUGREPORT
781 PACKAGE_STRING
782 PACKAGE_VERSION
783 PACKAGE_TARNAME
784 PACKAGE_NAME
785 PATH_SEPARATOR
786 SHELL'
787 ac_subst_files=''
788 ac_user_opts='
789 enable_option_checking
790 with_pop
791 with_kerberos
792 with_kerberos5
793 with_hesiod
794 with_mmdf
795 with_mail_unlink
796 with_mailhost
797 with_sound
798 with_sync_input
799 with_x_toolkit
800 with_xpm
801 with_jpeg
802 with_tiff
803 with_gif
804 with_png
805 with_rsvg
806 with_imagemagick
807 with_xft
808 with_libotf
809 with_m17n_flt
810 with_toolkit_scroll_bars
811 with_xaw3d
812 with_xim
813 with_ns
814 with_gpm
815 with_dbus
816 with_gconf
817 with_makeinfo
818 with_gtk
819 with_gcc
820 with_pkg_config_prog
821 with_gnustep_conf
822 enable_ns_self_contained
823 enable_asserts
824 enable_maintainer_mode
825 enable_locallisppath
826 enable_checking
827 enable_profiling
828 enable_autodepend
829 enable_largefile
830 with_x
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
841 XMKMF'
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
892 ac_prev=
893 ac_dashdash=
894 for ac_option
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
903 case $ac_option in
904 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *) ac_optarg=yes ;;
906 esac
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
912 ac_dashdash=yes ;;
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
931 --config-cache | -C)
932 cache_file=config.cache ;;
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
951 { (exit 1); exit 1; }; }
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=no ;;
963 -docdir | --docdir | --docdi | --doc | --do)
964 ac_prev=docdir ;;
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 docdir=$ac_optarg ;;
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969 ac_prev=dvidir ;;
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 dvidir=$ac_optarg ;;
973 -enable-* | --enable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
978 { (exit 1); exit 1; }; }
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1183 { (exit 1); exit 1; }; }
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1230 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1231 Try \`$0 --help' for more information." >&2
1232 { (exit 1); exit 1; }; }
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1239 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240 { (exit 1); exit 1; }; }
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252 esac
1253 done
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1258 { (exit 1); exit 1; }; }
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1265 { (exit 1); exit 1; }; } ;;
1266 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 esac
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1278 case $ac_val in
1279 */ )
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1282 esac
1283 # Be sure to have absolute directory names.
1284 case $ac_val in
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 esac
1288 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289 { (exit 1); exit 1; }; }
1290 done
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304 If a cross compiler is detected then cross compile mode will be used." >&2
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313 test "$silent" = yes && exec 6>/dev/null
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1320 { (exit 1); exit 1; }; }
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1323 { (exit 1); exit 1; }; }
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1344 /^X\(\/\/\)$/{
1345 s//\1/
1348 /^X\(\/\).*/{
1349 s//\1/
1352 s/.*/./; q'`
1353 srcdir=$ac_confdir
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 srcdir=..
1357 else
1358 ac_srcdir_defaulted=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1363 { (exit 1); exit 1; }; }
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1368 { (exit 1); exit 1; }; }
1369 pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 srcdir=.
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1403 Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447 _ACEOF
1449 cat <<\_ACEOF
1451 Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456 X features:
1457 --x-includes=DIR X include files are in DIR
1458 --x-libraries=DIR X library files are in DIR
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 _ACEOF
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1469 esac
1470 cat <<\_ACEOF
1472 Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --disable-ns-self-contained
1477 disable self contained build under NeXTstep
1478 --enable-asserts compile code with asserts enabled
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful (and
1481 sometimes confusing) to the casual installer
1482 --enable-locallisppath=PATH
1483 directories Emacs should search for lisp files
1484 specific to this site
1485 --enable-checking[=LIST]
1486 enable expensive run-time checks. With LIST, enable
1487 only specific categories of checks. Categories are:
1488 all,yes,no. Flags are: stringbytes, stringoverrun,
1489 stringfreelist, xmallocoverrun, conslist
1490 --enable-profiling build emacs with profiling support. This might not
1491 work on all platforms
1492 --enable-autodepend automatically generate dependencies to .h-files.
1493 Requires GNU Make and Gcc. Enabled if GNU Make and
1494 Gcc is found
1495 --disable-largefile omit support for large files
1497 Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --without-pop don't support POP mail retrieval with movemail
1501 --with-kerberos support Kerberos-authenticated POP
1502 --with-kerberos5 support Kerberos version 5 authenticated POP
1503 --with-hesiod support Hesiod to get the POP server host
1504 --with-mmdf support MMDF mailboxes
1505 --with-mail-unlink unlink, rather than empty, mail spool after reading
1506 --with-mailhost=HOSTNAME
1507 string giving default POP mail host
1508 --without-sound don't compile with sound support
1509 --without-sync-input process async input synchronously
1510 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1511 athena, motif, no)
1512 --without-xpm don't compile with XPM image support
1513 --without-jpeg don't compile with JPEG image support
1514 --without-tiff don't compile with TIFF image support
1515 --without-gif don't compile with GIF image support
1516 --without-png don't compile with PNG image support
1517 --without-rsvg don't compile with SVG image support
1518 --with-imagemagick compile with ImageMagick image support
1519 --without-xft don't use XFT for anti aliased fonts
1520 --without-libotf don't use libotf for OpenType font support
1521 --without-m17n-flt don't use m17n-flt for text shaping
1522 --without-toolkit-scroll-bars
1523 don't use Motif or Xaw3d scroll bars
1524 --without-xaw3d don't use Xaw3d
1525 --without-xim don't use X11 XIM
1526 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1527 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1528 console
1529 --without-dbus don't compile with D-Bus support
1530 --without-gconf don't compile with GConf support
1531 --without-makeinfo don't require makeinfo for building manuals
1533 --with-pkg-config-prog=PATH
1534 path to pkg-config for finding GTK and librsvg
1535 --with-gnustep-conf=PATH
1536 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1537 or /etc/GNUstep/GNUstep.conf
1538 --with-x use the X Window System
1540 Some influential environment variables:
1541 CC C compiler command
1542 CFLAGS C compiler flags
1543 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1544 nonstandard directory <lib dir>
1545 LIBS libraries to pass to the linker, e.g. -l<library>
1546 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1547 you have headers in a nonstandard directory <include dir>
1548 CPP C preprocessor
1549 XMKMF Path to xmkmf, Makefile generator for X Window System
1551 Use these variables to override the choices made by `configure' or to help
1552 it to find libraries and programs with nonstandard names/locations.
1554 _ACEOF
1555 ac_status=$?
1558 if test "$ac_init_help" = "recursive"; then
1559 # If there are subdirs, report their specific --help.
1560 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561 test -d "$ac_dir" ||
1562 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563 continue
1564 ac_builddir=.
1566 case "$ac_dir" in
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575 esac ;;
1576 esac
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1582 case $srcdir in
1583 .) # We are building in place.
1584 ac_srcdir=.
1585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
1588 ac_srcdir=$srcdir$ac_dir_suffix;
1589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1591 *) # Relative name.
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 esac
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for guested configure.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1604 echo &&
1605 $SHELL "$ac_srcdir/configure" --help=recursive
1606 else
1607 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608 fi || ac_status=$?
1609 cd "$ac_pwd" || { ac_status=$?; break; }
1610 done
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1615 cat <<\_ACEOF
1616 emacs configure 24.0.50
1617 generated by GNU Autoconf 2.63
1619 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1620 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624 exit
1626 cat >config.log <<_ACEOF
1627 This file contains any messages produced by compilers while
1628 running configure, to aid debugging if configure makes a mistake.
1630 It was created by emacs $as_me 24.0.50, which was
1631 generated by GNU Autoconf 2.63. Invocation command line was
1633 $ $0 $@
1635 _ACEOF
1636 exec 5>>config.log
1638 cat <<_ASUNAME
1639 ## --------- ##
1640 ## Platform. ##
1641 ## --------- ##
1643 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1644 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1645 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1646 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1647 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1649 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1650 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1652 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1653 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1654 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1655 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1656 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1657 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1658 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1660 _ASUNAME
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 $as_echo "PATH: $as_dir"
1668 done
1669 IFS=$as_save_IFS
1671 } >&5
1673 cat >&5 <<_ACEOF
1676 ## ----------- ##
1677 ## Core tests. ##
1678 ## ----------- ##
1680 _ACEOF
1683 # Keep a trace of the command line.
1684 # Strip out --no-create and --no-recursion so they do not pile up.
1685 # Strip out --silent because we don't want to record it for future runs.
1686 # Also quote any args containing shell meta-characters.
1687 # Make two passes to allow for proper duplicate-argument suppression.
1688 ac_configure_args=
1689 ac_configure_args0=
1690 ac_configure_args1=
1691 ac_must_keep_next=false
1692 for ac_pass in 1 2
1694 for ac_arg
1696 case $ac_arg in
1697 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1699 | -silent | --silent | --silen | --sile | --sil)
1700 continue ;;
1701 *\'*)
1702 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1703 esac
1704 case $ac_pass in
1705 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1707 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1708 if test $ac_must_keep_next = true; then
1709 ac_must_keep_next=false # Got value, back to normal.
1710 else
1711 case $ac_arg in
1712 *=* | --config-cache | -C | -disable-* | --disable-* \
1713 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1714 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1715 | -with-* | --with-* | -without-* | --without-* | --x)
1716 case "$ac_configure_args0 " in
1717 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1718 esac
1720 -* ) ac_must_keep_next=true ;;
1721 esac
1723 ac_configure_args="$ac_configure_args '$ac_arg'"
1725 esac
1726 done
1727 done
1728 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1729 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1731 # When interrupted or exit'd, cleanup temporary files, and complete
1732 # config.log. We remove comments because anyway the quotes in there
1733 # would cause problems or look ugly.
1734 # WARNING: Use '\'' to represent an apostrophe within the trap.
1735 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1736 trap 'exit_status=$?
1737 # Save into config.log some information that might help in debugging.
1739 echo
1741 cat <<\_ASBOX
1742 ## ---------------- ##
1743 ## Cache variables. ##
1744 ## ---------------- ##
1745 _ASBOX
1746 echo
1747 # The following way of writing the cache mishandles newlines in values,
1749 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1750 eval ac_val=\$$ac_var
1751 case $ac_val in #(
1752 *${as_nl}*)
1753 case $ac_var in #(
1754 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1755 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1756 esac
1757 case $ac_var in #(
1758 _ | IFS | as_nl) ;; #(
1759 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1760 *) $as_unset $ac_var ;;
1761 esac ;;
1762 esac
1763 done
1764 (set) 2>&1 |
1765 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1766 *${as_nl}ac_space=\ *)
1767 sed -n \
1768 "s/'\''/'\''\\\\'\'''\''/g;
1769 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1770 ;; #(
1772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1774 esac |
1775 sort
1777 echo
1779 cat <<\_ASBOX
1780 ## ----------------- ##
1781 ## Output variables. ##
1782 ## ----------------- ##
1783 _ASBOX
1784 echo
1785 for ac_var in $ac_subst_vars
1787 eval ac_val=\$$ac_var
1788 case $ac_val in
1789 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790 esac
1791 $as_echo "$ac_var='\''$ac_val'\''"
1792 done | sort
1793 echo
1795 if test -n "$ac_subst_files"; then
1796 cat <<\_ASBOX
1797 ## ------------------- ##
1798 ## File substitutions. ##
1799 ## ------------------- ##
1800 _ASBOX
1801 echo
1802 for ac_var in $ac_subst_files
1804 eval ac_val=\$$ac_var
1805 case $ac_val in
1806 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 esac
1808 $as_echo "$ac_var='\''$ac_val'\''"
1809 done | sort
1810 echo
1813 if test -s confdefs.h; then
1814 cat <<\_ASBOX
1815 ## ----------- ##
1816 ## confdefs.h. ##
1817 ## ----------- ##
1818 _ASBOX
1819 echo
1820 cat confdefs.h
1821 echo
1823 test "$ac_signal" != 0 &&
1824 $as_echo "$as_me: caught signal $ac_signal"
1825 $as_echo "$as_me: exit $exit_status"
1826 } >&5
1827 rm -f core *.core core.conftest.* &&
1828 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1829 exit $exit_status
1831 for ac_signal in 1 2 13 15; do
1832 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1833 done
1834 ac_signal=0
1836 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1837 rm -f -r conftest* confdefs.h
1839 # Predefined preprocessor variables.
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_NAME "$PACKAGE_NAME"
1843 _ACEOF
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1848 _ACEOF
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1853 _ACEOF
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_STRING "$PACKAGE_STRING"
1858 _ACEOF
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1863 _ACEOF
1866 # Let the site file select an alternate cache file if it wants to.
1867 # Prefer an explicitly selected file to automatically selected ones.
1868 ac_site_file1=NONE
1869 ac_site_file2=NONE
1870 if test -n "$CONFIG_SITE"; then
1871 ac_site_file1=$CONFIG_SITE
1872 elif test "x$prefix" != xNONE; then
1873 ac_site_file1=$prefix/share/config.site
1874 ac_site_file2=$prefix/etc/config.site
1875 else
1876 ac_site_file1=$ac_default_prefix/share/config.site
1877 ac_site_file2=$ac_default_prefix/etc/config.site
1879 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1881 test "x$ac_site_file" = xNONE && continue
1882 if test -r "$ac_site_file"; then
1883 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1884 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1885 sed 's/^/| /' "$ac_site_file" >&5
1886 . "$ac_site_file"
1888 done
1890 if test -r "$cache_file"; then
1891 # Some versions of bash will fail to source /dev/null (special
1892 # files actually), so we avoid doing that.
1893 if test -f "$cache_file"; then
1894 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1895 $as_echo "$as_me: loading cache $cache_file" >&6;}
1896 case $cache_file in
1897 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1898 *) . "./$cache_file";;
1899 esac
1901 else
1902 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1903 $as_echo "$as_me: creating cache $cache_file" >&6;}
1904 >$cache_file
1907 ac_header_list="$ac_header_list sys/time.h"
1908 ac_header_list="$ac_header_list unistd.h"
1909 ac_func_list="$ac_func_list alarm"
1910 # Check that the precious variables saved in the cache have kept the same
1911 # value.
1912 ac_cache_corrupted=false
1913 for ac_var in $ac_precious_vars; do
1914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1915 eval ac_new_set=\$ac_env_${ac_var}_set
1916 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917 eval ac_new_val=\$ac_env_${ac_var}_value
1918 case $ac_old_set,$ac_new_set in
1919 set,)
1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1921 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1923 ,set)
1924 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1925 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1926 ac_cache_corrupted=: ;;
1927 ,);;
1929 if test "x$ac_old_val" != "x$ac_new_val"; then
1930 # differences in whitespace do not lead to failure.
1931 ac_old_val_w=`echo x $ac_old_val`
1932 ac_new_val_w=`echo x $ac_new_val`
1933 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1934 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1935 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1936 ac_cache_corrupted=:
1937 else
1938 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1939 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1940 eval $ac_var=\$ac_old_val
1942 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1943 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1944 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1945 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1946 fi;;
1947 esac
1948 # Pass precious variables to config.status.
1949 if test "$ac_new_set" = set; then
1950 case $ac_new_val in
1951 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1952 *) ac_arg=$ac_var=$ac_new_val ;;
1953 esac
1954 case " $ac_configure_args " in
1955 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1956 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1957 esac
1959 done
1960 if $ac_cache_corrupted; then
1961 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1963 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1967 { (exit 1); exit 1; }; }
1994 ac_ext=c
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2005 test "$program_prefix" != NONE &&
2006 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2007 # Use a double $ so make ignores it.
2008 test "$program_suffix" != NONE &&
2009 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2010 # Double any \ or $.
2011 # By default was `s,x,x', remove it if useless.
2012 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2013 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2016 lispdir='${datadir}/emacs/${version}/lisp'
2017 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2018 '${datadir}/emacs/site-lisp'
2019 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2020 etcdir='${datadir}/emacs/${version}/etc'
2021 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2022 docdir='${datadir}/emacs/${version}/etc'
2023 gamedir='${localstatedir}/games/emacs'
2025 gameuser=games
2030 # Check whether --with-pop was given.
2031 if test "${with_pop+set}" = set; then
2032 withval=$with_pop;
2033 else
2034 with_pop=yes
2037 if test "$with_pop" = yes; then
2038 cat >>confdefs.h <<\_ACEOF
2039 #define MAIL_USE_POP 1
2040 _ACEOF
2046 # Check whether --with-kerberos was given.
2047 if test "${with_kerberos+set}" = set; then
2048 withval=$with_kerberos;
2049 else
2050 with_kerberos=no
2053 if test "$with_kerberos" != no; then
2054 cat >>confdefs.h <<\_ACEOF
2055 #define KERBEROS 1
2056 _ACEOF
2062 # Check whether --with-kerberos5 was given.
2063 if test "${with_kerberos5+set}" = set; then
2064 withval=$with_kerberos5;
2065 else
2066 with_kerberos5=no
2069 if test "${with_kerberos5}" != no; then
2070 if test "${with_kerberos}" = no; then
2071 with_kerberos=yes
2072 cat >>confdefs.h <<\_ACEOF
2073 #define KERBEROS 1
2074 _ACEOF
2078 cat >>confdefs.h <<\_ACEOF
2079 #define KERBEROS5 1
2080 _ACEOF
2085 # Check whether --with-hesiod was given.
2086 if test "${with_hesiod+set}" = set; then
2087 withval=$with_hesiod;
2088 else
2089 with_hesiod=no
2092 if test "$with_hesiod" != no; then
2094 cat >>confdefs.h <<\_ACEOF
2095 #define HESIOD 1
2096 _ACEOF
2101 # Check whether --with-mmdf was given.
2102 if test "${with_mmdf+set}" = set; then
2103 withval=$with_mmdf;
2104 else
2105 with_mmdf=no
2108 if test "$with_mmdf" != no; then
2110 cat >>confdefs.h <<\_ACEOF
2111 #define MAIL_USE_MMDF 1
2112 _ACEOF
2117 # Check whether --with-mail-unlink was given.
2118 if test "${with_mail_unlink+set}" = set; then
2119 withval=$with_mail_unlink;
2120 else
2121 with_mail_unlink=no
2124 if test "$with_mail_unlink" != no; then
2126 cat >>confdefs.h <<\_ACEOF
2127 #define MAIL_UNLINK_SPOOL 1
2128 _ACEOF
2133 # Check whether --with-mailhost was given.
2134 if test "${with_mailhost+set}" = set; then
2135 withval=$with_mailhost;
2136 cat >>confdefs.h <<_ACEOF
2137 #define MAILHOST "$withval"
2138 _ACEOF
2144 # Check whether --with-sound was given.
2145 if test "${with_sound+set}" = set; then
2146 withval=$with_sound;
2147 else
2148 with_sound=yes
2153 # Check whether --with-sync-input was given.
2154 if test "${with_sync_input+set}" = set; then
2155 withval=$with_sync_input;
2156 else
2157 with_sync_input=yes
2160 if test "$with_sync_input" = yes; then
2162 cat >>confdefs.h <<\_ACEOF
2163 #define SYNC_INPUT 1
2164 _ACEOF
2169 # Check whether --with-x-toolkit was given.
2170 if test "${with_x_toolkit+set}" = set; then
2171 withval=$with_x_toolkit; case "${withval}" in
2172 y | ye | yes ) val=gtk ;;
2173 n | no ) val=no ;;
2174 l | lu | luc | luci | lucid ) val=lucid ;;
2175 a | at | ath | athe | athen | athena ) val=athena ;;
2176 m | mo | mot | moti | motif ) val=motif ;;
2177 g | gt | gtk ) val=gtk ;;
2179 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2180 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2181 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2182 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2183 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2184 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2185 { (exit 1); exit 1; }; }
2187 esac
2188 with_x_toolkit=$val
2194 # Check whether --with-xpm was given.
2195 if test "${with_xpm+set}" = set; then
2196 withval=$with_xpm;
2197 else
2198 with_xpm=yes
2202 # Check whether --with-jpeg was given.
2203 if test "${with_jpeg+set}" = set; then
2204 withval=$with_jpeg;
2205 else
2206 with_jpeg=yes
2210 # Check whether --with-tiff was given.
2211 if test "${with_tiff+set}" = set; then
2212 withval=$with_tiff;
2213 else
2214 with_tiff=yes
2218 # Check whether --with-gif was given.
2219 if test "${with_gif+set}" = set; then
2220 withval=$with_gif;
2221 else
2222 with_gif=yes
2226 # Check whether --with-png was given.
2227 if test "${with_png+set}" = set; then
2228 withval=$with_png;
2229 else
2230 with_png=yes
2234 # Check whether --with-rsvg was given.
2235 if test "${with_rsvg+set}" = set; then
2236 withval=$with_rsvg;
2237 else
2238 with_rsvg=yes
2242 # Check whether --with-imagemagick was given.
2243 if test "${with_imagemagick+set}" = set; then
2244 withval=$with_imagemagick;
2245 else
2246 with_imagemagick=no
2251 # Check whether --with-xft was given.
2252 if test "${with_xft+set}" = set; then
2253 withval=$with_xft;
2254 else
2255 with_xft=yes
2259 # Check whether --with-libotf was given.
2260 if test "${with_libotf+set}" = set; then
2261 withval=$with_libotf;
2262 else
2263 with_libotf=yes
2267 # Check whether --with-m17n-flt was given.
2268 if test "${with_m17n_flt+set}" = set; then
2269 withval=$with_m17n_flt;
2270 else
2271 with_m17n_flt=yes
2276 # Check whether --with-toolkit-scroll-bars was given.
2277 if test "${with_toolkit_scroll_bars+set}" = set; then
2278 withval=$with_toolkit_scroll_bars;
2279 else
2280 with_toolkit_scroll_bars=yes
2284 # Check whether --with-xaw3d was given.
2285 if test "${with_xaw3d+set}" = set; then
2286 withval=$with_xaw3d;
2287 else
2288 with_xaw3d=yes
2292 # Check whether --with-xim was given.
2293 if test "${with_xim+set}" = set; then
2294 withval=$with_xim;
2295 else
2296 with_xim=yes
2300 # Check whether --with-ns was given.
2301 if test "${with_ns+set}" = set; then
2302 withval=$with_ns;
2303 else
2304 with_ns=no
2309 # Check whether --with-gpm was given.
2310 if test "${with_gpm+set}" = set; then
2311 withval=$with_gpm;
2312 else
2313 with_gpm=yes
2317 # Check whether --with-dbus was given.
2318 if test "${with_dbus+set}" = set; then
2319 withval=$with_dbus;
2320 else
2321 with_dbus=yes
2325 # Check whether --with-gconf was given.
2326 if test "${with_gconf+set}" = set; then
2327 withval=$with_gconf;
2328 else
2329 with_gconf=yes
2333 ## For the times when you want to build Emacs but don't have
2334 ## a suitable makeinfo, and can live without the manuals.
2336 # Check whether --with-makeinfo was given.
2337 if test "${with_makeinfo+set}" = set; then
2338 withval=$with_makeinfo;
2339 else
2340 with_makeinfo=yes
2345 # Check whether --with-gtk was given.
2346 if test "${with_gtk+set}" = set; then
2347 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2348 specify a toolkit." >&5
2349 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2350 specify a toolkit." >&2;}
2351 { (exit 1); exit 1; }; }
2356 # Check whether --with-gcc was given.
2357 if test "${with_gcc+set}" = set; then
2358 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2359 variable to specify a compiler." >&5
2360 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2361 variable to specify a compiler." >&2;}
2362 { (exit 1); exit 1; }; }
2367 # Check whether --with-pkg-config-prog was given.
2368 if test "${with_pkg_config_prog+set}" = set; then
2369 withval=$with_pkg_config_prog;
2372 if test "X${with_pkg_config_prog}" != X; then
2373 if test "${with_pkg_config_prog}" != yes; then
2374 PKG_CONFIG="${with_pkg_config_prog}"
2379 # Check whether --with-gnustep-conf was given.
2380 if test "${with_gnustep_conf+set}" = set; then
2381 withval=$with_gnustep_conf;
2384 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2385 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2386 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2387 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2389 # Check whether --enable-ns-self-contained was given.
2390 if test "${enable_ns_self_contained+set}" = set; then
2391 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2392 else
2393 EN_NS_SELF_CONTAINED=yes
2397 # Check whether --enable-asserts was given.
2398 if test "${enable_asserts+set}" = set; then
2399 enableval=$enable_asserts; USE_XASSERTS=$enableval
2400 else
2401 USE_XASSERTS=no
2405 # Check whether --enable-maintainer-mode was given.
2406 if test "${enable_maintainer_mode+set}" = set; then
2407 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2408 else
2409 USE_MAINTAINER_MODE=no
2412 if test $USE_MAINTAINER_MODE = yes; then
2413 MAINT=
2414 else
2415 MAINT=#
2419 # Check whether --enable-locallisppath was given.
2420 if test "${enable_locallisppath+set}" = set; then
2421 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2422 locallisppath=
2423 elif test "${enableval}" != "yes"; then
2424 locallisppath=${enableval}
2429 # Check whether --enable-checking was given.
2430 if test "${enable_checking+set}" = set; then
2431 enableval=$enable_checking; ac_checking_flags="${enableval}"
2434 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2435 for check in $ac_checking_flags
2437 case $check in
2438 # these set all the flags to specific states
2439 yes) ac_enable_checking=1 ;;
2440 no) ac_enable_checking= ;
2441 ac_gc_check_stringbytes= ;
2442 ac_gc_check_string_overrun= ;
2443 ac_gc_check_string_free_list= ;
2444 ac_xmalloc_overrun= ;
2445 ac_gc_check_cons_list= ;;
2446 all) ac_enable_checking=1 ;
2447 ac_gc_check_stringbytes=1 ;
2448 ac_gc_check_string_overrun=1 ;
2449 ac_gc_check_string_free_list=1 ;
2450 ac_xmalloc_overrun=1 ;
2451 ac_gc_check_cons_list=1 ;;
2452 # these enable particular checks
2453 stringbytes) ac_gc_check_stringbytes=1 ;;
2454 stringoverrun) ac_gc_check_string_overrun=1 ;;
2455 stringfreelist) ac_gc_check_string_free_list=1 ;;
2456 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2457 conslist) ac_gc_check_cons_list=1 ;;
2458 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2459 $as_echo "$as_me: error: unknown check category $check" >&2;}
2460 { (exit 1); exit 1; }; } ;;
2461 esac
2462 done
2463 IFS="$ac_save_IFS"
2465 if test x$ac_enable_checking != x ; then
2467 cat >>confdefs.h <<\_ACEOF
2468 #define ENABLE_CHECKING 1
2469 _ACEOF
2472 if test x$ac_gc_check_stringbytes != x ; then
2474 cat >>confdefs.h <<\_ACEOF
2475 #define GC_CHECK_STRING_BYTES 1
2476 _ACEOF
2479 if test x$ac_gc_check_stringoverrun != x ; then
2481 cat >>confdefs.h <<\_ACEOF
2482 #define GC_CHECK_STRING_OVERRUN 1
2483 _ACEOF
2486 if test x$ac_gc_check_string_free_list != x ; then
2488 cat >>confdefs.h <<\_ACEOF
2489 #define GC_CHECK_STRING_FREE_LIST 1
2490 _ACEOF
2493 if test x$ac_xmalloc_overrun != x ; then
2495 cat >>confdefs.h <<\_ACEOF
2496 #define XMALLOC_OVERRUN_CHECK 1
2497 _ACEOF
2500 if test x$ac_gc_check_cons_list != x ; then
2502 cat >>confdefs.h <<\_ACEOF
2503 #define GC_CHECK_CONS_LIST 1
2504 _ACEOF
2508 # Check whether --enable-profiling was given.
2509 if test "${enable_profiling+set}" = set; then
2510 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2513 if test x$ac_enable_profiling != x ; then
2514 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2515 PROFILING_LDFLAGS="-pg"
2516 else
2517 PROFILING_CFLAGS=
2518 PROFILING_LDFLAGS=
2521 # Check whether --enable-autodepend was given.
2522 if test "${enable_autodepend+set}" = set; then
2523 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2524 else
2525 ac_enable_autodepend=yes
2529 #### Make srcdir absolute, if it isn't already. It's important to
2530 #### avoid running the path through pwd unnecessarily, since pwd can
2531 #### give you automounter prefixes, which can go away. We do all this
2532 #### so Emacs can find its files when run uninstalled.
2533 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2534 unset CDPATH
2535 case "${srcdir}" in
2536 /* ) ;;
2538 ## We may be able to use the $PWD environment variable to make this
2539 ## absolute. But sometimes PWD is inaccurate.
2540 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2541 ## but that tested only for a well-formed and valid PWD,
2542 ## it did not object when PWD was well-formed and valid but just wrong.
2543 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2544 then
2545 srcdir="$PWD"
2546 else
2547 srcdir="`(cd ${srcdir}; pwd)`"
2550 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2551 esac
2553 #### Check if the source directory already has a configured system in it.
2554 if test `pwd` != `(cd ${srcdir} && pwd)` \
2555 && test -f "${srcdir}/src/config.h" ; then
2556 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2557 as a build directory right now; it has been configured in its own
2558 right. To configure in another directory as well, you MUST
2559 use GNU make. If you do not have GNU make, then you must
2560 now do \`make distclean' in ${srcdir},
2561 and then run $0 again." >&5
2562 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2563 as a build directory right now; it has been configured in its own
2564 right. To configure in another directory as well, you MUST
2565 use GNU make. If you do not have GNU make, then you must
2566 now do \`make distclean' in ${srcdir},
2567 and then run $0 again." >&2;}
2570 #### Given the configuration name, set machfile and opsysfile to the
2571 #### names of the m/*.h and s/*.h files we should use.
2573 ### Canonicalize the configuration name.
2575 ac_aux_dir=
2576 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2577 if test -f "$ac_dir/install-sh"; then
2578 ac_aux_dir=$ac_dir
2579 ac_install_sh="$ac_aux_dir/install-sh -c"
2580 break
2581 elif test -f "$ac_dir/install.sh"; then
2582 ac_aux_dir=$ac_dir
2583 ac_install_sh="$ac_aux_dir/install.sh -c"
2584 break
2585 elif test -f "$ac_dir/shtool"; then
2586 ac_aux_dir=$ac_dir
2587 ac_install_sh="$ac_aux_dir/shtool install -c"
2588 break
2590 done
2591 if test -z "$ac_aux_dir"; then
2592 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2593 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2594 { (exit 1); exit 1; }; }
2597 # These three variables are undocumented and unsupported,
2598 # and are intended to be withdrawn in a future Autoconf release.
2599 # They can cause serious problems if a builder's source tree is in a directory
2600 # whose full name contains unusual characters.
2601 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2602 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2603 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2606 # Make sure we can run config.sub.
2607 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2608 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2609 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2610 { (exit 1); exit 1; }; }
2612 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2613 $as_echo_n "checking build system type... " >&6; }
2614 if test "${ac_cv_build+set}" = set; then
2615 $as_echo_n "(cached) " >&6
2616 else
2617 ac_build_alias=$build_alias
2618 test "x$ac_build_alias" = x &&
2619 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2620 test "x$ac_build_alias" = x &&
2621 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2622 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2623 { (exit 1); exit 1; }; }
2624 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2625 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2626 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2627 { (exit 1); exit 1; }; }
2630 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2631 $as_echo "$ac_cv_build" >&6; }
2632 case $ac_cv_build in
2633 *-*-*) ;;
2634 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2635 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2636 { (exit 1); exit 1; }; };;
2637 esac
2638 build=$ac_cv_build
2639 ac_save_IFS=$IFS; IFS='-'
2640 set x $ac_cv_build
2641 shift
2642 build_cpu=$1
2643 build_vendor=$2
2644 shift; shift
2645 # Remember, the first character of IFS is used to create $*,
2646 # except with old shells:
2647 build_os=$*
2648 IFS=$ac_save_IFS
2649 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2652 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2653 $as_echo_n "checking host system type... " >&6; }
2654 if test "${ac_cv_host+set}" = set; then
2655 $as_echo_n "(cached) " >&6
2656 else
2657 if test "x$host_alias" = x; then
2658 ac_cv_host=$ac_cv_build
2659 else
2660 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2661 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2662 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2663 { (exit 1); exit 1; }; }
2667 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2668 $as_echo "$ac_cv_host" >&6; }
2669 case $ac_cv_host in
2670 *-*-*) ;;
2671 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2672 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2673 { (exit 1); exit 1; }; };;
2674 esac
2675 host=$ac_cv_host
2676 ac_save_IFS=$IFS; IFS='-'
2677 set x $ac_cv_host
2678 shift
2679 host_cpu=$1
2680 host_vendor=$2
2681 shift; shift
2682 # Remember, the first character of IFS is used to create $*,
2683 # except with old shells:
2684 host_os=$*
2685 IFS=$ac_save_IFS
2686 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2689 canonical=$host
2690 configuration=${host_alias-${build_alias-$host}}
2694 ### If you add support for a new configuration, add code to this
2695 ### switch statement to recognize your configuration name and select
2696 ### the appropriate operating system and machine description files.
2698 ### You would hope that you could choose an m/*.h file pretty much
2699 ### based on the machine portion of the configuration name, and an s-
2700 ### file based on the operating system portion. However, it turns out
2701 ### that each m/*.h file is pretty manufacturer-specific - for
2702 ### example mips.h is MIPS
2703 ### So we basically have to have a special case for each
2704 ### configuration name.
2706 ### As far as handling version numbers on operating systems is
2707 ### concerned, make sure things will fail in a fixable way. If
2708 ### /etc/MACHINES doesn't say anything about version numbers, be
2709 ### prepared to handle anything reasonably. If version numbers
2710 ### matter, be sure /etc/MACHINES says something about it.
2712 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2713 ### "System V Release 4"; he writes, "The old convention encouraged
2714 ### confusion between `system' and `release' levels'."
2716 machine='' opsys='' unported=no
2717 case "${canonical}" in
2719 ## FreeBSD ports
2720 *-*-freebsd* )
2721 opsys=freebsd
2722 case "${canonical}" in
2723 alpha*-*-freebsd*) machine=alpha ;;
2724 arm*-*-freebsd*) machine=arm ;;
2725 ia64-*-freebsd*) machine=ia64 ;;
2726 sparc-*-freebsd*) machine=sparc ;;
2727 sparc64-*-freebsd*) machine=sparc ;;
2728 powerpc-*-freebsd*) machine=macppc ;;
2729 i[3456]86-*-freebsd*) machine=intel386 ;;
2730 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2731 esac
2734 ## FreeBSD kernel + glibc based userland
2735 *-*-kfreebsd*gnu* )
2736 opsys=gnu-kfreebsd
2737 case "${canonical}" in
2738 alpha*-*-kfreebsd*) machine=alpha ;;
2739 ia64-*-kfreebsd*) machine=ia64 ;;
2740 sparc-*-kfreebsd*) machine=sparc ;;
2741 sparc64-*-kfreebsd*) machine=sparc ;;
2742 powerpc-*-kfreebsd*) machine=macppc ;;
2743 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2744 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2745 esac
2748 ## NetBSD ports
2749 *-*-netbsd* )
2750 opsys=netbsd
2751 if test -f /usr/lib/crti.o; then
2753 cat >>confdefs.h <<\_ACEOF
2754 #define HAVE_CRTIN /**/
2755 _ACEOF
2759 case "${canonical}" in
2760 alpha*-*-netbsd*) machine=alpha ;;
2761 i[3456]86-*-netbsd*) machine=intel386 ;;
2762 mips-*-netbsd*) machine=mips ;;
2763 mipsel-*-netbsd*) machine=mips ;;
2764 mipseb-*-netbsd*) machine=mips ;;
2765 powerpc-*-netbsd*) machine=macppc ;;
2766 sparc*-*-netbsd*) machine=sparc ;;
2767 vax-*-netbsd*) machine=vax ;;
2768 arm-*-netbsd*) machine=arm ;;
2769 x86_64-*-netbsd*) machine=amdx86-64 ;;
2770 hppa-*-netbsd*) machine=hp800 ;;
2771 m68k-*-netbsd*) machine=m68k ;;
2772 esac
2775 ## OpenBSD ports
2776 *-*-openbsd* )
2777 opsys=openbsd
2778 case "${canonical}" in
2779 alpha*-*-openbsd*) machine=alpha ;;
2780 arm-*-openbsd*) machine=arm ;;
2781 i386-*-openbsd*) machine=intel386 ;;
2782 powerpc-*-openbsd*) machine=macppc ;;
2783 sparc*-*-openbsd*) machine=sparc ;;
2784 vax-*-openbsd*) machine=vax ;;
2785 x86_64-*-openbsd*) machine=amdx86-64 ;;
2786 hppa-*-openbsd*) machine=hp800 ;;
2787 esac
2790 alpha*-*-linux-gnu* )
2791 machine=alpha opsys=gnu-linux
2794 arm*-*-linux-gnu* )
2795 machine=arm opsys=gnu-linux
2798 ## Apple Darwin / Mac OS X
2799 *-apple-darwin* )
2800 case "${canonical}" in
2801 i[3456]86-* ) machine=intel386 ;;
2802 powerpc-* ) machine=macppc ;;
2803 x86_64-* ) machine=amdx86-64 ;;
2804 * ) unported=yes ;;
2805 esac
2806 opsys=darwin
2807 # Define CPP as follows to make autoconf work correctly.
2808 CPP="${CC-cc} -E -no-cpp-precomp"
2809 # Use fink packages if available.
2810 if test -d /sw/include && test -d /sw/lib; then
2811 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2812 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2813 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2817 ## HP 9000 series 700 and 800, running HP/UX
2818 hppa*-hp-hpux10.2* )
2819 machine=hp800 opsys=hpux10-20
2821 hppa*-hp-hpux1[1-9]* )
2822 machine=hp800 opsys=hpux11
2823 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2826 hppa*-*-linux-gnu* )
2827 machine=hp800 opsys=gnu-linux
2830 ## IBM machines
2831 s390-*-linux-gnu* )
2832 machine=ibms390 opsys=gnu-linux
2834 s390x-*-linux-gnu* )
2835 machine=ibms390x opsys=gnu-linux
2837 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2838 machine=ibmrs6000 opsys=aix4-2
2840 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2841 machine=ibmrs6000 opsys=aix4-2
2843 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2844 machine=ibmrs6000 opsys=aix4-2
2846 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2847 machine=ibmrs6000 opsys=aix4-2
2850 ## Macintosh PowerPC
2851 powerpc*-*-linux-gnu* )
2852 machine=macppc opsys=gnu-linux
2855 ## Silicon Graphics machines
2856 ## Iris 4D
2857 mips-sgi-irix6.5 )
2858 machine=iris4d opsys=irix6-5
2859 # Without defining _LANGUAGE_C, things get masked out in the headers
2860 # so that, for instance, grepping for `free' in stdlib.h fails and
2861 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2862 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2863 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2866 ## Suns
2867 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2868 machine=sparc opsys=gnu-linux
2871 *-sun-solaris* \
2872 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2873 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2874 case "${canonical}" in
2875 i[3456]86-*-* ) machine=intel386 ;;
2876 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2877 sparc* ) machine=sparc ;;
2878 * ) unported=yes ;;
2879 esac
2880 case "${canonical}" in
2881 *-sunos5.6* | *-solaris2.6* )
2882 opsys=sol2-6
2883 NON_GNU_CPP=/usr/ccs/lib/cpp
2884 RANLIB="ar -ts"
2886 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2887 opsys=sol2-6
2888 emacs_check_sunpro_c=yes
2889 NON_GNU_CPP=/usr/ccs/lib/cpp
2891 *-sunos5* | *-solaris* )
2892 opsys=sol2-10
2893 emacs_check_sunpro_c=yes
2894 NON_GNU_CPP=/usr/ccs/lib/cpp
2896 esac
2897 ## Watch out for a compiler that we know will not work.
2898 case "${canonical}" in
2899 *-solaris* | *-sunos5* )
2900 if [ "x$CC" = x/usr/ucb/cc ]; then
2901 ## /usr/ucb/cc doesn't work;
2902 ## we should find some other compiler that does work.
2903 unset CC
2906 *) ;;
2907 esac
2910 ## IA-64
2911 ia64*-*-linux* )
2912 machine=ia64 opsys=gnu-linux
2915 ## Intel 386 machines where we don't care about the manufacturer
2916 i[3456]86-*-* )
2917 machine=intel386
2918 case "${canonical}" in
2919 *-cygwin ) opsys=cygwin ;;
2920 *-darwin* ) opsys=darwin
2921 CPP="${CC-cc} -E -no-cpp-precomp"
2923 *-linux-gnu* ) opsys=gnu-linux ;;
2924 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2925 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2926 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2927 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2928 esac
2931 ## m68k Linux-based GNU system
2932 m68k-*-linux-gnu* )
2933 machine=m68k opsys=gnu-linux
2936 ## Mips Linux-based GNU system
2937 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2938 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2939 machine=mips opsys=gnu-linux
2942 ## AMD x86-64 Linux-based GNU system
2943 x86_64-*-linux-gnu* )
2944 machine=amdx86-64 opsys=gnu-linux
2947 ## Tensilica Xtensa Linux-based GNU system
2948 xtensa*-*-linux-gnu* )
2949 machine=xtensa opsys=gnu-linux
2952 ## SuperH Linux-based GNU system
2953 sh[34]*-*-linux-gnu* )
2954 machine=sh3 opsys=gnu-linux
2958 unported=yes
2960 esac
2962 ### If the code above didn't choose an operating system, just choose
2963 ### an operating system based on the configuration name. You really
2964 ### only want to use this when you have no idea what the right
2965 ### operating system is; if you know what operating systems a machine
2966 ### runs, it's cleaner to make it explicit in the case statement
2967 ### above.
2968 if test x"${opsys}" = x; then
2969 case "${canonical}" in
2970 *-gnu* ) opsys=gnu ;;
2972 unported=yes
2974 esac
2979 if test $unported = yes; then
2980 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2981 Check \`etc/MACHINES' for recognized configuration names." >&5
2982 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2983 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2984 { (exit 1); exit 1; }; }
2987 machfile="m/${machine}.h"
2988 opsysfile="s/${opsys}.h"
2991 #### Choose a compiler.
2992 test -n "$CC" && cc_specified=yes
2994 # Save the value of CFLAGS that the user specified.
2995 SPECIFIED_CFLAGS="$CFLAGS"
2997 ac_ext=c
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002 if test -n "$ac_tool_prefix"; then
3003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3005 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if test "${ac_cv_prog_CC+set}" = set; then
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3021 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 break 2
3024 done
3025 done
3026 IFS=$as_save_IFS
3030 CC=$ac_cv_prog_CC
3031 if test -n "$CC"; then
3032 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3033 $as_echo "$CC" >&6; }
3034 else
3035 { $as_echo "$as_me:$LINENO: result: no" >&5
3036 $as_echo "no" >&6; }
3041 if test -z "$ac_cv_prog_CC"; then
3042 ac_ct_CC=$CC
3043 # Extract the first word of "gcc", so it can be a program name with args.
3044 set dummy gcc; ac_word=$2
3045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3048 $as_echo_n "(cached) " >&6
3049 else
3050 if test -n "$ac_ct_CC"; then
3051 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_ac_ct_CC="gcc"
3061 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 break 2
3064 done
3065 done
3066 IFS=$as_save_IFS
3070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3071 if test -n "$ac_ct_CC"; then
3072 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3073 $as_echo "$ac_ct_CC" >&6; }
3074 else
3075 { $as_echo "$as_me:$LINENO: result: no" >&5
3076 $as_echo "no" >&6; }
3079 if test "x$ac_ct_CC" = x; then
3080 CC=""
3081 else
3082 case $cross_compiling:$ac_tool_warned in
3083 yes:)
3084 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3086 ac_tool_warned=yes ;;
3087 esac
3088 CC=$ac_ct_CC
3090 else
3091 CC="$ac_cv_prog_CC"
3094 if test -z "$CC"; then
3095 if test -n "$ac_tool_prefix"; then
3096 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3097 set dummy ${ac_tool_prefix}cc; ac_word=$2
3098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_CC+set}" = set; then
3101 $as_echo_n "(cached) " >&6
3102 else
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_CC="${ac_tool_prefix}cc"
3114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3117 done
3118 done
3119 IFS=$as_save_IFS
3123 CC=$ac_cv_prog_CC
3124 if test -n "$CC"; then
3125 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3126 $as_echo "$CC" >&6; }
3127 else
3128 { $as_echo "$as_me:$LINENO: result: no" >&5
3129 $as_echo "no" >&6; }
3135 if test -z "$CC"; then
3136 # Extract the first word of "cc", so it can be a program name with args.
3137 set dummy cc; ac_word=$2
3138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if test "${ac_cv_prog_CC+set}" = set; then
3141 $as_echo_n "(cached) " >&6
3142 else
3143 if test -n "$CC"; then
3144 ac_cv_prog_CC="$CC" # Let the user override the test.
3145 else
3146 ac_prog_rejected=no
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3155 ac_prog_rejected=yes
3156 continue
3158 ac_cv_prog_CC="cc"
3159 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 break 2
3162 done
3163 done
3164 IFS=$as_save_IFS
3166 if test $ac_prog_rejected = yes; then
3167 # We found a bogon in the path, so make sure we never use it.
3168 set dummy $ac_cv_prog_CC
3169 shift
3170 if test $# != 0; then
3171 # We chose a different compiler from the bogus one.
3172 # However, it has the same basename, so the bogon will be chosen
3173 # first if we set CC to just the basename; use the full file name.
3174 shift
3175 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3180 CC=$ac_cv_prog_CC
3181 if test -n "$CC"; then
3182 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3183 $as_echo "$CC" >&6; }
3184 else
3185 { $as_echo "$as_me:$LINENO: result: no" >&5
3186 $as_echo "no" >&6; }
3191 if test -z "$CC"; then
3192 if test -n "$ac_tool_prefix"; then
3193 for ac_prog in cl.exe
3195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3197 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if test "${ac_cv_prog_CC+set}" = set; then
3200 $as_echo_n "(cached) " >&6
3201 else
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3212 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 break 2
3216 done
3217 done
3218 IFS=$as_save_IFS
3222 CC=$ac_cv_prog_CC
3223 if test -n "$CC"; then
3224 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3225 $as_echo "$CC" >&6; }
3226 else
3227 { $as_echo "$as_me:$LINENO: result: no" >&5
3228 $as_echo "no" >&6; }
3232 test -n "$CC" && break
3233 done
3235 if test -z "$CC"; then
3236 ac_ct_CC=$CC
3237 for ac_prog in cl.exe
3239 # Extract the first word of "$ac_prog", so it can be a program name with args.
3240 set dummy $ac_prog; ac_word=$2
3241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3244 $as_echo_n "(cached) " >&6
3245 else
3246 if test -n "$ac_ct_CC"; then
3247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3248 else
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256 ac_cv_prog_ac_ct_CC="$ac_prog"
3257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 break 2
3260 done
3261 done
3262 IFS=$as_save_IFS
3266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3267 if test -n "$ac_ct_CC"; then
3268 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3269 $as_echo "$ac_ct_CC" >&6; }
3270 else
3271 { $as_echo "$as_me:$LINENO: result: no" >&5
3272 $as_echo "no" >&6; }
3276 test -n "$ac_ct_CC" && break
3277 done
3279 if test "x$ac_ct_CC" = x; then
3280 CC=""
3281 else
3282 case $cross_compiling:$ac_tool_warned in
3283 yes:)
3284 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3286 ac_tool_warned=yes ;;
3287 esac
3288 CC=$ac_ct_CC
3295 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3298 See \`config.log' for more details." >&5
3299 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3300 See \`config.log' for more details." >&2;}
3301 { (exit 1); exit 1; }; }; }
3303 # Provide some information about the compiler.
3304 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3305 set X $ac_compile
3306 ac_compiler=$2
3307 { (ac_try="$ac_compiler --version >&5"
3308 case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3313 $as_echo "$ac_try_echo") >&5
3314 (eval "$ac_compiler --version >&5") 2>&5
3315 ac_status=$?
3316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }
3318 { (ac_try="$ac_compiler -v >&5"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3324 $as_echo "$ac_try_echo") >&5
3325 (eval "$ac_compiler -v >&5") 2>&5
3326 ac_status=$?
3327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }
3329 { (ac_try="$ac_compiler -V >&5"
3330 case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3335 $as_echo "$ac_try_echo") >&5
3336 (eval "$ac_compiler -V >&5") 2>&5
3337 ac_status=$?
3338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }
3341 cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h. */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3349 main ()
3353 return 0;
3355 _ACEOF
3356 ac_clean_files_save=$ac_clean_files
3357 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3358 # Try to create an executable without -o first, disregard a.out.
3359 # It will help us diagnose broken compilers, and finding out an intuition
3360 # of exeext.
3361 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3362 $as_echo_n "checking for C compiler default output file name... " >&6; }
3363 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3365 # The possible output files:
3366 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3368 ac_rmfiles=
3369 for ac_file in $ac_files
3371 case $ac_file in
3372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3373 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3374 esac
3375 done
3376 rm -f $ac_rmfiles
3378 if { (ac_try="$ac_link_default"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3384 $as_echo "$ac_try_echo") >&5
3385 (eval "$ac_link_default") 2>&5
3386 ac_status=$?
3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; then
3389 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3390 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3391 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3392 # so that the user can short-circuit this test for compilers unknown to
3393 # Autoconf.
3394 for ac_file in $ac_files ''
3396 test -f "$ac_file" || continue
3397 case $ac_file in
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3400 [ab].out )
3401 # We found the default executable, but exeext='' is most
3402 # certainly right.
3403 break;;
3404 *.* )
3405 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3406 then :; else
3407 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3409 # We set ac_cv_exeext here because the later test for it is not
3410 # safe: cross compilers may not add the suffix if given an `-o'
3411 # argument, so we may need to know it at that point already.
3412 # Even if this section looks crufty: it has the advantage of
3413 # actually working.
3414 break;;
3416 break;;
3417 esac
3418 done
3419 test "$ac_cv_exeext" = no && ac_cv_exeext=
3421 else
3422 ac_file=''
3425 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3426 $as_echo "$ac_file" >&6; }
3427 if test -z "$ac_file"; then
3428 $as_echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3431 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3434 See \`config.log' for more details." >&5
3435 $as_echo "$as_me: error: C compiler cannot create executables
3436 See \`config.log' for more details." >&2;}
3437 { (exit 77); exit 77; }; }; }
3440 ac_exeext=$ac_cv_exeext
3442 # Check that the compiler produces executables we can run. If not, either
3443 # the compiler is broken, or we cross compile.
3444 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3445 $as_echo_n "checking whether the C compiler works... " >&6; }
3446 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3447 # If not cross compiling, check that we can run a simple program.
3448 if test "$cross_compiling" != yes; then
3449 if { ac_try='./$ac_file'
3450 { (case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3455 $as_echo "$ac_try_echo") >&5
3456 (eval "$ac_try") 2>&5
3457 ac_status=$?
3458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3460 cross_compiling=no
3461 else
3462 if test "$cross_compiling" = maybe; then
3463 cross_compiling=yes
3464 else
3465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3468 If you meant to cross compile, use \`--host'.
3469 See \`config.log' for more details." >&5
3470 $as_echo "$as_me: error: cannot run C compiled programs.
3471 If you meant to cross compile, use \`--host'.
3472 See \`config.log' for more details." >&2;}
3473 { (exit 1); exit 1; }; }; }
3477 { $as_echo "$as_me:$LINENO: result: yes" >&5
3478 $as_echo "yes" >&6; }
3480 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3481 ac_clean_files=$ac_clean_files_save
3482 # Check that the compiler produces executables we can run. If not, either
3483 # the compiler is broken, or we cross compile.
3484 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3485 $as_echo_n "checking whether we are cross compiling... " >&6; }
3486 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3487 $as_echo "$cross_compiling" >&6; }
3489 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3490 $as_echo_n "checking for suffix of executables... " >&6; }
3491 if { (ac_try="$ac_link"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3497 $as_echo "$ac_try_echo") >&5
3498 (eval "$ac_link") 2>&5
3499 ac_status=$?
3500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; then
3502 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3503 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3504 # work properly (i.e., refer to `conftest.exe'), while it won't with
3505 # `rm'.
3506 for ac_file in conftest.exe conftest conftest.*; do
3507 test -f "$ac_file" || continue
3508 case $ac_file in
3509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3510 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3511 break;;
3512 * ) break;;
3513 esac
3514 done
3515 else
3516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3519 See \`config.log' for more details." >&5
3520 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3521 See \`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }; }
3525 rm -f conftest$ac_cv_exeext
3526 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3527 $as_echo "$ac_cv_exeext" >&6; }
3529 rm -f conftest.$ac_ext
3530 EXEEXT=$ac_cv_exeext
3531 ac_exeext=$EXEEXT
3532 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3533 $as_echo_n "checking for suffix of object files... " >&6; }
3534 if test "${ac_cv_objext+set}" = set; then
3535 $as_echo_n "(cached) " >&6
3536 else
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h. */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3545 main ()
3549 return 0;
3551 _ACEOF
3552 rm -f conftest.o conftest.obj
3553 if { (ac_try="$ac_compile"
3554 case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3559 $as_echo "$ac_try_echo") >&5
3560 (eval "$ac_compile") 2>&5
3561 ac_status=$?
3562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; then
3564 for ac_file in conftest.o conftest.obj conftest.*; do
3565 test -f "$ac_file" || continue;
3566 case $ac_file in
3567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3568 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3569 break;;
3570 esac
3571 done
3572 else
3573 $as_echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3579 See \`config.log' for more details." >&5
3580 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3581 See \`config.log' for more details." >&2;}
3582 { (exit 1); exit 1; }; }; }
3585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3587 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3588 $as_echo "$ac_cv_objext" >&6; }
3589 OBJEXT=$ac_cv_objext
3590 ac_objext=$OBJEXT
3591 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3592 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3593 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3594 $as_echo_n "(cached) " >&6
3595 else
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h. */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3604 main ()
3606 #ifndef __GNUC__
3607 choke me
3608 #endif
3611 return 0;
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_compile") 2>conftest.er1
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && {
3629 test -z "$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3631 } && test -s conftest.$ac_objext; then
3632 ac_compiler_gnu=yes
3633 else
3634 $as_echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3637 ac_compiler_gnu=no
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3644 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3645 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3646 if test $ac_compiler_gnu = yes; then
3647 GCC=yes
3648 else
3649 GCC=
3651 ac_test_CFLAGS=${CFLAGS+set}
3652 ac_save_CFLAGS=$CFLAGS
3653 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3654 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3655 if test "${ac_cv_prog_cc_g+set}" = set; then
3656 $as_echo_n "(cached) " >&6
3657 else
3658 ac_save_c_werror_flag=$ac_c_werror_flag
3659 ac_c_werror_flag=yes
3660 ac_cv_prog_cc_g=no
3661 CFLAGS="-g"
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h. */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3670 main ()
3674 return 0;
3676 _ACEOF
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3679 case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3684 $as_echo "$ac_try_echo") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3686 ac_status=$?
3687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
3690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest.$ac_objext; then
3695 ac_cv_prog_cc_g=yes
3696 else
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 CFLAGS=""
3701 cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h. */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3709 main ()
3713 return 0;
3715 _ACEOF
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3723 $as_echo "$ac_try_echo") >&5
3724 (eval "$ac_compile") 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } && {
3731 test -z "$ac_c_werror_flag" ||
3732 test ! -s conftest.err
3733 } && test -s conftest.$ac_objext; then
3735 else
3736 $as_echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 ac_c_werror_flag=$ac_save_c_werror_flag
3740 CFLAGS="-g"
3741 cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h. */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3749 main ()
3753 return 0;
3755 _ACEOF
3756 rm -f conftest.$ac_objext
3757 if { (ac_try="$ac_compile"
3758 case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761 esac
3762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3763 $as_echo "$ac_try_echo") >&5
3764 (eval "$ac_compile") 2>conftest.er1
3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
3769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } && {
3771 test -z "$ac_c_werror_flag" ||
3772 test ! -s conftest.err
3773 } && test -s conftest.$ac_objext; then
3774 ac_cv_prog_cc_g=yes
3775 else
3776 $as_echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3791 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3792 $as_echo "$ac_cv_prog_cc_g" >&6; }
3793 if test "$ac_test_CFLAGS" = set; then
3794 CFLAGS=$ac_save_CFLAGS
3795 elif test $ac_cv_prog_cc_g = yes; then
3796 if test "$GCC" = yes; then
3797 CFLAGS="-g -O2"
3798 else
3799 CFLAGS="-g"
3801 else
3802 if test "$GCC" = yes; then
3803 CFLAGS="-O2"
3804 else
3805 CFLAGS=
3808 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3809 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3810 if test "${ac_cv_prog_cc_c89+set}" = set; then
3811 $as_echo_n "(cached) " >&6
3812 else
3813 ac_cv_prog_cc_c89=no
3814 ac_save_CC=$CC
3815 cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h. */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821 #include <stdarg.h>
3822 #include <stdio.h>
3823 #include <sys/types.h>
3824 #include <sys/stat.h>
3825 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3826 struct buf { int x; };
3827 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3828 static char *e (p, i)
3829 char **p;
3830 int i;
3832 return p[i];
3834 static char *f (char * (*g) (char **, int), char **p, ...)
3836 char *s;
3837 va_list v;
3838 va_start (v,p);
3839 s = g (p, va_arg (v,int));
3840 va_end (v);
3841 return s;
3844 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3845 function prototypes and stuff, but not '\xHH' hex character constants.
3846 These don't provoke an error unfortunately, instead are silently treated
3847 as 'x'. The following induces an error, until -std is added to get
3848 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3849 array size at least. It's necessary to write '\x00'==0 to get something
3850 that's true only with -std. */
3851 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3853 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3854 inside strings and character constants. */
3855 #define FOO(x) 'x'
3856 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3858 int test (int i, double x);
3859 struct s1 {int (*f) (int a);};
3860 struct s2 {int (*f) (double a);};
3861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3862 int argc;
3863 char **argv;
3865 main ()
3867 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3869 return 0;
3871 _ACEOF
3872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3873 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3875 CC="$ac_save_CC $ac_arg"
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3883 $as_echo "$ac_try_echo") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3885 ac_status=$?
3886 grep -v '^ *+' conftest.er1 >conftest.err
3887 rm -f conftest.er1
3888 cat conftest.err >&5
3889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3894 ac_cv_prog_cc_c89=$ac_arg
3895 else
3896 $as_echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3902 rm -f core conftest.err conftest.$ac_objext
3903 test "x$ac_cv_prog_cc_c89" != "xno" && break
3904 done
3905 rm -f conftest.$ac_ext
3906 CC=$ac_save_CC
3909 # AC_CACHE_VAL
3910 case "x$ac_cv_prog_cc_c89" in
3912 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3913 $as_echo "none needed" >&6; } ;;
3914 xno)
3915 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3916 $as_echo "unsupported" >&6; } ;;
3918 CC="$CC $ac_cv_prog_cc_c89"
3919 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3920 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3921 esac
3924 ac_ext=c
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 # On Suns, sometimes $CPP names a directory.
3932 if test -n "$CPP" && test -d "$CPP"; then
3933 CPP=
3936 ## If not using gcc, and on Solaris, and no CPP specified, see if
3937 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3938 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3939 test x"$CPP" = x; then
3940 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3941 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3943 if test "${emacs_cv_sunpro_c+set}" = set; then
3944 $as_echo_n "(cached) " >&6
3945 else
3946 cat >conftest.$ac_ext <<_ACEOF
3947 /* confdefs.h. */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3954 main ()
3956 #ifndef __SUNPRO_C
3957 fail;
3958 #endif
3961 return 0;
3963 _ACEOF
3964 rm -f conftest.$ac_objext conftest$ac_exeext
3965 if { (ac_try="$ac_link"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971 $as_echo "$ac_try_echo") >&5
3972 (eval "$ac_link") 2>conftest.er1
3973 ac_status=$?
3974 grep -v '^ *+' conftest.er1 >conftest.err
3975 rm -f conftest.er1
3976 cat conftest.err >&5
3977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } && {
3979 test -z "$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 } && test -s conftest$ac_exeext && {
3982 test "$cross_compiling" = yes ||
3983 $as_test_x conftest$ac_exeext
3984 }; then
3985 emacs_cv_sunpro_c=yes
3986 else
3987 $as_echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3990 emacs_cv_sunpro_c=no
3993 rm -rf conftest.dSYM
3994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3995 conftest$ac_exeext conftest.$ac_ext
3998 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3999 $as_echo "$emacs_cv_sunpro_c" >&6; }
4001 if test x"$emacs_cv_sunpro_c" = xyes; then
4002 NON_GNU_CPP="$CC -E -Xs"
4006 #### Some systems specify a CPP to use unless we are using GCC.
4007 #### Now that we know whether we are using GCC, we can decide whether
4008 #### to use that one.
4009 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4010 then
4011 CPP="$NON_GNU_CPP"
4014 #### Some systems specify a CC to use unless we are using GCC.
4015 #### Now that we know whether we are using GCC, we can decide whether
4016 #### to use that one.
4017 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4018 test x$cc_specified != xyes
4019 then
4020 CC="$NON_GNU_CC"
4023 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4024 then
4025 CC="$CC $GCC_TEST_OPTIONS"
4028 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4029 then
4030 CC="$CC $NON_GCC_TEST_OPTIONS"
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4039 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4040 # On Suns, sometimes $CPP names a directory.
4041 if test -n "$CPP" && test -d "$CPP"; then
4042 CPP=
4044 if test -z "$CPP"; then
4045 if test "${ac_cv_prog_CPP+set}" = set; then
4046 $as_echo_n "(cached) " >&6
4047 else
4048 # Double quotes because CPP needs to be expanded
4049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4051 ac_preproc_ok=false
4052 for ac_c_preproc_warn_flag in '' yes
4054 # Use a header file that comes with gcc, so configuring glibc
4055 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser,
4059 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h. */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 #ifdef __STDC__
4067 # include <limits.h>
4068 #else
4069 # include <assert.h>
4070 #endif
4071 Syntax error
4072 _ACEOF
4073 if { (ac_try="$ac_cpp conftest.$ac_ext"
4074 case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079 $as_echo "$ac_try_echo") >&5
4080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } >/dev/null && {
4087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4089 }; then
4091 else
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 # Broken: fails on valid input.
4096 continue
4099 rm -f conftest.err conftest.$ac_ext
4101 # OK, works on sane cases. Now check whether nonexistent headers
4102 # can be detected and how.
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h. */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4110 _ACEOF
4111 if { (ac_try="$ac_cpp conftest.$ac_ext"
4112 case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4117 $as_echo "$ac_try_echo") >&5
4118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } >/dev/null && {
4125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 }; then
4128 # Broken: success on invalid input.
4129 continue
4130 else
4131 $as_echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 # Passes both tests.
4135 ac_preproc_ok=:
4136 break
4139 rm -f conftest.err conftest.$ac_ext
4141 done
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then
4145 break
4148 done
4149 ac_cv_prog_CPP=$CPP
4152 CPP=$ac_cv_prog_CPP
4153 else
4154 ac_cv_prog_CPP=$CPP
4156 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4157 $as_echo "$CPP" >&6; }
4158 ac_preproc_ok=false
4159 for ac_c_preproc_warn_flag in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h. */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173 #ifdef __STDC__
4174 # include <limits.h>
4175 #else
4176 # include <assert.h>
4177 #endif
4178 Syntax error
4179 _ACEOF
4180 if { (ac_try="$ac_cpp conftest.$ac_ext"
4181 case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4188 ac_status=$?
4189 grep -v '^ *+' conftest.er1 >conftest.err
4190 rm -f conftest.er1
4191 cat conftest.err >&5
4192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } >/dev/null && {
4194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4196 }; then
4198 else
4199 $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 # Broken: fails on valid input.
4203 continue
4206 rm -f conftest.err conftest.$ac_ext
4208 # OK, works on sane cases. Now check whether nonexistent headers
4209 # can be detected and how.
4210 cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h. */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4217 _ACEOF
4218 if { (ac_try="$ac_cpp conftest.$ac_ext"
4219 case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222 esac
4223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4224 $as_echo "$ac_try_echo") >&5
4225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } >/dev/null && {
4232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4234 }; then
4235 # Broken: success on invalid input.
4236 continue
4237 else
4238 $as_echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 # Passes both tests.
4242 ac_preproc_ok=:
4243 break
4246 rm -f conftest.err conftest.$ac_ext
4248 done
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.err conftest.$ac_ext
4251 if $ac_preproc_ok; then
4253 else
4254 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4256 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4257 See \`config.log' for more details." >&5
4258 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4259 See \`config.log' for more details." >&2;}
4260 { (exit 1); exit 1; }; }; }
4263 ac_ext=c
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4271 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4272 if test "${ac_cv_path_GREP+set}" = set; then
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if test -z "$GREP"; then
4276 ac_path_GREP_found=false
4277 # Loop through the user's path and test for each of PROGNAME-LIST
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_prog in grep ggrep; do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4286 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4287 # Check for GNU ac_path_GREP and select it if it is found.
4288 # Check for GNU $ac_path_GREP
4289 case `"$ac_path_GREP" --version 2>&1` in
4290 *GNU*)
4291 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4293 ac_count=0
4294 $as_echo_n 0123456789 >"conftest.in"
4295 while :
4297 cat "conftest.in" "conftest.in" >"conftest.tmp"
4298 mv "conftest.tmp" "conftest.in"
4299 cp "conftest.in" "conftest.nl"
4300 $as_echo 'GREP' >> "conftest.nl"
4301 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303 ac_count=`expr $ac_count + 1`
4304 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4305 # Best one so far, save it but keep looking for a better one
4306 ac_cv_path_GREP="$ac_path_GREP"
4307 ac_path_GREP_max=$ac_count
4309 # 10*(2^10) chars as input seems more than enough
4310 test $ac_count -gt 10 && break
4311 done
4312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313 esac
4315 $ac_path_GREP_found && break 3
4316 done
4317 done
4318 done
4319 IFS=$as_save_IFS
4320 if test -z "$ac_cv_path_GREP"; then
4321 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4322 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4323 { (exit 1); exit 1; }; }
4325 else
4326 ac_cv_path_GREP=$GREP
4330 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4331 $as_echo "$ac_cv_path_GREP" >&6; }
4332 GREP="$ac_cv_path_GREP"
4335 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4336 $as_echo_n "checking for egrep... " >&6; }
4337 if test "${ac_cv_path_EGREP+set}" = set; then
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4341 then ac_cv_path_EGREP="$GREP -E"
4342 else
4343 if test -z "$EGREP"; then
4344 ac_path_EGREP_found=false
4345 # Loop through the user's path and test for each of PROGNAME-LIST
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_prog in egrep; do
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4354 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4355 # Check for GNU ac_path_EGREP and select it if it is found.
4356 # Check for GNU $ac_path_EGREP
4357 case `"$ac_path_EGREP" --version 2>&1` in
4358 *GNU*)
4359 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4361 ac_count=0
4362 $as_echo_n 0123456789 >"conftest.in"
4363 while :
4365 cat "conftest.in" "conftest.in" >"conftest.tmp"
4366 mv "conftest.tmp" "conftest.in"
4367 cp "conftest.in" "conftest.nl"
4368 $as_echo 'EGREP' >> "conftest.nl"
4369 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4371 ac_count=`expr $ac_count + 1`
4372 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4373 # Best one so far, save it but keep looking for a better one
4374 ac_cv_path_EGREP="$ac_path_EGREP"
4375 ac_path_EGREP_max=$ac_count
4377 # 10*(2^10) chars as input seems more than enough
4378 test $ac_count -gt 10 && break
4379 done
4380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4381 esac
4383 $ac_path_EGREP_found && break 3
4384 done
4385 done
4386 done
4387 IFS=$as_save_IFS
4388 if test -z "$ac_cv_path_EGREP"; then
4389 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4390 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4391 { (exit 1); exit 1; }; }
4393 else
4394 ac_cv_path_EGREP=$EGREP
4399 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4400 $as_echo "$ac_cv_path_EGREP" >&6; }
4401 EGREP="$ac_cv_path_EGREP"
4404 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4405 $as_echo_n "checking for ANSI C header files... " >&6; }
4406 if test "${ac_cv_header_stdc+set}" = set; then
4407 $as_echo_n "(cached) " >&6
4408 else
4409 cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h. */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 #include <stdlib.h>
4416 #include <stdarg.h>
4417 #include <string.h>
4418 #include <float.h>
4421 main ()
4425 return 0;
4427 _ACEOF
4428 rm -f conftest.$ac_objext
4429 if { (ac_try="$ac_compile"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4435 $as_echo "$ac_try_echo") >&5
4436 (eval "$ac_compile") 2>conftest.er1
4437 ac_status=$?
4438 grep -v '^ *+' conftest.er1 >conftest.err
4439 rm -f conftest.er1
4440 cat conftest.err >&5
4441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } && {
4443 test -z "$ac_c_werror_flag" ||
4444 test ! -s conftest.err
4445 } && test -s conftest.$ac_objext; then
4446 ac_cv_header_stdc=yes
4447 else
4448 $as_echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 ac_cv_header_stdc=no
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 if test $ac_cv_header_stdc = yes; then
4457 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4458 cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h. */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 #include <string.h>
4466 _ACEOF
4467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4468 $EGREP "memchr" >/dev/null 2>&1; then
4470 else
4471 ac_cv_header_stdc=no
4473 rm -f conftest*
4477 if test $ac_cv_header_stdc = yes; then
4478 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4479 cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h. */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 #include <stdlib.h>
4487 _ACEOF
4488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4489 $EGREP "free" >/dev/null 2>&1; then
4491 else
4492 ac_cv_header_stdc=no
4494 rm -f conftest*
4498 if test $ac_cv_header_stdc = yes; then
4499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4500 if test "$cross_compiling" = yes; then
4502 else
4503 cat >conftest.$ac_ext <<_ACEOF
4504 /* confdefs.h. */
4505 _ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4509 #include <ctype.h>
4510 #include <stdlib.h>
4511 #if ((' ' & 0x0FF) == 0x020)
4512 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4513 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4514 #else
4515 # define ISLOWER(c) \
4516 (('a' <= (c) && (c) <= 'i') \
4517 || ('j' <= (c) && (c) <= 'r') \
4518 || ('s' <= (c) && (c) <= 'z'))
4519 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4520 #endif
4522 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4524 main ()
4526 int i;
4527 for (i = 0; i < 256; i++)
4528 if (XOR (islower (i), ISLOWER (i))
4529 || toupper (i) != TOUPPER (i))
4530 return 2;
4531 return 0;
4533 _ACEOF
4534 rm -f conftest$ac_exeext
4535 if { (ac_try="$ac_link"
4536 case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539 esac
4540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4541 $as_echo "$ac_try_echo") >&5
4542 (eval "$ac_link") 2>&5
4543 ac_status=$?
4544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4546 { (case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549 esac
4550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4551 $as_echo "$ac_try_echo") >&5
4552 (eval "$ac_try") 2>&5
4553 ac_status=$?
4554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4557 else
4558 $as_echo "$as_me: program exited with status $ac_status" >&5
4559 $as_echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4562 ( exit $ac_status )
4563 ac_cv_header_stdc=no
4565 rm -rf conftest.dSYM
4566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4572 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4573 $as_echo "$ac_cv_header_stdc" >&6; }
4574 if test $ac_cv_header_stdc = yes; then
4576 cat >>confdefs.h <<\_ACEOF
4577 #define STDC_HEADERS 1
4578 _ACEOF
4582 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4592 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4593 inttypes.h stdint.h unistd.h
4595 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4596 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4597 $as_echo_n "checking for $ac_header... " >&6; }
4598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4599 $as_echo_n "(cached) " >&6
4600 else
4601 cat >conftest.$ac_ext <<_ACEOF
4602 /* confdefs.h. */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 $ac_includes_default
4609 #include <$ac_header>
4610 _ACEOF
4611 rm -f conftest.$ac_objext
4612 if { (ac_try="$ac_compile"
4613 case "(($ac_try" in
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4616 esac
4617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4618 $as_echo "$ac_try_echo") >&5
4619 (eval "$ac_compile") 2>conftest.er1
4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } && {
4626 test -z "$ac_c_werror_flag" ||
4627 test ! -s conftest.err
4628 } && test -s conftest.$ac_objext; then
4629 eval "$as_ac_Header=yes"
4630 else
4631 $as_echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4634 eval "$as_ac_Header=no"
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 ac_res=`eval 'as_val=${'$as_ac_Header'}
4640 $as_echo "$as_val"'`
4641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4642 $as_echo "$ac_res" >&6; }
4643 as_val=`eval 'as_val=${'$as_ac_Header'}
4644 $as_echo "$as_val"'`
4645 if test "x$as_val" = x""yes; then
4646 cat >>confdefs.h <<_ACEOF
4647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4648 _ACEOF
4652 done
4656 if test "${ac_cv_header_minix_config_h+set}" = set; then
4657 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4658 $as_echo_n "checking for minix/config.h... " >&6; }
4659 if test "${ac_cv_header_minix_config_h+set}" = set; then
4660 $as_echo_n "(cached) " >&6
4662 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4663 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4664 else
4665 # Is the header compilable?
4666 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4667 $as_echo_n "checking minix/config.h usability... " >&6; }
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 $ac_includes_default
4675 #include <minix/config.h>
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (ac_try="$ac_compile"
4679 case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4682 esac
4683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4684 $as_echo "$ac_try_echo") >&5
4685 (eval "$ac_compile") 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } && {
4692 test -z "$ac_c_werror_flag" ||
4693 test ! -s conftest.err
4694 } && test -s conftest.$ac_objext; then
4695 ac_header_compiler=yes
4696 else
4697 $as_echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4700 ac_header_compiler=no
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4705 $as_echo "$ac_header_compiler" >&6; }
4707 # Is the header present?
4708 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4709 $as_echo_n "checking minix/config.h presence... " >&6; }
4710 cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h. */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 #include <minix/config.h>
4717 _ACEOF
4718 if { (ac_try="$ac_cpp conftest.$ac_ext"
4719 case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722 esac
4723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4724 $as_echo "$ac_try_echo") >&5
4725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4726 ac_status=$?
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
4730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } >/dev/null && {
4732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4733 test ! -s conftest.err
4734 }; then
4735 ac_header_preproc=yes
4736 else
4737 $as_echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4740 ac_header_preproc=no
4743 rm -f conftest.err conftest.$ac_ext
4744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4745 $as_echo "$ac_header_preproc" >&6; }
4747 # So? What about this header?
4748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4749 yes:no: )
4750 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4751 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4752 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4753 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4754 ac_header_preproc=yes
4756 no:yes:* )
4757 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4758 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4759 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4760 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4761 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4762 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4763 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4764 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4765 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4766 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4767 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4768 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4771 esac
4772 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4773 $as_echo_n "checking for minix/config.h... " >&6; }
4774 if test "${ac_cv_header_minix_config_h+set}" = set; then
4775 $as_echo_n "(cached) " >&6
4776 else
4777 ac_cv_header_minix_config_h=$ac_header_preproc
4779 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4780 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4783 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4784 MINIX=yes
4785 else
4786 MINIX=
4790 if test "$MINIX" = yes; then
4792 cat >>confdefs.h <<\_ACEOF
4793 #define _POSIX_SOURCE 1
4794 _ACEOF
4797 cat >>confdefs.h <<\_ACEOF
4798 #define _POSIX_1_SOURCE 2
4799 _ACEOF
4802 cat >>confdefs.h <<\_ACEOF
4803 #define _MINIX 1
4804 _ACEOF
4810 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4811 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4812 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4813 $as_echo_n "(cached) " >&6
4814 else
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4822 # define __EXTENSIONS__ 1
4823 $ac_includes_default
4825 main ()
4829 return 0;
4831 _ACEOF
4832 rm -f conftest.$ac_objext
4833 if { (ac_try="$ac_compile"
4834 case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837 esac
4838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4839 $as_echo "$ac_try_echo") >&5
4840 (eval "$ac_compile") 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } && {
4847 test -z "$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 } && test -s conftest.$ac_objext; then
4850 ac_cv_safe_to_define___extensions__=yes
4851 else
4852 $as_echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4855 ac_cv_safe_to_define___extensions__=no
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4860 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4861 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4862 test $ac_cv_safe_to_define___extensions__ = yes &&
4863 cat >>confdefs.h <<\_ACEOF
4864 #define __EXTENSIONS__ 1
4865 _ACEOF
4867 cat >>confdefs.h <<\_ACEOF
4868 #define _ALL_SOURCE 1
4869 _ACEOF
4871 cat >>confdefs.h <<\_ACEOF
4872 #define _GNU_SOURCE 1
4873 _ACEOF
4875 cat >>confdefs.h <<\_ACEOF
4876 #define _POSIX_PTHREAD_SEMANTICS 1
4877 _ACEOF
4879 cat >>confdefs.h <<\_ACEOF
4880 #define _TANDEM_SOURCE 1
4881 _ACEOF
4885 ### Use -Wno-pointer-sign if the compiler supports it
4886 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4887 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4888 SAVE_CFLAGS="$CFLAGS"
4889 CFLAGS="$CFLAGS -Wno-pointer-sign"
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h. */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4898 main ()
4902 return 0;
4904 _ACEOF
4905 rm -f conftest.$ac_objext
4906 if { (ac_try="$ac_compile"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4912 $as_echo "$ac_try_echo") >&5
4913 (eval "$ac_compile") 2>conftest.er1
4914 ac_status=$?
4915 grep -v '^ *+' conftest.er1 >conftest.err
4916 rm -f conftest.er1
4917 cat conftest.err >&5
4918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } && {
4920 test -z "$ac_c_werror_flag" ||
4921 test ! -s conftest.err
4922 } && test -s conftest.$ac_objext; then
4923 has_option=yes
4924 else
4925 $as_echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 has_option=no
4931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932 if test $has_option = yes; then
4933 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4935 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4936 $as_echo "$has_option" >&6; }
4937 CFLAGS="$SAVE_CFLAGS"
4938 unset has_option
4939 unset SAVE_CFLAGS
4941 ### Use -Wdeclaration-after-statement if the compiler supports it
4942 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4943 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4944 SAVE_CFLAGS="$CFLAGS"
4945 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4946 cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h. */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4954 main ()
4958 return 0;
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (ac_try="$ac_compile"
4963 case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4968 $as_echo "$ac_try_echo") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
4979 has_option=yes
4980 else
4981 $as_echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4984 has_option=no
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 if test $has_option = yes; then
4989 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4991 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4992 $as_echo "$has_option" >&6; }
4993 CFLAGS="$SAVE_CFLAGS"
4994 unset has_option
4995 unset SAVE_CFLAGS
4997 #### Some other nice autoconf tests.
4999 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5000 $as_echo_n "checking whether ln -s works... " >&6; }
5001 LN_S=$as_ln_s
5002 if test "$LN_S" = "ln -s"; then
5003 { $as_echo "$as_me:$LINENO: result: yes" >&5
5004 $as_echo "yes" >&6; }
5005 else
5006 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5007 $as_echo "no, using $LN_S" >&6; }
5010 ac_ext=c
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5016 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5017 # On Suns, sometimes $CPP names a directory.
5018 if test -n "$CPP" && test -d "$CPP"; then
5019 CPP=
5021 if test -z "$CPP"; then
5022 if test "${ac_cv_prog_CPP+set}" = set; then
5023 $as_echo_n "(cached) " >&6
5024 else
5025 # Double quotes because CPP needs to be expanded
5026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5028 ac_preproc_ok=false
5029 for ac_c_preproc_warn_flag in '' yes
5031 # Use a header file that comes with gcc, so configuring glibc
5032 # with a fresh cross-compiler works.
5033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5034 # <limits.h> exists even on freestanding compilers.
5035 # On the NeXT, cc -E runs the code through the compiler's parser,
5036 # not just through cpp. "Syntax error" is here to catch this case.
5037 cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h. */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 #ifdef __STDC__
5044 # include <limits.h>
5045 #else
5046 # include <assert.h>
5047 #endif
5048 Syntax error
5049 _ACEOF
5050 if { (ac_try="$ac_cpp conftest.$ac_ext"
5051 case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5056 $as_echo "$ac_try_echo") >&5
5057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev/null && {
5064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5066 }; then
5068 else
5069 $as_echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 # Broken: fails on valid input.
5073 continue
5076 rm -f conftest.err conftest.$ac_ext
5078 # OK, works on sane cases. Now check whether nonexistent headers
5079 # can be detected and how.
5080 cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h. */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 #include <ac_nonexistent.h>
5087 _ACEOF
5088 if { (ac_try="$ac_cpp conftest.$ac_ext"
5089 case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092 esac
5093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5094 $as_echo "$ac_try_echo") >&5
5095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev/null && {
5102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5104 }; then
5105 # Broken: success on invalid input.
5106 continue
5107 else
5108 $as_echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111 # Passes both tests.
5112 ac_preproc_ok=:
5113 break
5116 rm -f conftest.err conftest.$ac_ext
5118 done
5119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5120 rm -f conftest.err conftest.$ac_ext
5121 if $ac_preproc_ok; then
5122 break
5125 done
5126 ac_cv_prog_CPP=$CPP
5129 CPP=$ac_cv_prog_CPP
5130 else
5131 ac_cv_prog_CPP=$CPP
5133 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5134 $as_echo "$CPP" >&6; }
5135 ac_preproc_ok=false
5136 for ac_c_preproc_warn_flag in '' yes
5138 # Use a header file that comes with gcc, so configuring glibc
5139 # with a fresh cross-compiler works.
5140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5141 # <limits.h> exists even on freestanding compilers.
5142 # On the NeXT, cc -E runs the code through the compiler's parser,
5143 # not just through cpp. "Syntax error" is here to catch this case.
5144 cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h. */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 #ifdef __STDC__
5151 # include <limits.h>
5152 #else
5153 # include <assert.h>
5154 #endif
5155 Syntax error
5156 _ACEOF
5157 if { (ac_try="$ac_cpp conftest.$ac_ext"
5158 case "(($ac_try" in
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5161 esac
5162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5163 $as_echo "$ac_try_echo") >&5
5164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } >/dev/null && {
5171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5172 test ! -s conftest.err
5173 }; then
5175 else
5176 $as_echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 # Broken: fails on valid input.
5180 continue
5183 rm -f conftest.err conftest.$ac_ext
5185 # OK, works on sane cases. Now check whether nonexistent headers
5186 # can be detected and how.
5187 cat >conftest.$ac_ext <<_ACEOF
5188 /* confdefs.h. */
5189 _ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5193 #include <ac_nonexistent.h>
5194 _ACEOF
5195 if { (ac_try="$ac_cpp conftest.$ac_ext"
5196 case "(($ac_try" in
5197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198 *) ac_try_echo=$ac_try;;
5199 esac
5200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5201 $as_echo "$ac_try_echo") >&5
5202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5203 ac_status=$?
5204 grep -v '^ *+' conftest.er1 >conftest.err
5205 rm -f conftest.er1
5206 cat conftest.err >&5
5207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } >/dev/null && {
5209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5210 test ! -s conftest.err
5211 }; then
5212 # Broken: success on invalid input.
5213 continue
5214 else
5215 $as_echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5218 # Passes both tests.
5219 ac_preproc_ok=:
5220 break
5223 rm -f conftest.err conftest.$ac_ext
5225 done
5226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5227 rm -f conftest.err conftest.$ac_ext
5228 if $ac_preproc_ok; then
5230 else
5231 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5233 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5234 See \`config.log' for more details." >&5
5235 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5236 See \`config.log' for more details." >&2;}
5237 { (exit 1); exit 1; }; }; }
5240 ac_ext=c
5241 ac_cpp='$CPP $CPPFLAGS'
5242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5246 # Find a good install program. We prefer a C program (faster),
5247 # so one script is as good as another. But avoid the broken or
5248 # incompatible versions:
5249 # SysV /etc/install, /usr/sbin/install
5250 # SunOS /usr/etc/install
5251 # IRIX /sbin/install
5252 # AIX /bin/install
5253 # AmigaOS /C/install, which installs bootblocks on floppy discs
5254 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5255 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5256 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5257 # OS/2's system install, which has a completely different semantic
5258 # ./install, which can be erroneously created by make from ./install.sh.
5259 # Reject install programs that cannot install multiple files.
5260 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5261 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5262 if test -z "$INSTALL"; then
5263 if test "${ac_cv_path_install+set}" = set; then
5264 $as_echo_n "(cached) " >&6
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 # Account for people who put trailing slashes in PATH elements.
5272 case $as_dir/ in
5273 ./ | .// | /cC/* | \
5274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5275 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5276 /usr/ucb/* ) ;;
5278 # OSF1 and SCO ODT 3.0 have their own names for install.
5279 # Don't use installbsd from OSF since it installs stuff as root
5280 # by default.
5281 for ac_prog in ginstall scoinst install; do
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5284 if test $ac_prog = install &&
5285 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5286 # AIX install. It has an incompatible calling convention.
5288 elif test $ac_prog = install &&
5289 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5290 # program-specific install script used by HP pwplus--don't use.
5292 else
5293 rm -rf conftest.one conftest.two conftest.dir
5294 echo one > conftest.one
5295 echo two > conftest.two
5296 mkdir conftest.dir
5297 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5298 test -s conftest.one && test -s conftest.two &&
5299 test -s conftest.dir/conftest.one &&
5300 test -s conftest.dir/conftest.two
5301 then
5302 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5303 break 3
5307 done
5308 done
5310 esac
5312 done
5313 IFS=$as_save_IFS
5315 rm -rf conftest.one conftest.two conftest.dir
5318 if test "${ac_cv_path_install+set}" = set; then
5319 INSTALL=$ac_cv_path_install
5320 else
5321 # As a last resort, use the slow shell script. Don't cache a
5322 # value for INSTALL within a source directory, because that will
5323 # break other packages using the cache if that directory is
5324 # removed, or if the value is a relative name.
5325 INSTALL=$ac_install_sh
5328 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5329 $as_echo "$INSTALL" >&6; }
5331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5332 # It thinks the first close brace ends the variable substitution.
5333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5339 if test "x$RANLIB" = x; then
5340 if test -n "$ac_tool_prefix"; then
5341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if test "${ac_cv_prog_RANLIB+set}" = set; then
5346 $as_echo_n "(cached) " >&6
5347 else
5348 if test -n "$RANLIB"; then
5349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5350 else
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 break 2
5362 done
5363 done
5364 IFS=$as_save_IFS
5368 RANLIB=$ac_cv_prog_RANLIB
5369 if test -n "$RANLIB"; then
5370 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5371 $as_echo "$RANLIB" >&6; }
5372 else
5373 { $as_echo "$as_me:$LINENO: result: no" >&5
5374 $as_echo "no" >&6; }
5379 if test -z "$ac_cv_prog_RANLIB"; then
5380 ac_ct_RANLIB=$RANLIB
5381 # Extract the first word of "ranlib", so it can be a program name with args.
5382 set dummy ranlib; ac_word=$2
5383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5386 $as_echo_n "(cached) " >&6
5387 else
5388 if test -n "$ac_ct_RANLIB"; then
5389 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5398 ac_cv_prog_ac_ct_RANLIB="ranlib"
5399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5402 done
5403 done
5404 IFS=$as_save_IFS
5408 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5409 if test -n "$ac_ct_RANLIB"; then
5410 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5411 $as_echo "$ac_ct_RANLIB" >&6; }
5412 else
5413 { $as_echo "$as_me:$LINENO: result: no" >&5
5414 $as_echo "no" >&6; }
5417 if test "x$ac_ct_RANLIB" = x; then
5418 RANLIB=":"
5419 else
5420 case $cross_compiling:$ac_tool_warned in
5421 yes:)
5422 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5425 esac
5426 RANLIB=$ac_ct_RANLIB
5428 else
5429 RANLIB="$ac_cv_prog_RANLIB"
5433 # Extract the first word of "install-info", so it can be a program name with args.
5434 set dummy install-info; ac_word=$2
5435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5438 $as_echo_n "(cached) " >&6
5439 else
5440 case $INSTALL_INFO in
5441 [\\/]* | ?:[\\/]*)
5442 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH
5448 IFS=$as_save_IFS
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 break 2
5456 done
5457 done
5458 IFS=$as_save_IFS
5461 esac
5463 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5464 if test -n "$INSTALL_INFO"; then
5465 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5466 $as_echo "$INSTALL_INFO" >&6; }
5467 else
5468 { $as_echo "$as_me:$LINENO: result: no" >&5
5469 $as_echo "no" >&6; }
5473 # Extract the first word of "install-info", so it can be a program name with args.
5474 set dummy install-info; ac_word=$2
5475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5478 $as_echo_n "(cached) " >&6
5479 else
5480 case $INSTALL_INFO in
5481 [\\/]* | ?:[\\/]*)
5482 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in /usr/sbin
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5496 done
5497 done
5498 IFS=$as_save_IFS
5501 esac
5503 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5504 if test -n "$INSTALL_INFO"; then
5505 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5506 $as_echo "$INSTALL_INFO" >&6; }
5507 else
5508 { $as_echo "$as_me:$LINENO: result: no" >&5
5509 $as_echo "no" >&6; }
5513 # Extract the first word of "install-info", so it can be a program name with args.
5514 set dummy install-info; ac_word=$2
5515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5518 $as_echo_n "(cached) " >&6
5519 else
5520 case $INSTALL_INFO in
5521 [\\/]* | ?:[\\/]*)
5522 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in /sbin
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5536 done
5537 done
5538 IFS=$as_save_IFS
5540 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5542 esac
5544 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5545 if test -n "$INSTALL_INFO"; then
5546 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5547 $as_echo "$INSTALL_INFO" >&6; }
5548 else
5549 { $as_echo "$as_me:$LINENO: result: no" >&5
5550 $as_echo "no" >&6; }
5554 # Extract the first word of "gzip", so it can be a program name with args.
5555 set dummy gzip; ac_word=$2
5556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5559 $as_echo_n "(cached) " >&6
5560 else
5561 case $GZIP_PROG in
5562 [\\/]* | ?:[\\/]*)
5563 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 break 2
5577 done
5578 done
5579 IFS=$as_save_IFS
5582 esac
5584 GZIP_PROG=$ac_cv_path_GZIP_PROG
5585 if test -n "$GZIP_PROG"; then
5586 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5587 $as_echo "$GZIP_PROG" >&6; }
5588 else
5589 { $as_echo "$as_me:$LINENO: result: no" >&5
5590 $as_echo "no" >&6; }
5596 ## Need makeinfo >= 4.6 (?) to build the manuals.
5597 # Extract the first word of "makeinfo", so it can be a program name with args.
5598 set dummy makeinfo; ac_word=$2
5599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5600 $as_echo_n "checking for $ac_word... " >&6; }
5601 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5602 $as_echo_n "(cached) " >&6
5603 else
5604 case $MAKEINFO in
5605 [\\/]* | ?:[\\/]*)
5606 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5620 done
5621 done
5622 IFS=$as_save_IFS
5624 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5626 esac
5628 MAKEINFO=$ac_cv_path_MAKEINFO
5629 if test -n "$MAKEINFO"; then
5630 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5631 $as_echo "$MAKEINFO" >&6; }
5632 else
5633 { $as_echo "$as_me:$LINENO: result: no" >&5
5634 $as_echo "no" >&6; }
5638 if test "$MAKEINFO" != "no" && \
5639 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
5640 MAKEINFO=no
5643 ## Makeinfo is unusual. For a released Emacs, the manuals are
5644 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5645 ## therefore in the category of "special tools" not normally required, which
5646 ## configure does not have to check for (eg autoconf itself).
5647 ## In a Bazaar checkout on the other hand, the manuals are not included.
5648 ## So makeinfo is a requirement to build from Bazaar, and configure
5649 ## should test for it as it does for any other build requirement.
5650 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5651 ## with pre-built manuals, from a Bazaar checkout.
5652 if test "$MAKEINFO" = "no"; then
5653 if test "x${with_makeinfo}" = "xno"; then
5654 MAKEINFO=off
5655 elif ! test -e $srcdir/info/emacs; then
5656 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5657 source tree does not seem to have pre-built manuals in the \`info' directory.
5658 Either install a suitable version of makeinfo, or re-run configure
5659 with the \`--without-makeinfo' option to build without the manuals. " >&5
5660 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5661 source tree does not seem to have pre-built manuals in the \`info' directory.
5662 Either install a suitable version of makeinfo, or re-run configure
5663 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5664 { (exit 1); exit 1; }; }
5669 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5670 then
5671 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5674 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5675 then
5676 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5680 late_LDFLAGS=$LDFLAGS
5681 if test "$GCC" = yes; then
5682 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5683 else
5684 LDFLAGS="$LDFLAGS -znocombreloc"
5687 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5688 $as_echo_n "checking for -znocombreloc... " >&6; }
5689 cat >conftest.$ac_ext <<_ACEOF
5690 main(){return 0;}
5691 _ACEOF
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (ac_try="$ac_link"
5694 case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697 esac
5698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5699 $as_echo "$ac_try_echo") >&5
5700 (eval "$ac_link") 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && {
5707 test -z "$ac_c_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest$ac_exeext && {
5710 test "$cross_compiling" = yes ||
5711 $as_test_x conftest$ac_exeext
5712 }; then
5713 { $as_echo "$as_me:$LINENO: result: yes" >&5
5714 $as_echo "yes" >&6; }
5715 else
5716 $as_echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5719 LDFLAGS=$late_LDFLAGS
5720 { $as_echo "$as_me:$LINENO: result: no" >&5
5721 $as_echo "no" >&6; }
5724 rm -rf conftest.dSYM
5725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5726 conftest$ac_exeext conftest.$ac_ext
5728 #### Extract some information from the operating system and machine files.
5730 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5731 - which libraries the lib-src programs will want, and
5732 - whether the GNU malloc routines are usable..." >&5
5733 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5734 - which libraries the lib-src programs will want, and
5735 - whether the GNU malloc routines are usable..." >&6;}
5737 ### First figure out CFLAGS (which we use for running the compiler here)
5738 ### and REAL_CFLAGS (which we use for real compilation).
5739 ### The two are the same except on a few systems, where they are made
5740 ### different to work around various lossages. For example,
5741 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5742 ### as implying static linking.
5744 ### If the CFLAGS env var is specified, we use that value
5745 ### instead of the default.
5747 ### It's not important that this name contain the PID; you can't run
5748 ### two configures in the same directory and have anything work
5749 ### anyway.
5750 tempcname="conftest.c"
5752 echo '
5753 #include "'${srcdir}'/src/'${opsysfile}'"
5754 #include "'${srcdir}'/src/'${machfile}'"
5755 #ifndef LIBS_MACHINE
5756 #define LIBS_MACHINE
5757 #endif
5758 #ifndef LIBS_SYSTEM
5759 #define LIBS_SYSTEM
5760 #endif
5761 #ifndef C_SWITCH_SYSTEM
5762 #define C_SWITCH_SYSTEM
5763 #endif
5764 #ifndef C_SWITCH_MACHINE
5765 #define C_SWITCH_MACHINE
5766 #endif
5767 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5768 configure___ c_switch_system=C_SWITCH_SYSTEM
5769 configure___ c_switch_machine=C_SWITCH_MACHINE
5771 #ifndef LIB_X11_LIB
5772 #define LIB_X11_LIB -lX11
5773 #endif
5775 configure___ LIBX=LIB_X11_LIB
5777 #ifdef UNEXEC
5778 configure___ unexec=UNEXEC
5779 #else
5780 configure___ unexec=unexec.o
5781 #endif
5783 #ifdef SYSTEM_MALLOC
5784 configure___ system_malloc=yes
5785 #else
5786 configure___ system_malloc=no
5787 #endif
5789 #ifdef USE_MMAP_FOR_BUFFERS
5790 configure___ use_mmap_for_buffers=yes
5791 #else
5792 configure___ use_mmap_for_buffers=no
5793 #endif
5795 #ifndef C_OPTIMIZE_SWITCH
5796 #ifdef __GNUC__
5797 #define C_OPTIMIZE_SWITCH -O2
5798 #else
5799 #define C_OPTIMIZE_SWITCH -O
5800 #endif
5801 #endif
5803 #ifndef C_WARNINGS_SWITCH
5804 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5805 #endif
5807 #ifndef LD_SWITCH_MACHINE
5808 #define LD_SWITCH_MACHINE
5809 #endif
5811 #ifndef LD_SWITCH_SYSTEM
5812 #define LD_SWITCH_SYSTEM
5813 #endif
5815 #ifndef LD_SWITCH_X_SITE_AUX
5816 #define LD_SWITCH_X_SITE_AUX
5817 #endif
5819 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5820 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5822 #ifdef THIS_IS_CONFIGURE
5824 /* Get the CFLAGS for tests in configure. */
5825 #ifdef __GNUC__
5826 configure___ CFLAGS=C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5827 #else
5828 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5829 #endif
5831 #else /* not THIS_IS_CONFIGURE */
5833 /* Get the CFLAGS for real compilation. */
5834 #ifdef __GNUC__
5835 configure___ REAL_CFLAGS=C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5836 #else
5837 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5838 #endif
5840 #endif /* not THIS_IS_CONFIGURE */
5841 ' > ${tempcname}
5843 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5845 # The value of CPP is a quoted variable reference, so we need to do this
5846 # to get its actual value...
5847 CPP=`eval "echo $CPP"`
5848 eval `${CPP} -Isrc ${tempcname} \
5849 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5850 if test "x$SPECIFIED_CFLAGS" = x; then
5851 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5852 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5853 else
5854 REAL_CFLAGS="$CFLAGS"
5856 rm ${tempcname}
5858 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5860 ### Make sure subsequent tests use flags consistent with the build flags.
5862 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5863 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5864 else
5865 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5870 # Check whether --enable-largefile was given.
5871 if test "${enable_largefile+set}" = set; then
5872 enableval=$enable_largefile;
5875 if test "$enable_largefile" != no; then
5877 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5878 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5879 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5880 $as_echo_n "(cached) " >&6
5881 else
5882 ac_cv_sys_largefile_CC=no
5883 if test "$GCC" != yes; then
5884 ac_save_CC=$CC
5885 while :; do
5886 # IRIX 6.2 and later do not support large files by default,
5887 # so use the C compiler's -n32 option if that helps.
5888 cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h. */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 #include <sys/types.h>
5895 /* Check that off_t can represent 2**63 - 1 correctly.
5896 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5897 since some C++ compilers masquerading as C compilers
5898 incorrectly reject 9223372036854775807. */
5899 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5900 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5901 && LARGE_OFF_T % 2147483647 == 1)
5902 ? 1 : -1];
5904 main ()
5908 return 0;
5910 _ACEOF
5911 rm -f conftest.$ac_objext
5912 if { (ac_try="$ac_compile"
5913 case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5916 esac
5917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5918 $as_echo "$ac_try_echo") >&5
5919 (eval "$ac_compile") 2>conftest.er1
5920 ac_status=$?
5921 grep -v '^ *+' conftest.er1 >conftest.err
5922 rm -f conftest.er1
5923 cat conftest.err >&5
5924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } && {
5926 test -z "$ac_c_werror_flag" ||
5927 test ! -s conftest.err
5928 } && test -s conftest.$ac_objext; then
5929 break
5930 else
5931 $as_echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5937 rm -f core conftest.err conftest.$ac_objext
5938 CC="$CC -n32"
5939 rm -f conftest.$ac_objext
5940 if { (ac_try="$ac_compile"
5941 case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5944 esac
5945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5946 $as_echo "$ac_try_echo") >&5
5947 (eval "$ac_compile") 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } && {
5954 test -z "$ac_c_werror_flag" ||
5955 test ! -s conftest.err
5956 } && test -s conftest.$ac_objext; then
5957 ac_cv_sys_largefile_CC=' -n32'; break
5958 else
5959 $as_echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5965 rm -f core conftest.err conftest.$ac_objext
5966 break
5967 done
5968 CC=$ac_save_CC
5969 rm -f conftest.$ac_ext
5972 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5973 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5974 if test "$ac_cv_sys_largefile_CC" != no; then
5975 CC=$CC$ac_cv_sys_largefile_CC
5978 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5979 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5980 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5981 $as_echo_n "(cached) " >&6
5982 else
5983 while :; do
5984 cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h. */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 #include <sys/types.h>
5991 /* Check that off_t can represent 2**63 - 1 correctly.
5992 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5993 since some C++ compilers masquerading as C compilers
5994 incorrectly reject 9223372036854775807. */
5995 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5997 && LARGE_OFF_T % 2147483647 == 1)
5998 ? 1 : -1];
6000 main ()
6004 return 0;
6006 _ACEOF
6007 rm -f conftest.$ac_objext
6008 if { (ac_try="$ac_compile"
6009 case "(($ac_try" in
6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6012 esac
6013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6014 $as_echo "$ac_try_echo") >&5
6015 (eval "$ac_compile") 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && {
6022 test -z "$ac_c_werror_flag" ||
6023 test ! -s conftest.err
6024 } && test -s conftest.$ac_objext; then
6025 ac_cv_sys_file_offset_bits=no; break
6026 else
6027 $as_echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h. */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 #define _FILE_OFFSET_BITS 64
6041 #include <sys/types.h>
6042 /* Check that off_t can represent 2**63 - 1 correctly.
6043 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6044 since some C++ compilers masquerading as C compilers
6045 incorrectly reject 9223372036854775807. */
6046 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6047 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6048 && LARGE_OFF_T % 2147483647 == 1)
6049 ? 1 : -1];
6051 main ()
6055 return 0;
6057 _ACEOF
6058 rm -f conftest.$ac_objext
6059 if { (ac_try="$ac_compile"
6060 case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063 esac
6064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6065 $as_echo "$ac_try_echo") >&5
6066 (eval "$ac_compile") 2>conftest.er1
6067 ac_status=$?
6068 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -f conftest.er1
6070 cat conftest.err >&5
6071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } && {
6073 test -z "$ac_c_werror_flag" ||
6074 test ! -s conftest.err
6075 } && test -s conftest.$ac_objext; then
6076 ac_cv_sys_file_offset_bits=64; break
6077 else
6078 $as_echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085 ac_cv_sys_file_offset_bits=unknown
6086 break
6087 done
6089 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6090 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6091 case $ac_cv_sys_file_offset_bits in #(
6092 no | unknown) ;;
6094 cat >>confdefs.h <<_ACEOF
6095 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6096 _ACEOF
6098 esac
6099 rm -rf conftest*
6100 if test $ac_cv_sys_file_offset_bits = unknown; then
6101 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6102 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6103 if test "${ac_cv_sys_large_files+set}" = set; then
6104 $as_echo_n "(cached) " >&6
6105 else
6106 while :; do
6107 cat >conftest.$ac_ext <<_ACEOF
6108 /* confdefs.h. */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 #include <sys/types.h>
6114 /* Check that off_t can represent 2**63 - 1 correctly.
6115 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6116 since some C++ compilers masquerading as C compilers
6117 incorrectly reject 9223372036854775807. */
6118 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6119 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6120 && LARGE_OFF_T % 2147483647 == 1)
6121 ? 1 : -1];
6123 main ()
6127 return 0;
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6132 case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135 esac
6136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137 $as_echo "$ac_try_echo") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.$ac_objext; then
6148 ac_cv_sys_large_files=no; break
6149 else
6150 $as_echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 #define _LARGE_FILES 1
6164 #include <sys/types.h>
6165 /* Check that off_t can represent 2**63 - 1 correctly.
6166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6167 since some C++ compilers masquerading as C compilers
6168 incorrectly reject 9223372036854775807. */
6169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6171 && LARGE_OFF_T % 2147483647 == 1)
6172 ? 1 : -1];
6174 main ()
6178 return 0;
6180 _ACEOF
6181 rm -f conftest.$ac_objext
6182 if { (ac_try="$ac_compile"
6183 case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6186 esac
6187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6188 $as_echo "$ac_try_echo") >&5
6189 (eval "$ac_compile") 2>conftest.er1
6190 ac_status=$?
6191 grep -v '^ *+' conftest.er1 >conftest.err
6192 rm -f conftest.er1
6193 cat conftest.err >&5
6194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } && {
6196 test -z "$ac_c_werror_flag" ||
6197 test ! -s conftest.err
6198 } && test -s conftest.$ac_objext; then
6199 ac_cv_sys_large_files=1; break
6200 else
6201 $as_echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 ac_cv_sys_large_files=unknown
6209 break
6210 done
6212 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6213 $as_echo "$ac_cv_sys_large_files" >&6; }
6214 case $ac_cv_sys_large_files in #(
6215 no | unknown) ;;
6217 cat >>confdefs.h <<_ACEOF
6218 #define _LARGE_FILES $ac_cv_sys_large_files
6219 _ACEOF
6221 esac
6222 rm -rf conftest*
6228 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6229 ### be located in either /usr/lib64 or /usr/lib.
6230 ### In some rare cases, /usr/lib64 exists but does not contain the
6231 ### relevant files (bug#1287). Hence test for crtn.o.
6232 case "${canonical}" in
6233 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6234 if test -e /usr/lib64/crtn.o; then
6236 cat >>confdefs.h <<\_ACEOF
6237 #define HAVE_LIB64_DIR 1
6238 _ACEOF
6241 esac
6246 if test "${with_sound}" != "no"; then
6247 # Sound support for GNU/Linux and the free BSDs.
6251 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6255 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6256 $as_echo_n "checking for $ac_header... " >&6; }
6257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6258 $as_echo_n "(cached) " >&6
6260 ac_res=`eval 'as_val=${'$as_ac_Header'}
6261 $as_echo "$as_val"'`
6262 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6263 $as_echo "$ac_res" >&6; }
6264 else
6265 # Is the header compilable?
6266 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6267 $as_echo_n "checking $ac_header usability... " >&6; }
6268 cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h. */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 $ac_includes_default
6275 #include <$ac_header>
6276 _ACEOF
6277 rm -f conftest.$ac_objext
6278 if { (ac_try="$ac_compile"
6279 case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282 esac
6283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6284 $as_echo "$ac_try_echo") >&5
6285 (eval "$ac_compile") 2>conftest.er1
6286 ac_status=$?
6287 grep -v '^ *+' conftest.er1 >conftest.err
6288 rm -f conftest.er1
6289 cat conftest.err >&5
6290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } && {
6292 test -z "$ac_c_werror_flag" ||
6293 test ! -s conftest.err
6294 } && test -s conftest.$ac_objext; then
6295 ac_header_compiler=yes
6296 else
6297 $as_echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6300 ac_header_compiler=no
6303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6305 $as_echo "$ac_header_compiler" >&6; }
6307 # Is the header present?
6308 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6309 $as_echo_n "checking $ac_header presence... " >&6; }
6310 cat >conftest.$ac_ext <<_ACEOF
6311 /* confdefs.h. */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6316 #include <$ac_header>
6317 _ACEOF
6318 if { (ac_try="$ac_cpp conftest.$ac_ext"
6319 case "(($ac_try" in
6320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321 *) ac_try_echo=$ac_try;;
6322 esac
6323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6324 $as_echo "$ac_try_echo") >&5
6325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6326 ac_status=$?
6327 grep -v '^ *+' conftest.er1 >conftest.err
6328 rm -f conftest.er1
6329 cat conftest.err >&5
6330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } >/dev/null && {
6332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6333 test ! -s conftest.err
6334 }; then
6335 ac_header_preproc=yes
6336 else
6337 $as_echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6340 ac_header_preproc=no
6343 rm -f conftest.err conftest.$ac_ext
6344 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6345 $as_echo "$ac_header_preproc" >&6; }
6347 # So? What about this header?
6348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6349 yes:no: )
6350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6351 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6353 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6354 ac_header_preproc=yes
6356 no:yes:* )
6357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6358 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6360 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6362 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6364 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6366 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6368 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6371 esac
6372 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6373 $as_echo_n "checking for $ac_header... " >&6; }
6374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6375 $as_echo_n "(cached) " >&6
6376 else
6377 eval "$as_ac_Header=\$ac_header_preproc"
6379 ac_res=`eval 'as_val=${'$as_ac_Header'}
6380 $as_echo "$as_val"'`
6381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6382 $as_echo "$ac_res" >&6; }
6385 as_val=`eval 'as_val=${'$as_ac_Header'}
6386 $as_echo "$as_val"'`
6387 if test "x$as_val" = x""yes; then
6388 cat >>confdefs.h <<_ACEOF
6389 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6390 _ACEOF
6394 done
6396 # Emulation library used on NetBSD.
6397 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6398 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6399 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6400 $as_echo_n "(cached) " >&6
6401 else
6402 ac_check_lib_save_LIBS=$LIBS
6403 LIBS="-lossaudio $LIBS"
6404 cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h. */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6411 /* Override any GCC internal prototype to avoid an error.
6412 Use char because int might match the return type of a GCC
6413 builtin and then its argument prototype would still apply. */
6414 #ifdef __cplusplus
6415 extern "C"
6416 #endif
6417 char _oss_ioctl ();
6419 main ()
6421 return _oss_ioctl ();
6423 return 0;
6425 _ACEOF
6426 rm -f conftest.$ac_objext conftest$ac_exeext
6427 if { (ac_try="$ac_link"
6428 case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431 esac
6432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6433 $as_echo "$ac_try_echo") >&5
6434 (eval "$ac_link") 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && {
6441 test -z "$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6443 } && test -s conftest$ac_exeext && {
6444 test "$cross_compiling" = yes ||
6445 $as_test_x conftest$ac_exeext
6446 }; then
6447 ac_cv_lib_ossaudio__oss_ioctl=yes
6448 else
6449 $as_echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 ac_cv_lib_ossaudio__oss_ioctl=no
6455 rm -rf conftest.dSYM
6456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6457 conftest$ac_exeext conftest.$ac_ext
6458 LIBS=$ac_check_lib_save_LIBS
6460 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6461 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6462 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then
6463 LIBSOUND=-lossaudio
6464 else
6465 LIBSOUND=
6470 ALSA_REQUIRED=1.0.0
6471 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6473 succeeded=no
6475 # Extract the first word of "pkg-config", so it can be a program name with args.
6476 set dummy pkg-config; ac_word=$2
6477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6480 $as_echo_n "(cached) " >&6
6481 else
6482 case $PKG_CONFIG in
6483 [\\/]* | ?:[\\/]*)
6484 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6495 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 break 2
6498 done
6499 done
6500 IFS=$as_save_IFS
6502 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6504 esac
6506 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6507 if test -n "$PKG_CONFIG"; then
6508 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6509 $as_echo "$PKG_CONFIG" >&6; }
6510 else
6511 { $as_echo "$as_me:$LINENO: result: no" >&5
6512 $as_echo "no" >&6; }
6517 if test "$PKG_CONFIG" = "no" ; then
6518 HAVE_ALSA=no
6519 else
6520 PKG_CONFIG_MIN_VERSION=0.9.0
6521 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6522 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6523 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6525 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6526 { $as_echo "$as_me:$LINENO: result: yes" >&5
6527 $as_echo "yes" >&6; }
6528 succeeded=yes
6530 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6531 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6532 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6533 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6534 $as_echo "$ALSA_CFLAGS" >&6; }
6536 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6537 $as_echo_n "checking ALSA_LIBS... " >&6; }
6538 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6539 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6540 $as_echo "$ALSA_LIBS" >&6; }
6541 else
6542 { $as_echo "$as_me:$LINENO: result: no" >&5
6543 $as_echo "no" >&6; }
6544 ALSA_CFLAGS=""
6545 ALSA_LIBS=""
6546 ## If we have a custom action on failure, don't print errors, but
6547 ## do set a variable so people can do so.
6548 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6554 else
6555 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6556 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6560 if test $succeeded = yes; then
6561 HAVE_ALSA=yes
6562 else
6563 HAVE_ALSA=no
6566 if test $HAVE_ALSA = yes; then
6567 SAVE_CFLAGS="$CFLAGS"
6568 SAVE_LDFLAGS="$LDFLAGS"
6569 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6570 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6571 cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h. */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 #include <asoundlib.h>
6579 main ()
6581 snd_lib_error_set_handler (0);
6583 return 0;
6585 _ACEOF
6586 rm -f conftest.$ac_objext
6587 if { (ac_try="$ac_compile"
6588 case "(($ac_try" in
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6591 esac
6592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6593 $as_echo "$ac_try_echo") >&5
6594 (eval "$ac_compile") 2>conftest.er1
6595 ac_status=$?
6596 grep -v '^ *+' conftest.er1 >conftest.err
6597 rm -f conftest.er1
6598 cat conftest.err >&5
6599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } && {
6601 test -z "$ac_c_werror_flag" ||
6602 test ! -s conftest.err
6603 } && test -s conftest.$ac_objext; then
6604 emacs_alsa_normal=yes
6605 else
6606 $as_echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 emacs_alsa_normal=no
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 if test "$emacs_alsa_normal" != yes; then
6614 cat >conftest.$ac_ext <<_ACEOF
6615 /* confdefs.h. */
6616 _ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 #include <alsa/asoundlib.h>
6622 main ()
6624 snd_lib_error_set_handler (0);
6626 return 0;
6628 _ACEOF
6629 rm -f conftest.$ac_objext
6630 if { (ac_try="$ac_compile"
6631 case "(($ac_try" in
6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633 *) ac_try_echo=$ac_try;;
6634 esac
6635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6636 $as_echo "$ac_try_echo") >&5
6637 (eval "$ac_compile") 2>conftest.er1
6638 ac_status=$?
6639 grep -v '^ *+' conftest.er1 >conftest.err
6640 rm -f conftest.er1
6641 cat conftest.err >&5
6642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && {
6644 test -z "$ac_c_werror_flag" ||
6645 test ! -s conftest.err
6646 } && test -s conftest.$ac_objext; then
6647 emacs_alsa_subdir=yes
6648 else
6649 $as_echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6652 emacs_alsa_subdir=no
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656 if test "$emacs_alsa_subdir" != yes; then
6657 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6658 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6659 { (exit 1); exit 1; }; }
6661 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6664 CFLAGS="$SAVE_CFLAGS"
6665 LDFLAGS="$SAVE_LDFLAGS"
6666 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6667 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6669 cat >>confdefs.h <<\_ACEOF
6670 #define HAVE_ALSA 1
6671 _ACEOF
6702 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6703 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6704 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6705 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6706 sys/utsname.h pwd.h utmp.h
6708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6710 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6711 $as_echo_n "checking for $ac_header... " >&6; }
6712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6713 $as_echo_n "(cached) " >&6
6715 ac_res=`eval 'as_val=${'$as_ac_Header'}
6716 $as_echo "$as_val"'`
6717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6718 $as_echo "$ac_res" >&6; }
6719 else
6720 # Is the header compilable?
6721 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6722 $as_echo_n "checking $ac_header usability... " >&6; }
6723 cat >conftest.$ac_ext <<_ACEOF
6724 /* confdefs.h. */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6729 $ac_includes_default
6730 #include <$ac_header>
6731 _ACEOF
6732 rm -f conftest.$ac_objext
6733 if { (ac_try="$ac_compile"
6734 case "(($ac_try" in
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6737 esac
6738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6739 $as_echo "$ac_try_echo") >&5
6740 (eval "$ac_compile") 2>conftest.er1
6741 ac_status=$?
6742 grep -v '^ *+' conftest.er1 >conftest.err
6743 rm -f conftest.er1
6744 cat conftest.err >&5
6745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } && {
6747 test -z "$ac_c_werror_flag" ||
6748 test ! -s conftest.err
6749 } && test -s conftest.$ac_objext; then
6750 ac_header_compiler=yes
6751 else
6752 $as_echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6755 ac_header_compiler=no
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6760 $as_echo "$ac_header_compiler" >&6; }
6762 # Is the header present?
6763 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6764 $as_echo_n "checking $ac_header presence... " >&6; }
6765 cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h. */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 #include <$ac_header>
6772 _ACEOF
6773 if { (ac_try="$ac_cpp conftest.$ac_ext"
6774 case "(($ac_try" in
6775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776 *) ac_try_echo=$ac_try;;
6777 esac
6778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6779 $as_echo "$ac_try_echo") >&5
6780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6781 ac_status=$?
6782 grep -v '^ *+' conftest.er1 >conftest.err
6783 rm -f conftest.er1
6784 cat conftest.err >&5
6785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } >/dev/null && {
6787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6788 test ! -s conftest.err
6789 }; then
6790 ac_header_preproc=yes
6791 else
6792 $as_echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6795 ac_header_preproc=no
6798 rm -f conftest.err conftest.$ac_ext
6799 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6800 $as_echo "$ac_header_preproc" >&6; }
6802 # So? What about this header?
6803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6804 yes:no: )
6805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6806 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6807 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6808 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6809 ac_header_preproc=yes
6811 no:yes:* )
6812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6813 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6815 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6817 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6819 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6821 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6823 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6826 esac
6827 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6828 $as_echo_n "checking for $ac_header... " >&6; }
6829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6830 $as_echo_n "(cached) " >&6
6831 else
6832 eval "$as_ac_Header=\$ac_header_preproc"
6834 ac_res=`eval 'as_val=${'$as_ac_Header'}
6835 $as_echo "$as_val"'`
6836 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6837 $as_echo "$ac_res" >&6; }
6840 as_val=`eval 'as_val=${'$as_ac_Header'}
6841 $as_echo "$as_val"'`
6842 if test "x$as_val" = x""yes; then
6843 cat >>confdefs.h <<_ACEOF
6844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6845 _ACEOF
6849 done
6852 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6853 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 #include <sys/personality.h>
6862 main ()
6864 personality (PER_LINUX32)
6866 return 0;
6868 _ACEOF
6869 rm -f conftest.$ac_objext
6870 if { (ac_try="$ac_compile"
6871 case "(($ac_try" in
6872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6874 esac
6875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6876 $as_echo "$ac_try_echo") >&5
6877 (eval "$ac_compile") 2>conftest.er1
6878 ac_status=$?
6879 grep -v '^ *+' conftest.er1 >conftest.err
6880 rm -f conftest.er1
6881 cat conftest.err >&5
6882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } && {
6884 test -z "$ac_c_werror_flag" ||
6885 test ! -s conftest.err
6886 } && test -s conftest.$ac_objext; then
6887 emacs_cv_personality_linux32=yes
6888 else
6889 $as_echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6892 emacs_cv_personality_linux32=no
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6897 $as_echo "$emacs_cv_personality_linux32" >&6; }
6899 if test $emacs_cv_personality_linux32 = yes; then
6901 cat >>confdefs.h <<\_ACEOF
6902 #define HAVE_PERSONALITY_LINUX32 1
6903 _ACEOF
6908 for ac_header in term.h
6910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6912 $as_echo_n "checking for $ac_header... " >&6; }
6913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6914 $as_echo_n "(cached) " >&6
6915 else
6916 cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h. */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6922 #include <$ac_header>
6923 _ACEOF
6924 if { (ac_try="$ac_cpp conftest.$ac_ext"
6925 case "(($ac_try" in
6926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927 *) ac_try_echo=$ac_try;;
6928 esac
6929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6930 $as_echo "$ac_try_echo") >&5
6931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } >/dev/null && {
6938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6939 test ! -s conftest.err
6940 }; then
6941 eval "$as_ac_Header=yes"
6942 else
6943 $as_echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6946 eval "$as_ac_Header=no"
6949 rm -f conftest.err conftest.$ac_ext
6951 ac_res=`eval 'as_val=${'$as_ac_Header'}
6952 $as_echo "$as_val"'`
6953 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6954 $as_echo "$ac_res" >&6; }
6955 as_val=`eval 'as_val=${'$as_ac_Header'}
6956 $as_echo "$as_val"'`
6957 if test "x$as_val" = x""yes; then
6958 cat >>confdefs.h <<_ACEOF
6959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6960 _ACEOF
6964 done
6966 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6967 $as_echo_n "checking for ANSI C header files... " >&6; }
6968 if test "${ac_cv_header_stdc+set}" = set; then
6969 $as_echo_n "(cached) " >&6
6970 else
6971 cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h. */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 #include <stdlib.h>
6978 #include <stdarg.h>
6979 #include <string.h>
6980 #include <float.h>
6983 main ()
6987 return 0;
6989 _ACEOF
6990 rm -f conftest.$ac_objext
6991 if { (ac_try="$ac_compile"
6992 case "(($ac_try" in
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6995 esac
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998 (eval "$ac_compile") 2>conftest.er1
6999 ac_status=$?
7000 grep -v '^ *+' conftest.er1 >conftest.err
7001 rm -f conftest.er1
7002 cat conftest.err >&5
7003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } && {
7005 test -z "$ac_c_werror_flag" ||
7006 test ! -s conftest.err
7007 } && test -s conftest.$ac_objext; then
7008 ac_cv_header_stdc=yes
7009 else
7010 $as_echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7013 ac_cv_header_stdc=no
7016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 if test $ac_cv_header_stdc = yes; then
7019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 #include <string.h>
7028 _ACEOF
7029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7030 $EGREP "memchr" >/dev/null 2>&1; then
7032 else
7033 ac_cv_header_stdc=no
7035 rm -f conftest*
7039 if test $ac_cv_header_stdc = yes; then
7040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 #include <stdlib.h>
7049 _ACEOF
7050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7051 $EGREP "free" >/dev/null 2>&1; then
7053 else
7054 ac_cv_header_stdc=no
7056 rm -f conftest*
7060 if test $ac_cv_header_stdc = yes; then
7061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7062 if test "$cross_compiling" = yes; then
7064 else
7065 cat >conftest.$ac_ext <<_ACEOF
7066 /* confdefs.h. */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7071 #include <ctype.h>
7072 #include <stdlib.h>
7073 #if ((' ' & 0x0FF) == 0x020)
7074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7076 #else
7077 # define ISLOWER(c) \
7078 (('a' <= (c) && (c) <= 'i') \
7079 || ('j' <= (c) && (c) <= 'r') \
7080 || ('s' <= (c) && (c) <= 'z'))
7081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7082 #endif
7084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7086 main ()
7088 int i;
7089 for (i = 0; i < 256; i++)
7090 if (XOR (islower (i), ISLOWER (i))
7091 || toupper (i) != TOUPPER (i))
7092 return 2;
7093 return 0;
7095 _ACEOF
7096 rm -f conftest$ac_exeext
7097 if { (ac_try="$ac_link"
7098 case "(($ac_try" in
7099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100 *) ac_try_echo=$ac_try;;
7101 esac
7102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7103 $as_echo "$ac_try_echo") >&5
7104 (eval "$ac_link") 2>&5
7105 ac_status=$?
7106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7108 { (case "(($ac_try" in
7109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110 *) ac_try_echo=$ac_try;;
7111 esac
7112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7113 $as_echo "$ac_try_echo") >&5
7114 (eval "$ac_try") 2>&5
7115 ac_status=$?
7116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7119 else
7120 $as_echo "$as_me: program exited with status $ac_status" >&5
7121 $as_echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7124 ( exit $ac_status )
7125 ac_cv_header_stdc=no
7127 rm -rf conftest.dSYM
7128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7134 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7135 $as_echo "$ac_cv_header_stdc" >&6; }
7136 if test $ac_cv_header_stdc = yes; then
7138 cat >>confdefs.h <<\_ACEOF
7139 #define STDC_HEADERS 1
7140 _ACEOF
7144 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7145 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7146 if test "${ac_cv_header_time+set}" = set; then
7147 $as_echo_n "(cached) " >&6
7148 else
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 #include <sys/types.h>
7156 #include <sys/time.h>
7157 #include <time.h>
7160 main ()
7162 if ((struct tm *) 0)
7163 return 0;
7165 return 0;
7167 _ACEOF
7168 rm -f conftest.$ac_objext
7169 if { (ac_try="$ac_compile"
7170 case "(($ac_try" in
7171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7172 *) ac_try_echo=$ac_try;;
7173 esac
7174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7175 $as_echo "$ac_try_echo") >&5
7176 (eval "$ac_compile") 2>conftest.er1
7177 ac_status=$?
7178 grep -v '^ *+' conftest.er1 >conftest.err
7179 rm -f conftest.er1
7180 cat conftest.err >&5
7181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } && {
7183 test -z "$ac_c_werror_flag" ||
7184 test ! -s conftest.err
7185 } && test -s conftest.$ac_objext; then
7186 ac_cv_header_time=yes
7187 else
7188 $as_echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7191 ac_cv_header_time=no
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7197 $as_echo "$ac_cv_header_time" >&6; }
7198 if test $ac_cv_header_time = yes; then
7200 cat >>confdefs.h <<\_ACEOF
7201 #define TIME_WITH_SYS_TIME 1
7202 _ACEOF
7206 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7207 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7208 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7209 $as_echo_n "(cached) " >&6
7210 else
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 $ac_includes_default
7219 main ()
7221 #ifndef sys_siglist
7222 (void) sys_siglist;
7223 #endif
7226 return 0;
7228 _ACEOF
7229 rm -f conftest.$ac_objext
7230 if { (ac_try="$ac_compile"
7231 case "(($ac_try" in
7232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7234 esac
7235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7236 $as_echo "$ac_try_echo") >&5
7237 (eval "$ac_compile") 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && {
7244 test -z "$ac_c_werror_flag" ||
7245 test ! -s conftest.err
7246 } && test -s conftest.$ac_objext; then
7247 ac_cv_have_decl_sys_siglist=yes
7248 else
7249 $as_echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7252 ac_cv_have_decl_sys_siglist=no
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7258 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7259 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
7261 cat >>confdefs.h <<_ACEOF
7262 #define HAVE_DECL_SYS_SIGLIST 1
7263 _ACEOF
7266 else
7267 cat >>confdefs.h <<_ACEOF
7268 #define HAVE_DECL_SYS_SIGLIST 0
7269 _ACEOF
7275 if test $ac_cv_have_decl_sys_siglist != yes; then
7276 # For Tru64, at least:
7277 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7278 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7279 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7280 $as_echo_n "(cached) " >&6
7281 else
7282 cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h. */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 $ac_includes_default
7290 main ()
7292 #ifndef __sys_siglist
7293 (void) __sys_siglist;
7294 #endif
7297 return 0;
7299 _ACEOF
7300 rm -f conftest.$ac_objext
7301 if { (ac_try="$ac_compile"
7302 case "(($ac_try" in
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7305 esac
7306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7307 $as_echo "$ac_try_echo") >&5
7308 (eval "$ac_compile") 2>conftest.er1
7309 ac_status=$?
7310 grep -v '^ *+' conftest.er1 >conftest.err
7311 rm -f conftest.er1
7312 cat conftest.err >&5
7313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } && {
7315 test -z "$ac_c_werror_flag" ||
7316 test ! -s conftest.err
7317 } && test -s conftest.$ac_objext; then
7318 ac_cv_have_decl___sys_siglist=yes
7319 else
7320 $as_echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7323 ac_cv_have_decl___sys_siglist=no
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7329 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7330 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then
7332 cat >>confdefs.h <<_ACEOF
7333 #define HAVE_DECL___SYS_SIGLIST 1
7334 _ACEOF
7337 else
7338 cat >>confdefs.h <<_ACEOF
7339 #define HAVE_DECL___SYS_SIGLIST 0
7340 _ACEOF
7346 if test $ac_cv_have_decl___sys_siglist = yes; then
7348 cat >>confdefs.h <<\_ACEOF
7349 #define sys_siglist __sys_siglist
7350 _ACEOF
7354 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7355 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7356 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7357 $as_echo_n "(cached) " >&6
7358 else
7359 cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h. */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 #include <sys/types.h>
7366 #include <sys/wait.h>
7367 #ifndef WEXITSTATUS
7368 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7369 #endif
7370 #ifndef WIFEXITED
7371 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7372 #endif
7375 main ()
7377 int s;
7378 wait (&s);
7379 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7381 return 0;
7383 _ACEOF
7384 rm -f conftest.$ac_objext
7385 if { (ac_try="$ac_compile"
7386 case "(($ac_try" in
7387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7388 *) ac_try_echo=$ac_try;;
7389 esac
7390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7391 $as_echo "$ac_try_echo") >&5
7392 (eval "$ac_compile") 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
7396 cat conftest.err >&5
7397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && {
7399 test -z "$ac_c_werror_flag" ||
7400 test ! -s conftest.err
7401 } && test -s conftest.$ac_objext; then
7402 ac_cv_header_sys_wait_h=yes
7403 else
7404 $as_echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7407 ac_cv_header_sys_wait_h=no
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7413 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7414 if test $ac_cv_header_sys_wait_h = yes; then
7416 cat >>confdefs.h <<\_ACEOF
7417 #define HAVE_SYS_WAIT_H 1
7418 _ACEOF
7423 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7424 $as_echo_n "checking for struct utimbuf... " >&6; }
7425 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7426 $as_echo_n "(cached) " >&6
7427 else
7428 cat >conftest.$ac_ext <<_ACEOF
7429 /* confdefs.h. */
7430 _ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434 #ifdef TIME_WITH_SYS_TIME
7435 #include <sys/time.h>
7436 #include <time.h>
7437 #else
7438 #ifdef HAVE_SYS_TIME_H
7439 #include <sys/time.h>
7440 #else
7441 #include <time.h>
7442 #endif
7443 #endif
7444 #ifdef HAVE_UTIME_H
7445 #include <utime.h>
7446 #endif
7448 main ()
7450 static struct utimbuf x; x.actime = x.modtime;
7452 return 0;
7454 _ACEOF
7455 rm -f conftest.$ac_objext
7456 if { (ac_try="$ac_compile"
7457 case "(($ac_try" in
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7460 esac
7461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7462 $as_echo "$ac_try_echo") >&5
7463 (eval "$ac_compile") 2>conftest.er1
7464 ac_status=$?
7465 grep -v '^ *+' conftest.er1 >conftest.err
7466 rm -f conftest.er1
7467 cat conftest.err >&5
7468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } && {
7470 test -z "$ac_c_werror_flag" ||
7471 test ! -s conftest.err
7472 } && test -s conftest.$ac_objext; then
7473 emacs_cv_struct_utimbuf=yes
7474 else
7475 $as_echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7478 emacs_cv_struct_utimbuf=no
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7484 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7485 if test $emacs_cv_struct_utimbuf = yes; then
7487 cat >>confdefs.h <<\_ACEOF
7488 #define HAVE_STRUCT_UTIMBUF 1
7489 _ACEOF
7493 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7494 $as_echo_n "checking return type of signal handlers... " >&6; }
7495 if test "${ac_cv_type_signal+set}" = set; then
7496 $as_echo_n "(cached) " >&6
7497 else
7498 cat >conftest.$ac_ext <<_ACEOF
7499 /* confdefs.h. */
7500 _ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7504 #include <sys/types.h>
7505 #include <signal.h>
7508 main ()
7510 return *(signal (0, 0)) (0) == 1;
7512 return 0;
7514 _ACEOF
7515 rm -f conftest.$ac_objext
7516 if { (ac_try="$ac_compile"
7517 case "(($ac_try" in
7518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519 *) ac_try_echo=$ac_try;;
7520 esac
7521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7522 $as_echo "$ac_try_echo") >&5
7523 (eval "$ac_compile") 2>conftest.er1
7524 ac_status=$?
7525 grep -v '^ *+' conftest.er1 >conftest.err
7526 rm -f conftest.er1
7527 cat conftest.err >&5
7528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } && {
7530 test -z "$ac_c_werror_flag" ||
7531 test ! -s conftest.err
7532 } && test -s conftest.$ac_objext; then
7533 ac_cv_type_signal=int
7534 else
7535 $as_echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 ac_cv_type_signal=void
7541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7544 $as_echo "$ac_cv_type_signal" >&6; }
7546 cat >>confdefs.h <<_ACEOF
7547 #define RETSIGTYPE $ac_cv_type_signal
7548 _ACEOF
7552 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7553 $as_echo_n "checking for speed_t... " >&6; }
7554 if test "${emacs_cv_speed_t+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7556 else
7557 cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h. */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 #include <termios.h>
7565 main ()
7567 speed_t x = 1;
7569 return 0;
7571 _ACEOF
7572 rm -f conftest.$ac_objext
7573 if { (ac_try="$ac_compile"
7574 case "(($ac_try" in
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7577 esac
7578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7579 $as_echo "$ac_try_echo") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
7590 emacs_cv_speed_t=yes
7591 else
7592 $as_echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 emacs_cv_speed_t=no
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7601 $as_echo "$emacs_cv_speed_t" >&6; }
7602 if test $emacs_cv_speed_t = yes; then
7604 cat >>confdefs.h <<\_ACEOF
7605 #define HAVE_SPEED_T 1
7606 _ACEOF
7610 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7611 $as_echo_n "checking for struct timeval... " >&6; }
7612 if test "${emacs_cv_struct_timeval+set}" = set; then
7613 $as_echo_n "(cached) " >&6
7614 else
7615 cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h. */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 #ifdef TIME_WITH_SYS_TIME
7622 #include <sys/time.h>
7623 #include <time.h>
7624 #else
7625 #ifdef HAVE_SYS_TIME_H
7626 #include <sys/time.h>
7627 #else
7628 #include <time.h>
7629 #endif
7630 #endif
7632 main ()
7634 static struct timeval x; x.tv_sec = x.tv_usec;
7636 return 0;
7638 _ACEOF
7639 rm -f conftest.$ac_objext
7640 if { (ac_try="$ac_compile"
7641 case "(($ac_try" in
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7644 esac
7645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7646 $as_echo "$ac_try_echo") >&5
7647 (eval "$ac_compile") 2>conftest.er1
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } && {
7654 test -z "$ac_c_werror_flag" ||
7655 test ! -s conftest.err
7656 } && test -s conftest.$ac_objext; then
7657 emacs_cv_struct_timeval=yes
7658 else
7659 $as_echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7662 emacs_cv_struct_timeval=no
7665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7668 $as_echo "$emacs_cv_struct_timeval" >&6; }
7669 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7670 if test $emacs_cv_struct_timeval = yes; then
7672 cat >>confdefs.h <<\_ACEOF
7673 #define HAVE_TIMEVAL 1
7674 _ACEOF
7678 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7679 $as_echo_n "checking for struct exception... " >&6; }
7680 if test "${emacs_cv_struct_exception+set}" = set; then
7681 $as_echo_n "(cached) " >&6
7682 else
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 #include <math.h>
7691 main ()
7693 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7695 return 0;
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (ac_try="$ac_compile"
7700 case "(($ac_try" in
7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702 *) ac_try_echo=$ac_try;;
7703 esac
7704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7705 $as_echo "$ac_try_echo") >&5
7706 (eval "$ac_compile") 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && {
7713 test -z "$ac_c_werror_flag" ||
7714 test ! -s conftest.err
7715 } && test -s conftest.$ac_objext; then
7716 emacs_cv_struct_exception=yes
7717 else
7718 $as_echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7721 emacs_cv_struct_exception=no
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7727 $as_echo "$emacs_cv_struct_exception" >&6; }
7728 HAVE_EXCEPTION=$emacs_cv_struct_exception
7729 if test $emacs_cv_struct_exception != yes; then
7731 cat >>confdefs.h <<\_ACEOF
7732 #define NO_MATHERR 1
7733 _ACEOF
7738 for ac_header in sys/socket.h
7740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7742 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7743 $as_echo_n "checking for $ac_header... " >&6; }
7744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7745 $as_echo_n "(cached) " >&6
7747 ac_res=`eval 'as_val=${'$as_ac_Header'}
7748 $as_echo "$as_val"'`
7749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7750 $as_echo "$ac_res" >&6; }
7751 else
7752 # Is the header compilable?
7753 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7754 $as_echo_n "checking $ac_header usability... " >&6; }
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h. */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761 $ac_includes_default
7762 #include <$ac_header>
7763 _ACEOF
7764 rm -f conftest.$ac_objext
7765 if { (ac_try="$ac_compile"
7766 case "(($ac_try" in
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7769 esac
7770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7771 $as_echo "$ac_try_echo") >&5
7772 (eval "$ac_compile") 2>conftest.er1
7773 ac_status=$?
7774 grep -v '^ *+' conftest.er1 >conftest.err
7775 rm -f conftest.er1
7776 cat conftest.err >&5
7777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } && {
7779 test -z "$ac_c_werror_flag" ||
7780 test ! -s conftest.err
7781 } && test -s conftest.$ac_objext; then
7782 ac_header_compiler=yes
7783 else
7784 $as_echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7787 ac_header_compiler=no
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7792 $as_echo "$ac_header_compiler" >&6; }
7794 # Is the header present?
7795 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7796 $as_echo_n "checking $ac_header presence... " >&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 #include <$ac_header>
7804 _ACEOF
7805 if { (ac_try="$ac_cpp conftest.$ac_ext"
7806 case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7809 esac
7810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7811 $as_echo "$ac_try_echo") >&5
7812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7813 ac_status=$?
7814 grep -v '^ *+' conftest.er1 >conftest.err
7815 rm -f conftest.er1
7816 cat conftest.err >&5
7817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } >/dev/null && {
7819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7820 test ! -s conftest.err
7821 }; then
7822 ac_header_preproc=yes
7823 else
7824 $as_echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7827 ac_header_preproc=no
7830 rm -f conftest.err conftest.$ac_ext
7831 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7832 $as_echo "$ac_header_preproc" >&6; }
7834 # So? What about this header?
7835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7836 yes:no: )
7837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7838 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7840 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7841 ac_header_preproc=yes
7843 no:yes:* )
7844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7845 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7847 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7849 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7851 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7853 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7855 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7858 esac
7859 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7860 $as_echo_n "checking for $ac_header... " >&6; }
7861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7862 $as_echo_n "(cached) " >&6
7863 else
7864 eval "$as_ac_Header=\$ac_header_preproc"
7866 ac_res=`eval 'as_val=${'$as_ac_Header'}
7867 $as_echo "$as_val"'`
7868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7869 $as_echo "$ac_res" >&6; }
7872 as_val=`eval 'as_val=${'$as_ac_Header'}
7873 $as_echo "$as_val"'`
7874 if test "x$as_val" = x""yes; then
7875 cat >>confdefs.h <<_ACEOF
7876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7877 _ACEOF
7881 done
7884 for ac_header in net/if.h
7886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7888 $as_echo_n "checking for $ac_header... " >&6; }
7889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7890 $as_echo_n "(cached) " >&6
7891 else
7892 cat >conftest.$ac_ext <<_ACEOF
7893 /* confdefs.h. */
7894 _ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h. */
7898 $ac_includes_default
7899 #if HAVE_SYS_SOCKET_H
7900 #include <sys/socket.h>
7901 #endif
7903 #include <$ac_header>
7904 _ACEOF
7905 rm -f conftest.$ac_objext
7906 if { (ac_try="$ac_compile"
7907 case "(($ac_try" in
7908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909 *) ac_try_echo=$ac_try;;
7910 esac
7911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7912 $as_echo "$ac_try_echo") >&5
7913 (eval "$ac_compile") 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && {
7920 test -z "$ac_c_werror_flag" ||
7921 test ! -s conftest.err
7922 } && test -s conftest.$ac_objext; then
7923 eval "$as_ac_Header=yes"
7924 else
7925 $as_echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 eval "$as_ac_Header=no"
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933 ac_res=`eval 'as_val=${'$as_ac_Header'}
7934 $as_echo "$as_val"'`
7935 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7936 $as_echo "$ac_res" >&6; }
7937 as_val=`eval 'as_val=${'$as_ac_Header'}
7938 $as_echo "$as_val"'`
7939 if test "x$as_val" = x""yes; then
7940 cat >>confdefs.h <<_ACEOF
7941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7942 _ACEOF
7946 done
7949 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7950 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7951 if test "${ac_cv_struct_tm+set}" = set; then
7952 $as_echo_n "(cached) " >&6
7953 else
7954 cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h. */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7960 #include <sys/types.h>
7961 #include <time.h>
7964 main ()
7966 struct tm tm;
7967 int *p = &tm.tm_sec;
7968 return !p;
7970 return 0;
7972 _ACEOF
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7975 case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978 esac
7979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.$ac_objext; then
7991 ac_cv_struct_tm=time.h
7992 else
7993 $as_echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 ac_cv_struct_tm=sys/time.h
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8002 $as_echo "$ac_cv_struct_tm" >&6; }
8003 if test $ac_cv_struct_tm = sys/time.h; then
8005 cat >>confdefs.h <<\_ACEOF
8006 #define TM_IN_SYS_TIME 1
8007 _ACEOF
8011 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8012 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8013 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8014 $as_echo_n "(cached) " >&6
8015 else
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h. */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 #include <sys/types.h>
8023 #include <$ac_cv_struct_tm>
8027 main ()
8029 static struct tm ac_aggr;
8030 if (ac_aggr.tm_zone)
8031 return 0;
8033 return 0;
8035 _ACEOF
8036 rm -f conftest.$ac_objext
8037 if { (ac_try="$ac_compile"
8038 case "(($ac_try" in
8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040 *) ac_try_echo=$ac_try;;
8041 esac
8042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8043 $as_echo "$ac_try_echo") >&5
8044 (eval "$ac_compile") 2>conftest.er1
8045 ac_status=$?
8046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
8049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest.$ac_objext; then
8054 ac_cv_member_struct_tm_tm_zone=yes
8055 else
8056 $as_echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8059 cat >conftest.$ac_ext <<_ACEOF
8060 /* confdefs.h. */
8061 _ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8065 #include <sys/types.h>
8066 #include <$ac_cv_struct_tm>
8070 main ()
8072 static struct tm ac_aggr;
8073 if (sizeof ac_aggr.tm_zone)
8074 return 0;
8076 return 0;
8078 _ACEOF
8079 rm -f conftest.$ac_objext
8080 if { (ac_try="$ac_compile"
8081 case "(($ac_try" in
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8084 esac
8085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8086 $as_echo "$ac_try_echo") >&5
8087 (eval "$ac_compile") 2>conftest.er1
8088 ac_status=$?
8089 grep -v '^ *+' conftest.er1 >conftest.err
8090 rm -f conftest.er1
8091 cat conftest.err >&5
8092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } && {
8094 test -z "$ac_c_werror_flag" ||
8095 test ! -s conftest.err
8096 } && test -s conftest.$ac_objext; then
8097 ac_cv_member_struct_tm_tm_zone=yes
8098 else
8099 $as_echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8102 ac_cv_member_struct_tm_tm_zone=no
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8111 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8112 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
8114 cat >>confdefs.h <<_ACEOF
8115 #define HAVE_STRUCT_TM_TM_ZONE 1
8116 _ACEOF
8121 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8123 cat >>confdefs.h <<\_ACEOF
8124 #define HAVE_TM_ZONE 1
8125 _ACEOF
8127 else
8128 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8129 $as_echo_n "checking whether tzname is declared... " >&6; }
8130 if test "${ac_cv_have_decl_tzname+set}" = set; then
8131 $as_echo_n "(cached) " >&6
8132 else
8133 cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h. */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8139 #include <time.h>
8142 main ()
8144 #ifndef tzname
8145 (void) tzname;
8146 #endif
8149 return 0;
8151 _ACEOF
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8154 case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8157 esac
8158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8159 $as_echo "$ac_try_echo") >&5
8160 (eval "$ac_compile") 2>conftest.er1
8161 ac_status=$?
8162 grep -v '^ *+' conftest.er1 >conftest.err
8163 rm -f conftest.er1
8164 cat conftest.err >&5
8165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } && {
8167 test -z "$ac_c_werror_flag" ||
8168 test ! -s conftest.err
8169 } && test -s conftest.$ac_objext; then
8170 ac_cv_have_decl_tzname=yes
8171 else
8172 $as_echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8175 ac_cv_have_decl_tzname=no
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8181 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8182 if test "x$ac_cv_have_decl_tzname" = x""yes; then
8184 cat >>confdefs.h <<_ACEOF
8185 #define HAVE_DECL_TZNAME 1
8186 _ACEOF
8189 else
8190 cat >>confdefs.h <<_ACEOF
8191 #define HAVE_DECL_TZNAME 0
8192 _ACEOF
8198 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8199 $as_echo_n "checking for tzname... " >&6; }
8200 if test "${ac_cv_var_tzname+set}" = set; then
8201 $as_echo_n "(cached) " >&6
8202 else
8203 cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h. */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 #include <time.h>
8210 #if !HAVE_DECL_TZNAME
8211 extern char *tzname[];
8212 #endif
8215 main ()
8217 return tzname[0][0];
8219 return 0;
8221 _ACEOF
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (ac_try="$ac_link"
8224 case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227 esac
8228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8229 $as_echo "$ac_try_echo") >&5
8230 (eval "$ac_link") 2>conftest.er1
8231 ac_status=$?
8232 grep -v '^ *+' conftest.er1 >conftest.err
8233 rm -f conftest.er1
8234 cat conftest.err >&5
8235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && {
8237 test -z "$ac_c_werror_flag" ||
8238 test ! -s conftest.err
8239 } && test -s conftest$ac_exeext && {
8240 test "$cross_compiling" = yes ||
8241 $as_test_x conftest$ac_exeext
8242 }; then
8243 ac_cv_var_tzname=yes
8244 else
8245 $as_echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 ac_cv_var_tzname=no
8251 rm -rf conftest.dSYM
8252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8253 conftest$ac_exeext conftest.$ac_ext
8255 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8256 $as_echo "$ac_cv_var_tzname" >&6; }
8257 if test $ac_cv_var_tzname = yes; then
8259 cat >>confdefs.h <<\_ACEOF
8260 #define HAVE_TZNAME 1
8261 _ACEOF
8266 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8267 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8268 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8269 $as_echo_n "(cached) " >&6
8270 else
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h. */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 #include <time.h>
8280 main ()
8282 static struct tm ac_aggr;
8283 if (ac_aggr.tm_gmtoff)
8284 return 0;
8286 return 0;
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8291 case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294 esac
8295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8296 $as_echo "$ac_try_echo") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8298 ac_status=$?
8299 grep -v '^ *+' conftest.er1 >conftest.err
8300 rm -f conftest.er1
8301 cat conftest.err >&5
8302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && {
8304 test -z "$ac_c_werror_flag" ||
8305 test ! -s conftest.err
8306 } && test -s conftest.$ac_objext; then
8307 ac_cv_member_struct_tm_tm_gmtoff=yes
8308 else
8309 $as_echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h. */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 #include <time.h>
8321 main ()
8323 static struct tm ac_aggr;
8324 if (sizeof ac_aggr.tm_gmtoff)
8325 return 0;
8327 return 0;
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8332 case "(($ac_try" in
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8335 esac
8336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8337 $as_echo "$ac_try_echo") >&5
8338 (eval "$ac_compile") 2>conftest.er1
8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } && {
8345 test -z "$ac_c_werror_flag" ||
8346 test ! -s conftest.err
8347 } && test -s conftest.$ac_objext; then
8348 ac_cv_member_struct_tm_tm_gmtoff=yes
8349 else
8350 $as_echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8353 ac_cv_member_struct_tm_tm_gmtoff=no
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8362 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8363 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
8365 cat >>confdefs.h <<\_ACEOF
8366 #define HAVE_TM_GMTOFF 1
8367 _ACEOF
8371 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8372 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8373 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8374 $as_echo_n "(cached) " >&6
8375 else
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8383 #if HAVE_SYS_SOCKET_H
8384 #include <sys/socket.h>
8385 #endif
8386 #if HAVE_NET_IF_H
8387 #include <net/if.h>
8388 #endif
8391 main ()
8393 static struct ifreq ac_aggr;
8394 if (ac_aggr.ifr_flags)
8395 return 0;
8397 return 0;
8399 _ACEOF
8400 rm -f conftest.$ac_objext
8401 if { (ac_try="$ac_compile"
8402 case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8405 esac
8406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8407 $as_echo "$ac_try_echo") >&5
8408 (eval "$ac_compile") 2>conftest.er1
8409 ac_status=$?
8410 grep -v '^ *+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
8413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } && {
8415 test -z "$ac_c_werror_flag" ||
8416 test ! -s conftest.err
8417 } && test -s conftest.$ac_objext; then
8418 ac_cv_member_struct_ifreq_ifr_flags=yes
8419 else
8420 $as_echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h. */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 $ac_includes_default
8430 #if HAVE_SYS_SOCKET_H
8431 #include <sys/socket.h>
8432 #endif
8433 #if HAVE_NET_IF_H
8434 #include <net/if.h>
8435 #endif
8438 main ()
8440 static struct ifreq ac_aggr;
8441 if (sizeof ac_aggr.ifr_flags)
8442 return 0;
8444 return 0;
8446 _ACEOF
8447 rm -f conftest.$ac_objext
8448 if { (ac_try="$ac_compile"
8449 case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452 esac
8453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8454 $as_echo "$ac_try_echo") >&5
8455 (eval "$ac_compile") 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
8464 } && test -s conftest.$ac_objext; then
8465 ac_cv_member_struct_ifreq_ifr_flags=yes
8466 else
8467 $as_echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 ac_cv_member_struct_ifreq_ifr_flags=no
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8479 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8480 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then
8482 cat >>confdefs.h <<_ACEOF
8483 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8484 _ACEOF
8488 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8489 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8490 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8491 $as_echo_n "(cached) " >&6
8492 else
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h. */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 $ac_includes_default
8500 #if HAVE_SYS_SOCKET_H
8501 #include <sys/socket.h>
8502 #endif
8503 #if HAVE_NET_IF_H
8504 #include <net/if.h>
8505 #endif
8508 main ()
8510 static struct ifreq ac_aggr;
8511 if (ac_aggr.ifr_hwaddr)
8512 return 0;
8514 return 0;
8516 _ACEOF
8517 rm -f conftest.$ac_objext
8518 if { (ac_try="$ac_compile"
8519 case "(($ac_try" in
8520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521 *) ac_try_echo=$ac_try;;
8522 esac
8523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8524 $as_echo "$ac_try_echo") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8526 ac_status=$?
8527 grep -v '^ *+' conftest.er1 >conftest.err
8528 rm -f conftest.er1
8529 cat conftest.err >&5
8530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_c_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest.$ac_objext; then
8535 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8536 else
8537 $as_echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h. */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 $ac_includes_default
8547 #if HAVE_SYS_SOCKET_H
8548 #include <sys/socket.h>
8549 #endif
8550 #if HAVE_NET_IF_H
8551 #include <net/if.h>
8552 #endif
8555 main ()
8557 static struct ifreq ac_aggr;
8558 if (sizeof ac_aggr.ifr_hwaddr)
8559 return 0;
8561 return 0;
8563 _ACEOF
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8566 case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569 esac
8570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8571 $as_echo "$ac_try_echo") >&5
8572 (eval "$ac_compile") 2>conftest.er1
8573 ac_status=$?
8574 grep -v '^ *+' conftest.er1 >conftest.err
8575 rm -f conftest.er1
8576 cat conftest.err >&5
8577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest.$ac_objext; then
8582 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8583 else
8584 $as_echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8596 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8597 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then
8599 cat >>confdefs.h <<_ACEOF
8600 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8601 _ACEOF
8605 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8606 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8607 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8608 $as_echo_n "(cached) " >&6
8609 else
8610 cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h. */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8617 #if HAVE_SYS_SOCKET_H
8618 #include <sys/socket.h>
8619 #endif
8620 #if HAVE_NET_IF_H
8621 #include <net/if.h>
8622 #endif
8625 main ()
8627 static struct ifreq ac_aggr;
8628 if (ac_aggr.ifr_netmask)
8629 return 0;
8631 return 0;
8633 _ACEOF
8634 rm -f conftest.$ac_objext
8635 if { (ac_try="$ac_compile"
8636 case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8639 esac
8640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8641 $as_echo "$ac_try_echo") >&5
8642 (eval "$ac_compile") 2>conftest.er1
8643 ac_status=$?
8644 grep -v '^ *+' conftest.er1 >conftest.err
8645 rm -f conftest.er1
8646 cat conftest.err >&5
8647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
8651 } && test -s conftest.$ac_objext; then
8652 ac_cv_member_struct_ifreq_ifr_netmask=yes
8653 else
8654 $as_echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8657 cat >conftest.$ac_ext <<_ACEOF
8658 /* confdefs.h. */
8659 _ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663 $ac_includes_default
8664 #if HAVE_SYS_SOCKET_H
8665 #include <sys/socket.h>
8666 #endif
8667 #if HAVE_NET_IF_H
8668 #include <net/if.h>
8669 #endif
8672 main ()
8674 static struct ifreq ac_aggr;
8675 if (sizeof ac_aggr.ifr_netmask)
8676 return 0;
8678 return 0;
8680 _ACEOF
8681 rm -f conftest.$ac_objext
8682 if { (ac_try="$ac_compile"
8683 case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8686 esac
8687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8688 $as_echo "$ac_try_echo") >&5
8689 (eval "$ac_compile") 2>conftest.er1
8690 ac_status=$?
8691 grep -v '^ *+' conftest.er1 >conftest.err
8692 rm -f conftest.er1
8693 cat conftest.err >&5
8694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && {
8696 test -z "$ac_c_werror_flag" ||
8697 test ! -s conftest.err
8698 } && test -s conftest.$ac_objext; then
8699 ac_cv_member_struct_ifreq_ifr_netmask=yes
8700 else
8701 $as_echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8704 ac_cv_member_struct_ifreq_ifr_netmask=no
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8713 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8714 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then
8716 cat >>confdefs.h <<_ACEOF
8717 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8718 _ACEOF
8722 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8723 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8724 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8725 $as_echo_n "(cached) " >&6
8726 else
8727 cat >conftest.$ac_ext <<_ACEOF
8728 /* confdefs.h. */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8733 $ac_includes_default
8734 #if HAVE_SYS_SOCKET_H
8735 #include <sys/socket.h>
8736 #endif
8737 #if HAVE_NET_IF_H
8738 #include <net/if.h>
8739 #endif
8742 main ()
8744 static struct ifreq ac_aggr;
8745 if (ac_aggr.ifr_broadaddr)
8746 return 0;
8748 return 0;
8750 _ACEOF
8751 rm -f conftest.$ac_objext
8752 if { (ac_try="$ac_compile"
8753 case "(($ac_try" in
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8756 esac
8757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8758 $as_echo "$ac_try_echo") >&5
8759 (eval "$ac_compile") 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } && {
8766 test -z "$ac_c_werror_flag" ||
8767 test ! -s conftest.err
8768 } && test -s conftest.$ac_objext; then
8769 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8770 else
8771 $as_echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h. */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 $ac_includes_default
8781 #if HAVE_SYS_SOCKET_H
8782 #include <sys/socket.h>
8783 #endif
8784 #if HAVE_NET_IF_H
8785 #include <net/if.h>
8786 #endif
8789 main ()
8791 static struct ifreq ac_aggr;
8792 if (sizeof ac_aggr.ifr_broadaddr)
8793 return 0;
8795 return 0;
8797 _ACEOF
8798 rm -f conftest.$ac_objext
8799 if { (ac_try="$ac_compile"
8800 case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803 esac
8804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8805 $as_echo "$ac_try_echo") >&5
8806 (eval "$ac_compile") 2>conftest.er1
8807 ac_status=$?
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
8811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } && {
8813 test -z "$ac_c_werror_flag" ||
8814 test ! -s conftest.err
8815 } && test -s conftest.$ac_objext; then
8816 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8817 else
8818 $as_echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8821 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8830 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8831 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then
8833 cat >>confdefs.h <<_ACEOF
8834 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8835 _ACEOF
8839 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8840 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8841 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8842 $as_echo_n "(cached) " >&6
8843 else
8844 cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h. */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8850 $ac_includes_default
8851 #if HAVE_SYS_SOCKET_H
8852 #include <sys/socket.h>
8853 #endif
8854 #if HAVE_NET_IF_H
8855 #include <net/if.h>
8856 #endif
8859 main ()
8861 static struct ifreq ac_aggr;
8862 if (ac_aggr.ifr_addr)
8863 return 0;
8865 return 0;
8867 _ACEOF
8868 rm -f conftest.$ac_objext
8869 if { (ac_try="$ac_compile"
8870 case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873 esac
8874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8875 $as_echo "$ac_try_echo") >&5
8876 (eval "$ac_compile") 2>conftest.er1
8877 ac_status=$?
8878 grep -v '^ *+' conftest.er1 >conftest.err
8879 rm -f conftest.er1
8880 cat conftest.err >&5
8881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } && {
8883 test -z "$ac_c_werror_flag" ||
8884 test ! -s conftest.err
8885 } && test -s conftest.$ac_objext; then
8886 ac_cv_member_struct_ifreq_ifr_addr=yes
8887 else
8888 $as_echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.$ac_ext >&5
8891 cat >conftest.$ac_ext <<_ACEOF
8892 /* confdefs.h. */
8893 _ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 $ac_includes_default
8898 #if HAVE_SYS_SOCKET_H
8899 #include <sys/socket.h>
8900 #endif
8901 #if HAVE_NET_IF_H
8902 #include <net/if.h>
8903 #endif
8906 main ()
8908 static struct ifreq ac_aggr;
8909 if (sizeof ac_aggr.ifr_addr)
8910 return 0;
8912 return 0;
8914 _ACEOF
8915 rm -f conftest.$ac_objext
8916 if { (ac_try="$ac_compile"
8917 case "(($ac_try" in
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8920 esac
8921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8922 $as_echo "$ac_try_echo") >&5
8923 (eval "$ac_compile") 2>conftest.er1
8924 ac_status=$?
8925 grep -v '^ *+' conftest.er1 >conftest.err
8926 rm -f conftest.er1
8927 cat conftest.err >&5
8928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } && {
8930 test -z "$ac_c_werror_flag" ||
8931 test ! -s conftest.err
8932 } && test -s conftest.$ac_objext; then
8933 ac_cv_member_struct_ifreq_ifr_addr=yes
8934 else
8935 $as_echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8938 ac_cv_member_struct_ifreq_ifr_addr=no
8941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8947 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8948 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then
8950 cat >>confdefs.h <<_ACEOF
8951 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8952 _ACEOF
8959 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8960 $as_echo_n "checking for function prototypes... " >&6; }
8961 if test "$ac_cv_prog_cc_c89" != no; then
8962 { $as_echo "$as_me:$LINENO: result: yes" >&5
8963 $as_echo "yes" >&6; }
8965 cat >>confdefs.h <<\_ACEOF
8966 #define PROTOTYPES 1
8967 _ACEOF
8970 cat >>confdefs.h <<\_ACEOF
8971 #define __PROTOTYPES 1
8972 _ACEOF
8974 else
8975 { $as_echo "$as_me:$LINENO: result: no" >&5
8976 $as_echo "no" >&6; }
8979 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8980 $as_echo_n "checking for working volatile... " >&6; }
8981 if test "${ac_cv_c_volatile+set}" = set; then
8982 $as_echo_n "(cached) " >&6
8983 else
8984 cat >conftest.$ac_ext <<_ACEOF
8985 /* confdefs.h. */
8986 _ACEOF
8987 cat confdefs.h >>conftest.$ac_ext
8988 cat >>conftest.$ac_ext <<_ACEOF
8989 /* end confdefs.h. */
8992 main ()
8995 volatile int x;
8996 int * volatile y = (int *) 0;
8997 return !x && !y;
8999 return 0;
9001 _ACEOF
9002 rm -f conftest.$ac_objext
9003 if { (ac_try="$ac_compile"
9004 case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9007 esac
9008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9009 $as_echo "$ac_try_echo") >&5
9010 (eval "$ac_compile") 2>conftest.er1
9011 ac_status=$?
9012 grep -v '^ *+' conftest.er1 >conftest.err
9013 rm -f conftest.er1
9014 cat conftest.err >&5
9015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } && {
9017 test -z "$ac_c_werror_flag" ||
9018 test ! -s conftest.err
9019 } && test -s conftest.$ac_objext; then
9020 ac_cv_c_volatile=yes
9021 else
9022 $as_echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9025 ac_cv_c_volatile=no
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9030 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9031 $as_echo "$ac_cv_c_volatile" >&6; }
9032 if test $ac_cv_c_volatile = no; then
9034 cat >>confdefs.h <<\_ACEOF
9035 #define volatile /**/
9036 _ACEOF
9040 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9041 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9042 if test "${ac_cv_c_const+set}" = set; then
9043 $as_echo_n "(cached) " >&6
9044 else
9045 cat >conftest.$ac_ext <<_ACEOF
9046 /* confdefs.h. */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9053 main ()
9055 /* FIXME: Include the comments suggested by Paul. */
9056 #ifndef __cplusplus
9057 /* Ultrix mips cc rejects this. */
9058 typedef int charset[2];
9059 const charset cs;
9060 /* SunOS 4.1.1 cc rejects this. */
9061 char const *const *pcpcc;
9062 char **ppc;
9063 /* NEC SVR4.0.2 mips cc rejects this. */
9064 struct point {int x, y;};
9065 static struct point const zero = {0,0};
9066 /* AIX XL C 1.02.0.0 rejects this.
9067 It does not let you subtract one const X* pointer from another in
9068 an arm of an if-expression whose if-part is not a constant
9069 expression */
9070 const char *g = "string";
9071 pcpcc = &g + (g ? g-g : 0);
9072 /* HPUX 7.0 cc rejects these. */
9073 ++pcpcc;
9074 ppc = (char**) pcpcc;
9075 pcpcc = (char const *const *) ppc;
9076 { /* SCO 3.2v4 cc rejects this. */
9077 char *t;
9078 char const *s = 0 ? (char *) 0 : (char const *) 0;
9080 *t++ = 0;
9081 if (s) return 0;
9083 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9084 int x[] = {25, 17};
9085 const int *foo = &x[0];
9086 ++foo;
9088 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9089 typedef const int *iptr;
9090 iptr p = 0;
9091 ++p;
9093 { /* AIX XL C 1.02.0.0 rejects this saying
9094 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9095 struct s { int j; const int *ap[3]; };
9096 struct s *b; b->j = 5;
9098 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9099 const int foo = 10;
9100 if (!foo) return 0;
9102 return !cs[0] && !zero.x;
9103 #endif
9106 return 0;
9108 _ACEOF
9109 rm -f conftest.$ac_objext
9110 if { (ac_try="$ac_compile"
9111 case "(($ac_try" in
9112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113 *) ac_try_echo=$ac_try;;
9114 esac
9115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9116 $as_echo "$ac_try_echo") >&5
9117 (eval "$ac_compile") 2>conftest.er1
9118 ac_status=$?
9119 grep -v '^ *+' conftest.er1 >conftest.err
9120 rm -f conftest.er1
9121 cat conftest.err >&5
9122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } && {
9124 test -z "$ac_c_werror_flag" ||
9125 test ! -s conftest.err
9126 } && test -s conftest.$ac_objext; then
9127 ac_cv_c_const=yes
9128 else
9129 $as_echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 ac_cv_c_const=no
9135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9137 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9138 $as_echo "$ac_cv_c_const" >&6; }
9139 if test $ac_cv_c_const = no; then
9141 cat >>confdefs.h <<\_ACEOF
9142 #define const /**/
9143 _ACEOF
9147 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9148 $as_echo_n "checking for void * support... " >&6; }
9149 if test "${emacs_cv_void_star+set}" = set; then
9150 $as_echo_n "(cached) " >&6
9151 else
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h. */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9160 main ()
9162 void * foo;
9164 return 0;
9166 _ACEOF
9167 rm -f conftest.$ac_objext
9168 if { (ac_try="$ac_compile"
9169 case "(($ac_try" in
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9172 esac
9173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9174 $as_echo "$ac_try_echo") >&5
9175 (eval "$ac_compile") 2>conftest.er1
9176 ac_status=$?
9177 grep -v '^ *+' conftest.er1 >conftest.err
9178 rm -f conftest.er1
9179 cat conftest.err >&5
9180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } && {
9182 test -z "$ac_c_werror_flag" ||
9183 test ! -s conftest.err
9184 } && test -s conftest.$ac_objext; then
9185 emacs_cv_void_star=yes
9186 else
9187 $as_echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9190 emacs_cv_void_star=no
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9196 $as_echo "$emacs_cv_void_star" >&6; }
9197 if test $emacs_cv_void_star = yes; then
9198 cat >>confdefs.h <<\_ACEOF
9199 #define POINTER_TYPE void
9200 _ACEOF
9202 else
9203 cat >>confdefs.h <<\_ACEOF
9204 #define POINTER_TYPE char
9205 _ACEOF
9213 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9214 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9215 set x ${MAKE-make}
9216 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9217 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9218 $as_echo_n "(cached) " >&6
9219 else
9220 cat >conftest.make <<\_ACEOF
9221 SHELL = /bin/sh
9222 all:
9223 @echo '@@@%%%=$(MAKE)=@@@%%%'
9224 _ACEOF
9225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9226 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9227 *@@@%%%=?*=@@@%%%*)
9228 eval ac_cv_prog_make_${ac_make}_set=yes;;
9230 eval ac_cv_prog_make_${ac_make}_set=no;;
9231 esac
9232 rm -f conftest.make
9234 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9235 { $as_echo "$as_me:$LINENO: result: yes" >&5
9236 $as_echo "yes" >&6; }
9237 SET_MAKE=
9238 else
9239 { $as_echo "$as_me:$LINENO: result: no" >&5
9240 $as_echo "no" >&6; }
9241 SET_MAKE="MAKE=${MAKE-make}"
9245 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9246 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9247 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9248 HAVE_GNU_MAKE=no
9249 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9250 if test "x$testval" != x; then
9251 HAVE_GNU_MAKE=yes
9252 else
9253 ac_enable_autodepend=no
9255 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9256 $as_echo "$HAVE_GNU_MAKE" >&6; }
9257 if test $HAVE_GNU_MAKE = yes; then
9258 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9259 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9260 SAVE_CFLAGS="$CFLAGS"
9261 CFLAGS="$CFLAGS -MMD -MF deps.d"
9262 cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h. */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9270 main ()
9274 return 0;
9276 _ACEOF
9277 rm -f conftest.$ac_objext
9278 if { (ac_try="$ac_compile"
9279 case "(($ac_try" in
9280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9282 esac
9283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9284 $as_echo "$ac_try_echo") >&5
9285 (eval "$ac_compile") 2>conftest.er1
9286 ac_status=$?
9287 grep -v '^ *+' conftest.er1 >conftest.err
9288 rm -f conftest.er1
9289 cat conftest.err >&5
9290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } && {
9292 test -z "$ac_c_werror_flag" ||
9293 test ! -s conftest.err
9294 } && test -s conftest.$ac_objext; then
9296 else
9297 $as_echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 ac_enable_autodepend=no
9303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304 CFLAGS="$SAVE_CFLAGS"
9305 test -f deps.d || ac_enable_autodepend=no
9306 rm -rf deps.d
9307 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9308 $as_echo "$ac_enable_autodepend" >&6; }
9310 if test $ac_enable_autodepend = yes; then
9312 cat >>confdefs.h <<\_ACEOF
9313 #define AUTO_DEPEND 1
9314 _ACEOF
9319 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9320 $as_echo_n "checking for long file names... " >&6; }
9321 if test "${ac_cv_sys_long_file_names+set}" = set; then
9322 $as_echo_n "(cached) " >&6
9323 else
9324 ac_cv_sys_long_file_names=yes
9325 # Test for long file names in all the places we know might matter:
9326 # . the current directory, where building will happen
9327 # $prefix/lib where we will be installing things
9328 # $exec_prefix/lib likewise
9329 # $TMPDIR if set, where it might want to write temporary files
9330 # /tmp where it might want to write temporary files
9331 # /var/tmp likewise
9332 # /usr/tmp likewise
9333 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9334 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9335 # in the usual case where exec_prefix is '${prefix}'.
9336 case $ac_dir in #(
9337 . | /* | ?:[\\/]*) ;; #(
9338 *) continue;;
9339 esac
9340 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9341 ac_xdir=$ac_dir/cf$$
9342 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9343 ac_tf1=$ac_xdir/conftest9012345
9344 ac_tf2=$ac_xdir/conftest9012346
9345 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9346 ac_cv_sys_long_file_names=no
9347 rm -f -r "$ac_xdir" 2>/dev/null
9348 test $ac_cv_sys_long_file_names = no && break
9349 done
9351 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9352 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9353 if test $ac_cv_sys_long_file_names = yes; then
9355 cat >>confdefs.h <<\_ACEOF
9356 #define HAVE_LONG_FILE_NAMES 1
9357 _ACEOF
9362 #### Choose a window system.
9364 { $as_echo "$as_me:$LINENO: checking for X" >&5
9365 $as_echo_n "checking for X... " >&6; }
9368 # Check whether --with-x was given.
9369 if test "${with_x+set}" = set; then
9370 withval=$with_x;
9373 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9374 if test "x$with_x" = xno; then
9375 # The user explicitly disabled X.
9376 have_x=disabled
9377 else
9378 case $x_includes,$x_libraries in #(
9379 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
9380 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
9381 { (exit 1); exit 1; }; };; #(
9382 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9383 $as_echo_n "(cached) " >&6
9384 else
9385 # One or both of the vars are not set, and there is no cached value.
9386 ac_x_includes=no ac_x_libraries=no
9387 rm -f -r conftest.dir
9388 if mkdir conftest.dir; then
9389 cd conftest.dir
9390 cat >Imakefile <<'_ACEOF'
9391 incroot:
9392 @echo incroot='${INCROOT}'
9393 usrlibdir:
9394 @echo usrlibdir='${USRLIBDIR}'
9395 libdir:
9396 @echo libdir='${LIBDIR}'
9397 _ACEOF
9398 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9399 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9400 for ac_var in incroot usrlibdir libdir; do
9401 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9402 done
9403 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9404 for ac_extension in a so sl dylib la dll; do
9405 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9406 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9407 ac_im_usrlibdir=$ac_im_libdir; break
9409 done
9410 # Screen out bogus values from the imake configuration. They are
9411 # bogus both because they are the default anyway, and because
9412 # using them would break gcc on systems where it needs fixed includes.
9413 case $ac_im_incroot in
9414 /usr/include) ac_x_includes= ;;
9415 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9416 esac
9417 case $ac_im_usrlibdir in
9418 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9419 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9420 esac
9422 cd ..
9423 rm -f -r conftest.dir
9426 # Standard set of common directories for X headers.
9427 # Check X11 before X11Rn because it is often a symlink to the current release.
9428 ac_x_header_dirs='
9429 /usr/X11/include
9430 /usr/X11R6/include
9431 /usr/X11R5/include
9432 /usr/X11R4/include
9434 /usr/include/X11
9435 /usr/include/X11R6
9436 /usr/include/X11R5
9437 /usr/include/X11R4
9439 /usr/local/X11/include
9440 /usr/local/X11R6/include
9441 /usr/local/X11R5/include
9442 /usr/local/X11R4/include
9444 /usr/local/include/X11
9445 /usr/local/include/X11R6
9446 /usr/local/include/X11R5
9447 /usr/local/include/X11R4
9449 /usr/X386/include
9450 /usr/x386/include
9451 /usr/XFree86/include/X11
9453 /usr/include
9454 /usr/local/include
9455 /usr/unsupported/include
9456 /usr/athena/include
9457 /usr/local/x11r5/include
9458 /usr/lpp/Xamples/include
9460 /usr/openwin/include
9461 /usr/openwin/share/include'
9463 if test "$ac_x_includes" = no; then
9464 # Guess where to find include files, by looking for Xlib.h.
9465 # First, try using that file with no special directory specified.
9466 cat >conftest.$ac_ext <<_ACEOF
9467 /* confdefs.h. */
9468 _ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9472 #include <X11/Xlib.h>
9473 _ACEOF
9474 if { (ac_try="$ac_cpp conftest.$ac_ext"
9475 case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9478 esac
9479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9480 $as_echo "$ac_try_echo") >&5
9481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9482 ac_status=$?
9483 grep -v '^ *+' conftest.er1 >conftest.err
9484 rm -f conftest.er1
9485 cat conftest.err >&5
9486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } >/dev/null && {
9488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9489 test ! -s conftest.err
9490 }; then
9491 # We can compile using X headers with no special include directory.
9492 ac_x_includes=
9493 else
9494 $as_echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9497 for ac_dir in $ac_x_header_dirs; do
9498 if test -r "$ac_dir/X11/Xlib.h"; then
9499 ac_x_includes=$ac_dir
9500 break
9502 done
9505 rm -f conftest.err conftest.$ac_ext
9506 fi # $ac_x_includes = no
9508 if test "$ac_x_libraries" = no; then
9509 # Check for the libraries.
9510 # See if we find them without any special options.
9511 # Don't add to $LIBS permanently.
9512 ac_save_LIBS=$LIBS
9513 LIBS="-lX11 $LIBS"
9514 cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h. */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 #include <X11/Xlib.h>
9522 main ()
9524 XrmInitialize ()
9526 return 0;
9528 _ACEOF
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (ac_try="$ac_link"
9531 case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534 esac
9535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9536 $as_echo "$ac_try_echo") >&5
9537 (eval "$ac_link") 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest$ac_exeext && {
9547 test "$cross_compiling" = yes ||
9548 $as_test_x conftest$ac_exeext
9549 }; then
9550 LIBS=$ac_save_LIBS
9551 # We can link X programs with no special library path.
9552 ac_x_libraries=
9553 else
9554 $as_echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9557 LIBS=$ac_save_LIBS
9558 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9560 # Don't even attempt the hair of trying to link an X program!
9561 for ac_extension in a so sl dylib la dll; do
9562 if test -r "$ac_dir/libX11.$ac_extension"; then
9563 ac_x_libraries=$ac_dir
9564 break 2
9566 done
9567 done
9570 rm -rf conftest.dSYM
9571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9572 conftest$ac_exeext conftest.$ac_ext
9573 fi # $ac_x_libraries = no
9575 case $ac_x_includes,$ac_x_libraries in #(
9576 no,* | *,no | *\'*)
9577 # Didn't find X, or a directory has "'" in its name.
9578 ac_cv_have_x="have_x=no";; #(
9580 # Record where we found X for the cache.
9581 ac_cv_have_x="have_x=yes\
9582 ac_x_includes='$ac_x_includes'\
9583 ac_x_libraries='$ac_x_libraries'"
9584 esac
9586 ;; #(
9587 *) have_x=yes;;
9588 esac
9589 eval "$ac_cv_have_x"
9590 fi # $with_x != no
9592 if test "$have_x" != yes; then
9593 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9594 $as_echo "$have_x" >&6; }
9595 no_x=yes
9596 else
9597 # If each of the values was on the command line, it overrides each guess.
9598 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9599 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9600 # Update the cache value to reflect the command line values.
9601 ac_cv_have_x="have_x=yes\
9602 ac_x_includes='$x_includes'\
9603 ac_x_libraries='$x_libraries'"
9604 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9605 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9608 if test "$no_x" = yes; then
9609 window_system=none
9610 else
9611 window_system=x11
9614 ## Workaround for bug in autoconf <= 2.62.
9615 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9616 ## No need to do anything special for these standard directories.
9617 ## This is an experiment, take it out if it causes problems.
9618 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9620 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9624 if test "${x_libraries}" != NONE; then
9625 if test -n "${x_libraries}"; then
9626 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9627 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9629 x_default_search_path=""
9630 x_search_path=${x_libraries}
9631 if test -z "${x_search_path}"; then
9632 x_search_path=/usr/lib
9634 for x_library in `echo ${x_search_path}: | \
9635 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9636 x_search_path="\
9637 ${x_library}/X11/%L/%T/%N%C%S:\
9638 ${x_library}/X11/%l/%T/%N%C%S:\
9639 ${x_library}/X11/%T/%N%C%S:\
9640 ${x_library}/X11/%L/%T/%N%S:\
9641 ${x_library}/X11/%l/%T/%N%S:\
9642 ${x_library}/X11/%T/%N%S"
9643 if test x"${x_default_search_path}" = x; then
9644 x_default_search_path=${x_search_path}
9645 else
9646 x_default_search_path="${x_search_path}:${x_default_search_path}"
9648 done
9650 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9651 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9654 if test x"${x_includes}" = x; then
9655 bitmapdir=/usr/include/X11/bitmaps
9656 else
9657 # accumulate include directories that have X11 bitmap subdirectories
9658 bmd_acc="dummyval"
9659 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9660 if test -d "${bmd}/X11/bitmaps"; then
9661 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9663 if test -d "${bmd}/bitmaps"; then
9664 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9666 done
9667 if test ${bmd_acc} != "dummyval"; then
9668 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9672 HAVE_NS=no
9673 NS_IMPL_COCOA=no
9674 NS_IMPL_GNUSTEP=no
9675 tmp_CPPFLAGS="$CPPFLAGS"
9676 tmp_CFLAGS="$CFLAGS"
9677 CPPFLAGS="$CPPFLAGS -x objective-c"
9678 CFLAGS="$CFLAGS -x objective-c"
9679 if test "${with_ns}" != no; then
9680 if test "${opsys}" = darwin; then
9681 NS_IMPL_COCOA=yes
9682 ns_appdir=`pwd`/nextstep/Emacs.app
9683 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9684 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9685 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9686 elif test -f $GNUSTEP_CONFIG_FILE; then
9687 NS_IMPL_GNUSTEP=yes
9688 ns_appdir=`pwd`/nextstep/Emacs.app
9689 ns_appbindir=`pwd`/nextstep/Emacs.app
9690 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9691 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9692 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9693 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9694 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9695 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9696 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9697 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9698 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9700 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9701 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9702 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9703 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9704 $as_echo_n "(cached) " >&6
9706 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9707 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9708 else
9709 # Is the header compilable?
9710 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9711 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9712 cat >conftest.$ac_ext <<_ACEOF
9713 /* confdefs.h. */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 $ac_includes_default
9719 #include <AppKit/AppKit.h>
9720 _ACEOF
9721 rm -f conftest.$ac_objext
9722 if { (ac_try="$ac_compile"
9723 case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726 esac
9727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9728 $as_echo "$ac_try_echo") >&5
9729 (eval "$ac_compile") 2>conftest.er1
9730 ac_status=$?
9731 grep -v '^ *+' conftest.er1 >conftest.err
9732 rm -f conftest.er1
9733 cat conftest.err >&5
9734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } && {
9736 test -z "$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9738 } && test -s conftest.$ac_objext; then
9739 ac_header_compiler=yes
9740 else
9741 $as_echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ac_header_compiler=no
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9749 $as_echo "$ac_header_compiler" >&6; }
9751 # Is the header present?
9752 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9753 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9754 cat >conftest.$ac_ext <<_ACEOF
9755 /* confdefs.h. */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9760 #include <AppKit/AppKit.h>
9761 _ACEOF
9762 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
9776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9777 test ! -s conftest.err
9778 }; then
9779 ac_header_preproc=yes
9780 else
9781 $as_echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9784 ac_header_preproc=no
9787 rm -f conftest.err conftest.$ac_ext
9788 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9789 $as_echo "$ac_header_preproc" >&6; }
9791 # So? What about this header?
9792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9793 yes:no: )
9794 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9795 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9796 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9797 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9798 ac_header_preproc=yes
9800 no:yes:* )
9801 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9802 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9803 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9804 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9805 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9806 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9807 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9808 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9809 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9810 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9811 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9812 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9815 esac
9816 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9817 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9818 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9819 $as_echo_n "(cached) " >&6
9820 else
9821 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9823 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9824 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9827 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then
9828 HAVE_NS=yes
9829 else
9830 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9831 files are missing or cannot be compiled." >&5
9832 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9833 files are missing or cannot be compiled." >&2;}
9834 { (exit 1); exit 1; }; }
9838 NS_HAVE_NSINTEGER=yes
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h. */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9845 #include <Foundation/NSObjCRuntime.h>
9847 main ()
9849 NSInteger i;
9851 return 0;
9853 _ACEOF
9854 rm -f conftest.$ac_objext
9855 if { (ac_try="$ac_compile"
9856 case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9859 esac
9860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9861 $as_echo "$ac_try_echo") >&5
9862 (eval "$ac_compile") 2>conftest.er1
9863 ac_status=$?
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
9867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } && {
9869 test -z "$ac_c_werror_flag" ||
9870 test ! -s conftest.err
9871 } && test -s conftest.$ac_objext; then
9872 ns_have_nsinteger=yes
9873 else
9874 $as_echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 ns_have_nsinteger=no
9880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9881 if test $ns_have_nsinteger = no; then
9882 NS_HAVE_NSINTEGER=no
9885 if test "${HAVE_NS}" = yes; then
9886 window_system=nextstep
9887 with_xft=no
9888 # set up packaging dirs
9889 exec_prefix=${ns_appbindir}
9890 libexecdir=${ns_appbindir}/libexec
9891 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9892 prefix=${ns_appresdir}
9895 CFLAGS="$tmp_CFLAGS"
9896 CPPFLAGS="$tmp_CPPFLAGS"
9898 case "${window_system}" in
9899 x11 )
9900 HAVE_X_WINDOWS=yes
9901 HAVE_X11=yes
9902 case "${with_x_toolkit}" in
9903 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9904 motif ) USE_X_TOOLKIT=MOTIF ;;
9905 gtk ) with_gtk=yes
9906 USE_X_TOOLKIT=none ;;
9907 no ) USE_X_TOOLKIT=none ;;
9908 * ) USE_X_TOOLKIT=maybe ;;
9909 esac
9911 nextstep | none )
9912 HAVE_X_WINDOWS=no
9913 HAVE_X11=no
9914 USE_X_TOOLKIT=none
9916 esac
9918 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9919 # Extract the first word of "X", so it can be a program name with args.
9920 set dummy X; ac_word=$2
9921 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9922 $as_echo_n "checking for $ac_word... " >&6; }
9923 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9924 $as_echo_n "(cached) " >&6
9925 else
9926 if test -n "$HAVE_XSERVER"; then
9927 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9928 else
9929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930 for as_dir in $PATH
9932 IFS=$as_save_IFS
9933 test -z "$as_dir" && as_dir=.
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9936 ac_cv_prog_HAVE_XSERVER="true"
9937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9938 break 2
9940 done
9941 done
9942 IFS=$as_save_IFS
9944 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9947 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9948 if test -n "$HAVE_XSERVER"; then
9949 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9950 $as_echo "$HAVE_XSERVER" >&6; }
9951 else
9952 { $as_echo "$as_me:$LINENO: result: no" >&5
9953 $as_echo "no" >&6; }
9957 if test "$HAVE_XSERVER" = true ||
9958 test -n "$DISPLAY" ||
9959 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9960 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9961 were found. You should install the relevant development files for X
9962 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9963 sure you have development files for image handling, i.e.
9964 tiff, gif, jpeg, png and xpm.
9965 If you are sure you want Emacs compiled without X window support, pass
9966 --without-x
9967 to configure." >&5
9968 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9969 were found. You should install the relevant development files for X
9970 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9971 sure you have development files for image handling, i.e.
9972 tiff, gif, jpeg, png and xpm.
9973 If you are sure you want Emacs compiled without X window support, pass
9974 --without-x
9975 to configure." >&2;}
9976 { (exit 1); exit 1; }; }
9980 ### If we're using X11, we should use the X menu package.
9981 HAVE_MENUS=no
9982 case ${HAVE_X11} in
9983 yes ) HAVE_MENUS=yes ;;
9984 esac
9986 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9987 # Assume not, until told otherwise.
9988 GNU_MALLOC=yes
9989 doug_lea_malloc=yes
9990 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9991 $as_echo_n "checking for malloc_get_state... " >&6; }
9992 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9993 $as_echo_n "(cached) " >&6
9994 else
9995 cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h. */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10003 #define malloc_get_state innocuous_malloc_get_state
10005 /* System header to define __stub macros and hopefully few prototypes,
10006 which can conflict with char malloc_get_state (); below.
10007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10008 <limits.h> exists even on freestanding compilers. */
10010 #ifdef __STDC__
10011 # include <limits.h>
10012 #else
10013 # include <assert.h>
10014 #endif
10016 #undef malloc_get_state
10018 /* Override any GCC internal prototype to avoid an error.
10019 Use char because int might match the return type of a GCC
10020 builtin and then its argument prototype would still apply. */
10021 #ifdef __cplusplus
10022 extern "C"
10023 #endif
10024 char malloc_get_state ();
10025 /* The GNU C library defines this for functions which it implements
10026 to always fail with ENOSYS. Some functions are actually named
10027 something starting with __ and the normal name is an alias. */
10028 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10029 choke me
10030 #endif
10033 main ()
10035 return malloc_get_state ();
10037 return 0;
10039 _ACEOF
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045 esac
10046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10047 $as_echo "$ac_try_echo") >&5
10048 (eval "$ac_link") 2>conftest.er1
10049 ac_status=$?
10050 grep -v '^ *+' conftest.er1 >conftest.err
10051 rm -f conftest.er1
10052 cat conftest.err >&5
10053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } && {
10055 test -z "$ac_c_werror_flag" ||
10056 test ! -s conftest.err
10057 } && test -s conftest$ac_exeext && {
10058 test "$cross_compiling" = yes ||
10059 $as_test_x conftest$ac_exeext
10060 }; then
10061 ac_cv_func_malloc_get_state=yes
10062 else
10063 $as_echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10066 ac_cv_func_malloc_get_state=no
10069 rm -rf conftest.dSYM
10070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10071 conftest$ac_exeext conftest.$ac_ext
10073 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10074 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10075 if test "x$ac_cv_func_malloc_get_state" = x""yes; then
10077 else
10078 doug_lea_malloc=no
10081 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10082 $as_echo_n "checking for malloc_set_state... " >&6; }
10083 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10084 $as_echo_n "(cached) " >&6
10085 else
10086 cat >conftest.$ac_ext <<_ACEOF
10087 /* confdefs.h. */
10088 _ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h. */
10092 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10094 #define malloc_set_state innocuous_malloc_set_state
10096 /* System header to define __stub macros and hopefully few prototypes,
10097 which can conflict with char malloc_set_state (); below.
10098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10099 <limits.h> exists even on freestanding compilers. */
10101 #ifdef __STDC__
10102 # include <limits.h>
10103 #else
10104 # include <assert.h>
10105 #endif
10107 #undef malloc_set_state
10109 /* Override any GCC internal prototype to avoid an error.
10110 Use char because int might match the return type of a GCC
10111 builtin and then its argument prototype would still apply. */
10112 #ifdef __cplusplus
10113 extern "C"
10114 #endif
10115 char malloc_set_state ();
10116 /* The GNU C library defines this for functions which it implements
10117 to always fail with ENOSYS. Some functions are actually named
10118 something starting with __ and the normal name is an alias. */
10119 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10120 choke me
10121 #endif
10124 main ()
10126 return malloc_set_state ();
10128 return 0;
10130 _ACEOF
10131 rm -f conftest.$ac_objext conftest$ac_exeext
10132 if { (ac_try="$ac_link"
10133 case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136 esac
10137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10138 $as_echo "$ac_try_echo") >&5
10139 (eval "$ac_link") 2>conftest.er1
10140 ac_status=$?
10141 grep -v '^ *+' conftest.er1 >conftest.err
10142 rm -f conftest.er1
10143 cat conftest.err >&5
10144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && {
10146 test -z "$ac_c_werror_flag" ||
10147 test ! -s conftest.err
10148 } && test -s conftest$ac_exeext && {
10149 test "$cross_compiling" = yes ||
10150 $as_test_x conftest$ac_exeext
10151 }; then
10152 ac_cv_func_malloc_set_state=yes
10153 else
10154 $as_echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 ac_cv_func_malloc_set_state=no
10160 rm -rf conftest.dSYM
10161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10162 conftest$ac_exeext conftest.$ac_ext
10164 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10165 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10166 if test "x$ac_cv_func_malloc_set_state" = x""yes; then
10168 else
10169 doug_lea_malloc=no
10172 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10173 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10174 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10175 $as_echo_n "(cached) " >&6
10176 else
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h. */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 extern void (* __after_morecore_hook)();
10185 main ()
10187 __after_morecore_hook = 0
10189 return 0;
10191 _ACEOF
10192 rm -f conftest.$ac_objext conftest$ac_exeext
10193 if { (ac_try="$ac_link"
10194 case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10197 esac
10198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10199 $as_echo "$ac_try_echo") >&5
10200 (eval "$ac_link") 2>conftest.er1
10201 ac_status=$?
10202 grep -v '^ *+' conftest.er1 >conftest.err
10203 rm -f conftest.er1
10204 cat conftest.err >&5
10205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } && {
10207 test -z "$ac_c_werror_flag" ||
10208 test ! -s conftest.err
10209 } && test -s conftest$ac_exeext && {
10210 test "$cross_compiling" = yes ||
10211 $as_test_x conftest$ac_exeext
10212 }; then
10213 emacs_cv_var___after_morecore_hook=yes
10214 else
10215 $as_echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 emacs_cv_var___after_morecore_hook=no
10221 rm -rf conftest.dSYM
10222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10223 conftest$ac_exeext conftest.$ac_ext
10225 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10226 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10227 if test $emacs_cv_var___after_morecore_hook = no; then
10228 doug_lea_malloc=no
10230 if test "${system_malloc}" = "yes"; then
10231 GNU_MALLOC=no
10232 GNU_MALLOC_reason="
10233 (The GNU allocators don't work with this system configuration.)"
10235 if test "$doug_lea_malloc" = "yes" ; then
10236 if test "$GNU_MALLOC" = yes ; then
10237 GNU_MALLOC_reason="
10238 (Using Doug Lea's new malloc from the GNU C Library.)"
10241 cat >>confdefs.h <<\_ACEOF
10242 #define DOUG_LEA_MALLOC 1
10243 _ACEOF
10247 if test x"${REL_ALLOC}" = x; then
10248 REL_ALLOC=${GNU_MALLOC}
10254 for ac_header in stdlib.h unistd.h
10256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10259 $as_echo_n "checking for $ac_header... " >&6; }
10260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10261 $as_echo_n "(cached) " >&6
10263 ac_res=`eval 'as_val=${'$as_ac_Header'}
10264 $as_echo "$as_val"'`
10265 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10266 $as_echo "$ac_res" >&6; }
10267 else
10268 # Is the header compilable?
10269 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10270 $as_echo_n "checking $ac_header usability... " >&6; }
10271 cat >conftest.$ac_ext <<_ACEOF
10272 /* confdefs.h. */
10273 _ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10277 $ac_includes_default
10278 #include <$ac_header>
10279 _ACEOF
10280 rm -f conftest.$ac_objext
10281 if { (ac_try="$ac_compile"
10282 case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10285 esac
10286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10287 $as_echo "$ac_try_echo") >&5
10288 (eval "$ac_compile") 2>conftest.er1
10289 ac_status=$?
10290 grep -v '^ *+' conftest.er1 >conftest.err
10291 rm -f conftest.er1
10292 cat conftest.err >&5
10293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } && {
10295 test -z "$ac_c_werror_flag" ||
10296 test ! -s conftest.err
10297 } && test -s conftest.$ac_objext; then
10298 ac_header_compiler=yes
10299 else
10300 $as_echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10303 ac_header_compiler=no
10306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10307 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10308 $as_echo "$ac_header_compiler" >&6; }
10310 # Is the header present?
10311 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10312 $as_echo_n "checking $ac_header presence... " >&6; }
10313 cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h. */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10319 #include <$ac_header>
10320 _ACEOF
10321 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
10335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10336 test ! -s conftest.err
10337 }; then
10338 ac_header_preproc=yes
10339 else
10340 $as_echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10343 ac_header_preproc=no
10346 rm -f conftest.err conftest.$ac_ext
10347 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10348 $as_echo "$ac_header_preproc" >&6; }
10350 # So? What about this header?
10351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10352 yes:no: )
10353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10354 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10356 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10357 ac_header_preproc=yes
10359 no:yes:* )
10360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10361 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10363 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10365 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10367 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10371 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10374 esac
10375 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10376 $as_echo_n "checking for $ac_header... " >&6; }
10377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10378 $as_echo_n "(cached) " >&6
10379 else
10380 eval "$as_ac_Header=\$ac_header_preproc"
10382 ac_res=`eval 'as_val=${'$as_ac_Header'}
10383 $as_echo "$as_val"'`
10384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10385 $as_echo "$ac_res" >&6; }
10388 as_val=`eval 'as_val=${'$as_ac_Header'}
10389 $as_echo "$as_val"'`
10390 if test "x$as_val" = x""yes; then
10391 cat >>confdefs.h <<_ACEOF
10392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10393 _ACEOF
10397 done
10400 for ac_func in getpagesize
10402 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10403 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10404 $as_echo_n "checking for $ac_func... " >&6; }
10405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10406 $as_echo_n "(cached) " >&6
10407 else
10408 cat >conftest.$ac_ext <<_ACEOF
10409 /* confdefs.h. */
10410 _ACEOF
10411 cat confdefs.h >>conftest.$ac_ext
10412 cat >>conftest.$ac_ext <<_ACEOF
10413 /* end confdefs.h. */
10414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10416 #define $ac_func innocuous_$ac_func
10418 /* System header to define __stub macros and hopefully few prototypes,
10419 which can conflict with char $ac_func (); below.
10420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10421 <limits.h> exists even on freestanding compilers. */
10423 #ifdef __STDC__
10424 # include <limits.h>
10425 #else
10426 # include <assert.h>
10427 #endif
10429 #undef $ac_func
10431 /* Override any GCC internal prototype to avoid an error.
10432 Use char because int might match the return type of a GCC
10433 builtin and then its argument prototype would still apply. */
10434 #ifdef __cplusplus
10435 extern "C"
10436 #endif
10437 char $ac_func ();
10438 /* The GNU C library defines this for functions which it implements
10439 to always fail with ENOSYS. Some functions are actually named
10440 something starting with __ and the normal name is an alias. */
10441 #if defined __stub_$ac_func || defined __stub___$ac_func
10442 choke me
10443 #endif
10446 main ()
10448 return $ac_func ();
10450 return 0;
10452 _ACEOF
10453 rm -f conftest.$ac_objext conftest$ac_exeext
10454 if { (ac_try="$ac_link"
10455 case "(($ac_try" in
10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10458 esac
10459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10460 $as_echo "$ac_try_echo") >&5
10461 (eval "$ac_link") 2>conftest.er1
10462 ac_status=$?
10463 grep -v '^ *+' conftest.er1 >conftest.err
10464 rm -f conftest.er1
10465 cat conftest.err >&5
10466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } && {
10468 test -z "$ac_c_werror_flag" ||
10469 test ! -s conftest.err
10470 } && test -s conftest$ac_exeext && {
10471 test "$cross_compiling" = yes ||
10472 $as_test_x conftest$ac_exeext
10473 }; then
10474 eval "$as_ac_var=yes"
10475 else
10476 $as_echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10479 eval "$as_ac_var=no"
10482 rm -rf conftest.dSYM
10483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10484 conftest$ac_exeext conftest.$ac_ext
10486 ac_res=`eval 'as_val=${'$as_ac_var'}
10487 $as_echo "$as_val"'`
10488 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10489 $as_echo "$ac_res" >&6; }
10490 as_val=`eval 'as_val=${'$as_ac_var'}
10491 $as_echo "$as_val"'`
10492 if test "x$as_val" = x""yes; then
10493 cat >>confdefs.h <<_ACEOF
10494 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10495 _ACEOF
10498 done
10500 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10501 $as_echo_n "checking for working mmap... " >&6; }
10502 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10503 $as_echo_n "(cached) " >&6
10504 else
10505 if test "$cross_compiling" = yes; then
10506 ac_cv_func_mmap_fixed_mapped=no
10507 else
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h. */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514 $ac_includes_default
10515 /* malloc might have been renamed as rpl_malloc. */
10516 #undef malloc
10518 /* Thanks to Mike Haertel and Jim Avera for this test.
10519 Here is a matrix of mmap possibilities:
10520 mmap private not fixed
10521 mmap private fixed at somewhere currently unmapped
10522 mmap private fixed at somewhere already mapped
10523 mmap shared not fixed
10524 mmap shared fixed at somewhere currently unmapped
10525 mmap shared fixed at somewhere already mapped
10526 For private mappings, we should verify that changes cannot be read()
10527 back from the file, nor mmap's back from the file at a different
10528 address. (There have been systems where private was not correctly
10529 implemented like the infamous i386 svr4.0, and systems where the
10530 VM page cache was not coherent with the file system buffer cache
10531 like early versions of FreeBSD and possibly contemporary NetBSD.)
10532 For shared mappings, we should conversely verify that changes get
10533 propagated back to all the places they're supposed to be.
10535 Grep wants private fixed already mapped.
10536 The main things grep needs to know about mmap are:
10537 * does it exist and is it safe to write into the mmap'd area
10538 * how to use it (BSD variants) */
10540 #include <fcntl.h>
10541 #include <sys/mman.h>
10543 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10544 char *malloc ();
10545 #endif
10547 /* This mess was copied from the GNU getpagesize.h. */
10548 #ifndef HAVE_GETPAGESIZE
10549 /* Assume that all systems that can run configure have sys/param.h. */
10550 # ifndef HAVE_SYS_PARAM_H
10551 # define HAVE_SYS_PARAM_H 1
10552 # endif
10554 # ifdef _SC_PAGESIZE
10555 # define getpagesize() sysconf(_SC_PAGESIZE)
10556 # else /* no _SC_PAGESIZE */
10557 # ifdef HAVE_SYS_PARAM_H
10558 # include <sys/param.h>
10559 # ifdef EXEC_PAGESIZE
10560 # define getpagesize() EXEC_PAGESIZE
10561 # else /* no EXEC_PAGESIZE */
10562 # ifdef NBPG
10563 # define getpagesize() NBPG * CLSIZE
10564 # ifndef CLSIZE
10565 # define CLSIZE 1
10566 # endif /* no CLSIZE */
10567 # else /* no NBPG */
10568 # ifdef NBPC
10569 # define getpagesize() NBPC
10570 # else /* no NBPC */
10571 # ifdef PAGESIZE
10572 # define getpagesize() PAGESIZE
10573 # endif /* PAGESIZE */
10574 # endif /* no NBPC */
10575 # endif /* no NBPG */
10576 # endif /* no EXEC_PAGESIZE */
10577 # else /* no HAVE_SYS_PARAM_H */
10578 # define getpagesize() 8192 /* punt totally */
10579 # endif /* no HAVE_SYS_PARAM_H */
10580 # endif /* no _SC_PAGESIZE */
10582 #endif /* no HAVE_GETPAGESIZE */
10585 main ()
10587 char *data, *data2, *data3;
10588 int i, pagesize;
10589 int fd;
10591 pagesize = getpagesize ();
10593 /* First, make a file with some known garbage in it. */
10594 data = (char *) malloc (pagesize);
10595 if (!data)
10596 return 1;
10597 for (i = 0; i < pagesize; ++i)
10598 *(data + i) = rand ();
10599 umask (0);
10600 fd = creat ("conftest.mmap", 0600);
10601 if (fd < 0)
10602 return 1;
10603 if (write (fd, data, pagesize) != pagesize)
10604 return 1;
10605 close (fd);
10607 /* Next, try to mmap the file at a fixed address which already has
10608 something else allocated at it. If we can, also make sure that
10609 we see the same garbage. */
10610 fd = open ("conftest.mmap", O_RDWR);
10611 if (fd < 0)
10612 return 1;
10613 data2 = (char *) malloc (2 * pagesize);
10614 if (!data2)
10615 return 1;
10616 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10617 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10618 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10619 return 1;
10620 for (i = 0; i < pagesize; ++i)
10621 if (*(data + i) != *(data2 + i))
10622 return 1;
10624 /* Finally, make sure that changes to the mapped area do not
10625 percolate back to the file as seen by read(). (This is a bug on
10626 some variants of i386 svr4.0.) */
10627 for (i = 0; i < pagesize; ++i)
10628 *(data2 + i) = *(data2 + i) + 1;
10629 data3 = (char *) malloc (pagesize);
10630 if (!data3)
10631 return 1;
10632 if (read (fd, data3, pagesize) != pagesize)
10633 return 1;
10634 for (i = 0; i < pagesize; ++i)
10635 if (*(data + i) != *(data3 + i))
10636 return 1;
10637 close (fd);
10638 return 0;
10640 _ACEOF
10641 rm -f conftest$ac_exeext
10642 if { (ac_try="$ac_link"
10643 case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10646 esac
10647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10648 $as_echo "$ac_try_echo") >&5
10649 (eval "$ac_link") 2>&5
10650 ac_status=$?
10651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10653 { (case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656 esac
10657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10658 $as_echo "$ac_try_echo") >&5
10659 (eval "$ac_try") 2>&5
10660 ac_status=$?
10661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10663 ac_cv_func_mmap_fixed_mapped=yes
10664 else
10665 $as_echo "$as_me: program exited with status $ac_status" >&5
10666 $as_echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 ( exit $ac_status )
10670 ac_cv_func_mmap_fixed_mapped=no
10672 rm -rf conftest.dSYM
10673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10678 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10679 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10680 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10682 cat >>confdefs.h <<\_ACEOF
10683 #define HAVE_MMAP 1
10684 _ACEOF
10687 rm -f conftest.mmap
10689 if test $use_mmap_for_buffers = yes; then
10690 REL_ALLOC=no
10693 LIBS="$libsrc_libs $LIBS"
10696 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10697 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10698 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10699 $as_echo_n "(cached) " >&6
10700 else
10701 ac_check_lib_save_LIBS=$LIBS
10702 LIBS="-ldnet $LIBS"
10703 cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h. */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10710 /* Override any GCC internal prototype to avoid an error.
10711 Use char because int might match the return type of a GCC
10712 builtin and then its argument prototype would still apply. */
10713 #ifdef __cplusplus
10714 extern "C"
10715 #endif
10716 char dnet_ntoa ();
10718 main ()
10720 return dnet_ntoa ();
10722 return 0;
10724 _ACEOF
10725 rm -f conftest.$ac_objext conftest$ac_exeext
10726 if { (ac_try="$ac_link"
10727 case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730 esac
10731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10732 $as_echo "$ac_try_echo") >&5
10733 (eval "$ac_link") 2>conftest.er1
10734 ac_status=$?
10735 grep -v '^ *+' conftest.er1 >conftest.err
10736 rm -f conftest.er1
10737 cat conftest.err >&5
10738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } && {
10740 test -z "$ac_c_werror_flag" ||
10741 test ! -s conftest.err
10742 } && test -s conftest$ac_exeext && {
10743 test "$cross_compiling" = yes ||
10744 $as_test_x conftest$ac_exeext
10745 }; then
10746 ac_cv_lib_dnet_dnet_ntoa=yes
10747 else
10748 $as_echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_cv_lib_dnet_dnet_ntoa=no
10754 rm -rf conftest.dSYM
10755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10756 conftest$ac_exeext conftest.$ac_ext
10757 LIBS=$ac_check_lib_save_LIBS
10759 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10760 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10761 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
10762 cat >>confdefs.h <<_ACEOF
10763 #define HAVE_LIBDNET 1
10764 _ACEOF
10766 LIBS="-ldnet $LIBS"
10771 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10772 $as_echo_n "checking for main in -lXbsd... " >&6; }
10773 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10774 $as_echo_n "(cached) " >&6
10775 else
10776 ac_check_lib_save_LIBS=$LIBS
10777 LIBS="-lXbsd $LIBS"
10778 cat >conftest.$ac_ext <<_ACEOF
10779 /* confdefs.h. */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10787 main ()
10789 return main ();
10791 return 0;
10793 _ACEOF
10794 rm -f conftest.$ac_objext conftest$ac_exeext
10795 if { (ac_try="$ac_link"
10796 case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799 esac
10800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10801 $as_echo "$ac_try_echo") >&5
10802 (eval "$ac_link") 2>conftest.er1
10803 ac_status=$?
10804 grep -v '^ *+' conftest.er1 >conftest.err
10805 rm -f conftest.er1
10806 cat conftest.err >&5
10807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } && {
10809 test -z "$ac_c_werror_flag" ||
10810 test ! -s conftest.err
10811 } && test -s conftest$ac_exeext && {
10812 test "$cross_compiling" = yes ||
10813 $as_test_x conftest$ac_exeext
10814 }; then
10815 ac_cv_lib_Xbsd_main=yes
10816 else
10817 $as_echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10820 ac_cv_lib_Xbsd_main=no
10823 rm -rf conftest.dSYM
10824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10825 conftest$ac_exeext conftest.$ac_ext
10826 LIBS=$ac_check_lib_save_LIBS
10828 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10829 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10830 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then
10831 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10836 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10837 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10838 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10839 $as_echo_n "(cached) " >&6
10840 else
10841 ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-lpthreads $LIBS"
10843 cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h. */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10850 /* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10853 #ifdef __cplusplus
10854 extern "C"
10855 #endif
10856 char cma_open ();
10858 main ()
10860 return cma_open ();
10862 return 0;
10864 _ACEOF
10865 rm -f conftest.$ac_objext conftest$ac_exeext
10866 if { (ac_try="$ac_link"
10867 case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10870 esac
10871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10872 $as_echo "$ac_try_echo") >&5
10873 (eval "$ac_link") 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } && {
10880 test -z "$ac_c_werror_flag" ||
10881 test ! -s conftest.err
10882 } && test -s conftest$ac_exeext && {
10883 test "$cross_compiling" = yes ||
10884 $as_test_x conftest$ac_exeext
10885 }; then
10886 ac_cv_lib_pthreads_cma_open=yes
10887 else
10888 $as_echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10891 ac_cv_lib_pthreads_cma_open=no
10894 rm -rf conftest.dSYM
10895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10896 conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10899 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10900 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10901 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then
10902 cat >>confdefs.h <<_ACEOF
10903 #define HAVE_LIBPTHREADS 1
10904 _ACEOF
10906 LIBS="-lpthreads $LIBS"
10912 case ${host_os} in
10913 aix*)
10914 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10915 $as_echo_n "checking for -bbigtoc option... " >&6; }
10916 if test "${gdb_cv_bigtoc+set}" = set; then
10917 $as_echo_n "(cached) " >&6
10918 else
10920 case $GCC in
10921 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10922 *) gdb_cv_bigtoc=-bbigtoc ;;
10923 esac
10925 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10926 cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h. */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10934 main ()
10936 int i;
10938 return 0;
10940 _ACEOF
10941 rm -f conftest.$ac_objext conftest$ac_exeext
10942 if { (ac_try="$ac_link"
10943 case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10946 esac
10947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10948 $as_echo "$ac_try_echo") >&5
10949 (eval "$ac_link") 2>conftest.er1
10950 ac_status=$?
10951 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1
10953 cat conftest.err >&5
10954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && {
10956 test -z "$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 } && test -s conftest$ac_exeext && {
10959 test "$cross_compiling" = yes ||
10960 $as_test_x conftest$ac_exeext
10961 }; then
10963 else
10964 $as_echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10967 gdb_cv_bigtoc=
10970 rm -rf conftest.dSYM
10971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10972 conftest$ac_exeext conftest.$ac_ext
10975 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10976 $as_echo "$gdb_cv_bigtoc" >&6; }
10978 esac
10980 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10981 # used for the tests that follow. We set them back to REAL_CFLAGS and
10982 # REAL_CPPFLAGS later on.
10984 REAL_CPPFLAGS="$CPPFLAGS"
10986 if test "${HAVE_X11}" = "yes"; then
10987 DEFS="$C_SWITCH_X_SITE $DEFS"
10988 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10989 LIBS="$LIBX $LIBS"
10990 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10991 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10993 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10994 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10995 # but it's more convenient here to set LD_RUN_PATH
10996 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10997 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10998 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10999 export LD_RUN_PATH
11002 if test "${opsys}" = "gnu-linux"; then
11003 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11004 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11005 cat >conftest.$ac_ext <<_ACEOF
11006 /* confdefs.h. */
11007 _ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11013 main ()
11015 XOpenDisplay ("foo");
11017 return 0;
11019 _ACEOF
11020 rm -f conftest.$ac_objext conftest$ac_exeext
11021 if { (ac_try="$ac_link"
11022 case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11025 esac
11026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11027 $as_echo "$ac_try_echo") >&5
11028 (eval "$ac_link") 2>conftest.er1
11029 ac_status=$?
11030 grep -v '^ *+' conftest.er1 >conftest.err
11031 rm -f conftest.er1
11032 cat conftest.err >&5
11033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } && {
11035 test -z "$ac_c_werror_flag" ||
11036 test ! -s conftest.err
11037 } && test -s conftest$ac_exeext && {
11038 test "$cross_compiling" = yes ||
11039 $as_test_x conftest$ac_exeext
11040 }; then
11041 xlinux_first_failure=no
11042 else
11043 $as_echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11046 xlinux_first_failure=yes
11049 rm -rf conftest.dSYM
11050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11051 conftest$ac_exeext conftest.$ac_ext
11052 if test "${xlinux_first_failure}" = "yes"; then
11053 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11054 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11055 OLD_CPPFLAGS="$CPPFLAGS"
11056 OLD_LIBS="$LIBS"
11057 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11058 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11059 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11060 LIBS="$LIBS -b i486-linuxaout"
11061 cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h. */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11069 main ()
11071 XOpenDisplay ("foo");
11073 return 0;
11075 _ACEOF
11076 rm -f conftest.$ac_objext conftest$ac_exeext
11077 if { (ac_try="$ac_link"
11078 case "(($ac_try" in
11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080 *) ac_try_echo=$ac_try;;
11081 esac
11082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11083 $as_echo "$ac_try_echo") >&5
11084 (eval "$ac_link") 2>conftest.er1
11085 ac_status=$?
11086 grep -v '^ *+' conftest.er1 >conftest.err
11087 rm -f conftest.er1
11088 cat conftest.err >&5
11089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } && {
11091 test -z "$ac_c_werror_flag" ||
11092 test ! -s conftest.err
11093 } && test -s conftest$ac_exeext && {
11094 test "$cross_compiling" = yes ||
11095 $as_test_x conftest$ac_exeext
11096 }; then
11097 xlinux_second_failure=no
11098 else
11099 $as_echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 xlinux_second_failure=yes
11105 rm -rf conftest.dSYM
11106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11107 conftest$ac_exeext conftest.$ac_ext
11108 if test "${xlinux_second_failure}" = "yes"; then
11109 # If we get the same failure with -b, there is no use adding -b.
11110 # So take it out. This plays safe.
11111 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11112 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11113 CPPFLAGS="$OLD_CPPFLAGS"
11114 LIBS="$OLD_LIBS"
11115 { $as_echo "$as_me:$LINENO: result: no" >&5
11116 $as_echo "no" >&6; }
11117 else
11118 { $as_echo "$as_me:$LINENO: result: yes" >&5
11119 $as_echo "yes" >&6; }
11121 else
11122 { $as_echo "$as_me:$LINENO: result: no" >&5
11123 $as_echo "no" >&6; }
11127 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11128 # header files included from there.
11129 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11130 $as_echo_n "checking for Xkb... " >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h. */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 #include <X11/Xlib.h>
11138 #include <X11/XKBlib.h>
11140 main ()
11142 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11144 return 0;
11146 _ACEOF
11147 rm -f conftest.$ac_objext conftest$ac_exeext
11148 if { (ac_try="$ac_link"
11149 case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11152 esac
11153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11154 $as_echo "$ac_try_echo") >&5
11155 (eval "$ac_link") 2>conftest.er1
11156 ac_status=$?
11157 grep -v '^ *+' conftest.er1 >conftest.err
11158 rm -f conftest.er1
11159 cat conftest.err >&5
11160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } && {
11162 test -z "$ac_c_werror_flag" ||
11163 test ! -s conftest.err
11164 } && test -s conftest$ac_exeext && {
11165 test "$cross_compiling" = yes ||
11166 $as_test_x conftest$ac_exeext
11167 }; then
11168 emacs_xkb=yes
11169 else
11170 $as_echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11173 emacs_xkb=no
11176 rm -rf conftest.dSYM
11177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11178 conftest$ac_exeext conftest.$ac_ext
11179 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11180 $as_echo "$emacs_xkb" >&6; }
11181 if test $emacs_xkb = yes; then
11183 cat >>confdefs.h <<\_ACEOF
11184 #define HAVE_XKBGETKEYBOARD 1
11185 _ACEOF
11193 for ac_func in XrmSetDatabase XScreenResourceString \
11194 XScreenNumberOfScreen XSetWMProtocols
11196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11197 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11198 $as_echo_n "checking for $ac_func... " >&6; }
11199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11200 $as_echo_n "(cached) " >&6
11201 else
11202 cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h. */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11210 #define $ac_func innocuous_$ac_func
11212 /* System header to define __stub macros and hopefully few prototypes,
11213 which can conflict with char $ac_func (); below.
11214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11215 <limits.h> exists even on freestanding compilers. */
11217 #ifdef __STDC__
11218 # include <limits.h>
11219 #else
11220 # include <assert.h>
11221 #endif
11223 #undef $ac_func
11225 /* Override any GCC internal prototype to avoid an error.
11226 Use char because int might match the return type of a GCC
11227 builtin and then its argument prototype would still apply. */
11228 #ifdef __cplusplus
11229 extern "C"
11230 #endif
11231 char $ac_func ();
11232 /* The GNU C library defines this for functions which it implements
11233 to always fail with ENOSYS. Some functions are actually named
11234 something starting with __ and the normal name is an alias. */
11235 #if defined __stub_$ac_func || defined __stub___$ac_func
11236 choke me
11237 #endif
11240 main ()
11242 return $ac_func ();
11244 return 0;
11246 _ACEOF
11247 rm -f conftest.$ac_objext conftest$ac_exeext
11248 if { (ac_try="$ac_link"
11249 case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11252 esac
11253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11254 $as_echo "$ac_try_echo") >&5
11255 (eval "$ac_link") 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } && {
11262 test -z "$ac_c_werror_flag" ||
11263 test ! -s conftest.err
11264 } && test -s conftest$ac_exeext && {
11265 test "$cross_compiling" = yes ||
11266 $as_test_x conftest$ac_exeext
11267 }; then
11268 eval "$as_ac_var=yes"
11269 else
11270 $as_echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11273 eval "$as_ac_var=no"
11276 rm -rf conftest.dSYM
11277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11278 conftest$ac_exeext conftest.$ac_ext
11280 ac_res=`eval 'as_val=${'$as_ac_var'}
11281 $as_echo "$as_val"'`
11282 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11283 $as_echo "$ac_res" >&6; }
11284 as_val=`eval 'as_val=${'$as_ac_var'}
11285 $as_echo "$as_val"'`
11286 if test "x$as_val" = x""yes; then
11287 cat >>confdefs.h <<_ACEOF
11288 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11289 _ACEOF
11292 done
11296 if test "${window_system}" = "x11"; then
11297 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11298 $as_echo_n "checking X11 version 6... " >&6; }
11299 if test "${emacs_cv_x11_version_6+set}" = set; then
11300 $as_echo_n "(cached) " >&6
11301 else
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 #include <X11/Xlib.h>
11310 main ()
11312 #if XlibSpecificationRelease < 6
11313 fail;
11314 #endif
11317 return 0;
11319 _ACEOF
11320 rm -f conftest.$ac_objext conftest$ac_exeext
11321 if { (ac_try="$ac_link"
11322 case "(($ac_try" in
11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324 *) ac_try_echo=$ac_try;;
11325 esac
11326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11327 $as_echo "$ac_try_echo") >&5
11328 (eval "$ac_link") 2>conftest.er1
11329 ac_status=$?
11330 grep -v '^ *+' conftest.er1 >conftest.err
11331 rm -f conftest.er1
11332 cat conftest.err >&5
11333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } && {
11335 test -z "$ac_c_werror_flag" ||
11336 test ! -s conftest.err
11337 } && test -s conftest$ac_exeext && {
11338 test "$cross_compiling" = yes ||
11339 $as_test_x conftest$ac_exeext
11340 }; then
11341 emacs_cv_x11_version_6=yes
11342 else
11343 $as_echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11346 emacs_cv_x11_version_6=no
11349 rm -rf conftest.dSYM
11350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11351 conftest$ac_exeext conftest.$ac_ext
11354 if test $emacs_cv_x11_version_6 = yes; then
11355 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11356 $as_echo "6 or newer" >&6; }
11358 cat >>confdefs.h <<\_ACEOF
11359 #define HAVE_X11R6 1
11360 _ACEOF
11362 else
11363 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11364 $as_echo "before 6" >&6; }
11369 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11370 HAVE_RSVG=no
11371 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11372 if test "${with_rsvg}" != "no"; then
11373 RSVG_REQUIRED=2.11.0
11374 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11377 succeeded=no
11379 # Extract the first word of "pkg-config", so it can be a program name with args.
11380 set dummy pkg-config; ac_word=$2
11381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11384 $as_echo_n "(cached) " >&6
11385 else
11386 case $PKG_CONFIG in
11387 [\\/]* | ?:[\\/]*)
11388 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11402 done
11403 done
11404 IFS=$as_save_IFS
11406 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11408 esac
11410 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11411 if test -n "$PKG_CONFIG"; then
11412 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11413 $as_echo "$PKG_CONFIG" >&6; }
11414 else
11415 { $as_echo "$as_me:$LINENO: result: no" >&5
11416 $as_echo "no" >&6; }
11421 if test "$PKG_CONFIG" = "no" ; then
11423 else
11424 PKG_CONFIG_MIN_VERSION=0.9.0
11425 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11426 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11427 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11429 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11430 { $as_echo "$as_me:$LINENO: result: yes" >&5
11431 $as_echo "yes" >&6; }
11432 succeeded=yes
11434 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11435 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11436 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11437 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11438 $as_echo "$RSVG_CFLAGS" >&6; }
11440 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11441 $as_echo_n "checking RSVG_LIBS... " >&6; }
11442 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11443 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11444 $as_echo "$RSVG_LIBS" >&6; }
11445 else
11446 { $as_echo "$as_me:$LINENO: result: no" >&5
11447 $as_echo "no" >&6; }
11448 RSVG_CFLAGS=""
11449 RSVG_LIBS=""
11450 ## If we have a custom action on failure, don't print errors, but
11451 ## do set a variable so people can do so.
11452 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11458 else
11459 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11460 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11464 if test $succeeded = yes; then
11466 else
11473 if test ".${RSVG_CFLAGS}" != "."; then
11474 HAVE_RSVG=yes
11476 cat >>confdefs.h <<\_ACEOF
11477 #define HAVE_RSVG 1
11478 _ACEOF
11480 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11481 LIBS="$RSVG_LIBS $LIBS"
11486 HAVE_IMAGEMAGICK=no
11487 if test "${HAVE_X11}" = "yes" ; then
11488 if test "${with_imagemagick}" != "no"; then
11489 IMAGEMAGICK_REQUIRED=1
11490 IMAGEMAGICK_MODULE="MagickWand >= $IMAGEMAGICK_REQUIRED"
11493 succeeded=no
11495 # Extract the first word of "pkg-config", so it can be a program name with args.
11496 set dummy pkg-config; ac_word=$2
11497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11498 $as_echo_n "checking for $ac_word... " >&6; }
11499 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11500 $as_echo_n "(cached) " >&6
11501 else
11502 case $PKG_CONFIG in
11503 [\\/]* | ?:[\\/]*)
11504 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11508 for as_dir in $PATH
11510 IFS=$as_save_IFS
11511 test -z "$as_dir" && as_dir=.
11512 for ac_exec_ext in '' $ac_executable_extensions; do
11513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11514 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11516 break 2
11518 done
11519 done
11520 IFS=$as_save_IFS
11522 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11524 esac
11526 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11527 if test -n "$PKG_CONFIG"; then
11528 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11529 $as_echo "$PKG_CONFIG" >&6; }
11530 else
11531 { $as_echo "$as_me:$LINENO: result: no" >&5
11532 $as_echo "no" >&6; }
11537 if test "$PKG_CONFIG" = "no" ; then
11539 else
11540 PKG_CONFIG_MIN_VERSION=0.9.0
11541 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11542 { $as_echo "$as_me:$LINENO: checking for $IMAGEMAGICK_MODULE" >&5
11543 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11545 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
11546 { $as_echo "$as_me:$LINENO: result: yes" >&5
11547 $as_echo "yes" >&6; }
11548 succeeded=yes
11550 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_CFLAGS" >&5
11551 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
11552 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11553 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_CFLAGS" >&5
11554 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
11556 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_LIBS" >&5
11557 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
11558 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11559 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_LIBS" >&5
11560 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
11561 else
11562 { $as_echo "$as_me:$LINENO: result: no" >&5
11563 $as_echo "no" >&6; }
11564 IMAGEMAGICK_CFLAGS=""
11565 IMAGEMAGICK_LIBS=""
11566 ## If we have a custom action on failure, don't print errors, but
11567 ## do set a variable so people can do so.
11568 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11574 else
11575 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11576 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11580 if test $succeeded = yes; then
11582 else
11589 if test ".${IMAGEMAGICK_CFLAGS}" != "."; then
11590 HAVE_IMAGEMAGICK=yes
11592 cat >>confdefs.h <<\_ACEOF
11593 #define HAVE_IMAGEMAGICK 1
11594 _ACEOF
11596 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11597 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11602 HAVE_GTK=no
11603 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11604 GLIB_REQUIRED=2.6
11605 GTK_REQUIRED=2.6
11606 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11609 succeeded=no
11611 # Extract the first word of "pkg-config", so it can be a program name with args.
11612 set dummy pkg-config; ac_word=$2
11613 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11614 $as_echo_n "checking for $ac_word... " >&6; }
11615 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11616 $as_echo_n "(cached) " >&6
11617 else
11618 case $PKG_CONFIG in
11619 [\\/]* | ?:[\\/]*)
11620 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624 for as_dir in $PATH
11626 IFS=$as_save_IFS
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11630 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 break 2
11634 done
11635 done
11636 IFS=$as_save_IFS
11638 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11640 esac
11642 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11643 if test -n "$PKG_CONFIG"; then
11644 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11645 $as_echo "$PKG_CONFIG" >&6; }
11646 else
11647 { $as_echo "$as_me:$LINENO: result: no" >&5
11648 $as_echo "no" >&6; }
11653 if test "$PKG_CONFIG" = "no" ; then
11654 pkg_check_gtk=no
11655 else
11656 PKG_CONFIG_MIN_VERSION=0.9.0
11657 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11658 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11659 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11661 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11662 { $as_echo "$as_me:$LINENO: result: yes" >&5
11663 $as_echo "yes" >&6; }
11664 succeeded=yes
11666 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11667 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11668 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11669 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11670 $as_echo "$GTK_CFLAGS" >&6; }
11672 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11673 $as_echo_n "checking GTK_LIBS... " >&6; }
11674 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11675 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11676 $as_echo "$GTK_LIBS" >&6; }
11677 else
11678 { $as_echo "$as_me:$LINENO: result: no" >&5
11679 $as_echo "no" >&6; }
11680 GTK_CFLAGS=""
11681 GTK_LIBS=""
11682 ## If we have a custom action on failure, don't print errors, but
11683 ## do set a variable so people can do so.
11684 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11690 else
11691 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11692 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11696 if test $succeeded = yes; then
11697 pkg_check_gtk=yes
11698 else
11699 pkg_check_gtk=no
11702 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11703 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11704 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11705 { (exit 1); exit 1; }; }
11710 if test x"$pkg_check_gtk" = xyes; then
11714 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11715 CFLAGS="$CFLAGS $GTK_CFLAGS"
11716 LIBS="$GTK_LIBS $LIBS"
11717 GTK_COMPILES=no
11719 for ac_func in gtk_main
11721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11722 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11723 $as_echo_n "checking for $ac_func... " >&6; }
11724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11725 $as_echo_n "(cached) " >&6
11726 else
11727 cat >conftest.$ac_ext <<_ACEOF
11728 /* confdefs.h. */
11729 _ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11735 #define $ac_func innocuous_$ac_func
11737 /* System header to define __stub macros and hopefully few prototypes,
11738 which can conflict with char $ac_func (); below.
11739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11740 <limits.h> exists even on freestanding compilers. */
11742 #ifdef __STDC__
11743 # include <limits.h>
11744 #else
11745 # include <assert.h>
11746 #endif
11748 #undef $ac_func
11750 /* Override any GCC internal prototype to avoid an error.
11751 Use char because int might match the return type of a GCC
11752 builtin and then its argument prototype would still apply. */
11753 #ifdef __cplusplus
11754 extern "C"
11755 #endif
11756 char $ac_func ();
11757 /* The GNU C library defines this for functions which it implements
11758 to always fail with ENOSYS. Some functions are actually named
11759 something starting with __ and the normal name is an alias. */
11760 #if defined __stub_$ac_func || defined __stub___$ac_func
11761 choke me
11762 #endif
11765 main ()
11767 return $ac_func ();
11769 return 0;
11771 _ACEOF
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773 if { (ac_try="$ac_link"
11774 case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11777 esac
11778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11779 $as_echo "$ac_try_echo") >&5
11780 (eval "$ac_link") 2>conftest.er1
11781 ac_status=$?
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
11785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } && {
11787 test -z "$ac_c_werror_flag" ||
11788 test ! -s conftest.err
11789 } && test -s conftest$ac_exeext && {
11790 test "$cross_compiling" = yes ||
11791 $as_test_x conftest$ac_exeext
11792 }; then
11793 eval "$as_ac_var=yes"
11794 else
11795 $as_echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11798 eval "$as_ac_var=no"
11801 rm -rf conftest.dSYM
11802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11803 conftest$ac_exeext conftest.$ac_ext
11805 ac_res=`eval 'as_val=${'$as_ac_var'}
11806 $as_echo "$as_val"'`
11807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11808 $as_echo "$ac_res" >&6; }
11809 as_val=`eval 'as_val=${'$as_ac_var'}
11810 $as_echo "$as_val"'`
11811 if test "x$as_val" = x""yes; then
11812 cat >>confdefs.h <<_ACEOF
11813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11814 _ACEOF
11815 GTK_COMPILES=yes
11817 done
11819 if test "${GTK_COMPILES}" != "yes"; then
11820 if test "$USE_X_TOOLKIT" != "maybe"; then
11821 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11822 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11823 { (exit 1); exit 1; }; };
11825 else
11826 HAVE_GTK=yes
11828 cat >>confdefs.h <<\_ACEOF
11829 #define USE_GTK 1
11830 _ACEOF
11832 USE_X_TOOLKIT=none
11833 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11835 else
11836 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11837 closing open displays. This is no problem if you just use
11838 one display, but if you use more than one and close one of them
11839 Emacs may crash." >&5
11840 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11841 closing open displays. This is no problem if you just use
11842 one display, but if you use more than one and close one of them
11843 Emacs may crash." >&2;}
11844 sleep 3
11851 if test "${HAVE_GTK}" = "yes"; then
11853 if test "$with_toolkit_scroll_bars" != no; then
11854 with_toolkit_scroll_bars=yes
11857 HAVE_GTK_MULTIDISPLAY=no
11859 for ac_func in gdk_display_open
11861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11862 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11863 $as_echo_n "checking for $ac_func... " >&6; }
11864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11865 $as_echo_n "(cached) " >&6
11866 else
11867 cat >conftest.$ac_ext <<_ACEOF
11868 /* confdefs.h. */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11875 #define $ac_func innocuous_$ac_func
11877 /* System header to define __stub macros and hopefully few prototypes,
11878 which can conflict with char $ac_func (); below.
11879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11880 <limits.h> exists even on freestanding compilers. */
11882 #ifdef __STDC__
11883 # include <limits.h>
11884 #else
11885 # include <assert.h>
11886 #endif
11888 #undef $ac_func
11890 /* Override any GCC internal prototype to avoid an error.
11891 Use char because int might match the return type of a GCC
11892 builtin and then its argument prototype would still apply. */
11893 #ifdef __cplusplus
11894 extern "C"
11895 #endif
11896 char $ac_func ();
11897 /* The GNU C library defines this for functions which it implements
11898 to always fail with ENOSYS. Some functions are actually named
11899 something starting with __ and the normal name is an alias. */
11900 #if defined __stub_$ac_func || defined __stub___$ac_func
11901 choke me
11902 #endif
11905 main ()
11907 return $ac_func ();
11909 return 0;
11911 _ACEOF
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (ac_try="$ac_link"
11914 case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11917 esac
11918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11919 $as_echo "$ac_try_echo") >&5
11920 (eval "$ac_link") 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } && {
11927 test -z "$ac_c_werror_flag" ||
11928 test ! -s conftest.err
11929 } && test -s conftest$ac_exeext && {
11930 test "$cross_compiling" = yes ||
11931 $as_test_x conftest$ac_exeext
11932 }; then
11933 eval "$as_ac_var=yes"
11934 else
11935 $as_echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 eval "$as_ac_var=no"
11941 rm -rf conftest.dSYM
11942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11943 conftest$ac_exeext conftest.$ac_ext
11945 ac_res=`eval 'as_val=${'$as_ac_var'}
11946 $as_echo "$as_val"'`
11947 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11948 $as_echo "$ac_res" >&6; }
11949 as_val=`eval 'as_val=${'$as_ac_var'}
11950 $as_echo "$as_val"'`
11951 if test "x$as_val" = x""yes; then
11952 cat >>confdefs.h <<_ACEOF
11953 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11954 _ACEOF
11955 HAVE_GTK_MULTIDISPLAY=yes
11957 done
11959 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11961 cat >>confdefs.h <<\_ACEOF
11962 #define HAVE_GTK_MULTIDISPLAY 1
11963 _ACEOF
11967 HAVE_GTK_FILE_SELECTION=no
11968 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11969 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11970 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11971 $as_echo_n "(cached) " >&6
11972 else
11973 cat >conftest.$ac_ext <<_ACEOF
11974 /* confdefs.h. */
11975 _ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11979 $ac_includes_default
11980 #include <gtk/gtk.h>
11983 main ()
11985 #ifndef GTK_TYPE_FILE_SELECTION
11986 (void) GTK_TYPE_FILE_SELECTION;
11987 #endif
11990 return 0;
11992 _ACEOF
11993 rm -f conftest.$ac_objext
11994 if { (ac_try="$ac_compile"
11995 case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998 esac
11999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12000 $as_echo "$ac_try_echo") >&5
12001 (eval "$ac_compile") 2>conftest.er1
12002 ac_status=$?
12003 grep -v '^ *+' conftest.er1 >conftest.err
12004 rm -f conftest.er1
12005 cat conftest.err >&5
12006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } && {
12008 test -z "$ac_c_werror_flag" ||
12009 test ! -s conftest.err
12010 } && test -s conftest.$ac_objext; then
12011 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12012 else
12013 $as_echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12021 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12022 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12023 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then
12024 HAVE_GTK_FILE_SELECTION=yes
12025 else
12026 HAVE_GTK_FILE_SELECTION=no
12029 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12031 for ac_func in gtk_file_selection_new
12033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12034 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12035 $as_echo_n "checking for $ac_func... " >&6; }
12036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12037 $as_echo_n "(cached) " >&6
12038 else
12039 cat >conftest.$ac_ext <<_ACEOF
12040 /* confdefs.h. */
12041 _ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12047 #define $ac_func innocuous_$ac_func
12049 /* System header to define __stub macros and hopefully few prototypes,
12050 which can conflict with char $ac_func (); below.
12051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12052 <limits.h> exists even on freestanding compilers. */
12054 #ifdef __STDC__
12055 # include <limits.h>
12056 #else
12057 # include <assert.h>
12058 #endif
12060 #undef $ac_func
12062 /* Override any GCC internal prototype to avoid an error.
12063 Use char because int might match the return type of a GCC
12064 builtin and then its argument prototype would still apply. */
12065 #ifdef __cplusplus
12066 extern "C"
12067 #endif
12068 char $ac_func ();
12069 /* The GNU C library defines this for functions which it implements
12070 to always fail with ENOSYS. Some functions are actually named
12071 something starting with __ and the normal name is an alias. */
12072 #if defined __stub_$ac_func || defined __stub___$ac_func
12073 choke me
12074 #endif
12077 main ()
12079 return $ac_func ();
12081 return 0;
12083 _ACEOF
12084 rm -f conftest.$ac_objext conftest$ac_exeext
12085 if { (ac_try="$ac_link"
12086 case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12089 esac
12090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12091 $as_echo "$ac_try_echo") >&5
12092 (eval "$ac_link") 2>conftest.er1
12093 ac_status=$?
12094 grep -v '^ *+' conftest.er1 >conftest.err
12095 rm -f conftest.er1
12096 cat conftest.err >&5
12097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } && {
12099 test -z "$ac_c_werror_flag" ||
12100 test ! -s conftest.err
12101 } && test -s conftest$ac_exeext && {
12102 test "$cross_compiling" = yes ||
12103 $as_test_x conftest$ac_exeext
12104 }; then
12105 eval "$as_ac_var=yes"
12106 else
12107 $as_echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12110 eval "$as_ac_var=no"
12113 rm -rf conftest.dSYM
12114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12115 conftest$ac_exeext conftest.$ac_ext
12117 ac_res=`eval 'as_val=${'$as_ac_var'}
12118 $as_echo "$as_val"'`
12119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12120 $as_echo "$ac_res" >&6; }
12121 as_val=`eval 'as_val=${'$as_ac_var'}
12122 $as_echo "$as_val"'`
12123 if test "x$as_val" = x""yes; then
12124 cat >>confdefs.h <<_ACEOF
12125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12126 _ACEOF
12127 HAVE_GTK_FILE_SELECTION=yes
12128 else
12129 HAVE_GTK_FILE_SELECTION=no
12131 done
12135 HAVE_GTK_FILE_CHOOSER=no
12136 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12137 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12138 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12139 $as_echo_n "(cached) " >&6
12140 else
12141 cat >conftest.$ac_ext <<_ACEOF
12142 /* confdefs.h. */
12143 _ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12147 $ac_includes_default
12148 #include <gtk/gtk.h>
12151 main ()
12153 #ifndef GTK_TYPE_FILE_CHOOSER
12154 (void) GTK_TYPE_FILE_CHOOSER;
12155 #endif
12158 return 0;
12160 _ACEOF
12161 rm -f conftest.$ac_objext
12162 if { (ac_try="$ac_compile"
12163 case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166 esac
12167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12168 $as_echo "$ac_try_echo") >&5
12169 (eval "$ac_compile") 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } && {
12176 test -z "$ac_c_werror_flag" ||
12177 test ! -s conftest.err
12178 } && test -s conftest.$ac_objext; then
12179 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12180 else
12181 $as_echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12184 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12190 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12191 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then
12192 HAVE_GTK_FILE_CHOOSER=yes
12193 else
12194 HAVE_GTK_FILE_CHOOSER=no
12197 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12199 for ac_func in gtk_file_chooser_dialog_new
12201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12202 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12203 $as_echo_n "checking for $ac_func... " >&6; }
12204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12205 $as_echo_n "(cached) " >&6
12206 else
12207 cat >conftest.$ac_ext <<_ACEOF
12208 /* confdefs.h. */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12215 #define $ac_func innocuous_$ac_func
12217 /* System header to define __stub macros and hopefully few prototypes,
12218 which can conflict with char $ac_func (); below.
12219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12220 <limits.h> exists even on freestanding compilers. */
12222 #ifdef __STDC__
12223 # include <limits.h>
12224 #else
12225 # include <assert.h>
12226 #endif
12228 #undef $ac_func
12230 /* Override any GCC internal prototype to avoid an error.
12231 Use char because int might match the return type of a GCC
12232 builtin and then its argument prototype would still apply. */
12233 #ifdef __cplusplus
12234 extern "C"
12235 #endif
12236 char $ac_func ();
12237 /* The GNU C library defines this for functions which it implements
12238 to always fail with ENOSYS. Some functions are actually named
12239 something starting with __ and the normal name is an alias. */
12240 #if defined __stub_$ac_func || defined __stub___$ac_func
12241 choke me
12242 #endif
12245 main ()
12247 return $ac_func ();
12249 return 0;
12251 _ACEOF
12252 rm -f conftest.$ac_objext conftest$ac_exeext
12253 if { (ac_try="$ac_link"
12254 case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12257 esac
12258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12259 $as_echo "$ac_try_echo") >&5
12260 (eval "$ac_link") 2>conftest.er1
12261 ac_status=$?
12262 grep -v '^ *+' conftest.er1 >conftest.err
12263 rm -f conftest.er1
12264 cat conftest.err >&5
12265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } && {
12267 test -z "$ac_c_werror_flag" ||
12268 test ! -s conftest.err
12269 } && test -s conftest$ac_exeext && {
12270 test "$cross_compiling" = yes ||
12271 $as_test_x conftest$ac_exeext
12272 }; then
12273 eval "$as_ac_var=yes"
12274 else
12275 $as_echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12278 eval "$as_ac_var=no"
12281 rm -rf conftest.dSYM
12282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12283 conftest$ac_exeext conftest.$ac_ext
12285 ac_res=`eval 'as_val=${'$as_ac_var'}
12286 $as_echo "$as_val"'`
12287 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12288 $as_echo "$ac_res" >&6; }
12289 as_val=`eval 'as_val=${'$as_ac_var'}
12290 $as_echo "$as_val"'`
12291 if test "x$as_val" = x""yes; then
12292 cat >>confdefs.h <<_ACEOF
12293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12294 _ACEOF
12295 HAVE_GTK_FILE_CHOOSER=yes
12296 else
12297 HAVE_GTK_FILE_CHOOSER=no
12299 done
12303 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12304 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12306 cat >>confdefs.h <<\_ACEOF
12307 #define HAVE_GTK_FILE_BOTH 1
12308 _ACEOF
12312 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12313 HAVE_GTK_AND_PTHREAD=no
12315 for ac_header in pthread.h
12317 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12319 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12320 $as_echo_n "checking for $ac_header... " >&6; }
12321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12322 $as_echo_n "(cached) " >&6
12324 ac_res=`eval 'as_val=${'$as_ac_Header'}
12325 $as_echo "$as_val"'`
12326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12327 $as_echo "$ac_res" >&6; }
12328 else
12329 # Is the header compilable?
12330 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12331 $as_echo_n "checking $ac_header usability... " >&6; }
12332 cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h. */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12338 $ac_includes_default
12339 #include <$ac_header>
12340 _ACEOF
12341 rm -f conftest.$ac_objext
12342 if { (ac_try="$ac_compile"
12343 case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12346 esac
12347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12348 $as_echo "$ac_try_echo") >&5
12349 (eval "$ac_compile") 2>conftest.er1
12350 ac_status=$?
12351 grep -v '^ *+' conftest.er1 >conftest.err
12352 rm -f conftest.er1
12353 cat conftest.err >&5
12354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } && {
12356 test -z "$ac_c_werror_flag" ||
12357 test ! -s conftest.err
12358 } && test -s conftest.$ac_objext; then
12359 ac_header_compiler=yes
12360 else
12361 $as_echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12364 ac_header_compiler=no
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12369 $as_echo "$ac_header_compiler" >&6; }
12371 # Is the header present?
12372 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12373 $as_echo_n "checking $ac_header presence... " >&6; }
12374 cat >conftest.$ac_ext <<_ACEOF
12375 /* confdefs.h. */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12380 #include <$ac_header>
12381 _ACEOF
12382 if { (ac_try="$ac_cpp conftest.$ac_ext"
12383 case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386 esac
12387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12388 $as_echo "$ac_try_echo") >&5
12389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12390 ac_status=$?
12391 grep -v '^ *+' conftest.er1 >conftest.err
12392 rm -f conftest.er1
12393 cat conftest.err >&5
12394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); } >/dev/null && {
12396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12397 test ! -s conftest.err
12398 }; then
12399 ac_header_preproc=yes
12400 else
12401 $as_echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12404 ac_header_preproc=no
12407 rm -f conftest.err conftest.$ac_ext
12408 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12409 $as_echo "$ac_header_preproc" >&6; }
12411 # So? What about this header?
12412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12413 yes:no: )
12414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12415 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12417 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12418 ac_header_preproc=yes
12420 no:yes:* )
12421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12422 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12424 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12426 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12428 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12430 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12432 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12435 esac
12436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12437 $as_echo_n "checking for $ac_header... " >&6; }
12438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12439 $as_echo_n "(cached) " >&6
12440 else
12441 eval "$as_ac_Header=\$ac_header_preproc"
12443 ac_res=`eval 'as_val=${'$as_ac_Header'}
12444 $as_echo "$as_val"'`
12445 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12446 $as_echo "$ac_res" >&6; }
12449 as_val=`eval 'as_val=${'$as_ac_Header'}
12450 $as_echo "$as_val"'`
12451 if test "x$as_val" = x""yes; then
12452 cat >>confdefs.h <<_ACEOF
12453 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12454 _ACEOF
12458 done
12460 if test "$ac_cv_header_pthread_h"; then
12461 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12462 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12463 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12464 $as_echo_n "(cached) " >&6
12465 else
12466 ac_check_lib_save_LIBS=$LIBS
12467 LIBS="-lpthread $LIBS"
12468 cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h. */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12475 /* Override any GCC internal prototype to avoid an error.
12476 Use char because int might match the return type of a GCC
12477 builtin and then its argument prototype would still apply. */
12478 #ifdef __cplusplus
12479 extern "C"
12480 #endif
12481 char pthread_self ();
12483 main ()
12485 return pthread_self ();
12487 return 0;
12489 _ACEOF
12490 rm -f conftest.$ac_objext conftest$ac_exeext
12491 if { (ac_try="$ac_link"
12492 case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12495 esac
12496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12497 $as_echo "$ac_try_echo") >&5
12498 (eval "$ac_link") 2>conftest.er1
12499 ac_status=$?
12500 grep -v '^ *+' conftest.er1 >conftest.err
12501 rm -f conftest.er1
12502 cat conftest.err >&5
12503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } && {
12505 test -z "$ac_c_werror_flag" ||
12506 test ! -s conftest.err
12507 } && test -s conftest$ac_exeext && {
12508 test "$cross_compiling" = yes ||
12509 $as_test_x conftest$ac_exeext
12510 }; then
12511 ac_cv_lib_pthread_pthread_self=yes
12512 else
12513 $as_echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12516 ac_cv_lib_pthread_pthread_self=no
12519 rm -rf conftest.dSYM
12520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12521 conftest$ac_exeext conftest.$ac_ext
12522 LIBS=$ac_check_lib_save_LIBS
12524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12525 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12526 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then
12527 HAVE_GTK_AND_PTHREAD=yes
12531 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12532 case "${canonical}" in
12533 *-hpux*) ;;
12534 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12535 esac
12537 cat >>confdefs.h <<\_ACEOF
12538 #define HAVE_GTK_AND_PTHREAD 1
12539 _ACEOF
12545 HAVE_DBUS=no
12546 if test "${with_dbus}" = "yes"; then
12548 succeeded=no
12550 # Extract the first word of "pkg-config", so it can be a program name with args.
12551 set dummy pkg-config; ac_word=$2
12552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12553 $as_echo_n "checking for $ac_word... " >&6; }
12554 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12555 $as_echo_n "(cached) " >&6
12556 else
12557 case $PKG_CONFIG in
12558 [\\/]* | ?:[\\/]*)
12559 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12569 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12571 break 2
12573 done
12574 done
12575 IFS=$as_save_IFS
12577 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12579 esac
12581 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12582 if test -n "$PKG_CONFIG"; then
12583 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12584 $as_echo "$PKG_CONFIG" >&6; }
12585 else
12586 { $as_echo "$as_me:$LINENO: result: no" >&5
12587 $as_echo "no" >&6; }
12592 if test "$PKG_CONFIG" = "no" ; then
12593 HAVE_DBUS=no
12594 else
12595 PKG_CONFIG_MIN_VERSION=0.9.0
12596 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12597 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12598 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12600 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12601 { $as_echo "$as_me:$LINENO: result: yes" >&5
12602 $as_echo "yes" >&6; }
12603 succeeded=yes
12605 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12606 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12607 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12608 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12609 $as_echo "$DBUS_CFLAGS" >&6; }
12611 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12612 $as_echo_n "checking DBUS_LIBS... " >&6; }
12613 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12614 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12615 $as_echo "$DBUS_LIBS" >&6; }
12616 else
12617 { $as_echo "$as_me:$LINENO: result: no" >&5
12618 $as_echo "no" >&6; }
12619 DBUS_CFLAGS=""
12620 DBUS_LIBS=""
12621 ## If we have a custom action on failure, don't print errors, but
12622 ## do set a variable so people can do so.
12623 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12629 else
12630 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12631 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12635 if test $succeeded = yes; then
12636 HAVE_DBUS=yes
12637 else
12638 HAVE_DBUS=no
12641 if test "$HAVE_DBUS" = yes; then
12642 LIBS="$LIBS $DBUS_LIBS"
12644 cat >>confdefs.h <<\_ACEOF
12645 #define HAVE_DBUS 1
12646 _ACEOF
12649 for ac_func in dbus_watch_get_unix_fd
12651 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12652 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12653 $as_echo_n "checking for $ac_func... " >&6; }
12654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12655 $as_echo_n "(cached) " >&6
12656 else
12657 cat >conftest.$ac_ext <<_ACEOF
12658 /* confdefs.h. */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12665 #define $ac_func innocuous_$ac_func
12667 /* System header to define __stub macros and hopefully few prototypes,
12668 which can conflict with char $ac_func (); below.
12669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12670 <limits.h> exists even on freestanding compilers. */
12672 #ifdef __STDC__
12673 # include <limits.h>
12674 #else
12675 # include <assert.h>
12676 #endif
12678 #undef $ac_func
12680 /* Override any GCC internal prototype to avoid an error.
12681 Use char because int might match the return type of a GCC
12682 builtin and then its argument prototype would still apply. */
12683 #ifdef __cplusplus
12684 extern "C"
12685 #endif
12686 char $ac_func ();
12687 /* The GNU C library defines this for functions which it implements
12688 to always fail with ENOSYS. Some functions are actually named
12689 something starting with __ and the normal name is an alias. */
12690 #if defined __stub_$ac_func || defined __stub___$ac_func
12691 choke me
12692 #endif
12695 main ()
12697 return $ac_func ();
12699 return 0;
12701 _ACEOF
12702 rm -f conftest.$ac_objext conftest$ac_exeext
12703 if { (ac_try="$ac_link"
12704 case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12707 esac
12708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12709 $as_echo "$ac_try_echo") >&5
12710 (eval "$ac_link") 2>conftest.er1
12711 ac_status=$?
12712 grep -v '^ *+' conftest.er1 >conftest.err
12713 rm -f conftest.er1
12714 cat conftest.err >&5
12715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } && {
12717 test -z "$ac_c_werror_flag" ||
12718 test ! -s conftest.err
12719 } && test -s conftest$ac_exeext && {
12720 test "$cross_compiling" = yes ||
12721 $as_test_x conftest$ac_exeext
12722 }; then
12723 eval "$as_ac_var=yes"
12724 else
12725 $as_echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12728 eval "$as_ac_var=no"
12731 rm -rf conftest.dSYM
12732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12733 conftest$ac_exeext conftest.$ac_ext
12735 ac_res=`eval 'as_val=${'$as_ac_var'}
12736 $as_echo "$as_val"'`
12737 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12738 $as_echo "$ac_res" >&6; }
12739 as_val=`eval 'as_val=${'$as_ac_var'}
12740 $as_echo "$as_val"'`
12741 if test "x$as_val" = x""yes; then
12742 cat >>confdefs.h <<_ACEOF
12743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12744 _ACEOF
12747 done
12752 HAVE_GCONF=no
12753 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12755 succeeded=no
12757 # Extract the first word of "pkg-config", so it can be a program name with args.
12758 set dummy pkg-config; ac_word=$2
12759 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12760 $as_echo_n "checking for $ac_word... " >&6; }
12761 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12762 $as_echo_n "(cached) " >&6
12763 else
12764 case $PKG_CONFIG in
12765 [\\/]* | ?:[\\/]*)
12766 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12770 for as_dir in $PATH
12772 IFS=$as_save_IFS
12773 test -z "$as_dir" && as_dir=.
12774 for ac_exec_ext in '' $ac_executable_extensions; do
12775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12776 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12777 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12778 break 2
12780 done
12781 done
12782 IFS=$as_save_IFS
12784 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12786 esac
12788 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12789 if test -n "$PKG_CONFIG"; then
12790 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12791 $as_echo "$PKG_CONFIG" >&6; }
12792 else
12793 { $as_echo "$as_me:$LINENO: result: no" >&5
12794 $as_echo "no" >&6; }
12799 if test "$PKG_CONFIG" = "no" ; then
12800 HAVE_GCONF=no
12801 else
12802 PKG_CONFIG_MIN_VERSION=0.9.0
12803 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12804 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12805 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12807 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12808 { $as_echo "$as_me:$LINENO: result: yes" >&5
12809 $as_echo "yes" >&6; }
12810 succeeded=yes
12812 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12813 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12814 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12815 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12816 $as_echo "$GCONF_CFLAGS" >&6; }
12818 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12819 $as_echo_n "checking GCONF_LIBS... " >&6; }
12820 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12821 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12822 $as_echo "$GCONF_LIBS" >&6; }
12823 else
12824 { $as_echo "$as_me:$LINENO: result: no" >&5
12825 $as_echo "no" >&6; }
12826 GCONF_CFLAGS=""
12827 GCONF_LIBS=""
12828 ## If we have a custom action on failure, don't print errors, but
12829 ## do set a variable so people can do so.
12830 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12836 else
12837 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12838 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12842 if test $succeeded = yes; then
12843 HAVE_GCONF=yes
12844 else
12845 HAVE_GCONF=no
12848 if test "$HAVE_GCONF" = yes; then
12850 cat >>confdefs.h <<\_ACEOF
12851 #define HAVE_GCONF 1
12852 _ACEOF
12857 HAVE_XAW3D=no
12858 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12859 if test "$with_xaw3d" != no; then
12860 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12861 $as_echo_n "checking for xaw3d... " >&6; }
12862 if test "${emacs_cv_xaw3d+set}" = set; then
12863 $as_echo_n "(cached) " >&6
12864 else
12865 cat >conftest.$ac_ext <<_ACEOF
12866 /* confdefs.h. */
12867 _ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h. */
12872 #include <X11/Intrinsic.h>
12873 #include <X11/Xaw3d/Simple.h>
12875 main ()
12879 return 0;
12881 _ACEOF
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (ac_try="$ac_link"
12884 case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887 esac
12888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12889 $as_echo "$ac_try_echo") >&5
12890 (eval "$ac_link") 2>conftest.er1
12891 ac_status=$?
12892 grep -v '^ *+' conftest.er1 >conftest.err
12893 rm -f conftest.er1
12894 cat conftest.err >&5
12895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } && {
12897 test -z "$ac_c_werror_flag" ||
12898 test ! -s conftest.err
12899 } && test -s conftest$ac_exeext && {
12900 test "$cross_compiling" = yes ||
12901 $as_test_x conftest$ac_exeext
12902 }; then
12903 emacs_cv_xaw3d=yes
12904 else
12905 $as_echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12908 emacs_cv_xaw3d=no
12911 rm -rf conftest.dSYM
12912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12913 conftest$ac_exeext conftest.$ac_ext
12916 else
12917 emacs_cv_xaw3d=no
12919 if test $emacs_cv_xaw3d = yes; then
12920 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12921 $as_echo "yes; using Lucid toolkit" >&6; }
12922 USE_X_TOOLKIT=LUCID
12923 HAVE_XAW3D=yes
12925 cat >>confdefs.h <<\_ACEOF
12926 #define HAVE_XAW3D 1
12927 _ACEOF
12929 else
12930 { $as_echo "$as_me:$LINENO: result: no" >&5
12931 $as_echo "no" >&6; }
12932 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12933 $as_echo_n "checking for libXaw... " >&6; }
12934 if test "${emacs_cv_xaw+set}" = set; then
12935 $as_echo_n "(cached) " >&6
12936 else
12937 cat >conftest.$ac_ext <<_ACEOF
12938 /* confdefs.h. */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12944 #include <X11/Intrinsic.h>
12945 #include <X11/Xaw/Simple.h>
12947 main ()
12951 return 0;
12953 _ACEOF
12954 rm -f conftest.$ac_objext conftest$ac_exeext
12955 if { (ac_try="$ac_link"
12956 case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12959 esac
12960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12961 $as_echo "$ac_try_echo") >&5
12962 (eval "$ac_link") 2>conftest.er1
12963 ac_status=$?
12964 grep -v '^ *+' conftest.er1 >conftest.err
12965 rm -f conftest.er1
12966 cat conftest.err >&5
12967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } && {
12969 test -z "$ac_c_werror_flag" ||
12970 test ! -s conftest.err
12971 } && test -s conftest$ac_exeext && {
12972 test "$cross_compiling" = yes ||
12973 $as_test_x conftest$ac_exeext
12974 }; then
12975 emacs_cv_xaw=yes
12976 else
12977 $as_echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12980 emacs_cv_xaw=no
12983 rm -rf conftest.dSYM
12984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12985 conftest$ac_exeext conftest.$ac_ext
12988 if test $emacs_cv_xaw = yes; then
12989 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12990 $as_echo "yes; using Lucid toolkit" >&6; }
12991 USE_X_TOOLKIT=LUCID
12992 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12993 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12994 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12995 { (exit 1); exit 1; }; }
12996 else
12997 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12998 $as_echo "no; do not use toolkit by default" >&6; }
12999 USE_X_TOOLKIT=none
13004 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13006 if test "${USE_X_TOOLKIT}" != "none"; then
13007 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13008 $as_echo_n "checking X11 toolkit version... " >&6; }
13009 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13010 $as_echo_n "(cached) " >&6
13011 else
13012 cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h. */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13018 #include <X11/Intrinsic.h>
13020 main ()
13022 #if XtSpecificationRelease < 6
13023 fail;
13024 #endif
13027 return 0;
13029 _ACEOF
13030 rm -f conftest.$ac_objext conftest$ac_exeext
13031 if { (ac_try="$ac_link"
13032 case "(($ac_try" in
13033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13035 esac
13036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13037 $as_echo "$ac_try_echo") >&5
13038 (eval "$ac_link") 2>conftest.er1
13039 ac_status=$?
13040 grep -v '^ *+' conftest.er1 >conftest.err
13041 rm -f conftest.er1
13042 cat conftest.err >&5
13043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } && {
13045 test -z "$ac_c_werror_flag" ||
13046 test ! -s conftest.err
13047 } && test -s conftest$ac_exeext && {
13048 test "$cross_compiling" = yes ||
13049 $as_test_x conftest$ac_exeext
13050 }; then
13051 emacs_cv_x11_toolkit_version_6=yes
13052 else
13053 $as_echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13056 emacs_cv_x11_toolkit_version_6=no
13059 rm -rf conftest.dSYM
13060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13061 conftest$ac_exeext conftest.$ac_ext
13064 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13065 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13066 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13067 $as_echo "6 or newer" >&6; }
13069 cat >>confdefs.h <<\_ACEOF
13070 #define HAVE_X11XTR6 1
13071 _ACEOF
13073 else
13074 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13075 $as_echo "before 6" >&6; }
13078 OLDLIBS="$LIBS"
13079 if test x$HAVE_X11XTR6 = xyes; then
13080 LIBS="-lXt -lSM -lICE $LIBS"
13081 else
13082 LIBS="-lXt $LIBS"
13085 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13086 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13087 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13088 $as_echo_n "(cached) " >&6
13089 else
13090 ac_check_lib_save_LIBS=$LIBS
13091 LIBS="-lXmu $LIBS"
13092 cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h. */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13099 /* Override any GCC internal prototype to avoid an error.
13100 Use char because int might match the return type of a GCC
13101 builtin and then its argument prototype would still apply. */
13102 #ifdef __cplusplus
13103 extern "C"
13104 #endif
13105 char XmuConvertStandardSelection ();
13107 main ()
13109 return XmuConvertStandardSelection ();
13111 return 0;
13113 _ACEOF
13114 rm -f conftest.$ac_objext conftest$ac_exeext
13115 if { (ac_try="$ac_link"
13116 case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13119 esac
13120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13121 $as_echo "$ac_try_echo") >&5
13122 (eval "$ac_link") 2>conftest.er1
13123 ac_status=$?
13124 grep -v '^ *+' conftest.er1 >conftest.err
13125 rm -f conftest.er1
13126 cat conftest.err >&5
13127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } && {
13129 test -z "$ac_c_werror_flag" ||
13130 test ! -s conftest.err
13131 } && test -s conftest$ac_exeext && {
13132 test "$cross_compiling" = yes ||
13133 $as_test_x conftest$ac_exeext
13134 }; then
13135 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13136 else
13137 $as_echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13140 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13143 rm -rf conftest.dSYM
13144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13145 conftest$ac_exeext conftest.$ac_ext
13146 LIBS=$ac_check_lib_save_LIBS
13148 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13149 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13150 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then
13151 cat >>confdefs.h <<_ACEOF
13152 #define HAVE_LIBXMU 1
13153 _ACEOF
13155 LIBS="-lXmu $LIBS"
13159 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13162 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13163 if test "${HAVE_X11}" = "yes"; then
13164 if test "${USE_X_TOOLKIT}" != "none"; then
13166 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13167 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13168 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13169 $as_echo_n "(cached) " >&6
13170 else
13171 ac_check_lib_save_LIBS=$LIBS
13172 LIBS="-lXext $LIBS"
13173 cat >conftest.$ac_ext <<_ACEOF
13174 /* confdefs.h. */
13175 _ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13180 /* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13183 #ifdef __cplusplus
13184 extern "C"
13185 #endif
13186 char XShapeQueryExtension ();
13188 main ()
13190 return XShapeQueryExtension ();
13192 return 0;
13194 _ACEOF
13195 rm -f conftest.$ac_objext conftest$ac_exeext
13196 if { (ac_try="$ac_link"
13197 case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13200 esac
13201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13202 $as_echo "$ac_try_echo") >&5
13203 (eval "$ac_link") 2>conftest.er1
13204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } && {
13210 test -z "$ac_c_werror_flag" ||
13211 test ! -s conftest.err
13212 } && test -s conftest$ac_exeext && {
13213 test "$cross_compiling" = yes ||
13214 $as_test_x conftest$ac_exeext
13215 }; then
13216 ac_cv_lib_Xext_XShapeQueryExtension=yes
13217 else
13218 $as_echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13221 ac_cv_lib_Xext_XShapeQueryExtension=no
13224 rm -rf conftest.dSYM
13225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13226 conftest$ac_exeext conftest.$ac_ext
13227 LIBS=$ac_check_lib_save_LIBS
13229 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13230 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13231 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
13232 cat >>confdefs.h <<_ACEOF
13233 #define HAVE_LIBXEXT 1
13234 _ACEOF
13236 LIBS="-lXext $LIBS"
13243 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13244 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13245 $as_echo_n "checking for Motif version 2.1... " >&6; }
13246 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13247 $as_echo_n "(cached) " >&6
13248 else
13249 cat >conftest.$ac_ext <<_ACEOF
13250 /* confdefs.h. */
13251 _ACEOF
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h. */
13255 #include <Xm/Xm.h>
13257 main ()
13259 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13260 int x = 5;
13261 #else
13262 Motif version prior to 2.1.
13263 #endif
13265 return 0;
13267 _ACEOF
13268 rm -f conftest.$ac_objext
13269 if { (ac_try="$ac_compile"
13270 case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13273 esac
13274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13275 $as_echo "$ac_try_echo") >&5
13276 (eval "$ac_compile") 2>conftest.er1
13277 ac_status=$?
13278 grep -v '^ *+' conftest.er1 >conftest.err
13279 rm -f conftest.er1
13280 cat conftest.err >&5
13281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } && {
13283 test -z "$ac_c_werror_flag" ||
13284 test ! -s conftest.err
13285 } && test -s conftest.$ac_objext; then
13286 emacs_cv_motif_version_2_1=yes
13287 else
13288 $as_echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13291 emacs_cv_motif_version_2_1=no
13294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13296 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13297 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13298 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13299 if test $emacs_cv_motif_version_2_1 = yes; then
13300 HAVE_LIBXP=no
13302 cat >>confdefs.h <<\_ACEOF
13303 #define HAVE_MOTIF_2_1 1
13304 _ACEOF
13306 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13307 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13308 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13309 $as_echo_n "(cached) " >&6
13310 else
13311 ac_check_lib_save_LIBS=$LIBS
13312 LIBS="-lXp $LIBS"
13313 cat >conftest.$ac_ext <<_ACEOF
13314 /* confdefs.h. */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13320 /* Override any GCC internal prototype to avoid an error.
13321 Use char because int might match the return type of a GCC
13322 builtin and then its argument prototype would still apply. */
13323 #ifdef __cplusplus
13324 extern "C"
13325 #endif
13326 char XpCreateContext ();
13328 main ()
13330 return XpCreateContext ();
13332 return 0;
13334 _ACEOF
13335 rm -f conftest.$ac_objext conftest$ac_exeext
13336 if { (ac_try="$ac_link"
13337 case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13340 esac
13341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13342 $as_echo "$ac_try_echo") >&5
13343 (eval "$ac_link") 2>conftest.er1
13344 ac_status=$?
13345 grep -v '^ *+' conftest.er1 >conftest.err
13346 rm -f conftest.er1
13347 cat conftest.err >&5
13348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } && {
13350 test -z "$ac_c_werror_flag" ||
13351 test ! -s conftest.err
13352 } && test -s conftest$ac_exeext && {
13353 test "$cross_compiling" = yes ||
13354 $as_test_x conftest$ac_exeext
13355 }; then
13356 ac_cv_lib_Xp_XpCreateContext=yes
13357 else
13358 $as_echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 ac_cv_lib_Xp_XpCreateContext=no
13364 rm -rf conftest.dSYM
13365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13366 conftest$ac_exeext conftest.$ac_ext
13367 LIBS=$ac_check_lib_save_LIBS
13369 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13370 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13371 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then
13372 HAVE_LIBXP=yes
13375 if test ${HAVE_LIBXP} = yes; then
13377 cat >>confdefs.h <<\_ACEOF
13378 #define HAVE_LIBXP 1
13379 _ACEOF
13382 else
13383 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13384 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13385 if test "${emacs_cv_lesstif+set}" = set; then
13386 $as_echo_n "(cached) " >&6
13387 else
13388 # We put this in CFLAGS temporarily to precede other -I options
13389 # that might be in CFLAGS temporarily.
13390 # We put this in CPPFLAGS where it precedes the other -I options.
13391 OLD_CPPFLAGS=$CPPFLAGS
13392 OLD_CFLAGS=$CFLAGS
13393 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13394 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13395 cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h. */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13401 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13403 main ()
13405 int x = 5;
13407 return 0;
13409 _ACEOF
13410 rm -f conftest.$ac_objext
13411 if { (ac_try="$ac_compile"
13412 case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13415 esac
13416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13417 $as_echo "$ac_try_echo") >&5
13418 (eval "$ac_compile") 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } && {
13425 test -z "$ac_c_werror_flag" ||
13426 test ! -s conftest.err
13427 } && test -s conftest.$ac_objext; then
13428 emacs_cv_lesstif=yes
13429 else
13430 $as_echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13433 emacs_cv_lesstif=no
13436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13438 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13439 $as_echo "$emacs_cv_lesstif" >&6; }
13440 if test $emacs_cv_lesstif = yes; then
13441 # Make sure this -I option remains in CPPFLAGS after it is set
13442 # back to REAL_CPPFLAGS.
13443 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13444 # have those other -I options anyway. Ultimately, having this
13445 # directory ultimately in CPPFLAGS will be enough.
13446 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13447 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13448 else
13449 CFLAGS=$OLD_CFLAGS
13450 CPPFLAGS=$OLD_CPPFLAGS
13457 USE_TOOLKIT_SCROLL_BARS=no
13458 if test "${with_toolkit_scroll_bars}" != "no"; then
13459 if test "${USE_X_TOOLKIT}" != "none"; then
13460 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13461 cat >>confdefs.h <<\_ACEOF
13462 #define USE_TOOLKIT_SCROLL_BARS 1
13463 _ACEOF
13465 HAVE_XAW3D=no
13466 USE_TOOLKIT_SCROLL_BARS=yes
13467 elif test "${HAVE_XAW3D}" = "yes"; then
13468 cat >>confdefs.h <<\_ACEOF
13469 #define USE_TOOLKIT_SCROLL_BARS 1
13470 _ACEOF
13472 USE_TOOLKIT_SCROLL_BARS=yes
13474 elif test "${HAVE_GTK}" = "yes"; then
13475 cat >>confdefs.h <<\_ACEOF
13476 #define USE_TOOLKIT_SCROLL_BARS 1
13477 _ACEOF
13479 USE_TOOLKIT_SCROLL_BARS=yes
13480 elif test "${HAVE_NS}" = "yes"; then
13481 cat >>confdefs.h <<\_ACEOF
13482 #define USE_TOOLKIT_SCROLL_BARS 1
13483 _ACEOF
13485 USE_TOOLKIT_SCROLL_BARS=yes
13489 cat >conftest.$ac_ext <<_ACEOF
13490 /* confdefs.h. */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13496 #include <X11/Xlib.h>
13497 #include <X11/Xresource.h>
13499 main ()
13501 XIMProc callback;
13503 return 0;
13505 _ACEOF
13506 rm -f conftest.$ac_objext
13507 if { (ac_try="$ac_compile"
13508 case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13511 esac
13512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13513 $as_echo "$ac_try_echo") >&5
13514 (eval "$ac_compile") 2>conftest.er1
13515 ac_status=$?
13516 grep -v '^ *+' conftest.er1 >conftest.err
13517 rm -f conftest.er1
13518 cat conftest.err >&5
13519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } && {
13521 test -z "$ac_c_werror_flag" ||
13522 test ! -s conftest.err
13523 } && test -s conftest.$ac_objext; then
13524 HAVE_XIM=yes
13526 cat >>confdefs.h <<\_ACEOF
13527 #define HAVE_XIM 1
13528 _ACEOF
13530 else
13531 $as_echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13534 HAVE_XIM=no
13537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540 if test "${with_xim}" != "no"; then
13542 cat >>confdefs.h <<\_ACEOF
13543 #define USE_XIM 1
13544 _ACEOF
13549 if test "${HAVE_XIM}" != "no"; then
13550 late_CFLAGS=$CFLAGS
13551 if test "$GCC" = yes; then
13552 CFLAGS="$CFLAGS --pedantic-errors"
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13561 #include <X11/Xlib.h>
13562 #include <X11/Xresource.h>
13564 main ()
13566 Display *display;
13567 XrmDatabase db;
13568 char *res_name;
13569 char *res_class;
13570 XIMProc callback;
13571 XPointer *client_data;
13572 #ifndef __GNUC__
13573 /* If we're not using GCC, it's probably not XFree86, and this is
13574 probably right, but we can't use something like --pedantic-errors. */
13575 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13576 char*, XIMProc, XPointer*);
13577 #endif
13578 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13579 client_data);
13581 return 0;
13583 _ACEOF
13584 rm -f conftest.$ac_objext
13585 if { (ac_try="$ac_compile"
13586 case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13589 esac
13590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13591 $as_echo "$ac_try_echo") >&5
13592 (eval "$ac_compile") 2>conftest.er1
13593 ac_status=$?
13594 grep -v '^ *+' conftest.er1 >conftest.err
13595 rm -f conftest.er1
13596 cat conftest.err >&5
13597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } && {
13599 test -z "$ac_c_werror_flag" ||
13600 test ! -s conftest.err
13601 } && test -s conftest.$ac_objext; then
13602 emacs_cv_arg6_star=yes
13603 else
13604 $as_echo "$as_me: failed program was:" >&5
13605 sed 's/^/| /' conftest.$ac_ext >&5
13610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612 if test "$emacs_cv_arg6_star" = yes; then
13613 cat >>confdefs.h <<\_ACEOF
13614 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13615 _ACEOF
13617 else
13618 cat >>confdefs.h <<\_ACEOF
13619 #define XRegisterIMInstantiateCallback_arg6 XPointer
13620 _ACEOF
13623 CFLAGS=$late_CFLAGS
13626 ### Start of font-backend (under any platform) section.
13627 # (nothing here yet -- this is a placeholder)
13628 ### End of font-backend (under any platform) section.
13630 ### Start of font-backend (under X11) section.
13631 if test "${HAVE_X11}" = "yes"; then
13633 succeeded=no
13635 # Extract the first word of "pkg-config", so it can be a program name with args.
13636 set dummy pkg-config; ac_word=$2
13637 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13638 $as_echo_n "checking for $ac_word... " >&6; }
13639 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13640 $as_echo_n "(cached) " >&6
13641 else
13642 case $PKG_CONFIG in
13643 [\\/]* | ?:[\\/]*)
13644 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13648 for as_dir in $PATH
13650 IFS=$as_save_IFS
13651 test -z "$as_dir" && as_dir=.
13652 for ac_exec_ext in '' $ac_executable_extensions; do
13653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13654 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13656 break 2
13658 done
13659 done
13660 IFS=$as_save_IFS
13662 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13664 esac
13666 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13667 if test -n "$PKG_CONFIG"; then
13668 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13669 $as_echo "$PKG_CONFIG" >&6; }
13670 else
13671 { $as_echo "$as_me:$LINENO: result: no" >&5
13672 $as_echo "no" >&6; }
13677 if test "$PKG_CONFIG" = "no" ; then
13678 HAVE_FC=no
13679 else
13680 PKG_CONFIG_MIN_VERSION=0.9.0
13681 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13682 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13683 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13685 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13686 { $as_echo "$as_me:$LINENO: result: yes" >&5
13687 $as_echo "yes" >&6; }
13688 succeeded=yes
13690 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13691 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13692 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13693 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13694 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13696 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13697 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13698 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13699 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13700 $as_echo "$FONTCONFIG_LIBS" >&6; }
13701 else
13702 { $as_echo "$as_me:$LINENO: result: no" >&5
13703 $as_echo "no" >&6; }
13704 FONTCONFIG_CFLAGS=""
13705 FONTCONFIG_LIBS=""
13706 ## If we have a custom action on failure, don't print errors, but
13707 ## do set a variable so people can do so.
13708 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13714 else
13715 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13716 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13720 if test $succeeded = yes; then
13721 HAVE_FC=yes
13722 else
13723 HAVE_FC=no
13727 ## Use -lXft if available, unless `--with-xft=no'.
13728 HAVE_XFT=maybe
13729 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13730 with_xft="no";
13732 if test "x${with_xft}" != "xno"; then
13735 succeeded=no
13737 # Extract the first word of "pkg-config", so it can be a program name with args.
13738 set dummy pkg-config; ac_word=$2
13739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13740 $as_echo_n "checking for $ac_word... " >&6; }
13741 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13742 $as_echo_n "(cached) " >&6
13743 else
13744 case $PKG_CONFIG in
13745 [\\/]* | ?:[\\/]*)
13746 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13750 for as_dir in $PATH
13752 IFS=$as_save_IFS
13753 test -z "$as_dir" && as_dir=.
13754 for ac_exec_ext in '' $ac_executable_extensions; do
13755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13756 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13758 break 2
13760 done
13761 done
13762 IFS=$as_save_IFS
13764 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13766 esac
13768 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13769 if test -n "$PKG_CONFIG"; then
13770 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13771 $as_echo "$PKG_CONFIG" >&6; }
13772 else
13773 { $as_echo "$as_me:$LINENO: result: no" >&5
13774 $as_echo "no" >&6; }
13779 if test "$PKG_CONFIG" = "no" ; then
13780 HAVE_XFT=no
13781 else
13782 PKG_CONFIG_MIN_VERSION=0.9.0
13783 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13784 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13785 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13787 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13788 { $as_echo "$as_me:$LINENO: result: yes" >&5
13789 $as_echo "yes" >&6; }
13790 succeeded=yes
13792 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13793 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13794 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13795 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13796 $as_echo "$XFT_CFLAGS" >&6; }
13798 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13799 $as_echo_n "checking XFT_LIBS... " >&6; }
13800 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13801 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13802 $as_echo "$XFT_LIBS" >&6; }
13803 else
13804 { $as_echo "$as_me:$LINENO: result: no" >&5
13805 $as_echo "no" >&6; }
13806 XFT_CFLAGS=""
13807 XFT_LIBS=""
13808 ## If we have a custom action on failure, don't print errors, but
13809 ## do set a variable so people can do so.
13810 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13816 else
13817 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13818 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13822 if test $succeeded = yes; then
13824 else
13825 HAVE_XFT=no
13828 ## Because xftfont.c uses XRenderQueryExtension, we also
13829 ## need to link to -lXrender.
13830 HAVE_XRENDER=no
13831 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13832 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13833 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13834 $as_echo_n "(cached) " >&6
13835 else
13836 ac_check_lib_save_LIBS=$LIBS
13837 LIBS="-lXrender $LIBS"
13838 cat >conftest.$ac_ext <<_ACEOF
13839 /* confdefs.h. */
13840 _ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h. */
13845 /* Override any GCC internal prototype to avoid an error.
13846 Use char because int might match the return type of a GCC
13847 builtin and then its argument prototype would still apply. */
13848 #ifdef __cplusplus
13849 extern "C"
13850 #endif
13851 char XRenderQueryExtension ();
13853 main ()
13855 return XRenderQueryExtension ();
13857 return 0;
13859 _ACEOF
13860 rm -f conftest.$ac_objext conftest$ac_exeext
13861 if { (ac_try="$ac_link"
13862 case "(($ac_try" in
13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13865 esac
13866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13867 $as_echo "$ac_try_echo") >&5
13868 (eval "$ac_link") 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } && {
13875 test -z "$ac_c_werror_flag" ||
13876 test ! -s conftest.err
13877 } && test -s conftest$ac_exeext && {
13878 test "$cross_compiling" = yes ||
13879 $as_test_x conftest$ac_exeext
13880 }; then
13881 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13882 else
13883 $as_echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13886 ac_cv_lib_Xrender_XRenderQueryExtension=no
13889 rm -rf conftest.dSYM
13890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13891 conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13894 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13895 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13896 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then
13897 HAVE_XRENDER=yes
13900 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13901 OLD_CPPFLAGS="$CPPFLAGS"
13902 OLD_CFLAGS="$CFLAGS"
13903 OLD_LIBS="$LIBS"
13904 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13905 CFLAGS="$CFLAGS $XFT_CFLAGS"
13906 XFT_LIBS="-lXrender $XFT_LIBS"
13907 LIBS="$XFT_LIBS $LIBS"
13908 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13909 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13910 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13911 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13912 $as_echo_n "(cached) " >&6
13914 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13915 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13916 else
13917 # Is the header compilable?
13918 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13919 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13920 cat >conftest.$ac_ext <<_ACEOF
13921 /* confdefs.h. */
13922 _ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13926 $ac_includes_default
13927 #include <X11/Xft/Xft.h>
13928 _ACEOF
13929 rm -f conftest.$ac_objext
13930 if { (ac_try="$ac_compile"
13931 case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13934 esac
13935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13936 $as_echo "$ac_try_echo") >&5
13937 (eval "$ac_compile") 2>conftest.er1
13938 ac_status=$?
13939 grep -v '^ *+' conftest.er1 >conftest.err
13940 rm -f conftest.er1
13941 cat conftest.err >&5
13942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } && {
13944 test -z "$ac_c_werror_flag" ||
13945 test ! -s conftest.err
13946 } && test -s conftest.$ac_objext; then
13947 ac_header_compiler=yes
13948 else
13949 $as_echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13952 ac_header_compiler=no
13955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13956 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13957 $as_echo "$ac_header_compiler" >&6; }
13959 # Is the header present?
13960 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13961 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13962 cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h. */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 #include <X11/Xft/Xft.h>
13969 _ACEOF
13970 if { (ac_try="$ac_cpp conftest.$ac_ext"
13971 case "(($ac_try" in
13972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13973 *) ac_try_echo=$ac_try;;
13974 esac
13975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13976 $as_echo "$ac_try_echo") >&5
13977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13978 ac_status=$?
13979 grep -v '^ *+' conftest.er1 >conftest.err
13980 rm -f conftest.er1
13981 cat conftest.err >&5
13982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } >/dev/null && {
13984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13985 test ! -s conftest.err
13986 }; then
13987 ac_header_preproc=yes
13988 else
13989 $as_echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13992 ac_header_preproc=no
13995 rm -f conftest.err conftest.$ac_ext
13996 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13997 $as_echo "$ac_header_preproc" >&6; }
13999 # So? What about this header?
14000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14001 yes:no: )
14002 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14003 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14004 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14005 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14006 ac_header_preproc=yes
14008 no:yes:* )
14009 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14010 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14011 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14012 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14013 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14014 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14015 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14016 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14017 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14018 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14019 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14020 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14023 esac
14024 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14025 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14026 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14027 $as_echo_n "(cached) " >&6
14028 else
14029 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14031 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14032 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14035 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then
14036 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14037 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14038 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14039 $as_echo_n "(cached) " >&6
14040 else
14041 ac_check_lib_save_LIBS=$LIBS
14042 LIBS="-lXft $XFT_LIBS $LIBS"
14043 cat >conftest.$ac_ext <<_ACEOF
14044 /* confdefs.h. */
14045 _ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14050 /* Override any GCC internal prototype to avoid an error.
14051 Use char because int might match the return type of a GCC
14052 builtin and then its argument prototype would still apply. */
14053 #ifdef __cplusplus
14054 extern "C"
14055 #endif
14056 char XftFontOpen ();
14058 main ()
14060 return XftFontOpen ();
14062 return 0;
14064 _ACEOF
14065 rm -f conftest.$ac_objext conftest$ac_exeext
14066 if { (ac_try="$ac_link"
14067 case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14070 esac
14071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14072 $as_echo "$ac_try_echo") >&5
14073 (eval "$ac_link") 2>conftest.er1
14074 ac_status=$?
14075 grep -v '^ *+' conftest.er1 >conftest.err
14076 rm -f conftest.er1
14077 cat conftest.err >&5
14078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } && {
14080 test -z "$ac_c_werror_flag" ||
14081 test ! -s conftest.err
14082 } && test -s conftest$ac_exeext && {
14083 test "$cross_compiling" = yes ||
14084 $as_test_x conftest$ac_exeext
14085 }; then
14086 ac_cv_lib_Xft_XftFontOpen=yes
14087 else
14088 $as_echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 ac_cv_lib_Xft_XftFontOpen=no
14094 rm -rf conftest.dSYM
14095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14096 conftest$ac_exeext conftest.$ac_ext
14097 LIBS=$ac_check_lib_save_LIBS
14099 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14100 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14101 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then
14102 HAVE_XFT=yes
14109 if test "${HAVE_XFT}" = "yes"; then
14111 cat >>confdefs.h <<\_ACEOF
14112 #define HAVE_XFT 1
14113 _ACEOF
14116 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14117 else
14118 CPPFLAGS="$OLD_CPPFLAGS"
14119 CFLAGS="$OLD_CFLAGS"
14120 LIBS="$OLD_LIBS"
14121 fi # "${HAVE_XFT}" = "yes"
14122 fi # "$HAVE_XFT" != no
14123 fi # "x${with_xft}" != "xno"
14125 if test "$HAVE_XFT" != "yes"; then
14126 HAVE_XFT=no
14130 HAVE_FREETYPE=no
14131 ## We used to allow building with FreeType and without Xft.
14132 ## However, the ftx font backend driver is not in good shape.
14133 if test "${HAVE_XFT}" = "yes"; then
14134 HAVE_FREETYPE=yes
14135 FONTCONFIG_CFLAGS=
14136 FONTCONFIG_LIBS=
14139 HAVE_LIBOTF=no
14140 if test "${HAVE_FREETYPE}" = "yes"; then
14142 cat >>confdefs.h <<\_ACEOF
14143 #define HAVE_FREETYPE 1
14144 _ACEOF
14146 if test "${with_libotf}" != "no"; then
14148 succeeded=no
14150 # Extract the first word of "pkg-config", so it can be a program name with args.
14151 set dummy pkg-config; ac_word=$2
14152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14153 $as_echo_n "checking for $ac_word... " >&6; }
14154 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14155 $as_echo_n "(cached) " >&6
14156 else
14157 case $PKG_CONFIG in
14158 [\\/]* | ?:[\\/]*)
14159 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14163 for as_dir in $PATH
14165 IFS=$as_save_IFS
14166 test -z "$as_dir" && as_dir=.
14167 for ac_exec_ext in '' $ac_executable_extensions; do
14168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14169 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14171 break 2
14173 done
14174 done
14175 IFS=$as_save_IFS
14177 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14179 esac
14181 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14182 if test -n "$PKG_CONFIG"; then
14183 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14184 $as_echo "$PKG_CONFIG" >&6; }
14185 else
14186 { $as_echo "$as_me:$LINENO: result: no" >&5
14187 $as_echo "no" >&6; }
14192 if test "$PKG_CONFIG" = "no" ; then
14193 HAVE_LIBOTF=no
14194 else
14195 PKG_CONFIG_MIN_VERSION=0.9.0
14196 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14197 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14198 $as_echo_n "checking for libotf... " >&6; }
14200 if $PKG_CONFIG --exists "libotf" 2>&5; then
14201 { $as_echo "$as_me:$LINENO: result: yes" >&5
14202 $as_echo "yes" >&6; }
14203 succeeded=yes
14205 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14206 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14207 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14208 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14209 $as_echo "$LIBOTF_CFLAGS" >&6; }
14211 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14212 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14213 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14214 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14215 $as_echo "$LIBOTF_LIBS" >&6; }
14216 else
14217 { $as_echo "$as_me:$LINENO: result: no" >&5
14218 $as_echo "no" >&6; }
14219 LIBOTF_CFLAGS=""
14220 LIBOTF_LIBS=""
14221 ## If we have a custom action on failure, don't print errors, but
14222 ## do set a variable so people can do so.
14223 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14229 else
14230 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14231 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14235 if test $succeeded = yes; then
14236 HAVE_LIBOTF=yes
14237 else
14238 HAVE_LIBOTF=no
14241 if test "$HAVE_LIBOTF" = "yes"; then
14243 cat >>confdefs.h <<\_ACEOF
14244 #define HAVE_LIBOTF 1
14245 _ACEOF
14247 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14248 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14249 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14250 $as_echo_n "(cached) " >&6
14251 else
14252 ac_check_lib_save_LIBS=$LIBS
14253 LIBS="-lotf $LIBS"
14254 cat >conftest.$ac_ext <<_ACEOF
14255 /* confdefs.h. */
14256 _ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14261 /* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
14264 #ifdef __cplusplus
14265 extern "C"
14266 #endif
14267 char OTF_get_variation_glyphs ();
14269 main ()
14271 return OTF_get_variation_glyphs ();
14273 return 0;
14275 _ACEOF
14276 rm -f conftest.$ac_objext conftest$ac_exeext
14277 if { (ac_try="$ac_link"
14278 case "(($ac_try" in
14279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280 *) ac_try_echo=$ac_try;;
14281 esac
14282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14283 $as_echo "$ac_try_echo") >&5
14284 (eval "$ac_link") 2>conftest.er1
14285 ac_status=$?
14286 grep -v '^ *+' conftest.er1 >conftest.err
14287 rm -f conftest.er1
14288 cat conftest.err >&5
14289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } && {
14291 test -z "$ac_c_werror_flag" ||
14292 test ! -s conftest.err
14293 } && test -s conftest$ac_exeext && {
14294 test "$cross_compiling" = yes ||
14295 $as_test_x conftest$ac_exeext
14296 }; then
14297 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14298 else
14299 $as_echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.$ac_ext >&5
14302 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14305 rm -rf conftest.dSYM
14306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14307 conftest$ac_exeext conftest.$ac_ext
14308 LIBS=$ac_check_lib_save_LIBS
14310 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14311 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14312 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then
14313 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14314 else
14315 HAVE_OTF_GET_VARIATION_GLYPHS=no
14318 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14320 cat >>confdefs.h <<\_ACEOF
14321 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14322 _ACEOF
14329 HAVE_M17N_FLT=no
14330 if test "${HAVE_LIBOTF}" = yes; then
14331 if test "${with_m17n_flt}" != "no"; then
14333 succeeded=no
14335 # Extract the first word of "pkg-config", so it can be a program name with args.
14336 set dummy pkg-config; ac_word=$2
14337 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14338 $as_echo_n "checking for $ac_word... " >&6; }
14339 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14340 $as_echo_n "(cached) " >&6
14341 else
14342 case $PKG_CONFIG in
14343 [\\/]* | ?:[\\/]*)
14344 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14348 for as_dir in $PATH
14350 IFS=$as_save_IFS
14351 test -z "$as_dir" && as_dir=.
14352 for ac_exec_ext in '' $ac_executable_extensions; do
14353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14354 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14356 break 2
14358 done
14359 done
14360 IFS=$as_save_IFS
14362 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14364 esac
14366 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14367 if test -n "$PKG_CONFIG"; then
14368 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14369 $as_echo "$PKG_CONFIG" >&6; }
14370 else
14371 { $as_echo "$as_me:$LINENO: result: no" >&5
14372 $as_echo "no" >&6; }
14377 if test "$PKG_CONFIG" = "no" ; then
14378 HAVE_M17N_FLT=no
14379 else
14380 PKG_CONFIG_MIN_VERSION=0.9.0
14381 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14382 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14383 $as_echo_n "checking for m17n-flt... " >&6; }
14385 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14386 { $as_echo "$as_me:$LINENO: result: yes" >&5
14387 $as_echo "yes" >&6; }
14388 succeeded=yes
14390 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14391 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14392 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14393 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14394 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14396 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14397 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14398 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14399 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14400 $as_echo "$M17N_FLT_LIBS" >&6; }
14401 else
14402 { $as_echo "$as_me:$LINENO: result: no" >&5
14403 $as_echo "no" >&6; }
14404 M17N_FLT_CFLAGS=""
14405 M17N_FLT_LIBS=""
14406 ## If we have a custom action on failure, don't print errors, but
14407 ## do set a variable so people can do so.
14408 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14414 else
14415 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14416 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14420 if test $succeeded = yes; then
14421 HAVE_M17N_FLT=yes
14422 else
14423 HAVE_M17N_FLT=no
14426 if test "$HAVE_M17N_FLT" = "yes"; then
14428 cat >>confdefs.h <<\_ACEOF
14429 #define HAVE_M17N_FLT 1
14430 _ACEOF
14435 else
14436 HAVE_XFT=no
14437 HAVE_FREETYPE=no
14438 HAVE_LIBOTF=no
14439 HAVE_M17N_FLT=no
14441 ### End of font-backend (under X11) section.
14452 ### Use -lXpm if available, unless `--with-xpm=no'.
14453 HAVE_XPM=no
14454 LIBXPM=
14455 if test "${HAVE_X11}" = "yes"; then
14456 if test "${with_xpm}" != "no"; then
14457 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14458 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14459 $as_echo_n "checking for X11/xpm.h... " >&6; }
14460 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14461 $as_echo_n "(cached) " >&6
14463 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14464 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14465 else
14466 # Is the header compilable?
14467 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14468 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14469 cat >conftest.$ac_ext <<_ACEOF
14470 /* confdefs.h. */
14471 _ACEOF
14472 cat confdefs.h >>conftest.$ac_ext
14473 cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h. */
14475 $ac_includes_default
14476 #include <X11/xpm.h>
14477 _ACEOF
14478 rm -f conftest.$ac_objext
14479 if { (ac_try="$ac_compile"
14480 case "(($ac_try" in
14481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482 *) ac_try_echo=$ac_try;;
14483 esac
14484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14485 $as_echo "$ac_try_echo") >&5
14486 (eval "$ac_compile") 2>conftest.er1
14487 ac_status=$?
14488 grep -v '^ *+' conftest.er1 >conftest.err
14489 rm -f conftest.er1
14490 cat conftest.err >&5
14491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } && {
14493 test -z "$ac_c_werror_flag" ||
14494 test ! -s conftest.err
14495 } && test -s conftest.$ac_objext; then
14496 ac_header_compiler=yes
14497 else
14498 $as_echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14501 ac_header_compiler=no
14504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14505 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14506 $as_echo "$ac_header_compiler" >&6; }
14508 # Is the header present?
14509 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14510 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14511 cat >conftest.$ac_ext <<_ACEOF
14512 /* confdefs.h. */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517 #include <X11/xpm.h>
14518 _ACEOF
14519 if { (ac_try="$ac_cpp conftest.$ac_ext"
14520 case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14523 esac
14524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14525 $as_echo "$ac_try_echo") >&5
14526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14527 ac_status=$?
14528 grep -v '^ *+' conftest.er1 >conftest.err
14529 rm -f conftest.er1
14530 cat conftest.err >&5
14531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } >/dev/null && {
14533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14534 test ! -s conftest.err
14535 }; then
14536 ac_header_preproc=yes
14537 else
14538 $as_echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.$ac_ext >&5
14541 ac_header_preproc=no
14544 rm -f conftest.err conftest.$ac_ext
14545 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14546 $as_echo "$ac_header_preproc" >&6; }
14548 # So? What about this header?
14549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14550 yes:no: )
14551 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14552 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14553 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14554 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14555 ac_header_preproc=yes
14557 no:yes:* )
14558 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14559 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14560 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14561 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14562 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14563 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14564 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14565 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14566 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14567 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14568 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14569 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14572 esac
14573 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14574 $as_echo_n "checking for X11/xpm.h... " >&6; }
14575 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14576 $as_echo_n "(cached) " >&6
14577 else
14578 ac_cv_header_X11_xpm_h=$ac_header_preproc
14580 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14581 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14584 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then
14585 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14586 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14587 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14588 $as_echo_n "(cached) " >&6
14589 else
14590 ac_check_lib_save_LIBS=$LIBS
14591 LIBS="-lXpm -lX11 $LIBS"
14592 cat >conftest.$ac_ext <<_ACEOF
14593 /* confdefs.h. */
14594 _ACEOF
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h. */
14599 /* Override any GCC internal prototype to avoid an error.
14600 Use char because int might match the return type of a GCC
14601 builtin and then its argument prototype would still apply. */
14602 #ifdef __cplusplus
14603 extern "C"
14604 #endif
14605 char XpmReadFileToPixmap ();
14607 main ()
14609 return XpmReadFileToPixmap ();
14611 return 0;
14613 _ACEOF
14614 rm -f conftest.$ac_objext conftest$ac_exeext
14615 if { (ac_try="$ac_link"
14616 case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14619 esac
14620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14621 $as_echo "$ac_try_echo") >&5
14622 (eval "$ac_link") 2>conftest.er1
14623 ac_status=$?
14624 grep -v '^ *+' conftest.er1 >conftest.err
14625 rm -f conftest.er1
14626 cat conftest.err >&5
14627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } && {
14629 test -z "$ac_c_werror_flag" ||
14630 test ! -s conftest.err
14631 } && test -s conftest$ac_exeext && {
14632 test "$cross_compiling" = yes ||
14633 $as_test_x conftest$ac_exeext
14634 }; then
14635 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14636 else
14637 $as_echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14640 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14643 rm -rf conftest.dSYM
14644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14645 conftest$ac_exeext conftest.$ac_ext
14646 LIBS=$ac_check_lib_save_LIBS
14648 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14649 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14650 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then
14651 HAVE_XPM=yes
14657 if test "${HAVE_XPM}" = "yes"; then
14658 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14659 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14660 cat >conftest.$ac_ext <<_ACEOF
14661 /* confdefs.h. */
14662 _ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h. */
14666 #include "X11/xpm.h"
14667 #ifndef XpmReturnAllocPixels
14668 no_return_alloc_pixels
14669 #endif
14671 _ACEOF
14672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14673 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14674 HAVE_XPM=no
14675 else
14676 HAVE_XPM=yes
14678 rm -f conftest*
14681 if test "${HAVE_XPM}" = "yes"; then
14682 { $as_echo "$as_me:$LINENO: result: yes" >&5
14683 $as_echo "yes" >&6; }
14684 else
14685 { $as_echo "$as_me:$LINENO: result: no" >&5
14686 $as_echo "no" >&6; }
14691 if test "${HAVE_XPM}" = "yes"; then
14693 cat >>confdefs.h <<\_ACEOF
14694 #define HAVE_XPM 1
14695 _ACEOF
14697 LIBXPM=-lXpm
14702 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14703 HAVE_JPEG=no
14704 LIBJPEG=
14705 if test "${HAVE_X11}" = "yes"; then
14706 if test "${with_jpeg}" != "no"; then
14707 if test "${ac_cv_header_jerror_h+set}" = set; then
14708 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14709 $as_echo_n "checking for jerror.h... " >&6; }
14710 if test "${ac_cv_header_jerror_h+set}" = set; then
14711 $as_echo_n "(cached) " >&6
14713 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14714 $as_echo "$ac_cv_header_jerror_h" >&6; }
14715 else
14716 # Is the header compilable?
14717 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14718 $as_echo_n "checking jerror.h usability... " >&6; }
14719 cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h. */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 $ac_includes_default
14726 #include <jerror.h>
14727 _ACEOF
14728 rm -f conftest.$ac_objext
14729 if { (ac_try="$ac_compile"
14730 case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14733 esac
14734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14735 $as_echo "$ac_try_echo") >&5
14736 (eval "$ac_compile") 2>conftest.er1
14737 ac_status=$?
14738 grep -v '^ *+' conftest.er1 >conftest.err
14739 rm -f conftest.er1
14740 cat conftest.err >&5
14741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } && {
14743 test -z "$ac_c_werror_flag" ||
14744 test ! -s conftest.err
14745 } && test -s conftest.$ac_objext; then
14746 ac_header_compiler=yes
14747 else
14748 $as_echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14751 ac_header_compiler=no
14754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14755 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14756 $as_echo "$ac_header_compiler" >&6; }
14758 # Is the header present?
14759 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14760 $as_echo_n "checking jerror.h presence... " >&6; }
14761 cat >conftest.$ac_ext <<_ACEOF
14762 /* confdefs.h. */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14767 #include <jerror.h>
14768 _ACEOF
14769 if { (ac_try="$ac_cpp conftest.$ac_ext"
14770 case "(($ac_try" in
14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14773 esac
14774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14775 $as_echo "$ac_try_echo") >&5
14776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14777 ac_status=$?
14778 grep -v '^ *+' conftest.er1 >conftest.err
14779 rm -f conftest.er1
14780 cat conftest.err >&5
14781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } >/dev/null && {
14783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14784 test ! -s conftest.err
14785 }; then
14786 ac_header_preproc=yes
14787 else
14788 $as_echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14791 ac_header_preproc=no
14794 rm -f conftest.err conftest.$ac_ext
14795 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14796 $as_echo "$ac_header_preproc" >&6; }
14798 # So? What about this header?
14799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14800 yes:no: )
14801 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14802 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14803 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14804 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14805 ac_header_preproc=yes
14807 no:yes:* )
14808 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14809 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14810 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14811 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14812 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14813 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14814 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14815 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14816 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14817 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14818 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14819 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14822 esac
14823 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14824 $as_echo_n "checking for jerror.h... " >&6; }
14825 if test "${ac_cv_header_jerror_h+set}" = set; then
14826 $as_echo_n "(cached) " >&6
14827 else
14828 ac_cv_header_jerror_h=$ac_header_preproc
14830 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14831 $as_echo "$ac_cv_header_jerror_h" >&6; }
14834 if test "x$ac_cv_header_jerror_h" = x""yes; then
14835 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14836 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14837 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14838 $as_echo_n "(cached) " >&6
14839 else
14840 ac_check_lib_save_LIBS=$LIBS
14841 LIBS="-ljpeg $LIBS"
14842 cat >conftest.$ac_ext <<_ACEOF
14843 /* confdefs.h. */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14849 /* Override any GCC internal prototype to avoid an error.
14850 Use char because int might match the return type of a GCC
14851 builtin and then its argument prototype would still apply. */
14852 #ifdef __cplusplus
14853 extern "C"
14854 #endif
14855 char jpeg_destroy_compress ();
14857 main ()
14859 return jpeg_destroy_compress ();
14861 return 0;
14863 _ACEOF
14864 rm -f conftest.$ac_objext conftest$ac_exeext
14865 if { (ac_try="$ac_link"
14866 case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14869 esac
14870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14871 $as_echo "$ac_try_echo") >&5
14872 (eval "$ac_link") 2>conftest.er1
14873 ac_status=$?
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
14877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } && {
14879 test -z "$ac_c_werror_flag" ||
14880 test ! -s conftest.err
14881 } && test -s conftest$ac_exeext && {
14882 test "$cross_compiling" = yes ||
14883 $as_test_x conftest$ac_exeext
14884 }; then
14885 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14886 else
14887 $as_echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14890 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14893 rm -rf conftest.dSYM
14894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14895 conftest$ac_exeext conftest.$ac_ext
14896 LIBS=$ac_check_lib_save_LIBS
14898 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14899 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14900 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then
14901 HAVE_JPEG=yes
14910 if test "${HAVE_JPEG}" = "yes"; then
14911 cat >>confdefs.h <<\_ACEOF
14912 #define HAVE_JPEG 1
14913 _ACEOF
14915 cat >conftest.$ac_ext <<_ACEOF
14916 /* confdefs.h. */
14917 _ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14921 #include <jpeglib.h>
14922 version=JPEG_LIB_VERSION
14924 _ACEOF
14925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14926 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14927 cat >>confdefs.h <<\_ACEOF
14928 #define HAVE_JPEG 1
14929 _ACEOF
14931 else
14932 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14933 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14934 HAVE_JPEG=no
14936 rm -f conftest*
14939 if test "${HAVE_JPEG}" = "yes"; then
14940 LIBJPEG=-ljpeg
14945 ### Use -lpng if available, unless `--with-png=no'.
14946 HAVE_PNG=no
14947 LIBPNG=
14948 if test "${HAVE_X11}" = "yes"; then
14949 if test "${with_png}" != "no"; then
14950 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14951 # in /usr/include/libpng.
14954 for ac_header in png.h libpng/png.h
14956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14958 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14959 $as_echo_n "checking for $ac_header... " >&6; }
14960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14961 $as_echo_n "(cached) " >&6
14963 ac_res=`eval 'as_val=${'$as_ac_Header'}
14964 $as_echo "$as_val"'`
14965 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14966 $as_echo "$ac_res" >&6; }
14967 else
14968 # Is the header compilable?
14969 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14970 $as_echo_n "checking $ac_header usability... " >&6; }
14971 cat >conftest.$ac_ext <<_ACEOF
14972 /* confdefs.h. */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977 $ac_includes_default
14978 #include <$ac_header>
14979 _ACEOF
14980 rm -f conftest.$ac_objext
14981 if { (ac_try="$ac_compile"
14982 case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14985 esac
14986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14987 $as_echo "$ac_try_echo") >&5
14988 (eval "$ac_compile") 2>conftest.er1
14989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } && {
14995 test -z "$ac_c_werror_flag" ||
14996 test ! -s conftest.err
14997 } && test -s conftest.$ac_objext; then
14998 ac_header_compiler=yes
14999 else
15000 $as_echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15003 ac_header_compiler=no
15006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15008 $as_echo "$ac_header_compiler" >&6; }
15010 # Is the header present?
15011 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15012 $as_echo_n "checking $ac_header presence... " >&6; }
15013 cat >conftest.$ac_ext <<_ACEOF
15014 /* confdefs.h. */
15015 _ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h. */
15019 #include <$ac_header>
15020 _ACEOF
15021 if { (ac_try="$ac_cpp conftest.$ac_ext"
15022 case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15025 esac
15026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15027 $as_echo "$ac_try_echo") >&5
15028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15029 ac_status=$?
15030 grep -v '^ *+' conftest.er1 >conftest.err
15031 rm -f conftest.er1
15032 cat conftest.err >&5
15033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } >/dev/null && {
15035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15036 test ! -s conftest.err
15037 }; then
15038 ac_header_preproc=yes
15039 else
15040 $as_echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15043 ac_header_preproc=no
15046 rm -f conftest.err conftest.$ac_ext
15047 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15048 $as_echo "$ac_header_preproc" >&6; }
15050 # So? What about this header?
15051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15052 yes:no: )
15053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15054 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15056 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15057 ac_header_preproc=yes
15059 no:yes:* )
15060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15061 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15063 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15065 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15067 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15069 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15071 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15074 esac
15075 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15076 $as_echo_n "checking for $ac_header... " >&6; }
15077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15078 $as_echo_n "(cached) " >&6
15079 else
15080 eval "$as_ac_Header=\$ac_header_preproc"
15082 ac_res=`eval 'as_val=${'$as_ac_Header'}
15083 $as_echo "$as_val"'`
15084 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15085 $as_echo "$ac_res" >&6; }
15088 as_val=`eval 'as_val=${'$as_ac_Header'}
15089 $as_echo "$as_val"'`
15090 if test "x$as_val" = x""yes; then
15091 cat >>confdefs.h <<_ACEOF
15092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15093 _ACEOF
15097 done
15099 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15100 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15101 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15102 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15103 $as_echo_n "(cached) " >&6
15104 else
15105 ac_check_lib_save_LIBS=$LIBS
15106 LIBS="-lpng -lz -lm $LIBS"
15107 cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h. */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15114 /* Override any GCC internal prototype to avoid an error.
15115 Use char because int might match the return type of a GCC
15116 builtin and then its argument prototype would still apply. */
15117 #ifdef __cplusplus
15118 extern "C"
15119 #endif
15120 char png_get_channels ();
15122 main ()
15124 return png_get_channels ();
15126 return 0;
15128 _ACEOF
15129 rm -f conftest.$ac_objext conftest$ac_exeext
15130 if { (ac_try="$ac_link"
15131 case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15134 esac
15135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15136 $as_echo "$ac_try_echo") >&5
15137 (eval "$ac_link") 2>conftest.er1
15138 ac_status=$?
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
15142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } && {
15144 test -z "$ac_c_werror_flag" ||
15145 test ! -s conftest.err
15146 } && test -s conftest$ac_exeext && {
15147 test "$cross_compiling" = yes ||
15148 $as_test_x conftest$ac_exeext
15149 }; then
15150 ac_cv_lib_png_png_get_channels=yes
15151 else
15152 $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15155 ac_cv_lib_png_png_get_channels=no
15158 rm -rf conftest.dSYM
15159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15160 conftest$ac_exeext conftest.$ac_ext
15161 LIBS=$ac_check_lib_save_LIBS
15163 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15164 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15165 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then
15166 HAVE_PNG=yes
15172 if test "${HAVE_PNG}" = "yes"; then
15174 cat >>confdefs.h <<\_ACEOF
15175 #define HAVE_PNG 1
15176 _ACEOF
15178 LIBPNG="-lpng -lz -lm"
15183 ### Use -ltiff if available, unless `--with-tiff=no'.
15184 HAVE_TIFF=no
15185 LIBTIFF=
15186 if test "${HAVE_X11}" = "yes"; then
15187 if test "${with_tiff}" != "no"; then
15188 if test "${ac_cv_header_tiffio_h+set}" = set; then
15189 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15190 $as_echo_n "checking for tiffio.h... " >&6; }
15191 if test "${ac_cv_header_tiffio_h+set}" = set; then
15192 $as_echo_n "(cached) " >&6
15194 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15195 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15196 else
15197 # Is the header compilable?
15198 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15199 $as_echo_n "checking tiffio.h usability... " >&6; }
15200 cat >conftest.$ac_ext <<_ACEOF
15201 /* confdefs.h. */
15202 _ACEOF
15203 cat confdefs.h >>conftest.$ac_ext
15204 cat >>conftest.$ac_ext <<_ACEOF
15205 /* end confdefs.h. */
15206 $ac_includes_default
15207 #include <tiffio.h>
15208 _ACEOF
15209 rm -f conftest.$ac_objext
15210 if { (ac_try="$ac_compile"
15211 case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214 esac
15215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15216 $as_echo "$ac_try_echo") >&5
15217 (eval "$ac_compile") 2>conftest.er1
15218 ac_status=$?
15219 grep -v '^ *+' conftest.er1 >conftest.err
15220 rm -f conftest.er1
15221 cat conftest.err >&5
15222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } && {
15224 test -z "$ac_c_werror_flag" ||
15225 test ! -s conftest.err
15226 } && test -s conftest.$ac_objext; then
15227 ac_header_compiler=yes
15228 else
15229 $as_echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15232 ac_header_compiler=no
15235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15236 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15237 $as_echo "$ac_header_compiler" >&6; }
15239 # Is the header present?
15240 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15241 $as_echo_n "checking tiffio.h presence... " >&6; }
15242 cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h. */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 #include <tiffio.h>
15249 _ACEOF
15250 if { (ac_try="$ac_cpp conftest.$ac_ext"
15251 case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15254 esac
15255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15256 $as_echo "$ac_try_echo") >&5
15257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15258 ac_status=$?
15259 grep -v '^ *+' conftest.er1 >conftest.err
15260 rm -f conftest.er1
15261 cat conftest.err >&5
15262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } >/dev/null && {
15264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15265 test ! -s conftest.err
15266 }; then
15267 ac_header_preproc=yes
15268 else
15269 $as_echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15272 ac_header_preproc=no
15275 rm -f conftest.err conftest.$ac_ext
15276 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15277 $as_echo "$ac_header_preproc" >&6; }
15279 # So? What about this header?
15280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15281 yes:no: )
15282 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15283 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15284 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15285 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15286 ac_header_preproc=yes
15288 no:yes:* )
15289 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15290 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15291 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15292 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15293 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15294 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15295 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15296 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15297 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15298 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15299 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15300 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15303 esac
15304 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15305 $as_echo_n "checking for tiffio.h... " >&6; }
15306 if test "${ac_cv_header_tiffio_h+set}" = set; then
15307 $as_echo_n "(cached) " >&6
15308 else
15309 ac_cv_header_tiffio_h=$ac_header_preproc
15311 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15312 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15315 if test "x$ac_cv_header_tiffio_h" = x""yes; then
15316 tifflibs="-lz -lm"
15317 # At least one tiff package requires the jpeg library.
15318 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15319 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15320 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15321 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15322 $as_echo_n "(cached) " >&6
15323 else
15324 ac_check_lib_save_LIBS=$LIBS
15325 LIBS="-ltiff $tifflibs $LIBS"
15326 cat >conftest.$ac_ext <<_ACEOF
15327 /* confdefs.h. */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15333 /* Override any GCC internal prototype to avoid an error.
15334 Use char because int might match the return type of a GCC
15335 builtin and then its argument prototype would still apply. */
15336 #ifdef __cplusplus
15337 extern "C"
15338 #endif
15339 char TIFFGetVersion ();
15341 main ()
15343 return TIFFGetVersion ();
15345 return 0;
15347 _ACEOF
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (ac_try="$ac_link"
15350 case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15353 esac
15354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15355 $as_echo "$ac_try_echo") >&5
15356 (eval "$ac_link") 2>conftest.er1
15357 ac_status=$?
15358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
15361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } && {
15363 test -z "$ac_c_werror_flag" ||
15364 test ! -s conftest.err
15365 } && test -s conftest$ac_exeext && {
15366 test "$cross_compiling" = yes ||
15367 $as_test_x conftest$ac_exeext
15368 }; then
15369 ac_cv_lib_tiff_TIFFGetVersion=yes
15370 else
15371 $as_echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15374 ac_cv_lib_tiff_TIFFGetVersion=no
15377 rm -rf conftest.dSYM
15378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15379 conftest$ac_exeext conftest.$ac_ext
15380 LIBS=$ac_check_lib_save_LIBS
15382 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15383 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15384 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then
15385 HAVE_TIFF=yes
15393 if test "${HAVE_TIFF}" = "yes"; then
15395 cat >>confdefs.h <<\_ACEOF
15396 #define HAVE_TIFF 1
15397 _ACEOF
15399 LIBTIFF=-ltiff
15404 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15405 HAVE_GIF=no
15406 LIBGIF=
15407 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15408 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15409 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15410 $as_echo_n "checking for gif_lib.h... " >&6; }
15411 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15412 $as_echo_n "(cached) " >&6
15414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15415 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15416 else
15417 # Is the header compilable?
15418 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15419 $as_echo_n "checking gif_lib.h usability... " >&6; }
15420 cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h. */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 $ac_includes_default
15427 #include <gif_lib.h>
15428 _ACEOF
15429 rm -f conftest.$ac_objext
15430 if { (ac_try="$ac_compile"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15434 esac
15435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15436 $as_echo "$ac_try_echo") >&5
15437 (eval "$ac_compile") 2>conftest.er1
15438 ac_status=$?
15439 grep -v '^ *+' conftest.er1 >conftest.err
15440 rm -f conftest.er1
15441 cat conftest.err >&5
15442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } && {
15444 test -z "$ac_c_werror_flag" ||
15445 test ! -s conftest.err
15446 } && test -s conftest.$ac_objext; then
15447 ac_header_compiler=yes
15448 else
15449 $as_echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15452 ac_header_compiler=no
15455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15457 $as_echo "$ac_header_compiler" >&6; }
15459 # Is the header present?
15460 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15461 $as_echo_n "checking gif_lib.h presence... " >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h. */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 #include <gif_lib.h>
15469 _ACEOF
15470 if { (ac_try="$ac_cpp conftest.$ac_ext"
15471 case "(($ac_try" in
15472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473 *) ac_try_echo=$ac_try;;
15474 esac
15475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15476 $as_echo "$ac_try_echo") >&5
15477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15478 ac_status=$?
15479 grep -v '^ *+' conftest.er1 >conftest.err
15480 rm -f conftest.er1
15481 cat conftest.err >&5
15482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } >/dev/null && {
15484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15485 test ! -s conftest.err
15486 }; then
15487 ac_header_preproc=yes
15488 else
15489 $as_echo "$as_me: failed program was:" >&5
15490 sed 's/^/| /' conftest.$ac_ext >&5
15492 ac_header_preproc=no
15495 rm -f conftest.err conftest.$ac_ext
15496 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15497 $as_echo "$ac_header_preproc" >&6; }
15499 # So? What about this header?
15500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15501 yes:no: )
15502 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15503 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15504 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15505 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15506 ac_header_preproc=yes
15508 no:yes:* )
15509 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15510 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15511 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15512 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15513 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15514 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15515 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15516 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15517 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15518 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15519 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15520 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15523 esac
15524 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15525 $as_echo_n "checking for gif_lib.h... " >&6; }
15526 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15527 $as_echo_n "(cached) " >&6
15528 else
15529 ac_cv_header_gif_lib_h=$ac_header_preproc
15531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15532 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15535 if test "x$ac_cv_header_gif_lib_h" = x""yes; then
15536 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15537 # Earlier versions can crash Emacs.
15538 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15539 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15540 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15541 $as_echo_n "(cached) " >&6
15542 else
15543 ac_check_lib_save_LIBS=$LIBS
15544 LIBS="-lgif $LIBS"
15545 cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h. */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15552 /* Override any GCC internal prototype to avoid an error.
15553 Use char because int might match the return type of a GCC
15554 builtin and then its argument prototype would still apply. */
15555 #ifdef __cplusplus
15556 extern "C"
15557 #endif
15558 char EGifPutExtensionLast ();
15560 main ()
15562 return EGifPutExtensionLast ();
15564 return 0;
15566 _ACEOF
15567 rm -f conftest.$ac_objext conftest$ac_exeext
15568 if { (ac_try="$ac_link"
15569 case "(($ac_try" in
15570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571 *) ac_try_echo=$ac_try;;
15572 esac
15573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15574 $as_echo "$ac_try_echo") >&5
15575 (eval "$ac_link") 2>conftest.er1
15576 ac_status=$?
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
15580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } && {
15582 test -z "$ac_c_werror_flag" ||
15583 test ! -s conftest.err
15584 } && test -s conftest$ac_exeext && {
15585 test "$cross_compiling" = yes ||
15586 $as_test_x conftest$ac_exeext
15587 }; then
15588 ac_cv_lib_gif_EGifPutExtensionLast=yes
15589 else
15590 $as_echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15593 ac_cv_lib_gif_EGifPutExtensionLast=no
15596 rm -rf conftest.dSYM
15597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15598 conftest$ac_exeext conftest.$ac_ext
15599 LIBS=$ac_check_lib_save_LIBS
15601 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15602 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15603 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then
15604 HAVE_GIF=yes
15605 else
15606 HAVE_GIF=maybe
15613 if test "$HAVE_GIF" = yes; then
15614 LIBGIF=-lgif
15615 elif test "$HAVE_GIF" = maybe; then
15616 # If gif_lib.h but no libgif, try libungif.
15617 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15618 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15619 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15620 $as_echo_n "(cached) " >&6
15621 else
15622 ac_check_lib_save_LIBS=$LIBS
15623 LIBS="-lungif $LIBS"
15624 cat >conftest.$ac_ext <<_ACEOF
15625 /* confdefs.h. */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15631 /* Override any GCC internal prototype to avoid an error.
15632 Use char because int might match the return type of a GCC
15633 builtin and then its argument prototype would still apply. */
15634 #ifdef __cplusplus
15635 extern "C"
15636 #endif
15637 char EGifPutExtensionLast ();
15639 main ()
15641 return EGifPutExtensionLast ();
15643 return 0;
15645 _ACEOF
15646 rm -f conftest.$ac_objext conftest$ac_exeext
15647 if { (ac_try="$ac_link"
15648 case "(($ac_try" in
15649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650 *) ac_try_echo=$ac_try;;
15651 esac
15652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15653 $as_echo "$ac_try_echo") >&5
15654 (eval "$ac_link") 2>conftest.er1
15655 ac_status=$?
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
15659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } && {
15661 test -z "$ac_c_werror_flag" ||
15662 test ! -s conftest.err
15663 } && test -s conftest$ac_exeext && {
15664 test "$cross_compiling" = yes ||
15665 $as_test_x conftest$ac_exeext
15666 }; then
15667 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15668 else
15669 $as_echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15672 ac_cv_lib_ungif_EGifPutExtensionLast=no
15675 rm -rf conftest.dSYM
15676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15677 conftest$ac_exeext conftest.$ac_ext
15678 LIBS=$ac_check_lib_save_LIBS
15680 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15681 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15682 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then
15683 HAVE_GIF=yes
15684 else
15685 HAVE_GIF=no
15688 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15691 if test "${HAVE_GIF}" = "yes"; then
15693 cat >>confdefs.h <<\_ACEOF
15694 #define HAVE_GIF 1
15695 _ACEOF
15701 if test "${HAVE_X11}" = "yes"; then
15702 MISSING=""
15703 WITH_NO=""
15704 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15705 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15706 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15707 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15708 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15709 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15710 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15711 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15712 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15713 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15715 if test "X${MISSING}" != X; then
15716 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15717 $MISSING
15718 Maybe some development libraries/packages are missing?
15719 If you don't want to link with them give
15720 $WITH_NO
15721 as options to configure" >&5
15722 $as_echo "$as_me: error: The following required libraries were not found:
15723 $MISSING
15724 Maybe some development libraries/packages are missing?
15725 If you don't want to link with them give
15726 $WITH_NO
15727 as options to configure" >&2;}
15728 { (exit 1); exit 1; }; }
15732 ### Use -lgpm if available, unless `--with-gpm=no'.
15733 HAVE_GPM=no
15734 LIBGPM=
15735 if test "${with_gpm}" != "no"; then
15736 if test "${ac_cv_header_gpm_h+set}" = set; then
15737 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15738 $as_echo_n "checking for gpm.h... " >&6; }
15739 if test "${ac_cv_header_gpm_h+set}" = set; then
15740 $as_echo_n "(cached) " >&6
15742 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15743 $as_echo "$ac_cv_header_gpm_h" >&6; }
15744 else
15745 # Is the header compilable?
15746 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15747 $as_echo_n "checking gpm.h usability... " >&6; }
15748 cat >conftest.$ac_ext <<_ACEOF
15749 /* confdefs.h. */
15750 _ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 $ac_includes_default
15755 #include <gpm.h>
15756 _ACEOF
15757 rm -f conftest.$ac_objext
15758 if { (ac_try="$ac_compile"
15759 case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15762 esac
15763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15764 $as_echo "$ac_try_echo") >&5
15765 (eval "$ac_compile") 2>conftest.er1
15766 ac_status=$?
15767 grep -v '^ *+' conftest.er1 >conftest.err
15768 rm -f conftest.er1
15769 cat conftest.err >&5
15770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } && {
15772 test -z "$ac_c_werror_flag" ||
15773 test ! -s conftest.err
15774 } && test -s conftest.$ac_objext; then
15775 ac_header_compiler=yes
15776 else
15777 $as_echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15780 ac_header_compiler=no
15783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15784 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15785 $as_echo "$ac_header_compiler" >&6; }
15787 # Is the header present?
15788 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15789 $as_echo_n "checking gpm.h presence... " >&6; }
15790 cat >conftest.$ac_ext <<_ACEOF
15791 /* confdefs.h. */
15792 _ACEOF
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h. */
15796 #include <gpm.h>
15797 _ACEOF
15798 if { (ac_try="$ac_cpp conftest.$ac_ext"
15799 case "(($ac_try" in
15800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15801 *) ac_try_echo=$ac_try;;
15802 esac
15803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15804 $as_echo "$ac_try_echo") >&5
15805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15806 ac_status=$?
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
15810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } >/dev/null && {
15812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 }; then
15815 ac_header_preproc=yes
15816 else
15817 $as_echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_header_preproc=no
15823 rm -f conftest.err conftest.$ac_ext
15824 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15825 $as_echo "$ac_header_preproc" >&6; }
15827 # So? What about this header?
15828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15829 yes:no: )
15830 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15831 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15832 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15833 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15834 ac_header_preproc=yes
15836 no:yes:* )
15837 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15838 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15839 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15840 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15841 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15842 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15843 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15844 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15845 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15846 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15847 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15848 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15851 esac
15852 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15853 $as_echo_n "checking for gpm.h... " >&6; }
15854 if test "${ac_cv_header_gpm_h+set}" = set; then
15855 $as_echo_n "(cached) " >&6
15856 else
15857 ac_cv_header_gpm_h=$ac_header_preproc
15859 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15860 $as_echo "$ac_cv_header_gpm_h" >&6; }
15863 if test "x$ac_cv_header_gpm_h" = x""yes; then
15864 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15865 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15866 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15867 $as_echo_n "(cached) " >&6
15868 else
15869 ac_check_lib_save_LIBS=$LIBS
15870 LIBS="-lgpm $LIBS"
15871 cat >conftest.$ac_ext <<_ACEOF
15872 /* confdefs.h. */
15873 _ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15878 /* Override any GCC internal prototype to avoid an error.
15879 Use char because int might match the return type of a GCC
15880 builtin and then its argument prototype would still apply. */
15881 #ifdef __cplusplus
15882 extern "C"
15883 #endif
15884 char Gpm_Open ();
15886 main ()
15888 return Gpm_Open ();
15890 return 0;
15892 _ACEOF
15893 rm -f conftest.$ac_objext conftest$ac_exeext
15894 if { (ac_try="$ac_link"
15895 case "(($ac_try" in
15896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15898 esac
15899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15900 $as_echo "$ac_try_echo") >&5
15901 (eval "$ac_link") 2>conftest.er1
15902 ac_status=$?
15903 grep -v '^ *+' conftest.er1 >conftest.err
15904 rm -f conftest.er1
15905 cat conftest.err >&5
15906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } && {
15908 test -z "$ac_c_werror_flag" ||
15909 test ! -s conftest.err
15910 } && test -s conftest$ac_exeext && {
15911 test "$cross_compiling" = yes ||
15912 $as_test_x conftest$ac_exeext
15913 }; then
15914 ac_cv_lib_gpm_Gpm_Open=yes
15915 else
15916 $as_echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15919 ac_cv_lib_gpm_Gpm_Open=no
15922 rm -rf conftest.dSYM
15923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15924 conftest$ac_exeext conftest.$ac_ext
15925 LIBS=$ac_check_lib_save_LIBS
15927 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15928 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15929 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then
15930 HAVE_GPM=yes
15937 if test "${HAVE_GPM}" = "yes"; then
15939 cat >>confdefs.h <<\_ACEOF
15940 #define HAVE_GPM 1
15941 _ACEOF
15943 LIBGPM=-lgpm
15948 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15949 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15950 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15951 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15952 $as_echo_n "(cached) " >&6
15954 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15955 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15956 else
15957 # Is the header compilable?
15958 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15959 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15960 cat >conftest.$ac_ext <<_ACEOF
15961 /* confdefs.h. */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 $ac_includes_default
15967 #include <malloc/malloc.h>
15968 _ACEOF
15969 rm -f conftest.$ac_objext
15970 if { (ac_try="$ac_compile"
15971 case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15974 esac
15975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15976 $as_echo "$ac_try_echo") >&5
15977 (eval "$ac_compile") 2>conftest.er1
15978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } && {
15984 test -z "$ac_c_werror_flag" ||
15985 test ! -s conftest.err
15986 } && test -s conftest.$ac_objext; then
15987 ac_header_compiler=yes
15988 else
15989 $as_echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15992 ac_header_compiler=no
15995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15996 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15997 $as_echo "$ac_header_compiler" >&6; }
15999 # Is the header present?
16000 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16001 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16002 cat >conftest.$ac_ext <<_ACEOF
16003 /* confdefs.h. */
16004 _ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 #include <malloc/malloc.h>
16009 _ACEOF
16010 if { (ac_try="$ac_cpp conftest.$ac_ext"
16011 case "(($ac_try" in
16012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013 *) ac_try_echo=$ac_try;;
16014 esac
16015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16016 $as_echo "$ac_try_echo") >&5
16017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16018 ac_status=$?
16019 grep -v '^ *+' conftest.er1 >conftest.err
16020 rm -f conftest.er1
16021 cat conftest.err >&5
16022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } >/dev/null && {
16024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16025 test ! -s conftest.err
16026 }; then
16027 ac_header_preproc=yes
16028 else
16029 $as_echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.$ac_ext >&5
16032 ac_header_preproc=no
16035 rm -f conftest.err conftest.$ac_ext
16036 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16037 $as_echo "$ac_header_preproc" >&6; }
16039 # So? What about this header?
16040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16041 yes:no: )
16042 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16043 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16044 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16045 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16046 ac_header_preproc=yes
16048 no:yes:* )
16049 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16050 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16051 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16052 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16053 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16054 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16055 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16056 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16057 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16058 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16059 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16060 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16063 esac
16064 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16065 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16066 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16067 $as_echo_n "(cached) " >&6
16068 else
16069 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16071 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16072 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16075 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then
16077 cat >>confdefs.h <<\_ACEOF
16078 #define HAVE_MALLOC_MALLOC_H 1
16079 _ACEOF
16085 ### Use NeXTstep API to implement GUI.
16086 if test "${HAVE_NS}" = "yes"; then
16088 cat >>confdefs.h <<\_ACEOF
16089 #define HAVE_NS 1
16090 _ACEOF
16092 if test "${NS_IMPL_COCOA}" = "yes"; then
16094 cat >>confdefs.h <<\_ACEOF
16095 #define NS_IMPL_COCOA 1
16096 _ACEOF
16098 GNU_OBJC_CFLAGS=
16100 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16102 cat >>confdefs.h <<\_ACEOF
16103 #define NS_IMPL_GNUSTEP 1
16104 _ACEOF
16106 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16108 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16110 cat >>confdefs.h <<\_ACEOF
16111 #define NS_HAVE_NSINTEGER 1
16112 _ACEOF
16115 # We also have mouse menus.
16116 HAVE_MENUS=yes
16117 OTHER_FILES=ns-app
16121 ### Use session management (-lSM -lICE) if available
16122 HAVE_X_SM=no
16123 if test "${HAVE_X11}" = "yes"; then
16124 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16125 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16126 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16127 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16128 $as_echo_n "(cached) " >&6
16130 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16131 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16132 else
16133 # Is the header compilable?
16134 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16135 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16136 cat >conftest.$ac_ext <<_ACEOF
16137 /* confdefs.h. */
16138 _ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16142 $ac_includes_default
16143 #include <X11/SM/SMlib.h>
16144 _ACEOF
16145 rm -f conftest.$ac_objext
16146 if { (ac_try="$ac_compile"
16147 case "(($ac_try" in
16148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149 *) ac_try_echo=$ac_try;;
16150 esac
16151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16152 $as_echo "$ac_try_echo") >&5
16153 (eval "$ac_compile") 2>conftest.er1
16154 ac_status=$?
16155 grep -v '^ *+' conftest.er1 >conftest.err
16156 rm -f conftest.er1
16157 cat conftest.err >&5
16158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } && {
16160 test -z "$ac_c_werror_flag" ||
16161 test ! -s conftest.err
16162 } && test -s conftest.$ac_objext; then
16163 ac_header_compiler=yes
16164 else
16165 $as_echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16168 ac_header_compiler=no
16171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16172 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16173 $as_echo "$ac_header_compiler" >&6; }
16175 # Is the header present?
16176 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16177 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16178 cat >conftest.$ac_ext <<_ACEOF
16179 /* confdefs.h. */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16184 #include <X11/SM/SMlib.h>
16185 _ACEOF
16186 if { (ac_try="$ac_cpp conftest.$ac_ext"
16187 case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190 esac
16191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16192 $as_echo "$ac_try_echo") >&5
16193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16194 ac_status=$?
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
16198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } >/dev/null && {
16200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16201 test ! -s conftest.err
16202 }; then
16203 ac_header_preproc=yes
16204 else
16205 $as_echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16208 ac_header_preproc=no
16211 rm -f conftest.err conftest.$ac_ext
16212 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16213 $as_echo "$ac_header_preproc" >&6; }
16215 # So? What about this header?
16216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16217 yes:no: )
16218 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16219 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16220 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16221 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16222 ac_header_preproc=yes
16224 no:yes:* )
16225 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16226 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16227 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16228 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16229 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16230 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16231 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16232 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16233 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16234 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16235 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16236 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16239 esac
16240 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16241 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16242 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16243 $as_echo_n "(cached) " >&6
16244 else
16245 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16247 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16248 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16251 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then
16252 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16253 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16254 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16255 $as_echo_n "(cached) " >&6
16256 else
16257 ac_check_lib_save_LIBS=$LIBS
16258 LIBS="-lSM -lICE $LIBS"
16259 cat >conftest.$ac_ext <<_ACEOF
16260 /* confdefs.h. */
16261 _ACEOF
16262 cat confdefs.h >>conftest.$ac_ext
16263 cat >>conftest.$ac_ext <<_ACEOF
16264 /* end confdefs.h. */
16266 /* Override any GCC internal prototype to avoid an error.
16267 Use char because int might match the return type of a GCC
16268 builtin and then its argument prototype would still apply. */
16269 #ifdef __cplusplus
16270 extern "C"
16271 #endif
16272 char SmcOpenConnection ();
16274 main ()
16276 return SmcOpenConnection ();
16278 return 0;
16280 _ACEOF
16281 rm -f conftest.$ac_objext conftest$ac_exeext
16282 if { (ac_try="$ac_link"
16283 case "(($ac_try" in
16284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285 *) ac_try_echo=$ac_try;;
16286 esac
16287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16288 $as_echo "$ac_try_echo") >&5
16289 (eval "$ac_link") 2>conftest.er1
16290 ac_status=$?
16291 grep -v '^ *+' conftest.er1 >conftest.err
16292 rm -f conftest.er1
16293 cat conftest.err >&5
16294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } && {
16296 test -z "$ac_c_werror_flag" ||
16297 test ! -s conftest.err
16298 } && test -s conftest$ac_exeext && {
16299 test "$cross_compiling" = yes ||
16300 $as_test_x conftest$ac_exeext
16301 }; then
16302 ac_cv_lib_SM_SmcOpenConnection=yes
16303 else
16304 $as_echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16307 ac_cv_lib_SM_SmcOpenConnection=no
16310 rm -rf conftest.dSYM
16311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16312 conftest$ac_exeext conftest.$ac_ext
16313 LIBS=$ac_check_lib_save_LIBS
16315 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16316 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16317 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then
16318 HAVE_X_SM=yes
16325 if test "${HAVE_X_SM}" = "yes"; then
16327 cat >>confdefs.h <<\_ACEOF
16328 #define HAVE_X_SM 1
16329 _ACEOF
16331 case "$LIBS" in
16332 *-lSM*) ;;
16333 *) LIBS="-lSM -lICE $LIBS" ;;
16334 esac
16338 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16339 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16340 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16341 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16342 $as_echo_n "(cached) " >&6
16343 else
16344 cat >conftest.$ac_ext <<_ACEOF
16345 /* confdefs.h. */
16346 _ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 #include <netdb.h>
16352 main ()
16354 return h_errno;
16356 return 0;
16358 _ACEOF
16359 rm -f conftest.$ac_objext conftest$ac_exeext
16360 if { (ac_try="$ac_link"
16361 case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16364 esac
16365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16366 $as_echo "$ac_try_echo") >&5
16367 (eval "$ac_link") 2>conftest.er1
16368 ac_status=$?
16369 grep -v '^ *+' conftest.er1 >conftest.err
16370 rm -f conftest.er1
16371 cat conftest.err >&5
16372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } && {
16374 test -z "$ac_c_werror_flag" ||
16375 test ! -s conftest.err
16376 } && test -s conftest$ac_exeext && {
16377 test "$cross_compiling" = yes ||
16378 $as_test_x conftest$ac_exeext
16379 }; then
16380 emacs_cv_netdb_declares_h_errno=yes
16381 else
16382 $as_echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16385 emacs_cv_netdb_declares_h_errno=no
16388 rm -rf conftest.dSYM
16389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16390 conftest$ac_exeext conftest.$ac_ext
16392 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16393 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16394 if test $emacs_cv_netdb_declares_h_errno = yes; then
16396 cat >>confdefs.h <<\_ACEOF
16397 #define HAVE_H_ERRNO 1
16398 _ACEOF
16402 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16403 # for constant arguments. Useless!
16404 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16405 $as_echo_n "checking for working alloca.h... " >&6; }
16406 if test "${ac_cv_working_alloca_h+set}" = set; then
16407 $as_echo_n "(cached) " >&6
16408 else
16409 cat >conftest.$ac_ext <<_ACEOF
16410 /* confdefs.h. */
16411 _ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16415 #include <alloca.h>
16417 main ()
16419 char *p = (char *) alloca (2 * sizeof (int));
16420 if (p) return 0;
16422 return 0;
16424 _ACEOF
16425 rm -f conftest.$ac_objext conftest$ac_exeext
16426 if { (ac_try="$ac_link"
16427 case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16430 esac
16431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16432 $as_echo "$ac_try_echo") >&5
16433 (eval "$ac_link") 2>conftest.er1
16434 ac_status=$?
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
16438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } && {
16440 test -z "$ac_c_werror_flag" ||
16441 test ! -s conftest.err
16442 } && test -s conftest$ac_exeext && {
16443 test "$cross_compiling" = yes ||
16444 $as_test_x conftest$ac_exeext
16445 }; then
16446 ac_cv_working_alloca_h=yes
16447 else
16448 $as_echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 ac_cv_working_alloca_h=no
16454 rm -rf conftest.dSYM
16455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16456 conftest$ac_exeext conftest.$ac_ext
16458 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16459 $as_echo "$ac_cv_working_alloca_h" >&6; }
16460 if test $ac_cv_working_alloca_h = yes; then
16462 cat >>confdefs.h <<\_ACEOF
16463 #define HAVE_ALLOCA_H 1
16464 _ACEOF
16468 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16469 $as_echo_n "checking for alloca... " >&6; }
16470 if test "${ac_cv_func_alloca_works+set}" = set; then
16471 $as_echo_n "(cached) " >&6
16472 else
16473 cat >conftest.$ac_ext <<_ACEOF
16474 /* confdefs.h. */
16475 _ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h. */
16479 #ifdef __GNUC__
16480 # define alloca __builtin_alloca
16481 #else
16482 # ifdef _MSC_VER
16483 # include <malloc.h>
16484 # define alloca _alloca
16485 # else
16486 # ifdef HAVE_ALLOCA_H
16487 # include <alloca.h>
16488 # else
16489 # ifdef _AIX
16490 #pragma alloca
16491 # else
16492 # ifndef alloca /* predefined by HP cc +Olibcalls */
16493 char *alloca ();
16494 # endif
16495 # endif
16496 # endif
16497 # endif
16498 #endif
16501 main ()
16503 char *p = (char *) alloca (1);
16504 if (p) return 0;
16506 return 0;
16508 _ACEOF
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (ac_try="$ac_link"
16511 case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16514 esac
16515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16516 $as_echo "$ac_try_echo") >&5
16517 (eval "$ac_link") 2>conftest.er1
16518 ac_status=$?
16519 grep -v '^ *+' conftest.er1 >conftest.err
16520 rm -f conftest.er1
16521 cat conftest.err >&5
16522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } && {
16524 test -z "$ac_c_werror_flag" ||
16525 test ! -s conftest.err
16526 } && test -s conftest$ac_exeext && {
16527 test "$cross_compiling" = yes ||
16528 $as_test_x conftest$ac_exeext
16529 }; then
16530 ac_cv_func_alloca_works=yes
16531 else
16532 $as_echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16535 ac_cv_func_alloca_works=no
16538 rm -rf conftest.dSYM
16539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16540 conftest$ac_exeext conftest.$ac_ext
16542 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16543 $as_echo "$ac_cv_func_alloca_works" >&6; }
16545 if test $ac_cv_func_alloca_works = yes; then
16547 cat >>confdefs.h <<\_ACEOF
16548 #define HAVE_ALLOCA 1
16549 _ACEOF
16551 else
16552 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16553 # that cause trouble. Some versions do not even contain alloca or
16554 # contain a buggy version. If you still want to use their alloca,
16555 # use ar to extract alloca.o from them instead of compiling alloca.c.
16557 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16559 cat >>confdefs.h <<\_ACEOF
16560 #define C_ALLOCA 1
16561 _ACEOF
16564 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16565 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16566 if test "${ac_cv_os_cray+set}" = set; then
16567 $as_echo_n "(cached) " >&6
16568 else
16569 cat >conftest.$ac_ext <<_ACEOF
16570 /* confdefs.h. */
16571 _ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16575 #if defined CRAY && ! defined CRAY2
16576 webecray
16577 #else
16578 wenotbecray
16579 #endif
16581 _ACEOF
16582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16583 $EGREP "webecray" >/dev/null 2>&1; then
16584 ac_cv_os_cray=yes
16585 else
16586 ac_cv_os_cray=no
16588 rm -f conftest*
16591 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16592 $as_echo "$ac_cv_os_cray" >&6; }
16593 if test $ac_cv_os_cray = yes; then
16594 for ac_func in _getb67 GETB67 getb67; do
16595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16596 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16597 $as_echo_n "checking for $ac_func... " >&6; }
16598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16599 $as_echo_n "(cached) " >&6
16600 else
16601 cat >conftest.$ac_ext <<_ACEOF
16602 /* confdefs.h. */
16603 _ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h. */
16607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16609 #define $ac_func innocuous_$ac_func
16611 /* System header to define __stub macros and hopefully few prototypes,
16612 which can conflict with char $ac_func (); below.
16613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16614 <limits.h> exists even on freestanding compilers. */
16616 #ifdef __STDC__
16617 # include <limits.h>
16618 #else
16619 # include <assert.h>
16620 #endif
16622 #undef $ac_func
16624 /* Override any GCC internal prototype to avoid an error.
16625 Use char because int might match the return type of a GCC
16626 builtin and then its argument prototype would still apply. */
16627 #ifdef __cplusplus
16628 extern "C"
16629 #endif
16630 char $ac_func ();
16631 /* The GNU C library defines this for functions which it implements
16632 to always fail with ENOSYS. Some functions are actually named
16633 something starting with __ and the normal name is an alias. */
16634 #if defined __stub_$ac_func || defined __stub___$ac_func
16635 choke me
16636 #endif
16639 main ()
16641 return $ac_func ();
16643 return 0;
16645 _ACEOF
16646 rm -f conftest.$ac_objext conftest$ac_exeext
16647 if { (ac_try="$ac_link"
16648 case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16651 esac
16652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16653 $as_echo "$ac_try_echo") >&5
16654 (eval "$ac_link") 2>conftest.er1
16655 ac_status=$?
16656 grep -v '^ *+' conftest.er1 >conftest.err
16657 rm -f conftest.er1
16658 cat conftest.err >&5
16659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); } && {
16661 test -z "$ac_c_werror_flag" ||
16662 test ! -s conftest.err
16663 } && test -s conftest$ac_exeext && {
16664 test "$cross_compiling" = yes ||
16665 $as_test_x conftest$ac_exeext
16666 }; then
16667 eval "$as_ac_var=yes"
16668 else
16669 $as_echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 eval "$as_ac_var=no"
16675 rm -rf conftest.dSYM
16676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16677 conftest$ac_exeext conftest.$ac_ext
16679 ac_res=`eval 'as_val=${'$as_ac_var'}
16680 $as_echo "$as_val"'`
16681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16682 $as_echo "$ac_res" >&6; }
16683 as_val=`eval 'as_val=${'$as_ac_var'}
16684 $as_echo "$as_val"'`
16685 if test "x$as_val" = x""yes; then
16687 cat >>confdefs.h <<_ACEOF
16688 #define CRAY_STACKSEG_END $ac_func
16689 _ACEOF
16691 break
16694 done
16697 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16698 $as_echo_n "checking stack direction for C alloca... " >&6; }
16699 if test "${ac_cv_c_stack_direction+set}" = set; then
16700 $as_echo_n "(cached) " >&6
16701 else
16702 if test "$cross_compiling" = yes; then
16703 ac_cv_c_stack_direction=0
16704 else
16705 cat >conftest.$ac_ext <<_ACEOF
16706 /* confdefs.h. */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16711 $ac_includes_default
16713 find_stack_direction ()
16715 static char *addr = 0;
16716 auto char dummy;
16717 if (addr == 0)
16719 addr = &dummy;
16720 return find_stack_direction ();
16722 else
16723 return (&dummy > addr) ? 1 : -1;
16727 main ()
16729 return find_stack_direction () < 0;
16731 _ACEOF
16732 rm -f conftest$ac_exeext
16733 if { (ac_try="$ac_link"
16734 case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16737 esac
16738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16739 $as_echo "$ac_try_echo") >&5
16740 (eval "$ac_link") 2>&5
16741 ac_status=$?
16742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16744 { (case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16747 esac
16748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16749 $as_echo "$ac_try_echo") >&5
16750 (eval "$ac_try") 2>&5
16751 ac_status=$?
16752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 ac_cv_c_stack_direction=1
16755 else
16756 $as_echo "$as_me: program exited with status $ac_status" >&5
16757 $as_echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16760 ( exit $ac_status )
16761 ac_cv_c_stack_direction=-1
16763 rm -rf conftest.dSYM
16764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16769 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16770 $as_echo "$ac_cv_c_stack_direction" >&6; }
16772 cat >>confdefs.h <<_ACEOF
16773 #define STACK_DIRECTION $ac_cv_c_stack_direction
16774 _ACEOF
16780 if test x"$ac_cv_func_alloca_works" != xyes; then
16781 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16782 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16783 { (exit 1); exit 1; }; }
16786 # fmod, logb, and frexp are found in -lm on most systems.
16787 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16789 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16790 $as_echo_n "checking for sqrt in -lm... " >&6; }
16791 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16792 $as_echo_n "(cached) " >&6
16793 else
16794 ac_check_lib_save_LIBS=$LIBS
16795 LIBS="-lm $LIBS"
16796 cat >conftest.$ac_ext <<_ACEOF
16797 /* confdefs.h. */
16798 _ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h. */
16803 /* Override any GCC internal prototype to avoid an error.
16804 Use char because int might match the return type of a GCC
16805 builtin and then its argument prototype would still apply. */
16806 #ifdef __cplusplus
16807 extern "C"
16808 #endif
16809 char sqrt ();
16811 main ()
16813 return sqrt ();
16815 return 0;
16817 _ACEOF
16818 rm -f conftest.$ac_objext conftest$ac_exeext
16819 if { (ac_try="$ac_link"
16820 case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823 esac
16824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16825 $as_echo "$ac_try_echo") >&5
16826 (eval "$ac_link") 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } && {
16833 test -z "$ac_c_werror_flag" ||
16834 test ! -s conftest.err
16835 } && test -s conftest$ac_exeext && {
16836 test "$cross_compiling" = yes ||
16837 $as_test_x conftest$ac_exeext
16838 }; then
16839 ac_cv_lib_m_sqrt=yes
16840 else
16841 $as_echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 ac_cv_lib_m_sqrt=no
16847 rm -rf conftest.dSYM
16848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16849 conftest$ac_exeext conftest.$ac_ext
16850 LIBS=$ac_check_lib_save_LIBS
16852 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16853 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16854 if test "x$ac_cv_lib_m_sqrt" = x""yes; then
16855 cat >>confdefs.h <<_ACEOF
16856 #define HAVE_LIBM 1
16857 _ACEOF
16859 LIBS="-lm $LIBS"
16864 # Check for mail-locking functions in a "mail" library. Probably this should
16865 # have the same check as for liblockfile below.
16866 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16867 $as_echo_n "checking for maillock in -lmail... " >&6; }
16868 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16869 $as_echo_n "(cached) " >&6
16870 else
16871 ac_check_lib_save_LIBS=$LIBS
16872 LIBS="-lmail $LIBS"
16873 cat >conftest.$ac_ext <<_ACEOF
16874 /* confdefs.h. */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16880 /* Override any GCC internal prototype to avoid an error.
16881 Use char because int might match the return type of a GCC
16882 builtin and then its argument prototype would still apply. */
16883 #ifdef __cplusplus
16884 extern "C"
16885 #endif
16886 char maillock ();
16888 main ()
16890 return maillock ();
16892 return 0;
16894 _ACEOF
16895 rm -f conftest.$ac_objext conftest$ac_exeext
16896 if { (ac_try="$ac_link"
16897 case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16900 esac
16901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16902 $as_echo "$ac_try_echo") >&5
16903 (eval "$ac_link") 2>conftest.er1
16904 ac_status=$?
16905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
16908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } && {
16910 test -z "$ac_c_werror_flag" ||
16911 test ! -s conftest.err
16912 } && test -s conftest$ac_exeext && {
16913 test "$cross_compiling" = yes ||
16914 $as_test_x conftest$ac_exeext
16915 }; then
16916 ac_cv_lib_mail_maillock=yes
16917 else
16918 $as_echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16921 ac_cv_lib_mail_maillock=no
16924 rm -rf conftest.dSYM
16925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16926 conftest$ac_exeext conftest.$ac_ext
16927 LIBS=$ac_check_lib_save_LIBS
16929 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16930 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16931 if test "x$ac_cv_lib_mail_maillock" = x""yes; then
16932 have_mail=yes
16933 else
16934 have_mail=no
16937 if test $have_mail = yes; then
16938 LIBS_MAIL=-lmail
16939 LIBS="$LIBS_MAIL $LIBS"
16941 cat >>confdefs.h <<\_ACEOF
16942 #define HAVE_LIBMAIL 1
16943 _ACEOF
16945 else
16946 LIBS_MAIL=
16948 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16949 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16950 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16951 $as_echo_n "(cached) " >&6
16952 else
16953 ac_check_lib_save_LIBS=$LIBS
16954 LIBS="-llockfile $LIBS"
16955 cat >conftest.$ac_ext <<_ACEOF
16956 /* confdefs.h. */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16962 /* Override any GCC internal prototype to avoid an error.
16963 Use char because int might match the return type of a GCC
16964 builtin and then its argument prototype would still apply. */
16965 #ifdef __cplusplus
16966 extern "C"
16967 #endif
16968 char maillock ();
16970 main ()
16972 return maillock ();
16974 return 0;
16976 _ACEOF
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (ac_try="$ac_link"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16982 esac
16983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16984 $as_echo "$ac_try_echo") >&5
16985 (eval "$ac_link") 2>conftest.er1
16986 ac_status=$?
16987 grep -v '^ *+' conftest.er1 >conftest.err
16988 rm -f conftest.er1
16989 cat conftest.err >&5
16990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } && {
16992 test -z "$ac_c_werror_flag" ||
16993 test ! -s conftest.err
16994 } && test -s conftest$ac_exeext && {
16995 test "$cross_compiling" = yes ||
16996 $as_test_x conftest$ac_exeext
16997 }; then
16998 ac_cv_lib_lockfile_maillock=yes
16999 else
17000 $as_echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17003 ac_cv_lib_lockfile_maillock=no
17006 rm -rf conftest.dSYM
17007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17008 conftest$ac_exeext conftest.$ac_ext
17009 LIBS=$ac_check_lib_save_LIBS
17011 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17012 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17013 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then
17014 have_lockfile=yes
17015 else
17016 have_lockfile=no
17019 if test $have_lockfile = yes; then
17020 LIBS_MAIL=-llockfile
17021 LIBS="$LIBS_MAIL $LIBS"
17023 cat >>confdefs.h <<\_ACEOF
17024 #define HAVE_LIBLOCKFILE 1
17025 _ACEOF
17027 else
17028 # If we have the shared liblockfile, assume we must use it for mail
17029 # locking (e.g. Debian). If we couldn't link against liblockfile
17030 # (no liblockfile.a installed), ensure that we don't need to.
17031 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17032 set dummy liblockfile.so; ac_word=$2
17033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17034 $as_echo_n "checking for $ac_word... " >&6; }
17035 if test "${ac_cv_prog_liblockfile+set}" = set; then
17036 $as_echo_n "(cached) " >&6
17037 else
17038 if test -n "$liblockfile"; then
17039 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17040 else
17041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17042 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17043 for as_dir in $as_dummy
17045 IFS=$as_save_IFS
17046 test -z "$as_dir" && as_dir=.
17047 for ac_exec_ext in '' $ac_executable_extensions; do
17048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17049 ac_cv_prog_liblockfile="yes"
17050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17051 break 2
17053 done
17054 done
17055 IFS=$as_save_IFS
17057 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17060 liblockfile=$ac_cv_prog_liblockfile
17061 if test -n "$liblockfile"; then
17062 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17063 $as_echo "$liblockfile" >&6; }
17064 else
17065 { $as_echo "$as_me:$LINENO: result: no" >&5
17066 $as_echo "no" >&6; }
17070 if test $ac_cv_prog_liblockfile = yes; then
17071 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17072 This probably means that movemail could lose mail.
17073 There may be a \`development' package to install containing liblockfile." >&5
17074 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17075 This probably means that movemail could lose mail.
17076 There may be a \`development' package to install containing liblockfile." >&2;}
17077 { (exit 1); exit 1; }; }
17081 for ac_func in touchlock
17083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17084 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17085 $as_echo_n "checking for $ac_func... " >&6; }
17086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17087 $as_echo_n "(cached) " >&6
17088 else
17089 cat >conftest.$ac_ext <<_ACEOF
17090 /* confdefs.h. */
17091 _ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h. */
17095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17097 #define $ac_func innocuous_$ac_func
17099 /* System header to define __stub macros and hopefully few prototypes,
17100 which can conflict with char $ac_func (); below.
17101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17102 <limits.h> exists even on freestanding compilers. */
17104 #ifdef __STDC__
17105 # include <limits.h>
17106 #else
17107 # include <assert.h>
17108 #endif
17110 #undef $ac_func
17112 /* Override any GCC internal prototype to avoid an error.
17113 Use char because int might match the return type of a GCC
17114 builtin and then its argument prototype would still apply. */
17115 #ifdef __cplusplus
17116 extern "C"
17117 #endif
17118 char $ac_func ();
17119 /* The GNU C library defines this for functions which it implements
17120 to always fail with ENOSYS. Some functions are actually named
17121 something starting with __ and the normal name is an alias. */
17122 #if defined __stub_$ac_func || defined __stub___$ac_func
17123 choke me
17124 #endif
17127 main ()
17129 return $ac_func ();
17131 return 0;
17133 _ACEOF
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (ac_try="$ac_link"
17136 case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17139 esac
17140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17141 $as_echo "$ac_try_echo") >&5
17142 (eval "$ac_link") 2>conftest.er1
17143 ac_status=$?
17144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
17147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } && {
17149 test -z "$ac_c_werror_flag" ||
17150 test ! -s conftest.err
17151 } && test -s conftest$ac_exeext && {
17152 test "$cross_compiling" = yes ||
17153 $as_test_x conftest$ac_exeext
17154 }; then
17155 eval "$as_ac_var=yes"
17156 else
17157 $as_echo "$as_me: failed program was:" >&5
17158 sed 's/^/| /' conftest.$ac_ext >&5
17160 eval "$as_ac_var=no"
17163 rm -rf conftest.dSYM
17164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17165 conftest$ac_exeext conftest.$ac_ext
17167 ac_res=`eval 'as_val=${'$as_ac_var'}
17168 $as_echo "$as_val"'`
17169 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17170 $as_echo "$ac_res" >&6; }
17171 as_val=`eval 'as_val=${'$as_ac_var'}
17172 $as_echo "$as_val"'`
17173 if test "x$as_val" = x""yes; then
17174 cat >>confdefs.h <<_ACEOF
17175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17176 _ACEOF
17179 done
17182 for ac_header in maillock.h
17184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17186 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17187 $as_echo_n "checking for $ac_header... " >&6; }
17188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17189 $as_echo_n "(cached) " >&6
17191 ac_res=`eval 'as_val=${'$as_ac_Header'}
17192 $as_echo "$as_val"'`
17193 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17194 $as_echo "$ac_res" >&6; }
17195 else
17196 # Is the header compilable?
17197 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17198 $as_echo_n "checking $ac_header usability... " >&6; }
17199 cat >conftest.$ac_ext <<_ACEOF
17200 /* confdefs.h. */
17201 _ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 $ac_includes_default
17206 #include <$ac_header>
17207 _ACEOF
17208 rm -f conftest.$ac_objext
17209 if { (ac_try="$ac_compile"
17210 case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213 esac
17214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17215 $as_echo "$ac_try_echo") >&5
17216 (eval "$ac_compile") 2>conftest.er1
17217 ac_status=$?
17218 grep -v '^ *+' conftest.er1 >conftest.err
17219 rm -f conftest.er1
17220 cat conftest.err >&5
17221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } && {
17223 test -z "$ac_c_werror_flag" ||
17224 test ! -s conftest.err
17225 } && test -s conftest.$ac_objext; then
17226 ac_header_compiler=yes
17227 else
17228 $as_echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 ac_header_compiler=no
17234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17235 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17236 $as_echo "$ac_header_compiler" >&6; }
17238 # Is the header present?
17239 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17240 $as_echo_n "checking $ac_header presence... " >&6; }
17241 cat >conftest.$ac_ext <<_ACEOF
17242 /* confdefs.h. */
17243 _ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17247 #include <$ac_header>
17248 _ACEOF
17249 if { (ac_try="$ac_cpp conftest.$ac_ext"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17253 esac
17254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17255 $as_echo "$ac_try_echo") >&5
17256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17257 ac_status=$?
17258 grep -v '^ *+' conftest.er1 >conftest.err
17259 rm -f conftest.er1
17260 cat conftest.err >&5
17261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } >/dev/null && {
17263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17264 test ! -s conftest.err
17265 }; then
17266 ac_header_preproc=yes
17267 else
17268 $as_echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 ac_header_preproc=no
17274 rm -f conftest.err conftest.$ac_ext
17275 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17276 $as_echo "$ac_header_preproc" >&6; }
17278 # So? What about this header?
17279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17280 yes:no: )
17281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17282 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17285 ac_header_preproc=yes
17287 no:yes:* )
17288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17289 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17291 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17293 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17295 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17299 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17302 esac
17303 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17304 $as_echo_n "checking for $ac_header... " >&6; }
17305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17306 $as_echo_n "(cached) " >&6
17307 else
17308 eval "$as_ac_Header=\$ac_header_preproc"
17310 ac_res=`eval 'as_val=${'$as_ac_Header'}
17311 $as_echo "$as_val"'`
17312 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17313 $as_echo "$ac_res" >&6; }
17316 as_val=`eval 'as_val=${'$as_ac_Header'}
17317 $as_echo "$as_val"'`
17318 if test "x$as_val" = x""yes; then
17319 cat >>confdefs.h <<_ACEOF
17320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17321 _ACEOF
17325 done
17400 for ac_func in gethostname getdomainname dup2 \
17401 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17402 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17403 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17404 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17405 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17406 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17407 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17408 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17409 cfmakeraw cfsetspeed
17411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17412 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17413 $as_echo_n "checking for $ac_func... " >&6; }
17414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17415 $as_echo_n "(cached) " >&6
17416 else
17417 cat >conftest.$ac_ext <<_ACEOF
17418 /* confdefs.h. */
17419 _ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17425 #define $ac_func innocuous_$ac_func
17427 /* System header to define __stub macros and hopefully few prototypes,
17428 which can conflict with char $ac_func (); below.
17429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17430 <limits.h> exists even on freestanding compilers. */
17432 #ifdef __STDC__
17433 # include <limits.h>
17434 #else
17435 # include <assert.h>
17436 #endif
17438 #undef $ac_func
17440 /* Override any GCC internal prototype to avoid an error.
17441 Use char because int might match the return type of a GCC
17442 builtin and then its argument prototype would still apply. */
17443 #ifdef __cplusplus
17444 extern "C"
17445 #endif
17446 char $ac_func ();
17447 /* The GNU C library defines this for functions which it implements
17448 to always fail with ENOSYS. Some functions are actually named
17449 something starting with __ and the normal name is an alias. */
17450 #if defined __stub_$ac_func || defined __stub___$ac_func
17451 choke me
17452 #endif
17455 main ()
17457 return $ac_func ();
17459 return 0;
17461 _ACEOF
17462 rm -f conftest.$ac_objext conftest$ac_exeext
17463 if { (ac_try="$ac_link"
17464 case "(($ac_try" in
17465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17467 esac
17468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17469 $as_echo "$ac_try_echo") >&5
17470 (eval "$ac_link") 2>conftest.er1
17471 ac_status=$?
17472 grep -v '^ *+' conftest.er1 >conftest.err
17473 rm -f conftest.er1
17474 cat conftest.err >&5
17475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } && {
17477 test -z "$ac_c_werror_flag" ||
17478 test ! -s conftest.err
17479 } && test -s conftest$ac_exeext && {
17480 test "$cross_compiling" = yes ||
17481 $as_test_x conftest$ac_exeext
17482 }; then
17483 eval "$as_ac_var=yes"
17484 else
17485 $as_echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17488 eval "$as_ac_var=no"
17491 rm -rf conftest.dSYM
17492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17493 conftest$ac_exeext conftest.$ac_ext
17495 ac_res=`eval 'as_val=${'$as_ac_var'}
17496 $as_echo "$as_val"'`
17497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17498 $as_echo "$ac_res" >&6; }
17499 as_val=`eval 'as_val=${'$as_ac_var'}
17500 $as_echo "$as_val"'`
17501 if test "x$as_val" = x""yes; then
17502 cat >>confdefs.h <<_ACEOF
17503 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17504 _ACEOF
17507 done
17511 for ac_header in sys/un.h
17513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17515 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17516 $as_echo_n "checking for $ac_header... " >&6; }
17517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17518 $as_echo_n "(cached) " >&6
17520 ac_res=`eval 'as_val=${'$as_ac_Header'}
17521 $as_echo "$as_val"'`
17522 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17523 $as_echo "$ac_res" >&6; }
17524 else
17525 # Is the header compilable?
17526 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17527 $as_echo_n "checking $ac_header usability... " >&6; }
17528 cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h. */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534 $ac_includes_default
17535 #include <$ac_header>
17536 _ACEOF
17537 rm -f conftest.$ac_objext
17538 if { (ac_try="$ac_compile"
17539 case "(($ac_try" in
17540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17542 esac
17543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17544 $as_echo "$ac_try_echo") >&5
17545 (eval "$ac_compile") 2>conftest.er1
17546 ac_status=$?
17547 grep -v '^ *+' conftest.er1 >conftest.err
17548 rm -f conftest.er1
17549 cat conftest.err >&5
17550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } && {
17552 test -z "$ac_c_werror_flag" ||
17553 test ! -s conftest.err
17554 } && test -s conftest.$ac_objext; then
17555 ac_header_compiler=yes
17556 else
17557 $as_echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17560 ac_header_compiler=no
17563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17564 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17565 $as_echo "$ac_header_compiler" >&6; }
17567 # Is the header present?
17568 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17569 $as_echo_n "checking $ac_header presence... " >&6; }
17570 cat >conftest.$ac_ext <<_ACEOF
17571 /* confdefs.h. */
17572 _ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17576 #include <$ac_header>
17577 _ACEOF
17578 if { (ac_try="$ac_cpp conftest.$ac_ext"
17579 case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17582 esac
17583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17584 $as_echo "$ac_try_echo") >&5
17585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17586 ac_status=$?
17587 grep -v '^ *+' conftest.er1 >conftest.err
17588 rm -f conftest.er1
17589 cat conftest.err >&5
17590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } >/dev/null && {
17592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17593 test ! -s conftest.err
17594 }; then
17595 ac_header_preproc=yes
17596 else
17597 $as_echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17600 ac_header_preproc=no
17603 rm -f conftest.err conftest.$ac_ext
17604 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17605 $as_echo "$ac_header_preproc" >&6; }
17607 # So? What about this header?
17608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17609 yes:no: )
17610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17611 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17613 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17614 ac_header_preproc=yes
17616 no:yes:* )
17617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17618 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17620 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17622 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17624 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17626 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17628 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17631 esac
17632 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17633 $as_echo_n "checking for $ac_header... " >&6; }
17634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17635 $as_echo_n "(cached) " >&6
17636 else
17637 eval "$as_ac_Header=\$ac_header_preproc"
17639 ac_res=`eval 'as_val=${'$as_ac_Header'}
17640 $as_echo "$as_val"'`
17641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17642 $as_echo "$ac_res" >&6; }
17645 as_val=`eval 'as_val=${'$as_ac_Header'}
17646 $as_echo "$as_val"'`
17647 if test "x$as_val" = x""yes; then
17648 cat >>confdefs.h <<_ACEOF
17649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17650 _ACEOF
17654 done
17661 for ac_header in $ac_header_list
17663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17665 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17666 $as_echo_n "checking for $ac_header... " >&6; }
17667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17668 $as_echo_n "(cached) " >&6
17670 ac_res=`eval 'as_val=${'$as_ac_Header'}
17671 $as_echo "$as_val"'`
17672 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17673 $as_echo "$ac_res" >&6; }
17674 else
17675 # Is the header compilable?
17676 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17677 $as_echo_n "checking $ac_header usability... " >&6; }
17678 cat >conftest.$ac_ext <<_ACEOF
17679 /* confdefs.h. */
17680 _ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 $ac_includes_default
17685 #include <$ac_header>
17686 _ACEOF
17687 rm -f conftest.$ac_objext
17688 if { (ac_try="$ac_compile"
17689 case "(($ac_try" in
17690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691 *) ac_try_echo=$ac_try;;
17692 esac
17693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17694 $as_echo "$ac_try_echo") >&5
17695 (eval "$ac_compile") 2>conftest.er1
17696 ac_status=$?
17697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
17700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } && {
17702 test -z "$ac_c_werror_flag" ||
17703 test ! -s conftest.err
17704 } && test -s conftest.$ac_objext; then
17705 ac_header_compiler=yes
17706 else
17707 $as_echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_header_compiler=no
17713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17714 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17715 $as_echo "$ac_header_compiler" >&6; }
17717 # Is the header present?
17718 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17719 $as_echo_n "checking $ac_header presence... " >&6; }
17720 cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h. */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 #include <$ac_header>
17727 _ACEOF
17728 if { (ac_try="$ac_cpp conftest.$ac_ext"
17729 case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17732 esac
17733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17734 $as_echo "$ac_try_echo") >&5
17735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17736 ac_status=$?
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
17740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } >/dev/null && {
17742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17743 test ! -s conftest.err
17744 }; then
17745 ac_header_preproc=yes
17746 else
17747 $as_echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17750 ac_header_preproc=no
17753 rm -f conftest.err conftest.$ac_ext
17754 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17755 $as_echo "$ac_header_preproc" >&6; }
17757 # So? What about this header?
17758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17759 yes:no: )
17760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17761 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17763 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17764 ac_header_preproc=yes
17766 no:yes:* )
17767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17768 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17770 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17772 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17774 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17776 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17778 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17781 esac
17782 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17783 $as_echo_n "checking for $ac_header... " >&6; }
17784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17785 $as_echo_n "(cached) " >&6
17786 else
17787 eval "$as_ac_Header=\$ac_header_preproc"
17789 ac_res=`eval 'as_val=${'$as_ac_Header'}
17790 $as_echo "$as_val"'`
17791 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17792 $as_echo "$ac_res" >&6; }
17795 as_val=`eval 'as_val=${'$as_ac_Header'}
17796 $as_echo "$as_val"'`
17797 if test "x$as_val" = x""yes; then
17798 cat >>confdefs.h <<_ACEOF
17799 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17800 _ACEOF
17804 done
17814 for ac_func in $ac_func_list
17816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17817 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17818 $as_echo_n "checking for $ac_func... " >&6; }
17819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17820 $as_echo_n "(cached) " >&6
17821 else
17822 cat >conftest.$ac_ext <<_ACEOF
17823 /* confdefs.h. */
17824 _ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17830 #define $ac_func innocuous_$ac_func
17832 /* System header to define __stub macros and hopefully few prototypes,
17833 which can conflict with char $ac_func (); below.
17834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17835 <limits.h> exists even on freestanding compilers. */
17837 #ifdef __STDC__
17838 # include <limits.h>
17839 #else
17840 # include <assert.h>
17841 #endif
17843 #undef $ac_func
17845 /* Override any GCC internal prototype to avoid an error.
17846 Use char because int might match the return type of a GCC
17847 builtin and then its argument prototype would still apply. */
17848 #ifdef __cplusplus
17849 extern "C"
17850 #endif
17851 char $ac_func ();
17852 /* The GNU C library defines this for functions which it implements
17853 to always fail with ENOSYS. Some functions are actually named
17854 something starting with __ and the normal name is an alias. */
17855 #if defined __stub_$ac_func || defined __stub___$ac_func
17856 choke me
17857 #endif
17860 main ()
17862 return $ac_func ();
17864 return 0;
17866 _ACEOF
17867 rm -f conftest.$ac_objext conftest$ac_exeext
17868 if { (ac_try="$ac_link"
17869 case "(($ac_try" in
17870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871 *) ac_try_echo=$ac_try;;
17872 esac
17873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17874 $as_echo "$ac_try_echo") >&5
17875 (eval "$ac_link") 2>conftest.er1
17876 ac_status=$?
17877 grep -v '^ *+' conftest.er1 >conftest.err
17878 rm -f conftest.er1
17879 cat conftest.err >&5
17880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } && {
17882 test -z "$ac_c_werror_flag" ||
17883 test ! -s conftest.err
17884 } && test -s conftest$ac_exeext && {
17885 test "$cross_compiling" = yes ||
17886 $as_test_x conftest$ac_exeext
17887 }; then
17888 eval "$as_ac_var=yes"
17889 else
17890 $as_echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17893 eval "$as_ac_var=no"
17896 rm -rf conftest.dSYM
17897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17898 conftest$ac_exeext conftest.$ac_ext
17900 ac_res=`eval 'as_val=${'$as_ac_var'}
17901 $as_echo "$as_val"'`
17902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17903 $as_echo "$ac_res" >&6; }
17904 as_val=`eval 'as_val=${'$as_ac_var'}
17905 $as_echo "$as_val"'`
17906 if test "x$as_val" = x""yes; then
17907 cat >>confdefs.h <<_ACEOF
17908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17909 _ACEOF
17912 done
17930 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17931 $as_echo_n "checking for working mktime... " >&6; }
17932 if test "${ac_cv_func_working_mktime+set}" = set; then
17933 $as_echo_n "(cached) " >&6
17934 else
17935 if test "$cross_compiling" = yes; then
17936 ac_cv_func_working_mktime=no
17937 else
17938 cat >conftest.$ac_ext <<_ACEOF
17939 /* confdefs.h. */
17940 _ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17944 /* Test program from Paul Eggert and Tony Leneis. */
17945 #ifdef TIME_WITH_SYS_TIME
17946 # include <sys/time.h>
17947 # include <time.h>
17948 #else
17949 # ifdef HAVE_SYS_TIME_H
17950 # include <sys/time.h>
17951 # else
17952 # include <time.h>
17953 # endif
17954 #endif
17956 #include <limits.h>
17957 #include <stdlib.h>
17959 #ifdef HAVE_UNISTD_H
17960 # include <unistd.h>
17961 #endif
17963 #ifndef HAVE_ALARM
17964 # define alarm(X) /* empty */
17965 #endif
17967 /* Work around redefinition to rpl_putenv by other config tests. */
17968 #undef putenv
17970 static time_t time_t_max;
17971 static time_t time_t_min;
17973 /* Values we'll use to set the TZ environment variable. */
17974 static char *tz_strings[] = {
17975 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17976 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17978 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17980 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17981 Based on a problem report from Andreas Jaeger. */
17982 static int
17983 spring_forward_gap ()
17985 /* glibc (up to about 1998-10-07) failed this test. */
17986 struct tm tm;
17988 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17989 instead of "TZ=America/Vancouver" in order to detect the bug even
17990 on systems that don't support the Olson extension, or don't have the
17991 full zoneinfo tables installed. */
17992 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17994 tm.tm_year = 98;
17995 tm.tm_mon = 3;
17996 tm.tm_mday = 5;
17997 tm.tm_hour = 2;
17998 tm.tm_min = 0;
17999 tm.tm_sec = 0;
18000 tm.tm_isdst = -1;
18001 return mktime (&tm) != (time_t) -1;
18004 static int
18005 mktime_test1 (now)
18006 time_t now;
18008 struct tm *lt;
18009 return ! (lt = localtime (&now)) || mktime (lt) == now;
18012 static int
18013 mktime_test (now)
18014 time_t now;
18016 return (mktime_test1 (now)
18017 && mktime_test1 ((time_t) (time_t_max - now))
18018 && mktime_test1 ((time_t) (time_t_min + now)));
18021 static int
18022 irix_6_4_bug ()
18024 /* Based on code from Ariel Faigon. */
18025 struct tm tm;
18026 tm.tm_year = 96;
18027 tm.tm_mon = 3;
18028 tm.tm_mday = 0;
18029 tm.tm_hour = 0;
18030 tm.tm_min = 0;
18031 tm.tm_sec = 0;
18032 tm.tm_isdst = -1;
18033 mktime (&tm);
18034 return tm.tm_mon == 2 && tm.tm_mday == 31;
18037 static int
18038 bigtime_test (j)
18039 int j;
18041 struct tm tm;
18042 time_t now;
18043 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18044 now = mktime (&tm);
18045 if (now != (time_t) -1)
18047 struct tm *lt = localtime (&now);
18048 if (! (lt
18049 && lt->tm_year == tm.tm_year
18050 && lt->tm_mon == tm.tm_mon
18051 && lt->tm_mday == tm.tm_mday
18052 && lt->tm_hour == tm.tm_hour
18053 && lt->tm_min == tm.tm_min
18054 && lt->tm_sec == tm.tm_sec
18055 && lt->tm_yday == tm.tm_yday
18056 && lt->tm_wday == tm.tm_wday
18057 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18058 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18059 return 0;
18061 return 1;
18064 static int
18065 year_2050_test ()
18067 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18068 ignoring leap seconds. */
18069 unsigned long int answer = 2527315200UL;
18071 struct tm tm;
18072 time_t t;
18073 tm.tm_year = 2050 - 1900;
18074 tm.tm_mon = 2 - 1;
18075 tm.tm_mday = 1;
18076 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18077 tm.tm_isdst = -1;
18079 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18080 instead of "TZ=America/Vancouver" in order to detect the bug even
18081 on systems that don't support the Olson extension, or don't have the
18082 full zoneinfo tables installed. */
18083 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18085 t = mktime (&tm);
18087 /* Check that the result is either a failure, or close enough
18088 to the correct answer that we can assume the discrepancy is
18089 due to leap seconds. */
18090 return (t == (time_t) -1
18091 || (0 < t && answer - 120 <= t && t <= answer + 120));
18095 main ()
18097 time_t t, delta;
18098 int i, j;
18100 /* This test makes some buggy mktime implementations loop.
18101 Give up after 60 seconds; a mktime slower than that
18102 isn't worth using anyway. */
18103 alarm (60);
18105 for (;;)
18107 t = (time_t_max << 1) + 1;
18108 if (t <= time_t_max)
18109 break;
18110 time_t_max = t;
18112 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18114 delta = time_t_max / 997; /* a suitable prime number */
18115 for (i = 0; i < N_STRINGS; i++)
18117 if (tz_strings[i])
18118 putenv (tz_strings[i]);
18120 for (t = 0; t <= time_t_max - delta; t += delta)
18121 if (! mktime_test (t))
18122 return 1;
18123 if (! (mktime_test ((time_t) 1)
18124 && mktime_test ((time_t) (60 * 60))
18125 && mktime_test ((time_t) (60 * 60 * 24))))
18126 return 1;
18128 for (j = 1; ; j <<= 1)
18129 if (! bigtime_test (j))
18130 return 1;
18131 else if (INT_MAX / 2 < j)
18132 break;
18133 if (! bigtime_test (INT_MAX))
18134 return 1;
18136 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18138 _ACEOF
18139 rm -f conftest$ac_exeext
18140 if { (ac_try="$ac_link"
18141 case "(($ac_try" in
18142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143 *) ac_try_echo=$ac_try;;
18144 esac
18145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18146 $as_echo "$ac_try_echo") >&5
18147 (eval "$ac_link") 2>&5
18148 ac_status=$?
18149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18151 { (case "(($ac_try" in
18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18154 esac
18155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18156 $as_echo "$ac_try_echo") >&5
18157 (eval "$ac_try") 2>&5
18158 ac_status=$?
18159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
18161 ac_cv_func_working_mktime=yes
18162 else
18163 $as_echo "$as_me: program exited with status $ac_status" >&5
18164 $as_echo "$as_me: failed program was:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18167 ( exit $ac_status )
18168 ac_cv_func_working_mktime=no
18170 rm -rf conftest.dSYM
18171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18176 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18177 $as_echo "$ac_cv_func_working_mktime" >&6; }
18178 if test $ac_cv_func_working_mktime = no; then
18179 case " $LIBOBJS " in
18180 *" mktime.$ac_objext "* ) ;;
18181 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18183 esac
18187 if test "$ac_cv_func_working_mktime" = no; then
18189 cat >>confdefs.h <<\_ACEOF
18190 #define BROKEN_MKTIME 1
18191 _ACEOF
18195 ac_have_func=no # yes means we've found a way to get the load average.
18197 # Make sure getloadavg.c is where it belongs, at configure-time.
18198 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18199 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18200 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18201 { (exit 1); exit 1; }; }
18203 ac_save_LIBS=$LIBS
18205 # Check for getloadavg, but be sure not to touch the cache variable.
18206 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18207 $as_echo_n "checking for getloadavg... " >&6; }
18208 if test "${ac_cv_func_getloadavg+set}" = set; then
18209 $as_echo_n "(cached) " >&6
18210 else
18211 cat >conftest.$ac_ext <<_ACEOF
18212 /* confdefs.h. */
18213 _ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18217 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18219 #define getloadavg innocuous_getloadavg
18221 /* System header to define __stub macros and hopefully few prototypes,
18222 which can conflict with char getloadavg (); below.
18223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18224 <limits.h> exists even on freestanding compilers. */
18226 #ifdef __STDC__
18227 # include <limits.h>
18228 #else
18229 # include <assert.h>
18230 #endif
18232 #undef getloadavg
18234 /* Override any GCC internal prototype to avoid an error.
18235 Use char because int might match the return type of a GCC
18236 builtin and then its argument prototype would still apply. */
18237 #ifdef __cplusplus
18238 extern "C"
18239 #endif
18240 char getloadavg ();
18241 /* The GNU C library defines this for functions which it implements
18242 to always fail with ENOSYS. Some functions are actually named
18243 something starting with __ and the normal name is an alias. */
18244 #if defined __stub_getloadavg || defined __stub___getloadavg
18245 choke me
18246 #endif
18249 main ()
18251 return getloadavg ();
18253 return 0;
18255 _ACEOF
18256 rm -f conftest.$ac_objext conftest$ac_exeext
18257 if { (ac_try="$ac_link"
18258 case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18261 esac
18262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18263 $as_echo "$ac_try_echo") >&5
18264 (eval "$ac_link") 2>conftest.er1
18265 ac_status=$?
18266 grep -v '^ *+' conftest.er1 >conftest.err
18267 rm -f conftest.er1
18268 cat conftest.err >&5
18269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } && {
18271 test -z "$ac_c_werror_flag" ||
18272 test ! -s conftest.err
18273 } && test -s conftest$ac_exeext && {
18274 test "$cross_compiling" = yes ||
18275 $as_test_x conftest$ac_exeext
18276 }; then
18277 ac_cv_func_getloadavg=yes
18278 else
18279 $as_echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18282 ac_cv_func_getloadavg=no
18285 rm -rf conftest.dSYM
18286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18287 conftest$ac_exeext conftest.$ac_ext
18289 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18290 $as_echo "$ac_cv_func_getloadavg" >&6; }
18291 if test "x$ac_cv_func_getloadavg" = x""yes; then
18292 exit 0
18293 else
18294 exit 1
18296 ) && ac_have_func=yes
18298 # On HPUX9, an unprivileged user can get load averages through this function.
18300 for ac_func in pstat_getdynamic
18302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18303 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18304 $as_echo_n "checking for $ac_func... " >&6; }
18305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18306 $as_echo_n "(cached) " >&6
18307 else
18308 cat >conftest.$ac_ext <<_ACEOF
18309 /* confdefs.h. */
18310 _ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h. */
18314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18316 #define $ac_func innocuous_$ac_func
18318 /* System header to define __stub macros and hopefully few prototypes,
18319 which can conflict with char $ac_func (); below.
18320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18321 <limits.h> exists even on freestanding compilers. */
18323 #ifdef __STDC__
18324 # include <limits.h>
18325 #else
18326 # include <assert.h>
18327 #endif
18329 #undef $ac_func
18331 /* Override any GCC internal prototype to avoid an error.
18332 Use char because int might match the return type of a GCC
18333 builtin and then its argument prototype would still apply. */
18334 #ifdef __cplusplus
18335 extern "C"
18336 #endif
18337 char $ac_func ();
18338 /* The GNU C library defines this for functions which it implements
18339 to always fail with ENOSYS. Some functions are actually named
18340 something starting with __ and the normal name is an alias. */
18341 #if defined __stub_$ac_func || defined __stub___$ac_func
18342 choke me
18343 #endif
18346 main ()
18348 return $ac_func ();
18350 return 0;
18352 _ACEOF
18353 rm -f conftest.$ac_objext conftest$ac_exeext
18354 if { (ac_try="$ac_link"
18355 case "(($ac_try" in
18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357 *) ac_try_echo=$ac_try;;
18358 esac
18359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18360 $as_echo "$ac_try_echo") >&5
18361 (eval "$ac_link") 2>conftest.er1
18362 ac_status=$?
18363 grep -v '^ *+' conftest.er1 >conftest.err
18364 rm -f conftest.er1
18365 cat conftest.err >&5
18366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } && {
18368 test -z "$ac_c_werror_flag" ||
18369 test ! -s conftest.err
18370 } && test -s conftest$ac_exeext && {
18371 test "$cross_compiling" = yes ||
18372 $as_test_x conftest$ac_exeext
18373 }; then
18374 eval "$as_ac_var=yes"
18375 else
18376 $as_echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18379 eval "$as_ac_var=no"
18382 rm -rf conftest.dSYM
18383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18384 conftest$ac_exeext conftest.$ac_ext
18386 ac_res=`eval 'as_val=${'$as_ac_var'}
18387 $as_echo "$as_val"'`
18388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18389 $as_echo "$ac_res" >&6; }
18390 as_val=`eval 'as_val=${'$as_ac_var'}
18391 $as_echo "$as_val"'`
18392 if test "x$as_val" = x""yes; then
18393 cat >>confdefs.h <<_ACEOF
18394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18395 _ACEOF
18398 done
18401 # Solaris has libkstat which does not require root.
18403 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18404 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18405 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18406 $as_echo_n "(cached) " >&6
18407 else
18408 ac_check_lib_save_LIBS=$LIBS
18409 LIBS="-lkstat $LIBS"
18410 cat >conftest.$ac_ext <<_ACEOF
18411 /* confdefs.h. */
18412 _ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h. */
18417 /* Override any GCC internal prototype to avoid an error.
18418 Use char because int might match the return type of a GCC
18419 builtin and then its argument prototype would still apply. */
18420 #ifdef __cplusplus
18421 extern "C"
18422 #endif
18423 char kstat_open ();
18425 main ()
18427 return kstat_open ();
18429 return 0;
18431 _ACEOF
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (ac_try="$ac_link"
18434 case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18437 esac
18438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18439 $as_echo "$ac_try_echo") >&5
18440 (eval "$ac_link") 2>conftest.er1
18441 ac_status=$?
18442 grep -v '^ *+' conftest.er1 >conftest.err
18443 rm -f conftest.er1
18444 cat conftest.err >&5
18445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); } && {
18447 test -z "$ac_c_werror_flag" ||
18448 test ! -s conftest.err
18449 } && test -s conftest$ac_exeext && {
18450 test "$cross_compiling" = yes ||
18451 $as_test_x conftest$ac_exeext
18452 }; then
18453 ac_cv_lib_kstat_kstat_open=yes
18454 else
18455 $as_echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18458 ac_cv_lib_kstat_kstat_open=no
18461 rm -rf conftest.dSYM
18462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18463 conftest$ac_exeext conftest.$ac_ext
18464 LIBS=$ac_check_lib_save_LIBS
18466 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18467 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18468 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then
18469 cat >>confdefs.h <<_ACEOF
18470 #define HAVE_LIBKSTAT 1
18471 _ACEOF
18473 LIBS="-lkstat $LIBS"
18477 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18479 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18480 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18481 # to get the right answer into the cache.
18482 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18483 if test $ac_have_func = no; then
18484 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18485 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18486 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18487 $as_echo_n "(cached) " >&6
18488 else
18489 ac_check_lib_save_LIBS=$LIBS
18490 LIBS="-lelf $LIBS"
18491 cat >conftest.$ac_ext <<_ACEOF
18492 /* confdefs.h. */
18493 _ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18498 /* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18501 #ifdef __cplusplus
18502 extern "C"
18503 #endif
18504 char elf_begin ();
18506 main ()
18508 return elf_begin ();
18510 return 0;
18512 _ACEOF
18513 rm -f conftest.$ac_objext conftest$ac_exeext
18514 if { (ac_try="$ac_link"
18515 case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18518 esac
18519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18520 $as_echo "$ac_try_echo") >&5
18521 (eval "$ac_link") 2>conftest.er1
18522 ac_status=$?
18523 grep -v '^ *+' conftest.er1 >conftest.err
18524 rm -f conftest.er1
18525 cat conftest.err >&5
18526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); } && {
18528 test -z "$ac_c_werror_flag" ||
18529 test ! -s conftest.err
18530 } && test -s conftest$ac_exeext && {
18531 test "$cross_compiling" = yes ||
18532 $as_test_x conftest$ac_exeext
18533 }; then
18534 ac_cv_lib_elf_elf_begin=yes
18535 else
18536 $as_echo "$as_me: failed program was:" >&5
18537 sed 's/^/| /' conftest.$ac_ext >&5
18539 ac_cv_lib_elf_elf_begin=no
18542 rm -rf conftest.dSYM
18543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18544 conftest$ac_exeext conftest.$ac_ext
18545 LIBS=$ac_check_lib_save_LIBS
18547 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18548 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18549 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then
18550 LIBS="-lelf $LIBS"
18554 if test $ac_have_func = no; then
18555 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18556 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18557 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18558 $as_echo_n "(cached) " >&6
18559 else
18560 ac_check_lib_save_LIBS=$LIBS
18561 LIBS="-lkvm $LIBS"
18562 cat >conftest.$ac_ext <<_ACEOF
18563 /* confdefs.h. */
18564 _ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18569 /* Override any GCC internal prototype to avoid an error.
18570 Use char because int might match the return type of a GCC
18571 builtin and then its argument prototype would still apply. */
18572 #ifdef __cplusplus
18573 extern "C"
18574 #endif
18575 char kvm_open ();
18577 main ()
18579 return kvm_open ();
18581 return 0;
18583 _ACEOF
18584 rm -f conftest.$ac_objext conftest$ac_exeext
18585 if { (ac_try="$ac_link"
18586 case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18589 esac
18590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18591 $as_echo "$ac_try_echo") >&5
18592 (eval "$ac_link") 2>conftest.er1
18593 ac_status=$?
18594 grep -v '^ *+' conftest.er1 >conftest.err
18595 rm -f conftest.er1
18596 cat conftest.err >&5
18597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } && {
18599 test -z "$ac_c_werror_flag" ||
18600 test ! -s conftest.err
18601 } && test -s conftest$ac_exeext && {
18602 test "$cross_compiling" = yes ||
18603 $as_test_x conftest$ac_exeext
18604 }; then
18605 ac_cv_lib_kvm_kvm_open=yes
18606 else
18607 $as_echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18610 ac_cv_lib_kvm_kvm_open=no
18613 rm -rf conftest.dSYM
18614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18615 conftest$ac_exeext conftest.$ac_ext
18616 LIBS=$ac_check_lib_save_LIBS
18618 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18619 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18620 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then
18621 LIBS="-lkvm $LIBS"
18624 # Check for the 4.4BSD definition of getloadavg.
18625 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18626 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18627 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18628 $as_echo_n "(cached) " >&6
18629 else
18630 ac_check_lib_save_LIBS=$LIBS
18631 LIBS="-lutil $LIBS"
18632 cat >conftest.$ac_ext <<_ACEOF
18633 /* confdefs.h. */
18634 _ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h. */
18639 /* Override any GCC internal prototype to avoid an error.
18640 Use char because int might match the return type of a GCC
18641 builtin and then its argument prototype would still apply. */
18642 #ifdef __cplusplus
18643 extern "C"
18644 #endif
18645 char getloadavg ();
18647 main ()
18649 return getloadavg ();
18651 return 0;
18653 _ACEOF
18654 rm -f conftest.$ac_objext conftest$ac_exeext
18655 if { (ac_try="$ac_link"
18656 case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18659 esac
18660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18661 $as_echo "$ac_try_echo") >&5
18662 (eval "$ac_link") 2>conftest.er1
18663 ac_status=$?
18664 grep -v '^ *+' conftest.er1 >conftest.err
18665 rm -f conftest.er1
18666 cat conftest.err >&5
18667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } && {
18669 test -z "$ac_c_werror_flag" ||
18670 test ! -s conftest.err
18671 } && test -s conftest$ac_exeext && {
18672 test "$cross_compiling" = yes ||
18673 $as_test_x conftest$ac_exeext
18674 }; then
18675 ac_cv_lib_util_getloadavg=yes
18676 else
18677 $as_echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18680 ac_cv_lib_util_getloadavg=no
18683 rm -rf conftest.dSYM
18684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18685 conftest$ac_exeext conftest.$ac_ext
18686 LIBS=$ac_check_lib_save_LIBS
18688 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18689 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18690 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then
18691 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18696 if test $ac_have_func = no; then
18697 # There is a commonly available library for RS/6000 AIX.
18698 # Since it is not a standard part of AIX, it might be installed locally.
18699 ac_getloadavg_LIBS=$LIBS
18700 LIBS="-L/usr/local/lib $LIBS"
18701 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18702 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18703 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18704 $as_echo_n "(cached) " >&6
18705 else
18706 ac_check_lib_save_LIBS=$LIBS
18707 LIBS="-lgetloadavg $LIBS"
18708 cat >conftest.$ac_ext <<_ACEOF
18709 /* confdefs.h. */
18710 _ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h. */
18715 /* Override any GCC internal prototype to avoid an error.
18716 Use char because int might match the return type of a GCC
18717 builtin and then its argument prototype would still apply. */
18718 #ifdef __cplusplus
18719 extern "C"
18720 #endif
18721 char getloadavg ();
18723 main ()
18725 return getloadavg ();
18727 return 0;
18729 _ACEOF
18730 rm -f conftest.$ac_objext conftest$ac_exeext
18731 if { (ac_try="$ac_link"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18735 esac
18736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18737 $as_echo "$ac_try_echo") >&5
18738 (eval "$ac_link") 2>conftest.er1
18739 ac_status=$?
18740 grep -v '^ *+' conftest.er1 >conftest.err
18741 rm -f conftest.er1
18742 cat conftest.err >&5
18743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } && {
18745 test -z "$ac_c_werror_flag" ||
18746 test ! -s conftest.err
18747 } && test -s conftest$ac_exeext && {
18748 test "$cross_compiling" = yes ||
18749 $as_test_x conftest$ac_exeext
18750 }; then
18751 ac_cv_lib_getloadavg_getloadavg=yes
18752 else
18753 $as_echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18756 ac_cv_lib_getloadavg_getloadavg=no
18759 rm -rf conftest.dSYM
18760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18761 conftest$ac_exeext conftest.$ac_ext
18762 LIBS=$ac_check_lib_save_LIBS
18764 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18765 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18766 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then
18767 LIBS="-lgetloadavg $LIBS"
18768 else
18769 LIBS=$ac_getloadavg_LIBS
18774 # Make sure it is really in the library, if we think we found it,
18775 # otherwise set up the replacement function.
18777 for ac_func in getloadavg
18779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18780 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18781 $as_echo_n "checking for $ac_func... " >&6; }
18782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18783 $as_echo_n "(cached) " >&6
18784 else
18785 cat >conftest.$ac_ext <<_ACEOF
18786 /* confdefs.h. */
18787 _ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18793 #define $ac_func innocuous_$ac_func
18795 /* System header to define __stub macros and hopefully few prototypes,
18796 which can conflict with char $ac_func (); below.
18797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18798 <limits.h> exists even on freestanding compilers. */
18800 #ifdef __STDC__
18801 # include <limits.h>
18802 #else
18803 # include <assert.h>
18804 #endif
18806 #undef $ac_func
18808 /* Override any GCC internal prototype to avoid an error.
18809 Use char because int might match the return type of a GCC
18810 builtin and then its argument prototype would still apply. */
18811 #ifdef __cplusplus
18812 extern "C"
18813 #endif
18814 char $ac_func ();
18815 /* The GNU C library defines this for functions which it implements
18816 to always fail with ENOSYS. Some functions are actually named
18817 something starting with __ and the normal name is an alias. */
18818 #if defined __stub_$ac_func || defined __stub___$ac_func
18819 choke me
18820 #endif
18823 main ()
18825 return $ac_func ();
18827 return 0;
18829 _ACEOF
18830 rm -f conftest.$ac_objext conftest$ac_exeext
18831 if { (ac_try="$ac_link"
18832 case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18835 esac
18836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18837 $as_echo "$ac_try_echo") >&5
18838 (eval "$ac_link") 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } && {
18845 test -z "$ac_c_werror_flag" ||
18846 test ! -s conftest.err
18847 } && test -s conftest$ac_exeext && {
18848 test "$cross_compiling" = yes ||
18849 $as_test_x conftest$ac_exeext
18850 }; then
18851 eval "$as_ac_var=yes"
18852 else
18853 $as_echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18856 eval "$as_ac_var=no"
18859 rm -rf conftest.dSYM
18860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18861 conftest$ac_exeext conftest.$ac_ext
18863 ac_res=`eval 'as_val=${'$as_ac_var'}
18864 $as_echo "$as_val"'`
18865 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18866 $as_echo "$ac_res" >&6; }
18867 as_val=`eval 'as_val=${'$as_ac_var'}
18868 $as_echo "$as_val"'`
18869 if test "x$as_val" = x""yes; then
18870 cat >>confdefs.h <<_ACEOF
18871 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18872 _ACEOF
18874 else
18875 case " $LIBOBJS " in
18876 *" getloadavg.$ac_objext "* ) ;;
18877 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18879 esac
18882 cat >>confdefs.h <<\_ACEOF
18883 #define C_GETLOADAVG 1
18884 _ACEOF
18886 # Figure out what our getloadavg.c needs.
18887 ac_have_func=no
18888 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18889 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18890 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18891 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18892 $as_echo_n "(cached) " >&6
18894 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18895 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18896 else
18897 # Is the header compilable?
18898 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18899 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18900 cat >conftest.$ac_ext <<_ACEOF
18901 /* confdefs.h. */
18902 _ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18906 $ac_includes_default
18907 #include <sys/dg_sys_info.h>
18908 _ACEOF
18909 rm -f conftest.$ac_objext
18910 if { (ac_try="$ac_compile"
18911 case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18914 esac
18915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18916 $as_echo "$ac_try_echo") >&5
18917 (eval "$ac_compile") 2>conftest.er1
18918 ac_status=$?
18919 grep -v '^ *+' conftest.er1 >conftest.err
18920 rm -f conftest.er1
18921 cat conftest.err >&5
18922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } && {
18924 test -z "$ac_c_werror_flag" ||
18925 test ! -s conftest.err
18926 } && test -s conftest.$ac_objext; then
18927 ac_header_compiler=yes
18928 else
18929 $as_echo "$as_me: failed program was:" >&5
18930 sed 's/^/| /' conftest.$ac_ext >&5
18932 ac_header_compiler=no
18935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18936 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18937 $as_echo "$ac_header_compiler" >&6; }
18939 # Is the header present?
18940 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18941 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18942 cat >conftest.$ac_ext <<_ACEOF
18943 /* confdefs.h. */
18944 _ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h. */
18948 #include <sys/dg_sys_info.h>
18949 _ACEOF
18950 if { (ac_try="$ac_cpp conftest.$ac_ext"
18951 case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18954 esac
18955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18956 $as_echo "$ac_try_echo") >&5
18957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18958 ac_status=$?
18959 grep -v '^ *+' conftest.er1 >conftest.err
18960 rm -f conftest.er1
18961 cat conftest.err >&5
18962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } >/dev/null && {
18964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18965 test ! -s conftest.err
18966 }; then
18967 ac_header_preproc=yes
18968 else
18969 $as_echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 ac_header_preproc=no
18975 rm -f conftest.err conftest.$ac_ext
18976 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18977 $as_echo "$ac_header_preproc" >&6; }
18979 # So? What about this header?
18980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18981 yes:no: )
18982 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18983 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18984 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18985 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18986 ac_header_preproc=yes
18988 no:yes:* )
18989 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18990 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18991 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18992 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18993 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18994 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18995 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18996 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18997 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18998 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18999 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19000 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19003 esac
19004 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19005 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19006 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19007 $as_echo_n "(cached) " >&6
19008 else
19009 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19011 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19012 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19015 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then
19016 ac_have_func=yes
19018 cat >>confdefs.h <<\_ACEOF
19019 #define DGUX 1
19020 _ACEOF
19023 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19024 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19025 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19026 $as_echo_n "(cached) " >&6
19027 else
19028 ac_check_lib_save_LIBS=$LIBS
19029 LIBS="-ldgc $LIBS"
19030 cat >conftest.$ac_ext <<_ACEOF
19031 /* confdefs.h. */
19032 _ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h. */
19037 /* Override any GCC internal prototype to avoid an error.
19038 Use char because int might match the return type of a GCC
19039 builtin and then its argument prototype would still apply. */
19040 #ifdef __cplusplus
19041 extern "C"
19042 #endif
19043 char dg_sys_info ();
19045 main ()
19047 return dg_sys_info ();
19049 return 0;
19051 _ACEOF
19052 rm -f conftest.$ac_objext conftest$ac_exeext
19053 if { (ac_try="$ac_link"
19054 case "(($ac_try" in
19055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056 *) ac_try_echo=$ac_try;;
19057 esac
19058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19059 $as_echo "$ac_try_echo") >&5
19060 (eval "$ac_link") 2>conftest.er1
19061 ac_status=$?
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
19065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } && {
19067 test -z "$ac_c_werror_flag" ||
19068 test ! -s conftest.err
19069 } && test -s conftest$ac_exeext && {
19070 test "$cross_compiling" = yes ||
19071 $as_test_x conftest$ac_exeext
19072 }; then
19073 ac_cv_lib_dgc_dg_sys_info=yes
19074 else
19075 $as_echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19078 ac_cv_lib_dgc_dg_sys_info=no
19081 rm -rf conftest.dSYM
19082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19083 conftest$ac_exeext conftest.$ac_ext
19084 LIBS=$ac_check_lib_save_LIBS
19086 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19087 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19088 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then
19089 cat >>confdefs.h <<_ACEOF
19090 #define HAVE_LIBDGC 1
19091 _ACEOF
19093 LIBS="-ldgc $LIBS"
19101 if test "${ac_cv_header_locale_h+set}" = set; then
19102 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19103 $as_echo_n "checking for locale.h... " >&6; }
19104 if test "${ac_cv_header_locale_h+set}" = set; then
19105 $as_echo_n "(cached) " >&6
19107 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19108 $as_echo "$ac_cv_header_locale_h" >&6; }
19109 else
19110 # Is the header compilable?
19111 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19112 $as_echo_n "checking locale.h usability... " >&6; }
19113 cat >conftest.$ac_ext <<_ACEOF
19114 /* confdefs.h. */
19115 _ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19119 $ac_includes_default
19120 #include <locale.h>
19121 _ACEOF
19122 rm -f conftest.$ac_objext
19123 if { (ac_try="$ac_compile"
19124 case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19127 esac
19128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19129 $as_echo "$ac_try_echo") >&5
19130 (eval "$ac_compile") 2>conftest.er1
19131 ac_status=$?
19132 grep -v '^ *+' conftest.er1 >conftest.err
19133 rm -f conftest.er1
19134 cat conftest.err >&5
19135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } && {
19137 test -z "$ac_c_werror_flag" ||
19138 test ! -s conftest.err
19139 } && test -s conftest.$ac_objext; then
19140 ac_header_compiler=yes
19141 else
19142 $as_echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 ac_header_compiler=no
19148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19149 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19150 $as_echo "$ac_header_compiler" >&6; }
19152 # Is the header present?
19153 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19154 $as_echo_n "checking locale.h presence... " >&6; }
19155 cat >conftest.$ac_ext <<_ACEOF
19156 /* confdefs.h. */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19161 #include <locale.h>
19162 _ACEOF
19163 if { (ac_try="$ac_cpp conftest.$ac_ext"
19164 case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19167 esac
19168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19169 $as_echo "$ac_try_echo") >&5
19170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19171 ac_status=$?
19172 grep -v '^ *+' conftest.er1 >conftest.err
19173 rm -f conftest.er1
19174 cat conftest.err >&5
19175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } >/dev/null && {
19177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19178 test ! -s conftest.err
19179 }; then
19180 ac_header_preproc=yes
19181 else
19182 $as_echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19185 ac_header_preproc=no
19188 rm -f conftest.err conftest.$ac_ext
19189 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19190 $as_echo "$ac_header_preproc" >&6; }
19192 # So? What about this header?
19193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19194 yes:no: )
19195 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19196 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19197 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19198 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19199 ac_header_preproc=yes
19201 no:yes:* )
19202 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19203 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19204 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19205 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19206 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19207 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19208 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19209 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19210 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19211 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19212 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19213 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19216 esac
19217 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19218 $as_echo_n "checking for locale.h... " >&6; }
19219 if test "${ac_cv_header_locale_h+set}" = set; then
19220 $as_echo_n "(cached) " >&6
19221 else
19222 ac_cv_header_locale_h=$ac_header_preproc
19224 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19225 $as_echo "$ac_cv_header_locale_h" >&6; }
19231 for ac_func in setlocale
19233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19234 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19235 $as_echo_n "checking for $ac_func... " >&6; }
19236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19237 $as_echo_n "(cached) " >&6
19238 else
19239 cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h. */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19247 #define $ac_func innocuous_$ac_func
19249 /* System header to define __stub macros and hopefully few prototypes,
19250 which can conflict with char $ac_func (); below.
19251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19252 <limits.h> exists even on freestanding compilers. */
19254 #ifdef __STDC__
19255 # include <limits.h>
19256 #else
19257 # include <assert.h>
19258 #endif
19260 #undef $ac_func
19262 /* Override any GCC internal prototype to avoid an error.
19263 Use char because int might match the return type of a GCC
19264 builtin and then its argument prototype would still apply. */
19265 #ifdef __cplusplus
19266 extern "C"
19267 #endif
19268 char $ac_func ();
19269 /* The GNU C library defines this for functions which it implements
19270 to always fail with ENOSYS. Some functions are actually named
19271 something starting with __ and the normal name is an alias. */
19272 #if defined __stub_$ac_func || defined __stub___$ac_func
19273 choke me
19274 #endif
19277 main ()
19279 return $ac_func ();
19281 return 0;
19283 _ACEOF
19284 rm -f conftest.$ac_objext conftest$ac_exeext
19285 if { (ac_try="$ac_link"
19286 case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19289 esac
19290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19291 $as_echo "$ac_try_echo") >&5
19292 (eval "$ac_link") 2>conftest.er1
19293 ac_status=$?
19294 grep -v '^ *+' conftest.er1 >conftest.err
19295 rm -f conftest.er1
19296 cat conftest.err >&5
19297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } && {
19299 test -z "$ac_c_werror_flag" ||
19300 test ! -s conftest.err
19301 } && test -s conftest$ac_exeext && {
19302 test "$cross_compiling" = yes ||
19303 $as_test_x conftest$ac_exeext
19304 }; then
19305 eval "$as_ac_var=yes"
19306 else
19307 $as_echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19310 eval "$as_ac_var=no"
19313 rm -rf conftest.dSYM
19314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19315 conftest$ac_exeext conftest.$ac_ext
19317 ac_res=`eval 'as_val=${'$as_ac_var'}
19318 $as_echo "$as_val"'`
19319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19320 $as_echo "$ac_res" >&6; }
19321 as_val=`eval 'as_val=${'$as_ac_var'}
19322 $as_echo "$as_val"'`
19323 if test "x$as_val" = x""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 "x$ac_cv_header_inq_stats_cpustats_h" = x""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 "x$ac_cv_header_sys_cpustats_h" = x""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 as_val=`eval 'as_val=${'$as_ac_Header'}
19764 $as_echo "$as_val"'`
19765 if test "x$as_val" = x""yes; then
19766 cat >>confdefs.h <<_ACEOF
19767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19768 _ACEOF
19772 done
19777 for ac_header in nlist.h
19779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19781 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19782 $as_echo_n "checking for $ac_header... " >&6; }
19783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19784 $as_echo_n "(cached) " >&6
19786 ac_res=`eval 'as_val=${'$as_ac_Header'}
19787 $as_echo "$as_val"'`
19788 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19789 $as_echo "$ac_res" >&6; }
19790 else
19791 # Is the header compilable?
19792 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19793 $as_echo_n "checking $ac_header usability... " >&6; }
19794 cat >conftest.$ac_ext <<_ACEOF
19795 /* confdefs.h. */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19800 $ac_includes_default
19801 #include <$ac_header>
19802 _ACEOF
19803 rm -f conftest.$ac_objext
19804 if { (ac_try="$ac_compile"
19805 case "(($ac_try" in
19806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807 *) ac_try_echo=$ac_try;;
19808 esac
19809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19810 $as_echo "$ac_try_echo") >&5
19811 (eval "$ac_compile") 2>conftest.er1
19812 ac_status=$?
19813 grep -v '^ *+' conftest.er1 >conftest.err
19814 rm -f conftest.er1
19815 cat conftest.err >&5
19816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } && {
19818 test -z "$ac_c_werror_flag" ||
19819 test ! -s conftest.err
19820 } && test -s conftest.$ac_objext; then
19821 ac_header_compiler=yes
19822 else
19823 $as_echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19826 ac_header_compiler=no
19829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19830 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19831 $as_echo "$ac_header_compiler" >&6; }
19833 # Is the header present?
19834 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19835 $as_echo_n "checking $ac_header presence... " >&6; }
19836 cat >conftest.$ac_ext <<_ACEOF
19837 /* confdefs.h. */
19838 _ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19842 #include <$ac_header>
19843 _ACEOF
19844 if { (ac_try="$ac_cpp conftest.$ac_ext"
19845 case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19848 esac
19849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19850 $as_echo "$ac_try_echo") >&5
19851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19852 ac_status=$?
19853 grep -v '^ *+' conftest.er1 >conftest.err
19854 rm -f conftest.er1
19855 cat conftest.err >&5
19856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); } >/dev/null && {
19858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19859 test ! -s conftest.err
19860 }; then
19861 ac_header_preproc=yes
19862 else
19863 $as_echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19866 ac_header_preproc=no
19869 rm -f conftest.err conftest.$ac_ext
19870 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19871 $as_echo "$ac_header_preproc" >&6; }
19873 # So? What about this header?
19874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19875 yes:no: )
19876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19877 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19879 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19880 ac_header_preproc=yes
19882 no:yes:* )
19883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19884 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19886 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19888 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19890 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19892 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19894 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19897 esac
19898 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19899 $as_echo_n "checking for $ac_header... " >&6; }
19900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19901 $as_echo_n "(cached) " >&6
19902 else
19903 eval "$as_ac_Header=\$ac_header_preproc"
19905 ac_res=`eval 'as_val=${'$as_ac_Header'}
19906 $as_echo "$as_val"'`
19907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19908 $as_echo "$ac_res" >&6; }
19911 as_val=`eval 'as_val=${'$as_ac_Header'}
19912 $as_echo "$as_val"'`
19913 if test "x$as_val" = x""yes; then
19914 cat >>confdefs.h <<_ACEOF
19915 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19916 _ACEOF
19917 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19918 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19919 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19920 $as_echo_n "(cached) " >&6
19921 else
19922 cat >conftest.$ac_ext <<_ACEOF
19923 /* confdefs.h. */
19924 _ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h. */
19928 #include <nlist.h>
19931 main ()
19933 static struct nlist ac_aggr;
19934 if (ac_aggr.n_un.n_name)
19935 return 0;
19937 return 0;
19939 _ACEOF
19940 rm -f conftest.$ac_objext
19941 if { (ac_try="$ac_compile"
19942 case "(($ac_try" in
19943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944 *) ac_try_echo=$ac_try;;
19945 esac
19946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19947 $as_echo "$ac_try_echo") >&5
19948 (eval "$ac_compile") 2>conftest.er1
19949 ac_status=$?
19950 grep -v '^ *+' conftest.er1 >conftest.err
19951 rm -f conftest.er1
19952 cat conftest.err >&5
19953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } && {
19955 test -z "$ac_c_werror_flag" ||
19956 test ! -s conftest.err
19957 } && test -s conftest.$ac_objext; then
19958 ac_cv_member_struct_nlist_n_un_n_name=yes
19959 else
19960 $as_echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19963 cat >conftest.$ac_ext <<_ACEOF
19964 /* confdefs.h. */
19965 _ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h. */
19969 #include <nlist.h>
19972 main ()
19974 static struct nlist ac_aggr;
19975 if (sizeof ac_aggr.n_un.n_name)
19976 return 0;
19978 return 0;
19980 _ACEOF
19981 rm -f conftest.$ac_objext
19982 if { (ac_try="$ac_compile"
19983 case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19986 esac
19987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19988 $as_echo "$ac_try_echo") >&5
19989 (eval "$ac_compile") 2>conftest.er1
19990 ac_status=$?
19991 grep -v '^ *+' conftest.er1 >conftest.err
19992 rm -f conftest.er1
19993 cat conftest.err >&5
19994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } && {
19996 test -z "$ac_c_werror_flag" ||
19997 test ! -s conftest.err
19998 } && test -s conftest.$ac_objext; then
19999 ac_cv_member_struct_nlist_n_un_n_name=yes
20000 else
20001 $as_echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 ac_cv_member_struct_nlist_n_un_n_name=no
20007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20013 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20014 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then
20016 cat >>confdefs.h <<_ACEOF
20017 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20018 _ACEOF
20021 cat >>confdefs.h <<\_ACEOF
20022 #define NLIST_NAME_UNION 1
20023 _ACEOF
20030 done
20033 done
20036 # Some definitions of getloadavg require that the program be installed setgid.
20037 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20038 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20039 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20040 $as_echo_n "(cached) " >&6
20041 else
20042 cat >conftest.$ac_ext <<_ACEOF
20043 /* confdefs.h. */
20044 _ACEOF
20045 cat confdefs.h >>conftest.$ac_ext
20046 cat >>conftest.$ac_ext <<_ACEOF
20047 /* end confdefs.h. */
20048 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20049 #ifdef LDAV_PRIVILEGED
20050 Yowza Am I SETGID yet
20051 #endif
20052 _ACEOF
20053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20054 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20055 ac_cv_func_getloadavg_setgid=yes
20056 else
20057 ac_cv_func_getloadavg_setgid=no
20059 rm -f conftest*
20062 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20063 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20064 if test $ac_cv_func_getloadavg_setgid = yes; then
20065 NEED_SETGID=true
20067 cat >>confdefs.h <<\_ACEOF
20068 #define GETLOADAVG_PRIVILEGED 1
20069 _ACEOF
20071 else
20072 NEED_SETGID=false
20075 if test $ac_cv_func_getloadavg_setgid = yes; then
20076 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20077 $as_echo_n "checking group of /dev/kmem... " >&6; }
20078 if test "${ac_cv_group_kmem+set}" = set; then
20079 $as_echo_n "(cached) " >&6
20080 else
20081 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20082 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20083 # If we got an error (system does not support symlinks), try without -L.
20084 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20085 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20086 | sed -ne 's/[ ][ ]*/ /g;
20087 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20088 / /s/.* //;p;'`
20091 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20092 $as_echo "$ac_cv_group_kmem" >&6; }
20093 KMEM_GROUP=$ac_cv_group_kmem
20095 if test "x$ac_save_LIBS" = x; then
20096 GETLOADAVG_LIBS=$LIBS
20097 else
20098 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20100 LIBS=$ac_save_LIBS
20104 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20105 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20106 if test "${ac_cv_sys_largefile_source+set}" = set; then
20107 $as_echo_n "(cached) " >&6
20108 else
20109 while :; do
20110 cat >conftest.$ac_ext <<_ACEOF
20111 /* confdefs.h. */
20112 _ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h. */
20116 #include <sys/types.h> /* for off_t */
20117 #include <stdio.h>
20119 main ()
20121 int (*fp) (FILE *, off_t, int) = fseeko;
20122 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20124 return 0;
20126 _ACEOF
20127 rm -f conftest.$ac_objext conftest$ac_exeext
20128 if { (ac_try="$ac_link"
20129 case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20132 esac
20133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20134 $as_echo "$ac_try_echo") >&5
20135 (eval "$ac_link") 2>conftest.er1
20136 ac_status=$?
20137 grep -v '^ *+' conftest.er1 >conftest.err
20138 rm -f conftest.er1
20139 cat conftest.err >&5
20140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } && {
20142 test -z "$ac_c_werror_flag" ||
20143 test ! -s conftest.err
20144 } && test -s conftest$ac_exeext && {
20145 test "$cross_compiling" = yes ||
20146 $as_test_x conftest$ac_exeext
20147 }; then
20148 ac_cv_sys_largefile_source=no; break
20149 else
20150 $as_echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20156 rm -rf conftest.dSYM
20157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20158 conftest$ac_exeext conftest.$ac_ext
20159 cat >conftest.$ac_ext <<_ACEOF
20160 /* confdefs.h. */
20161 _ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20165 #define _LARGEFILE_SOURCE 1
20166 #include <sys/types.h> /* for off_t */
20167 #include <stdio.h>
20169 main ()
20171 int (*fp) (FILE *, off_t, int) = fseeko;
20172 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20174 return 0;
20176 _ACEOF
20177 rm -f conftest.$ac_objext conftest$ac_exeext
20178 if { (ac_try="$ac_link"
20179 case "(($ac_try" in
20180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181 *) ac_try_echo=$ac_try;;
20182 esac
20183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20184 $as_echo "$ac_try_echo") >&5
20185 (eval "$ac_link") 2>conftest.er1
20186 ac_status=$?
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
20190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } && {
20192 test -z "$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20194 } && test -s conftest$ac_exeext && {
20195 test "$cross_compiling" = yes ||
20196 $as_test_x conftest$ac_exeext
20197 }; then
20198 ac_cv_sys_largefile_source=1; break
20199 else
20200 $as_echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20206 rm -rf conftest.dSYM
20207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20208 conftest$ac_exeext conftest.$ac_ext
20209 ac_cv_sys_largefile_source=unknown
20210 break
20211 done
20213 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20214 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20215 case $ac_cv_sys_largefile_source in #(
20216 no | unknown) ;;
20218 cat >>confdefs.h <<_ACEOF
20219 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20220 _ACEOF
20222 esac
20223 rm -rf conftest*
20225 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20226 # in glibc 2.1.3, but that breaks too many other things.
20227 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20228 if test $ac_cv_sys_largefile_source != unknown; then
20230 cat >>confdefs.h <<\_ACEOF
20231 #define HAVE_FSEEKO 1
20232 _ACEOF
20237 # Configure getopt.
20238 # getopt.m4 serial 10
20240 # The getopt module assume you want GNU getopt, with getopt_long etc,
20241 # rather than vanilla POSIX getopt. This means your your code should
20242 # always include <getopt.h> for the getopt prototypes.
20254 # Prerequisites of lib/getopt*.
20259 GETOPT_H=
20261 for ac_header in getopt.h
20263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20265 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20266 $as_echo_n "checking for $ac_header... " >&6; }
20267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20268 $as_echo_n "(cached) " >&6
20270 ac_res=`eval 'as_val=${'$as_ac_Header'}
20271 $as_echo "$as_val"'`
20272 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20273 $as_echo "$ac_res" >&6; }
20274 else
20275 # Is the header compilable?
20276 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20277 $as_echo_n "checking $ac_header usability... " >&6; }
20278 cat >conftest.$ac_ext <<_ACEOF
20279 /* confdefs.h. */
20280 _ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 $ac_includes_default
20285 #include <$ac_header>
20286 _ACEOF
20287 rm -f conftest.$ac_objext
20288 if { (ac_try="$ac_compile"
20289 case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20292 esac
20293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20294 $as_echo "$ac_try_echo") >&5
20295 (eval "$ac_compile") 2>conftest.er1
20296 ac_status=$?
20297 grep -v '^ *+' conftest.er1 >conftest.err
20298 rm -f conftest.er1
20299 cat conftest.err >&5
20300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } && {
20302 test -z "$ac_c_werror_flag" ||
20303 test ! -s conftest.err
20304 } && test -s conftest.$ac_objext; then
20305 ac_header_compiler=yes
20306 else
20307 $as_echo "$as_me: failed program was:" >&5
20308 sed 's/^/| /' conftest.$ac_ext >&5
20310 ac_header_compiler=no
20313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20314 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20315 $as_echo "$ac_header_compiler" >&6; }
20317 # Is the header present?
20318 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20319 $as_echo_n "checking $ac_header presence... " >&6; }
20320 cat >conftest.$ac_ext <<_ACEOF
20321 /* confdefs.h. */
20322 _ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20326 #include <$ac_header>
20327 _ACEOF
20328 if { (ac_try="$ac_cpp conftest.$ac_ext"
20329 case "(($ac_try" in
20330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331 *) ac_try_echo=$ac_try;;
20332 esac
20333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20334 $as_echo "$ac_try_echo") >&5
20335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20336 ac_status=$?
20337 grep -v '^ *+' conftest.er1 >conftest.err
20338 rm -f conftest.er1
20339 cat conftest.err >&5
20340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } >/dev/null && {
20342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20343 test ! -s conftest.err
20344 }; then
20345 ac_header_preproc=yes
20346 else
20347 $as_echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 ac_header_preproc=no
20353 rm -f conftest.err conftest.$ac_ext
20354 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20355 $as_echo "$ac_header_preproc" >&6; }
20357 # So? What about this header?
20358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20359 yes:no: )
20360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20361 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20363 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20364 ac_header_preproc=yes
20366 no:yes:* )
20367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20368 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20370 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20372 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20374 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20376 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20378 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20381 esac
20382 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20383 $as_echo_n "checking for $ac_header... " >&6; }
20384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20385 $as_echo_n "(cached) " >&6
20386 else
20387 eval "$as_ac_Header=\$ac_header_preproc"
20389 ac_res=`eval 'as_val=${'$as_ac_Header'}
20390 $as_echo "$as_val"'`
20391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20392 $as_echo "$ac_res" >&6; }
20395 as_val=`eval 'as_val=${'$as_ac_Header'}
20396 $as_echo "$as_val"'`
20397 if test "x$as_val" = x""yes; then
20398 cat >>confdefs.h <<_ACEOF
20399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20400 _ACEOF
20402 else
20403 GETOPT_H=getopt.h
20406 done
20408 if test -z "$GETOPT_H"; then
20410 for ac_func in getopt_long_only
20412 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20413 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20414 $as_echo_n "checking for $ac_func... " >&6; }
20415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20416 $as_echo_n "(cached) " >&6
20417 else
20418 cat >conftest.$ac_ext <<_ACEOF
20419 /* confdefs.h. */
20420 _ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h. */
20424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20426 #define $ac_func innocuous_$ac_func
20428 /* System header to define __stub macros and hopefully few prototypes,
20429 which can conflict with char $ac_func (); below.
20430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20431 <limits.h> exists even on freestanding compilers. */
20433 #ifdef __STDC__
20434 # include <limits.h>
20435 #else
20436 # include <assert.h>
20437 #endif
20439 #undef $ac_func
20441 /* Override any GCC internal prototype to avoid an error.
20442 Use char because int might match the return type of a GCC
20443 builtin and then its argument prototype would still apply. */
20444 #ifdef __cplusplus
20445 extern "C"
20446 #endif
20447 char $ac_func ();
20448 /* The GNU C library defines this for functions which it implements
20449 to always fail with ENOSYS. Some functions are actually named
20450 something starting with __ and the normal name is an alias. */
20451 #if defined __stub_$ac_func || defined __stub___$ac_func
20452 choke me
20453 #endif
20456 main ()
20458 return $ac_func ();
20460 return 0;
20462 _ACEOF
20463 rm -f conftest.$ac_objext conftest$ac_exeext
20464 if { (ac_try="$ac_link"
20465 case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20468 esac
20469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20470 $as_echo "$ac_try_echo") >&5
20471 (eval "$ac_link") 2>conftest.er1
20472 ac_status=$?
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
20476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } && {
20478 test -z "$ac_c_werror_flag" ||
20479 test ! -s conftest.err
20480 } && test -s conftest$ac_exeext && {
20481 test "$cross_compiling" = yes ||
20482 $as_test_x conftest$ac_exeext
20483 }; then
20484 eval "$as_ac_var=yes"
20485 else
20486 $as_echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 eval "$as_ac_var=no"
20492 rm -rf conftest.dSYM
20493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20494 conftest$ac_exeext conftest.$ac_ext
20496 ac_res=`eval 'as_val=${'$as_ac_var'}
20497 $as_echo "$as_val"'`
20498 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20499 $as_echo "$ac_res" >&6; }
20500 as_val=`eval 'as_val=${'$as_ac_var'}
20501 $as_echo "$as_val"'`
20502 if test "x$as_val" = x""yes; then
20503 cat >>confdefs.h <<_ACEOF
20504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20505 _ACEOF
20507 else
20508 GETOPT_H=getopt.h
20510 done
20514 if test -z "$GETOPT_H"; then
20515 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20516 $as_echo_n "checking whether optreset is declared... " >&6; }
20517 if test "${ac_cv_have_decl_optreset+set}" = set; then
20518 $as_echo_n "(cached) " >&6
20519 else
20520 cat >conftest.$ac_ext <<_ACEOF
20521 /* confdefs.h. */
20522 _ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20526 #include <getopt.h>
20529 main ()
20531 #ifndef optreset
20532 (void) optreset;
20533 #endif
20536 return 0;
20538 _ACEOF
20539 rm -f conftest.$ac_objext
20540 if { (ac_try="$ac_compile"
20541 case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20544 esac
20545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20546 $as_echo "$ac_try_echo") >&5
20547 (eval "$ac_compile") 2>conftest.er1
20548 ac_status=$?
20549 grep -v '^ *+' conftest.er1 >conftest.err
20550 rm -f conftest.er1
20551 cat conftest.err >&5
20552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } && {
20554 test -z "$ac_c_werror_flag" ||
20555 test ! -s conftest.err
20556 } && test -s conftest.$ac_objext; then
20557 ac_cv_have_decl_optreset=yes
20558 else
20559 $as_echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20562 ac_cv_have_decl_optreset=no
20565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20568 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20569 if test "x$ac_cv_have_decl_optreset" = x""yes; then
20570 GETOPT_H=getopt.h
20575 if test -z "$GETOPT_H"; then
20576 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20577 $as_echo_n "checking for working GNU getopt function... " >&6; }
20578 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20579 $as_echo_n "(cached) " >&6
20580 else
20581 if test "$cross_compiling" = yes; then
20582 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20583 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20584 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20585 $as_echo_n "(cached) " >&6
20586 else
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h. */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 #include <getopt.h>
20596 main ()
20598 #ifndef getopt_clip
20599 (void) getopt_clip;
20600 #endif
20603 return 0;
20605 _ACEOF
20606 rm -f conftest.$ac_objext
20607 if { (ac_try="$ac_compile"
20608 case "(($ac_try" in
20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610 *) ac_try_echo=$ac_try;;
20611 esac
20612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20613 $as_echo "$ac_try_echo") >&5
20614 (eval "$ac_compile") 2>conftest.er1
20615 ac_status=$?
20616 grep -v '^ *+' conftest.er1 >conftest.err
20617 rm -f conftest.er1
20618 cat conftest.err >&5
20619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } && {
20621 test -z "$ac_c_werror_flag" ||
20622 test ! -s conftest.err
20623 } && test -s conftest.$ac_objext; then
20624 ac_cv_have_decl_getopt_clip=yes
20625 else
20626 $as_echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20629 ac_cv_have_decl_getopt_clip=no
20632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20634 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20635 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20636 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
20637 gl_cv_func_gnu_getopt=no
20638 else
20639 gl_cv_func_gnu_getopt=yes
20642 else
20643 cat >conftest.$ac_ext <<_ACEOF
20644 /* confdefs.h. */
20645 _ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h. */
20649 #include <getopt.h>
20651 main ()
20654 char *myargv[3];
20655 myargv[0] = "conftest";
20656 myargv[1] = "-+";
20657 myargv[2] = 0;
20658 return getopt (2, myargv, "+a") != '?';
20661 return 0;
20663 _ACEOF
20664 rm -f conftest$ac_exeext
20665 if { (ac_try="$ac_link"
20666 case "(($ac_try" in
20667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668 *) ac_try_echo=$ac_try;;
20669 esac
20670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20671 $as_echo "$ac_try_echo") >&5
20672 (eval "$ac_link") 2>&5
20673 ac_status=$?
20674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20676 { (case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20679 esac
20680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20681 $as_echo "$ac_try_echo") >&5
20682 (eval "$ac_try") 2>&5
20683 ac_status=$?
20684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); }; }; then
20686 gl_cv_func_gnu_getopt=yes
20687 else
20688 $as_echo "$as_me: program exited with status $ac_status" >&5
20689 $as_echo "$as_me: failed program was:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20692 ( exit $ac_status )
20693 gl_cv_func_gnu_getopt=no
20695 rm -rf conftest.dSYM
20696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20701 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20702 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20703 if test "$gl_cv_func_gnu_getopt" = "no"; then
20704 GETOPT_H=getopt.h
20710 if test -n "$GETOPT_H"; then
20713 GETOPT_H=getopt.h
20715 cat >>confdefs.h <<\_ACEOF
20716 #define __GETOPT_PREFIX rpl_
20717 _ACEOF
20722 GETOPTOBJS='getopt.o getopt1.o'
20729 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20730 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20731 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20732 $as_echo_n "(cached) " >&6
20733 else
20734 # Use it with a single arg.
20735 cat >conftest.$ac_ext <<_ACEOF
20736 /* confdefs.h. */
20737 _ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h. */
20741 $ac_includes_default
20743 main ()
20745 getpgrp (0);
20747 return 0;
20749 _ACEOF
20750 rm -f conftest.$ac_objext
20751 if { (ac_try="$ac_compile"
20752 case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20755 esac
20756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20757 $as_echo "$ac_try_echo") >&5
20758 (eval "$ac_compile") 2>conftest.er1
20759 ac_status=$?
20760 grep -v '^ *+' conftest.er1 >conftest.err
20761 rm -f conftest.er1
20762 cat conftest.err >&5
20763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } && {
20765 test -z "$ac_c_werror_flag" ||
20766 test ! -s conftest.err
20767 } && test -s conftest.$ac_objext; then
20768 ac_cv_func_getpgrp_void=no
20769 else
20770 $as_echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20773 ac_cv_func_getpgrp_void=yes
20776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20779 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20780 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20781 if test $ac_cv_func_getpgrp_void = yes; then
20783 cat >>confdefs.h <<\_ACEOF
20784 #define GETPGRP_VOID 1
20785 _ACEOF
20791 for ac_func in strftime
20793 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20794 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20795 $as_echo_n "checking for $ac_func... " >&6; }
20796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20797 $as_echo_n "(cached) " >&6
20798 else
20799 cat >conftest.$ac_ext <<_ACEOF
20800 /* confdefs.h. */
20801 _ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h. */
20805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20807 #define $ac_func innocuous_$ac_func
20809 /* System header to define __stub macros and hopefully few prototypes,
20810 which can conflict with char $ac_func (); below.
20811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20812 <limits.h> exists even on freestanding compilers. */
20814 #ifdef __STDC__
20815 # include <limits.h>
20816 #else
20817 # include <assert.h>
20818 #endif
20820 #undef $ac_func
20822 /* Override any GCC internal prototype to avoid an error.
20823 Use char because int might match the return type of a GCC
20824 builtin and then its argument prototype would still apply. */
20825 #ifdef __cplusplus
20826 extern "C"
20827 #endif
20828 char $ac_func ();
20829 /* The GNU C library defines this for functions which it implements
20830 to always fail with ENOSYS. Some functions are actually named
20831 something starting with __ and the normal name is an alias. */
20832 #if defined __stub_$ac_func || defined __stub___$ac_func
20833 choke me
20834 #endif
20837 main ()
20839 return $ac_func ();
20841 return 0;
20843 _ACEOF
20844 rm -f conftest.$ac_objext conftest$ac_exeext
20845 if { (ac_try="$ac_link"
20846 case "(($ac_try" in
20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848 *) ac_try_echo=$ac_try;;
20849 esac
20850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20851 $as_echo "$ac_try_echo") >&5
20852 (eval "$ac_link") 2>conftest.er1
20853 ac_status=$?
20854 grep -v '^ *+' conftest.er1 >conftest.err
20855 rm -f conftest.er1
20856 cat conftest.err >&5
20857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } && {
20859 test -z "$ac_c_werror_flag" ||
20860 test ! -s conftest.err
20861 } && test -s conftest$ac_exeext && {
20862 test "$cross_compiling" = yes ||
20863 $as_test_x conftest$ac_exeext
20864 }; then
20865 eval "$as_ac_var=yes"
20866 else
20867 $as_echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20870 eval "$as_ac_var=no"
20873 rm -rf conftest.dSYM
20874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20875 conftest$ac_exeext conftest.$ac_ext
20877 ac_res=`eval 'as_val=${'$as_ac_var'}
20878 $as_echo "$as_val"'`
20879 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20880 $as_echo "$ac_res" >&6; }
20881 as_val=`eval 'as_val=${'$as_ac_var'}
20882 $as_echo "$as_val"'`
20883 if test "x$as_val" = x""yes; then
20884 cat >>confdefs.h <<_ACEOF
20885 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20886 _ACEOF
20888 else
20889 # strftime is in -lintl on SCO UNIX.
20890 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20891 $as_echo_n "checking for strftime in -lintl... " >&6; }
20892 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20893 $as_echo_n "(cached) " >&6
20894 else
20895 ac_check_lib_save_LIBS=$LIBS
20896 LIBS="-lintl $LIBS"
20897 cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h. */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20904 /* Override any GCC internal prototype to avoid an error.
20905 Use char because int might match the return type of a GCC
20906 builtin and then its argument prototype would still apply. */
20907 #ifdef __cplusplus
20908 extern "C"
20909 #endif
20910 char strftime ();
20912 main ()
20914 return strftime ();
20916 return 0;
20918 _ACEOF
20919 rm -f conftest.$ac_objext conftest$ac_exeext
20920 if { (ac_try="$ac_link"
20921 case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20924 esac
20925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20926 $as_echo "$ac_try_echo") >&5
20927 (eval "$ac_link") 2>conftest.er1
20928 ac_status=$?
20929 grep -v '^ *+' conftest.er1 >conftest.err
20930 rm -f conftest.er1
20931 cat conftest.err >&5
20932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } && {
20934 test -z "$ac_c_werror_flag" ||
20935 test ! -s conftest.err
20936 } && test -s conftest$ac_exeext && {
20937 test "$cross_compiling" = yes ||
20938 $as_test_x conftest$ac_exeext
20939 }; then
20940 ac_cv_lib_intl_strftime=yes
20941 else
20942 $as_echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20945 ac_cv_lib_intl_strftime=no
20948 rm -rf conftest.dSYM
20949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20950 conftest$ac_exeext conftest.$ac_ext
20951 LIBS=$ac_check_lib_save_LIBS
20953 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20954 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20955 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
20956 cat >>confdefs.h <<\_ACEOF
20957 #define HAVE_STRFTIME 1
20958 _ACEOF
20960 LIBS="-lintl $LIBS"
20964 done
20967 # UNIX98 PTYs.
20969 for ac_func in grantpt
20971 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20972 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20973 $as_echo_n "checking for $ac_func... " >&6; }
20974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20975 $as_echo_n "(cached) " >&6
20976 else
20977 cat >conftest.$ac_ext <<_ACEOF
20978 /* confdefs.h. */
20979 _ACEOF
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h. */
20983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20985 #define $ac_func innocuous_$ac_func
20987 /* System header to define __stub macros and hopefully few prototypes,
20988 which can conflict with char $ac_func (); below.
20989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20990 <limits.h> exists even on freestanding compilers. */
20992 #ifdef __STDC__
20993 # include <limits.h>
20994 #else
20995 # include <assert.h>
20996 #endif
20998 #undef $ac_func
21000 /* Override any GCC internal prototype to avoid an error.
21001 Use char because int might match the return type of a GCC
21002 builtin and then its argument prototype would still apply. */
21003 #ifdef __cplusplus
21004 extern "C"
21005 #endif
21006 char $ac_func ();
21007 /* The GNU C library defines this for functions which it implements
21008 to always fail with ENOSYS. Some functions are actually named
21009 something starting with __ and the normal name is an alias. */
21010 #if defined __stub_$ac_func || defined __stub___$ac_func
21011 choke me
21012 #endif
21015 main ()
21017 return $ac_func ();
21019 return 0;
21021 _ACEOF
21022 rm -f conftest.$ac_objext conftest$ac_exeext
21023 if { (ac_try="$ac_link"
21024 case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21027 esac
21028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21029 $as_echo "$ac_try_echo") >&5
21030 (eval "$ac_link") 2>conftest.er1
21031 ac_status=$?
21032 grep -v '^ *+' conftest.er1 >conftest.err
21033 rm -f conftest.er1
21034 cat conftest.err >&5
21035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); } && {
21037 test -z "$ac_c_werror_flag" ||
21038 test ! -s conftest.err
21039 } && test -s conftest$ac_exeext && {
21040 test "$cross_compiling" = yes ||
21041 $as_test_x conftest$ac_exeext
21042 }; then
21043 eval "$as_ac_var=yes"
21044 else
21045 $as_echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21048 eval "$as_ac_var=no"
21051 rm -rf conftest.dSYM
21052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21053 conftest$ac_exeext conftest.$ac_ext
21055 ac_res=`eval 'as_val=${'$as_ac_var'}
21056 $as_echo "$as_val"'`
21057 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21058 $as_echo "$ac_res" >&6; }
21059 as_val=`eval 'as_val=${'$as_ac_var'}
21060 $as_echo "$as_val"'`
21061 if test "x$as_val" = x""yes; then
21062 cat >>confdefs.h <<_ACEOF
21063 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21064 _ACEOF
21067 done
21070 # PTY-related GNU extensions.
21072 for ac_func in getpt
21074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21075 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21076 $as_echo_n "checking for $ac_func... " >&6; }
21077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21078 $as_echo_n "(cached) " >&6
21079 else
21080 cat >conftest.$ac_ext <<_ACEOF
21081 /* confdefs.h. */
21082 _ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21088 #define $ac_func innocuous_$ac_func
21090 /* System header to define __stub macros and hopefully few prototypes,
21091 which can conflict with char $ac_func (); below.
21092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21093 <limits.h> exists even on freestanding compilers. */
21095 #ifdef __STDC__
21096 # include <limits.h>
21097 #else
21098 # include <assert.h>
21099 #endif
21101 #undef $ac_func
21103 /* Override any GCC internal prototype to avoid an error.
21104 Use char because int might match the return type of a GCC
21105 builtin and then its argument prototype would still apply. */
21106 #ifdef __cplusplus
21107 extern "C"
21108 #endif
21109 char $ac_func ();
21110 /* The GNU C library defines this for functions which it implements
21111 to always fail with ENOSYS. Some functions are actually named
21112 something starting with __ and the normal name is an alias. */
21113 #if defined __stub_$ac_func || defined __stub___$ac_func
21114 choke me
21115 #endif
21118 main ()
21120 return $ac_func ();
21122 return 0;
21124 _ACEOF
21125 rm -f conftest.$ac_objext conftest$ac_exeext
21126 if { (ac_try="$ac_link"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21130 esac
21131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21132 $as_echo "$ac_try_echo") >&5
21133 (eval "$ac_link") 2>conftest.er1
21134 ac_status=$?
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
21138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } && {
21140 test -z "$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21142 } && test -s conftest$ac_exeext && {
21143 test "$cross_compiling" = yes ||
21144 $as_test_x conftest$ac_exeext
21145 }; then
21146 eval "$as_ac_var=yes"
21147 else
21148 $as_echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21151 eval "$as_ac_var=no"
21154 rm -rf conftest.dSYM
21155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21156 conftest$ac_exeext conftest.$ac_ext
21158 ac_res=`eval 'as_val=${'$as_ac_var'}
21159 $as_echo "$as_val"'`
21160 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21161 $as_echo "$ac_res" >&6; }
21162 as_val=`eval 'as_val=${'$as_ac_var'}
21163 $as_echo "$as_val"'`
21164 if test "x$as_val" = x""yes; then
21165 cat >>confdefs.h <<_ACEOF
21166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21167 _ACEOF
21170 done
21173 # Check this now, so that we will NOT find the above functions in ncurses.
21174 # That is because we have not set up to link ncurses in lib-src.
21175 # It's better to believe a function is not available
21176 # than to expect to find it in ncurses.
21177 # Also we need tputs and frieds to be able to build at all.
21178 have_tputs_et_al=true
21179 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21180 $as_echo_n "checking for library containing tputs... " >&6; }
21181 if test "${ac_cv_search_tputs+set}" = set; then
21182 $as_echo_n "(cached) " >&6
21183 else
21184 ac_func_search_save_LIBS=$LIBS
21185 cat >conftest.$ac_ext <<_ACEOF
21186 /* confdefs.h. */
21187 _ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21192 /* Override any GCC internal prototype to avoid an error.
21193 Use char because int might match the return type of a GCC
21194 builtin and then its argument prototype would still apply. */
21195 #ifdef __cplusplus
21196 extern "C"
21197 #endif
21198 char tputs ();
21200 main ()
21202 return tputs ();
21204 return 0;
21206 _ACEOF
21207 for ac_lib in '' ncurses terminfo termcap; do
21208 if test -z "$ac_lib"; then
21209 ac_res="none required"
21210 else
21211 ac_res=-l$ac_lib
21212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21214 rm -f conftest.$ac_objext conftest$ac_exeext
21215 if { (ac_try="$ac_link"
21216 case "(($ac_try" in
21217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218 *) ac_try_echo=$ac_try;;
21219 esac
21220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21221 $as_echo "$ac_try_echo") >&5
21222 (eval "$ac_link") 2>conftest.er1
21223 ac_status=$?
21224 grep -v '^ *+' conftest.er1 >conftest.err
21225 rm -f conftest.er1
21226 cat conftest.err >&5
21227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); } && {
21229 test -z "$ac_c_werror_flag" ||
21230 test ! -s conftest.err
21231 } && test -s conftest$ac_exeext && {
21232 test "$cross_compiling" = yes ||
21233 $as_test_x conftest$ac_exeext
21234 }; then
21235 ac_cv_search_tputs=$ac_res
21236 else
21237 $as_echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21243 rm -rf conftest.dSYM
21244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21245 conftest$ac_exeext
21246 if test "${ac_cv_search_tputs+set}" = set; then
21247 break
21249 done
21250 if test "${ac_cv_search_tputs+set}" = set; then
21252 else
21253 ac_cv_search_tputs=no
21255 rm conftest.$ac_ext
21256 LIBS=$ac_func_search_save_LIBS
21258 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21259 $as_echo "$ac_cv_search_tputs" >&6; }
21260 ac_res=$ac_cv_search_tputs
21261 if test "$ac_res" != no; then
21262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21264 else
21265 have_tputs_et_al=false
21268 if test "$have_tputs_et_al" != true; then
21269 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21270 Maybe some development libraries/packages are missing? Try installing
21271 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21272 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21273 Maybe some development libraries/packages are missing? Try installing
21274 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21275 { (exit 1); exit 1; }; }
21277 # Must define this when any termcap library is found.
21279 cat >>confdefs.h <<\_ACEOF
21280 #define HAVE_LIBNCURSES 1
21281 _ACEOF
21284 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21286 resolv=no
21287 cat >conftest.$ac_ext <<_ACEOF
21288 /* confdefs.h. */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21293 #include <netinet/in.h>
21294 #include <arpa/nameser.h>
21295 #include <resolv.h>
21297 main ()
21299 return res_init();
21301 return 0;
21303 _ACEOF
21304 rm -f conftest.$ac_objext conftest$ac_exeext
21305 if { (ac_try="$ac_link"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21309 esac
21310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21311 $as_echo "$ac_try_echo") >&5
21312 (eval "$ac_link") 2>conftest.er1
21313 ac_status=$?
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
21317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } && {
21319 test -z "$ac_c_werror_flag" ||
21320 test ! -s conftest.err
21321 } && test -s conftest$ac_exeext && {
21322 test "$cross_compiling" = yes ||
21323 $as_test_x conftest$ac_exeext
21324 }; then
21325 have_res_init=yes
21326 else
21327 $as_echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 have_res_init=no
21333 rm -rf conftest.dSYM
21334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21335 conftest$ac_exeext conftest.$ac_ext
21336 if test "$have_res_init" = no; then
21337 OLIBS="$LIBS"
21338 LIBS="$LIBS -lresolv"
21339 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21340 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21341 cat >conftest.$ac_ext <<_ACEOF
21342 /* confdefs.h. */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21347 #include <netinet/in.h>
21348 #include <arpa/nameser.h>
21349 #include <resolv.h>
21351 main ()
21353 return res_init();
21355 return 0;
21357 _ACEOF
21358 rm -f conftest.$ac_objext conftest$ac_exeext
21359 if { (ac_try="$ac_link"
21360 case "(($ac_try" in
21361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362 *) ac_try_echo=$ac_try;;
21363 esac
21364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21365 $as_echo "$ac_try_echo") >&5
21366 (eval "$ac_link") 2>conftest.er1
21367 ac_status=$?
21368 grep -v '^ *+' conftest.er1 >conftest.err
21369 rm -f conftest.er1
21370 cat conftest.err >&5
21371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } && {
21373 test -z "$ac_c_werror_flag" ||
21374 test ! -s conftest.err
21375 } && test -s conftest$ac_exeext && {
21376 test "$cross_compiling" = yes ||
21377 $as_test_x conftest$ac_exeext
21378 }; then
21379 have_res_init=yes
21380 else
21381 $as_echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21384 have_res_init=no
21387 rm -rf conftest.dSYM
21388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21389 conftest$ac_exeext conftest.$ac_ext
21390 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21391 $as_echo "$have_res_init" >&6; }
21392 if test "$have_res_init" = yes ; then
21393 resolv=yes
21395 LIBS="$OLIBS"
21398 if test "$have_res_init" = yes; then
21400 cat >>confdefs.h <<\_ACEOF
21401 #define HAVE_RES_INIT 1
21402 _ACEOF
21406 # Do we need the Hesiod library to provide the support routines?
21407 LIBHESIOD=
21408 if test "$with_hesiod" != no ; then
21409 # Don't set $LIBS here -- see comments above. FIXME which comments?
21410 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21411 $as_echo_n "checking for res_send... " >&6; }
21412 if test "${ac_cv_func_res_send+set}" = set; then
21413 $as_echo_n "(cached) " >&6
21414 else
21415 cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h. */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21423 #define res_send innocuous_res_send
21425 /* System header to define __stub macros and hopefully few prototypes,
21426 which can conflict with char res_send (); below.
21427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21428 <limits.h> exists even on freestanding compilers. */
21430 #ifdef __STDC__
21431 # include <limits.h>
21432 #else
21433 # include <assert.h>
21434 #endif
21436 #undef res_send
21438 /* Override any GCC internal prototype to avoid an error.
21439 Use char because int might match the return type of a GCC
21440 builtin and then its argument prototype would still apply. */
21441 #ifdef __cplusplus
21442 extern "C"
21443 #endif
21444 char res_send ();
21445 /* The GNU C library defines this for functions which it implements
21446 to always fail with ENOSYS. Some functions are actually named
21447 something starting with __ and the normal name is an alias. */
21448 #if defined __stub_res_send || defined __stub___res_send
21449 choke me
21450 #endif
21453 main ()
21455 return res_send ();
21457 return 0;
21459 _ACEOF
21460 rm -f conftest.$ac_objext conftest$ac_exeext
21461 if { (ac_try="$ac_link"
21462 case "(($ac_try" in
21463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464 *) ac_try_echo=$ac_try;;
21465 esac
21466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21467 $as_echo "$ac_try_echo") >&5
21468 (eval "$ac_link") 2>conftest.er1
21469 ac_status=$?
21470 grep -v '^ *+' conftest.er1 >conftest.err
21471 rm -f conftest.er1
21472 cat conftest.err >&5
21473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } && {
21475 test -z "$ac_c_werror_flag" ||
21476 test ! -s conftest.err
21477 } && test -s conftest$ac_exeext && {
21478 test "$cross_compiling" = yes ||
21479 $as_test_x conftest$ac_exeext
21480 }; then
21481 ac_cv_func_res_send=yes
21482 else
21483 $as_echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21486 ac_cv_func_res_send=no
21489 rm -rf conftest.dSYM
21490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21491 conftest$ac_exeext conftest.$ac_ext
21493 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21494 $as_echo "$ac_cv_func_res_send" >&6; }
21495 if test "x$ac_cv_func_res_send" = x""yes; then
21497 else
21498 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21499 $as_echo_n "checking for __res_send... " >&6; }
21500 if test "${ac_cv_func___res_send+set}" = set; then
21501 $as_echo_n "(cached) " >&6
21502 else
21503 cat >conftest.$ac_ext <<_ACEOF
21504 /* confdefs.h. */
21505 _ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21509 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21511 #define __res_send innocuous___res_send
21513 /* System header to define __stub macros and hopefully few prototypes,
21514 which can conflict with char __res_send (); below.
21515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21516 <limits.h> exists even on freestanding compilers. */
21518 #ifdef __STDC__
21519 # include <limits.h>
21520 #else
21521 # include <assert.h>
21522 #endif
21524 #undef __res_send
21526 /* Override any GCC internal prototype to avoid an error.
21527 Use char because int might match the return type of a GCC
21528 builtin and then its argument prototype would still apply. */
21529 #ifdef __cplusplus
21530 extern "C"
21531 #endif
21532 char __res_send ();
21533 /* The GNU C library defines this for functions which it implements
21534 to always fail with ENOSYS. Some functions are actually named
21535 something starting with __ and the normal name is an alias. */
21536 #if defined __stub___res_send || defined __stub_____res_send
21537 choke me
21538 #endif
21541 main ()
21543 return __res_send ();
21545 return 0;
21547 _ACEOF
21548 rm -f conftest.$ac_objext conftest$ac_exeext
21549 if { (ac_try="$ac_link"
21550 case "(($ac_try" in
21551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552 *) ac_try_echo=$ac_try;;
21553 esac
21554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21555 $as_echo "$ac_try_echo") >&5
21556 (eval "$ac_link") 2>conftest.er1
21557 ac_status=$?
21558 grep -v '^ *+' conftest.er1 >conftest.err
21559 rm -f conftest.er1
21560 cat conftest.err >&5
21561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); } && {
21563 test -z "$ac_c_werror_flag" ||
21564 test ! -s conftest.err
21565 } && test -s conftest$ac_exeext && {
21566 test "$cross_compiling" = yes ||
21567 $as_test_x conftest$ac_exeext
21568 }; then
21569 ac_cv_func___res_send=yes
21570 else
21571 $as_echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21574 ac_cv_func___res_send=no
21577 rm -rf conftest.dSYM
21578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21579 conftest$ac_exeext conftest.$ac_ext
21581 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21582 $as_echo "$ac_cv_func___res_send" >&6; }
21583 if test "x$ac_cv_func___res_send" = x""yes; then
21585 else
21586 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21587 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21588 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21589 $as_echo_n "(cached) " >&6
21590 else
21591 ac_check_lib_save_LIBS=$LIBS
21592 LIBS="-lresolv $LIBS"
21593 cat >conftest.$ac_ext <<_ACEOF
21594 /* confdefs.h. */
21595 _ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21600 /* Override any GCC internal prototype to avoid an error.
21601 Use char because int might match the return type of a GCC
21602 builtin and then its argument prototype would still apply. */
21603 #ifdef __cplusplus
21604 extern "C"
21605 #endif
21606 char res_send ();
21608 main ()
21610 return res_send ();
21612 return 0;
21614 _ACEOF
21615 rm -f conftest.$ac_objext conftest$ac_exeext
21616 if { (ac_try="$ac_link"
21617 case "(($ac_try" in
21618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619 *) ac_try_echo=$ac_try;;
21620 esac
21621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21622 $as_echo "$ac_try_echo") >&5
21623 (eval "$ac_link") 2>conftest.er1
21624 ac_status=$?
21625 grep -v '^ *+' conftest.er1 >conftest.err
21626 rm -f conftest.er1
21627 cat conftest.err >&5
21628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } && {
21630 test -z "$ac_c_werror_flag" ||
21631 test ! -s conftest.err
21632 } && test -s conftest$ac_exeext && {
21633 test "$cross_compiling" = yes ||
21634 $as_test_x conftest$ac_exeext
21635 }; then
21636 ac_cv_lib_resolv_res_send=yes
21637 else
21638 $as_echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21641 ac_cv_lib_resolv_res_send=no
21644 rm -rf conftest.dSYM
21645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21646 conftest$ac_exeext conftest.$ac_ext
21647 LIBS=$ac_check_lib_save_LIBS
21649 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21650 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21651 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then
21652 resolv=yes
21653 else
21654 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21655 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21656 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21657 $as_echo_n "(cached) " >&6
21658 else
21659 ac_check_lib_save_LIBS=$LIBS
21660 LIBS="-lresolv $LIBS"
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h. */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21668 /* Override any GCC internal prototype to avoid an error.
21669 Use char because int might match the return type of a GCC
21670 builtin and then its argument prototype would still apply. */
21671 #ifdef __cplusplus
21672 extern "C"
21673 #endif
21674 char __res_send ();
21676 main ()
21678 return __res_send ();
21680 return 0;
21682 _ACEOF
21683 rm -f conftest.$ac_objext conftest$ac_exeext
21684 if { (ac_try="$ac_link"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21688 esac
21689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21690 $as_echo "$ac_try_echo") >&5
21691 (eval "$ac_link") 2>conftest.er1
21692 ac_status=$?
21693 grep -v '^ *+' conftest.er1 >conftest.err
21694 rm -f conftest.er1
21695 cat conftest.err >&5
21696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } && {
21698 test -z "$ac_c_werror_flag" ||
21699 test ! -s conftest.err
21700 } && test -s conftest$ac_exeext && {
21701 test "$cross_compiling" = yes ||
21702 $as_test_x conftest$ac_exeext
21703 }; then
21704 ac_cv_lib_resolv___res_send=yes
21705 else
21706 $as_echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21709 ac_cv_lib_resolv___res_send=no
21712 rm -rf conftest.dSYM
21713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21714 conftest$ac_exeext conftest.$ac_ext
21715 LIBS=$ac_check_lib_save_LIBS
21717 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21718 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21719 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then
21720 resolv=yes
21729 if test "$resolv" = yes ; then
21730 RESOLVLIB=-lresolv
21731 else
21732 RESOLVLIB=
21734 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21735 $as_echo_n "checking for hes_getmailhost... " >&6; }
21736 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21737 $as_echo_n "(cached) " >&6
21738 else
21739 cat >conftest.$ac_ext <<_ACEOF
21740 /* confdefs.h. */
21741 _ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h. */
21745 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21747 #define hes_getmailhost innocuous_hes_getmailhost
21749 /* System header to define __stub macros and hopefully few prototypes,
21750 which can conflict with char hes_getmailhost (); below.
21751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21752 <limits.h> exists even on freestanding compilers. */
21754 #ifdef __STDC__
21755 # include <limits.h>
21756 #else
21757 # include <assert.h>
21758 #endif
21760 #undef hes_getmailhost
21762 /* Override any GCC internal prototype to avoid an error.
21763 Use char because int might match the return type of a GCC
21764 builtin and then its argument prototype would still apply. */
21765 #ifdef __cplusplus
21766 extern "C"
21767 #endif
21768 char hes_getmailhost ();
21769 /* The GNU C library defines this for functions which it implements
21770 to always fail with ENOSYS. Some functions are actually named
21771 something starting with __ and the normal name is an alias. */
21772 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21773 choke me
21774 #endif
21777 main ()
21779 return hes_getmailhost ();
21781 return 0;
21783 _ACEOF
21784 rm -f conftest.$ac_objext conftest$ac_exeext
21785 if { (ac_try="$ac_link"
21786 case "(($ac_try" in
21787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788 *) ac_try_echo=$ac_try;;
21789 esac
21790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21791 $as_echo "$ac_try_echo") >&5
21792 (eval "$ac_link") 2>conftest.er1
21793 ac_status=$?
21794 grep -v '^ *+' conftest.er1 >conftest.err
21795 rm -f conftest.er1
21796 cat conftest.err >&5
21797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } && {
21799 test -z "$ac_c_werror_flag" ||
21800 test ! -s conftest.err
21801 } && test -s conftest$ac_exeext && {
21802 test "$cross_compiling" = yes ||
21803 $as_test_x conftest$ac_exeext
21804 }; then
21805 ac_cv_func_hes_getmailhost=yes
21806 else
21807 $as_echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21810 ac_cv_func_hes_getmailhost=no
21813 rm -rf conftest.dSYM
21814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21815 conftest$ac_exeext conftest.$ac_ext
21817 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21818 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21819 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then
21821 else
21822 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21823 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21824 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21825 $as_echo_n "(cached) " >&6
21826 else
21827 ac_check_lib_save_LIBS=$LIBS
21828 LIBS="-lhesiod $RESOLVLIB $LIBS"
21829 cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h. */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21836 /* Override any GCC internal prototype to avoid an error.
21837 Use char because int might match the return type of a GCC
21838 builtin and then its argument prototype would still apply. */
21839 #ifdef __cplusplus
21840 extern "C"
21841 #endif
21842 char hes_getmailhost ();
21844 main ()
21846 return hes_getmailhost ();
21848 return 0;
21850 _ACEOF
21851 rm -f conftest.$ac_objext conftest$ac_exeext
21852 if { (ac_try="$ac_link"
21853 case "(($ac_try" in
21854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855 *) ac_try_echo=$ac_try;;
21856 esac
21857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21858 $as_echo "$ac_try_echo") >&5
21859 (eval "$ac_link") 2>conftest.er1
21860 ac_status=$?
21861 grep -v '^ *+' conftest.er1 >conftest.err
21862 rm -f conftest.er1
21863 cat conftest.err >&5
21864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } && {
21866 test -z "$ac_c_werror_flag" ||
21867 test ! -s conftest.err
21868 } && test -s conftest$ac_exeext && {
21869 test "$cross_compiling" = yes ||
21870 $as_test_x conftest$ac_exeext
21871 }; then
21872 ac_cv_lib_hesiod_hes_getmailhost=yes
21873 else
21874 $as_echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21877 ac_cv_lib_hesiod_hes_getmailhost=no
21880 rm -rf conftest.dSYM
21881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21882 conftest$ac_exeext conftest.$ac_ext
21883 LIBS=$ac_check_lib_save_LIBS
21885 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21886 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21887 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then
21888 hesiod=yes
21889 else
21896 if test x"$hesiod" = xyes; then
21898 cat >>confdefs.h <<\_ACEOF
21899 #define HAVE_LIBHESIOD 1
21900 _ACEOF
21902 LIBHESIOD=-lhesiod
21907 # Do we need libresolv (due to res_init or Hesiod)?
21908 if test "$resolv" = yes ; then
21910 cat >>confdefs.h <<\_ACEOF
21911 #define HAVE_LIBRESOLV 1
21912 _ACEOF
21914 LIBRESOLV=-lresolv
21915 else
21916 LIBRESOLV=
21920 # These tell us which Kerberos-related libraries to use.
21921 COM_ERRLIB=
21922 CRYPTOLIB=
21923 KRB5LIB=
21924 DESLIB=
21925 KRB4LIB=
21927 if test "${with_kerberos}" != no; then
21928 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21929 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21930 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21931 $as_echo_n "(cached) " >&6
21932 else
21933 ac_check_lib_save_LIBS=$LIBS
21934 LIBS="-lcom_err $LIBS"
21935 cat >conftest.$ac_ext <<_ACEOF
21936 /* confdefs.h. */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21942 /* Override any GCC internal prototype to avoid an error.
21943 Use char because int might match the return type of a GCC
21944 builtin and then its argument prototype would still apply. */
21945 #ifdef __cplusplus
21946 extern "C"
21947 #endif
21948 char com_err ();
21950 main ()
21952 return com_err ();
21954 return 0;
21956 _ACEOF
21957 rm -f conftest.$ac_objext conftest$ac_exeext
21958 if { (ac_try="$ac_link"
21959 case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21962 esac
21963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21964 $as_echo "$ac_try_echo") >&5
21965 (eval "$ac_link") 2>conftest.er1
21966 ac_status=$?
21967 grep -v '^ *+' conftest.er1 >conftest.err
21968 rm -f conftest.er1
21969 cat conftest.err >&5
21970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } && {
21972 test -z "$ac_c_werror_flag" ||
21973 test ! -s conftest.err
21974 } && test -s conftest$ac_exeext && {
21975 test "$cross_compiling" = yes ||
21976 $as_test_x conftest$ac_exeext
21977 }; then
21978 ac_cv_lib_com_err_com_err=yes
21979 else
21980 $as_echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21983 ac_cv_lib_com_err_com_err=no
21986 rm -rf conftest.dSYM
21987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21988 conftest$ac_exeext conftest.$ac_ext
21989 LIBS=$ac_check_lib_save_LIBS
21991 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21992 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21993 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then
21994 have_com_err=yes
21995 else
21996 have_com_err=no
21999 if test $have_com_err = yes; then
22000 COM_ERRLIB=-lcom_err
22001 LIBS="$COM_ERRLIB $LIBS"
22003 cat >>confdefs.h <<\_ACEOF
22004 #define HAVE_LIBCOM_ERR 1
22005 _ACEOF
22008 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22009 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22010 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22011 $as_echo_n "(cached) " >&6
22012 else
22013 ac_check_lib_save_LIBS=$LIBS
22014 LIBS="-lcrypto $LIBS"
22015 cat >conftest.$ac_ext <<_ACEOF
22016 /* confdefs.h. */
22017 _ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h. */
22022 /* Override any GCC internal prototype to avoid an error.
22023 Use char because int might match the return type of a GCC
22024 builtin and then its argument prototype would still apply. */
22025 #ifdef __cplusplus
22026 extern "C"
22027 #endif
22028 char mit_des_cbc_encrypt ();
22030 main ()
22032 return mit_des_cbc_encrypt ();
22034 return 0;
22036 _ACEOF
22037 rm -f conftest.$ac_objext conftest$ac_exeext
22038 if { (ac_try="$ac_link"
22039 case "(($ac_try" in
22040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041 *) ac_try_echo=$ac_try;;
22042 esac
22043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22044 $as_echo "$ac_try_echo") >&5
22045 (eval "$ac_link") 2>conftest.er1
22046 ac_status=$?
22047 grep -v '^ *+' conftest.er1 >conftest.err
22048 rm -f conftest.er1
22049 cat conftest.err >&5
22050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } && {
22052 test -z "$ac_c_werror_flag" ||
22053 test ! -s conftest.err
22054 } && test -s conftest$ac_exeext && {
22055 test "$cross_compiling" = yes ||
22056 $as_test_x conftest$ac_exeext
22057 }; then
22058 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22059 else
22060 $as_echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22063 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22066 rm -rf conftest.dSYM
22067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22068 conftest$ac_exeext conftest.$ac_ext
22069 LIBS=$ac_check_lib_save_LIBS
22071 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22072 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22073 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then
22074 have_crypto=yes
22075 else
22076 have_crypto=no
22079 if test $have_crypto = yes; then
22080 CRYPTOLIB=-lcrypto
22081 LIBS="$CRYPTOLIB $LIBS"
22083 cat >>confdefs.h <<\_ACEOF
22084 #define HAVE_LIBCRYPTO 1
22085 _ACEOF
22088 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22089 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22090 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22091 $as_echo_n "(cached) " >&6
22092 else
22093 ac_check_lib_save_LIBS=$LIBS
22094 LIBS="-lk5crypto $LIBS"
22095 cat >conftest.$ac_ext <<_ACEOF
22096 /* confdefs.h. */
22097 _ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h. */
22102 /* Override any GCC internal prototype to avoid an error.
22103 Use char because int might match the return type of a GCC
22104 builtin and then its argument prototype would still apply. */
22105 #ifdef __cplusplus
22106 extern "C"
22107 #endif
22108 char mit_des_cbc_encrypt ();
22110 main ()
22112 return mit_des_cbc_encrypt ();
22114 return 0;
22116 _ACEOF
22117 rm -f conftest.$ac_objext conftest$ac_exeext
22118 if { (ac_try="$ac_link"
22119 case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22122 esac
22123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22124 $as_echo "$ac_try_echo") >&5
22125 (eval "$ac_link") 2>conftest.er1
22126 ac_status=$?
22127 grep -v '^ *+' conftest.er1 >conftest.err
22128 rm -f conftest.er1
22129 cat conftest.err >&5
22130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); } && {
22132 test -z "$ac_c_werror_flag" ||
22133 test ! -s conftest.err
22134 } && test -s conftest$ac_exeext && {
22135 test "$cross_compiling" = yes ||
22136 $as_test_x conftest$ac_exeext
22137 }; then
22138 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22139 else
22140 $as_echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22143 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22146 rm -rf conftest.dSYM
22147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22148 conftest$ac_exeext conftest.$ac_ext
22149 LIBS=$ac_check_lib_save_LIBS
22151 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22152 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22153 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then
22154 have_k5crypto=yes
22155 else
22156 have_k5crypto=no
22159 if test $have_k5crypto = yes; then
22160 CRYPTOLIB=-lk5crypto
22161 LIBS="$CRYPTOLIB $LIBS"
22163 cat >>confdefs.h <<\_ACEOF
22164 #define HAVE_LIBK5CRYPTO 1
22165 _ACEOF
22168 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22169 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22170 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22171 $as_echo_n "(cached) " >&6
22172 else
22173 ac_check_lib_save_LIBS=$LIBS
22174 LIBS="-lkrb5 $LIBS"
22175 cat >conftest.$ac_ext <<_ACEOF
22176 /* confdefs.h. */
22177 _ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22182 /* Override any GCC internal prototype to avoid an error.
22183 Use char because int might match the return type of a GCC
22184 builtin and then its argument prototype would still apply. */
22185 #ifdef __cplusplus
22186 extern "C"
22187 #endif
22188 char krb5_init_context ();
22190 main ()
22192 return krb5_init_context ();
22194 return 0;
22196 _ACEOF
22197 rm -f conftest.$ac_objext conftest$ac_exeext
22198 if { (ac_try="$ac_link"
22199 case "(($ac_try" in
22200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201 *) ac_try_echo=$ac_try;;
22202 esac
22203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22204 $as_echo "$ac_try_echo") >&5
22205 (eval "$ac_link") 2>conftest.er1
22206 ac_status=$?
22207 grep -v '^ *+' conftest.er1 >conftest.err
22208 rm -f conftest.er1
22209 cat conftest.err >&5
22210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } && {
22212 test -z "$ac_c_werror_flag" ||
22213 test ! -s conftest.err
22214 } && test -s conftest$ac_exeext && {
22215 test "$cross_compiling" = yes ||
22216 $as_test_x conftest$ac_exeext
22217 }; then
22218 ac_cv_lib_krb5_krb5_init_context=yes
22219 else
22220 $as_echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22223 ac_cv_lib_krb5_krb5_init_context=no
22226 rm -rf conftest.dSYM
22227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22228 conftest$ac_exeext conftest.$ac_ext
22229 LIBS=$ac_check_lib_save_LIBS
22231 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22232 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22233 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then
22234 have_krb5=yes
22235 else
22236 have_krb5=no
22239 if test $have_krb5=yes; then
22240 KRB5LIB=-lkrb5
22241 LIBS="$KRB5LIB $LIBS"
22243 cat >>confdefs.h <<\_ACEOF
22244 #define HAVE_LIBKRB5 1
22245 _ACEOF
22248 if test "${with_kerberos5}" = no; then
22249 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22250 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22251 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22252 $as_echo_n "(cached) " >&6
22253 else
22254 ac_check_lib_save_LIBS=$LIBS
22255 LIBS="-ldes425 $LIBS"
22256 cat >conftest.$ac_ext <<_ACEOF
22257 /* confdefs.h. */
22258 _ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h. */
22263 /* Override any GCC internal prototype to avoid an error.
22264 Use char because int might match the return type of a GCC
22265 builtin and then its argument prototype would still apply. */
22266 #ifdef __cplusplus
22267 extern "C"
22268 #endif
22269 char des_cbc_encrypt ();
22271 main ()
22273 return des_cbc_encrypt ();
22275 return 0;
22277 _ACEOF
22278 rm -f conftest.$ac_objext conftest$ac_exeext
22279 if { (ac_try="$ac_link"
22280 case "(($ac_try" in
22281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282 *) ac_try_echo=$ac_try;;
22283 esac
22284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22285 $as_echo "$ac_try_echo") >&5
22286 (eval "$ac_link") 2>conftest.er1
22287 ac_status=$?
22288 grep -v '^ *+' conftest.er1 >conftest.err
22289 rm -f conftest.er1
22290 cat conftest.err >&5
22291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); } && {
22293 test -z "$ac_c_werror_flag" ||
22294 test ! -s conftest.err
22295 } && test -s conftest$ac_exeext && {
22296 test "$cross_compiling" = yes ||
22297 $as_test_x conftest$ac_exeext
22298 }; then
22299 ac_cv_lib_des425_des_cbc_encrypt=yes
22300 else
22301 $as_echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22304 ac_cv_lib_des425_des_cbc_encrypt=no
22307 rm -rf conftest.dSYM
22308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22309 conftest$ac_exeext conftest.$ac_ext
22310 LIBS=$ac_check_lib_save_LIBS
22312 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22313 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22314 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then
22315 have_des425=yes
22316 else
22317 have_des425=no
22320 if test $have_des425 = yes; then
22321 DESLIB=-ldes425
22322 LIBS="$DESLIB $LIBS"
22324 cat >>confdefs.h <<\_ACEOF
22325 #define HAVE_LIBDES425 1
22326 _ACEOF
22328 else
22329 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22330 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22331 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22332 $as_echo_n "(cached) " >&6
22333 else
22334 ac_check_lib_save_LIBS=$LIBS
22335 LIBS="-ldes $LIBS"
22336 cat >conftest.$ac_ext <<_ACEOF
22337 /* confdefs.h. */
22338 _ACEOF
22339 cat confdefs.h >>conftest.$ac_ext
22340 cat >>conftest.$ac_ext <<_ACEOF
22341 /* end confdefs.h. */
22343 /* Override any GCC internal prototype to avoid an error.
22344 Use char because int might match the return type of a GCC
22345 builtin and then its argument prototype would still apply. */
22346 #ifdef __cplusplus
22347 extern "C"
22348 #endif
22349 char des_cbc_encrypt ();
22351 main ()
22353 return des_cbc_encrypt ();
22355 return 0;
22357 _ACEOF
22358 rm -f conftest.$ac_objext conftest$ac_exeext
22359 if { (ac_try="$ac_link"
22360 case "(($ac_try" in
22361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22362 *) ac_try_echo=$ac_try;;
22363 esac
22364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22365 $as_echo "$ac_try_echo") >&5
22366 (eval "$ac_link") 2>conftest.er1
22367 ac_status=$?
22368 grep -v '^ *+' conftest.er1 >conftest.err
22369 rm -f conftest.er1
22370 cat conftest.err >&5
22371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); } && {
22373 test -z "$ac_c_werror_flag" ||
22374 test ! -s conftest.err
22375 } && test -s conftest$ac_exeext && {
22376 test "$cross_compiling" = yes ||
22377 $as_test_x conftest$ac_exeext
22378 }; then
22379 ac_cv_lib_des_des_cbc_encrypt=yes
22380 else
22381 $as_echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22384 ac_cv_lib_des_des_cbc_encrypt=no
22387 rm -rf conftest.dSYM
22388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22389 conftest$ac_exeext conftest.$ac_ext
22390 LIBS=$ac_check_lib_save_LIBS
22392 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22393 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22394 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then
22395 have_des=yes
22396 else
22397 have_des=no
22400 if test $have_des = yes; then
22401 DESLIB=-ldes
22402 LIBS="$DESLIB $LIBS"
22404 cat >>confdefs.h <<\_ACEOF
22405 #define HAVE_LIBDES 1
22406 _ACEOF
22410 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22411 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22412 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22413 $as_echo_n "(cached) " >&6
22414 else
22415 ac_check_lib_save_LIBS=$LIBS
22416 LIBS="-lkrb4 $LIBS"
22417 cat >conftest.$ac_ext <<_ACEOF
22418 /* confdefs.h. */
22419 _ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22424 /* Override any GCC internal prototype to avoid an error.
22425 Use char because int might match the return type of a GCC
22426 builtin and then its argument prototype would still apply. */
22427 #ifdef __cplusplus
22428 extern "C"
22429 #endif
22430 char krb_get_cred ();
22432 main ()
22434 return krb_get_cred ();
22436 return 0;
22438 _ACEOF
22439 rm -f conftest.$ac_objext conftest$ac_exeext
22440 if { (ac_try="$ac_link"
22441 case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22444 esac
22445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22446 $as_echo "$ac_try_echo") >&5
22447 (eval "$ac_link") 2>conftest.er1
22448 ac_status=$?
22449 grep -v '^ *+' conftest.er1 >conftest.err
22450 rm -f conftest.er1
22451 cat conftest.err >&5
22452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); } && {
22454 test -z "$ac_c_werror_flag" ||
22455 test ! -s conftest.err
22456 } && test -s conftest$ac_exeext && {
22457 test "$cross_compiling" = yes ||
22458 $as_test_x conftest$ac_exeext
22459 }; then
22460 ac_cv_lib_krb4_krb_get_cred=yes
22461 else
22462 $as_echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22465 ac_cv_lib_krb4_krb_get_cred=no
22468 rm -rf conftest.dSYM
22469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22470 conftest$ac_exeext conftest.$ac_ext
22471 LIBS=$ac_check_lib_save_LIBS
22473 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22474 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22475 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then
22476 have_krb4=yes
22477 else
22478 have_krb4=no
22481 if test $have_krb4 = yes; then
22482 KRB4LIB=-lkrb4
22483 LIBS="$KRB4LIB $LIBS"
22485 cat >>confdefs.h <<\_ACEOF
22486 #define HAVE_LIBKRB4 1
22487 _ACEOF
22489 else
22490 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22491 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22492 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22493 $as_echo_n "(cached) " >&6
22494 else
22495 ac_check_lib_save_LIBS=$LIBS
22496 LIBS="-lkrb $LIBS"
22497 cat >conftest.$ac_ext <<_ACEOF
22498 /* confdefs.h. */
22499 _ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22504 /* Override any GCC internal prototype to avoid an error.
22505 Use char because int might match the return type of a GCC
22506 builtin and then its argument prototype would still apply. */
22507 #ifdef __cplusplus
22508 extern "C"
22509 #endif
22510 char krb_get_cred ();
22512 main ()
22514 return krb_get_cred ();
22516 return 0;
22518 _ACEOF
22519 rm -f conftest.$ac_objext conftest$ac_exeext
22520 if { (ac_try="$ac_link"
22521 case "(($ac_try" in
22522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523 *) ac_try_echo=$ac_try;;
22524 esac
22525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22526 $as_echo "$ac_try_echo") >&5
22527 (eval "$ac_link") 2>conftest.er1
22528 ac_status=$?
22529 grep -v '^ *+' conftest.er1 >conftest.err
22530 rm -f conftest.er1
22531 cat conftest.err >&5
22532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); } && {
22534 test -z "$ac_c_werror_flag" ||
22535 test ! -s conftest.err
22536 } && test -s conftest$ac_exeext && {
22537 test "$cross_compiling" = yes ||
22538 $as_test_x conftest$ac_exeext
22539 }; then
22540 ac_cv_lib_krb_krb_get_cred=yes
22541 else
22542 $as_echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22545 ac_cv_lib_krb_krb_get_cred=no
22548 rm -rf conftest.dSYM
22549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22550 conftest$ac_exeext conftest.$ac_ext
22551 LIBS=$ac_check_lib_save_LIBS
22553 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22554 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22555 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then
22556 have_krb=yes
22557 else
22558 have_krb=no
22561 if test $have_krb = yes; then
22562 KRB4LIB=-lkrb
22563 LIBS="$KRB4LIB $LIBS"
22565 cat >>confdefs.h <<\_ACEOF
22566 #define HAVE_LIBKRB 1
22567 _ACEOF
22573 if test "${with_kerberos5}" != no; then
22575 for ac_header in krb5.h
22577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22579 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22580 $as_echo_n "checking for $ac_header... " >&6; }
22581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22582 $as_echo_n "(cached) " >&6
22584 ac_res=`eval 'as_val=${'$as_ac_Header'}
22585 $as_echo "$as_val"'`
22586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22587 $as_echo "$ac_res" >&6; }
22588 else
22589 # Is the header compilable?
22590 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22591 $as_echo_n "checking $ac_header usability... " >&6; }
22592 cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h. */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22598 $ac_includes_default
22599 #include <$ac_header>
22600 _ACEOF
22601 rm -f conftest.$ac_objext
22602 if { (ac_try="$ac_compile"
22603 case "(($ac_try" in
22604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605 *) ac_try_echo=$ac_try;;
22606 esac
22607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22608 $as_echo "$ac_try_echo") >&5
22609 (eval "$ac_compile") 2>conftest.er1
22610 ac_status=$?
22611 grep -v '^ *+' conftest.er1 >conftest.err
22612 rm -f conftest.er1
22613 cat conftest.err >&5
22614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); } && {
22616 test -z "$ac_c_werror_flag" ||
22617 test ! -s conftest.err
22618 } && test -s conftest.$ac_objext; then
22619 ac_header_compiler=yes
22620 else
22621 $as_echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22624 ac_header_compiler=no
22627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22628 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22629 $as_echo "$ac_header_compiler" >&6; }
22631 # Is the header present?
22632 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22633 $as_echo_n "checking $ac_header presence... " >&6; }
22634 cat >conftest.$ac_ext <<_ACEOF
22635 /* confdefs.h. */
22636 _ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h. */
22640 #include <$ac_header>
22641 _ACEOF
22642 if { (ac_try="$ac_cpp conftest.$ac_ext"
22643 case "(($ac_try" in
22644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22645 *) ac_try_echo=$ac_try;;
22646 esac
22647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22648 $as_echo "$ac_try_echo") >&5
22649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22650 ac_status=$?
22651 grep -v '^ *+' conftest.er1 >conftest.err
22652 rm -f conftest.er1
22653 cat conftest.err >&5
22654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); } >/dev/null && {
22656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22657 test ! -s conftest.err
22658 }; then
22659 ac_header_preproc=yes
22660 else
22661 $as_echo "$as_me: failed program was:" >&5
22662 sed 's/^/| /' conftest.$ac_ext >&5
22664 ac_header_preproc=no
22667 rm -f conftest.err conftest.$ac_ext
22668 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22669 $as_echo "$ac_header_preproc" >&6; }
22671 # So? What about this header?
22672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22673 yes:no: )
22674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22675 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22677 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22678 ac_header_preproc=yes
22680 no:yes:* )
22681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22682 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22684 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22686 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22688 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22690 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22692 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22695 esac
22696 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22697 $as_echo_n "checking for $ac_header... " >&6; }
22698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22699 $as_echo_n "(cached) " >&6
22700 else
22701 eval "$as_ac_Header=\$ac_header_preproc"
22703 ac_res=`eval 'as_val=${'$as_ac_Header'}
22704 $as_echo "$as_val"'`
22705 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22706 $as_echo "$ac_res" >&6; }
22709 as_val=`eval 'as_val=${'$as_ac_Header'}
22710 $as_echo "$as_val"'`
22711 if test "x$as_val" = x""yes; then
22712 cat >>confdefs.h <<_ACEOF
22713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22714 _ACEOF
22715 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22716 $as_echo_n "checking for krb5_error.text... " >&6; }
22717 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22718 $as_echo_n "(cached) " >&6
22719 else
22720 cat >conftest.$ac_ext <<_ACEOF
22721 /* confdefs.h. */
22722 _ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h. */
22726 #include <krb5.h>
22729 main ()
22731 static krb5_error ac_aggr;
22732 if (ac_aggr.text)
22733 return 0;
22735 return 0;
22737 _ACEOF
22738 rm -f conftest.$ac_objext
22739 if { (ac_try="$ac_compile"
22740 case "(($ac_try" in
22741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22742 *) ac_try_echo=$ac_try;;
22743 esac
22744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22745 $as_echo "$ac_try_echo") >&5
22746 (eval "$ac_compile") 2>conftest.er1
22747 ac_status=$?
22748 grep -v '^ *+' conftest.er1 >conftest.err
22749 rm -f conftest.er1
22750 cat conftest.err >&5
22751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); } && {
22753 test -z "$ac_c_werror_flag" ||
22754 test ! -s conftest.err
22755 } && test -s conftest.$ac_objext; then
22756 ac_cv_member_krb5_error_text=yes
22757 else
22758 $as_echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22761 cat >conftest.$ac_ext <<_ACEOF
22762 /* confdefs.h. */
22763 _ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h. */
22767 #include <krb5.h>
22770 main ()
22772 static krb5_error ac_aggr;
22773 if (sizeof ac_aggr.text)
22774 return 0;
22776 return 0;
22778 _ACEOF
22779 rm -f conftest.$ac_objext
22780 if { (ac_try="$ac_compile"
22781 case "(($ac_try" in
22782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783 *) ac_try_echo=$ac_try;;
22784 esac
22785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22786 $as_echo "$ac_try_echo") >&5
22787 (eval "$ac_compile") 2>conftest.er1
22788 ac_status=$?
22789 grep -v '^ *+' conftest.er1 >conftest.err
22790 rm -f conftest.er1
22791 cat conftest.err >&5
22792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } && {
22794 test -z "$ac_c_werror_flag" ||
22795 test ! -s conftest.err
22796 } && test -s conftest.$ac_objext; then
22797 ac_cv_member_krb5_error_text=yes
22798 else
22799 $as_echo "$as_me: failed program was:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22802 ac_cv_member_krb5_error_text=no
22805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22810 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22811 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22812 if test "x$ac_cv_member_krb5_error_text" = x""yes; then
22814 cat >>confdefs.h <<_ACEOF
22815 #define HAVE_KRB5_ERROR_TEXT 1
22816 _ACEOF
22820 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22821 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22822 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22823 $as_echo_n "(cached) " >&6
22824 else
22825 cat >conftest.$ac_ext <<_ACEOF
22826 /* confdefs.h. */
22827 _ACEOF
22828 cat confdefs.h >>conftest.$ac_ext
22829 cat >>conftest.$ac_ext <<_ACEOF
22830 /* end confdefs.h. */
22831 #include <krb5.h>
22834 main ()
22836 static krb5_error ac_aggr;
22837 if (ac_aggr.e_text)
22838 return 0;
22840 return 0;
22842 _ACEOF
22843 rm -f conftest.$ac_objext
22844 if { (ac_try="$ac_compile"
22845 case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22848 esac
22849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22850 $as_echo "$ac_try_echo") >&5
22851 (eval "$ac_compile") 2>conftest.er1
22852 ac_status=$?
22853 grep -v '^ *+' conftest.er1 >conftest.err
22854 rm -f conftest.er1
22855 cat conftest.err >&5
22856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); } && {
22858 test -z "$ac_c_werror_flag" ||
22859 test ! -s conftest.err
22860 } && test -s conftest.$ac_objext; then
22861 ac_cv_member_krb5_error_e_text=yes
22862 else
22863 $as_echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22866 cat >conftest.$ac_ext <<_ACEOF
22867 /* confdefs.h. */
22868 _ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h. */
22872 #include <krb5.h>
22875 main ()
22877 static krb5_error ac_aggr;
22878 if (sizeof ac_aggr.e_text)
22879 return 0;
22881 return 0;
22883 _ACEOF
22884 rm -f conftest.$ac_objext
22885 if { (ac_try="$ac_compile"
22886 case "(($ac_try" in
22887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888 *) ac_try_echo=$ac_try;;
22889 esac
22890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22891 $as_echo "$ac_try_echo") >&5
22892 (eval "$ac_compile") 2>conftest.er1
22893 ac_status=$?
22894 grep -v '^ *+' conftest.er1 >conftest.err
22895 rm -f conftest.er1
22896 cat conftest.err >&5
22897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 (exit $ac_status); } && {
22899 test -z "$ac_c_werror_flag" ||
22900 test ! -s conftest.err
22901 } && test -s conftest.$ac_objext; then
22902 ac_cv_member_krb5_error_e_text=yes
22903 else
22904 $as_echo "$as_me: failed program was:" >&5
22905 sed 's/^/| /' conftest.$ac_ext >&5
22907 ac_cv_member_krb5_error_e_text=no
22910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22915 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22916 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22917 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then
22919 cat >>confdefs.h <<_ACEOF
22920 #define HAVE_KRB5_ERROR_E_TEXT 1
22921 _ACEOF
22928 done
22930 else
22932 for ac_header in des.h
22934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22936 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22937 $as_echo_n "checking for $ac_header... " >&6; }
22938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22939 $as_echo_n "(cached) " >&6
22941 ac_res=`eval 'as_val=${'$as_ac_Header'}
22942 $as_echo "$as_val"'`
22943 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22944 $as_echo "$ac_res" >&6; }
22945 else
22946 # Is the header compilable?
22947 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22948 $as_echo_n "checking $ac_header usability... " >&6; }
22949 cat >conftest.$ac_ext <<_ACEOF
22950 /* confdefs.h. */
22951 _ACEOF
22952 cat confdefs.h >>conftest.$ac_ext
22953 cat >>conftest.$ac_ext <<_ACEOF
22954 /* end confdefs.h. */
22955 $ac_includes_default
22956 #include <$ac_header>
22957 _ACEOF
22958 rm -f conftest.$ac_objext
22959 if { (ac_try="$ac_compile"
22960 case "(($ac_try" in
22961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22962 *) ac_try_echo=$ac_try;;
22963 esac
22964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22965 $as_echo "$ac_try_echo") >&5
22966 (eval "$ac_compile") 2>conftest.er1
22967 ac_status=$?
22968 grep -v '^ *+' conftest.er1 >conftest.err
22969 rm -f conftest.er1
22970 cat conftest.err >&5
22971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); } && {
22973 test -z "$ac_c_werror_flag" ||
22974 test ! -s conftest.err
22975 } && test -s conftest.$ac_objext; then
22976 ac_header_compiler=yes
22977 else
22978 $as_echo "$as_me: failed program was:" >&5
22979 sed 's/^/| /' conftest.$ac_ext >&5
22981 ac_header_compiler=no
22984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22985 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22986 $as_echo "$ac_header_compiler" >&6; }
22988 # Is the header present?
22989 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22990 $as_echo_n "checking $ac_header presence... " >&6; }
22991 cat >conftest.$ac_ext <<_ACEOF
22992 /* confdefs.h. */
22993 _ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h. */
22997 #include <$ac_header>
22998 _ACEOF
22999 if { (ac_try="$ac_cpp conftest.$ac_ext"
23000 case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23003 esac
23004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23005 $as_echo "$ac_try_echo") >&5
23006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23007 ac_status=$?
23008 grep -v '^ *+' conftest.er1 >conftest.err
23009 rm -f conftest.er1
23010 cat conftest.err >&5
23011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } >/dev/null && {
23013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23014 test ! -s conftest.err
23015 }; then
23016 ac_header_preproc=yes
23017 else
23018 $as_echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23021 ac_header_preproc=no
23024 rm -f conftest.err conftest.$ac_ext
23025 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23026 $as_echo "$ac_header_preproc" >&6; }
23028 # So? What about this header?
23029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23030 yes:no: )
23031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23032 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23034 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23035 ac_header_preproc=yes
23037 no:yes:* )
23038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23039 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23041 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23043 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23045 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23047 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23049 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23052 esac
23053 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23054 $as_echo_n "checking for $ac_header... " >&6; }
23055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23056 $as_echo_n "(cached) " >&6
23057 else
23058 eval "$as_ac_Header=\$ac_header_preproc"
23060 ac_res=`eval 'as_val=${'$as_ac_Header'}
23061 $as_echo "$as_val"'`
23062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23063 $as_echo "$ac_res" >&6; }
23066 as_val=`eval 'as_val=${'$as_ac_Header'}
23067 $as_echo "$as_val"'`
23068 if test "x$as_val" = x""yes; then
23069 cat >>confdefs.h <<_ACEOF
23070 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23071 _ACEOF
23073 else
23075 for ac_header in kerberosIV/des.h
23077 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23079 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23080 $as_echo_n "checking for $ac_header... " >&6; }
23081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23082 $as_echo_n "(cached) " >&6
23084 ac_res=`eval 'as_val=${'$as_ac_Header'}
23085 $as_echo "$as_val"'`
23086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23087 $as_echo "$ac_res" >&6; }
23088 else
23089 # Is the header compilable?
23090 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23091 $as_echo_n "checking $ac_header usability... " >&6; }
23092 cat >conftest.$ac_ext <<_ACEOF
23093 /* confdefs.h. */
23094 _ACEOF
23095 cat confdefs.h >>conftest.$ac_ext
23096 cat >>conftest.$ac_ext <<_ACEOF
23097 /* end confdefs.h. */
23098 $ac_includes_default
23099 #include <$ac_header>
23100 _ACEOF
23101 rm -f conftest.$ac_objext
23102 if { (ac_try="$ac_compile"
23103 case "(($ac_try" in
23104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23105 *) ac_try_echo=$ac_try;;
23106 esac
23107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23108 $as_echo "$ac_try_echo") >&5
23109 (eval "$ac_compile") 2>conftest.er1
23110 ac_status=$?
23111 grep -v '^ *+' conftest.er1 >conftest.err
23112 rm -f conftest.er1
23113 cat conftest.err >&5
23114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); } && {
23116 test -z "$ac_c_werror_flag" ||
23117 test ! -s conftest.err
23118 } && test -s conftest.$ac_objext; then
23119 ac_header_compiler=yes
23120 else
23121 $as_echo "$as_me: failed program was:" >&5
23122 sed 's/^/| /' conftest.$ac_ext >&5
23124 ac_header_compiler=no
23127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23128 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23129 $as_echo "$ac_header_compiler" >&6; }
23131 # Is the header present?
23132 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23133 $as_echo_n "checking $ac_header presence... " >&6; }
23134 cat >conftest.$ac_ext <<_ACEOF
23135 /* confdefs.h. */
23136 _ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h. */
23140 #include <$ac_header>
23141 _ACEOF
23142 if { (ac_try="$ac_cpp conftest.$ac_ext"
23143 case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23146 esac
23147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23148 $as_echo "$ac_try_echo") >&5
23149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23150 ac_status=$?
23151 grep -v '^ *+' conftest.er1 >conftest.err
23152 rm -f conftest.er1
23153 cat conftest.err >&5
23154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); } >/dev/null && {
23156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23157 test ! -s conftest.err
23158 }; then
23159 ac_header_preproc=yes
23160 else
23161 $as_echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23164 ac_header_preproc=no
23167 rm -f conftest.err conftest.$ac_ext
23168 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23169 $as_echo "$ac_header_preproc" >&6; }
23171 # So? What about this header?
23172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23173 yes:no: )
23174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23175 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23177 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23178 ac_header_preproc=yes
23180 no:yes:* )
23181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23182 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23184 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23186 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23188 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23190 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23192 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23195 esac
23196 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23197 $as_echo_n "checking for $ac_header... " >&6; }
23198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23199 $as_echo_n "(cached) " >&6
23200 else
23201 eval "$as_ac_Header=\$ac_header_preproc"
23203 ac_res=`eval 'as_val=${'$as_ac_Header'}
23204 $as_echo "$as_val"'`
23205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23206 $as_echo "$ac_res" >&6; }
23209 as_val=`eval 'as_val=${'$as_ac_Header'}
23210 $as_echo "$as_val"'`
23211 if test "x$as_val" = x""yes; then
23212 cat >>confdefs.h <<_ACEOF
23213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23214 _ACEOF
23216 else
23218 for ac_header in kerberos/des.h
23220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23222 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23223 $as_echo_n "checking for $ac_header... " >&6; }
23224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23225 $as_echo_n "(cached) " >&6
23227 ac_res=`eval 'as_val=${'$as_ac_Header'}
23228 $as_echo "$as_val"'`
23229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23230 $as_echo "$ac_res" >&6; }
23231 else
23232 # Is the header compilable?
23233 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23234 $as_echo_n "checking $ac_header usability... " >&6; }
23235 cat >conftest.$ac_ext <<_ACEOF
23236 /* confdefs.h. */
23237 _ACEOF
23238 cat confdefs.h >>conftest.$ac_ext
23239 cat >>conftest.$ac_ext <<_ACEOF
23240 /* end confdefs.h. */
23241 $ac_includes_default
23242 #include <$ac_header>
23243 _ACEOF
23244 rm -f conftest.$ac_objext
23245 if { (ac_try="$ac_compile"
23246 case "(($ac_try" in
23247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248 *) ac_try_echo=$ac_try;;
23249 esac
23250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23251 $as_echo "$ac_try_echo") >&5
23252 (eval "$ac_compile") 2>conftest.er1
23253 ac_status=$?
23254 grep -v '^ *+' conftest.er1 >conftest.err
23255 rm -f conftest.er1
23256 cat conftest.err >&5
23257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); } && {
23259 test -z "$ac_c_werror_flag" ||
23260 test ! -s conftest.err
23261 } && test -s conftest.$ac_objext; then
23262 ac_header_compiler=yes
23263 else
23264 $as_echo "$as_me: failed program was:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23267 ac_header_compiler=no
23270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23271 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23272 $as_echo "$ac_header_compiler" >&6; }
23274 # Is the header present?
23275 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23276 $as_echo_n "checking $ac_header presence... " >&6; }
23277 cat >conftest.$ac_ext <<_ACEOF
23278 /* confdefs.h. */
23279 _ACEOF
23280 cat confdefs.h >>conftest.$ac_ext
23281 cat >>conftest.$ac_ext <<_ACEOF
23282 /* end confdefs.h. */
23283 #include <$ac_header>
23284 _ACEOF
23285 if { (ac_try="$ac_cpp conftest.$ac_ext"
23286 case "(($ac_try" in
23287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288 *) ac_try_echo=$ac_try;;
23289 esac
23290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23291 $as_echo "$ac_try_echo") >&5
23292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23293 ac_status=$?
23294 grep -v '^ *+' conftest.er1 >conftest.err
23295 rm -f conftest.er1
23296 cat conftest.err >&5
23297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); } >/dev/null && {
23299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23300 test ! -s conftest.err
23301 }; then
23302 ac_header_preproc=yes
23303 else
23304 $as_echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23307 ac_header_preproc=no
23310 rm -f conftest.err conftest.$ac_ext
23311 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23312 $as_echo "$ac_header_preproc" >&6; }
23314 # So? What about this header?
23315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23316 yes:no: )
23317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23318 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23320 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23321 ac_header_preproc=yes
23323 no:yes:* )
23324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23325 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23327 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23329 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23331 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23335 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23338 esac
23339 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23340 $as_echo_n "checking for $ac_header... " >&6; }
23341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23342 $as_echo_n "(cached) " >&6
23343 else
23344 eval "$as_ac_Header=\$ac_header_preproc"
23346 ac_res=`eval 'as_val=${'$as_ac_Header'}
23347 $as_echo "$as_val"'`
23348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23349 $as_echo "$ac_res" >&6; }
23352 as_val=`eval 'as_val=${'$as_ac_Header'}
23353 $as_echo "$as_val"'`
23354 if test "x$as_val" = x""yes; then
23355 cat >>confdefs.h <<_ACEOF
23356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23357 _ACEOF
23361 done
23365 done
23369 done
23372 for ac_header in krb.h
23374 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23376 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23377 $as_echo_n "checking for $ac_header... " >&6; }
23378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23379 $as_echo_n "(cached) " >&6
23381 ac_res=`eval 'as_val=${'$as_ac_Header'}
23382 $as_echo "$as_val"'`
23383 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23384 $as_echo "$ac_res" >&6; }
23385 else
23386 # Is the header compilable?
23387 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23388 $as_echo_n "checking $ac_header usability... " >&6; }
23389 cat >conftest.$ac_ext <<_ACEOF
23390 /* confdefs.h. */
23391 _ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h. */
23395 $ac_includes_default
23396 #include <$ac_header>
23397 _ACEOF
23398 rm -f conftest.$ac_objext
23399 if { (ac_try="$ac_compile"
23400 case "(($ac_try" in
23401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402 *) ac_try_echo=$ac_try;;
23403 esac
23404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23405 $as_echo "$ac_try_echo") >&5
23406 (eval "$ac_compile") 2>conftest.er1
23407 ac_status=$?
23408 grep -v '^ *+' conftest.er1 >conftest.err
23409 rm -f conftest.er1
23410 cat conftest.err >&5
23411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); } && {
23413 test -z "$ac_c_werror_flag" ||
23414 test ! -s conftest.err
23415 } && test -s conftest.$ac_objext; then
23416 ac_header_compiler=yes
23417 else
23418 $as_echo "$as_me: failed program was:" >&5
23419 sed 's/^/| /' conftest.$ac_ext >&5
23421 ac_header_compiler=no
23424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23425 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23426 $as_echo "$ac_header_compiler" >&6; }
23428 # Is the header present?
23429 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23430 $as_echo_n "checking $ac_header presence... " >&6; }
23431 cat >conftest.$ac_ext <<_ACEOF
23432 /* confdefs.h. */
23433 _ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h. */
23437 #include <$ac_header>
23438 _ACEOF
23439 if { (ac_try="$ac_cpp conftest.$ac_ext"
23440 case "(($ac_try" in
23441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442 *) ac_try_echo=$ac_try;;
23443 esac
23444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23445 $as_echo "$ac_try_echo") >&5
23446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23447 ac_status=$?
23448 grep -v '^ *+' conftest.er1 >conftest.err
23449 rm -f conftest.er1
23450 cat conftest.err >&5
23451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); } >/dev/null && {
23453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23454 test ! -s conftest.err
23455 }; then
23456 ac_header_preproc=yes
23457 else
23458 $as_echo "$as_me: failed program was:" >&5
23459 sed 's/^/| /' conftest.$ac_ext >&5
23461 ac_header_preproc=no
23464 rm -f conftest.err conftest.$ac_ext
23465 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23466 $as_echo "$ac_header_preproc" >&6; }
23468 # So? What about this header?
23469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23470 yes:no: )
23471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23472 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23474 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23475 ac_header_preproc=yes
23477 no:yes:* )
23478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23479 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23481 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23483 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23485 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23487 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23489 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23492 esac
23493 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23494 $as_echo_n "checking for $ac_header... " >&6; }
23495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23496 $as_echo_n "(cached) " >&6
23497 else
23498 eval "$as_ac_Header=\$ac_header_preproc"
23500 ac_res=`eval 'as_val=${'$as_ac_Header'}
23501 $as_echo "$as_val"'`
23502 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23503 $as_echo "$ac_res" >&6; }
23506 as_val=`eval 'as_val=${'$as_ac_Header'}
23507 $as_echo "$as_val"'`
23508 if test "x$as_val" = x""yes; then
23509 cat >>confdefs.h <<_ACEOF
23510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23511 _ACEOF
23513 else
23515 for ac_header in kerberosIV/krb.h
23517 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23519 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23520 $as_echo_n "checking for $ac_header... " >&6; }
23521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23522 $as_echo_n "(cached) " >&6
23524 ac_res=`eval 'as_val=${'$as_ac_Header'}
23525 $as_echo "$as_val"'`
23526 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23527 $as_echo "$ac_res" >&6; }
23528 else
23529 # Is the header compilable?
23530 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23531 $as_echo_n "checking $ac_header usability... " >&6; }
23532 cat >conftest.$ac_ext <<_ACEOF
23533 /* confdefs.h. */
23534 _ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h. */
23538 $ac_includes_default
23539 #include <$ac_header>
23540 _ACEOF
23541 rm -f conftest.$ac_objext
23542 if { (ac_try="$ac_compile"
23543 case "(($ac_try" in
23544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23545 *) ac_try_echo=$ac_try;;
23546 esac
23547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23548 $as_echo "$ac_try_echo") >&5
23549 (eval "$ac_compile") 2>conftest.er1
23550 ac_status=$?
23551 grep -v '^ *+' conftest.er1 >conftest.err
23552 rm -f conftest.er1
23553 cat conftest.err >&5
23554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); } && {
23556 test -z "$ac_c_werror_flag" ||
23557 test ! -s conftest.err
23558 } && test -s conftest.$ac_objext; then
23559 ac_header_compiler=yes
23560 else
23561 $as_echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23564 ac_header_compiler=no
23567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23568 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23569 $as_echo "$ac_header_compiler" >&6; }
23571 # Is the header present?
23572 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23573 $as_echo_n "checking $ac_header presence... " >&6; }
23574 cat >conftest.$ac_ext <<_ACEOF
23575 /* confdefs.h. */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 #include <$ac_header>
23581 _ACEOF
23582 if { (ac_try="$ac_cpp conftest.$ac_ext"
23583 case "(($ac_try" in
23584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23585 *) ac_try_echo=$ac_try;;
23586 esac
23587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23588 $as_echo "$ac_try_echo") >&5
23589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23590 ac_status=$?
23591 grep -v '^ *+' conftest.er1 >conftest.err
23592 rm -f conftest.er1
23593 cat conftest.err >&5
23594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); } >/dev/null && {
23596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23597 test ! -s conftest.err
23598 }; then
23599 ac_header_preproc=yes
23600 else
23601 $as_echo "$as_me: failed program was:" >&5
23602 sed 's/^/| /' conftest.$ac_ext >&5
23604 ac_header_preproc=no
23607 rm -f conftest.err conftest.$ac_ext
23608 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23609 $as_echo "$ac_header_preproc" >&6; }
23611 # So? What about this header?
23612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23613 yes:no: )
23614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23615 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23617 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23618 ac_header_preproc=yes
23620 no:yes:* )
23621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23622 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23624 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23626 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23628 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23630 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23632 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23635 esac
23636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23637 $as_echo_n "checking for $ac_header... " >&6; }
23638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23639 $as_echo_n "(cached) " >&6
23640 else
23641 eval "$as_ac_Header=\$ac_header_preproc"
23643 ac_res=`eval 'as_val=${'$as_ac_Header'}
23644 $as_echo "$as_val"'`
23645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23646 $as_echo "$ac_res" >&6; }
23649 as_val=`eval 'as_val=${'$as_ac_Header'}
23650 $as_echo "$as_val"'`
23651 if test "x$as_val" = x""yes; then
23652 cat >>confdefs.h <<_ACEOF
23653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23654 _ACEOF
23656 else
23658 for ac_header in kerberos/krb.h
23660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23662 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23663 $as_echo_n "checking for $ac_header... " >&6; }
23664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23665 $as_echo_n "(cached) " >&6
23667 ac_res=`eval 'as_val=${'$as_ac_Header'}
23668 $as_echo "$as_val"'`
23669 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23670 $as_echo "$ac_res" >&6; }
23671 else
23672 # Is the header compilable?
23673 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23674 $as_echo_n "checking $ac_header usability... " >&6; }
23675 cat >conftest.$ac_ext <<_ACEOF
23676 /* confdefs.h. */
23677 _ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681 $ac_includes_default
23682 #include <$ac_header>
23683 _ACEOF
23684 rm -f conftest.$ac_objext
23685 if { (ac_try="$ac_compile"
23686 case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688 *) ac_try_echo=$ac_try;;
23689 esac
23690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23691 $as_echo "$ac_try_echo") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23693 ac_status=$?
23694 grep -v '^ *+' conftest.er1 >conftest.err
23695 rm -f conftest.er1
23696 cat conftest.err >&5
23697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); } && {
23699 test -z "$ac_c_werror_flag" ||
23700 test ! -s conftest.err
23701 } && test -s conftest.$ac_objext; then
23702 ac_header_compiler=yes
23703 else
23704 $as_echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23707 ac_header_compiler=no
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23711 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23712 $as_echo "$ac_header_compiler" >&6; }
23714 # Is the header present?
23715 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23716 $as_echo_n "checking $ac_header presence... " >&6; }
23717 cat >conftest.$ac_ext <<_ACEOF
23718 /* confdefs.h. */
23719 _ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h. */
23723 #include <$ac_header>
23724 _ACEOF
23725 if { (ac_try="$ac_cpp conftest.$ac_ext"
23726 case "(($ac_try" in
23727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23728 *) ac_try_echo=$ac_try;;
23729 esac
23730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23731 $as_echo "$ac_try_echo") >&5
23732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23733 ac_status=$?
23734 grep -v '^ *+' conftest.er1 >conftest.err
23735 rm -f conftest.er1
23736 cat conftest.err >&5
23737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); } >/dev/null && {
23739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23740 test ! -s conftest.err
23741 }; then
23742 ac_header_preproc=yes
23743 else
23744 $as_echo "$as_me: failed program was:" >&5
23745 sed 's/^/| /' conftest.$ac_ext >&5
23747 ac_header_preproc=no
23750 rm -f conftest.err conftest.$ac_ext
23751 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23752 $as_echo "$ac_header_preproc" >&6; }
23754 # So? What about this header?
23755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23756 yes:no: )
23757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23758 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23761 ac_header_preproc=yes
23763 no:yes:* )
23764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23765 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23767 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23769 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23771 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23773 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23775 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23778 esac
23779 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23780 $as_echo_n "checking for $ac_header... " >&6; }
23781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23782 $as_echo_n "(cached) " >&6
23783 else
23784 eval "$as_ac_Header=\$ac_header_preproc"
23786 ac_res=`eval 'as_val=${'$as_ac_Header'}
23787 $as_echo "$as_val"'`
23788 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23789 $as_echo "$ac_res" >&6; }
23792 as_val=`eval 'as_val=${'$as_ac_Header'}
23793 $as_echo "$as_val"'`
23794 if test "x$as_val" = x""yes; then
23795 cat >>confdefs.h <<_ACEOF
23796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23797 _ACEOF
23801 done
23805 done
23809 done
23813 for ac_header in com_err.h
23815 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23817 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23818 $as_echo_n "checking for $ac_header... " >&6; }
23819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23820 $as_echo_n "(cached) " >&6
23822 ac_res=`eval 'as_val=${'$as_ac_Header'}
23823 $as_echo "$as_val"'`
23824 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23825 $as_echo "$ac_res" >&6; }
23826 else
23827 # Is the header compilable?
23828 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23829 $as_echo_n "checking $ac_header usability... " >&6; }
23830 cat >conftest.$ac_ext <<_ACEOF
23831 /* confdefs.h. */
23832 _ACEOF
23833 cat confdefs.h >>conftest.$ac_ext
23834 cat >>conftest.$ac_ext <<_ACEOF
23835 /* end confdefs.h. */
23836 $ac_includes_default
23837 #include <$ac_header>
23838 _ACEOF
23839 rm -f conftest.$ac_objext
23840 if { (ac_try="$ac_compile"
23841 case "(($ac_try" in
23842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23843 *) ac_try_echo=$ac_try;;
23844 esac
23845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23846 $as_echo "$ac_try_echo") >&5
23847 (eval "$ac_compile") 2>conftest.er1
23848 ac_status=$?
23849 grep -v '^ *+' conftest.er1 >conftest.err
23850 rm -f conftest.er1
23851 cat conftest.err >&5
23852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); } && {
23854 test -z "$ac_c_werror_flag" ||
23855 test ! -s conftest.err
23856 } && test -s conftest.$ac_objext; then
23857 ac_header_compiler=yes
23858 else
23859 $as_echo "$as_me: failed program was:" >&5
23860 sed 's/^/| /' conftest.$ac_ext >&5
23862 ac_header_compiler=no
23865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23866 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23867 $as_echo "$ac_header_compiler" >&6; }
23869 # Is the header present?
23870 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23871 $as_echo_n "checking $ac_header presence... " >&6; }
23872 cat >conftest.$ac_ext <<_ACEOF
23873 /* confdefs.h. */
23874 _ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 #include <$ac_header>
23879 _ACEOF
23880 if { (ac_try="$ac_cpp conftest.$ac_ext"
23881 case "(($ac_try" in
23882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23883 *) ac_try_echo=$ac_try;;
23884 esac
23885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23886 $as_echo "$ac_try_echo") >&5
23887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23888 ac_status=$?
23889 grep -v '^ *+' conftest.er1 >conftest.err
23890 rm -f conftest.er1
23891 cat conftest.err >&5
23892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); } >/dev/null && {
23894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23895 test ! -s conftest.err
23896 }; then
23897 ac_header_preproc=yes
23898 else
23899 $as_echo "$as_me: failed program was:" >&5
23900 sed 's/^/| /' conftest.$ac_ext >&5
23902 ac_header_preproc=no
23905 rm -f conftest.err conftest.$ac_ext
23906 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23907 $as_echo "$ac_header_preproc" >&6; }
23909 # So? What about this header?
23910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23911 yes:no: )
23912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23913 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23915 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23916 ac_header_preproc=yes
23918 no:yes:* )
23919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23920 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23922 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23924 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23926 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23928 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23930 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23933 esac
23934 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23935 $as_echo_n "checking for $ac_header... " >&6; }
23936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23937 $as_echo_n "(cached) " >&6
23938 else
23939 eval "$as_ac_Header=\$ac_header_preproc"
23941 ac_res=`eval 'as_val=${'$as_ac_Header'}
23942 $as_echo "$as_val"'`
23943 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23944 $as_echo "$ac_res" >&6; }
23947 as_val=`eval 'as_val=${'$as_ac_Header'}
23948 $as_echo "$as_val"'`
23949 if test "x$as_val" = x""yes; then
23950 cat >>confdefs.h <<_ACEOF
23951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23952 _ACEOF
23956 done
23966 # Solaris requires -lintl if you want strerror (which calls dgettext)
23967 # to return localized messages.
23969 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23970 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23971 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23972 $as_echo_n "(cached) " >&6
23973 else
23974 ac_check_lib_save_LIBS=$LIBS
23975 LIBS="-lintl $LIBS"
23976 cat >conftest.$ac_ext <<_ACEOF
23977 /* confdefs.h. */
23978 _ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23983 /* Override any GCC internal prototype to avoid an error.
23984 Use char because int might match the return type of a GCC
23985 builtin and then its argument prototype would still apply. */
23986 #ifdef __cplusplus
23987 extern "C"
23988 #endif
23989 char dgettext ();
23991 main ()
23993 return dgettext ();
23995 return 0;
23997 _ACEOF
23998 rm -f conftest.$ac_objext conftest$ac_exeext
23999 if { (ac_try="$ac_link"
24000 case "(($ac_try" in
24001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24002 *) ac_try_echo=$ac_try;;
24003 esac
24004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24005 $as_echo "$ac_try_echo") >&5
24006 (eval "$ac_link") 2>conftest.er1
24007 ac_status=$?
24008 grep -v '^ *+' conftest.er1 >conftest.err
24009 rm -f conftest.er1
24010 cat conftest.err >&5
24011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); } && {
24013 test -z "$ac_c_werror_flag" ||
24014 test ! -s conftest.err
24015 } && test -s conftest$ac_exeext && {
24016 test "$cross_compiling" = yes ||
24017 $as_test_x conftest$ac_exeext
24018 }; then
24019 ac_cv_lib_intl_dgettext=yes
24020 else
24021 $as_echo "$as_me: failed program was:" >&5
24022 sed 's/^/| /' conftest.$ac_ext >&5
24024 ac_cv_lib_intl_dgettext=no
24027 rm -rf conftest.dSYM
24028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24029 conftest$ac_exeext conftest.$ac_ext
24030 LIBS=$ac_check_lib_save_LIBS
24032 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24033 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24034 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
24035 cat >>confdefs.h <<_ACEOF
24036 #define HAVE_LIBINTL 1
24037 _ACEOF
24039 LIBS="-lintl $LIBS"
24044 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24045 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24046 if test "${emacs_cv_localtime_cache+set}" = set; then
24047 $as_echo_n "(cached) " >&6
24048 else
24049 if test x$ac_cv_func_tzset = xyes; then
24050 if test "$cross_compiling" = yes; then
24051 # If we have tzset, assume the worst when cross-compiling.
24052 emacs_cv_localtime_cache=yes
24053 else
24054 cat >conftest.$ac_ext <<_ACEOF
24055 /* confdefs.h. */
24056 _ACEOF
24057 cat confdefs.h >>conftest.$ac_ext
24058 cat >>conftest.$ac_ext <<_ACEOF
24059 /* end confdefs.h. */
24060 #include <time.h>
24061 extern char **environ;
24062 unset_TZ ()
24064 char **from, **to;
24065 for (to = from = environ; (*to = *from); from++)
24066 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24067 to++;
24069 char TZ_GMT0[] = "TZ=GMT0";
24070 char TZ_PST8[] = "TZ=PST8";
24071 main()
24073 time_t now = time ((time_t *) 0);
24074 int hour_GMT0, hour_unset;
24075 if (putenv (TZ_GMT0) != 0)
24076 exit (1);
24077 hour_GMT0 = localtime (&now)->tm_hour;
24078 unset_TZ ();
24079 hour_unset = localtime (&now)->tm_hour;
24080 if (putenv (TZ_PST8) != 0)
24081 exit (1);
24082 if (localtime (&now)->tm_hour == hour_GMT0)
24083 exit (1);
24084 unset_TZ ();
24085 if (localtime (&now)->tm_hour != hour_unset)
24086 exit (1);
24087 exit (0);
24089 _ACEOF
24090 rm -f conftest$ac_exeext
24091 if { (ac_try="$ac_link"
24092 case "(($ac_try" in
24093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24094 *) ac_try_echo=$ac_try;;
24095 esac
24096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24097 $as_echo "$ac_try_echo") >&5
24098 (eval "$ac_link") 2>&5
24099 ac_status=$?
24100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24102 { (case "(($ac_try" in
24103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104 *) ac_try_echo=$ac_try;;
24105 esac
24106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24107 $as_echo "$ac_try_echo") >&5
24108 (eval "$ac_try") 2>&5
24109 ac_status=$?
24110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); }; }; then
24112 emacs_cv_localtime_cache=no
24113 else
24114 $as_echo "$as_me: program exited with status $ac_status" >&5
24115 $as_echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24118 ( exit $ac_status )
24119 emacs_cv_localtime_cache=yes
24121 rm -rf conftest.dSYM
24122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24126 else
24127 # If we lack tzset, report that localtime does not cache TZ,
24128 # since we can't invalidate the cache if we don't have tzset.
24129 emacs_cv_localtime_cache=no
24132 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24133 $as_echo "$emacs_cv_localtime_cache" >&6; }
24134 if test $emacs_cv_localtime_cache = yes; then
24136 cat >>confdefs.h <<\_ACEOF
24137 #define LOCALTIME_CACHE 1
24138 _ACEOF
24142 if test "x$HAVE_TIMEVAL" = xyes; then
24144 for ac_func in gettimeofday
24146 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24147 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24148 $as_echo_n "checking for $ac_func... " >&6; }
24149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24150 $as_echo_n "(cached) " >&6
24151 else
24152 cat >conftest.$ac_ext <<_ACEOF
24153 /* confdefs.h. */
24154 _ACEOF
24155 cat confdefs.h >>conftest.$ac_ext
24156 cat >>conftest.$ac_ext <<_ACEOF
24157 /* end confdefs.h. */
24158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24160 #define $ac_func innocuous_$ac_func
24162 /* System header to define __stub macros and hopefully few prototypes,
24163 which can conflict with char $ac_func (); below.
24164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24165 <limits.h> exists even on freestanding compilers. */
24167 #ifdef __STDC__
24168 # include <limits.h>
24169 #else
24170 # include <assert.h>
24171 #endif
24173 #undef $ac_func
24175 /* Override any GCC internal prototype to avoid an error.
24176 Use char because int might match the return type of a GCC
24177 builtin and then its argument prototype would still apply. */
24178 #ifdef __cplusplus
24179 extern "C"
24180 #endif
24181 char $ac_func ();
24182 /* The GNU C library defines this for functions which it implements
24183 to always fail with ENOSYS. Some functions are actually named
24184 something starting with __ and the normal name is an alias. */
24185 #if defined __stub_$ac_func || defined __stub___$ac_func
24186 choke me
24187 #endif
24190 main ()
24192 return $ac_func ();
24194 return 0;
24196 _ACEOF
24197 rm -f conftest.$ac_objext conftest$ac_exeext
24198 if { (ac_try="$ac_link"
24199 case "(($ac_try" in
24200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24201 *) ac_try_echo=$ac_try;;
24202 esac
24203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24204 $as_echo "$ac_try_echo") >&5
24205 (eval "$ac_link") 2>conftest.er1
24206 ac_status=$?
24207 grep -v '^ *+' conftest.er1 >conftest.err
24208 rm -f conftest.er1
24209 cat conftest.err >&5
24210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } && {
24212 test -z "$ac_c_werror_flag" ||
24213 test ! -s conftest.err
24214 } && test -s conftest$ac_exeext && {
24215 test "$cross_compiling" = yes ||
24216 $as_test_x conftest$ac_exeext
24217 }; then
24218 eval "$as_ac_var=yes"
24219 else
24220 $as_echo "$as_me: failed program was:" >&5
24221 sed 's/^/| /' conftest.$ac_ext >&5
24223 eval "$as_ac_var=no"
24226 rm -rf conftest.dSYM
24227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24228 conftest$ac_exeext conftest.$ac_ext
24230 ac_res=`eval 'as_val=${'$as_ac_var'}
24231 $as_echo "$as_val"'`
24232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24233 $as_echo "$ac_res" >&6; }
24234 as_val=`eval 'as_val=${'$as_ac_var'}
24235 $as_echo "$as_val"'`
24236 if test "x$as_val" = x""yes; then
24237 cat >>confdefs.h <<_ACEOF
24238 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24239 _ACEOF
24242 done
24244 if test $ac_cv_func_gettimeofday = yes; then
24245 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24246 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24247 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24248 $as_echo_n "(cached) " >&6
24249 else
24250 cat >conftest.$ac_ext <<_ACEOF
24251 /* confdefs.h. */
24252 _ACEOF
24253 cat confdefs.h >>conftest.$ac_ext
24254 cat >>conftest.$ac_ext <<_ACEOF
24255 /* end confdefs.h. */
24257 #ifdef TIME_WITH_SYS_TIME
24258 #include <sys/time.h>
24259 #include <time.h>
24260 #else
24261 #ifdef HAVE_SYS_TIME_H
24262 #include <sys/time.h>
24263 #else
24264 #include <time.h>
24265 #endif
24266 #endif
24268 main ()
24270 struct timeval time;
24271 gettimeofday (&time, 0);
24273 return 0;
24275 _ACEOF
24276 rm -f conftest.$ac_objext
24277 if { (ac_try="$ac_compile"
24278 case "(($ac_try" in
24279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24280 *) ac_try_echo=$ac_try;;
24281 esac
24282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24283 $as_echo "$ac_try_echo") >&5
24284 (eval "$ac_compile") 2>conftest.er1
24285 ac_status=$?
24286 grep -v '^ *+' conftest.er1 >conftest.err
24287 rm -f conftest.er1
24288 cat conftest.err >&5
24289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); } && {
24291 test -z "$ac_c_werror_flag" ||
24292 test ! -s conftest.err
24293 } && test -s conftest.$ac_objext; then
24294 emacs_cv_gettimeofday_two_arguments=yes
24295 else
24296 $as_echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24299 emacs_cv_gettimeofday_two_arguments=no
24302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24304 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24305 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24306 if test $emacs_cv_gettimeofday_two_arguments = no; then
24308 cat >>confdefs.h <<\_ACEOF
24309 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24310 _ACEOF
24316 ok_so_far=yes
24317 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24318 $as_echo_n "checking for socket... " >&6; }
24319 if test "${ac_cv_func_socket+set}" = set; then
24320 $as_echo_n "(cached) " >&6
24321 else
24322 cat >conftest.$ac_ext <<_ACEOF
24323 /* confdefs.h. */
24324 _ACEOF
24325 cat confdefs.h >>conftest.$ac_ext
24326 cat >>conftest.$ac_ext <<_ACEOF
24327 /* end confdefs.h. */
24328 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24330 #define socket innocuous_socket
24332 /* System header to define __stub macros and hopefully few prototypes,
24333 which can conflict with char socket (); below.
24334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24335 <limits.h> exists even on freestanding compilers. */
24337 #ifdef __STDC__
24338 # include <limits.h>
24339 #else
24340 # include <assert.h>
24341 #endif
24343 #undef socket
24345 /* Override any GCC internal prototype to avoid an error.
24346 Use char because int might match the return type of a GCC
24347 builtin and then its argument prototype would still apply. */
24348 #ifdef __cplusplus
24349 extern "C"
24350 #endif
24351 char socket ();
24352 /* The GNU C library defines this for functions which it implements
24353 to always fail with ENOSYS. Some functions are actually named
24354 something starting with __ and the normal name is an alias. */
24355 #if defined __stub_socket || defined __stub___socket
24356 choke me
24357 #endif
24360 main ()
24362 return socket ();
24364 return 0;
24366 _ACEOF
24367 rm -f conftest.$ac_objext conftest$ac_exeext
24368 if { (ac_try="$ac_link"
24369 case "(($ac_try" in
24370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371 *) ac_try_echo=$ac_try;;
24372 esac
24373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24374 $as_echo "$ac_try_echo") >&5
24375 (eval "$ac_link") 2>conftest.er1
24376 ac_status=$?
24377 grep -v '^ *+' conftest.er1 >conftest.err
24378 rm -f conftest.er1
24379 cat conftest.err >&5
24380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); } && {
24382 test -z "$ac_c_werror_flag" ||
24383 test ! -s conftest.err
24384 } && test -s conftest$ac_exeext && {
24385 test "$cross_compiling" = yes ||
24386 $as_test_x conftest$ac_exeext
24387 }; then
24388 ac_cv_func_socket=yes
24389 else
24390 $as_echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24393 ac_cv_func_socket=no
24396 rm -rf conftest.dSYM
24397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24398 conftest$ac_exeext conftest.$ac_ext
24400 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24401 $as_echo "$ac_cv_func_socket" >&6; }
24402 if test "x$ac_cv_func_socket" = x""yes; then
24404 else
24405 ok_so_far=no
24408 if test $ok_so_far = yes; then
24409 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24410 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24411 $as_echo_n "checking for netinet/in.h... " >&6; }
24412 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24413 $as_echo_n "(cached) " >&6
24415 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24416 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24417 else
24418 # Is the header compilable?
24419 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24420 $as_echo_n "checking netinet/in.h usability... " >&6; }
24421 cat >conftest.$ac_ext <<_ACEOF
24422 /* confdefs.h. */
24423 _ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h. */
24427 $ac_includes_default
24428 #include <netinet/in.h>
24429 _ACEOF
24430 rm -f conftest.$ac_objext
24431 if { (ac_try="$ac_compile"
24432 case "(($ac_try" in
24433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24434 *) ac_try_echo=$ac_try;;
24435 esac
24436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24437 $as_echo "$ac_try_echo") >&5
24438 (eval "$ac_compile") 2>conftest.er1
24439 ac_status=$?
24440 grep -v '^ *+' conftest.er1 >conftest.err
24441 rm -f conftest.er1
24442 cat conftest.err >&5
24443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 (exit $ac_status); } && {
24445 test -z "$ac_c_werror_flag" ||
24446 test ! -s conftest.err
24447 } && test -s conftest.$ac_objext; then
24448 ac_header_compiler=yes
24449 else
24450 $as_echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24453 ac_header_compiler=no
24456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24457 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24458 $as_echo "$ac_header_compiler" >&6; }
24460 # Is the header present?
24461 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24462 $as_echo_n "checking netinet/in.h presence... " >&6; }
24463 cat >conftest.$ac_ext <<_ACEOF
24464 /* confdefs.h. */
24465 _ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h. */
24469 #include <netinet/in.h>
24470 _ACEOF
24471 if { (ac_try="$ac_cpp conftest.$ac_ext"
24472 case "(($ac_try" in
24473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24474 *) ac_try_echo=$ac_try;;
24475 esac
24476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24477 $as_echo "$ac_try_echo") >&5
24478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24479 ac_status=$?
24480 grep -v '^ *+' conftest.er1 >conftest.err
24481 rm -f conftest.er1
24482 cat conftest.err >&5
24483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); } >/dev/null && {
24485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24486 test ! -s conftest.err
24487 }; then
24488 ac_header_preproc=yes
24489 else
24490 $as_echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24493 ac_header_preproc=no
24496 rm -f conftest.err conftest.$ac_ext
24497 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24498 $as_echo "$ac_header_preproc" >&6; }
24500 # So? What about this header?
24501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24502 yes:no: )
24503 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24504 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24505 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24506 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24507 ac_header_preproc=yes
24509 no:yes:* )
24510 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24511 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24512 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24513 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24514 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24515 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24516 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24517 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24518 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24519 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24520 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24521 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24524 esac
24525 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24526 $as_echo_n "checking for netinet/in.h... " >&6; }
24527 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24528 $as_echo_n "(cached) " >&6
24529 else
24530 ac_cv_header_netinet_in_h=$ac_header_preproc
24532 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24533 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24536 if test "x$ac_cv_header_netinet_in_h" = x""yes; then
24538 else
24539 ok_so_far=no
24544 if test $ok_so_far = yes; then
24545 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24546 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24547 $as_echo_n "checking for arpa/inet.h... " >&6; }
24548 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24549 $as_echo_n "(cached) " >&6
24551 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24552 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24553 else
24554 # Is the header compilable?
24555 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24556 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24557 cat >conftest.$ac_ext <<_ACEOF
24558 /* confdefs.h. */
24559 _ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h. */
24563 $ac_includes_default
24564 #include <arpa/inet.h>
24565 _ACEOF
24566 rm -f conftest.$ac_objext
24567 if { (ac_try="$ac_compile"
24568 case "(($ac_try" in
24569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24570 *) ac_try_echo=$ac_try;;
24571 esac
24572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24573 $as_echo "$ac_try_echo") >&5
24574 (eval "$ac_compile") 2>conftest.er1
24575 ac_status=$?
24576 grep -v '^ *+' conftest.er1 >conftest.err
24577 rm -f conftest.er1
24578 cat conftest.err >&5
24579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580 (exit $ac_status); } && {
24581 test -z "$ac_c_werror_flag" ||
24582 test ! -s conftest.err
24583 } && test -s conftest.$ac_objext; then
24584 ac_header_compiler=yes
24585 else
24586 $as_echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24589 ac_header_compiler=no
24592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24593 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24594 $as_echo "$ac_header_compiler" >&6; }
24596 # Is the header present?
24597 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24598 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24599 cat >conftest.$ac_ext <<_ACEOF
24600 /* confdefs.h. */
24601 _ACEOF
24602 cat confdefs.h >>conftest.$ac_ext
24603 cat >>conftest.$ac_ext <<_ACEOF
24604 /* end confdefs.h. */
24605 #include <arpa/inet.h>
24606 _ACEOF
24607 if { (ac_try="$ac_cpp conftest.$ac_ext"
24608 case "(($ac_try" in
24609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610 *) ac_try_echo=$ac_try;;
24611 esac
24612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24613 $as_echo "$ac_try_echo") >&5
24614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24615 ac_status=$?
24616 grep -v '^ *+' conftest.er1 >conftest.err
24617 rm -f conftest.er1
24618 cat conftest.err >&5
24619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); } >/dev/null && {
24621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24622 test ! -s conftest.err
24623 }; then
24624 ac_header_preproc=yes
24625 else
24626 $as_echo "$as_me: failed program was:" >&5
24627 sed 's/^/| /' conftest.$ac_ext >&5
24629 ac_header_preproc=no
24632 rm -f conftest.err conftest.$ac_ext
24633 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24634 $as_echo "$ac_header_preproc" >&6; }
24636 # So? What about this header?
24637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24638 yes:no: )
24639 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24640 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24641 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24642 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24643 ac_header_preproc=yes
24645 no:yes:* )
24646 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24647 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24648 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24649 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24650 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24651 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24652 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24653 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24654 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24655 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24656 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24657 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24660 esac
24661 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24662 $as_echo_n "checking for arpa/inet.h... " >&6; }
24663 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24664 $as_echo_n "(cached) " >&6
24665 else
24666 ac_cv_header_arpa_inet_h=$ac_header_preproc
24668 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24669 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24672 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then
24674 else
24675 ok_so_far=no
24680 if test $ok_so_far = yes; then
24682 cat >>confdefs.h <<\_ACEOF
24683 #define HAVE_INET_SOCKETS 1
24684 _ACEOF
24689 for ac_header in sys/ioctl.h
24691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24693 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24694 $as_echo_n "checking for $ac_header... " >&6; }
24695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24696 $as_echo_n "(cached) " >&6
24698 ac_res=`eval 'as_val=${'$as_ac_Header'}
24699 $as_echo "$as_val"'`
24700 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24701 $as_echo "$ac_res" >&6; }
24702 else
24703 # Is the header compilable?
24704 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24705 $as_echo_n "checking $ac_header usability... " >&6; }
24706 cat >conftest.$ac_ext <<_ACEOF
24707 /* confdefs.h. */
24708 _ACEOF
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h. */
24712 $ac_includes_default
24713 #include <$ac_header>
24714 _ACEOF
24715 rm -f conftest.$ac_objext
24716 if { (ac_try="$ac_compile"
24717 case "(($ac_try" in
24718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719 *) ac_try_echo=$ac_try;;
24720 esac
24721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24722 $as_echo "$ac_try_echo") >&5
24723 (eval "$ac_compile") 2>conftest.er1
24724 ac_status=$?
24725 grep -v '^ *+' conftest.er1 >conftest.err
24726 rm -f conftest.er1
24727 cat conftest.err >&5
24728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); } && {
24730 test -z "$ac_c_werror_flag" ||
24731 test ! -s conftest.err
24732 } && test -s conftest.$ac_objext; then
24733 ac_header_compiler=yes
24734 else
24735 $as_echo "$as_me: failed program was:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24738 ac_header_compiler=no
24741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24742 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24743 $as_echo "$ac_header_compiler" >&6; }
24745 # Is the header present?
24746 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24747 $as_echo_n "checking $ac_header presence... " >&6; }
24748 cat >conftest.$ac_ext <<_ACEOF
24749 /* confdefs.h. */
24750 _ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h. */
24754 #include <$ac_header>
24755 _ACEOF
24756 if { (ac_try="$ac_cpp conftest.$ac_ext"
24757 case "(($ac_try" in
24758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759 *) ac_try_echo=$ac_try;;
24760 esac
24761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24762 $as_echo "$ac_try_echo") >&5
24763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24764 ac_status=$?
24765 grep -v '^ *+' conftest.er1 >conftest.err
24766 rm -f conftest.er1
24767 cat conftest.err >&5
24768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); } >/dev/null && {
24770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24771 test ! -s conftest.err
24772 }; then
24773 ac_header_preproc=yes
24774 else
24775 $as_echo "$as_me: failed program was:" >&5
24776 sed 's/^/| /' conftest.$ac_ext >&5
24778 ac_header_preproc=no
24781 rm -f conftest.err conftest.$ac_ext
24782 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24783 $as_echo "$ac_header_preproc" >&6; }
24785 # So? What about this header?
24786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24787 yes:no: )
24788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24789 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24791 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24792 ac_header_preproc=yes
24794 no:yes:* )
24795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24796 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24798 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24800 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24802 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24806 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24809 esac
24810 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24811 $as_echo_n "checking for $ac_header... " >&6; }
24812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24813 $as_echo_n "(cached) " >&6
24814 else
24815 eval "$as_ac_Header=\$ac_header_preproc"
24817 ac_res=`eval 'as_val=${'$as_ac_Header'}
24818 $as_echo "$as_val"'`
24819 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24820 $as_echo "$ac_res" >&6; }
24823 as_val=`eval 'as_val=${'$as_ac_Header'}
24824 $as_echo "$as_val"'`
24825 if test "x$as_val" = x""yes; then
24826 cat >>confdefs.h <<_ACEOF
24827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24828 _ACEOF
24832 done
24835 if test -f /usr/lpp/X11/bin/smt.exp; then
24837 cat >>confdefs.h <<\_ACEOF
24838 #define HAVE_AIX_SMT_EXP 1
24839 _ACEOF
24843 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24844 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24845 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24846 { $as_echo "$as_me:$LINENO: result: yes" >&5
24847 $as_echo "yes" >&6; }
24849 cat >>confdefs.h <<\_ACEOF
24850 #define HAVE_DEV_PTMX 1
24851 _ACEOF
24853 else
24854 { $as_echo "$as_me:$LINENO: result: no" >&5
24855 $as_echo "no" >&6; }
24858 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24859 $as_echo_n "checking for pid_t... " >&6; }
24860 if test "${ac_cv_type_pid_t+set}" = set; then
24861 $as_echo_n "(cached) " >&6
24862 else
24863 ac_cv_type_pid_t=no
24864 cat >conftest.$ac_ext <<_ACEOF
24865 /* confdefs.h. */
24866 _ACEOF
24867 cat confdefs.h >>conftest.$ac_ext
24868 cat >>conftest.$ac_ext <<_ACEOF
24869 /* end confdefs.h. */
24870 $ac_includes_default
24872 main ()
24874 if (sizeof (pid_t))
24875 return 0;
24877 return 0;
24879 _ACEOF
24880 rm -f conftest.$ac_objext
24881 if { (ac_try="$ac_compile"
24882 case "(($ac_try" in
24883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24884 *) ac_try_echo=$ac_try;;
24885 esac
24886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24887 $as_echo "$ac_try_echo") >&5
24888 (eval "$ac_compile") 2>conftest.er1
24889 ac_status=$?
24890 grep -v '^ *+' conftest.er1 >conftest.err
24891 rm -f conftest.er1
24892 cat conftest.err >&5
24893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); } && {
24895 test -z "$ac_c_werror_flag" ||
24896 test ! -s conftest.err
24897 } && test -s conftest.$ac_objext; then
24898 cat >conftest.$ac_ext <<_ACEOF
24899 /* confdefs.h. */
24900 _ACEOF
24901 cat confdefs.h >>conftest.$ac_ext
24902 cat >>conftest.$ac_ext <<_ACEOF
24903 /* end confdefs.h. */
24904 $ac_includes_default
24906 main ()
24908 if (sizeof ((pid_t)))
24909 return 0;
24911 return 0;
24913 _ACEOF
24914 rm -f conftest.$ac_objext
24915 if { (ac_try="$ac_compile"
24916 case "(($ac_try" in
24917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24918 *) ac_try_echo=$ac_try;;
24919 esac
24920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24921 $as_echo "$ac_try_echo") >&5
24922 (eval "$ac_compile") 2>conftest.er1
24923 ac_status=$?
24924 grep -v '^ *+' conftest.er1 >conftest.err
24925 rm -f conftest.er1
24926 cat conftest.err >&5
24927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); } && {
24929 test -z "$ac_c_werror_flag" ||
24930 test ! -s conftest.err
24931 } && test -s conftest.$ac_objext; then
24933 else
24934 $as_echo "$as_me: failed program was:" >&5
24935 sed 's/^/| /' conftest.$ac_ext >&5
24937 ac_cv_type_pid_t=yes
24940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24941 else
24942 $as_echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24950 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24951 $as_echo "$ac_cv_type_pid_t" >&6; }
24952 if test "x$ac_cv_type_pid_t" = x""yes; then
24954 else
24956 cat >>confdefs.h <<_ACEOF
24957 #define pid_t int
24958 _ACEOF
24963 for ac_header in vfork.h
24965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24967 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24968 $as_echo_n "checking for $ac_header... " >&6; }
24969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24970 $as_echo_n "(cached) " >&6
24972 ac_res=`eval 'as_val=${'$as_ac_Header'}
24973 $as_echo "$as_val"'`
24974 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24975 $as_echo "$ac_res" >&6; }
24976 else
24977 # Is the header compilable?
24978 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24979 $as_echo_n "checking $ac_header usability... " >&6; }
24980 cat >conftest.$ac_ext <<_ACEOF
24981 /* confdefs.h. */
24982 _ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h. */
24986 $ac_includes_default
24987 #include <$ac_header>
24988 _ACEOF
24989 rm -f conftest.$ac_objext
24990 if { (ac_try="$ac_compile"
24991 case "(($ac_try" in
24992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24993 *) ac_try_echo=$ac_try;;
24994 esac
24995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24996 $as_echo "$ac_try_echo") >&5
24997 (eval "$ac_compile") 2>conftest.er1
24998 ac_status=$?
24999 grep -v '^ *+' conftest.er1 >conftest.err
25000 rm -f conftest.er1
25001 cat conftest.err >&5
25002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); } && {
25004 test -z "$ac_c_werror_flag" ||
25005 test ! -s conftest.err
25006 } && test -s conftest.$ac_objext; then
25007 ac_header_compiler=yes
25008 else
25009 $as_echo "$as_me: failed program was:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25012 ac_header_compiler=no
25015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25016 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25017 $as_echo "$ac_header_compiler" >&6; }
25019 # Is the header present?
25020 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25021 $as_echo_n "checking $ac_header presence... " >&6; }
25022 cat >conftest.$ac_ext <<_ACEOF
25023 /* confdefs.h. */
25024 _ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h. */
25028 #include <$ac_header>
25029 _ACEOF
25030 if { (ac_try="$ac_cpp conftest.$ac_ext"
25031 case "(($ac_try" in
25032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25033 *) ac_try_echo=$ac_try;;
25034 esac
25035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25036 $as_echo "$ac_try_echo") >&5
25037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25038 ac_status=$?
25039 grep -v '^ *+' conftest.er1 >conftest.err
25040 rm -f conftest.er1
25041 cat conftest.err >&5
25042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); } >/dev/null && {
25044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25045 test ! -s conftest.err
25046 }; then
25047 ac_header_preproc=yes
25048 else
25049 $as_echo "$as_me: failed program was:" >&5
25050 sed 's/^/| /' conftest.$ac_ext >&5
25052 ac_header_preproc=no
25055 rm -f conftest.err conftest.$ac_ext
25056 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25057 $as_echo "$ac_header_preproc" >&6; }
25059 # So? What about this header?
25060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25061 yes:no: )
25062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25063 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25065 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25066 ac_header_preproc=yes
25068 no:yes:* )
25069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25070 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25072 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25074 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25076 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25078 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25080 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25083 esac
25084 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25085 $as_echo_n "checking for $ac_header... " >&6; }
25086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25087 $as_echo_n "(cached) " >&6
25088 else
25089 eval "$as_ac_Header=\$ac_header_preproc"
25091 ac_res=`eval 'as_val=${'$as_ac_Header'}
25092 $as_echo "$as_val"'`
25093 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25094 $as_echo "$ac_res" >&6; }
25097 as_val=`eval 'as_val=${'$as_ac_Header'}
25098 $as_echo "$as_val"'`
25099 if test "x$as_val" = x""yes; then
25100 cat >>confdefs.h <<_ACEOF
25101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25102 _ACEOF
25106 done
25110 for ac_func in fork vfork
25112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25113 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25114 $as_echo_n "checking for $ac_func... " >&6; }
25115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25116 $as_echo_n "(cached) " >&6
25117 else
25118 cat >conftest.$ac_ext <<_ACEOF
25119 /* confdefs.h. */
25120 _ACEOF
25121 cat confdefs.h >>conftest.$ac_ext
25122 cat >>conftest.$ac_ext <<_ACEOF
25123 /* end confdefs.h. */
25124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25126 #define $ac_func innocuous_$ac_func
25128 /* System header to define __stub macros and hopefully few prototypes,
25129 which can conflict with char $ac_func (); below.
25130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25131 <limits.h> exists even on freestanding compilers. */
25133 #ifdef __STDC__
25134 # include <limits.h>
25135 #else
25136 # include <assert.h>
25137 #endif
25139 #undef $ac_func
25141 /* Override any GCC internal prototype to avoid an error.
25142 Use char because int might match the return type of a GCC
25143 builtin and then its argument prototype would still apply. */
25144 #ifdef __cplusplus
25145 extern "C"
25146 #endif
25147 char $ac_func ();
25148 /* The GNU C library defines this for functions which it implements
25149 to always fail with ENOSYS. Some functions are actually named
25150 something starting with __ and the normal name is an alias. */
25151 #if defined __stub_$ac_func || defined __stub___$ac_func
25152 choke me
25153 #endif
25156 main ()
25158 return $ac_func ();
25160 return 0;
25162 _ACEOF
25163 rm -f conftest.$ac_objext conftest$ac_exeext
25164 if { (ac_try="$ac_link"
25165 case "(($ac_try" in
25166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25167 *) ac_try_echo=$ac_try;;
25168 esac
25169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25170 $as_echo "$ac_try_echo") >&5
25171 (eval "$ac_link") 2>conftest.er1
25172 ac_status=$?
25173 grep -v '^ *+' conftest.er1 >conftest.err
25174 rm -f conftest.er1
25175 cat conftest.err >&5
25176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177 (exit $ac_status); } && {
25178 test -z "$ac_c_werror_flag" ||
25179 test ! -s conftest.err
25180 } && test -s conftest$ac_exeext && {
25181 test "$cross_compiling" = yes ||
25182 $as_test_x conftest$ac_exeext
25183 }; then
25184 eval "$as_ac_var=yes"
25185 else
25186 $as_echo "$as_me: failed program was:" >&5
25187 sed 's/^/| /' conftest.$ac_ext >&5
25189 eval "$as_ac_var=no"
25192 rm -rf conftest.dSYM
25193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25194 conftest$ac_exeext conftest.$ac_ext
25196 ac_res=`eval 'as_val=${'$as_ac_var'}
25197 $as_echo "$as_val"'`
25198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25199 $as_echo "$ac_res" >&6; }
25200 as_val=`eval 'as_val=${'$as_ac_var'}
25201 $as_echo "$as_val"'`
25202 if test "x$as_val" = x""yes; then
25203 cat >>confdefs.h <<_ACEOF
25204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25205 _ACEOF
25208 done
25210 if test "x$ac_cv_func_fork" = xyes; then
25211 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25212 $as_echo_n "checking for working fork... " >&6; }
25213 if test "${ac_cv_func_fork_works+set}" = set; then
25214 $as_echo_n "(cached) " >&6
25215 else
25216 if test "$cross_compiling" = yes; then
25217 ac_cv_func_fork_works=cross
25218 else
25219 cat >conftest.$ac_ext <<_ACEOF
25220 /* confdefs.h. */
25221 _ACEOF
25222 cat confdefs.h >>conftest.$ac_ext
25223 cat >>conftest.$ac_ext <<_ACEOF
25224 /* end confdefs.h. */
25225 $ac_includes_default
25227 main ()
25230 /* By Ruediger Kuhlmann. */
25231 return fork () < 0;
25234 return 0;
25236 _ACEOF
25237 rm -f conftest$ac_exeext
25238 if { (ac_try="$ac_link"
25239 case "(($ac_try" in
25240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25241 *) ac_try_echo=$ac_try;;
25242 esac
25243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25244 $as_echo "$ac_try_echo") >&5
25245 (eval "$ac_link") 2>&5
25246 ac_status=$?
25247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25249 { (case "(($ac_try" in
25250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251 *) ac_try_echo=$ac_try;;
25252 esac
25253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25254 $as_echo "$ac_try_echo") >&5
25255 (eval "$ac_try") 2>&5
25256 ac_status=$?
25257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); }; }; then
25259 ac_cv_func_fork_works=yes
25260 else
25261 $as_echo "$as_me: program exited with status $ac_status" >&5
25262 $as_echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25265 ( exit $ac_status )
25266 ac_cv_func_fork_works=no
25268 rm -rf conftest.dSYM
25269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25274 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25275 $as_echo "$ac_cv_func_fork_works" >&6; }
25277 else
25278 ac_cv_func_fork_works=$ac_cv_func_fork
25280 if test "x$ac_cv_func_fork_works" = xcross; then
25281 case $host in
25282 *-*-amigaos* | *-*-msdosdjgpp*)
25283 # Override, as these systems have only a dummy fork() stub
25284 ac_cv_func_fork_works=no
25287 ac_cv_func_fork_works=yes
25289 esac
25290 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25291 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25293 ac_cv_func_vfork_works=$ac_cv_func_vfork
25294 if test "x$ac_cv_func_vfork" = xyes; then
25295 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25296 $as_echo_n "checking for working vfork... " >&6; }
25297 if test "${ac_cv_func_vfork_works+set}" = set; then
25298 $as_echo_n "(cached) " >&6
25299 else
25300 if test "$cross_compiling" = yes; then
25301 ac_cv_func_vfork_works=cross
25302 else
25303 cat >conftest.$ac_ext <<_ACEOF
25304 /* confdefs.h. */
25305 _ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h. */
25309 /* Thanks to Paul Eggert for this test. */
25310 $ac_includes_default
25311 #include <sys/wait.h>
25312 #ifdef HAVE_VFORK_H
25313 # include <vfork.h>
25314 #endif
25315 /* On some sparc systems, changes by the child to local and incoming
25316 argument registers are propagated back to the parent. The compiler
25317 is told about this with #include <vfork.h>, but some compilers
25318 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25319 static variable whose address is put into a register that is
25320 clobbered by the vfork. */
25321 static void
25322 #ifdef __cplusplus
25323 sparc_address_test (int arg)
25324 # else
25325 sparc_address_test (arg) int arg;
25326 #endif
25328 static pid_t child;
25329 if (!child) {
25330 child = vfork ();
25331 if (child < 0) {
25332 perror ("vfork");
25333 _exit(2);
25335 if (!child) {
25336 arg = getpid();
25337 write(-1, "", 0);
25338 _exit (arg);
25344 main ()
25346 pid_t parent = getpid ();
25347 pid_t child;
25349 sparc_address_test (0);
25351 child = vfork ();
25353 if (child == 0) {
25354 /* Here is another test for sparc vfork register problems. This
25355 test uses lots of local variables, at least as many local
25356 variables as main has allocated so far including compiler
25357 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25358 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25359 reuse the register of parent for one of the local variables,
25360 since it will think that parent can't possibly be used any more
25361 in this routine. Assigning to the local variable will thus
25362 munge parent in the parent process. */
25363 pid_t
25364 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25365 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25366 /* Convince the compiler that p..p7 are live; otherwise, it might
25367 use the same hardware register for all 8 local variables. */
25368 if (p != p1 || p != p2 || p != p3 || p != p4
25369 || p != p5 || p != p6 || p != p7)
25370 _exit(1);
25372 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25373 from child file descriptors. If the child closes a descriptor
25374 before it execs or exits, this munges the parent's descriptor
25375 as well. Test for this by closing stdout in the child. */
25376 _exit(close(fileno(stdout)) != 0);
25377 } else {
25378 int status;
25379 struct stat st;
25381 while (wait(&status) != child)
25383 return (
25384 /* Was there some problem with vforking? */
25385 child < 0
25387 /* Did the child fail? (This shouldn't happen.) */
25388 || status
25390 /* Did the vfork/compiler bug occur? */
25391 || parent != getpid()
25393 /* Did the file descriptor bug occur? */
25394 || fstat(fileno(stdout), &st) != 0
25398 _ACEOF
25399 rm -f conftest$ac_exeext
25400 if { (ac_try="$ac_link"
25401 case "(($ac_try" in
25402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25403 *) ac_try_echo=$ac_try;;
25404 esac
25405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25406 $as_echo "$ac_try_echo") >&5
25407 (eval "$ac_link") 2>&5
25408 ac_status=$?
25409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25411 { (case "(($ac_try" in
25412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25413 *) ac_try_echo=$ac_try;;
25414 esac
25415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25416 $as_echo "$ac_try_echo") >&5
25417 (eval "$ac_try") 2>&5
25418 ac_status=$?
25419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420 (exit $ac_status); }; }; then
25421 ac_cv_func_vfork_works=yes
25422 else
25423 $as_echo "$as_me: program exited with status $ac_status" >&5
25424 $as_echo "$as_me: failed program was:" >&5
25425 sed 's/^/| /' conftest.$ac_ext >&5
25427 ( exit $ac_status )
25428 ac_cv_func_vfork_works=no
25430 rm -rf conftest.dSYM
25431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25436 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25437 $as_echo "$ac_cv_func_vfork_works" >&6; }
25440 if test "x$ac_cv_func_fork_works" = xcross; then
25441 ac_cv_func_vfork_works=$ac_cv_func_vfork
25442 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25443 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25446 if test "x$ac_cv_func_vfork_works" = xyes; then
25448 cat >>confdefs.h <<\_ACEOF
25449 #define HAVE_WORKING_VFORK 1
25450 _ACEOF
25452 else
25454 cat >>confdefs.h <<\_ACEOF
25455 #define vfork fork
25456 _ACEOF
25459 if test "x$ac_cv_func_fork_works" = xyes; then
25461 cat >>confdefs.h <<\_ACEOF
25462 #define HAVE_WORKING_FORK 1
25463 _ACEOF
25468 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25469 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25470 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25471 $as_echo_n "(cached) " >&6
25472 else
25473 cat >conftest.$ac_ext <<_ACEOF
25474 /* confdefs.h. */
25475 _ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h. */
25479 #include <langinfo.h>
25481 main ()
25483 char* cs = nl_langinfo(CODESET);
25485 return 0;
25487 _ACEOF
25488 rm -f conftest.$ac_objext conftest$ac_exeext
25489 if { (ac_try="$ac_link"
25490 case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25493 esac
25494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25495 $as_echo "$ac_try_echo") >&5
25496 (eval "$ac_link") 2>conftest.er1
25497 ac_status=$?
25498 grep -v '^ *+' conftest.er1 >conftest.err
25499 rm -f conftest.er1
25500 cat conftest.err >&5
25501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); } && {
25503 test -z "$ac_c_werror_flag" ||
25504 test ! -s conftest.err
25505 } && test -s conftest$ac_exeext && {
25506 test "$cross_compiling" = yes ||
25507 $as_test_x conftest$ac_exeext
25508 }; then
25509 emacs_cv_langinfo_codeset=yes
25510 else
25511 $as_echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25514 emacs_cv_langinfo_codeset=no
25517 rm -rf conftest.dSYM
25518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25519 conftest$ac_exeext conftest.$ac_ext
25522 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25523 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25524 if test $emacs_cv_langinfo_codeset = yes; then
25526 cat >>confdefs.h <<\_ACEOF
25527 #define HAVE_LANGINFO_CODESET 1
25528 _ACEOF
25532 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25533 $as_echo_n "checking for size_t... " >&6; }
25534 if test "${ac_cv_type_size_t+set}" = set; then
25535 $as_echo_n "(cached) " >&6
25536 else
25537 ac_cv_type_size_t=no
25538 cat >conftest.$ac_ext <<_ACEOF
25539 /* confdefs.h. */
25540 _ACEOF
25541 cat confdefs.h >>conftest.$ac_ext
25542 cat >>conftest.$ac_ext <<_ACEOF
25543 /* end confdefs.h. */
25544 $ac_includes_default
25546 main ()
25548 if (sizeof (size_t))
25549 return 0;
25551 return 0;
25553 _ACEOF
25554 rm -f conftest.$ac_objext
25555 if { (ac_try="$ac_compile"
25556 case "(($ac_try" in
25557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25558 *) ac_try_echo=$ac_try;;
25559 esac
25560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25561 $as_echo "$ac_try_echo") >&5
25562 (eval "$ac_compile") 2>conftest.er1
25563 ac_status=$?
25564 grep -v '^ *+' conftest.er1 >conftest.err
25565 rm -f conftest.er1
25566 cat conftest.err >&5
25567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); } && {
25569 test -z "$ac_c_werror_flag" ||
25570 test ! -s conftest.err
25571 } && test -s conftest.$ac_objext; then
25572 cat >conftest.$ac_ext <<_ACEOF
25573 /* confdefs.h. */
25574 _ACEOF
25575 cat confdefs.h >>conftest.$ac_ext
25576 cat >>conftest.$ac_ext <<_ACEOF
25577 /* end confdefs.h. */
25578 $ac_includes_default
25580 main ()
25582 if (sizeof ((size_t)))
25583 return 0;
25585 return 0;
25587 _ACEOF
25588 rm -f conftest.$ac_objext
25589 if { (ac_try="$ac_compile"
25590 case "(($ac_try" in
25591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25592 *) ac_try_echo=$ac_try;;
25593 esac
25594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25595 $as_echo "$ac_try_echo") >&5
25596 (eval "$ac_compile") 2>conftest.er1
25597 ac_status=$?
25598 grep -v '^ *+' conftest.er1 >conftest.err
25599 rm -f conftest.er1
25600 cat conftest.err >&5
25601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602 (exit $ac_status); } && {
25603 test -z "$ac_c_werror_flag" ||
25604 test ! -s conftest.err
25605 } && test -s conftest.$ac_objext; then
25607 else
25608 $as_echo "$as_me: failed program was:" >&5
25609 sed 's/^/| /' conftest.$ac_ext >&5
25611 ac_cv_type_size_t=yes
25614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25615 else
25616 $as_echo "$as_me: failed program was:" >&5
25617 sed 's/^/| /' conftest.$ac_ext >&5
25622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25624 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25625 $as_echo "$ac_cv_type_size_t" >&6; }
25626 if test "x$ac_cv_type_size_t" = x""yes; then
25628 cat >>confdefs.h <<_ACEOF
25629 #define HAVE_SIZE_T 1
25630 _ACEOF
25636 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25637 $as_echo_n "checking for mbstate_t... " >&6; }
25638 if test "${ac_cv_type_mbstate_t+set}" = set; then
25639 $as_echo_n "(cached) " >&6
25640 else
25641 cat >conftest.$ac_ext <<_ACEOF
25642 /* confdefs.h. */
25643 _ACEOF
25644 cat confdefs.h >>conftest.$ac_ext
25645 cat >>conftest.$ac_ext <<_ACEOF
25646 /* end confdefs.h. */
25647 $ac_includes_default
25648 # include <wchar.h>
25650 main ()
25652 mbstate_t x; return sizeof x;
25654 return 0;
25656 _ACEOF
25657 rm -f conftest.$ac_objext
25658 if { (ac_try="$ac_compile"
25659 case "(($ac_try" in
25660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25661 *) ac_try_echo=$ac_try;;
25662 esac
25663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25664 $as_echo "$ac_try_echo") >&5
25665 (eval "$ac_compile") 2>conftest.er1
25666 ac_status=$?
25667 grep -v '^ *+' conftest.er1 >conftest.err
25668 rm -f conftest.er1
25669 cat conftest.err >&5
25670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); } && {
25672 test -z "$ac_c_werror_flag" ||
25673 test ! -s conftest.err
25674 } && test -s conftest.$ac_objext; then
25675 ac_cv_type_mbstate_t=yes
25676 else
25677 $as_echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25680 ac_cv_type_mbstate_t=no
25683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25685 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25686 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25687 if test $ac_cv_type_mbstate_t = yes; then
25689 cat >>confdefs.h <<\_ACEOF
25690 #define HAVE_MBSTATE_T 1
25691 _ACEOF
25693 else
25695 cat >>confdefs.h <<\_ACEOF
25696 #define mbstate_t int
25697 _ACEOF
25701 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25702 $as_echo_n "checking for C restrict keyword... " >&6; }
25703 if test "${emacs_cv_c_restrict+set}" = set; then
25704 $as_echo_n "(cached) " >&6
25705 else
25706 cat >conftest.$ac_ext <<_ACEOF
25707 /* confdefs.h. */
25708 _ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h. */
25712 void fred (int *restrict x);
25714 main ()
25718 return 0;
25720 _ACEOF
25721 rm -f conftest.$ac_objext
25722 if { (ac_try="$ac_compile"
25723 case "(($ac_try" in
25724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25725 *) ac_try_echo=$ac_try;;
25726 esac
25727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25728 $as_echo "$ac_try_echo") >&5
25729 (eval "$ac_compile") 2>conftest.er1
25730 ac_status=$?
25731 grep -v '^ *+' conftest.er1 >conftest.err
25732 rm -f conftest.er1
25733 cat conftest.err >&5
25734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); } && {
25736 test -z "$ac_c_werror_flag" ||
25737 test ! -s conftest.err
25738 } && test -s conftest.$ac_objext; then
25739 emacs_cv_c_restrict=yes
25740 else
25741 $as_echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25744 cat >conftest.$ac_ext <<_ACEOF
25745 /* confdefs.h. */
25746 _ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h. */
25750 void fred (int *__restrict x);
25752 main ()
25756 return 0;
25758 _ACEOF
25759 rm -f conftest.$ac_objext
25760 if { (ac_try="$ac_compile"
25761 case "(($ac_try" in
25762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25763 *) ac_try_echo=$ac_try;;
25764 esac
25765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25766 $as_echo "$ac_try_echo") >&5
25767 (eval "$ac_compile") 2>conftest.er1
25768 ac_status=$?
25769 grep -v '^ *+' conftest.er1 >conftest.err
25770 rm -f conftest.er1
25771 cat conftest.err >&5
25772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); } && {
25774 test -z "$ac_c_werror_flag" ||
25775 test ! -s conftest.err
25776 } && test -s conftest.$ac_objext; then
25777 emacs_cv_c_restrict=__restrict
25778 else
25779 $as_echo "$as_me: failed program was:" >&5
25780 sed 's/^/| /' conftest.$ac_ext >&5
25782 emacs_cv_c_restrict=no
25785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25790 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25791 $as_echo "$emacs_cv_c_restrict" >&6; }
25792 case "$emacs_cv_c_restrict" in
25793 yes) emacs_restrict=restrict;;
25794 no) emacs_restrict="";;
25795 *) emacs_restrict="$emacs_cv_c_restrict";;
25796 esac
25797 if test "$emacs_restrict" != __restrict; then
25799 cat >>confdefs.h <<_ACEOF
25800 #define __restrict $emacs_restrict
25801 _ACEOF
25805 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25806 $as_echo_n "checking for C restricted array declarations... " >&6; }
25807 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25808 $as_echo_n "(cached) " >&6
25809 else
25810 cat >conftest.$ac_ext <<_ACEOF
25811 /* confdefs.h. */
25812 _ACEOF
25813 cat confdefs.h >>conftest.$ac_ext
25814 cat >>conftest.$ac_ext <<_ACEOF
25815 /* end confdefs.h. */
25816 void fred (int x[__restrict]);
25818 main ()
25822 return 0;
25824 _ACEOF
25825 rm -f conftest.$ac_objext
25826 if { (ac_try="$ac_compile"
25827 case "(($ac_try" in
25828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25829 *) ac_try_echo=$ac_try;;
25830 esac
25831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25832 $as_echo "$ac_try_echo") >&5
25833 (eval "$ac_compile") 2>conftest.er1
25834 ac_status=$?
25835 grep -v '^ *+' conftest.er1 >conftest.err
25836 rm -f conftest.er1
25837 cat conftest.err >&5
25838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); } && {
25840 test -z "$ac_c_werror_flag" ||
25841 test ! -s conftest.err
25842 } && test -s conftest.$ac_objext; then
25843 emacs_cv_c_restrict_arr=yes
25844 else
25845 $as_echo "$as_me: failed program was:" >&5
25846 sed 's/^/| /' conftest.$ac_ext >&5
25848 emacs_cv_c_restrict_arr=no
25851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25853 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25854 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25855 if test "$emacs_cv_c_restrict_arr" = yes; then
25857 cat >>confdefs.h <<\_ACEOF
25858 #define __restrict_arr __restrict
25859 _ACEOF
25865 # Set up the CFLAGS for real compilation, so we can substitute it.
25866 CFLAGS="$REAL_CFLAGS"
25867 CPPFLAGS="$REAL_CPPFLAGS"
25869 #### Find out which version of Emacs this is.
25870 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25871 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25872 if test x"${version}" = x; then
25873 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25874 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25875 { (exit 1); exit 1; }; }
25877 if test x"${version}" != x"$PACKAGE_VERSION"; then
25878 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25879 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25882 ### Specify what sort of things we'll be editing into Makefile and config.h.
25883 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25928 cat >>confdefs.h <<_ACEOF
25929 #define EMACS_CONFIGURATION "${canonical}"
25930 _ACEOF
25933 cat >>confdefs.h <<_ACEOF
25934 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25935 _ACEOF
25938 cat >>confdefs.h <<_ACEOF
25939 #define config_machfile "${machfile}"
25940 _ACEOF
25943 cat >>confdefs.h <<_ACEOF
25944 #define config_opsysfile "${opsysfile}"
25945 _ACEOF
25948 cat >>confdefs.h <<_ACEOF
25949 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25950 _ACEOF
25953 cat >>confdefs.h <<_ACEOF
25954 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25955 _ACEOF
25958 cat >>confdefs.h <<_ACEOF
25959 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25960 _ACEOF
25963 cat >>confdefs.h <<_ACEOF
25964 #define UNEXEC_SRC ${UNEXEC_SRC}
25965 _ACEOF
25968 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25970 cat >>confdefs.h <<\_ACEOF
25971 #define HAVE_X_WINDOWS 1
25972 _ACEOF
25975 if test "${USE_X_TOOLKIT}" != "none" ; then
25977 cat >>confdefs.h <<\_ACEOF
25978 #define USE_X_TOOLKIT 1
25979 _ACEOF
25981 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25983 cat >>confdefs.h <<\_ACEOF
25984 #define USE_LUCID 1
25985 _ACEOF
25987 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25989 cat >>confdefs.h <<\_ACEOF
25990 #define USE_MOTIF 1
25991 _ACEOF
25995 if test "${HAVE_X11}" = "yes" ; then
25997 cat >>confdefs.h <<\_ACEOF
25998 #define HAVE_X11 1
25999 _ACEOF
26002 if test "${HAVE_MENUS}" = "yes" ; then
26004 cat >>confdefs.h <<\_ACEOF
26005 #define HAVE_MENUS 1
26006 _ACEOF
26009 if test "${GNU_MALLOC}" = "yes" ; then
26011 cat >>confdefs.h <<\_ACEOF
26012 #define GNU_MALLOC 1
26013 _ACEOF
26016 if test "${REL_ALLOC}" = "yes" ; then
26018 cat >>confdefs.h <<\_ACEOF
26019 #define REL_ALLOC 1
26020 _ACEOF
26029 #### Report on what we decided to do.
26030 #### Report GTK as a toolkit, even if it doesn't use Xt.
26031 #### It makes printing result more understandable as using GTK sets
26032 #### toolkit_scroll_bars to yes by default.
26033 if test "${HAVE_GTK}" = "yes"; then
26034 USE_X_TOOLKIT=GTK
26037 echo "
26038 Configured for \`${canonical}'.
26040 Where should the build process find the source code? ${srcdir}
26041 What operating system and machine description files should Emacs use?
26042 \`${opsysfile}' and \`${machfile}'
26043 What compiler should emacs be built with? ${CC} ${CFLAGS}
26044 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26045 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26046 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26047 What window system should Emacs use? ${window_system}
26048 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26050 if test -n "${x_includes}"; then
26051 echo " Where do we find X Windows header files? ${x_includes}"
26052 else
26053 echo " Where do we find X Windows header files? Standard dirs"
26055 if test -n "${x_libraries}"; then
26056 echo " Where do we find X Windows libraries? ${x_libraries}"
26057 else
26058 echo " Where do we find X Windows libraries? Standard dirs"
26061 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26062 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26063 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26064 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26065 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26066 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26067 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26068 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26069 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26070 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26071 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26073 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26074 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26075 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26076 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26078 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26079 echo
26081 if test $USE_XASSERTS = yes; then
26082 echo " Compiling with asserts turned on."
26083 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26086 echo
26088 if test "$HAVE_NS" = "yes"; then
26089 echo
26090 echo "You must run \"make install\" in order to test the built application.
26091 The installed application will go to nextstep/Emacs.app and can be
26092 run or moved from there."
26093 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26094 echo "The application will be fully self-contained."
26095 else
26096 echo "The lisp resources for the application will be installed under ${prefix}.
26097 You may need to run \"make install\" with sudo. The application will fail
26098 to run if these resources are not installed."
26100 echo
26103 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26104 echo "D-Bus integration has been tested for GNU/Linux only."
26105 echo
26109 # Remove any trailing slashes in these variables.
26110 test "${prefix}" != NONE &&
26111 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26112 test "${exec_prefix}" != NONE &&
26113 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26115 # Now get this: Some word that is part of the ${srcdir} directory name
26116 # or the ${configuration} value might, just might, happen to be an
26117 # identifier like `sun4' or `i386' or something, and be predefined by
26118 # the C preprocessor to some helpful value like 1, or maybe the empty
26119 # string. Needless to say consequent macro substitutions are less
26120 # than conducive to the makefile finding the correct directory.
26121 cpp_undefs="`echo $srcdir $configuration $canonical |
26122 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26123 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26125 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26126 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26127 ## from Makefile.c can correctly provide the arg `-traditional' to the
26128 ## C preprocessor.
26130 cat >conftest.$ac_ext <<_ACEOF
26131 /* confdefs.h. */
26132 _ACEOF
26133 cat confdefs.h >>conftest.$ac_ext
26134 cat >>conftest.$ac_ext <<_ACEOF
26135 /* end confdefs.h. */
26136 yes..yes
26137 _ACEOF
26138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26139 $EGREP "yes..yes" >/dev/null 2>&1; then
26140 CPP_NEED_TRADITIONAL=no
26141 else
26142 CPP_NEED_TRADITIONAL=yes
26144 rm -f conftest*
26147 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"
26149 ac_config_commands="$ac_config_commands default"
26151 cat >confcache <<\_ACEOF
26152 # This file is a shell script that caches the results of configure
26153 # tests run on this system so they can be shared between configure
26154 # scripts and configure runs, see configure's option --config-cache.
26155 # It is not useful on other systems. If it contains results you don't
26156 # want to keep, you may remove or edit it.
26158 # config.status only pays attention to the cache file if you give it
26159 # the --recheck option to rerun configure.
26161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26163 # following values.
26165 _ACEOF
26167 # The following way of writing the cache mishandles newlines in values,
26168 # but we know of no workaround that is simple, portable, and efficient.
26169 # So, we kill variables containing newlines.
26170 # Ultrix sh set writes to stderr and can't be redirected directly,
26171 # and sets the high bit in the cache file unless we assign to the vars.
26173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26174 eval ac_val=\$$ac_var
26175 case $ac_val in #(
26176 *${as_nl}*)
26177 case $ac_var in #(
26178 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26179 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26180 esac
26181 case $ac_var in #(
26182 _ | IFS | as_nl) ;; #(
26183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26184 *) $as_unset $ac_var ;;
26185 esac ;;
26186 esac
26187 done
26189 (set) 2>&1 |
26190 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26191 *${as_nl}ac_space=\ *)
26192 # `set' does not quote correctly, so add quotes (double-quote
26193 # substitution turns \\\\ into \\, and sed turns \\ into \).
26194 sed -n \
26195 "s/'/'\\\\''/g;
26196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26197 ;; #(
26199 # `set' quotes correctly as required by POSIX, so do not add quotes.
26200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26202 esac |
26203 sort
26205 sed '
26206 /^ac_cv_env_/b end
26207 t clear
26208 :clear
26209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26210 t end
26211 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26212 :end' >>confcache
26213 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26214 if test -w "$cache_file"; then
26215 test "x$cache_file" != "x/dev/null" &&
26216 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26217 $as_echo "$as_me: updating cache $cache_file" >&6;}
26218 cat confcache >$cache_file
26219 else
26220 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26221 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26224 rm -f confcache
26226 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26227 # Let make expand exec_prefix.
26228 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26230 DEFS=-DHAVE_CONFIG_H
26232 ac_libobjs=
26233 ac_ltlibobjs=
26234 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26235 # 1. Remove the extension, and $U if already installed.
26236 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26237 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26238 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26239 # will be set to the directory where LIBOBJS objects are built.
26240 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26241 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26242 done
26243 LIBOBJS=$ac_libobjs
26245 LTLIBOBJS=$ac_ltlibobjs
26249 : ${CONFIG_STATUS=./config.status}
26250 ac_write_fail=0
26251 ac_clean_files_save=$ac_clean_files
26252 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26253 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26254 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26255 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26256 #! $SHELL
26257 # Generated by $as_me.
26258 # Run this file to recreate the current configuration.
26259 # Compiler output produced by configure, useful for debugging
26260 # configure, is in config.log if it exists.
26262 debug=false
26263 ac_cs_recheck=false
26264 ac_cs_silent=false
26265 SHELL=\${CONFIG_SHELL-$SHELL}
26266 _ACEOF
26268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26269 ## --------------------- ##
26270 ## M4sh Initialization. ##
26271 ## --------------------- ##
26273 # Be more Bourne compatible
26274 DUALCASE=1; export DUALCASE # for MKS sh
26275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26276 emulate sh
26277 NULLCMD=:
26278 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26279 # is contrary to our usage. Disable this feature.
26280 alias -g '${1+"$@"}'='"$@"'
26281 setopt NO_GLOB_SUBST
26282 else
26283 case `(set -o) 2>/dev/null` in
26284 *posix*) set -o posix ;;
26285 esac
26292 # PATH needs CR
26293 # Avoid depending upon Character Ranges.
26294 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26295 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26296 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26297 as_cr_digits='0123456789'
26298 as_cr_alnum=$as_cr_Letters$as_cr_digits
26300 as_nl='
26302 export as_nl
26303 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26304 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26305 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26306 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26307 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26308 as_echo='printf %s\n'
26309 as_echo_n='printf %s'
26310 else
26311 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26312 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26313 as_echo_n='/usr/ucb/echo -n'
26314 else
26315 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26316 as_echo_n_body='eval
26317 arg=$1;
26318 case $arg in
26319 *"$as_nl"*)
26320 expr "X$arg" : "X\\(.*\\)$as_nl";
26321 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26322 esac;
26323 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26325 export as_echo_n_body
26326 as_echo_n='sh -c $as_echo_n_body as_echo'
26328 export as_echo_body
26329 as_echo='sh -c $as_echo_body as_echo'
26332 # The user is always right.
26333 if test "${PATH_SEPARATOR+set}" != set; then
26334 PATH_SEPARATOR=:
26335 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26336 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26337 PATH_SEPARATOR=';'
26341 # Support unset when possible.
26342 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26343 as_unset=unset
26344 else
26345 as_unset=false
26349 # IFS
26350 # We need space, tab and new line, in precisely that order. Quoting is
26351 # there to prevent editors from complaining about space-tab.
26352 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26353 # splitting by setting IFS to empty value.)
26354 IFS=" "" $as_nl"
26356 # Find who we are. Look in the path if we contain no directory separator.
26357 case $0 in
26358 *[\\/]* ) as_myself=$0 ;;
26359 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26360 for as_dir in $PATH
26362 IFS=$as_save_IFS
26363 test -z "$as_dir" && as_dir=.
26364 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26365 done
26366 IFS=$as_save_IFS
26369 esac
26370 # We did not find ourselves, most probably we were run as `sh COMMAND'
26371 # in which case we are not to be found in the path.
26372 if test "x$as_myself" = x; then
26373 as_myself=$0
26375 if test ! -f "$as_myself"; then
26376 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26377 { (exit 1); exit 1; }
26380 # Work around bugs in pre-3.0 UWIN ksh.
26381 for as_var in ENV MAIL MAILPATH
26382 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26383 done
26384 PS1='$ '
26385 PS2='> '
26386 PS4='+ '
26388 # NLS nuisances.
26389 LC_ALL=C
26390 export LC_ALL
26391 LANGUAGE=C
26392 export LANGUAGE
26394 # Required to use basename.
26395 if expr a : '\(a\)' >/dev/null 2>&1 &&
26396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26397 as_expr=expr
26398 else
26399 as_expr=false
26402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26403 as_basename=basename
26404 else
26405 as_basename=false
26409 # Name of the executable.
26410 as_me=`$as_basename -- "$0" ||
26411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26412 X"$0" : 'X\(//\)$' \| \
26413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26414 $as_echo X/"$0" |
26415 sed '/^.*\/\([^/][^/]*\)\/*$/{
26416 s//\1/
26419 /^X\/\(\/\/\)$/{
26420 s//\1/
26423 /^X\/\(\/\).*/{
26424 s//\1/
26427 s/.*/./; q'`
26429 # CDPATH.
26430 $as_unset CDPATH
26434 as_lineno_1=$LINENO
26435 as_lineno_2=$LINENO
26436 test "x$as_lineno_1" != "x$as_lineno_2" &&
26437 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26439 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26440 # uniformly replaced by the line number. The first 'sed' inserts a
26441 # line-number line after each line using $LINENO; the second 'sed'
26442 # does the real work. The second script uses 'N' to pair each
26443 # line-number line with the line containing $LINENO, and appends
26444 # trailing '-' during substitution so that $LINENO is not a special
26445 # case at line end.
26446 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26447 # scripts with optimization help from Paolo Bonzini. Blame Lee
26448 # E. McMahon (1931-1989) for sed's syntax. :-)
26449 sed -n '
26451 /[$]LINENO/=
26452 ' <$as_myself |
26453 sed '
26454 s/[$]LINENO.*/&-/
26455 t lineno
26457 :lineno
26459 :loop
26460 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26461 t loop
26462 s/-\n.*//
26463 ' >$as_me.lineno &&
26464 chmod +x "$as_me.lineno" ||
26465 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26466 { (exit 1); exit 1; }; }
26468 # Don't try to exec as it changes $[0], causing all sort of problems
26469 # (the dirname of $[0] is not the place where we might find the
26470 # original and so on. Autoconf is especially sensitive to this).
26471 . "./$as_me.lineno"
26472 # Exit status is that of the last command.
26473 exit
26477 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26478 as_dirname=dirname
26479 else
26480 as_dirname=false
26483 ECHO_C= ECHO_N= ECHO_T=
26484 case `echo -n x` in
26485 -n*)
26486 case `echo 'x\c'` in
26487 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26488 *) ECHO_C='\c';;
26489 esac;;
26491 ECHO_N='-n';;
26492 esac
26493 if expr a : '\(a\)' >/dev/null 2>&1 &&
26494 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26495 as_expr=expr
26496 else
26497 as_expr=false
26500 rm -f conf$$ conf$$.exe conf$$.file
26501 if test -d conf$$.dir; then
26502 rm -f conf$$.dir/conf$$.file
26503 else
26504 rm -f conf$$.dir
26505 mkdir conf$$.dir 2>/dev/null
26507 if (echo >conf$$.file) 2>/dev/null; then
26508 if ln -s conf$$.file conf$$ 2>/dev/null; then
26509 as_ln_s='ln -s'
26510 # ... but there are two gotchas:
26511 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26512 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26513 # In both cases, we have to default to `cp -p'.
26514 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26515 as_ln_s='cp -p'
26516 elif ln conf$$.file conf$$ 2>/dev/null; then
26517 as_ln_s=ln
26518 else
26519 as_ln_s='cp -p'
26521 else
26522 as_ln_s='cp -p'
26524 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26525 rmdir conf$$.dir 2>/dev/null
26527 if mkdir -p . 2>/dev/null; then
26528 as_mkdir_p=:
26529 else
26530 test -d ./-p && rmdir ./-p
26531 as_mkdir_p=false
26534 if test -x / >/dev/null 2>&1; then
26535 as_test_x='test -x'
26536 else
26537 if ls -dL / >/dev/null 2>&1; then
26538 as_ls_L_option=L
26539 else
26540 as_ls_L_option=
26542 as_test_x='
26543 eval sh -c '\''
26544 if test -d "$1"; then
26545 test -d "$1/.";
26546 else
26547 case $1 in
26548 -*)set "./$1";;
26549 esac;
26550 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26551 ???[sx]*):;;*)false;;esac;fi
26552 '\'' sh
26555 as_executable_p=$as_test_x
26557 # Sed expression to map a string onto a valid CPP name.
26558 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26560 # Sed expression to map a string onto a valid variable name.
26561 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26564 exec 6>&1
26566 # Save the log message, to keep $[0] and so on meaningful, and to
26567 # report actual input values of CONFIG_FILES etc. instead of their
26568 # values after options handling.
26569 ac_log="
26570 This file was extended by emacs $as_me 24.0.50, which was
26571 generated by GNU Autoconf 2.63. Invocation command line was
26573 CONFIG_FILES = $CONFIG_FILES
26574 CONFIG_HEADERS = $CONFIG_HEADERS
26575 CONFIG_LINKS = $CONFIG_LINKS
26576 CONFIG_COMMANDS = $CONFIG_COMMANDS
26577 $ $0 $@
26579 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26582 _ACEOF
26584 case $ac_config_files in *"
26585 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26586 esac
26588 case $ac_config_headers in *"
26589 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26590 esac
26593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26594 # Files that config.status was made for.
26595 config_files="$ac_config_files"
26596 config_headers="$ac_config_headers"
26597 config_commands="$ac_config_commands"
26599 _ACEOF
26601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26602 ac_cs_usage="\
26603 \`$as_me' instantiates files from templates according to the
26604 current configuration.
26606 Usage: $0 [OPTION]... [FILE]...
26608 -h, --help print this help, then exit
26609 -V, --version print version number and configuration settings, then exit
26610 -q, --quiet, --silent
26611 do not print progress messages
26612 -d, --debug don't remove temporary files
26613 --recheck update $as_me by reconfiguring in the same conditions
26614 --file=FILE[:TEMPLATE]
26615 instantiate the configuration file FILE
26616 --header=FILE[:TEMPLATE]
26617 instantiate the configuration header FILE
26619 Configuration files:
26620 $config_files
26622 Configuration headers:
26623 $config_headers
26625 Configuration commands:
26626 $config_commands
26628 Report bugs to <bug-autoconf@gnu.org>."
26630 _ACEOF
26631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26632 ac_cs_version="\\
26633 emacs config.status 24.0.50
26634 configured by $0, generated by GNU Autoconf 2.63,
26635 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26637 Copyright (C) 2008 Free Software Foundation, Inc.
26638 This config.status script is free software; the Free Software Foundation
26639 gives unlimited permission to copy, distribute and modify it."
26641 ac_pwd='$ac_pwd'
26642 srcdir='$srcdir'
26643 INSTALL='$INSTALL'
26644 test -n "\$AWK" || AWK=awk
26645 _ACEOF
26647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26648 # The default lists apply if the user does not specify any file.
26649 ac_need_defaults=:
26650 while test $# != 0
26652 case $1 in
26653 --*=*)
26654 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26655 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26656 ac_shift=:
26659 ac_option=$1
26660 ac_optarg=$2
26661 ac_shift=shift
26663 esac
26665 case $ac_option in
26666 # Handling of the options.
26667 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26668 ac_cs_recheck=: ;;
26669 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26670 $as_echo "$ac_cs_version"; exit ;;
26671 --debug | --debu | --deb | --de | --d | -d )
26672 debug=: ;;
26673 --file | --fil | --fi | --f )
26674 $ac_shift
26675 case $ac_optarg in
26676 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26677 esac
26678 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26679 ac_need_defaults=false;;
26680 --header | --heade | --head | --hea )
26681 $ac_shift
26682 case $ac_optarg in
26683 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26684 esac
26685 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26686 ac_need_defaults=false;;
26687 --he | --h)
26688 # Conflict between --help and --header
26689 { $as_echo "$as_me: error: ambiguous option: $1
26690 Try \`$0 --help' for more information." >&2
26691 { (exit 1); exit 1; }; };;
26692 --help | --hel | -h )
26693 $as_echo "$ac_cs_usage"; exit ;;
26694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26695 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26696 ac_cs_silent=: ;;
26698 # This is an error.
26699 -*) { $as_echo "$as_me: error: unrecognized option: $1
26700 Try \`$0 --help' for more information." >&2
26701 { (exit 1); exit 1; }; } ;;
26703 *) ac_config_targets="$ac_config_targets $1"
26704 ac_need_defaults=false ;;
26706 esac
26707 shift
26708 done
26710 ac_configure_extra_args=
26712 if $ac_cs_silent; then
26713 exec 6>/dev/null
26714 ac_configure_extra_args="$ac_configure_extra_args --silent"
26717 _ACEOF
26718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26719 if \$ac_cs_recheck; then
26720 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26721 shift
26722 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26723 CONFIG_SHELL='$SHELL'
26724 export CONFIG_SHELL
26725 exec "\$@"
26728 _ACEOF
26729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26730 exec 5>>config.log
26732 echo
26733 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26734 ## Running $as_me. ##
26735 _ASBOX
26736 $as_echo "$ac_log"
26737 } >&5
26739 _ACEOF
26740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26742 # INIT-COMMANDS
26744 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26746 _ACEOF
26748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26750 # Handling of arguments.
26751 for ac_config_target in $ac_config_targets
26753 case $ac_config_target in
26754 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26755 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26756 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26757 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26758 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26759 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26760 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26761 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26762 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26763 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26764 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26765 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26766 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26768 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26769 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26770 { (exit 1); exit 1; }; };;
26771 esac
26772 done
26775 # If the user did not use the arguments to specify the items to instantiate,
26776 # then the envvar interface is used. Set only those that are not.
26777 # We use the long form for the default assignment because of an extremely
26778 # bizarre bug on SunOS 4.1.3.
26779 if $ac_need_defaults; then
26780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26785 # Have a temporary directory for convenience. Make it in the build tree
26786 # simply because there is no reason against having it here, and in addition,
26787 # creating and moving files from /tmp can sometimes cause problems.
26788 # Hook for its removal unless debugging.
26789 # Note that there is a small window in which the directory will not be cleaned:
26790 # after its creation but before its name has been assigned to `$tmp'.
26791 $debug ||
26793 tmp=
26794 trap 'exit_status=$?
26795 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26797 trap '{ (exit 1); exit 1; }' 1 2 13 15
26799 # Create a (secure) tmp directory for tmp files.
26802 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26803 test -n "$tmp" && test -d "$tmp"
26804 } ||
26806 tmp=./conf$$-$RANDOM
26807 (umask 077 && mkdir "$tmp")
26808 } ||
26810 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26811 { (exit 1); exit 1; }
26814 # Set up the scripts for CONFIG_FILES section.
26815 # No need to generate them if there are no CONFIG_FILES.
26816 # This happens for instance with `./config.status config.h'.
26817 if test -n "$CONFIG_FILES"; then
26820 ac_cr=' '
26821 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26822 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26823 ac_cs_awk_cr='\\r'
26824 else
26825 ac_cs_awk_cr=$ac_cr
26828 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26829 _ACEOF
26833 echo "cat >conf$$subs.awk <<_ACEOF" &&
26834 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26835 echo "_ACEOF"
26836 } >conf$$subs.sh ||
26837 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26838 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26839 { (exit 1); exit 1; }; }
26840 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26841 ac_delim='%!_!# '
26842 for ac_last_try in false false false false false :; do
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; }; }
26848 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26849 if test $ac_delim_n = $ac_delim_num; then
26850 break
26851 elif $ac_last_try; then
26852 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26853 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26854 { (exit 1); exit 1; }; }
26855 else
26856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26858 done
26859 rm -f conf$$subs.sh
26861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26862 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26863 _ACEOF
26864 sed -n '
26866 s/^/S["/; s/!.*/"]=/
26869 s/^[^!]*!//
26870 :repl
26871 t repl
26872 s/'"$ac_delim"'$//
26873 t delim
26876 s/\(.\{148\}\).*/\1/
26877 t more1
26878 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26881 b repl
26882 :more1
26883 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26886 s/.\{148\}//
26887 t nl
26888 :delim
26890 s/\(.\{148\}\).*/\1/
26891 t more2
26892 s/["\\]/\\&/g; s/^/"/; s/$/"/
26895 :more2
26896 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26899 s/.\{148\}//
26900 t delim
26901 ' <conf$$subs.awk | sed '
26902 /^[^""]/{
26904 s/\n//
26906 ' >>$CONFIG_STATUS || ac_write_fail=1
26907 rm -f conf$$subs.awk
26908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26909 _ACAWK
26910 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26911 for (key in S) S_is_set[key] = 1
26912 FS = "\a"
26916 line = $ 0
26917 nfields = split(line, field, "@")
26918 substed = 0
26919 len = length(field[1])
26920 for (i = 2; i < nfields; i++) {
26921 key = field[i]
26922 keylen = length(key)
26923 if (S_is_set[key]) {
26924 value = S[key]
26925 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26926 len += length(value) + length(field[++i])
26927 substed = 1
26928 } else
26929 len += 1 + keylen
26932 print line
26935 _ACAWK
26936 _ACEOF
26937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26938 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26939 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26940 else
26942 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26943 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26944 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26945 { (exit 1); exit 1; }; }
26946 _ACEOF
26948 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26949 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26950 # trailing colons and then remove the whole line if VPATH becomes empty
26951 # (actually we leave an empty line to preserve line numbers).
26952 if test "x$srcdir" = x.; then
26953 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26954 s/:*\$(srcdir):*/:/
26955 s/:*\${srcdir}:*/:/
26956 s/:*@srcdir@:*/:/
26957 s/^\([^=]*=[ ]*\):*/\1/
26958 s/:*$//
26959 s/^[^=]*=[ ]*$//
26963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26964 fi # test -n "$CONFIG_FILES"
26966 # Set up the scripts for CONFIG_HEADERS section.
26967 # No need to generate them if there are no CONFIG_HEADERS.
26968 # This happens for instance with `./config.status Makefile'.
26969 if test -n "$CONFIG_HEADERS"; then
26970 cat >"$tmp/defines.awk" <<\_ACAWK ||
26971 BEGIN {
26972 _ACEOF
26974 # Transform confdefs.h into an awk script `defines.awk', embedded as
26975 # here-document in config.status, that substitutes the proper values into
26976 # config.h.in to produce config.h.
26978 # Create a delimiter string that does not exist in confdefs.h, to ease
26979 # handling of long lines.
26980 ac_delim='%!_!# '
26981 for ac_last_try in false false :; do
26982 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26983 if test -z "$ac_t"; then
26984 break
26985 elif $ac_last_try; then
26986 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26987 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26988 { (exit 1); exit 1; }; }
26989 else
26990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26992 done
26994 # For the awk script, D is an array of macro values keyed by name,
26995 # likewise P contains macro parameters if any. Preserve backslash
26996 # newline sequences.
26998 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26999 sed -n '
27000 s/.\{148\}/&'"$ac_delim"'/g
27001 t rset
27002 :rset
27003 s/^[ ]*#[ ]*define[ ][ ]*/ /
27004 t def
27006 :def
27007 s/\\$//
27008 t bsnl
27009 s/["\\]/\\&/g
27010 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27011 D["\1"]=" \3"/p
27012 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27014 :bsnl
27015 s/["\\]/\\&/g
27016 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27017 D["\1"]=" \3\\\\\\n"\\/p
27018 t cont
27019 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27020 t cont
27022 :cont
27024 s/.\{148\}/&'"$ac_delim"'/g
27025 t clear
27026 :clear
27027 s/\\$//
27028 t bsnlc
27029 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27031 :bsnlc
27032 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27033 b cont
27034 ' <confdefs.h | sed '
27035 s/'"$ac_delim"'/"\\\
27036 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27039 for (key in D) D_is_set[key] = 1
27040 FS = "\a"
27042 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27043 line = \$ 0
27044 split(line, arg, " ")
27045 if (arg[1] == "#") {
27046 defundef = arg[2]
27047 mac1 = arg[3]
27048 } else {
27049 defundef = substr(arg[1], 2)
27050 mac1 = arg[2]
27052 split(mac1, mac2, "(") #)
27053 macro = mac2[1]
27054 prefix = substr(line, 1, index(line, defundef) - 1)
27055 if (D_is_set[macro]) {
27056 # Preserve the white space surrounding the "#".
27057 print prefix "define", macro P[macro] D[macro]
27058 next
27059 } else {
27060 # Replace #undef with comments. This is necessary, for example,
27061 # in the case of _POSIX_SOURCE, which is predefined and required
27062 # on some systems where configure will not decide to define it.
27063 if (defundef == "undef") {
27064 print "/*", prefix defundef, macro, "*/"
27065 next
27069 { print }
27070 _ACAWK
27071 _ACEOF
27072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27073 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27074 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27075 { (exit 1); exit 1; }; }
27076 fi # test -n "$CONFIG_HEADERS"
27079 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27080 shift
27081 for ac_tag
27083 case $ac_tag in
27084 :[FHLC]) ac_mode=$ac_tag; continue;;
27085 esac
27086 case $ac_mode$ac_tag in
27087 :[FHL]*:*);;
27088 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27089 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27090 { (exit 1); exit 1; }; };;
27091 :[FH]-) ac_tag=-:-;;
27092 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27093 esac
27094 ac_save_IFS=$IFS
27095 IFS=:
27096 set x $ac_tag
27097 IFS=$ac_save_IFS
27098 shift
27099 ac_file=$1
27100 shift
27102 case $ac_mode in
27103 :L) ac_source=$1;;
27104 :[FH])
27105 ac_file_inputs=
27106 for ac_f
27108 case $ac_f in
27109 -) ac_f="$tmp/stdin";;
27110 *) # Look for the file first in the build tree, then in the source tree
27111 # (if the path is not absolute). The absolute path cannot be DOS-style,
27112 # because $ac_f cannot contain `:'.
27113 test -f "$ac_f" ||
27114 case $ac_f in
27115 [\\/$]*) false;;
27116 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27117 esac ||
27118 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27119 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27120 { (exit 1); exit 1; }; };;
27121 esac
27122 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27123 ac_file_inputs="$ac_file_inputs '$ac_f'"
27124 done
27126 # Let's still pretend it is `configure' which instantiates (i.e., don't
27127 # use $as_me), people would be surprised to read:
27128 # /* config.h. Generated by config.status. */
27129 configure_input='Generated from '`
27130 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27131 `' by configure.'
27132 if test x"$ac_file" != x-; then
27133 configure_input="$ac_file. $configure_input"
27134 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27135 $as_echo "$as_me: creating $ac_file" >&6;}
27137 # Neutralize special characters interpreted by sed in replacement strings.
27138 case $configure_input in #(
27139 *\&* | *\|* | *\\* )
27140 ac_sed_conf_input=`$as_echo "$configure_input" |
27141 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27142 *) ac_sed_conf_input=$configure_input;;
27143 esac
27145 case $ac_tag in
27146 *:-:* | *:-) cat >"$tmp/stdin" \
27147 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27148 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27149 { (exit 1); exit 1; }; } ;;
27150 esac
27152 esac
27154 ac_dir=`$as_dirname -- "$ac_file" ||
27155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27156 X"$ac_file" : 'X\(//\)[^/]' \| \
27157 X"$ac_file" : 'X\(//\)$' \| \
27158 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27159 $as_echo X"$ac_file" |
27160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27161 s//\1/
27164 /^X\(\/\/\)[^/].*/{
27165 s//\1/
27168 /^X\(\/\/\)$/{
27169 s//\1/
27172 /^X\(\/\).*/{
27173 s//\1/
27176 s/.*/./; q'`
27177 { as_dir="$ac_dir"
27178 case $as_dir in #(
27179 -*) as_dir=./$as_dir;;
27180 esac
27181 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27182 as_dirs=
27183 while :; do
27184 case $as_dir in #(
27185 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27186 *) as_qdir=$as_dir;;
27187 esac
27188 as_dirs="'$as_qdir' $as_dirs"
27189 as_dir=`$as_dirname -- "$as_dir" ||
27190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27191 X"$as_dir" : 'X\(//\)[^/]' \| \
27192 X"$as_dir" : 'X\(//\)$' \| \
27193 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27194 $as_echo X"$as_dir" |
27195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27196 s//\1/
27199 /^X\(\/\/\)[^/].*/{
27200 s//\1/
27203 /^X\(\/\/\)$/{
27204 s//\1/
27207 /^X\(\/\).*/{
27208 s//\1/
27211 s/.*/./; q'`
27212 test -d "$as_dir" && break
27213 done
27214 test -z "$as_dirs" || eval "mkdir $as_dirs"
27215 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27216 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27217 { (exit 1); exit 1; }; }; }
27218 ac_builddir=.
27220 case "$ac_dir" in
27221 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27223 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27224 # A ".." for each directory in $ac_dir_suffix.
27225 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27226 case $ac_top_builddir_sub in
27227 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27228 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27229 esac ;;
27230 esac
27231 ac_abs_top_builddir=$ac_pwd
27232 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27233 # for backward compatibility:
27234 ac_top_builddir=$ac_top_build_prefix
27236 case $srcdir in
27237 .) # We are building in place.
27238 ac_srcdir=.
27239 ac_top_srcdir=$ac_top_builddir_sub
27240 ac_abs_top_srcdir=$ac_pwd ;;
27241 [\\/]* | ?:[\\/]* ) # Absolute name.
27242 ac_srcdir=$srcdir$ac_dir_suffix;
27243 ac_top_srcdir=$srcdir
27244 ac_abs_top_srcdir=$srcdir ;;
27245 *) # Relative name.
27246 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27247 ac_top_srcdir=$ac_top_build_prefix$srcdir
27248 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27249 esac
27250 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27253 case $ac_mode in
27256 # CONFIG_FILE
27259 case $INSTALL in
27260 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27261 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27262 esac
27263 _ACEOF
27265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27266 # If the template does not know about datarootdir, expand it.
27267 # FIXME: This hack should be removed a few years after 2.60.
27268 ac_datarootdir_hack=; ac_datarootdir_seen=
27270 ac_sed_dataroot='
27271 /datarootdir/ {
27275 /@datadir@/p
27276 /@docdir@/p
27277 /@infodir@/p
27278 /@localedir@/p
27279 /@mandir@/p
27281 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27282 *datarootdir*) ac_datarootdir_seen=yes;;
27283 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27284 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27285 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27286 _ACEOF
27287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27288 ac_datarootdir_hack='
27289 s&@datadir@&$datadir&g
27290 s&@docdir@&$docdir&g
27291 s&@infodir@&$infodir&g
27292 s&@localedir@&$localedir&g
27293 s&@mandir@&$mandir&g
27294 s&\\\${datarootdir}&$datarootdir&g' ;;
27295 esac
27296 _ACEOF
27298 # Neutralize VPATH when `$srcdir' = `.'.
27299 # Shell code in configure.ac might set extrasub.
27300 # FIXME: do we really want to maintain this feature?
27301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27302 ac_sed_extra="$ac_vpsub
27303 $extrasub
27304 _ACEOF
27305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27308 s|@configure_input@|$ac_sed_conf_input|;t t
27309 s&@top_builddir@&$ac_top_builddir_sub&;t t
27310 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27311 s&@srcdir@&$ac_srcdir&;t t
27312 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27313 s&@top_srcdir@&$ac_top_srcdir&;t t
27314 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27315 s&@builddir@&$ac_builddir&;t t
27316 s&@abs_builddir@&$ac_abs_builddir&;t t
27317 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27318 s&@INSTALL@&$ac_INSTALL&;t t
27319 $ac_datarootdir_hack
27321 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27322 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27323 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27324 { (exit 1); exit 1; }; }
27326 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27327 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27328 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27329 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27330 which seems to be undefined. Please make sure it is defined." >&5
27331 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27332 which seems to be undefined. Please make sure it is defined." >&2;}
27334 rm -f "$tmp/stdin"
27335 case $ac_file in
27336 -) cat "$tmp/out" && rm -f "$tmp/out";;
27337 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27338 esac \
27339 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27340 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27341 { (exit 1); exit 1; }; }
27345 # CONFIG_HEADER
27347 if test x"$ac_file" != x-; then
27349 $as_echo "/* $configure_input */" \
27350 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27351 } >"$tmp/config.h" \
27352 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27353 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27354 { (exit 1); exit 1; }; }
27355 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27356 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27357 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27358 else
27359 rm -f "$ac_file"
27360 mv "$tmp/config.h" "$ac_file" \
27361 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27362 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27363 { (exit 1); exit 1; }; }
27365 else
27366 $as_echo "/* $configure_input */" \
27367 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27368 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27369 $as_echo "$as_me: error: could not create -" >&2;}
27370 { (exit 1); exit 1; }; }
27374 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27375 $as_echo "$as_me: executing $ac_file commands" >&6;}
27377 esac
27380 case $ac_file$ac_mode in
27381 "default":C)
27383 ### Make the necessary directories, if they don't exist.
27384 for dir in etc lisp ; do
27385 test -d ${dir} || mkdir ${dir}
27386 done
27388 # Build src/Makefile from ${srcdir}/src/Makefile.c
27389 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27390 # This must be done after src/config.h is built, since we rely on that file.
27392 echo creating src/epaths.h
27393 ${MAKE-make} epaths-force
27395 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27396 # `..' to `. .' unless invoked with -traditional
27398 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27399 CPPFLAGS="$CPPFLAGS -traditional"
27402 echo creating lib-src/Makefile
27403 ( cd lib-src
27404 rm -f junk.c junk1.c junk2.c
27405 sed -e '/start of cpp stuff/q' \
27406 < Makefile.c > junk1.c
27407 sed -e '1,/start of cpp stuff/d'\
27408 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27409 < Makefile.c > junk.c
27410 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27411 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27412 cat junk1.c junk2.c > Makefile.new
27413 rm -f junk.c junk1.c junk2.c
27414 chmod 444 Makefile.new
27415 mv -f Makefile.new Makefile
27418 echo creating src/Makefile
27419 ( cd src
27420 rm -f junk.c junk1.c junk2.c
27421 sed -e '/start of cpp stuff/q' \
27422 < Makefile.c > junk1.c
27423 sed -e '1,/start of cpp stuff/d'\
27424 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27425 < Makefile.c > junk.c
27426 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27427 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27428 cat junk1.c junk2.c > Makefile.new
27429 rm -f junk.c junk1.c junk2.c
27430 chmod 444 Makefile.new
27431 mv -f Makefile.new Makefile
27434 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27435 echo creating src/.gdbinit
27436 echo source $srcdir/src/.gdbinit > src/.gdbinit
27441 esac
27442 done # for ac_tag
27445 { (exit 0); exit 0; }
27446 _ACEOF
27447 chmod +x $CONFIG_STATUS
27448 ac_clean_files=$ac_clean_files_save
27450 test $ac_write_fail = 0 ||
27451 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27452 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27453 { (exit 1); exit 1; }; }
27456 # configure is writing to config.log, and then calls config.status.
27457 # config.status does its own redirection, appending to config.log.
27458 # Unfortunately, on DOS this fails, as config.log is still kept open
27459 # by configure, so config.status won't be able to write to it; its
27460 # output is simply discarded. So we exec the FD to /dev/null,
27461 # effectively closing config.log, so it can be properly (re)opened and
27462 # appended to by config.status. When coming back to configure, we
27463 # need to make the FD available again.
27464 if test "$no_create" != yes; then
27465 ac_cs_success=:
27466 ac_config_status_args=
27467 test "$silent" = yes &&
27468 ac_config_status_args="$ac_config_status_args --quiet"
27469 exec 5>/dev/null
27470 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27471 exec 5>>config.log
27472 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27473 # would make configure fail if this is the last instruction.
27474 $ac_cs_success || { (exit 1); exit 1; }
27476 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27477 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27478 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}