* files.el (directory-files-no-dot-files-regexp): Doc fix (bug#6298).
[emacs.git] / configure
blob022149f2213830db18f9663892aaea6a1cef8e20
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='24.0.50'
598 PACKAGE_STRING='emacs 24.0.50'
599 PACKAGE_BUGREPORT=''
601 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_config_libobj_dir=src
639 ac_header_list=
640 ac_func_list=
641 ac_subst_vars='SHELL
642 PATH_SEPARATOR
643 PACKAGE_NAME
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
695 GREP
696 EGREP
697 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 RANLIB
701 INSTALL_INFO
702 GZIP_PROG
703 MAKEINFO
704 cannot_dump
705 LD_SWITCH_SYSTEM
706 C_SWITCH_MACHINE
707 C_SWITCH_SYSTEM
708 LIBS_SYSTEM
709 CRT_DIR
710 LIB_MATH
711 START_FILES
712 LIBSOUND
713 PKG_CONFIG
714 ALSA_CFLAGS
715 ALSA_LIBS
716 CFLAGS_SOUND
717 SET_MAKE
718 MKDEPDIR
719 DEPFLAGS
720 XMKMF
721 LD_SWITCH_X_SITE_AUX
722 LD_SWITCH_X_SITE_AUX_RPATH
723 TEMACS_LDFLAGS2
724 NS_OBJ
725 NS_SUPPORT
726 LIB_STANDARD
727 HAVE_XSERVER
728 GMALLOC_OBJ
729 VMLIMIT_OBJ
730 RSVG_CFLAGS
731 RSVG_LIBS
732 GTK_CFLAGS
733 GTK_LIBS
734 GTK_OBJ
735 DBUS_CFLAGS
736 DBUS_LIBS
737 DBUS_OBJ
738 GCONF_CFLAGS
739 GCONF_LIBS
740 LIBSELINUX_LIBS
741 LIBXTR6
742 LIBXMU
743 FONTCONFIG_CFLAGS
744 FONTCONFIG_LIBS
745 XFT_CFLAGS
746 XFT_LIBS
747 LIBOTF_CFLAGS
748 LIBOTF_LIBS
749 M17N_FLT_CFLAGS
750 M17N_FLT_LIBS
751 FREETYPE_CFLAGS
752 FREETYPE_LIBS
753 LIBXPM
754 LIBJPEG
755 LIBPNG
756 LIBTIFF
757 LIBGIF
758 LIBGPM
759 LIBXSM
760 ALLOCA
761 liblockfile
762 LIBS_MAIL
763 BLESSMAIL_TARGET
764 LIBOBJS
765 NEED_SETGID
766 KMEM_GROUP
767 GETLOADAVG_LIBS
768 GETOPT_H
769 GETOPTOBJS
770 LIBS_TERMCAP
771 TERMCAP_OBJ
772 LIBHESIOD
773 LIBRESOLV
774 COM_ERRLIB
775 CRYPTOLIB
776 KRB5LIB
777 DESLIB
778 KRB4LIB
779 version
780 configuration
781 canonical
782 srcdir
783 lispdir
784 locallisppath
785 lisppath
786 x_default_search_path
787 etcdir
788 archlibdir
789 bitmapdir
790 gamedir
791 gameuser
792 unexec
793 LD_SWITCH_X_SITE
794 C_SWITCH_X_SITE
795 C_SWITCH_X_SYSTEM
796 X_TOOLKIT_TYPE
797 machfile
798 opsysfile
799 ns_appdir
800 ns_appbindir
801 ns_appresdir
802 ns_appsrc
803 GNU_OBJC_CFLAGS
804 OTHER_FILES
805 FONT_OBJ
806 XMENU_OBJ
807 XOBJ
808 WIDGET_OBJ
809 TOOLKIT_LIBW
810 LIBXT_OTHER
811 OLDXMENU_TARGET
812 OLDXMENU
813 LIBXMENU
814 LIBX_OTHER
815 OLDXMENU_DEPS
816 RALLOC_OBJ
817 CYGWIN_OBJ
818 PRE_ALLOC_OBJ
819 POST_ALLOC_OBJ
820 LD_SWITCH_SYSTEM_TEMACS
821 PRE_EDIT_LDFLAGS
822 POST_EDIT_LDFLAGS
823 LINKER
824 LIB_GCC
825 MOUSE_SUPPORT
826 TOOLTIP_SUPPORT
827 WINDOW_SUPPORT
828 LTLIBOBJS'
829 ac_subst_files='deps_frag
830 ns_frag'
831 ac_user_opts='
832 enable_option_checking
833 with_pop
834 with_kerberos
835 with_kerberos5
836 with_hesiod
837 with_mmdf
838 with_mail_unlink
839 with_mailhost
840 with_sound
841 with_sync_input
842 with_x_toolkit
843 with_xpm
844 with_jpeg
845 with_tiff
846 with_gif
847 with_png
848 with_rsvg
849 with_xft
850 with_libotf
851 with_m17n_flt
852 with_toolkit_scroll_bars
853 with_xaw3d
854 with_xim
855 with_ns
856 with_gpm
857 with_dbus
858 with_gconf
859 with_selinux
860 with_makeinfo
861 with_pkg_config_prog
862 with_crt_dir
863 with_gnustep_conf
864 enable_ns_self_contained
865 enable_asserts
866 enable_maintainer_mode
867 enable_locallisppath
868 enable_checking
869 enable_profiling
870 enable_autodepend
871 enable_largefile
872 with_x
874 ac_precious_vars='build_alias
875 host_alias
876 target_alias
878 CFLAGS
879 LDFLAGS
880 LIBS
881 CPPFLAGS
883 XMKMF'
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 ac_unrecognized_opts=
890 ac_unrecognized_sep=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
925 infodir='${datarootdir}/info'
926 htmldir='${docdir}'
927 dvidir='${docdir}'
928 pdfdir='${docdir}'
929 psdir='${docdir}'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
934 ac_prev=
935 ac_dashdash=
936 for ac_option
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
940 eval $ac_prev=\$ac_option
941 ac_prev=
942 continue
945 case $ac_option in
946 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *) ac_optarg=yes ;;
948 esac
950 # Accept the important Cygnus configure options, so we can diagnose typos.
952 case $ac_dashdash$ac_option in
954 ac_dashdash=yes ;;
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 ac_prev=bindir ;;
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959 bindir=$ac_optarg ;;
961 -build | --build | --buil | --bui | --bu)
962 ac_prev=build_alias ;;
963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964 build_alias=$ac_optarg ;;
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971 cache_file=$ac_optarg ;;
973 --config-cache | -C)
974 cache_file=config.cache ;;
976 -datadir | --datadir | --datadi | --datad)
977 ac_prev=datadir ;;
978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979 datadir=$ac_optarg ;;
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
988 -disable-* | --disable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
993 { (exit 1); exit 1; }; }
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1015 -enable-* | --enable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1025 "enable_$ac_useropt"
1026 "*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval enable_$ac_useropt=\$ac_optarg ;;
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1039 exec_prefix=$ac_optarg ;;
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
1052 -host | --host | --hos | --ho)
1053 ac_prev=host_alias ;;
1054 -host=* | --host=* | --hos=* | --ho=*)
1055 host_alias=$ac_optarg ;;
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1068 includedir=$ac_optarg ;;
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073 infodir=$ac_optarg ;;
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078 libdir=$ac_optarg ;;
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1085 libexecdir=$ac_optarg ;;
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
1093 | --localstate | --localstat | --localsta | --localst | --locals)
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097 localstatedir=$ac_optarg ;;
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102 mandir=$ac_optarg ;;
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109 | --no-cr | --no-c | -n)
1110 no_create=yes ;;
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123 oldincludedir=$ac_optarg ;;
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128 prefix=$ac_optarg ;;
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135 program_prefix=$ac_optarg ;;
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142 program_suffix=$ac_optarg ;;
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1159 program_transform_name=$ac_optarg ;;
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1179 sbindir=$ac_optarg ;;
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1190 sharedstatedir=$ac_optarg ;;
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1195 site=$ac_optarg ;;
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1220 -with-* | --with-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1230 "with_$ac_useropt"
1231 "*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=\$ac_optarg ;;
1237 -without-* | --without-*)
1238 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1242 { (exit 1); exit 1; }; }
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263 x_includes=$ac_optarg ;;
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270 x_libraries=$ac_optarg ;;
1272 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1273 Try \`$0 --help' for more information." >&2
1274 { (exit 1); exit 1; }; }
1277 *=*)
1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1281 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1282 { (exit 1); exit 1; }; }
1283 eval $ac_envvar=\$ac_optarg
1284 export $ac_envvar ;;
1287 # FIXME: should be removed in autoconf 3.0.
1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294 esac
1295 done
1297 if test -n "$ac_prev"; then
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1300 { (exit 1); exit 1; }; }
1303 if test -n "$ac_unrecognized_opts"; then
1304 case $enable_option_checking in
1305 no) ;;
1306 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1307 { (exit 1); exit 1; }; } ;;
1308 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 esac
1312 # Check all directory arguments for consistency.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1318 eval ac_val=\$$ac_var
1319 # Remove trailing slashes.
1320 case $ac_val in
1321 */ )
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1324 esac
1325 # Be sure to have absolute directory names.
1326 case $ac_val in
1327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329 esac
1330 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1331 { (exit 1); exit 1; }; }
1332 done
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1337 build=$build_alias
1338 host=$host_alias
1339 target=$target_alias
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343 if test "x$build_alias" = x; then
1344 cross_compiling=maybe
1345 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1346 If a cross compiler is detected then cross compile mode will be used." >&2
1347 elif test "x$build_alias" != "x$host_alias"; then
1348 cross_compiling=yes
1352 ac_tool_prefix=
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355 test "$silent" = yes && exec 6>/dev/null
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1362 { (exit 1); exit 1; }; }
1363 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1365 { (exit 1); exit 1; }; }
1368 # Find the source files, if location was not specified.
1369 if test -z "$srcdir"; then
1370 ac_srcdir_defaulted=yes
1371 # Try the directory containing this script, then the parent directory.
1372 ac_confdir=`$as_dirname -- "$as_myself" ||
1373 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374 X"$as_myself" : 'X\(//\)[^/]' \| \
1375 X"$as_myself" : 'X\(//\)$' \| \
1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377 $as_echo X"$as_myself" |
1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 s//\1/
1382 /^X\(\/\/\)[^/].*/{
1383 s//\1/
1386 /^X\(\/\/\)$/{
1387 s//\1/
1390 /^X\(\/\).*/{
1391 s//\1/
1394 s/.*/./; q'`
1395 srcdir=$ac_confdir
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 srcdir=..
1399 else
1400 ac_srcdir_defaulted=no
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1405 { (exit 1); exit 1; }; }
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1410 { (exit 1); exit 1; }; }
1411 pwd)`
1412 # When building in place, set srcdir=.
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 srcdir=.
1416 # Remove unnecessary trailing slashes from srcdir.
1417 # Double slashes in file names in object file debugging info
1418 # mess up M-x gdb in Emacs.
1419 case $srcdir in
1420 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 esac
1422 for ac_var in $ac_precious_vars; do
1423 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_${ac_var}_value=\$${ac_var}
1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 done
1430 # Report the --help message.
1432 if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1435 cat <<_ACEOF
1436 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE. See below for descriptions of some of the useful variables.
1443 Defaults for the options are specified in brackets.
1445 Configuration:
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456 Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 [PREFIX]
1462 By default, \`make install' will install all the files in
1463 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465 for instance \`--prefix=\$HOME'.
1467 For better control, use the options below.
1469 Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
1489 _ACEOF
1491 cat <<\_ACEOF
1493 Program names:
1494 --program-prefix=PREFIX prepend PREFIX to installed program names
1495 --program-suffix=SUFFIX append SUFFIX to installed program names
1496 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498 X features:
1499 --x-includes=DIR X include files are in DIR
1500 --x-libraries=DIR X library files are in DIR
1502 System types:
1503 --build=BUILD configure for building on BUILD [guessed]
1504 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1505 _ACEOF
1508 if test -n "$ac_init_help"; then
1509 case $ac_init_help in
1510 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1511 esac
1512 cat <<\_ACEOF
1514 Optional Features:
1515 --disable-option-checking ignore unrecognized --enable/--with options
1516 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1517 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1518 --disable-ns-self-contained
1519 disable self contained build under NeXTstep
1520 --enable-asserts compile code with asserts enabled
1521 --enable-maintainer-mode
1522 enable make rules and dependencies not useful (and
1523 sometimes confusing) to the casual installer
1524 --enable-locallisppath=PATH
1525 directories Emacs should search for lisp files
1526 specific to this site
1527 --enable-checking[=LIST]
1528 enable expensive run-time checks. With LIST, enable
1529 only specific categories of checks. Categories are:
1530 all,yes,no. Flags are: stringbytes, stringoverrun,
1531 stringfreelist, xmallocoverrun, conslist
1532 --enable-profiling build emacs with profiling support. This might not
1533 work on all platforms
1534 --enable-autodepend automatically generate dependencies to .h-files.
1535 Requires GNU Make and Gcc. Enabled if GNU Make and
1536 Gcc is found
1537 --disable-largefile omit support for large files
1539 Optional Packages:
1540 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1541 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1542 --without-pop don't support POP mail retrieval with movemail
1543 --with-kerberos support Kerberos-authenticated POP
1544 --with-kerberos5 support Kerberos version 5 authenticated POP
1545 --with-hesiod support Hesiod to get the POP server host
1546 --with-mmdf support MMDF mailboxes
1547 --with-mail-unlink unlink, rather than empty, mail spool after reading
1548 --with-mailhost=HOSTNAME
1549 string giving default POP mail host
1550 --without-sound don't compile with sound support
1551 --without-sync-input process async input synchronously
1552 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1553 athena, motif, no)
1554 --without-xpm don't compile with XPM image support
1555 --without-jpeg don't compile with JPEG image support
1556 --without-tiff don't compile with TIFF image support
1557 --without-gif don't compile with GIF image support
1558 --without-png don't compile with PNG image support
1559 --without-rsvg don't compile with SVG image support
1560 --without-xft don't use XFT for anti aliased fonts
1561 --without-libotf don't use libotf for OpenType font support
1562 --without-m17n-flt don't use m17n-flt for text shaping
1563 --without-toolkit-scroll-bars
1564 don't use Motif or Xaw3d scroll bars
1565 --without-xaw3d don't use Xaw3d
1566 --without-xim don't use X11 XIM
1567 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1568 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1569 console
1570 --without-dbus don't compile with D-Bus support
1571 --without-gconf don't compile with GConf support
1572 --without-selinux don't compile with SELinux support
1573 --without-makeinfo don't require makeinfo for building manuals
1574 --with-pkg-config-prog=PATH
1575 path to pkg-config for finding GTK and librsvg
1576 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1577 /usr/lib, or /usr/lib64 on some platforms.
1578 --with-gnustep-conf=PATH
1579 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1580 or /etc/GNUstep/GNUstep.conf
1581 --with-x use the X Window System
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1591 CPP C preprocessor
1592 XMKMF Path to xmkmf, Makefile generator for X Window System
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1597 _ACEOF
1598 ac_status=$?
1601 if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604 test -d "$ac_dir" ||
1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606 continue
1607 ac_builddir=.
1609 case "$ac_dir" in
1610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 esac ;;
1619 esac
1620 ac_abs_top_builddir=$ac_pwd
1621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir=$ac_top_build_prefix
1625 case $srcdir in
1626 .) # We are building in place.
1627 ac_srcdir=.
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
1631 ac_srcdir=$srcdir$ac_dir_suffix;
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1634 *) # Relative name.
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 esac
1639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1649 else
1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
1653 done
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1658 cat <<\_ACEOF
1659 emacs configure 24.0.50
1660 generated by GNU Autoconf 2.62
1662 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1663 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1664 This configure script is free software; the Free Software Foundation
1665 gives unlimited permission to copy, distribute and modify it.
1666 _ACEOF
1667 exit
1669 cat >config.log <<_ACEOF
1670 This file contains any messages produced by compilers while
1671 running configure, to aid debugging if configure makes a mistake.
1673 It was created by emacs $as_me 24.0.50, which was
1674 generated by GNU Autoconf 2.62. Invocation command line was
1676 $ $0 $@
1678 _ACEOF
1679 exec 5>>config.log
1681 cat <<_ASUNAME
1682 ## --------- ##
1683 ## Platform. ##
1684 ## --------- ##
1686 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1687 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1688 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1689 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1690 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1692 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1693 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1695 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1696 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1697 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1698 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1699 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1700 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1701 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1703 _ASUNAME
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 $as_echo "PATH: $as_dir"
1711 done
1712 IFS=$as_save_IFS
1714 } >&5
1716 cat >&5 <<_ACEOF
1719 ## ----------- ##
1720 ## Core tests. ##
1721 ## ----------- ##
1723 _ACEOF
1726 # Keep a trace of the command line.
1727 # Strip out --no-create and --no-recursion so they do not pile up.
1728 # Strip out --silent because we don't want to record it for future runs.
1729 # Also quote any args containing shell meta-characters.
1730 # Make two passes to allow for proper duplicate-argument suppression.
1731 ac_configure_args=
1732 ac_configure_args0=
1733 ac_configure_args1=
1734 ac_must_keep_next=false
1735 for ac_pass in 1 2
1737 for ac_arg
1739 case $ac_arg in
1740 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1741 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1742 | -silent | --silent | --silen | --sile | --sil)
1743 continue ;;
1744 *\'*)
1745 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1746 esac
1747 case $ac_pass in
1748 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1750 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1751 if test $ac_must_keep_next = true; then
1752 ac_must_keep_next=false # Got value, back to normal.
1753 else
1754 case $ac_arg in
1755 *=* | --config-cache | -C | -disable-* | --disable-* \
1756 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1757 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1758 | -with-* | --with-* | -without-* | --without-* | --x)
1759 case "$ac_configure_args0 " in
1760 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1761 esac
1763 -* ) ac_must_keep_next=true ;;
1764 esac
1766 ac_configure_args="$ac_configure_args '$ac_arg'"
1768 esac
1769 done
1770 done
1771 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1772 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1774 # When interrupted or exit'd, cleanup temporary files, and complete
1775 # config.log. We remove comments because anyway the quotes in there
1776 # would cause problems or look ugly.
1777 # WARNING: Use '\'' to represent an apostrophe within the trap.
1778 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1779 trap 'exit_status=$?
1780 # Save into config.log some information that might help in debugging.
1782 echo
1784 cat <<\_ASBOX
1785 ## ---------------- ##
1786 ## Cache variables. ##
1787 ## ---------------- ##
1788 _ASBOX
1789 echo
1790 # The following way of writing the cache mishandles newlines in values,
1792 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1793 eval ac_val=\$$ac_var
1794 case $ac_val in #(
1795 *${as_nl}*)
1796 case $ac_var in #(
1797 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1798 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1799 esac
1800 case $ac_var in #(
1801 _ | IFS | as_nl) ;; #(
1802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1803 *) $as_unset $ac_var ;;
1804 esac ;;
1805 esac
1806 done
1807 (set) 2>&1 |
1808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809 *${as_nl}ac_space=\ *)
1810 sed -n \
1811 "s/'\''/'\''\\\\'\'''\''/g;
1812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1813 ;; #(
1815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1817 esac |
1818 sort
1820 echo
1822 cat <<\_ASBOX
1823 ## ----------------- ##
1824 ## Output variables. ##
1825 ## ----------------- ##
1826 _ASBOX
1827 echo
1828 for ac_var in $ac_subst_vars
1830 eval ac_val=\$$ac_var
1831 case $ac_val in
1832 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 esac
1834 $as_echo "$ac_var='\''$ac_val'\''"
1835 done | sort
1836 echo
1838 if test -n "$ac_subst_files"; then
1839 cat <<\_ASBOX
1840 ## ------------------- ##
1841 ## File substitutions. ##
1842 ## ------------------- ##
1843 _ASBOX
1844 echo
1845 for ac_var in $ac_subst_files
1847 eval ac_val=\$$ac_var
1848 case $ac_val in
1849 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850 esac
1851 $as_echo "$ac_var='\''$ac_val'\''"
1852 done | sort
1853 echo
1856 if test -s confdefs.h; then
1857 cat <<\_ASBOX
1858 ## ----------- ##
1859 ## confdefs.h. ##
1860 ## ----------- ##
1861 _ASBOX
1862 echo
1863 cat confdefs.h
1864 echo
1866 test "$ac_signal" != 0 &&
1867 $as_echo "$as_me: caught signal $ac_signal"
1868 $as_echo "$as_me: exit $exit_status"
1869 } >&5
1870 rm -f core *.core core.conftest.* &&
1871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1872 exit $exit_status
1874 for ac_signal in 1 2 13 15; do
1875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1876 done
1877 ac_signal=0
1879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1880 rm -f -r conftest* confdefs.h
1882 # Predefined preprocessor variables.
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_NAME "$PACKAGE_NAME"
1886 _ACEOF
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1891 _ACEOF
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1896 _ACEOF
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_STRING "$PACKAGE_STRING"
1901 _ACEOF
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1906 _ACEOF
1909 # Let the site file select an alternate cache file if it wants to.
1910 # Prefer an explicitly selected file to automatically selected ones.
1911 ac_site_file1=NONE
1912 ac_site_file2=NONE
1913 if test -n "$CONFIG_SITE"; then
1914 ac_site_file1=$CONFIG_SITE
1915 elif test "x$prefix" != xNONE; then
1916 ac_site_file1=$prefix/share/config.site
1917 ac_site_file2=$prefix/etc/config.site
1918 else
1919 ac_site_file1=$ac_default_prefix/share/config.site
1920 ac_site_file2=$ac_default_prefix/etc/config.site
1922 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1924 test "x$ac_site_file" = xNONE && continue
1925 if test -r "$ac_site_file"; then
1926 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1927 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1928 sed 's/^/| /' "$ac_site_file" >&5
1929 . "$ac_site_file"
1931 done
1933 if test -r "$cache_file"; then
1934 # Some versions of bash will fail to source /dev/null (special
1935 # files actually), so we avoid doing that.
1936 if test -f "$cache_file"; then
1937 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1938 $as_echo "$as_me: loading cache $cache_file" >&6;}
1939 case $cache_file in
1940 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1941 *) . "./$cache_file";;
1942 esac
1944 else
1945 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1946 $as_echo "$as_me: creating cache $cache_file" >&6;}
1947 >$cache_file
1950 ac_header_list="$ac_header_list sys/time.h"
1951 ac_header_list="$ac_header_list unistd.h"
1952 ac_func_list="$ac_func_list alarm"
1953 # Check that the precious variables saved in the cache have kept the same
1954 # value.
1955 ac_cache_corrupted=false
1956 for ac_var in $ac_precious_vars; do
1957 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958 eval ac_new_set=\$ac_env_${ac_var}_set
1959 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960 eval ac_new_val=\$ac_env_${ac_var}_value
1961 case $ac_old_set,$ac_new_set in
1962 set,)
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1966 ,set)
1967 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1970 ,);;
1972 if test "x$ac_old_val" != "x$ac_new_val"; then
1973 # differences in whitespace do not lead to failure.
1974 ac_old_val_w=`echo x $ac_old_val`
1975 ac_new_val_w=`echo x $ac_new_val`
1976 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1977 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1978 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1979 ac_cache_corrupted=:
1980 else
1981 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1982 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1983 eval $ac_var=\$ac_old_val
1985 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1986 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1987 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1988 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1989 fi;;
1990 esac
1991 # Pass precious variables to config.status.
1992 if test "$ac_new_set" = set; then
1993 case $ac_new_val in
1994 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1995 *) ac_arg=$ac_var=$ac_new_val ;;
1996 esac
1997 case " $ac_configure_args " in
1998 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1999 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2000 esac
2002 done
2003 if $ac_cache_corrupted; then
2004 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2006 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2007 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2008 { (exit 1); exit 1; }; }
2035 ac_ext=c
2036 ac_cpp='$CPP $CPPFLAGS'
2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2046 test "$program_prefix" != NONE &&
2047 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2048 # Use a double $ so make ignores it.
2049 test "$program_suffix" != NONE &&
2050 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2051 # Double any \ or $.
2052 # By default was `s,x,x', remove it if useless.
2053 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2054 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2057 lispdir='${datadir}/emacs/${version}/lisp'
2058 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2059 '${datadir}/emacs/site-lisp'
2060 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2061 etcdir='${datadir}/emacs/${version}/etc'
2062 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2063 docdir='${datadir}/emacs/${version}/etc'
2064 gamedir='${localstatedir}/games/emacs'
2066 gameuser=games
2071 # Check whether --with-pop was given.
2072 if test "${with_pop+set}" = set; then
2073 withval=$with_pop;
2074 else
2075 with_pop=yes
2078 if test "$with_pop" = yes; then
2079 cat >>confdefs.h <<\_ACEOF
2080 #define MAIL_USE_POP 1
2081 _ACEOF
2087 # Check whether --with-kerberos was given.
2088 if test "${with_kerberos+set}" = set; then
2089 withval=$with_kerberos;
2090 else
2091 with_kerberos=no
2094 if test "$with_kerberos" != no; then
2095 cat >>confdefs.h <<\_ACEOF
2096 #define KERBEROS 1
2097 _ACEOF
2103 # Check whether --with-kerberos5 was given.
2104 if test "${with_kerberos5+set}" = set; then
2105 withval=$with_kerberos5;
2106 else
2107 with_kerberos5=no
2110 if test "${with_kerberos5}" != no; then
2111 if test "${with_kerberos}" = no; then
2112 with_kerberos=yes
2113 cat >>confdefs.h <<\_ACEOF
2114 #define KERBEROS 1
2115 _ACEOF
2119 cat >>confdefs.h <<\_ACEOF
2120 #define KERBEROS5 1
2121 _ACEOF
2126 # Check whether --with-hesiod was given.
2127 if test "${with_hesiod+set}" = set; then
2128 withval=$with_hesiod;
2129 else
2130 with_hesiod=no
2133 if test "$with_hesiod" != no; then
2135 cat >>confdefs.h <<\_ACEOF
2136 #define HESIOD 1
2137 _ACEOF
2142 # Check whether --with-mmdf was given.
2143 if test "${with_mmdf+set}" = set; then
2144 withval=$with_mmdf;
2145 else
2146 with_mmdf=no
2149 if test "$with_mmdf" != no; then
2151 cat >>confdefs.h <<\_ACEOF
2152 #define MAIL_USE_MMDF 1
2153 _ACEOF
2158 # Check whether --with-mail-unlink was given.
2159 if test "${with_mail_unlink+set}" = set; then
2160 withval=$with_mail_unlink;
2161 else
2162 with_mail_unlink=no
2165 if test "$with_mail_unlink" != no; then
2167 cat >>confdefs.h <<\_ACEOF
2168 #define MAIL_UNLINK_SPOOL 1
2169 _ACEOF
2174 # Check whether --with-mailhost was given.
2175 if test "${with_mailhost+set}" = set; then
2176 withval=$with_mailhost;
2177 cat >>confdefs.h <<_ACEOF
2178 #define MAILHOST "$withval"
2179 _ACEOF
2185 # Check whether --with-sound was given.
2186 if test "${with_sound+set}" = set; then
2187 withval=$with_sound;
2188 else
2189 with_sound=yes
2194 # Check whether --with-sync-input was given.
2195 if test "${with_sync_input+set}" = set; then
2196 withval=$with_sync_input;
2197 else
2198 with_sync_input=yes
2201 if test "$with_sync_input" = yes; then
2203 cat >>confdefs.h <<\_ACEOF
2204 #define SYNC_INPUT 1
2205 _ACEOF
2210 # Check whether --with-x-toolkit was given.
2211 if test "${with_x_toolkit+set}" = set; then
2212 withval=$with_x_toolkit; case "${withval}" in
2213 y | ye | yes ) val=gtk ;;
2214 n | no ) val=no ;;
2215 l | lu | luc | luci | lucid ) val=lucid ;;
2216 a | at | ath | athe | athen | athena ) val=athena ;;
2217 m | mo | mot | moti | motif ) val=motif ;;
2218 g | gt | gtk ) val=gtk ;;
2220 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2221 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2222 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2223 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2224 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2225 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2226 { (exit 1); exit 1; }; }
2228 esac
2229 with_x_toolkit=$val
2235 # Check whether --with-xpm was given.
2236 if test "${with_xpm+set}" = set; then
2237 withval=$with_xpm;
2238 else
2239 with_xpm=yes
2243 # Check whether --with-jpeg was given.
2244 if test "${with_jpeg+set}" = set; then
2245 withval=$with_jpeg;
2246 else
2247 with_jpeg=yes
2251 # Check whether --with-tiff was given.
2252 if test "${with_tiff+set}" = set; then
2253 withval=$with_tiff;
2254 else
2255 with_tiff=yes
2259 # Check whether --with-gif was given.
2260 if test "${with_gif+set}" = set; then
2261 withval=$with_gif;
2262 else
2263 with_gif=yes
2267 # Check whether --with-png was given.
2268 if test "${with_png+set}" = set; then
2269 withval=$with_png;
2270 else
2271 with_png=yes
2275 # Check whether --with-rsvg was given.
2276 if test "${with_rsvg+set}" = set; then
2277 withval=$with_rsvg;
2278 else
2279 with_rsvg=yes
2284 # Check whether --with-xft was given.
2285 if test "${with_xft+set}" = set; then
2286 withval=$with_xft;
2287 else
2288 with_xft=yes
2292 # Check whether --with-libotf was given.
2293 if test "${with_libotf+set}" = set; then
2294 withval=$with_libotf;
2295 else
2296 with_libotf=yes
2300 # Check whether --with-m17n-flt was given.
2301 if test "${with_m17n_flt+set}" = set; then
2302 withval=$with_m17n_flt;
2303 else
2304 with_m17n_flt=yes
2309 # Check whether --with-toolkit-scroll-bars was given.
2310 if test "${with_toolkit_scroll_bars+set}" = set; then
2311 withval=$with_toolkit_scroll_bars;
2312 else
2313 with_toolkit_scroll_bars=yes
2317 # Check whether --with-xaw3d was given.
2318 if test "${with_xaw3d+set}" = set; then
2319 withval=$with_xaw3d;
2320 else
2321 with_xaw3d=yes
2325 # Check whether --with-xim was given.
2326 if test "${with_xim+set}" = set; then
2327 withval=$with_xim;
2328 else
2329 with_xim=yes
2333 # Check whether --with-ns was given.
2334 if test "${with_ns+set}" = set; then
2335 withval=$with_ns;
2336 else
2337 with_ns=no
2342 # Check whether --with-gpm was given.
2343 if test "${with_gpm+set}" = set; then
2344 withval=$with_gpm;
2345 else
2346 with_gpm=yes
2350 # Check whether --with-dbus was given.
2351 if test "${with_dbus+set}" = set; then
2352 withval=$with_dbus;
2353 else
2354 with_dbus=yes
2358 # Check whether --with-gconf was given.
2359 if test "${with_gconf+set}" = set; then
2360 withval=$with_gconf;
2361 else
2362 with_gconf=yes
2366 # Check whether --with-selinux was given.
2367 if test "${with_selinux+set}" = set; then
2368 withval=$with_selinux;
2369 else
2370 with_selinux=yes
2374 ## For the times when you want to build Emacs but don't have
2375 ## a suitable makeinfo, and can live without the manuals.
2377 # Check whether --with-makeinfo was given.
2378 if test "${with_makeinfo+set}" = set; then
2379 withval=$with_makeinfo;
2380 else
2381 with_makeinfo=yes
2386 # Check whether --with-pkg-config-prog was given.
2387 if test "${with_pkg_config_prog+set}" = set; then
2388 withval=$with_pkg_config_prog;
2391 if test "X${with_pkg_config_prog}" != X; then
2392 if test "${with_pkg_config_prog}" != yes; then
2393 PKG_CONFIG="${with_pkg_config_prog}"
2397 CRT_DIR=
2399 # Check whether --with-crt-dir was given.
2400 if test "${with_crt_dir+set}" = set; then
2401 withval=$with_crt_dir;
2404 CRT_DIR="${with_crt_dir}"
2407 # Check whether --with-gnustep-conf was given.
2408 if test "${with_gnustep_conf+set}" = set; then
2409 withval=$with_gnustep_conf;
2412 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2413 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2414 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2415 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2417 # Check whether --enable-ns-self-contained was given.
2418 if test "${enable_ns_self_contained+set}" = set; then
2419 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2420 else
2421 EN_NS_SELF_CONTAINED=yes
2425 # Check whether --enable-asserts was given.
2426 if test "${enable_asserts+set}" = set; then
2427 enableval=$enable_asserts; USE_XASSERTS=$enableval
2428 else
2429 USE_XASSERTS=no
2433 # Check whether --enable-maintainer-mode was given.
2434 if test "${enable_maintainer_mode+set}" = set; then
2435 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2436 else
2437 USE_MAINTAINER_MODE=no
2440 if test $USE_MAINTAINER_MODE = yes; then
2441 MAINT=
2442 else
2443 MAINT=#
2447 # Check whether --enable-locallisppath was given.
2448 if test "${enable_locallisppath+set}" = set; then
2449 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2450 locallisppath=
2451 elif test "${enableval}" != "yes"; then
2452 locallisppath=${enableval}
2457 # Check whether --enable-checking was given.
2458 if test "${enable_checking+set}" = set; then
2459 enableval=$enable_checking; ac_checking_flags="${enableval}"
2462 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2463 for check in $ac_checking_flags
2465 case $check in
2466 # these set all the flags to specific states
2467 yes) ac_enable_checking=1 ;;
2468 no) ac_enable_checking= ;
2469 ac_gc_check_stringbytes= ;
2470 ac_gc_check_string_overrun= ;
2471 ac_gc_check_string_free_list= ;
2472 ac_xmalloc_overrun= ;
2473 ac_gc_check_cons_list= ;;
2474 all) ac_enable_checking=1 ;
2475 ac_gc_check_stringbytes=1 ;
2476 ac_gc_check_string_overrun=1 ;
2477 ac_gc_check_string_free_list=1 ;
2478 ac_xmalloc_overrun=1 ;
2479 ac_gc_check_cons_list=1 ;;
2480 # these enable particular checks
2481 stringbytes) ac_gc_check_stringbytes=1 ;;
2482 stringoverrun) ac_gc_check_string_overrun=1 ;;
2483 stringfreelist) ac_gc_check_string_free_list=1 ;;
2484 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2485 conslist) ac_gc_check_cons_list=1 ;;
2486 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2487 $as_echo "$as_me: error: unknown check category $check" >&2;}
2488 { (exit 1); exit 1; }; } ;;
2489 esac
2490 done
2491 IFS="$ac_save_IFS"
2493 if test x$ac_enable_checking != x ; then
2495 cat >>confdefs.h <<\_ACEOF
2496 #define ENABLE_CHECKING 1
2497 _ACEOF
2500 if test x$ac_gc_check_stringbytes != x ; then
2502 cat >>confdefs.h <<\_ACEOF
2503 #define GC_CHECK_STRING_BYTES 1
2504 _ACEOF
2507 if test x$ac_gc_check_stringoverrun != x ; then
2509 cat >>confdefs.h <<\_ACEOF
2510 #define GC_CHECK_STRING_OVERRUN 1
2511 _ACEOF
2514 if test x$ac_gc_check_string_free_list != x ; then
2516 cat >>confdefs.h <<\_ACEOF
2517 #define GC_CHECK_STRING_FREE_LIST 1
2518 _ACEOF
2521 if test x$ac_xmalloc_overrun != x ; then
2523 cat >>confdefs.h <<\_ACEOF
2524 #define XMALLOC_OVERRUN_CHECK 1
2525 _ACEOF
2528 if test x$ac_gc_check_cons_list != x ; then
2530 cat >>confdefs.h <<\_ACEOF
2531 #define GC_CHECK_CONS_LIST 1
2532 _ACEOF
2536 # Check whether --enable-profiling was given.
2537 if test "${enable_profiling+set}" = set; then
2538 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2541 if test x$ac_enable_profiling != x ; then
2542 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2543 PROFILING_LDFLAGS="-pg"
2544 else
2545 PROFILING_CFLAGS=
2546 PROFILING_LDFLAGS=
2549 # Check whether --enable-autodepend was given.
2550 if test "${enable_autodepend+set}" = set; then
2551 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2552 else
2553 ac_enable_autodepend=yes
2557 #### Make srcdir absolute, if it isn't already. It's important to
2558 #### avoid running the path through pwd unnecessarily, since pwd can
2559 #### give you automounter prefixes, which can go away. We do all this
2560 #### so Emacs can find its files when run uninstalled.
2561 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2562 unset CDPATH
2563 case "${srcdir}" in
2564 /* ) ;;
2566 ## We may be able to use the $PWD environment variable to make this
2567 ## absolute. But sometimes PWD is inaccurate.
2568 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2569 ## but that tested only for a well-formed and valid PWD,
2570 ## it did not object when PWD was well-formed and valid but just wrong.
2571 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2572 then
2573 srcdir="$PWD"
2574 else
2575 srcdir="`(cd ${srcdir}; pwd)`"
2578 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2579 esac
2581 #### Check if the source directory already has a configured system in it.
2582 if test `pwd` != `(cd ${srcdir} && pwd)` \
2583 && test -f "${srcdir}/src/config.h" ; then
2584 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2585 as a build directory right now; it has been configured in its own
2586 right. To configure in another directory as well, you MUST
2587 use GNU make. If you do not have GNU make, then you must
2588 now do \`make distclean' in ${srcdir},
2589 and then run $0 again." >&5
2590 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2591 as a build directory right now; it has been configured in its own
2592 right. To configure in another directory as well, you MUST
2593 use GNU make. If you do not have GNU make, then you must
2594 now do \`make distclean' in ${srcdir},
2595 and then run $0 again." >&2;}
2598 #### Given the configuration name, set machfile and opsysfile to the
2599 #### names of the m/*.h and s/*.h files we should use.
2601 ### Canonicalize the configuration name.
2603 ac_aux_dir=
2604 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2605 if test -f "$ac_dir/install-sh"; then
2606 ac_aux_dir=$ac_dir
2607 ac_install_sh="$ac_aux_dir/install-sh -c"
2608 break
2609 elif test -f "$ac_dir/install.sh"; then
2610 ac_aux_dir=$ac_dir
2611 ac_install_sh="$ac_aux_dir/install.sh -c"
2612 break
2613 elif test -f "$ac_dir/shtool"; then
2614 ac_aux_dir=$ac_dir
2615 ac_install_sh="$ac_aux_dir/shtool install -c"
2616 break
2618 done
2619 if test -z "$ac_aux_dir"; then
2620 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2621 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2622 { (exit 1); exit 1; }; }
2625 # These three variables are undocumented and unsupported,
2626 # and are intended to be withdrawn in a future Autoconf release.
2627 # They can cause serious problems if a builder's source tree is in a directory
2628 # whose full name contains unusual characters.
2629 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2630 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2631 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2634 # Make sure we can run config.sub.
2635 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2636 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2637 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2638 { (exit 1); exit 1; }; }
2640 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2641 $as_echo_n "checking build system type... " >&6; }
2642 if test "${ac_cv_build+set}" = set; then
2643 $as_echo_n "(cached) " >&6
2644 else
2645 ac_build_alias=$build_alias
2646 test "x$ac_build_alias" = x &&
2647 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2648 test "x$ac_build_alias" = x &&
2649 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2650 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2651 { (exit 1); exit 1; }; }
2652 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2653 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2654 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2655 { (exit 1); exit 1; }; }
2658 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2659 $as_echo "$ac_cv_build" >&6; }
2660 case $ac_cv_build in
2661 *-*-*) ;;
2662 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2663 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2664 { (exit 1); exit 1; }; };;
2665 esac
2666 build=$ac_cv_build
2667 ac_save_IFS=$IFS; IFS='-'
2668 set x $ac_cv_build
2669 shift
2670 build_cpu=$1
2671 build_vendor=$2
2672 shift; shift
2673 # Remember, the first character of IFS is used to create $*,
2674 # except with old shells:
2675 build_os=$*
2676 IFS=$ac_save_IFS
2677 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2680 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2681 $as_echo_n "checking host system type... " >&6; }
2682 if test "${ac_cv_host+set}" = set; then
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test "x$host_alias" = x; then
2686 ac_cv_host=$ac_cv_build
2687 else
2688 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2689 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2690 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2691 { (exit 1); exit 1; }; }
2695 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2696 $as_echo "$ac_cv_host" >&6; }
2697 case $ac_cv_host in
2698 *-*-*) ;;
2699 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2700 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2701 { (exit 1); exit 1; }; };;
2702 esac
2703 host=$ac_cv_host
2704 ac_save_IFS=$IFS; IFS='-'
2705 set x $ac_cv_host
2706 shift
2707 host_cpu=$1
2708 host_vendor=$2
2709 shift; shift
2710 # Remember, the first character of IFS is used to create $*,
2711 # except with old shells:
2712 host_os=$*
2713 IFS=$ac_save_IFS
2714 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2717 canonical=$host
2718 configuration=${host_alias-${build_alias-$host}}
2722 ### If you add support for a new configuration, add code to this
2723 ### switch statement to recognize your configuration name and select
2724 ### the appropriate operating system and machine description files.
2726 ### You would hope that you could choose an m/*.h file pretty much
2727 ### based on the machine portion of the configuration name, and an s/*.h
2728 ### file based on the operating system portion. However, it turns out
2729 ### that each m/*.h file is pretty manufacturer-specific - for
2730 ### example mips.h is MIPS
2731 ### So we basically have to have a special case for each
2732 ### configuration name.
2734 ### As far as handling version numbers on operating systems is
2735 ### concerned, make sure things will fail in a fixable way. If
2736 ### /etc/MACHINES doesn't say anything about version numbers, be
2737 ### prepared to handle anything reasonably. If version numbers
2738 ### matter, be sure /etc/MACHINES says something about it.
2740 machine='' opsys='' unported=no
2741 case "${canonical}" in
2743 ## FreeBSD ports
2744 *-*-freebsd* )
2745 opsys=freebsd
2746 case "${canonical}" in
2747 alpha*) machine=alpha ;;
2748 amd64-*|x86_64-*) machine=amdx86-64 ;;
2749 arm*) machine=arm ;;
2750 ia64-*) machine=ia64 ;;
2751 i[3456]86-*) machine=intel386 ;;
2752 powerpc-*) machine=macppc ;;
2753 sparc-*) machine=sparc ;;
2754 sparc64-*) machine=sparc ;;
2755 esac
2758 ## FreeBSD kernel + glibc based userland
2759 *-*-kfreebsd*gnu* )
2760 opsys=gnu-kfreebsd
2761 case "${canonical}" in
2762 alpha*) machine=alpha ;;
2763 amd64-*|x86_64-*) machine=amdx86-64 ;;
2764 ia64-*) machine=ia64 ;;
2765 i[3456]86-*) machine=intel386 ;;
2766 powerpc-*) machine=macppc ;;
2767 sparc-*) machine=sparc ;;
2768 sparc64-*) machine=sparc ;;
2769 esac
2772 ## NetBSD ports
2773 *-*-netbsd* )
2774 opsys=netbsd
2775 case "${canonical}" in
2776 alpha*) machine=alpha ;;
2777 x86_64-*) machine=amdx86-64 ;;
2778 arm-*) machine=arm ;;
2779 hppa-*) machine=hp800 ;;
2780 i[3456]86-*) machine=intel386 ;;
2781 m68k-*) machine=m68k ;;
2782 powerpc-*) machine=macppc ;;
2783 mips-*) machine=mips ;;
2784 mipse[bl]-*) machine=mips ;;
2785 sparc*-) machine=sparc ;;
2786 vax-*) machine=vax ;;
2787 esac
2790 ## OpenBSD ports
2791 *-*-openbsd* )
2792 opsys=openbsd
2793 case "${canonical}" in
2794 alpha*) machine=alpha ;;
2795 x86_64-*) machine=amdx86-64 ;;
2796 arm-*) machine=arm ;;
2797 hppa-*) machine=hp800 ;;
2798 i386-*) machine=intel386 ;;
2799 powerpc-*) machine=macppc ;;
2800 sparc*) machine=sparc ;;
2801 vax-*) machine=vax ;;
2802 esac
2805 alpha*-*-linux-gnu* )
2806 machine=alpha opsys=gnu-linux
2809 arm*-*-linux-gnu* )
2810 machine=arm opsys=gnu-linux
2813 ## Apple Darwin / Mac OS X
2814 *-apple-darwin* )
2815 case "${canonical}" in
2816 i[3456]86-* ) machine=intel386 ;;
2817 powerpc-* ) machine=macppc ;;
2818 x86_64-* ) machine=amdx86-64 ;;
2819 * ) unported=yes ;;
2820 esac
2821 opsys=darwin
2822 # Define CPP as follows to make autoconf work correctly.
2823 CPP="${CC-cc} -E -no-cpp-precomp"
2824 # Use fink packages if available.
2825 if test -d /sw/include && test -d /sw/lib; then
2826 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2827 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2828 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2832 ## HP 9000 series 700 and 800, running HP/UX
2833 hppa*-hp-hpux10.2* )
2834 machine=hp800 opsys=hpux10-20
2836 hppa*-hp-hpux1[1-9]* )
2837 machine=hp800 opsys=hpux11
2838 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2841 hppa*-*-linux-gnu* )
2842 machine=hp800 opsys=gnu-linux
2845 ## IBM machines
2846 s390-*-linux-gnu* )
2847 machine=ibms390 opsys=gnu-linux
2849 s390x-*-linux-gnu* )
2850 machine=ibms390x opsys=gnu-linux
2852 rs6000-ibm-aix4.[23]* )
2853 machine=ibmrs6000 opsys=aix4-2
2855 powerpc-ibm-aix4.[23]* )
2856 machine=ibmrs6000 opsys=aix4-2
2858 rs6000-ibm-aix[56]* )
2859 machine=ibmrs6000 opsys=aix4-2
2861 powerpc-ibm-aix[56]* )
2862 machine=ibmrs6000 opsys=aix4-2
2865 ## Macintosh PowerPC
2866 powerpc*-*-linux-gnu* )
2867 machine=macppc opsys=gnu-linux
2870 ## Silicon Graphics machines
2871 ## Iris 4D
2872 mips-sgi-irix6.5 )
2873 machine=iris4d opsys=irix6-5
2874 # Without defining _LANGUAGE_C, things get masked out in the headers
2875 # so that, for instance, grepping for `free' in stdlib.h fails and
2876 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2877 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2878 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2881 ## Suns
2882 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2883 machine=sparc opsys=gnu-linux
2886 *-sun-solaris* \
2887 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2888 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2889 case "${canonical}" in
2890 i[3456]86-*-* ) machine=intel386 ;;
2891 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2892 sparc* ) machine=sparc ;;
2893 * ) unported=yes ;;
2894 esac
2895 case "${canonical}" in
2896 *-sunos5.6* | *-solaris2.6* )
2897 opsys=sol2-6
2898 NON_GNU_CPP=/usr/ccs/lib/cpp
2899 RANLIB="ar -ts"
2901 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2902 opsys=sol2-6
2903 emacs_check_sunpro_c=yes
2904 NON_GNU_CPP=/usr/ccs/lib/cpp
2906 *-sunos5* | *-solaris* )
2907 opsys=sol2-10
2908 emacs_check_sunpro_c=yes
2909 NON_GNU_CPP=/usr/ccs/lib/cpp
2911 esac
2912 ## Watch out for a compiler that we know will not work.
2913 case "${canonical}" in
2914 *-solaris* | *-sunos5* )
2915 if [ "x$CC" = x/usr/ucb/cc ]; then
2916 ## /usr/ucb/cc doesn't work;
2917 ## we should find some other compiler that does work.
2918 unset CC
2921 *) ;;
2922 esac
2925 ## IA-64
2926 ia64*-*-linux* )
2927 machine=ia64 opsys=gnu-linux
2930 ## Intel 386 machines where we don't care about the manufacturer.
2931 i[3456]86-*-* )
2932 machine=intel386
2933 case "${canonical}" in
2934 *-cygwin ) opsys=cygwin ;;
2935 *-darwin* ) opsys=darwin
2936 CPP="${CC-cc} -E -no-cpp-precomp"
2938 *-linux-gnu* ) opsys=gnu-linux ;;
2939 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2940 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2941 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2942 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2943 esac
2946 ## m68k Linux-based GNU system
2947 m68k-*-linux-gnu* )
2948 machine=m68k opsys=gnu-linux
2951 ## Mips Linux-based GNU system
2952 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2953 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2954 machine=mips opsys=gnu-linux
2957 ## AMD x86-64 Linux-based GNU system
2958 x86_64-*-linux-gnu* )
2959 machine=amdx86-64 opsys=gnu-linux
2962 ## Tensilica Xtensa Linux-based GNU system
2963 xtensa*-*-linux-gnu* )
2964 machine=xtensa opsys=gnu-linux
2967 ## SuperH Linux-based GNU system
2968 sh[34]*-*-linux-gnu* )
2969 machine=sh3 opsys=gnu-linux
2973 unported=yes
2975 esac
2977 ### If the code above didn't choose an operating system, just choose
2978 ### an operating system based on the configuration name. You really
2979 ### only want to use this when you have no idea what the right
2980 ### operating system is; if you know what operating systems a machine
2981 ### runs, it's cleaner to make it explicit in the case statement
2982 ### above.
2983 if test x"${opsys}" = x; then
2984 case "${canonical}" in
2985 *-gnu* ) opsys=gnu ;;
2987 unported=yes
2989 esac
2994 if test $unported = yes; then
2995 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2996 Check \`etc/MACHINES' for recognized configuration names." >&5
2997 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2998 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2999 { (exit 1); exit 1; }; }
3002 machfile="m/${machine}.h"
3003 opsysfile="s/${opsys}.h"
3006 #### Choose a compiler.
3007 test -n "$CC" && cc_specified=yes
3009 # Save the value of CFLAGS that the user specified.
3010 SPECIFIED_CFLAGS="$CFLAGS"
3012 ac_ext=c
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017 if test -n "$ac_tool_prefix"; then
3018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3019 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_CC+set}" = set; then
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3039 done
3040 done
3041 IFS=$as_save_IFS
3045 CC=$ac_cv_prog_CC
3046 if test -n "$CC"; then
3047 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3049 else
3050 { $as_echo "$as_me:$LINENO: result: no" >&5
3051 $as_echo "no" >&6; }
3056 if test -z "$ac_cv_prog_CC"; then
3057 ac_ct_CC=$CC
3058 # Extract the first word of "gcc", so it can be a program name with args.
3059 set dummy gcc; ac_word=$2
3060 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3063 $as_echo_n "(cached) " >&6
3064 else
3065 if test -n "$ac_ct_CC"; then
3066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_ac_ct_CC="gcc"
3076 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3079 done
3080 done
3081 IFS=$as_save_IFS
3085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3086 if test -n "$ac_ct_CC"; then
3087 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3088 $as_echo "$ac_ct_CC" >&6; }
3089 else
3090 { $as_echo "$as_me:$LINENO: result: no" >&5
3091 $as_echo "no" >&6; }
3094 if test "x$ac_ct_CC" = x; then
3095 CC=""
3096 else
3097 case $cross_compiling:$ac_tool_warned in
3098 yes:)
3099 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3100 whose name does not start with the host triplet. If you think this
3101 configuration is useful to you, please write to autoconf@gnu.org." >&5
3102 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3103 whose name does not start with the host triplet. If you think this
3104 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3105 ac_tool_warned=yes ;;
3106 esac
3107 CC=$ac_ct_CC
3109 else
3110 CC="$ac_cv_prog_CC"
3113 if test -z "$CC"; then
3114 if test -n "$ac_tool_prefix"; then
3115 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3116 set dummy ${ac_tool_prefix}cc; ac_word=$2
3117 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 ac_cv_prog_CC="${ac_tool_prefix}cc"
3133 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3136 done
3137 done
3138 IFS=$as_save_IFS
3142 CC=$ac_cv_prog_CC
3143 if test -n "$CC"; then
3144 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3145 $as_echo "$CC" >&6; }
3146 else
3147 { $as_echo "$as_me:$LINENO: result: no" >&5
3148 $as_echo "no" >&6; }
3154 if test -z "$CC"; then
3155 # Extract the first word of "cc", so it can be a program name with args.
3156 set dummy cc; ac_word=$2
3157 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if test "${ac_cv_prog_CC+set}" = set; then
3160 $as_echo_n "(cached) " >&6
3161 else
3162 if test -n "$CC"; then
3163 ac_cv_prog_CC="$CC" # Let the user override the test.
3164 else
3165 ac_prog_rejected=no
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3174 ac_prog_rejected=yes
3175 continue
3177 ac_cv_prog_CC="cc"
3178 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3181 done
3182 done
3183 IFS=$as_save_IFS
3185 if test $ac_prog_rejected = yes; then
3186 # We found a bogon in the path, so make sure we never use it.
3187 set dummy $ac_cv_prog_CC
3188 shift
3189 if test $# != 0; then
3190 # We chose a different compiler from the bogus one.
3191 # However, it has the same basename, so the bogon will be chosen
3192 # first if we set CC to just the basename; use the full file name.
3193 shift
3194 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3199 CC=$ac_cv_prog_CC
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3203 else
3204 { $as_echo "$as_me:$LINENO: result: no" >&5
3205 $as_echo "no" >&6; }
3210 if test -z "$CC"; then
3211 if test -n "$ac_tool_prefix"; then
3212 for ac_prog in cl.exe
3214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if test "${ac_cv_prog_CC+set}" = set; then
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3235 done
3236 done
3237 IFS=$as_save_IFS
3241 CC=$ac_cv_prog_CC
3242 if test -n "$CC"; then
3243 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3244 $as_echo "$CC" >&6; }
3245 else
3246 { $as_echo "$as_me:$LINENO: result: no" >&5
3247 $as_echo "no" >&6; }
3251 test -n "$CC" && break
3252 done
3254 if test -z "$CC"; then
3255 ac_ct_CC=$CC
3256 for ac_prog in cl.exe
3258 # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy $ac_prog; ac_word=$2
3260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3263 $as_echo_n "(cached) " >&6
3264 else
3265 if test -n "$ac_ct_CC"; then
3266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275 ac_cv_prog_ac_ct_CC="$ac_prog"
3276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3279 done
3280 done
3281 IFS=$as_save_IFS
3285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3286 if test -n "$ac_ct_CC"; then
3287 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3288 $as_echo "$ac_ct_CC" >&6; }
3289 else
3290 { $as_echo "$as_me:$LINENO: result: no" >&5
3291 $as_echo "no" >&6; }
3295 test -n "$ac_ct_CC" && break
3296 done
3298 if test "x$ac_ct_CC" = x; then
3299 CC=""
3300 else
3301 case $cross_compiling:$ac_tool_warned in
3302 yes:)
3303 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3304 whose name does not start with the host triplet. If you think this
3305 configuration is useful to you, please write to autoconf@gnu.org." >&5
3306 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3307 whose name does not start with the host triplet. If you think this
3308 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3309 ac_tool_warned=yes ;;
3310 esac
3311 CC=$ac_ct_CC
3318 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3319 See \`config.log' for more details." >&5
3320 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3321 See \`config.log' for more details." >&2;}
3322 { (exit 1); exit 1; }; }
3324 # Provide some information about the compiler.
3325 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3326 set X $ac_compile
3327 ac_compiler=$2
3328 { (ac_try="$ac_compiler --version >&5"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3334 $as_echo "$ac_try_echo") >&5
3335 (eval "$ac_compiler --version >&5") 2>&5
3336 ac_status=$?
3337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }
3339 { (ac_try="$ac_compiler -v >&5"
3340 case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3345 $as_echo "$ac_try_echo") >&5
3346 (eval "$ac_compiler -v >&5") 2>&5
3347 ac_status=$?
3348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }
3350 { (ac_try="$ac_compiler -V >&5"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3356 $as_echo "$ac_try_echo") >&5
3357 (eval "$ac_compiler -V >&5") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h. */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3370 main ()
3374 return 0;
3376 _ACEOF
3377 ac_clean_files_save=$ac_clean_files
3378 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3379 # Try to create an executable without -o first, disregard a.out.
3380 # It will help us diagnose broken compilers, and finding out an intuition
3381 # of exeext.
3382 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3383 $as_echo_n "checking for C compiler default output file name... " >&6; }
3384 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3386 # The possible output files:
3387 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3389 ac_rmfiles=
3390 for ac_file in $ac_files
3392 case $ac_file in
3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3394 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3395 esac
3396 done
3397 rm -f $ac_rmfiles
3399 if { (ac_try="$ac_link_default"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3405 $as_echo "$ac_try_echo") >&5
3406 (eval "$ac_link_default") 2>&5
3407 ac_status=$?
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; then
3410 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3411 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3412 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3413 # so that the user can short-circuit this test for compilers unknown to
3414 # Autoconf.
3415 for ac_file in $ac_files ''
3417 test -f "$ac_file" || continue
3418 case $ac_file in
3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3421 [ab].out )
3422 # We found the default executable, but exeext='' is most
3423 # certainly right.
3424 break;;
3425 *.* )
3426 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3427 then :; else
3428 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3430 # We set ac_cv_exeext here because the later test for it is not
3431 # safe: cross compilers may not add the suffix if given an `-o'
3432 # argument, so we may need to know it at that point already.
3433 # Even if this section looks crufty: it has the advantage of
3434 # actually working.
3435 break;;
3437 break;;
3438 esac
3439 done
3440 test "$ac_cv_exeext" = no && ac_cv_exeext=
3442 else
3443 ac_file=''
3446 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3447 $as_echo "$ac_file" >&6; }
3448 if test -z "$ac_file"; then
3449 $as_echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3453 See \`config.log' for more details." >&5
3454 $as_echo "$as_me: error: C compiler cannot create executables
3455 See \`config.log' for more details." >&2;}
3456 { (exit 77); exit 77; }; }
3459 ac_exeext=$ac_cv_exeext
3461 # Check that the compiler produces executables we can run. If not, either
3462 # the compiler is broken, or we cross compile.
3463 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3464 $as_echo_n "checking whether the C compiler works... " >&6; }
3465 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3466 # If not cross compiling, check that we can run a simple program.
3467 if test "$cross_compiling" != yes; then
3468 if { ac_try='./$ac_file'
3469 { (case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472 esac
3473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3474 $as_echo "$ac_try_echo") >&5
3475 (eval "$ac_try") 2>&5
3476 ac_status=$?
3477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3479 cross_compiling=no
3480 else
3481 if test "$cross_compiling" = maybe; then
3482 cross_compiling=yes
3483 else
3484 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3485 If you meant to cross compile, use \`--host'.
3486 See \`config.log' for more details." >&5
3487 $as_echo "$as_me: error: cannot run C compiled programs.
3488 If you meant to cross compile, use \`--host'.
3489 See \`config.log' for more details." >&2;}
3490 { (exit 1); exit 1; }; }
3494 { $as_echo "$as_me:$LINENO: result: yes" >&5
3495 $as_echo "yes" >&6; }
3497 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3498 ac_clean_files=$ac_clean_files_save
3499 # Check that the compiler produces executables we can run. If not, either
3500 # the compiler is broken, or we cross compile.
3501 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3502 $as_echo_n "checking whether we are cross compiling... " >&6; }
3503 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3504 $as_echo "$cross_compiling" >&6; }
3506 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3507 $as_echo_n "checking for suffix of executables... " >&6; }
3508 if { (ac_try="$ac_link"
3509 case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512 esac
3513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3514 $as_echo "$ac_try_echo") >&5
3515 (eval "$ac_link") 2>&5
3516 ac_status=$?
3517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; then
3519 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3520 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3521 # work properly (i.e., refer to `conftest.exe'), while it won't with
3522 # `rm'.
3523 for ac_file in conftest.exe conftest conftest.*; do
3524 test -f "$ac_file" || continue
3525 case $ac_file in
3526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3527 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3528 break;;
3529 * ) break;;
3530 esac
3531 done
3532 else
3533 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3534 See \`config.log' for more details." >&5
3535 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3536 See \`config.log' for more details." >&2;}
3537 { (exit 1); exit 1; }; }
3540 rm -f conftest$ac_cv_exeext
3541 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3542 $as_echo "$ac_cv_exeext" >&6; }
3544 rm -f conftest.$ac_ext
3545 EXEEXT=$ac_cv_exeext
3546 ac_exeext=$EXEEXT
3547 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3548 $as_echo_n "checking for suffix of object files... " >&6; }
3549 if test "${ac_cv_objext+set}" = set; then
3550 $as_echo_n "(cached) " >&6
3551 else
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3560 main ()
3564 return 0;
3566 _ACEOF
3567 rm -f conftest.o conftest.obj
3568 if { (ac_try="$ac_compile"
3569 case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3574 $as_echo "$ac_try_echo") >&5
3575 (eval "$ac_compile") 2>&5
3576 ac_status=$?
3577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; then
3579 for ac_file in conftest.o conftest.obj conftest.*; do
3580 test -f "$ac_file" || continue;
3581 case $ac_file in
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3583 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3584 break;;
3585 esac
3586 done
3587 else
3588 $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3592 See \`config.log' for more details." >&5
3593 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3594 See \`config.log' for more details." >&2;}
3595 { (exit 1); exit 1; }; }
3598 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3600 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3601 $as_echo "$ac_cv_objext" >&6; }
3602 OBJEXT=$ac_cv_objext
3603 ac_objext=$OBJEXT
3604 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3605 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3606 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3607 $as_echo_n "(cached) " >&6
3608 else
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h. */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3617 main ()
3619 #ifndef __GNUC__
3620 choke me
3621 #endif
3624 return 0;
3626 _ACEOF
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3629 case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3634 $as_echo "$ac_try_echo") >&5
3635 (eval "$ac_compile") 2>conftest.er1
3636 ac_status=$?
3637 grep -v '^ *+' conftest.er1 >conftest.err
3638 rm -f conftest.er1
3639 cat conftest.err >&5
3640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } && {
3642 test -z "$ac_c_werror_flag" ||
3643 test ! -s conftest.err
3644 } && test -s conftest.$ac_objext; then
3645 ac_compiler_gnu=yes
3646 else
3647 $as_echo "$as_me: failed program was:" >&5
3648 sed 's/^/| /' conftest.$ac_ext >&5
3650 ac_compiler_gnu=no
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3657 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3658 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3659 if test $ac_compiler_gnu = yes; then
3660 GCC=yes
3661 else
3662 GCC=
3664 ac_test_CFLAGS=${CFLAGS+set}
3665 ac_save_CFLAGS=$CFLAGS
3666 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3667 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3668 if test "${ac_cv_prog_cc_g+set}" = set; then
3669 $as_echo_n "(cached) " >&6
3670 else
3671 ac_save_c_werror_flag=$ac_c_werror_flag
3672 ac_c_werror_flag=yes
3673 ac_cv_prog_cc_g=no
3674 CFLAGS="-g"
3675 cat >conftest.$ac_ext <<_ACEOF
3676 /* confdefs.h. */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3683 main ()
3687 return 0;
3689 _ACEOF
3690 rm -f conftest.$ac_objext
3691 if { (ac_try="$ac_compile"
3692 case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3695 esac
3696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3697 $as_echo "$ac_try_echo") >&5
3698 (eval "$ac_compile") 2>conftest.er1
3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } && {
3705 test -z "$ac_c_werror_flag" ||
3706 test ! -s conftest.err
3707 } && test -s conftest.$ac_objext; then
3708 ac_cv_prog_cc_g=yes
3709 else
3710 $as_echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3713 CFLAGS=""
3714 cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h. */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3722 main ()
3726 return 0;
3728 _ACEOF
3729 rm -f conftest.$ac_objext
3730 if { (ac_try="$ac_compile"
3731 case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734 esac
3735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3736 $as_echo "$ac_try_echo") >&5
3737 (eval "$ac_compile") 2>conftest.er1
3738 ac_status=$?
3739 grep -v '^ *+' conftest.er1 >conftest.err
3740 rm -f conftest.er1
3741 cat conftest.err >&5
3742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } && {
3744 test -z "$ac_c_werror_flag" ||
3745 test ! -s conftest.err
3746 } && test -s conftest.$ac_objext; then
3748 else
3749 $as_echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 ac_c_werror_flag=$ac_save_c_werror_flag
3753 CFLAGS="-g"
3754 cat >conftest.$ac_ext <<_ACEOF
3755 /* confdefs.h. */
3756 _ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3762 main ()
3766 return 0;
3768 _ACEOF
3769 rm -f conftest.$ac_objext
3770 if { (ac_try="$ac_compile"
3771 case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774 esac
3775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3776 $as_echo "$ac_try_echo") >&5
3777 (eval "$ac_compile") 2>conftest.er1
3778 ac_status=$?
3779 grep -v '^ *+' conftest.er1 >conftest.err
3780 rm -f conftest.er1
3781 cat conftest.err >&5
3782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } && {
3784 test -z "$ac_c_werror_flag" ||
3785 test ! -s conftest.err
3786 } && test -s conftest.$ac_objext; then
3787 ac_cv_prog_cc_g=yes
3788 else
3789 $as_echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 ac_c_werror_flag=$ac_save_c_werror_flag
3804 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3805 $as_echo "$ac_cv_prog_cc_g" >&6; }
3806 if test "$ac_test_CFLAGS" = set; then
3807 CFLAGS=$ac_save_CFLAGS
3808 elif test $ac_cv_prog_cc_g = yes; then
3809 if test "$GCC" = yes; then
3810 CFLAGS="-g -O2"
3811 else
3812 CFLAGS="-g"
3814 else
3815 if test "$GCC" = yes; then
3816 CFLAGS="-O2"
3817 else
3818 CFLAGS=
3821 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3822 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3823 if test "${ac_cv_prog_cc_c89+set}" = set; then
3824 $as_echo_n "(cached) " >&6
3825 else
3826 ac_cv_prog_cc_c89=no
3827 ac_save_CC=$CC
3828 cat >conftest.$ac_ext <<_ACEOF
3829 /* confdefs.h. */
3830 _ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834 #include <stdarg.h>
3835 #include <stdio.h>
3836 #include <sys/types.h>
3837 #include <sys/stat.h>
3838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3839 struct buf { int x; };
3840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3841 static char *e (p, i)
3842 char **p;
3843 int i;
3845 return p[i];
3847 static char *f (char * (*g) (char **, int), char **p, ...)
3849 char *s;
3850 va_list v;
3851 va_start (v,p);
3852 s = g (p, va_arg (v,int));
3853 va_end (v);
3854 return s;
3857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3858 function prototypes and stuff, but not '\xHH' hex character constants.
3859 These don't provoke an error unfortunately, instead are silently treated
3860 as 'x'. The following induces an error, until -std is added to get
3861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3862 array size at least. It's necessary to write '\x00'==0 to get something
3863 that's true only with -std. */
3864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3867 inside strings and character constants. */
3868 #define FOO(x) 'x'
3869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3871 int test (int i, double x);
3872 struct s1 {int (*f) (int a);};
3873 struct s2 {int (*f) (double a);};
3874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3875 int argc;
3876 char **argv;
3878 main ()
3880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3882 return 0;
3884 _ACEOF
3885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3888 CC="$ac_save_CC $ac_arg"
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3896 $as_echo "$ac_try_echo") >&5
3897 (eval "$ac_compile") 2>conftest.er1
3898 ac_status=$?
3899 grep -v '^ *+' conftest.er1 >conftest.err
3900 rm -f conftest.er1
3901 cat conftest.err >&5
3902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } && {
3904 test -z "$ac_c_werror_flag" ||
3905 test ! -s conftest.err
3906 } && test -s conftest.$ac_objext; then
3907 ac_cv_prog_cc_c89=$ac_arg
3908 else
3909 $as_echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3915 rm -f core conftest.err conftest.$ac_objext
3916 test "x$ac_cv_prog_cc_c89" != "xno" && break
3917 done
3918 rm -f conftest.$ac_ext
3919 CC=$ac_save_CC
3922 # AC_CACHE_VAL
3923 case "x$ac_cv_prog_cc_c89" in
3925 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3926 $as_echo "none needed" >&6; } ;;
3927 xno)
3928 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3929 $as_echo "unsupported" >&6; } ;;
3931 CC="$CC $ac_cv_prog_cc_c89"
3932 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3933 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3934 esac
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944 # On Suns, sometimes $CPP names a directory.
3945 if test -n "$CPP" && test -d "$CPP"; then
3946 CPP=
3949 ## If not using gcc, and on Solaris, and no CPP specified, see if
3950 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3951 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3952 test x"$CPP" = x; then
3953 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3954 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3956 if test "${emacs_cv_sunpro_c+set}" = set; then
3957 $as_echo_n "(cached) " >&6
3958 else
3959 cat >conftest.$ac_ext <<_ACEOF
3960 /* confdefs.h. */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3967 main ()
3969 #ifndef __SUNPRO_C
3970 fail;
3971 #endif
3974 return 0;
3976 _ACEOF
3977 rm -f conftest.$ac_objext conftest$ac_exeext
3978 if { (ac_try="$ac_link"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985 (eval "$ac_link") 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest$ac_exeext && {
3995 test "$cross_compiling" = yes ||
3996 $as_test_x conftest$ac_exeext
3997 }; then
3998 emacs_cv_sunpro_c=yes
3999 else
4000 $as_echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4003 emacs_cv_sunpro_c=no
4006 rm -rf conftest.dSYM
4007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4008 conftest$ac_exeext conftest.$ac_ext
4011 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4012 $as_echo "$emacs_cv_sunpro_c" >&6; }
4014 if test x"$emacs_cv_sunpro_c" = xyes; then
4015 NON_GNU_CPP="$CC -E -Xs"
4019 #### Some systems specify a CPP to use unless we are using GCC.
4020 #### Now that we know whether we are using GCC, we can decide whether
4021 #### to use that one.
4022 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4023 then
4024 CPP="$NON_GNU_CPP"
4027 #### Some systems specify a CC to use unless we are using GCC.
4028 #### Now that we know whether we are using GCC, we can decide whether
4029 #### to use that one.
4030 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4031 test x$cc_specified != xyes
4032 then
4033 CC="$NON_GNU_CC"
4036 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4037 then
4038 CC="$CC $GCC_TEST_OPTIONS"
4041 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4042 then
4043 CC="$CC $NON_GCC_TEST_OPTIONS"
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4052 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4053 # On Suns, sometimes $CPP names a directory.
4054 if test -n "$CPP" && test -d "$CPP"; then
4055 CPP=
4057 if test -z "$CPP"; then
4058 if test "${ac_cv_prog_CPP+set}" = set; then
4059 $as_echo_n "(cached) " >&6
4060 else
4061 # Double quotes because CPP needs to be expanded
4062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4064 ac_preproc_ok=false
4065 for ac_c_preproc_warn_flag in '' yes
4067 # Use a header file that comes with gcc, so configuring glibc
4068 # with a fresh cross-compiler works.
4069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070 # <limits.h> exists even on freestanding compilers.
4071 # On the NeXT, cc -E runs the code through the compiler's parser,
4072 # not just through cpp. "Syntax error" is here to catch this case.
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 #ifdef __STDC__
4080 # include <limits.h>
4081 #else
4082 # include <assert.h>
4083 #endif
4084 Syntax error
4085 _ACEOF
4086 if { (ac_try="$ac_cpp conftest.$ac_ext"
4087 case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090 esac
4091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4092 $as_echo "$ac_try_echo") >&5
4093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4094 ac_status=$?
4095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
4098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } >/dev/null && {
4100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4101 test ! -s conftest.err
4102 }; then
4104 else
4105 $as_echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 # Broken: fails on valid input.
4109 continue
4112 rm -f conftest.err conftest.$ac_ext
4114 # OK, works on sane cases. Now check whether nonexistent headers
4115 # can be detected and how.
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h. */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <ac_nonexistent.h>
4123 _ACEOF
4124 if { (ac_try="$ac_cpp conftest.$ac_ext"
4125 case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128 esac
4129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4130 $as_echo "$ac_try_echo") >&5
4131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4132 ac_status=$?
4133 grep -v '^ *+' conftest.er1 >conftest.err
4134 rm -f conftest.er1
4135 cat conftest.err >&5
4136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } >/dev/null && {
4138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4139 test ! -s conftest.err
4140 }; then
4141 # Broken: success on invalid input.
4142 continue
4143 else
4144 $as_echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 # Passes both tests.
4148 ac_preproc_ok=:
4149 break
4152 rm -f conftest.err conftest.$ac_ext
4154 done
4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156 rm -f conftest.err conftest.$ac_ext
4157 if $ac_preproc_ok; then
4158 break
4161 done
4162 ac_cv_prog_CPP=$CPP
4165 CPP=$ac_cv_prog_CPP
4166 else
4167 ac_cv_prog_CPP=$CPP
4169 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4170 $as_echo "$CPP" >&6; }
4171 ac_preproc_ok=false
4172 for ac_c_preproc_warn_flag in '' yes
4174 # Use a header file that comes with gcc, so configuring glibc
4175 # with a fresh cross-compiler works.
4176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4177 # <limits.h> exists even on freestanding compilers.
4178 # On the NeXT, cc -E runs the code through the compiler's parser,
4179 # not just through cpp. "Syntax error" is here to catch this case.
4180 cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h. */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 #ifdef __STDC__
4187 # include <limits.h>
4188 #else
4189 # include <assert.h>
4190 #endif
4191 Syntax error
4192 _ACEOF
4193 if { (ac_try="$ac_cpp conftest.$ac_ext"
4194 case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197 esac
4198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4199 $as_echo "$ac_try_echo") >&5
4200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4201 ac_status=$?
4202 grep -v '^ *+' conftest.er1 >conftest.err
4203 rm -f conftest.er1
4204 cat conftest.err >&5
4205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } >/dev/null && {
4207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4208 test ! -s conftest.err
4209 }; then
4211 else
4212 $as_echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 # Broken: fails on valid input.
4216 continue
4219 rm -f conftest.err conftest.$ac_ext
4221 # OK, works on sane cases. Now check whether nonexistent headers
4222 # can be detected and how.
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h. */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <ac_nonexistent.h>
4230 _ACEOF
4231 if { (ac_try="$ac_cpp conftest.$ac_ext"
4232 case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235 esac
4236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4237 $as_echo "$ac_try_echo") >&5
4238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } >/dev/null && {
4245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4246 test ! -s conftest.err
4247 }; then
4248 # Broken: success on invalid input.
4249 continue
4250 else
4251 $as_echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 # Passes both tests.
4255 ac_preproc_ok=:
4256 break
4259 rm -f conftest.err conftest.$ac_ext
4261 done
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then
4266 else
4267 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4268 See \`config.log' for more details." >&5
4269 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4270 See \`config.log' for more details." >&2;}
4271 { (exit 1); exit 1; }; }
4274 ac_ext=c
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4282 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4283 if test "${ac_cv_path_GREP+set}" = set; then
4284 $as_echo_n "(cached) " >&6
4285 else
4286 if test -z "$GREP"; then
4287 ac_path_GREP_found=false
4288 # Loop through the user's path and test for each of PROGNAME-LIST
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_prog in grep ggrep; do
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4297 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4298 # Check for GNU ac_path_GREP and select it if it is found.
4299 # Check for GNU $ac_path_GREP
4300 case `"$ac_path_GREP" --version 2>&1` in
4301 *GNU*)
4302 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4304 ac_count=0
4305 $as_echo_n 0123456789 >"conftest.in"
4306 while :
4308 cat "conftest.in" "conftest.in" >"conftest.tmp"
4309 mv "conftest.tmp" "conftest.in"
4310 cp "conftest.in" "conftest.nl"
4311 $as_echo 'GREP' >> "conftest.nl"
4312 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4314 ac_count=`expr $ac_count + 1`
4315 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4316 # Best one so far, save it but keep looking for a better one
4317 ac_cv_path_GREP="$ac_path_GREP"
4318 ac_path_GREP_max=$ac_count
4320 # 10*(2^10) chars as input seems more than enough
4321 test $ac_count -gt 10 && break
4322 done
4323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4324 esac
4326 $ac_path_GREP_found && break 3
4327 done
4328 done
4329 done
4330 IFS=$as_save_IFS
4331 if test -z "$ac_cv_path_GREP"; then
4332 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4333 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4334 { (exit 1); exit 1; }; }
4336 else
4337 ac_cv_path_GREP=$GREP
4341 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4342 $as_echo "$ac_cv_path_GREP" >&6; }
4343 GREP="$ac_cv_path_GREP"
4346 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4347 $as_echo_n "checking for egrep... " >&6; }
4348 if test "${ac_cv_path_EGREP+set}" = set; then
4349 $as_echo_n "(cached) " >&6
4350 else
4351 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4352 then ac_cv_path_EGREP="$GREP -E"
4353 else
4354 if test -z "$EGREP"; then
4355 ac_path_EGREP_found=false
4356 # Loop through the user's path and test for each of PROGNAME-LIST
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_prog in egrep; do
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4365 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4366 # Check for GNU ac_path_EGREP and select it if it is found.
4367 # Check for GNU $ac_path_EGREP
4368 case `"$ac_path_EGREP" --version 2>&1` in
4369 *GNU*)
4370 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4372 ac_count=0
4373 $as_echo_n 0123456789 >"conftest.in"
4374 while :
4376 cat "conftest.in" "conftest.in" >"conftest.tmp"
4377 mv "conftest.tmp" "conftest.in"
4378 cp "conftest.in" "conftest.nl"
4379 $as_echo 'EGREP' >> "conftest.nl"
4380 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4381 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4382 ac_count=`expr $ac_count + 1`
4383 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4384 # Best one so far, save it but keep looking for a better one
4385 ac_cv_path_EGREP="$ac_path_EGREP"
4386 ac_path_EGREP_max=$ac_count
4388 # 10*(2^10) chars as input seems more than enough
4389 test $ac_count -gt 10 && break
4390 done
4391 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4392 esac
4394 $ac_path_EGREP_found && break 3
4395 done
4396 done
4397 done
4398 IFS=$as_save_IFS
4399 if test -z "$ac_cv_path_EGREP"; then
4400 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4401 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4402 { (exit 1); exit 1; }; }
4404 else
4405 ac_cv_path_EGREP=$EGREP
4410 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4411 $as_echo "$ac_cv_path_EGREP" >&6; }
4412 EGREP="$ac_cv_path_EGREP"
4415 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4416 $as_echo_n "checking for ANSI C header files... " >&6; }
4417 if test "${ac_cv_header_stdc+set}" = set; then
4418 $as_echo_n "(cached) " >&6
4419 else
4420 cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h. */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 #include <stdlib.h>
4427 #include <stdarg.h>
4428 #include <string.h>
4429 #include <float.h>
4432 main ()
4436 return 0;
4438 _ACEOF
4439 rm -f conftest.$ac_objext
4440 if { (ac_try="$ac_compile"
4441 case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444 esac
4445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4446 $as_echo "$ac_try_echo") >&5
4447 (eval "$ac_compile") 2>conftest.er1
4448 ac_status=$?
4449 grep -v '^ *+' conftest.er1 >conftest.err
4450 rm -f conftest.er1
4451 cat conftest.err >&5
4452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } && {
4454 test -z "$ac_c_werror_flag" ||
4455 test ! -s conftest.err
4456 } && test -s conftest.$ac_objext; then
4457 ac_cv_header_stdc=yes
4458 else
4459 $as_echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4462 ac_cv_header_stdc=no
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 if test $ac_cv_header_stdc = yes; then
4468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4469 cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h. */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 #include <string.h>
4477 _ACEOF
4478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4479 $EGREP "memchr" >/dev/null 2>&1; then
4481 else
4482 ac_cv_header_stdc=no
4484 rm -f conftest*
4488 if test $ac_cv_header_stdc = yes; then
4489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4490 cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h. */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 #include <stdlib.h>
4498 _ACEOF
4499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4500 $EGREP "free" >/dev/null 2>&1; then
4502 else
4503 ac_cv_header_stdc=no
4505 rm -f conftest*
4509 if test $ac_cv_header_stdc = yes; then
4510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4511 if test "$cross_compiling" = yes; then
4513 else
4514 cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h. */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 #include <ctype.h>
4521 #include <stdlib.h>
4522 #if ((' ' & 0x0FF) == 0x020)
4523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4525 #else
4526 # define ISLOWER(c) \
4527 (('a' <= (c) && (c) <= 'i') \
4528 || ('j' <= (c) && (c) <= 'r') \
4529 || ('s' <= (c) && (c) <= 'z'))
4530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4531 #endif
4533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4535 main ()
4537 int i;
4538 for (i = 0; i < 256; i++)
4539 if (XOR (islower (i), ISLOWER (i))
4540 || toupper (i) != TOUPPER (i))
4541 return 2;
4542 return 0;
4544 _ACEOF
4545 rm -f conftest$ac_exeext
4546 if { (ac_try="$ac_link"
4547 case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550 esac
4551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4552 $as_echo "$ac_try_echo") >&5
4553 (eval "$ac_link") 2>&5
4554 ac_status=$?
4555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4557 { (case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560 esac
4561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4562 $as_echo "$ac_try_echo") >&5
4563 (eval "$ac_try") 2>&5
4564 ac_status=$?
4565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4568 else
4569 $as_echo "$as_me: program exited with status $ac_status" >&5
4570 $as_echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4573 ( exit $ac_status )
4574 ac_cv_header_stdc=no
4576 rm -rf conftest.dSYM
4577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4584 $as_echo "$ac_cv_header_stdc" >&6; }
4585 if test $ac_cv_header_stdc = yes; then
4587 cat >>confdefs.h <<\_ACEOF
4588 #define STDC_HEADERS 1
4589 _ACEOF
4593 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4603 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4604 inttypes.h stdint.h unistd.h
4606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4607 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4608 $as_echo_n "checking for $ac_header... " >&6; }
4609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4610 $as_echo_n "(cached) " >&6
4611 else
4612 cat >conftest.$ac_ext <<_ACEOF
4613 /* confdefs.h. */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 $ac_includes_default
4620 #include <$ac_header>
4621 _ACEOF
4622 rm -f conftest.$ac_objext
4623 if { (ac_try="$ac_compile"
4624 case "(($ac_try" in
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4627 esac
4628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4629 $as_echo "$ac_try_echo") >&5
4630 (eval "$ac_compile") 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } && {
4637 test -z "$ac_c_werror_flag" ||
4638 test ! -s conftest.err
4639 } && test -s conftest.$ac_objext; then
4640 eval "$as_ac_Header=yes"
4641 else
4642 $as_echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 eval "$as_ac_Header=no"
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 ac_res=`eval 'as_val=${'$as_ac_Header'}
4651 $as_echo "$as_val"'`
4652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4653 $as_echo "$ac_res" >&6; }
4654 if test `eval 'as_val=${'$as_ac_Header'}
4655 $as_echo "$as_val"'` = yes; then
4656 cat >>confdefs.h <<_ACEOF
4657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4658 _ACEOF
4662 done
4666 if test "${ac_cv_header_minix_config_h+set}" = set; then
4667 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4668 $as_echo_n "checking for minix/config.h... " >&6; }
4669 if test "${ac_cv_header_minix_config_h+set}" = set; then
4670 $as_echo_n "(cached) " >&6
4672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4673 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4674 else
4675 # Is the header compilable?
4676 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4677 $as_echo_n "checking minix/config.h usability... " >&6; }
4678 cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h. */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4684 $ac_includes_default
4685 #include <minix/config.h>
4686 _ACEOF
4687 rm -f conftest.$ac_objext
4688 if { (ac_try="$ac_compile"
4689 case "(($ac_try" in
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4692 esac
4693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4694 $as_echo "$ac_try_echo") >&5
4695 (eval "$ac_compile") 2>conftest.er1
4696 ac_status=$?
4697 grep -v '^ *+' conftest.er1 >conftest.err
4698 rm -f conftest.er1
4699 cat conftest.err >&5
4700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } && {
4702 test -z "$ac_c_werror_flag" ||
4703 test ! -s conftest.err
4704 } && test -s conftest.$ac_objext; then
4705 ac_header_compiler=yes
4706 else
4707 $as_echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 ac_header_compiler=no
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4715 $as_echo "$ac_header_compiler" >&6; }
4717 # Is the header present?
4718 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4719 $as_echo_n "checking minix/config.h presence... " >&6; }
4720 cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h. */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 #include <minix/config.h>
4727 _ACEOF
4728 if { (ac_try="$ac_cpp conftest.$ac_ext"
4729 case "(($ac_try" in
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4732 esac
4733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4734 $as_echo "$ac_try_echo") >&5
4735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } >/dev/null && {
4742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4743 test ! -s conftest.err
4744 }; then
4745 ac_header_preproc=yes
4746 else
4747 $as_echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4750 ac_header_preproc=no
4753 rm -f conftest.err conftest.$ac_ext
4754 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4755 $as_echo "$ac_header_preproc" >&6; }
4757 # So? What about this header?
4758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4759 yes:no: )
4760 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4761 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4762 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4763 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4764 ac_header_preproc=yes
4766 no:yes:* )
4767 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4768 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4769 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4770 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4771 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4772 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4773 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4774 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4775 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4776 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4778 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4781 esac
4782 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4783 $as_echo_n "checking for minix/config.h... " >&6; }
4784 if test "${ac_cv_header_minix_config_h+set}" = set; then
4785 $as_echo_n "(cached) " >&6
4786 else
4787 ac_cv_header_minix_config_h=$ac_header_preproc
4789 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4790 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4793 if test $ac_cv_header_minix_config_h = yes; then
4794 MINIX=yes
4795 else
4796 MINIX=
4800 if test "$MINIX" = yes; then
4802 cat >>confdefs.h <<\_ACEOF
4803 #define _POSIX_SOURCE 1
4804 _ACEOF
4807 cat >>confdefs.h <<\_ACEOF
4808 #define _POSIX_1_SOURCE 2
4809 _ACEOF
4812 cat >>confdefs.h <<\_ACEOF
4813 #define _MINIX 1
4814 _ACEOF
4820 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4821 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4822 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4823 $as_echo_n "(cached) " >&6
4824 else
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4832 # define __EXTENSIONS__ 1
4833 $ac_includes_default
4835 main ()
4839 return 0;
4841 _ACEOF
4842 rm -f conftest.$ac_objext
4843 if { (ac_try="$ac_compile"
4844 case "(($ac_try" in
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4847 esac
4848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4849 $as_echo "$ac_try_echo") >&5
4850 (eval "$ac_compile") 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } && {
4857 test -z "$ac_c_werror_flag" ||
4858 test ! -s conftest.err
4859 } && test -s conftest.$ac_objext; then
4860 ac_cv_safe_to_define___extensions__=yes
4861 else
4862 $as_echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4865 ac_cv_safe_to_define___extensions__=no
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4871 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4872 test $ac_cv_safe_to_define___extensions__ = yes &&
4873 cat >>confdefs.h <<\_ACEOF
4874 #define __EXTENSIONS__ 1
4875 _ACEOF
4877 cat >>confdefs.h <<\_ACEOF
4878 #define _ALL_SOURCE 1
4879 _ACEOF
4881 cat >>confdefs.h <<\_ACEOF
4882 #define _GNU_SOURCE 1
4883 _ACEOF
4885 cat >>confdefs.h <<\_ACEOF
4886 #define _POSIX_PTHREAD_SEMANTICS 1
4887 _ACEOF
4889 cat >>confdefs.h <<\_ACEOF
4890 #define _TANDEM_SOURCE 1
4891 _ACEOF
4895 ### Use -Wno-pointer-sign if the compiler supports it
4896 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4897 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4898 SAVE_CFLAGS="$CFLAGS"
4899 CFLAGS="$CFLAGS -Wno-pointer-sign"
4900 cat >conftest.$ac_ext <<_ACEOF
4901 /* confdefs.h. */
4902 _ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4908 main ()
4912 return 0;
4914 _ACEOF
4915 rm -f conftest.$ac_objext
4916 if { (ac_try="$ac_compile"
4917 case "(($ac_try" in
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4920 esac
4921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4922 $as_echo "$ac_try_echo") >&5
4923 (eval "$ac_compile") 2>conftest.er1
4924 ac_status=$?
4925 grep -v '^ *+' conftest.er1 >conftest.err
4926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && {
4930 test -z "$ac_c_werror_flag" ||
4931 test ! -s conftest.err
4932 } && test -s conftest.$ac_objext; then
4933 has_option=yes
4934 else
4935 $as_echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4938 has_option=no
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 if test $has_option = yes; then
4943 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4945 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4946 $as_echo "$has_option" >&6; }
4947 CFLAGS="$SAVE_CFLAGS"
4948 unset has_option
4949 unset SAVE_CFLAGS
4951 ### Use -Wdeclaration-after-statement if the compiler supports it
4952 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4953 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4954 SAVE_CFLAGS="$CFLAGS"
4955 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4964 main ()
4968 return 0;
4970 _ACEOF
4971 rm -f conftest.$ac_objext
4972 if { (ac_try="$ac_compile"
4973 case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976 esac
4977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4978 $as_echo "$ac_try_echo") >&5
4979 (eval "$ac_compile") 2>conftest.er1
4980 ac_status=$?
4981 grep -v '^ *+' conftest.er1 >conftest.err
4982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && {
4986 test -z "$ac_c_werror_flag" ||
4987 test ! -s conftest.err
4988 } && test -s conftest.$ac_objext; then
4989 has_option=yes
4990 else
4991 $as_echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4994 has_option=no
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 if test $has_option = yes; then
4999 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5001 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5002 $as_echo "$has_option" >&6; }
5003 CFLAGS="$SAVE_CFLAGS"
5004 unset has_option
5005 unset SAVE_CFLAGS
5007 #### Some other nice autoconf tests.
5009 ac_ext=c
5010 ac_cpp='$CPP $CPPFLAGS'
5011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5015 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5016 # On Suns, sometimes $CPP names a directory.
5017 if test -n "$CPP" && test -d "$CPP"; then
5018 CPP=
5020 if test -z "$CPP"; then
5021 if test "${ac_cv_prog_CPP+set}" = set; then
5022 $as_echo_n "(cached) " >&6
5023 else
5024 # Double quotes because CPP needs to be expanded
5025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5027 ac_preproc_ok=false
5028 for ac_c_preproc_warn_flag in '' yes
5030 # Use a header file that comes with gcc, so configuring glibc
5031 # with a fresh cross-compiler works.
5032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033 # <limits.h> exists even on freestanding compilers.
5034 # On the NeXT, cc -E runs the code through the compiler's parser,
5035 # not just through cpp. "Syntax error" is here to catch this case.
5036 cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h. */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 #ifdef __STDC__
5043 # include <limits.h>
5044 #else
5045 # include <assert.h>
5046 #endif
5047 Syntax error
5048 _ACEOF
5049 if { (ac_try="$ac_cpp conftest.$ac_ext"
5050 case "(($ac_try" in
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5053 esac
5054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5055 $as_echo "$ac_try_echo") >&5
5056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } >/dev/null && {
5063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 }; then
5067 else
5068 $as_echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 # Broken: fails on valid input.
5072 continue
5075 rm -f conftest.err conftest.$ac_ext
5077 # OK, works on sane cases. Now check whether nonexistent headers
5078 # can be detected and how.
5079 cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h. */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 #include <ac_nonexistent.h>
5086 _ACEOF
5087 if { (ac_try="$ac_cpp conftest.$ac_ext"
5088 case "(($ac_try" in
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5091 esac
5092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5093 $as_echo "$ac_try_echo") >&5
5094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev/null && {
5101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5102 test ! -s conftest.err
5103 }; then
5104 # Broken: success on invalid input.
5105 continue
5106 else
5107 $as_echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 # Passes both tests.
5111 ac_preproc_ok=:
5112 break
5115 rm -f conftest.err conftest.$ac_ext
5117 done
5118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119 rm -f conftest.err conftest.$ac_ext
5120 if $ac_preproc_ok; then
5121 break
5124 done
5125 ac_cv_prog_CPP=$CPP
5128 CPP=$ac_cv_prog_CPP
5129 else
5130 ac_cv_prog_CPP=$CPP
5132 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5133 $as_echo "$CPP" >&6; }
5134 ac_preproc_ok=false
5135 for ac_c_preproc_warn_flag in '' yes
5137 # Use a header file that comes with gcc, so configuring glibc
5138 # with a fresh cross-compiler works.
5139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5140 # <limits.h> exists even on freestanding compilers.
5141 # On the NeXT, cc -E runs the code through the compiler's parser,
5142 # not just through cpp. "Syntax error" is here to catch this case.
5143 cat >conftest.$ac_ext <<_ACEOF
5144 /* confdefs.h. */
5145 _ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5149 #ifdef __STDC__
5150 # include <limits.h>
5151 #else
5152 # include <assert.h>
5153 #endif
5154 Syntax error
5155 _ACEOF
5156 if { (ac_try="$ac_cpp conftest.$ac_ext"
5157 case "(($ac_try" in
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5160 esac
5161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5162 $as_echo "$ac_try_echo") >&5
5163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5164 ac_status=$?
5165 grep -v '^ *+' conftest.er1 >conftest.err
5166 rm -f conftest.er1
5167 cat conftest.err >&5
5168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } >/dev/null && {
5170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5171 test ! -s conftest.err
5172 }; then
5174 else
5175 $as_echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5178 # Broken: fails on valid input.
5179 continue
5182 rm -f conftest.err conftest.$ac_ext
5184 # OK, works on sane cases. Now check whether nonexistent headers
5185 # can be detected and how.
5186 cat >conftest.$ac_ext <<_ACEOF
5187 /* confdefs.h. */
5188 _ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5192 #include <ac_nonexistent.h>
5193 _ACEOF
5194 if { (ac_try="$ac_cpp conftest.$ac_ext"
5195 case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198 esac
5199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5200 $as_echo "$ac_try_echo") >&5
5201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5202 ac_status=$?
5203 grep -v '^ *+' conftest.er1 >conftest.err
5204 rm -f conftest.er1
5205 cat conftest.err >&5
5206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } >/dev/null && {
5208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5209 test ! -s conftest.err
5210 }; then
5211 # Broken: success on invalid input.
5212 continue
5213 else
5214 $as_echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5217 # Passes both tests.
5218 ac_preproc_ok=:
5219 break
5222 rm -f conftest.err conftest.$ac_ext
5224 done
5225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5226 rm -f conftest.err conftest.$ac_ext
5227 if $ac_preproc_ok; then
5229 else
5230 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5231 See \`config.log' for more details." >&5
5232 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5233 See \`config.log' for more details." >&2;}
5234 { (exit 1); exit 1; }; }
5237 ac_ext=c
5238 ac_cpp='$CPP $CPPFLAGS'
5239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5243 # Find a good install program. We prefer a C program (faster),
5244 # so one script is as good as another. But avoid the broken or
5245 # incompatible versions:
5246 # SysV /etc/install, /usr/sbin/install
5247 # SunOS /usr/etc/install
5248 # IRIX /sbin/install
5249 # AIX /bin/install
5250 # AmigaOS /C/install, which installs bootblocks on floppy discs
5251 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5252 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5253 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5254 # OS/2's system install, which has a completely different semantic
5255 # ./install, which can be erroneously created by make from ./install.sh.
5256 # Reject install programs that cannot install multiple files.
5257 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5258 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5259 if test -z "$INSTALL"; then
5260 if test "${ac_cv_path_install+set}" = set; then
5261 $as_echo_n "(cached) " >&6
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 # Account for people who put trailing slashes in PATH elements.
5269 case $as_dir/ in
5270 ./ | .// | /cC/* | \
5271 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5272 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5273 /usr/ucb/* ) ;;
5275 # OSF1 and SCO ODT 3.0 have their own names for install.
5276 # Don't use installbsd from OSF since it installs stuff as root
5277 # by default.
5278 for ac_prog in ginstall scoinst install; do
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5281 if test $ac_prog = install &&
5282 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5283 # AIX install. It has an incompatible calling convention.
5285 elif test $ac_prog = install &&
5286 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5287 # program-specific install script used by HP pwplus--don't use.
5289 else
5290 rm -rf conftest.one conftest.two conftest.dir
5291 echo one > conftest.one
5292 echo two > conftest.two
5293 mkdir conftest.dir
5294 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5295 test -s conftest.one && test -s conftest.two &&
5296 test -s conftest.dir/conftest.one &&
5297 test -s conftest.dir/conftest.two
5298 then
5299 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5300 break 3
5304 done
5305 done
5307 esac
5309 done
5310 IFS=$as_save_IFS
5312 rm -rf conftest.one conftest.two conftest.dir
5315 if test "${ac_cv_path_install+set}" = set; then
5316 INSTALL=$ac_cv_path_install
5317 else
5318 # As a last resort, use the slow shell script. Don't cache a
5319 # value for INSTALL within a source directory, because that will
5320 # break other packages using the cache if that directory is
5321 # removed, or if the value is a relative name.
5322 INSTALL=$ac_install_sh
5325 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5326 $as_echo "$INSTALL" >&6; }
5328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5329 # It thinks the first close brace ends the variable substitution.
5330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5336 if test "x$RANLIB" = x; then
5337 if test -n "$ac_tool_prefix"; then
5338 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5339 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if test "${ac_cv_prog_RANLIB+set}" = set; then
5343 $as_echo_n "(cached) " >&6
5344 else
5345 if test -n "$RANLIB"; then
5346 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5356 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5359 done
5360 done
5361 IFS=$as_save_IFS
5365 RANLIB=$ac_cv_prog_RANLIB
5366 if test -n "$RANLIB"; then
5367 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5368 $as_echo "$RANLIB" >&6; }
5369 else
5370 { $as_echo "$as_me:$LINENO: result: no" >&5
5371 $as_echo "no" >&6; }
5376 if test -z "$ac_cv_prog_RANLIB"; then
5377 ac_ct_RANLIB=$RANLIB
5378 # Extract the first word of "ranlib", so it can be a program name with args.
5379 set dummy ranlib; ac_word=$2
5380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5383 $as_echo_n "(cached) " >&6
5384 else
5385 if test -n "$ac_ct_RANLIB"; then
5386 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395 ac_cv_prog_ac_ct_RANLIB="ranlib"
5396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5399 done
5400 done
5401 IFS=$as_save_IFS
5405 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5406 if test -n "$ac_ct_RANLIB"; then
5407 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5408 $as_echo "$ac_ct_RANLIB" >&6; }
5409 else
5410 { $as_echo "$as_me:$LINENO: result: no" >&5
5411 $as_echo "no" >&6; }
5414 if test "x$ac_ct_RANLIB" = x; then
5415 RANLIB=":"
5416 else
5417 case $cross_compiling:$ac_tool_warned in
5418 yes:)
5419 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5420 whose name does not start with the host triplet. If you think this
5421 configuration is useful to you, please write to autoconf@gnu.org." >&5
5422 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5423 whose name does not start with the host triplet. If you think this
5424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5425 ac_tool_warned=yes ;;
5426 esac
5427 RANLIB=$ac_ct_RANLIB
5429 else
5430 RANLIB="$ac_cv_prog_RANLIB"
5435 ## Although we're running on an amd64 kernel, we're actually compiling for
5436 ## the x86 architecture. The user should probably have provided an
5437 ## explicit --build to `configure', but if everything else than the kernel
5438 ## is running in i386 mode, we can help them out.
5439 if test "$machine" = "amdx86-64"; then
5440 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5441 $as_echo_n "checking whether i386 is declared... " >&6; }
5442 if test "${ac_cv_have_decl_i386+set}" = set; then
5443 $as_echo_n "(cached) " >&6
5444 else
5445 cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h. */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 $ac_includes_default
5453 main ()
5455 #ifndef i386
5456 (void) i386;
5457 #endif
5460 return 0;
5462 _ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5465 case "(($ac_try" in
5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5468 esac
5469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5470 $as_echo "$ac_try_echo") >&5
5471 (eval "$ac_compile") 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && {
5478 test -z "$ac_c_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest.$ac_objext; then
5481 ac_cv_have_decl_i386=yes
5482 else
5483 $as_echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5486 ac_cv_have_decl_i386=no
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5492 $as_echo "$ac_cv_have_decl_i386" >&6; }
5494 if test "$ac_cv_have_decl_i386" = "yes"; then
5495 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5496 machine=intel386
5497 machfile="m/${machine}.h"
5501 # Extract the first word of "install-info", so it can be a program name with args.
5502 set dummy install-info; ac_word=$2
5503 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5506 $as_echo_n "(cached) " >&6
5507 else
5508 case $INSTALL_INFO in
5509 [\\/]* | ?:[\\/]*)
5510 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5524 done
5525 done
5526 IFS=$as_save_IFS
5529 esac
5531 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5532 if test -n "$INSTALL_INFO"; then
5533 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5534 $as_echo "$INSTALL_INFO" >&6; }
5535 else
5536 { $as_echo "$as_me:$LINENO: result: no" >&5
5537 $as_echo "no" >&6; }
5541 # Extract the first word of "install-info", so it can be a program name with args.
5542 set dummy install-info; ac_word=$2
5543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5546 $as_echo_n "(cached) " >&6
5547 else
5548 case $INSTALL_INFO in
5549 [\\/]* | ?:[\\/]*)
5550 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in /usr/sbin
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5561 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 break 2
5564 done
5565 done
5566 IFS=$as_save_IFS
5569 esac
5571 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5572 if test -n "$INSTALL_INFO"; then
5573 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5574 $as_echo "$INSTALL_INFO" >&6; }
5575 else
5576 { $as_echo "$as_me:$LINENO: result: no" >&5
5577 $as_echo "no" >&6; }
5581 # Extract the first word of "install-info", so it can be a program name with args.
5582 set dummy install-info; ac_word=$2
5583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5586 $as_echo_n "(cached) " >&6
5587 else
5588 case $INSTALL_INFO in
5589 [\\/]* | ?:[\\/]*)
5590 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in /sbin
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5601 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5604 done
5605 done
5606 IFS=$as_save_IFS
5608 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5610 esac
5612 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5613 if test -n "$INSTALL_INFO"; then
5614 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5615 $as_echo "$INSTALL_INFO" >&6; }
5616 else
5617 { $as_echo "$as_me:$LINENO: result: no" >&5
5618 $as_echo "no" >&6; }
5622 # Extract the first word of "gzip", so it can be a program name with args.
5623 set dummy gzip; ac_word=$2
5624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5627 $as_echo_n "(cached) " >&6
5628 else
5629 case $GZIP_PROG in
5630 [\\/]* | ?:[\\/]*)
5631 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5641 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 break 2
5645 done
5646 done
5647 IFS=$as_save_IFS
5650 esac
5652 GZIP_PROG=$ac_cv_path_GZIP_PROG
5653 if test -n "$GZIP_PROG"; then
5654 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5655 $as_echo "$GZIP_PROG" >&6; }
5656 else
5657 { $as_echo "$as_me:$LINENO: result: no" >&5
5658 $as_echo "no" >&6; }
5664 ## Need makeinfo >= 4.6 (?) to build the manuals.
5665 # Extract the first word of "makeinfo", so it can be a program name with args.
5666 set dummy makeinfo; ac_word=$2
5667 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5668 $as_echo_n "checking for $ac_word... " >&6; }
5669 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5670 $as_echo_n "(cached) " >&6
5671 else
5672 case $MAKEINFO in
5673 [\\/]* | ?:[\\/]*)
5674 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5688 done
5689 done
5690 IFS=$as_save_IFS
5692 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5694 esac
5696 MAKEINFO=$ac_cv_path_MAKEINFO
5697 if test -n "$MAKEINFO"; then
5698 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5699 $as_echo "$MAKEINFO" >&6; }
5700 else
5701 { $as_echo "$as_me:$LINENO: result: no" >&5
5702 $as_echo "no" >&6; }
5706 if test "$MAKEINFO" != "no" && \
5707 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
5708 MAKEINFO=no
5711 ## Makeinfo is unusual. For a released Emacs, the manuals are
5712 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5713 ## therefore in the category of "special tools" not normally required, which
5714 ## configure does not have to check for (eg autoconf itself).
5715 ## In a Bazaar checkout on the other hand, the manuals are not included.
5716 ## So makeinfo is a requirement to build from Bazaar, and configure
5717 ## should test for it as it does for any other build requirement.
5718 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5719 ## with pre-built manuals, from a Bazaar checkout.
5720 if test "$MAKEINFO" = "no"; then
5721 if test "x${with_makeinfo}" = "xno"; then
5722 MAKEINFO=off
5723 elif test ! -e $srcdir/info/emacs; then
5724 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5725 source tree does not seem to have pre-built manuals in the \`info' directory.
5726 Either install a suitable version of makeinfo, or re-run configure
5727 with the \`--without-makeinfo' option to build without the manuals. " >&5
5728 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5729 source tree does not seem to have pre-built manuals in the \`info' directory.
5730 Either install a suitable version of makeinfo, or re-run configure
5731 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5732 { (exit 1); exit 1; }; }
5737 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5738 then
5739 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5742 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5743 then
5744 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5748 late_LDFLAGS=$LDFLAGS
5749 if test "$GCC" = yes; then
5750 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5751 else
5752 LDFLAGS="$LDFLAGS -znocombreloc"
5755 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5756 $as_echo_n "checking for -znocombreloc... " >&6; }
5757 cat >conftest.$ac_ext <<_ACEOF
5758 main(){return 0;}
5759 _ACEOF
5760 rm -f conftest.$ac_objext conftest$ac_exeext
5761 if { (ac_try="$ac_link"
5762 case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765 esac
5766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5767 $as_echo "$ac_try_echo") >&5
5768 (eval "$ac_link") 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && {
5775 test -z "$ac_c_werror_flag" ||
5776 test ! -s conftest.err
5777 } && test -s conftest$ac_exeext && {
5778 test "$cross_compiling" = yes ||
5779 $as_test_x conftest$ac_exeext
5780 }; then
5781 { $as_echo "$as_me:$LINENO: result: yes" >&5
5782 $as_echo "yes" >&6; }
5783 else
5784 $as_echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5787 LDFLAGS=$late_LDFLAGS
5788 { $as_echo "$as_me:$LINENO: result: no" >&5
5789 $as_echo "no" >&6; }
5792 rm -rf conftest.dSYM
5793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5794 conftest$ac_exeext conftest.$ac_ext
5796 #### Extract some information from the operating system and machine files.
5798 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5799 - which libraries the lib-src programs will want, and
5800 - whether the GNU malloc routines are usable..." >&5
5801 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5802 - which libraries the lib-src programs will want, and
5803 - whether the GNU malloc routines are usable..." >&6;}
5805 ### First figure out CFLAGS (which we use for running the compiler here)
5806 ### and REAL_CFLAGS (which we use for real compilation).
5807 ### The two are the same except on a few systems, where they are made
5808 ### different to work around various lossages. For example,
5809 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5810 ### as implying static linking.
5812 ### If the CFLAGS env var is specified, we use that value
5813 ### instead of the default.
5815 ### It's not important that this name contain the PID; you can't run
5816 ### two configures in the same directory and have anything work
5817 ### anyway.
5818 tempcname="conftest.c"
5820 echo '
5821 #include "'${srcdir}'/src/'${opsysfile}'"
5822 #include "'${srcdir}'/src/'${machfile}'"
5824 configure___ LIBX=-lX11
5826 configure___ unexec=UNEXEC
5828 #ifdef CANNOT_DUMP
5829 configure___ cannot_dump=yes
5830 #else
5831 configure___ cannot_dump=no
5832 #endif
5834 #ifdef SYSTEM_MALLOC
5835 configure___ system_malloc=yes
5836 #else
5837 configure___ system_malloc=no
5838 #endif
5840 #ifdef USE_MMAP_FOR_BUFFERS
5841 configure___ use_mmap_for_buffers=yes
5842 #else
5843 configure___ use_mmap_for_buffers=no
5844 #endif
5846 #ifndef C_OPTIMIZE_SWITCH
5847 #ifdef __GNUC__
5848 #define C_OPTIMIZE_SWITCH -O2
5849 #else
5850 #define C_OPTIMIZE_SWITCH -O
5851 #endif
5852 #endif
5854 #ifndef C_WARNINGS_SWITCH
5855 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5856 #endif
5858 #ifdef THIS_IS_CONFIGURE
5860 /* Get the CFLAGS for tests in configure. */
5861 #ifdef __GNUC__
5862 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5863 #else
5864 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5865 #endif
5867 #else /* not THIS_IS_CONFIGURE */
5869 /* Get the CFLAGS for real compilation. */
5870 #ifdef __GNUC__
5871 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5872 #else
5873 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5874 #endif
5876 #endif /* not THIS_IS_CONFIGURE */
5877 ' > ${tempcname}
5879 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5881 # The value of CPP is a quoted variable reference, so we need to do this
5882 # to get its actual value...
5883 CPP=`eval "echo $CPP"`
5884 eval `${CPP} -Isrc ${tempcname} \
5885 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5886 if test "x$SPECIFIED_CFLAGS" = x; then
5887 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5888 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5889 else
5890 REAL_CFLAGS="$CFLAGS"
5892 rm ${tempcname}
5898 LD_SWITCH_SYSTEM=
5899 case "$opsys" in
5900 freebsd)
5901 ## Let `ld' find image libs and similar things in /usr/local/lib.
5902 ## The system compiler, GCC, has apparently been modified to not
5903 ## look there, contrary to what a stock GCC would do.
5904 LD_SWITCH_SYSTEM=-L/usr/local/lib
5907 gnu-linux)
5908 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5909 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5912 netbsd)
5913 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5916 openbsd)
5917 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5918 ## otherwise Emacs dumps core on elf systems.
5919 LD_SWITCH_SYSTEM="-Z"
5921 esac
5924 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5926 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5927 ## which has not been defined yet. When this was handled with cpp,
5928 ## it was expanded to null when configure sourced the s/*.h file.
5929 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5930 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5931 ## (or somesuch), but because it is supposed to go at the _front_
5932 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5933 ## Compare with the gnu-linux case below, which added to the end
5934 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5935 ## LD_SWITCH_SYSTEM_TEMACS.
5936 case "$opsys" in
5937 netbsd|openbsd)
5938 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5939 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5940 esac
5943 C_SWITCH_MACHINE=
5944 if test "$machine" = "alpha"; then
5945 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5946 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5947 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5948 $as_echo_n "(cached) " >&6
5949 else
5950 cat >conftest.$ac_ext <<_ACEOF
5951 /* confdefs.h. */
5952 _ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h. */
5956 $ac_includes_default
5958 main ()
5960 #ifndef __ELF__
5961 (void) __ELF__;
5962 #endif
5965 return 0;
5967 _ACEOF
5968 rm -f conftest.$ac_objext
5969 if { (ac_try="$ac_compile"
5970 case "(($ac_try" in
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5973 esac
5974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5975 $as_echo "$ac_try_echo") >&5
5976 (eval "$ac_compile") 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } && {
5983 test -z "$ac_c_werror_flag" ||
5984 test ! -s conftest.err
5985 } && test -s conftest.$ac_objext; then
5986 ac_cv_have_decl___ELF__=yes
5987 else
5988 $as_echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 ac_cv_have_decl___ELF__=no
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
5997 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
5999 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6000 ## With ELF, make sure that all common symbols get allocated to in the
6001 ## data section. Otherwise, the dump of temacs may miss variables in
6002 ## the shared library that have been initialized. For example, with
6003 ## GNU libc, __malloc_initialized would normally be resolved to the
6004 ## shared library's .bss section, which is fatal.
6005 if test "x$GCC" = "xyes"; then
6006 C_SWITCH_MACHINE="-fno-common"
6007 else
6008 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6009 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6010 { (exit 1); exit 1; }; }
6017 C_SWITCH_SYSTEM=
6018 ## Some programs in src produce warnings saying certain subprograms
6019 ## are too complex and need a MAXMEM value greater than 2000 for
6020 ## additional optimization. --nils@exp-math.uni-essen.de
6021 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6022 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6023 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6024 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6028 LIBS_SYSTEM=
6029 case "$opsys" in
6030 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6031 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6033 freebsd) LIBS_SYSTEM="-lutil" ;;
6035 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6037 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6039 ## Motif needs -lgen.
6040 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6041 esac
6045 ### Make sure subsequent tests use flags consistent with the build flags.
6047 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6048 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6049 else
6050 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6055 # Check whether --enable-largefile was given.
6056 if test "${enable_largefile+set}" = set; then
6057 enableval=$enable_largefile;
6060 if test "$enable_largefile" != no; then
6062 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6063 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6064 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6065 $as_echo_n "(cached) " >&6
6066 else
6067 ac_cv_sys_largefile_CC=no
6068 if test "$GCC" != yes; then
6069 ac_save_CC=$CC
6070 while :; do
6071 # IRIX 6.2 and later do not support large files by default,
6072 # so use the C compiler's -n32 option if that helps.
6073 cat >conftest.$ac_ext <<_ACEOF
6074 /* confdefs.h. */
6075 _ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6079 #include <sys/types.h>
6080 /* Check that off_t can represent 2**63 - 1 correctly.
6081 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6082 since some C++ compilers masquerading as C compilers
6083 incorrectly reject 9223372036854775807. */
6084 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6085 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6086 && LARGE_OFF_T % 2147483647 == 1)
6087 ? 1 : -1];
6089 main ()
6093 return 0;
6095 _ACEOF
6096 rm -f conftest.$ac_objext
6097 if { (ac_try="$ac_compile"
6098 case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6101 esac
6102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6103 $as_echo "$ac_try_echo") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
6114 break
6115 else
6116 $as_echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6122 rm -f core conftest.err conftest.$ac_objext
6123 CC="$CC -n32"
6124 rm -f conftest.$ac_objext
6125 if { (ac_try="$ac_compile"
6126 case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129 esac
6130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6131 $as_echo "$ac_try_echo") >&5
6132 (eval "$ac_compile") 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } && {
6139 test -z "$ac_c_werror_flag" ||
6140 test ! -s conftest.err
6141 } && test -s conftest.$ac_objext; then
6142 ac_cv_sys_largefile_CC=' -n32'; break
6143 else
6144 $as_echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6150 rm -f core conftest.err conftest.$ac_objext
6151 break
6152 done
6153 CC=$ac_save_CC
6154 rm -f conftest.$ac_ext
6157 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6158 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6159 if test "$ac_cv_sys_largefile_CC" != no; then
6160 CC=$CC$ac_cv_sys_largefile_CC
6163 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6164 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6165 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6166 $as_echo_n "(cached) " >&6
6167 else
6168 while :; do
6169 cat >conftest.$ac_ext <<_ACEOF
6170 /* confdefs.h. */
6171 _ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6175 #include <sys/types.h>
6176 /* Check that off_t can represent 2**63 - 1 correctly.
6177 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6178 since some C++ compilers masquerading as C compilers
6179 incorrectly reject 9223372036854775807. */
6180 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6181 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6182 && LARGE_OFF_T % 2147483647 == 1)
6183 ? 1 : -1];
6185 main ()
6189 return 0;
6191 _ACEOF
6192 rm -f conftest.$ac_objext
6193 if { (ac_try="$ac_compile"
6194 case "(($ac_try" in
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6197 esac
6198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6199 $as_echo "$ac_try_echo") >&5
6200 (eval "$ac_compile") 2>conftest.er1
6201 ac_status=$?
6202 grep -v '^ *+' conftest.er1 >conftest.err
6203 rm -f conftest.er1
6204 cat conftest.err >&5
6205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } && {
6207 test -z "$ac_c_werror_flag" ||
6208 test ! -s conftest.err
6209 } && test -s conftest.$ac_objext; then
6210 ac_cv_sys_file_offset_bits=no; break
6211 else
6212 $as_echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 #define _FILE_OFFSET_BITS 64
6226 #include <sys/types.h>
6227 /* Check that off_t can represent 2**63 - 1 correctly.
6228 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6229 since some C++ compilers masquerading as C compilers
6230 incorrectly reject 9223372036854775807. */
6231 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6232 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6233 && LARGE_OFF_T % 2147483647 == 1)
6234 ? 1 : -1];
6236 main ()
6240 return 0;
6242 _ACEOF
6243 rm -f conftest.$ac_objext
6244 if { (ac_try="$ac_compile"
6245 case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248 esac
6249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6250 $as_echo "$ac_try_echo") >&5
6251 (eval "$ac_compile") 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } && {
6258 test -z "$ac_c_werror_flag" ||
6259 test ! -s conftest.err
6260 } && test -s conftest.$ac_objext; then
6261 ac_cv_sys_file_offset_bits=64; break
6262 else
6263 $as_echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 ac_cv_sys_file_offset_bits=unknown
6271 break
6272 done
6274 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6275 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6276 case $ac_cv_sys_file_offset_bits in #(
6277 no | unknown) ;;
6279 cat >>confdefs.h <<_ACEOF
6280 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6281 _ACEOF
6283 esac
6284 rm -rf conftest*
6285 if test $ac_cv_sys_file_offset_bits = unknown; then
6286 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6287 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6288 if test "${ac_cv_sys_large_files+set}" = set; then
6289 $as_echo_n "(cached) " >&6
6290 else
6291 while :; do
6292 cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h. */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 #include <sys/types.h>
6299 /* Check that off_t can represent 2**63 - 1 correctly.
6300 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6301 since some C++ compilers masquerading as C compilers
6302 incorrectly reject 9223372036854775807. */
6303 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6304 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6305 && LARGE_OFF_T % 2147483647 == 1)
6306 ? 1 : -1];
6308 main ()
6312 return 0;
6314 _ACEOF
6315 rm -f conftest.$ac_objext
6316 if { (ac_try="$ac_compile"
6317 case "(($ac_try" in
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6320 esac
6321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6322 $as_echo "$ac_try_echo") >&5
6323 (eval "$ac_compile") 2>conftest.er1
6324 ac_status=$?
6325 grep -v '^ *+' conftest.er1 >conftest.err
6326 rm -f conftest.er1
6327 cat conftest.err >&5
6328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } && {
6330 test -z "$ac_c_werror_flag" ||
6331 test ! -s conftest.err
6332 } && test -s conftest.$ac_objext; then
6333 ac_cv_sys_large_files=no; break
6334 else
6335 $as_echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342 cat >conftest.$ac_ext <<_ACEOF
6343 /* confdefs.h. */
6344 _ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6348 #define _LARGE_FILES 1
6349 #include <sys/types.h>
6350 /* Check that off_t can represent 2**63 - 1 correctly.
6351 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6352 since some C++ compilers masquerading as C compilers
6353 incorrectly reject 9223372036854775807. */
6354 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6355 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6356 && LARGE_OFF_T % 2147483647 == 1)
6357 ? 1 : -1];
6359 main ()
6363 return 0;
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (ac_try="$ac_compile"
6368 case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6371 esac
6372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6373 $as_echo "$ac_try_echo") >&5
6374 (eval "$ac_compile") 2>conftest.er1
6375 ac_status=$?
6376 grep -v '^ *+' conftest.er1 >conftest.err
6377 rm -f conftest.er1
6378 cat conftest.err >&5
6379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } && {
6381 test -z "$ac_c_werror_flag" ||
6382 test ! -s conftest.err
6383 } && test -s conftest.$ac_objext; then
6384 ac_cv_sys_large_files=1; break
6385 else
6386 $as_echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393 ac_cv_sys_large_files=unknown
6394 break
6395 done
6397 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6398 $as_echo "$ac_cv_sys_large_files" >&6; }
6399 case $ac_cv_sys_large_files in #(
6400 no | unknown) ;;
6402 cat >>confdefs.h <<_ACEOF
6403 #define _LARGE_FILES $ac_cv_sys_large_files
6404 _ACEOF
6406 esac
6407 rm -rf conftest*
6413 ## If user specified a crt-dir, use that unconditionally.
6414 if test "X$CRT_DIR" = "X"; then
6416 case "$canonical" in
6417 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6418 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6419 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6420 ## For anything else (eg /usr/lib32), it is up the user to specify
6421 ## the location (bug#5655).
6422 ## Test for crtn.o, not just the directory, because sometimes the
6423 ## directory exists but does not have the relevant files (bug#1287).
6424 ## FIXME better to test for binary compatibility somehow.
6425 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6428 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6429 esac
6431 case "$opsys" in
6432 hpux10-20) CRT_DIR=/lib ;;
6433 esac
6435 ## Default is /usr/lib.
6436 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6438 else
6440 ## Some platforms don't use any of these files, so it is not
6441 ## appropriate to put this test outside the if block.
6442 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6443 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6444 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6445 { (exit 1); exit 1; }; }
6451 LIB_MATH=-lm
6452 LIB_STANDARD=
6453 START_FILES=
6455 case $opsys in
6456 cygwin )
6457 LIB_MATH=
6458 START_FILES='ecrt0.o'
6460 darwin )
6461 ## Adding -lm confuses the dynamic linker, so omit it.
6462 LIB_MATH=
6463 START_FILES='pre-crt0.o'
6465 freebsd )
6466 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6467 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6469 gnu-linux | gnu-kfreebsd )
6470 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6471 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6473 hpux10-20 | hpux11 )
6474 LIB_STANDARD=-lc
6475 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6477 netbsd | openbsd )
6478 if test -f $CRT_DIR/crti.o; then
6479 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6480 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6481 else
6482 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6483 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6486 esac
6494 if test "${with_sound}" != "no"; then
6495 # Sound support for GNU/Linux and the free BSDs.
6499 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6503 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6504 $as_echo_n "checking for $ac_header... " >&6; }
6505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6506 $as_echo_n "(cached) " >&6
6508 ac_res=`eval 'as_val=${'$as_ac_Header'}
6509 $as_echo "$as_val"'`
6510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6512 else
6513 # Is the header compilable?
6514 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6515 $as_echo_n "checking $ac_header usability... " >&6; }
6516 cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h. */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 $ac_includes_default
6523 #include <$ac_header>
6524 _ACEOF
6525 rm -f conftest.$ac_objext
6526 if { (ac_try="$ac_compile"
6527 case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6530 esac
6531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6532 $as_echo "$ac_try_echo") >&5
6533 (eval "$ac_compile") 2>conftest.er1
6534 ac_status=$?
6535 grep -v '^ *+' conftest.er1 >conftest.err
6536 rm -f conftest.er1
6537 cat conftest.err >&5
6538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } && {
6540 test -z "$ac_c_werror_flag" ||
6541 test ! -s conftest.err
6542 } && test -s conftest.$ac_objext; then
6543 ac_header_compiler=yes
6544 else
6545 $as_echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6548 ac_header_compiler=no
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6553 $as_echo "$ac_header_compiler" >&6; }
6555 # Is the header present?
6556 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6557 $as_echo_n "checking $ac_header presence... " >&6; }
6558 cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h. */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6564 #include <$ac_header>
6565 _ACEOF
6566 if { (ac_try="$ac_cpp conftest.$ac_ext"
6567 case "(($ac_try" in
6568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6570 esac
6571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6572 $as_echo "$ac_try_echo") >&5
6573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } >/dev/null && {
6580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6581 test ! -s conftest.err
6582 }; then
6583 ac_header_preproc=yes
6584 else
6585 $as_echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6588 ac_header_preproc=no
6591 rm -f conftest.err conftest.$ac_ext
6592 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6593 $as_echo "$ac_header_preproc" >&6; }
6595 # So? What about this header?
6596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6597 yes:no: )
6598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6599 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6602 ac_header_preproc=yes
6604 no:yes:* )
6605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6606 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6608 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6610 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6612 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6616 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6619 esac
6620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6621 $as_echo_n "checking for $ac_header... " >&6; }
6622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6623 $as_echo_n "(cached) " >&6
6624 else
6625 eval "$as_ac_Header=\$ac_header_preproc"
6627 ac_res=`eval 'as_val=${'$as_ac_Header'}
6628 $as_echo "$as_val"'`
6629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6630 $as_echo "$ac_res" >&6; }
6633 if test `eval 'as_val=${'$as_ac_Header'}
6634 $as_echo "$as_val"'` = yes; then
6635 cat >>confdefs.h <<_ACEOF
6636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6637 _ACEOF
6641 done
6643 # Emulation library used on NetBSD.
6644 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6645 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6646 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6647 $as_echo_n "(cached) " >&6
6648 else
6649 ac_check_lib_save_LIBS=$LIBS
6650 LIBS="-lossaudio $LIBS"
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6658 /* Override any GCC internal prototype to avoid an error.
6659 Use char because int might match the return type of a GCC
6660 builtin and then its argument prototype would still apply. */
6661 #ifdef __cplusplus
6662 extern "C"
6663 #endif
6664 char _oss_ioctl ();
6666 main ()
6668 return _oss_ioctl ();
6670 return 0;
6672 _ACEOF
6673 rm -f conftest.$ac_objext conftest$ac_exeext
6674 if { (ac_try="$ac_link"
6675 case "(($ac_try" in
6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677 *) ac_try_echo=$ac_try;;
6678 esac
6679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6680 $as_echo "$ac_try_echo") >&5
6681 (eval "$ac_link") 2>conftest.er1
6682 ac_status=$?
6683 grep -v '^ *+' conftest.er1 >conftest.err
6684 rm -f conftest.er1
6685 cat conftest.err >&5
6686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } && {
6688 test -z "$ac_c_werror_flag" ||
6689 test ! -s conftest.err
6690 } && test -s conftest$ac_exeext && {
6691 test "$cross_compiling" = yes ||
6692 $as_test_x conftest$ac_exeext
6693 }; then
6694 ac_cv_lib_ossaudio__oss_ioctl=yes
6695 else
6696 $as_echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 ac_cv_lib_ossaudio__oss_ioctl=no
6702 rm -rf conftest.dSYM
6703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6704 conftest$ac_exeext conftest.$ac_ext
6705 LIBS=$ac_check_lib_save_LIBS
6707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6708 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6709 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6710 LIBSOUND=-lossaudio
6711 else
6712 LIBSOUND=
6717 ALSA_REQUIRED=1.0.0
6718 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6720 succeeded=no
6722 # Extract the first word of "pkg-config", so it can be a program name with args.
6723 set dummy pkg-config; ac_word=$2
6724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6727 $as_echo_n "(cached) " >&6
6728 else
6729 case $PKG_CONFIG in
6730 [\\/]* | ?:[\\/]*)
6731 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6742 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6745 done
6746 done
6747 IFS=$as_save_IFS
6749 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6751 esac
6753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6754 if test -n "$PKG_CONFIG"; then
6755 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6756 $as_echo "$PKG_CONFIG" >&6; }
6757 else
6758 { $as_echo "$as_me:$LINENO: result: no" >&5
6759 $as_echo "no" >&6; }
6764 if test "$PKG_CONFIG" = "no" ; then
6765 HAVE_ALSA=no
6766 else
6767 PKG_CONFIG_MIN_VERSION=0.9.0
6768 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6769 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6770 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6772 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6773 { $as_echo "$as_me:$LINENO: result: yes" >&5
6774 $as_echo "yes" >&6; }
6775 succeeded=yes
6777 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6778 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6779 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6780 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6781 $as_echo "$ALSA_CFLAGS" >&6; }
6783 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6784 $as_echo_n "checking ALSA_LIBS... " >&6; }
6785 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6786 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6787 $as_echo "$ALSA_LIBS" >&6; }
6788 else
6789 { $as_echo "$as_me:$LINENO: result: no" >&5
6790 $as_echo "no" >&6; }
6791 ALSA_CFLAGS=""
6792 ALSA_LIBS=""
6793 ## If we have a custom action on failure, don't print errors, but
6794 ## do set a variable so people can do so.
6795 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6801 else
6802 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6803 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6807 if test $succeeded = yes; then
6808 HAVE_ALSA=yes
6809 else
6810 HAVE_ALSA=no
6813 if test $HAVE_ALSA = yes; then
6814 SAVE_CFLAGS="$CFLAGS"
6815 SAVE_LDFLAGS="$LDFLAGS"
6816 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6817 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6818 cat >conftest.$ac_ext <<_ACEOF
6819 /* confdefs.h. */
6820 _ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6824 #include <asoundlib.h>
6826 main ()
6828 snd_lib_error_set_handler (0);
6830 return 0;
6832 _ACEOF
6833 rm -f conftest.$ac_objext
6834 if { (ac_try="$ac_compile"
6835 case "(($ac_try" in
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6838 esac
6839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6840 $as_echo "$ac_try_echo") >&5
6841 (eval "$ac_compile") 2>conftest.er1
6842 ac_status=$?
6843 grep -v '^ *+' conftest.er1 >conftest.err
6844 rm -f conftest.er1
6845 cat conftest.err >&5
6846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } && {
6848 test -z "$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6850 } && test -s conftest.$ac_objext; then
6851 emacs_alsa_normal=yes
6852 else
6853 $as_echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 emacs_alsa_normal=no
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 if test "$emacs_alsa_normal" != yes; then
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 #include <alsa/asoundlib.h>
6869 main ()
6871 snd_lib_error_set_handler (0);
6873 return 0;
6875 _ACEOF
6876 rm -f conftest.$ac_objext
6877 if { (ac_try="$ac_compile"
6878 case "(($ac_try" in
6879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6881 esac
6882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6883 $as_echo "$ac_try_echo") >&5
6884 (eval "$ac_compile") 2>conftest.er1
6885 ac_status=$?
6886 grep -v '^ *+' conftest.er1 >conftest.err
6887 rm -f conftest.er1
6888 cat conftest.err >&5
6889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } && {
6891 test -z "$ac_c_werror_flag" ||
6892 test ! -s conftest.err
6893 } && test -s conftest.$ac_objext; then
6894 emacs_alsa_subdir=yes
6895 else
6896 $as_echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6899 emacs_alsa_subdir=no
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903 if test "$emacs_alsa_subdir" != yes; then
6904 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6905 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6906 { (exit 1); exit 1; }; }
6908 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6911 CFLAGS="$SAVE_CFLAGS"
6912 LDFLAGS="$SAVE_LDFLAGS"
6913 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6914 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6916 cat >>confdefs.h <<\_ACEOF
6917 #define HAVE_ALSA 1
6918 _ACEOF
6949 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6950 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6951 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6952 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6953 sys/utsname.h pwd.h utmp.h
6955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6958 $as_echo_n "checking for $ac_header... " >&6; }
6959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6960 $as_echo_n "(cached) " >&6
6962 ac_res=`eval 'as_val=${'$as_ac_Header'}
6963 $as_echo "$as_val"'`
6964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6965 $as_echo "$ac_res" >&6; }
6966 else
6967 # Is the header compilable?
6968 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6969 $as_echo_n "checking $ac_header usability... " >&6; }
6970 cat >conftest.$ac_ext <<_ACEOF
6971 /* confdefs.h. */
6972 _ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 $ac_includes_default
6977 #include <$ac_header>
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (ac_try="$ac_compile"
6981 case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984 esac
6985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6986 $as_echo "$ac_try_echo") >&5
6987 (eval "$ac_compile") 2>conftest.er1
6988 ac_status=$?
6989 grep -v '^ *+' conftest.er1 >conftest.err
6990 rm -f conftest.er1
6991 cat conftest.err >&5
6992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } && {
6994 test -z "$ac_c_werror_flag" ||
6995 test ! -s conftest.err
6996 } && test -s conftest.$ac_objext; then
6997 ac_header_compiler=yes
6998 else
6999 $as_echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7002 ac_header_compiler=no
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7007 $as_echo "$ac_header_compiler" >&6; }
7009 # Is the header present?
7010 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7011 $as_echo_n "checking $ac_header presence... " >&6; }
7012 cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h. */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 #include <$ac_header>
7019 _ACEOF
7020 if { (ac_try="$ac_cpp conftest.$ac_ext"
7021 case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024 esac
7025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7026 $as_echo "$ac_try_echo") >&5
7027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } >/dev/null && {
7034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7036 }; then
7037 ac_header_preproc=yes
7038 else
7039 $as_echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7042 ac_header_preproc=no
7045 rm -f conftest.err conftest.$ac_ext
7046 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7047 $as_echo "$ac_header_preproc" >&6; }
7049 # So? What about this header?
7050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7051 yes:no: )
7052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7053 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7056 ac_header_preproc=yes
7058 no:yes:* )
7059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7060 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7062 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7064 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7066 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7070 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7073 esac
7074 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7075 $as_echo_n "checking for $ac_header... " >&6; }
7076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7077 $as_echo_n "(cached) " >&6
7078 else
7079 eval "$as_ac_Header=\$ac_header_preproc"
7081 ac_res=`eval 'as_val=${'$as_ac_Header'}
7082 $as_echo "$as_val"'`
7083 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7084 $as_echo "$ac_res" >&6; }
7087 if test `eval 'as_val=${'$as_ac_Header'}
7088 $as_echo "$as_val"'` = yes; then
7089 cat >>confdefs.h <<_ACEOF
7090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7091 _ACEOF
7095 done
7098 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7099 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h. */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 #include <sys/personality.h>
7108 main ()
7110 personality (PER_LINUX32)
7112 return 0;
7114 _ACEOF
7115 rm -f conftest.$ac_objext
7116 if { (ac_try="$ac_compile"
7117 case "(($ac_try" in
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7120 esac
7121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7122 $as_echo "$ac_try_echo") >&5
7123 (eval "$ac_compile") 2>conftest.er1
7124 ac_status=$?
7125 grep -v '^ *+' conftest.er1 >conftest.err
7126 rm -f conftest.er1
7127 cat conftest.err >&5
7128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && {
7130 test -z "$ac_c_werror_flag" ||
7131 test ! -s conftest.err
7132 } && test -s conftest.$ac_objext; then
7133 emacs_cv_personality_linux32=yes
7134 else
7135 $as_echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7138 emacs_cv_personality_linux32=no
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7143 $as_echo "$emacs_cv_personality_linux32" >&6; }
7145 if test $emacs_cv_personality_linux32 = yes; then
7147 cat >>confdefs.h <<\_ACEOF
7148 #define HAVE_PERSONALITY_LINUX32 1
7149 _ACEOF
7154 for ac_header in term.h
7156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7157 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7158 $as_echo_n "checking for $ac_header... " >&6; }
7159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7160 $as_echo_n "(cached) " >&6
7161 else
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 #include <$ac_header>
7169 _ACEOF
7170 if { (ac_try="$ac_cpp conftest.$ac_ext"
7171 case "(($ac_try" in
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7174 esac
7175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7176 $as_echo "$ac_try_echo") >&5
7177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7178 ac_status=$?
7179 grep -v '^ *+' conftest.er1 >conftest.err
7180 rm -f conftest.er1
7181 cat conftest.err >&5
7182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } >/dev/null && {
7184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7185 test ! -s conftest.err
7186 }; then
7187 eval "$as_ac_Header=yes"
7188 else
7189 $as_echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7192 eval "$as_ac_Header=no"
7195 rm -f conftest.err conftest.$ac_ext
7197 ac_res=`eval 'as_val=${'$as_ac_Header'}
7198 $as_echo "$as_val"'`
7199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7200 $as_echo "$ac_res" >&6; }
7201 if test `eval 'as_val=${'$as_ac_Header'}
7202 $as_echo "$as_val"'` = yes; then
7203 cat >>confdefs.h <<_ACEOF
7204 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7205 _ACEOF
7209 done
7211 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7212 $as_echo_n "checking for ANSI C header files... " >&6; }
7213 if test "${ac_cv_header_stdc+set}" = set; then
7214 $as_echo_n "(cached) " >&6
7215 else
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h. */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 #include <stdlib.h>
7223 #include <stdarg.h>
7224 #include <string.h>
7225 #include <float.h>
7228 main ()
7232 return 0;
7234 _ACEOF
7235 rm -f conftest.$ac_objext
7236 if { (ac_try="$ac_compile"
7237 case "(($ac_try" in
7238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7239 *) ac_try_echo=$ac_try;;
7240 esac
7241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7242 $as_echo "$ac_try_echo") >&5
7243 (eval "$ac_compile") 2>conftest.er1
7244 ac_status=$?
7245 grep -v '^ *+' conftest.er1 >conftest.err
7246 rm -f conftest.er1
7247 cat conftest.err >&5
7248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } && {
7250 test -z "$ac_c_werror_flag" ||
7251 test ! -s conftest.err
7252 } && test -s conftest.$ac_objext; then
7253 ac_cv_header_stdc=yes
7254 else
7255 $as_echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7258 ac_cv_header_stdc=no
7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263 if test $ac_cv_header_stdc = yes; then
7264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7265 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h. */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 #include <string.h>
7273 _ACEOF
7274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7275 $EGREP "memchr" >/dev/null 2>&1; then
7277 else
7278 ac_cv_header_stdc=no
7280 rm -f conftest*
7284 if test $ac_cv_header_stdc = yes; then
7285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7286 cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h. */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7292 #include <stdlib.h>
7294 _ACEOF
7295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7296 $EGREP "free" >/dev/null 2>&1; then
7298 else
7299 ac_cv_header_stdc=no
7301 rm -f conftest*
7305 if test $ac_cv_header_stdc = yes; then
7306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7307 if test "$cross_compiling" = yes; then
7309 else
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 #include <ctype.h>
7317 #include <stdlib.h>
7318 #if ((' ' & 0x0FF) == 0x020)
7319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7320 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7321 #else
7322 # define ISLOWER(c) \
7323 (('a' <= (c) && (c) <= 'i') \
7324 || ('j' <= (c) && (c) <= 'r') \
7325 || ('s' <= (c) && (c) <= 'z'))
7326 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7327 #endif
7329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7331 main ()
7333 int i;
7334 for (i = 0; i < 256; i++)
7335 if (XOR (islower (i), ISLOWER (i))
7336 || toupper (i) != TOUPPER (i))
7337 return 2;
7338 return 0;
7340 _ACEOF
7341 rm -f conftest$ac_exeext
7342 if { (ac_try="$ac_link"
7343 case "(($ac_try" in
7344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345 *) ac_try_echo=$ac_try;;
7346 esac
7347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7348 $as_echo "$ac_try_echo") >&5
7349 (eval "$ac_link") 2>&5
7350 ac_status=$?
7351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7353 { (case "(($ac_try" in
7354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7355 *) ac_try_echo=$ac_try;;
7356 esac
7357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7358 $as_echo "$ac_try_echo") >&5
7359 (eval "$ac_try") 2>&5
7360 ac_status=$?
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7364 else
7365 $as_echo "$as_me: program exited with status $ac_status" >&5
7366 $as_echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7369 ( exit $ac_status )
7370 ac_cv_header_stdc=no
7372 rm -rf conftest.dSYM
7373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7379 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7380 $as_echo "$ac_cv_header_stdc" >&6; }
7381 if test $ac_cv_header_stdc = yes; then
7383 cat >>confdefs.h <<\_ACEOF
7384 #define STDC_HEADERS 1
7385 _ACEOF
7389 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7390 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7391 if test "${ac_cv_header_time+set}" = set; then
7392 $as_echo_n "(cached) " >&6
7393 else
7394 cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h. */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 #include <sys/types.h>
7401 #include <sys/time.h>
7402 #include <time.h>
7405 main ()
7407 if ((struct tm *) 0)
7408 return 0;
7410 return 0;
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (ac_try="$ac_compile"
7415 case "(($ac_try" in
7416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7418 esac
7419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7420 $as_echo "$ac_try_echo") >&5
7421 (eval "$ac_compile") 2>conftest.er1
7422 ac_status=$?
7423 grep -v '^ *+' conftest.er1 >conftest.err
7424 rm -f conftest.er1
7425 cat conftest.err >&5
7426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } && {
7428 test -z "$ac_c_werror_flag" ||
7429 test ! -s conftest.err
7430 } && test -s conftest.$ac_objext; then
7431 ac_cv_header_time=yes
7432 else
7433 $as_echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7436 ac_cv_header_time=no
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7442 $as_echo "$ac_cv_header_time" >&6; }
7443 if test $ac_cv_header_time = yes; then
7445 cat >>confdefs.h <<\_ACEOF
7446 #define TIME_WITH_SYS_TIME 1
7447 _ACEOF
7451 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7452 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7453 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7454 $as_echo_n "(cached) " >&6
7455 else
7456 cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h. */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 $ac_includes_default
7464 main ()
7466 #ifndef sys_siglist
7467 (void) sys_siglist;
7468 #endif
7471 return 0;
7473 _ACEOF
7474 rm -f conftest.$ac_objext
7475 if { (ac_try="$ac_compile"
7476 case "(($ac_try" in
7477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7478 *) ac_try_echo=$ac_try;;
7479 esac
7480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7481 $as_echo "$ac_try_echo") >&5
7482 (eval "$ac_compile") 2>conftest.er1
7483 ac_status=$?
7484 grep -v '^ *+' conftest.er1 >conftest.err
7485 rm -f conftest.er1
7486 cat conftest.err >&5
7487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } && {
7489 test -z "$ac_c_werror_flag" ||
7490 test ! -s conftest.err
7491 } && test -s conftest.$ac_objext; then
7492 ac_cv_have_decl_sys_siglist=yes
7493 else
7494 $as_echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7497 ac_cv_have_decl_sys_siglist=no
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7503 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7504 if test $ac_cv_have_decl_sys_siglist = yes; then
7506 cat >>confdefs.h <<_ACEOF
7507 #define HAVE_DECL_SYS_SIGLIST 1
7508 _ACEOF
7511 else
7512 cat >>confdefs.h <<_ACEOF
7513 #define HAVE_DECL_SYS_SIGLIST 0
7514 _ACEOF
7520 if test $ac_cv_have_decl_sys_siglist != yes; then
7521 # For Tru64, at least:
7522 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7523 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7524 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7525 $as_echo_n "(cached) " >&6
7526 else
7527 cat >conftest.$ac_ext <<_ACEOF
7528 /* confdefs.h. */
7529 _ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 $ac_includes_default
7535 main ()
7537 #ifndef __sys_siglist
7538 (void) __sys_siglist;
7539 #endif
7542 return 0;
7544 _ACEOF
7545 rm -f conftest.$ac_objext
7546 if { (ac_try="$ac_compile"
7547 case "(($ac_try" in
7548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7549 *) ac_try_echo=$ac_try;;
7550 esac
7551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7552 $as_echo "$ac_try_echo") >&5
7553 (eval "$ac_compile") 2>conftest.er1
7554 ac_status=$?
7555 grep -v '^ *+' conftest.er1 >conftest.err
7556 rm -f conftest.er1
7557 cat conftest.err >&5
7558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } && {
7560 test -z "$ac_c_werror_flag" ||
7561 test ! -s conftest.err
7562 } && test -s conftest.$ac_objext; then
7563 ac_cv_have_decl___sys_siglist=yes
7564 else
7565 $as_echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7568 ac_cv_have_decl___sys_siglist=no
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7574 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7575 if test $ac_cv_have_decl___sys_siglist = yes; then
7577 cat >>confdefs.h <<_ACEOF
7578 #define HAVE_DECL___SYS_SIGLIST 1
7579 _ACEOF
7582 else
7583 cat >>confdefs.h <<_ACEOF
7584 #define HAVE_DECL___SYS_SIGLIST 0
7585 _ACEOF
7591 if test $ac_cv_have_decl___sys_siglist = yes; then
7593 cat >>confdefs.h <<\_ACEOF
7594 #define sys_siglist __sys_siglist
7595 _ACEOF
7599 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7600 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7601 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7602 $as_echo_n "(cached) " >&6
7603 else
7604 cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h. */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 #include <sys/types.h>
7611 #include <sys/wait.h>
7612 #ifndef WEXITSTATUS
7613 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7614 #endif
7615 #ifndef WIFEXITED
7616 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7617 #endif
7620 main ()
7622 int s;
7623 wait (&s);
7624 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7626 return 0;
7628 _ACEOF
7629 rm -f conftest.$ac_objext
7630 if { (ac_try="$ac_compile"
7631 case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7634 esac
7635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7636 $as_echo "$ac_try_echo") >&5
7637 (eval "$ac_compile") 2>conftest.er1
7638 ac_status=$?
7639 grep -v '^ *+' conftest.er1 >conftest.err
7640 rm -f conftest.er1
7641 cat conftest.err >&5
7642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } && {
7644 test -z "$ac_c_werror_flag" ||
7645 test ! -s conftest.err
7646 } && test -s conftest.$ac_objext; then
7647 ac_cv_header_sys_wait_h=yes
7648 else
7649 $as_echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7652 ac_cv_header_sys_wait_h=no
7655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7658 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7659 if test $ac_cv_header_sys_wait_h = yes; then
7661 cat >>confdefs.h <<\_ACEOF
7662 #define HAVE_SYS_WAIT_H 1
7663 _ACEOF
7668 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7669 $as_echo_n "checking for struct utimbuf... " >&6; }
7670 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7671 $as_echo_n "(cached) " >&6
7672 else
7673 cat >conftest.$ac_ext <<_ACEOF
7674 /* confdefs.h. */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 #ifdef TIME_WITH_SYS_TIME
7680 #include <sys/time.h>
7681 #include <time.h>
7682 #else
7683 #ifdef HAVE_SYS_TIME_H
7684 #include <sys/time.h>
7685 #else
7686 #include <time.h>
7687 #endif
7688 #endif
7689 #ifdef HAVE_UTIME_H
7690 #include <utime.h>
7691 #endif
7693 main ()
7695 static struct utimbuf x; x.actime = x.modtime;
7697 return 0;
7699 _ACEOF
7700 rm -f conftest.$ac_objext
7701 if { (ac_try="$ac_compile"
7702 case "(($ac_try" in
7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7705 esac
7706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7707 $as_echo "$ac_try_echo") >&5
7708 (eval "$ac_compile") 2>conftest.er1
7709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } && {
7715 test -z "$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7717 } && test -s conftest.$ac_objext; then
7718 emacs_cv_struct_utimbuf=yes
7719 else
7720 $as_echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7723 emacs_cv_struct_utimbuf=no
7726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7729 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7730 if test $emacs_cv_struct_utimbuf = yes; then
7732 cat >>confdefs.h <<\_ACEOF
7733 #define HAVE_STRUCT_UTIMBUF 1
7734 _ACEOF
7738 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7739 $as_echo_n "checking return type of signal handlers... " >&6; }
7740 if test "${ac_cv_type_signal+set}" = set; then
7741 $as_echo_n "(cached) " >&6
7742 else
7743 cat >conftest.$ac_ext <<_ACEOF
7744 /* confdefs.h. */
7745 _ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7749 #include <sys/types.h>
7750 #include <signal.h>
7753 main ()
7755 return *(signal (0, 0)) (0) == 1;
7757 return 0;
7759 _ACEOF
7760 rm -f conftest.$ac_objext
7761 if { (ac_try="$ac_compile"
7762 case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7765 esac
7766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7767 $as_echo "$ac_try_echo") >&5
7768 (eval "$ac_compile") 2>conftest.er1
7769 ac_status=$?
7770 grep -v '^ *+' conftest.er1 >conftest.err
7771 rm -f conftest.er1
7772 cat conftest.err >&5
7773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } && {
7775 test -z "$ac_c_werror_flag" ||
7776 test ! -s conftest.err
7777 } && test -s conftest.$ac_objext; then
7778 ac_cv_type_signal=int
7779 else
7780 $as_echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7783 ac_cv_type_signal=void
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7789 $as_echo "$ac_cv_type_signal" >&6; }
7791 cat >>confdefs.h <<_ACEOF
7792 #define RETSIGTYPE $ac_cv_type_signal
7793 _ACEOF
7797 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7798 $as_echo_n "checking for speed_t... " >&6; }
7799 if test "${emacs_cv_speed_t+set}" = set; then
7800 $as_echo_n "(cached) " >&6
7801 else
7802 cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h. */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #include <termios.h>
7810 main ()
7812 speed_t x = 1;
7814 return 0;
7816 _ACEOF
7817 rm -f conftest.$ac_objext
7818 if { (ac_try="$ac_compile"
7819 case "(($ac_try" in
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7822 esac
7823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7824 $as_echo "$ac_try_echo") >&5
7825 (eval "$ac_compile") 2>conftest.er1
7826 ac_status=$?
7827 grep -v '^ *+' conftest.er1 >conftest.err
7828 rm -f conftest.er1
7829 cat conftest.err >&5
7830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } && {
7832 test -z "$ac_c_werror_flag" ||
7833 test ! -s conftest.err
7834 } && test -s conftest.$ac_objext; then
7835 emacs_cv_speed_t=yes
7836 else
7837 $as_echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7840 emacs_cv_speed_t=no
7843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7846 $as_echo "$emacs_cv_speed_t" >&6; }
7847 if test $emacs_cv_speed_t = yes; then
7849 cat >>confdefs.h <<\_ACEOF
7850 #define HAVE_SPEED_T 1
7851 _ACEOF
7855 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7856 $as_echo_n "checking for struct timeval... " >&6; }
7857 if test "${emacs_cv_struct_timeval+set}" = set; then
7858 $as_echo_n "(cached) " >&6
7859 else
7860 cat >conftest.$ac_ext <<_ACEOF
7861 /* confdefs.h. */
7862 _ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7866 #ifdef TIME_WITH_SYS_TIME
7867 #include <sys/time.h>
7868 #include <time.h>
7869 #else
7870 #ifdef HAVE_SYS_TIME_H
7871 #include <sys/time.h>
7872 #else
7873 #include <time.h>
7874 #endif
7875 #endif
7877 main ()
7879 static struct timeval x; x.tv_sec = x.tv_usec;
7881 return 0;
7883 _ACEOF
7884 rm -f conftest.$ac_objext
7885 if { (ac_try="$ac_compile"
7886 case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7889 esac
7890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7891 $as_echo "$ac_try_echo") >&5
7892 (eval "$ac_compile") 2>conftest.er1
7893 ac_status=$?
7894 grep -v '^ *+' conftest.er1 >conftest.err
7895 rm -f conftest.er1
7896 cat conftest.err >&5
7897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } && {
7899 test -z "$ac_c_werror_flag" ||
7900 test ! -s conftest.err
7901 } && test -s conftest.$ac_objext; then
7902 emacs_cv_struct_timeval=yes
7903 else
7904 $as_echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 emacs_cv_struct_timeval=no
7910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7913 $as_echo "$emacs_cv_struct_timeval" >&6; }
7914 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7915 if test $emacs_cv_struct_timeval = yes; then
7917 cat >>confdefs.h <<\_ACEOF
7918 #define HAVE_TIMEVAL 1
7919 _ACEOF
7923 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7924 $as_echo_n "checking for struct exception... " >&6; }
7925 if test "${emacs_cv_struct_exception+set}" = set; then
7926 $as_echo_n "(cached) " >&6
7927 else
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h. */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 #include <math.h>
7936 main ()
7938 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7940 return 0;
7942 _ACEOF
7943 rm -f conftest.$ac_objext
7944 if { (ac_try="$ac_compile"
7945 case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7948 esac
7949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7950 $as_echo "$ac_try_echo") >&5
7951 (eval "$ac_compile") 2>conftest.er1
7952 ac_status=$?
7953 grep -v '^ *+' conftest.er1 >conftest.err
7954 rm -f conftest.er1
7955 cat conftest.err >&5
7956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } && {
7958 test -z "$ac_c_werror_flag" ||
7959 test ! -s conftest.err
7960 } && test -s conftest.$ac_objext; then
7961 emacs_cv_struct_exception=yes
7962 else
7963 $as_echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7966 emacs_cv_struct_exception=no
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7971 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7972 $as_echo "$emacs_cv_struct_exception" >&6; }
7973 HAVE_EXCEPTION=$emacs_cv_struct_exception
7974 if test $emacs_cv_struct_exception != yes; then
7976 cat >>confdefs.h <<\_ACEOF
7977 #define NO_MATHERR 1
7978 _ACEOF
7983 for ac_header in sys/socket.h
7985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7987 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7988 $as_echo_n "checking for $ac_header... " >&6; }
7989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7990 $as_echo_n "(cached) " >&6
7992 ac_res=`eval 'as_val=${'$as_ac_Header'}
7993 $as_echo "$as_val"'`
7994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7995 $as_echo "$ac_res" >&6; }
7996 else
7997 # Is the header compilable?
7998 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7999 $as_echo_n "checking $ac_header usability... " >&6; }
8000 cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h. */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8006 $ac_includes_default
8007 #include <$ac_header>
8008 _ACEOF
8009 rm -f conftest.$ac_objext
8010 if { (ac_try="$ac_compile"
8011 case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014 esac
8015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8016 $as_echo "$ac_try_echo") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8018 ac_status=$?
8019 grep -v '^ *+' conftest.er1 >conftest.err
8020 rm -f conftest.er1
8021 cat conftest.err >&5
8022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } && {
8024 test -z "$ac_c_werror_flag" ||
8025 test ! -s conftest.err
8026 } && test -s conftest.$ac_objext; then
8027 ac_header_compiler=yes
8028 else
8029 $as_echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8032 ac_header_compiler=no
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8037 $as_echo "$ac_header_compiler" >&6; }
8039 # Is the header present?
8040 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8041 $as_echo_n "checking $ac_header presence... " >&6; }
8042 cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h. */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <$ac_header>
8049 _ACEOF
8050 if { (ac_try="$ac_cpp conftest.$ac_ext"
8051 case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8054 esac
8055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8056 $as_echo "$ac_try_echo") >&5
8057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8058 ac_status=$?
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
8062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } >/dev/null && {
8064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8065 test ! -s conftest.err
8066 }; then
8067 ac_header_preproc=yes
8068 else
8069 $as_echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8072 ac_header_preproc=no
8075 rm -f conftest.err conftest.$ac_ext
8076 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8077 $as_echo "$ac_header_preproc" >&6; }
8079 # So? What about this header?
8080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8081 yes:no: )
8082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8083 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8085 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8086 ac_header_preproc=yes
8088 no:yes:* )
8089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8090 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8092 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8094 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8096 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8100 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8103 esac
8104 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8105 $as_echo_n "checking for $ac_header... " >&6; }
8106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8107 $as_echo_n "(cached) " >&6
8108 else
8109 eval "$as_ac_Header=\$ac_header_preproc"
8111 ac_res=`eval 'as_val=${'$as_ac_Header'}
8112 $as_echo "$as_val"'`
8113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8114 $as_echo "$ac_res" >&6; }
8117 if test `eval 'as_val=${'$as_ac_Header'}
8118 $as_echo "$as_val"'` = yes; then
8119 cat >>confdefs.h <<_ACEOF
8120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8121 _ACEOF
8125 done
8128 for ac_header in net/if.h
8130 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8131 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8132 $as_echo_n "checking for $ac_header... " >&6; }
8133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8134 $as_echo_n "(cached) " >&6
8135 else
8136 cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h. */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 $ac_includes_default
8143 #if HAVE_SYS_SOCKET_H
8144 #include <sys/socket.h>
8145 #endif
8147 #include <$ac_header>
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (ac_try="$ac_compile"
8151 case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154 esac
8155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8156 $as_echo "$ac_try_echo") >&5
8157 (eval "$ac_compile") 2>conftest.er1
8158 ac_status=$?
8159 grep -v '^ *+' conftest.er1 >conftest.err
8160 rm -f conftest.er1
8161 cat conftest.err >&5
8162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } && {
8164 test -z "$ac_c_werror_flag" ||
8165 test ! -s conftest.err
8166 } && test -s conftest.$ac_objext; then
8167 eval "$as_ac_Header=yes"
8168 else
8169 $as_echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8172 eval "$as_ac_Header=no"
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 ac_res=`eval 'as_val=${'$as_ac_Header'}
8178 $as_echo "$as_val"'`
8179 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8180 $as_echo "$ac_res" >&6; }
8181 if test `eval 'as_val=${'$as_ac_Header'}
8182 $as_echo "$as_val"'` = yes; then
8183 cat >>confdefs.h <<_ACEOF
8184 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8185 _ACEOF
8189 done
8192 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8193 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8194 if test "${ac_cv_struct_tm+set}" = set; then
8195 $as_echo_n "(cached) " >&6
8196 else
8197 cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h. */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8203 #include <sys/types.h>
8204 #include <time.h>
8207 main ()
8209 struct tm tm;
8210 int *p = &tm.tm_sec;
8211 return !p;
8213 return 0;
8215 _ACEOF
8216 rm -f conftest.$ac_objext
8217 if { (ac_try="$ac_compile"
8218 case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221 esac
8222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8223 $as_echo "$ac_try_echo") >&5
8224 (eval "$ac_compile") 2>conftest.er1
8225 ac_status=$?
8226 grep -v '^ *+' conftest.er1 >conftest.err
8227 rm -f conftest.er1
8228 cat conftest.err >&5
8229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } && {
8231 test -z "$ac_c_werror_flag" ||
8232 test ! -s conftest.err
8233 } && test -s conftest.$ac_objext; then
8234 ac_cv_struct_tm=time.h
8235 else
8236 $as_echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 ac_cv_struct_tm=sys/time.h
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8245 $as_echo "$ac_cv_struct_tm" >&6; }
8246 if test $ac_cv_struct_tm = sys/time.h; then
8248 cat >>confdefs.h <<\_ACEOF
8249 #define TM_IN_SYS_TIME 1
8250 _ACEOF
8254 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8255 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8256 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8257 $as_echo_n "(cached) " >&6
8258 else
8259 cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h. */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 #include <sys/types.h>
8266 #include <$ac_cv_struct_tm>
8270 main ()
8272 static struct tm ac_aggr;
8273 if (ac_aggr.tm_zone)
8274 return 0;
8276 return 0;
8278 _ACEOF
8279 rm -f conftest.$ac_objext
8280 if { (ac_try="$ac_compile"
8281 case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284 esac
8285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8286 $as_echo "$ac_try_echo") >&5
8287 (eval "$ac_compile") 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest.$ac_objext; then
8297 ac_cv_member_struct_tm_tm_zone=yes
8298 else
8299 $as_echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8302 cat >conftest.$ac_ext <<_ACEOF
8303 /* confdefs.h. */
8304 _ACEOF
8305 cat confdefs.h >>conftest.$ac_ext
8306 cat >>conftest.$ac_ext <<_ACEOF
8307 /* end confdefs.h. */
8308 #include <sys/types.h>
8309 #include <$ac_cv_struct_tm>
8313 main ()
8315 static struct tm ac_aggr;
8316 if (sizeof ac_aggr.tm_zone)
8317 return 0;
8319 return 0;
8321 _ACEOF
8322 rm -f conftest.$ac_objext
8323 if { (ac_try="$ac_compile"
8324 case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327 esac
8328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8329 $as_echo "$ac_try_echo") >&5
8330 (eval "$ac_compile") 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } && {
8337 test -z "$ac_c_werror_flag" ||
8338 test ! -s conftest.err
8339 } && test -s conftest.$ac_objext; then
8340 ac_cv_member_struct_tm_tm_zone=yes
8341 else
8342 $as_echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8345 ac_cv_member_struct_tm_tm_zone=no
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8354 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8355 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8357 cat >>confdefs.h <<_ACEOF
8358 #define HAVE_STRUCT_TM_TM_ZONE 1
8359 _ACEOF
8364 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8366 cat >>confdefs.h <<\_ACEOF
8367 #define HAVE_TM_ZONE 1
8368 _ACEOF
8370 else
8371 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8372 $as_echo_n "checking whether tzname is declared... " >&6; }
8373 if test "${ac_cv_have_decl_tzname+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 #include <time.h>
8385 main ()
8387 #ifndef tzname
8388 (void) tzname;
8389 #endif
8392 return 0;
8394 _ACEOF
8395 rm -f conftest.$ac_objext
8396 if { (ac_try="$ac_compile"
8397 case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8400 esac
8401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8402 $as_echo "$ac_try_echo") >&5
8403 (eval "$ac_compile") 2>conftest.er1
8404 ac_status=$?
8405 grep -v '^ *+' conftest.er1 >conftest.err
8406 rm -f conftest.er1
8407 cat conftest.err >&5
8408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } && {
8410 test -z "$ac_c_werror_flag" ||
8411 test ! -s conftest.err
8412 } && test -s conftest.$ac_objext; then
8413 ac_cv_have_decl_tzname=yes
8414 else
8415 $as_echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8418 ac_cv_have_decl_tzname=no
8421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8424 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8425 if test $ac_cv_have_decl_tzname = yes; then
8427 cat >>confdefs.h <<_ACEOF
8428 #define HAVE_DECL_TZNAME 1
8429 _ACEOF
8432 else
8433 cat >>confdefs.h <<_ACEOF
8434 #define HAVE_DECL_TZNAME 0
8435 _ACEOF
8441 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8442 $as_echo_n "checking for tzname... " >&6; }
8443 if test "${ac_cv_var_tzname+set}" = set; then
8444 $as_echo_n "(cached) " >&6
8445 else
8446 cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h. */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 #include <time.h>
8453 #if !HAVE_DECL_TZNAME
8454 extern char *tzname[];
8455 #endif
8458 main ()
8460 return tzname[0][0];
8462 return 0;
8464 _ACEOF
8465 rm -f conftest.$ac_objext conftest$ac_exeext
8466 if { (ac_try="$ac_link"
8467 case "(($ac_try" in
8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469 *) ac_try_echo=$ac_try;;
8470 esac
8471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8472 $as_echo "$ac_try_echo") >&5
8473 (eval "$ac_link") 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } && {
8480 test -z "$ac_c_werror_flag" ||
8481 test ! -s conftest.err
8482 } && test -s conftest$ac_exeext && {
8483 test "$cross_compiling" = yes ||
8484 $as_test_x conftest$ac_exeext
8485 }; then
8486 ac_cv_var_tzname=yes
8487 else
8488 $as_echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8491 ac_cv_var_tzname=no
8494 rm -rf conftest.dSYM
8495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8496 conftest$ac_exeext conftest.$ac_ext
8498 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8499 $as_echo "$ac_cv_var_tzname" >&6; }
8500 if test $ac_cv_var_tzname = yes; then
8502 cat >>confdefs.h <<\_ACEOF
8503 #define HAVE_TZNAME 1
8504 _ACEOF
8509 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8510 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8511 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8512 $as_echo_n "(cached) " >&6
8513 else
8514 cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h. */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8520 #include <time.h>
8523 main ()
8525 static struct tm ac_aggr;
8526 if (ac_aggr.tm_gmtoff)
8527 return 0;
8529 return 0;
8531 _ACEOF
8532 rm -f conftest.$ac_objext
8533 if { (ac_try="$ac_compile"
8534 case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8537 esac
8538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8539 $as_echo "$ac_try_echo") >&5
8540 (eval "$ac_compile") 2>conftest.er1
8541 ac_status=$?
8542 grep -v '^ *+' conftest.er1 >conftest.err
8543 rm -f conftest.er1
8544 cat conftest.err >&5
8545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } && {
8547 test -z "$ac_c_werror_flag" ||
8548 test ! -s conftest.err
8549 } && test -s conftest.$ac_objext; then
8550 ac_cv_member_struct_tm_tm_gmtoff=yes
8551 else
8552 $as_echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8555 cat >conftest.$ac_ext <<_ACEOF
8556 /* confdefs.h. */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8561 #include <time.h>
8564 main ()
8566 static struct tm ac_aggr;
8567 if (sizeof ac_aggr.tm_gmtoff)
8568 return 0;
8570 return 0;
8572 _ACEOF
8573 rm -f conftest.$ac_objext
8574 if { (ac_try="$ac_compile"
8575 case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578 esac
8579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8580 $as_echo "$ac_try_echo") >&5
8581 (eval "$ac_compile") 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } && {
8588 test -z "$ac_c_werror_flag" ||
8589 test ! -s conftest.err
8590 } && test -s conftest.$ac_objext; then
8591 ac_cv_member_struct_tm_tm_gmtoff=yes
8592 else
8593 $as_echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8596 ac_cv_member_struct_tm_tm_gmtoff=no
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8605 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8606 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8608 cat >>confdefs.h <<\_ACEOF
8609 #define HAVE_TM_GMTOFF 1
8610 _ACEOF
8614 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8615 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8616 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8617 $as_echo_n "(cached) " >&6
8618 else
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h. */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 $ac_includes_default
8626 #if HAVE_SYS_SOCKET_H
8627 #include <sys/socket.h>
8628 #endif
8629 #if HAVE_NET_IF_H
8630 #include <net/if.h>
8631 #endif
8634 main ()
8636 static struct ifreq ac_aggr;
8637 if (ac_aggr.ifr_flags)
8638 return 0;
8640 return 0;
8642 _ACEOF
8643 rm -f conftest.$ac_objext
8644 if { (ac_try="$ac_compile"
8645 case "(($ac_try" in
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8648 esac
8649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8650 $as_echo "$ac_try_echo") >&5
8651 (eval "$ac_compile") 2>conftest.er1
8652 ac_status=$?
8653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
8656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && {
8658 test -z "$ac_c_werror_flag" ||
8659 test ! -s conftest.err
8660 } && test -s conftest.$ac_objext; then
8661 ac_cv_member_struct_ifreq_ifr_flags=yes
8662 else
8663 $as_echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8666 cat >conftest.$ac_ext <<_ACEOF
8667 /* confdefs.h. */
8668 _ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h. */
8672 $ac_includes_default
8673 #if HAVE_SYS_SOCKET_H
8674 #include <sys/socket.h>
8675 #endif
8676 #if HAVE_NET_IF_H
8677 #include <net/if.h>
8678 #endif
8681 main ()
8683 static struct ifreq ac_aggr;
8684 if (sizeof ac_aggr.ifr_flags)
8685 return 0;
8687 return 0;
8689 _ACEOF
8690 rm -f conftest.$ac_objext
8691 if { (ac_try="$ac_compile"
8692 case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695 esac
8696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8697 $as_echo "$ac_try_echo") >&5
8698 (eval "$ac_compile") 2>conftest.er1
8699 ac_status=$?
8700 grep -v '^ *+' conftest.er1 >conftest.err
8701 rm -f conftest.er1
8702 cat conftest.err >&5
8703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } && {
8705 test -z "$ac_c_werror_flag" ||
8706 test ! -s conftest.err
8707 } && test -s conftest.$ac_objext; then
8708 ac_cv_member_struct_ifreq_ifr_flags=yes
8709 else
8710 $as_echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8713 ac_cv_member_struct_ifreq_ifr_flags=no
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8721 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8722 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8723 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8725 cat >>confdefs.h <<_ACEOF
8726 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8727 _ACEOF
8731 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8732 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8733 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8734 $as_echo_n "(cached) " >&6
8735 else
8736 cat >conftest.$ac_ext <<_ACEOF
8737 /* confdefs.h. */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 $ac_includes_default
8743 #if HAVE_SYS_SOCKET_H
8744 #include <sys/socket.h>
8745 #endif
8746 #if HAVE_NET_IF_H
8747 #include <net/if.h>
8748 #endif
8751 main ()
8753 static struct ifreq ac_aggr;
8754 if (ac_aggr.ifr_hwaddr)
8755 return 0;
8757 return 0;
8759 _ACEOF
8760 rm -f conftest.$ac_objext
8761 if { (ac_try="$ac_compile"
8762 case "(($ac_try" in
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8765 esac
8766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8767 $as_echo "$ac_try_echo") >&5
8768 (eval "$ac_compile") 2>conftest.er1
8769 ac_status=$?
8770 grep -v '^ *+' conftest.er1 >conftest.err
8771 rm -f conftest.er1
8772 cat conftest.err >&5
8773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } && {
8775 test -z "$ac_c_werror_flag" ||
8776 test ! -s conftest.err
8777 } && test -s conftest.$ac_objext; then
8778 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8779 else
8780 $as_echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 cat >conftest.$ac_ext <<_ACEOF
8784 /* confdefs.h. */
8785 _ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 $ac_includes_default
8790 #if HAVE_SYS_SOCKET_H
8791 #include <sys/socket.h>
8792 #endif
8793 #if HAVE_NET_IF_H
8794 #include <net/if.h>
8795 #endif
8798 main ()
8800 static struct ifreq ac_aggr;
8801 if (sizeof ac_aggr.ifr_hwaddr)
8802 return 0;
8804 return 0;
8806 _ACEOF
8807 rm -f conftest.$ac_objext
8808 if { (ac_try="$ac_compile"
8809 case "(($ac_try" in
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8812 esac
8813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8814 $as_echo "$ac_try_echo") >&5
8815 (eval "$ac_compile") 2>conftest.er1
8816 ac_status=$?
8817 grep -v '^ *+' conftest.er1 >conftest.err
8818 rm -f conftest.er1
8819 cat conftest.err >&5
8820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } && {
8822 test -z "$ac_c_werror_flag" ||
8823 test ! -s conftest.err
8824 } && test -s conftest.$ac_objext; then
8825 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8826 else
8827 $as_echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8830 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8838 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8839 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8840 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8842 cat >>confdefs.h <<_ACEOF
8843 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8844 _ACEOF
8848 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8849 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8850 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8851 $as_echo_n "(cached) " >&6
8852 else
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h. */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8860 #if HAVE_SYS_SOCKET_H
8861 #include <sys/socket.h>
8862 #endif
8863 #if HAVE_NET_IF_H
8864 #include <net/if.h>
8865 #endif
8868 main ()
8870 static struct ifreq ac_aggr;
8871 if (ac_aggr.ifr_netmask)
8872 return 0;
8874 return 0;
8876 _ACEOF
8877 rm -f conftest.$ac_objext
8878 if { (ac_try="$ac_compile"
8879 case "(($ac_try" in
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8882 esac
8883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8884 $as_echo "$ac_try_echo") >&5
8885 (eval "$ac_compile") 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } && {
8892 test -z "$ac_c_werror_flag" ||
8893 test ! -s conftest.err
8894 } && test -s conftest.$ac_objext; then
8895 ac_cv_member_struct_ifreq_ifr_netmask=yes
8896 else
8897 $as_echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8900 cat >conftest.$ac_ext <<_ACEOF
8901 /* confdefs.h. */
8902 _ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8906 $ac_includes_default
8907 #if HAVE_SYS_SOCKET_H
8908 #include <sys/socket.h>
8909 #endif
8910 #if HAVE_NET_IF_H
8911 #include <net/if.h>
8912 #endif
8915 main ()
8917 static struct ifreq ac_aggr;
8918 if (sizeof ac_aggr.ifr_netmask)
8919 return 0;
8921 return 0;
8923 _ACEOF
8924 rm -f conftest.$ac_objext
8925 if { (ac_try="$ac_compile"
8926 case "(($ac_try" in
8927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8928 *) ac_try_echo=$ac_try;;
8929 esac
8930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8931 $as_echo "$ac_try_echo") >&5
8932 (eval "$ac_compile") 2>conftest.er1
8933 ac_status=$?
8934 grep -v '^ *+' conftest.er1 >conftest.err
8935 rm -f conftest.er1
8936 cat conftest.err >&5
8937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } && {
8939 test -z "$ac_c_werror_flag" ||
8940 test ! -s conftest.err
8941 } && test -s conftest.$ac_objext; then
8942 ac_cv_member_struct_ifreq_ifr_netmask=yes
8943 else
8944 $as_echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 ac_cv_member_struct_ifreq_ifr_netmask=no
8950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8955 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8956 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8957 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8959 cat >>confdefs.h <<_ACEOF
8960 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8961 _ACEOF
8965 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8966 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8967 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8968 $as_echo_n "(cached) " >&6
8969 else
8970 cat >conftest.$ac_ext <<_ACEOF
8971 /* confdefs.h. */
8972 _ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h. */
8976 $ac_includes_default
8977 #if HAVE_SYS_SOCKET_H
8978 #include <sys/socket.h>
8979 #endif
8980 #if HAVE_NET_IF_H
8981 #include <net/if.h>
8982 #endif
8985 main ()
8987 static struct ifreq ac_aggr;
8988 if (ac_aggr.ifr_broadaddr)
8989 return 0;
8991 return 0;
8993 _ACEOF
8994 rm -f conftest.$ac_objext
8995 if { (ac_try="$ac_compile"
8996 case "(($ac_try" in
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
8999 esac
9000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9001 $as_echo "$ac_try_echo") >&5
9002 (eval "$ac_compile") 2>conftest.er1
9003 ac_status=$?
9004 grep -v '^ *+' conftest.er1 >conftest.err
9005 rm -f conftest.er1
9006 cat conftest.err >&5
9007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } && {
9009 test -z "$ac_c_werror_flag" ||
9010 test ! -s conftest.err
9011 } && test -s conftest.$ac_objext; then
9012 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9013 else
9014 $as_echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9017 cat >conftest.$ac_ext <<_ACEOF
9018 /* confdefs.h. */
9019 _ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9023 $ac_includes_default
9024 #if HAVE_SYS_SOCKET_H
9025 #include <sys/socket.h>
9026 #endif
9027 #if HAVE_NET_IF_H
9028 #include <net/if.h>
9029 #endif
9032 main ()
9034 static struct ifreq ac_aggr;
9035 if (sizeof ac_aggr.ifr_broadaddr)
9036 return 0;
9038 return 0;
9040 _ACEOF
9041 rm -f conftest.$ac_objext
9042 if { (ac_try="$ac_compile"
9043 case "(($ac_try" in
9044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9045 *) ac_try_echo=$ac_try;;
9046 esac
9047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9048 $as_echo "$ac_try_echo") >&5
9049 (eval "$ac_compile") 2>conftest.er1
9050 ac_status=$?
9051 grep -v '^ *+' conftest.er1 >conftest.err
9052 rm -f conftest.er1
9053 cat conftest.err >&5
9054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } && {
9056 test -z "$ac_c_werror_flag" ||
9057 test ! -s conftest.err
9058 } && test -s conftest.$ac_objext; then
9059 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9060 else
9061 $as_echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9064 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9073 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9074 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9076 cat >>confdefs.h <<_ACEOF
9077 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9078 _ACEOF
9082 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9083 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9084 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9085 $as_echo_n "(cached) " >&6
9086 else
9087 cat >conftest.$ac_ext <<_ACEOF
9088 /* confdefs.h. */
9089 _ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h. */
9093 $ac_includes_default
9094 #if HAVE_SYS_SOCKET_H
9095 #include <sys/socket.h>
9096 #endif
9097 #if HAVE_NET_IF_H
9098 #include <net/if.h>
9099 #endif
9102 main ()
9104 static struct ifreq ac_aggr;
9105 if (ac_aggr.ifr_addr)
9106 return 0;
9108 return 0;
9110 _ACEOF
9111 rm -f conftest.$ac_objext
9112 if { (ac_try="$ac_compile"
9113 case "(($ac_try" in
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9116 esac
9117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9118 $as_echo "$ac_try_echo") >&5
9119 (eval "$ac_compile") 2>conftest.er1
9120 ac_status=$?
9121 grep -v '^ *+' conftest.er1 >conftest.err
9122 rm -f conftest.er1
9123 cat conftest.err >&5
9124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } && {
9126 test -z "$ac_c_werror_flag" ||
9127 test ! -s conftest.err
9128 } && test -s conftest.$ac_objext; then
9129 ac_cv_member_struct_ifreq_ifr_addr=yes
9130 else
9131 $as_echo "$as_me: failed program was:" >&5
9132 sed 's/^/| /' conftest.$ac_ext >&5
9134 cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h. */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 $ac_includes_default
9141 #if HAVE_SYS_SOCKET_H
9142 #include <sys/socket.h>
9143 #endif
9144 #if HAVE_NET_IF_H
9145 #include <net/if.h>
9146 #endif
9149 main ()
9151 static struct ifreq ac_aggr;
9152 if (sizeof ac_aggr.ifr_addr)
9153 return 0;
9155 return 0;
9157 _ACEOF
9158 rm -f conftest.$ac_objext
9159 if { (ac_try="$ac_compile"
9160 case "(($ac_try" in
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9163 esac
9164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9165 $as_echo "$ac_try_echo") >&5
9166 (eval "$ac_compile") 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } && {
9173 test -z "$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9175 } && test -s conftest.$ac_objext; then
9176 ac_cv_member_struct_ifreq_ifr_addr=yes
9177 else
9178 $as_echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 ac_cv_member_struct_ifreq_ifr_addr=no
9184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9190 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9191 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9193 cat >>confdefs.h <<_ACEOF
9194 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9195 _ACEOF
9202 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9203 $as_echo_n "checking for function prototypes... " >&6; }
9204 if test "$ac_cv_prog_cc_c89" != no; then
9205 { $as_echo "$as_me:$LINENO: result: yes" >&5
9206 $as_echo "yes" >&6; }
9208 cat >>confdefs.h <<\_ACEOF
9209 #define PROTOTYPES 1
9210 _ACEOF
9213 cat >>confdefs.h <<\_ACEOF
9214 #define __PROTOTYPES 1
9215 _ACEOF
9217 else
9218 { $as_echo "$as_me:$LINENO: result: no" >&5
9219 $as_echo "no" >&6; }
9222 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9223 $as_echo_n "checking for working volatile... " >&6; }
9224 if test "${ac_cv_c_volatile+set}" = set; then
9225 $as_echo_n "(cached) " >&6
9226 else
9227 cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h. */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9235 main ()
9238 volatile int x;
9239 int * volatile y = (int *) 0;
9240 return !x && !y;
9242 return 0;
9244 _ACEOF
9245 rm -f conftest.$ac_objext
9246 if { (ac_try="$ac_compile"
9247 case "(($ac_try" in
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9250 esac
9251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9252 $as_echo "$ac_try_echo") >&5
9253 (eval "$ac_compile") 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } && {
9260 test -z "$ac_c_werror_flag" ||
9261 test ! -s conftest.err
9262 } && test -s conftest.$ac_objext; then
9263 ac_cv_c_volatile=yes
9264 else
9265 $as_echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9268 ac_cv_c_volatile=no
9271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9273 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9274 $as_echo "$ac_cv_c_volatile" >&6; }
9275 if test $ac_cv_c_volatile = no; then
9277 cat >>confdefs.h <<\_ACEOF
9278 #define volatile /**/
9279 _ACEOF
9283 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9284 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9285 if test "${ac_cv_c_const+set}" = set; then
9286 $as_echo_n "(cached) " >&6
9287 else
9288 cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h. */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9296 main ()
9298 /* FIXME: Include the comments suggested by Paul. */
9299 #ifndef __cplusplus
9300 /* Ultrix mips cc rejects this. */
9301 typedef int charset[2];
9302 const charset cs;
9303 /* SunOS 4.1.1 cc rejects this. */
9304 char const *const *pcpcc;
9305 char **ppc;
9306 /* NEC SVR4.0.2 mips cc rejects this. */
9307 struct point {int x, y;};
9308 static struct point const zero = {0,0};
9309 /* AIX XL C 1.02.0.0 rejects this.
9310 It does not let you subtract one const X* pointer from another in
9311 an arm of an if-expression whose if-part is not a constant
9312 expression */
9313 const char *g = "string";
9314 pcpcc = &g + (g ? g-g : 0);
9315 /* HPUX 7.0 cc rejects these. */
9316 ++pcpcc;
9317 ppc = (char**) pcpcc;
9318 pcpcc = (char const *const *) ppc;
9319 { /* SCO 3.2v4 cc rejects this. */
9320 char *t;
9321 char const *s = 0 ? (char *) 0 : (char const *) 0;
9323 *t++ = 0;
9324 if (s) return 0;
9326 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9327 int x[] = {25, 17};
9328 const int *foo = &x[0];
9329 ++foo;
9331 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9332 typedef const int *iptr;
9333 iptr p = 0;
9334 ++p;
9336 { /* AIX XL C 1.02.0.0 rejects this saying
9337 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9338 struct s { int j; const int *ap[3]; };
9339 struct s *b; b->j = 5;
9341 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9342 const int foo = 10;
9343 if (!foo) return 0;
9345 return !cs[0] && !zero.x;
9346 #endif
9349 return 0;
9351 _ACEOF
9352 rm -f conftest.$ac_objext
9353 if { (ac_try="$ac_compile"
9354 case "(($ac_try" in
9355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356 *) ac_try_echo=$ac_try;;
9357 esac
9358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9359 $as_echo "$ac_try_echo") >&5
9360 (eval "$ac_compile") 2>conftest.er1
9361 ac_status=$?
9362 grep -v '^ *+' conftest.er1 >conftest.err
9363 rm -f conftest.er1
9364 cat conftest.err >&5
9365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest.$ac_objext; then
9370 ac_cv_c_const=yes
9371 else
9372 $as_echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 ac_cv_c_const=no
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9380 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9381 $as_echo "$ac_cv_c_const" >&6; }
9382 if test $ac_cv_c_const = no; then
9384 cat >>confdefs.h <<\_ACEOF
9385 #define const /**/
9386 _ACEOF
9390 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9391 $as_echo_n "checking for void * support... " >&6; }
9392 if test "${emacs_cv_void_star+set}" = set; then
9393 $as_echo_n "(cached) " >&6
9394 else
9395 cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h. */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9403 main ()
9405 void * foo;
9407 return 0;
9409 _ACEOF
9410 rm -f conftest.$ac_objext
9411 if { (ac_try="$ac_compile"
9412 case "(($ac_try" in
9413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9414 *) ac_try_echo=$ac_try;;
9415 esac
9416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9417 $as_echo "$ac_try_echo") >&5
9418 (eval "$ac_compile") 2>conftest.er1
9419 ac_status=$?
9420 grep -v '^ *+' conftest.er1 >conftest.err
9421 rm -f conftest.er1
9422 cat conftest.err >&5
9423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } && {
9425 test -z "$ac_c_werror_flag" ||
9426 test ! -s conftest.err
9427 } && test -s conftest.$ac_objext; then
9428 emacs_cv_void_star=yes
9429 else
9430 $as_echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.$ac_ext >&5
9433 emacs_cv_void_star=no
9436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9438 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9439 $as_echo "$emacs_cv_void_star" >&6; }
9440 if test $emacs_cv_void_star = yes; then
9441 cat >>confdefs.h <<\_ACEOF
9442 #define POINTER_TYPE void
9443 _ACEOF
9445 else
9446 cat >>confdefs.h <<\_ACEOF
9447 #define POINTER_TYPE char
9448 _ACEOF
9456 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9457 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9458 set x ${MAKE-make}
9459 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9460 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9461 $as_echo_n "(cached) " >&6
9462 else
9463 cat >conftest.make <<\_ACEOF
9464 SHELL = /bin/sh
9465 all:
9466 @echo '@@@%%%=$(MAKE)=@@@%%%'
9467 _ACEOF
9468 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9469 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9470 *@@@%%%=?*=@@@%%%*)
9471 eval ac_cv_prog_make_${ac_make}_set=yes;;
9473 eval ac_cv_prog_make_${ac_make}_set=no;;
9474 esac
9475 rm -f conftest.make
9477 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9478 { $as_echo "$as_me:$LINENO: result: yes" >&5
9479 $as_echo "yes" >&6; }
9480 SET_MAKE=
9481 else
9482 { $as_echo "$as_me:$LINENO: result: no" >&5
9483 $as_echo "no" >&6; }
9484 SET_MAKE="MAKE=${MAKE-make}"
9488 DEPFLAGS=
9489 MKDEPDIR=":"
9490 deps_frag=deps.mk
9491 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9492 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9493 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9494 HAVE_GNU_MAKE=no
9495 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9496 if test "x$testval" != x; then
9497 HAVE_GNU_MAKE=yes
9498 else
9499 ac_enable_autodepend=no
9501 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9502 $as_echo "$HAVE_GNU_MAKE" >&6; }
9503 if test $HAVE_GNU_MAKE = yes; then
9504 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9505 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9506 SAVE_CFLAGS="$CFLAGS"
9507 CFLAGS="$CFLAGS -MMD -MF deps.d"
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9516 main ()
9520 return 0;
9522 _ACEOF
9523 rm -f conftest.$ac_objext
9524 if { (ac_try="$ac_compile"
9525 case "(($ac_try" in
9526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9527 *) ac_try_echo=$ac_try;;
9528 esac
9529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9530 $as_echo "$ac_try_echo") >&5
9531 (eval "$ac_compile") 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } && {
9538 test -z "$ac_c_werror_flag" ||
9539 test ! -s conftest.err
9540 } && test -s conftest.$ac_objext; then
9542 else
9543 $as_echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9546 ac_enable_autodepend=no
9549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9550 CFLAGS="$SAVE_CFLAGS"
9551 test -f deps.d || ac_enable_autodepend=no
9552 rm -rf deps.d
9553 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9554 $as_echo "$ac_enable_autodepend" >&6; }
9556 if test $ac_enable_autodepend = yes; then
9557 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
9558 ## In parallel builds, another make might create depdir between
9559 ## the first test and mkdir, so stick another test on the end.
9560 ## Or use mkinstalldirs? mkdir -p is not portable.
9561 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9562 deps_frag=autodeps.mk
9565 deps_frag=$srcdir/src/$deps_frag
9571 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9572 $as_echo_n "checking for long file names... " >&6; }
9573 if test "${ac_cv_sys_long_file_names+set}" = set; then
9574 $as_echo_n "(cached) " >&6
9575 else
9576 ac_cv_sys_long_file_names=yes
9577 # Test for long file names in all the places we know might matter:
9578 # . the current directory, where building will happen
9579 # $prefix/lib where we will be installing things
9580 # $exec_prefix/lib likewise
9581 # $TMPDIR if set, where it might want to write temporary files
9582 # /tmp where it might want to write temporary files
9583 # /var/tmp likewise
9584 # /usr/tmp likewise
9585 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9586 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9587 # in the usual case where exec_prefix is '${prefix}'.
9588 case $ac_dir in #(
9589 . | /* | ?:[\\/]*) ;; #(
9590 *) continue;;
9591 esac
9592 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9593 ac_xdir=$ac_dir/cf$$
9594 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9595 ac_tf1=$ac_xdir/conftest9012345
9596 ac_tf2=$ac_xdir/conftest9012346
9597 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9598 ac_cv_sys_long_file_names=no
9599 rm -f -r "$ac_xdir" 2>/dev/null
9600 test $ac_cv_sys_long_file_names = no && break
9601 done
9603 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9604 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9605 if test $ac_cv_sys_long_file_names = yes; then
9607 cat >>confdefs.h <<\_ACEOF
9608 #define HAVE_LONG_FILE_NAMES 1
9609 _ACEOF
9614 #### Choose a window system.
9616 { $as_echo "$as_me:$LINENO: checking for X" >&5
9617 $as_echo_n "checking for X... " >&6; }
9620 # Check whether --with-x was given.
9621 if test "${with_x+set}" = set; then
9622 withval=$with_x;
9625 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9626 if test "x$with_x" = xno; then
9627 # The user explicitly disabled X.
9628 have_x=disabled
9629 else
9630 case $x_includes,$x_libraries in #(
9631 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9632 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9633 { (exit 1); exit 1; }; };; #(
9634 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9635 $as_echo_n "(cached) " >&6
9636 else
9637 # One or both of the vars are not set, and there is no cached value.
9638 ac_x_includes=no ac_x_libraries=no
9639 rm -f -r conftest.dir
9640 if mkdir conftest.dir; then
9641 cd conftest.dir
9642 cat >Imakefile <<'_ACEOF'
9643 incroot:
9644 @echo incroot='${INCROOT}'
9645 usrlibdir:
9646 @echo usrlibdir='${USRLIBDIR}'
9647 libdir:
9648 @echo libdir='${LIBDIR}'
9649 _ACEOF
9650 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9651 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9652 for ac_var in incroot usrlibdir libdir; do
9653 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9654 done
9655 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9656 for ac_extension in a so sl dylib la dll; do
9657 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9658 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9659 ac_im_usrlibdir=$ac_im_libdir; break
9661 done
9662 # Screen out bogus values from the imake configuration. They are
9663 # bogus both because they are the default anyway, and because
9664 # using them would break gcc on systems where it needs fixed includes.
9665 case $ac_im_incroot in
9666 /usr/include) ac_x_includes= ;;
9667 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9668 esac
9669 case $ac_im_usrlibdir in
9670 /usr/lib | /lib) ;;
9671 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9672 esac
9674 cd ..
9675 rm -f -r conftest.dir
9678 # Standard set of common directories for X headers.
9679 # Check X11 before X11Rn because it is often a symlink to the current release.
9680 ac_x_header_dirs='
9681 /usr/X11/include
9682 /usr/X11R6/include
9683 /usr/X11R5/include
9684 /usr/X11R4/include
9686 /usr/include/X11
9687 /usr/include/X11R6
9688 /usr/include/X11R5
9689 /usr/include/X11R4
9691 /usr/local/X11/include
9692 /usr/local/X11R6/include
9693 /usr/local/X11R5/include
9694 /usr/local/X11R4/include
9696 /usr/local/include/X11
9697 /usr/local/include/X11R6
9698 /usr/local/include/X11R5
9699 /usr/local/include/X11R4
9701 /usr/X386/include
9702 /usr/x386/include
9703 /usr/XFree86/include/X11
9705 /usr/include
9706 /usr/local/include
9707 /usr/unsupported/include
9708 /usr/athena/include
9709 /usr/local/x11r5/include
9710 /usr/lpp/Xamples/include
9712 /usr/openwin/include
9713 /usr/openwin/share/include'
9715 if test "$ac_x_includes" = no; then
9716 # Guess where to find include files, by looking for Xlib.h.
9717 # First, try using that file with no special directory specified.
9718 cat >conftest.$ac_ext <<_ACEOF
9719 /* confdefs.h. */
9720 _ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9724 #include <X11/Xlib.h>
9725 _ACEOF
9726 if { (ac_try="$ac_cpp conftest.$ac_ext"
9727 case "(($ac_try" in
9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9730 esac
9731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9732 $as_echo "$ac_try_echo") >&5
9733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9734 ac_status=$?
9735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } >/dev/null && {
9740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9741 test ! -s conftest.err
9742 }; then
9743 # We can compile using X headers with no special include directory.
9744 ac_x_includes=
9745 else
9746 $as_echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9749 for ac_dir in $ac_x_header_dirs; do
9750 if test -r "$ac_dir/X11/Xlib.h"; then
9751 ac_x_includes=$ac_dir
9752 break
9754 done
9757 rm -f conftest.err conftest.$ac_ext
9758 fi # $ac_x_includes = no
9760 if test "$ac_x_libraries" = no; then
9761 # Check for the libraries.
9762 # See if we find them without any special options.
9763 # Don't add to $LIBS permanently.
9764 ac_save_LIBS=$LIBS
9765 LIBS="-lX11 $LIBS"
9766 cat >conftest.$ac_ext <<_ACEOF
9767 /* confdefs.h. */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9772 #include <X11/Xlib.h>
9774 main ()
9776 XrmInitialize ()
9778 return 0;
9780 _ACEOF
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9783 case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9786 esac
9787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9788 $as_echo "$ac_try_echo") >&5
9789 (eval "$ac_link") 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest$ac_exeext && {
9799 test "$cross_compiling" = yes ||
9800 $as_test_x conftest$ac_exeext
9801 }; then
9802 LIBS=$ac_save_LIBS
9803 # We can link X programs with no special library path.
9804 ac_x_libraries=
9805 else
9806 $as_echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 LIBS=$ac_save_LIBS
9810 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9812 # Don't even attempt the hair of trying to link an X program!
9813 for ac_extension in a so sl dylib la dll; do
9814 if test -r "$ac_dir/libX11.$ac_extension"; then
9815 ac_x_libraries=$ac_dir
9816 break 2
9818 done
9819 done
9822 rm -rf conftest.dSYM
9823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824 conftest$ac_exeext conftest.$ac_ext
9825 fi # $ac_x_libraries = no
9827 case $ac_x_includes,$ac_x_libraries in #(
9828 no,* | *,no | *\'*)
9829 # Didn't find X, or a directory has "'" in its name.
9830 ac_cv_have_x="have_x=no";; #(
9832 # Record where we found X for the cache.
9833 ac_cv_have_x="have_x=yes\
9834 ac_x_includes='$ac_x_includes'\
9835 ac_x_libraries='$ac_x_libraries'"
9836 esac
9838 ;; #(
9839 *) have_x=yes;;
9840 esac
9841 eval "$ac_cv_have_x"
9842 fi # $with_x != no
9844 if test "$have_x" != yes; then
9845 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9846 $as_echo "$have_x" >&6; }
9847 no_x=yes
9848 else
9849 # If each of the values was on the command line, it overrides each guess.
9850 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9851 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9852 # Update the cache value to reflect the command line values.
9853 ac_cv_have_x="have_x=yes\
9854 ac_x_includes='$x_includes'\
9855 ac_x_libraries='$x_libraries'"
9856 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9857 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9860 if test "$no_x" = yes; then
9861 window_system=none
9862 else
9863 window_system=x11
9866 ## Workaround for bug in autoconf <= 2.62.
9867 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9868 ## No need to do anything special for these standard directories.
9869 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9871 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9875 LD_SWITCH_X_SITE_AUX=
9876 LD_SWITCH_X_SITE_AUX_RPATH=
9877 if test "${x_libraries}" != NONE; then
9878 if test -n "${x_libraries}"; then
9879 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9880 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9881 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9883 x_default_search_path=""
9884 x_search_path=${x_libraries}
9885 if test -z "${x_search_path}"; then
9886 x_search_path=/usr/lib
9888 for x_library in `echo ${x_search_path}: | \
9889 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9890 x_search_path="\
9891 ${x_library}/X11/%L/%T/%N%C%S:\
9892 ${x_library}/X11/%l/%T/%N%C%S:\
9893 ${x_library}/X11/%T/%N%C%S:\
9894 ${x_library}/X11/%L/%T/%N%S:\
9895 ${x_library}/X11/%l/%T/%N%S:\
9896 ${x_library}/X11/%T/%N%S"
9897 if test x"${x_default_search_path}" = x; then
9898 x_default_search_path=${x_search_path}
9899 else
9900 x_default_search_path="${x_search_path}:${x_default_search_path}"
9902 done
9907 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9908 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9911 if test x"${x_includes}" = x; then
9912 bitmapdir=/usr/include/X11/bitmaps
9913 else
9914 # accumulate include directories that have X11 bitmap subdirectories
9915 bmd_acc="dummyval"
9916 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9917 if test -d "${bmd}/X11/bitmaps"; then
9918 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9920 if test -d "${bmd}/bitmaps"; then
9921 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9923 done
9924 if test ${bmd_acc} != "dummyval"; then
9925 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9929 HAVE_NS=no
9930 NS_IMPL_COCOA=no
9931 NS_IMPL_GNUSTEP=no
9932 tmp_CPPFLAGS="$CPPFLAGS"
9933 tmp_CFLAGS="$CFLAGS"
9934 CPPFLAGS="$CPPFLAGS -x objective-c"
9935 CFLAGS="$CFLAGS -x objective-c"
9936 TEMACS_LDFLAGS2="\${LDFLAGS}"
9937 if test "${with_ns}" != no; then
9938 if test "${opsys}" = darwin; then
9939 NS_IMPL_COCOA=yes
9940 ns_appdir=`pwd`/nextstep/Emacs.app/
9941 ns_appbindir=${ns_appdir}Contents/MacOS/
9942 ns_appresdir=${ns_appdir}Contents/Resources
9943 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9944 elif test -f $GNUSTEP_CONFIG_FILE; then
9945 NS_IMPL_GNUSTEP=yes
9946 ns_appdir=`pwd`/nextstep/Emacs.app/
9947 ns_appbindir=${ns_appdir}
9948 ns_appresdir=${ns_appdir}Resources
9949 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9950 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9951 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9952 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9953 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9954 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9955 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9956 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9957 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9958 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9959 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9960 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9961 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9962 LIB_STANDARD=
9963 START_FILES=
9964 TEMACS_LDFLAGS2=
9966 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9967 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9968 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9969 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9970 $as_echo_n "(cached) " >&6
9972 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9973 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9974 else
9975 # Is the header compilable?
9976 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9977 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 $ac_includes_default
9985 #include <AppKit/AppKit.h>
9986 _ACEOF
9987 rm -f conftest.$ac_objext
9988 if { (ac_try="$ac_compile"
9989 case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992 esac
9993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9994 $as_echo "$ac_try_echo") >&5
9995 (eval "$ac_compile") 2>conftest.er1
9996 ac_status=$?
9997 grep -v '^ *+' conftest.er1 >conftest.err
9998 rm -f conftest.er1
9999 cat conftest.err >&5
10000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } && {
10002 test -z "$ac_c_werror_flag" ||
10003 test ! -s conftest.err
10004 } && test -s conftest.$ac_objext; then
10005 ac_header_compiler=yes
10006 else
10007 $as_echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 ac_header_compiler=no
10013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10015 $as_echo "$ac_header_compiler" >&6; }
10017 # Is the header present?
10018 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10019 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10020 cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h. */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10026 #include <AppKit/AppKit.h>
10027 _ACEOF
10028 if { (ac_try="$ac_cpp conftest.$ac_ext"
10029 case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10032 esac
10033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10034 $as_echo "$ac_try_echo") >&5
10035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10036 ac_status=$?
10037 grep -v '^ *+' conftest.er1 >conftest.err
10038 rm -f conftest.er1
10039 cat conftest.err >&5
10040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } >/dev/null && {
10042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10043 test ! -s conftest.err
10044 }; then
10045 ac_header_preproc=yes
10046 else
10047 $as_echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 ac_header_preproc=no
10053 rm -f conftest.err conftest.$ac_ext
10054 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10055 $as_echo "$ac_header_preproc" >&6; }
10057 # So? What about this header?
10058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10059 yes:no: )
10060 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10061 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10062 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10063 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10064 ac_header_preproc=yes
10066 no:yes:* )
10067 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10068 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10069 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10070 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10071 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10072 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10073 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10074 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10075 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10076 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10077 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10078 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10081 esac
10082 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10083 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10084 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10085 $as_echo_n "(cached) " >&6
10086 else
10087 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
10089 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10090 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10093 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10094 HAVE_NS=yes
10095 else
10096 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10097 files are missing or cannot be compiled." >&5
10098 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10099 files are missing or cannot be compiled." >&2;}
10100 { (exit 1); exit 1; }; }
10104 NS_HAVE_NSINTEGER=yes
10105 cat >conftest.$ac_ext <<_ACEOF
10106 /* confdefs.h. */
10107 _ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10111 #include <Foundation/NSObjCRuntime.h>
10113 main ()
10115 NSInteger i;
10117 return 0;
10119 _ACEOF
10120 rm -f conftest.$ac_objext
10121 if { (ac_try="$ac_compile"
10122 case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10125 esac
10126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10127 $as_echo "$ac_try_echo") >&5
10128 (eval "$ac_compile") 2>conftest.er1
10129 ac_status=$?
10130 grep -v '^ *+' conftest.er1 >conftest.err
10131 rm -f conftest.er1
10132 cat conftest.err >&5
10133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } && {
10135 test -z "$ac_c_werror_flag" ||
10136 test ! -s conftest.err
10137 } && test -s conftest.$ac_objext; then
10138 ns_have_nsinteger=yes
10139 else
10140 $as_echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10143 ns_have_nsinteger=no
10146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10147 if test $ns_have_nsinteger = no; then
10148 NS_HAVE_NSINTEGER=no
10153 ns_frag=/dev/null
10154 NS_OBJ=
10155 NS_SUPPORT=
10156 if test "${HAVE_NS}" = yes; then
10157 window_system=nextstep
10158 with_xft=no
10159 # set up packaging dirs
10160 exec_prefix=${ns_appbindir}
10161 libexecdir=${ns_appbindir}/libexec
10162 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10163 prefix=${ns_appresdir}
10165 ns_frag=$srcdir/src/ns.mk
10166 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10167 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10169 CFLAGS="$tmp_CFLAGS"
10170 CPPFLAGS="$tmp_CPPFLAGS"
10176 case "${window_system}" in
10177 x11 )
10178 HAVE_X_WINDOWS=yes
10179 HAVE_X11=yes
10180 case "${with_x_toolkit}" in
10181 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10182 motif ) USE_X_TOOLKIT=MOTIF ;;
10183 gtk ) with_gtk=yes
10184 USE_X_TOOLKIT=none ;;
10185 no ) USE_X_TOOLKIT=none ;;
10186 * ) USE_X_TOOLKIT=maybe ;;
10187 esac
10189 nextstep | none )
10190 HAVE_X_WINDOWS=no
10191 HAVE_X11=no
10192 USE_X_TOOLKIT=none
10194 esac
10196 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10197 # Extract the first word of "X", so it can be a program name with args.
10198 set dummy X; ac_word=$2
10199 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10200 $as_echo_n "checking for $ac_word... " >&6; }
10201 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10202 $as_echo_n "(cached) " >&6
10203 else
10204 if test -n "$HAVE_XSERVER"; then
10205 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10206 else
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_prog_HAVE_XSERVER="true"
10215 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10218 done
10219 done
10220 IFS=$as_save_IFS
10222 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10225 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10226 if test -n "$HAVE_XSERVER"; then
10227 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10228 $as_echo "$HAVE_XSERVER" >&6; }
10229 else
10230 { $as_echo "$as_me:$LINENO: result: no" >&5
10231 $as_echo "no" >&6; }
10235 if test "$HAVE_XSERVER" = true ||
10236 test -n "$DISPLAY" ||
10237 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10238 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10239 were found. You should install the relevant development files for X
10240 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10241 sure you have development files for image handling, i.e.
10242 tiff, gif, jpeg, png and xpm.
10243 If you are sure you want Emacs compiled without X window support, pass
10244 --without-x
10245 to configure." >&5
10246 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10247 were found. You should install the relevant development files for X
10248 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10249 sure you have development files for image handling, i.e.
10250 tiff, gif, jpeg, png and xpm.
10251 If you are sure you want Emacs compiled without X window support, pass
10252 --without-x
10253 to configure." >&2;}
10254 { (exit 1); exit 1; }; }
10258 ### If we're using X11, we should use the X menu package.
10259 HAVE_MENUS=no
10260 case ${HAVE_X11} in
10261 yes ) HAVE_MENUS=yes ;;
10262 esac
10264 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10265 # Assume not, until told otherwise.
10266 GNU_MALLOC=yes
10267 doug_lea_malloc=yes
10268 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10269 $as_echo_n "checking for malloc_get_state... " >&6; }
10270 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10271 $as_echo_n "(cached) " >&6
10272 else
10273 cat >conftest.$ac_ext <<_ACEOF
10274 /* confdefs.h. */
10275 _ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10281 #define malloc_get_state innocuous_malloc_get_state
10283 /* System header to define __stub macros and hopefully few prototypes,
10284 which can conflict with char malloc_get_state (); below.
10285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10286 <limits.h> exists even on freestanding compilers. */
10288 #ifdef __STDC__
10289 # include <limits.h>
10290 #else
10291 # include <assert.h>
10292 #endif
10294 #undef malloc_get_state
10296 /* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10299 #ifdef __cplusplus
10300 extern "C"
10301 #endif
10302 char malloc_get_state ();
10303 /* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
10306 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10307 choke me
10308 #endif
10311 main ()
10313 return malloc_get_state ();
10315 return 0;
10317 _ACEOF
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (ac_try="$ac_link"
10320 case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10323 esac
10324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10325 $as_echo "$ac_try_echo") >&5
10326 (eval "$ac_link") 2>conftest.er1
10327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
10331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest$ac_exeext && {
10336 test "$cross_compiling" = yes ||
10337 $as_test_x conftest$ac_exeext
10338 }; then
10339 ac_cv_func_malloc_get_state=yes
10340 else
10341 $as_echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10344 ac_cv_func_malloc_get_state=no
10347 rm -rf conftest.dSYM
10348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10349 conftest$ac_exeext conftest.$ac_ext
10351 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10352 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10353 if test $ac_cv_func_malloc_get_state = yes; then
10355 else
10356 doug_lea_malloc=no
10359 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10360 $as_echo_n "checking for malloc_set_state... " >&6; }
10361 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10362 $as_echo_n "(cached) " >&6
10363 else
10364 cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h. */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10372 #define malloc_set_state innocuous_malloc_set_state
10374 /* System header to define __stub macros and hopefully few prototypes,
10375 which can conflict with char malloc_set_state (); below.
10376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10377 <limits.h> exists even on freestanding compilers. */
10379 #ifdef __STDC__
10380 # include <limits.h>
10381 #else
10382 # include <assert.h>
10383 #endif
10385 #undef malloc_set_state
10387 /* Override any GCC internal prototype to avoid an error.
10388 Use char because int might match the return type of a GCC
10389 builtin and then its argument prototype would still apply. */
10390 #ifdef __cplusplus
10391 extern "C"
10392 #endif
10393 char malloc_set_state ();
10394 /* The GNU C library defines this for functions which it implements
10395 to always fail with ENOSYS. Some functions are actually named
10396 something starting with __ and the normal name is an alias. */
10397 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10398 choke me
10399 #endif
10402 main ()
10404 return malloc_set_state ();
10406 return 0;
10408 _ACEOF
10409 rm -f conftest.$ac_objext conftest$ac_exeext
10410 if { (ac_try="$ac_link"
10411 case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10414 esac
10415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10416 $as_echo "$ac_try_echo") >&5
10417 (eval "$ac_link") 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && {
10424 test -z "$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 } && test -s conftest$ac_exeext && {
10427 test "$cross_compiling" = yes ||
10428 $as_test_x conftest$ac_exeext
10429 }; then
10430 ac_cv_func_malloc_set_state=yes
10431 else
10432 $as_echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10435 ac_cv_func_malloc_set_state=no
10438 rm -rf conftest.dSYM
10439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10440 conftest$ac_exeext conftest.$ac_ext
10442 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10443 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10444 if test $ac_cv_func_malloc_set_state = yes; then
10446 else
10447 doug_lea_malloc=no
10450 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10451 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10452 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10453 $as_echo_n "(cached) " >&6
10454 else
10455 cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h. */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 extern void (* __after_morecore_hook)();
10463 main ()
10465 __after_morecore_hook = 0
10467 return 0;
10469 _ACEOF
10470 rm -f conftest.$ac_objext conftest$ac_exeext
10471 if { (ac_try="$ac_link"
10472 case "(($ac_try" in
10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474 *) ac_try_echo=$ac_try;;
10475 esac
10476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10477 $as_echo "$ac_try_echo") >&5
10478 (eval "$ac_link") 2>conftest.er1
10479 ac_status=$?
10480 grep -v '^ *+' conftest.er1 >conftest.err
10481 rm -f conftest.er1
10482 cat conftest.err >&5
10483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } && {
10485 test -z "$ac_c_werror_flag" ||
10486 test ! -s conftest.err
10487 } && test -s conftest$ac_exeext && {
10488 test "$cross_compiling" = yes ||
10489 $as_test_x conftest$ac_exeext
10490 }; then
10491 emacs_cv_var___after_morecore_hook=yes
10492 else
10493 $as_echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 emacs_cv_var___after_morecore_hook=no
10499 rm -rf conftest.dSYM
10500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10501 conftest$ac_exeext conftest.$ac_ext
10503 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10504 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10505 if test $emacs_cv_var___after_morecore_hook = no; then
10506 doug_lea_malloc=no
10509 if test "${system_malloc}" = "yes"; then
10510 GNU_MALLOC=no
10511 GNU_MALLOC_reason="
10512 (The GNU allocators don't work with this system configuration.)"
10513 GMALLOC_OBJ=
10514 VMLIMIT_OBJ=
10515 else
10516 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10517 VMLIMIT_OBJ=vm-limit.o
10522 if test "$doug_lea_malloc" = "yes" ; then
10523 if test "$GNU_MALLOC" = yes ; then
10524 GNU_MALLOC_reason="
10525 (Using Doug Lea's new malloc from the GNU C Library.)"
10528 cat >>confdefs.h <<\_ACEOF
10529 #define DOUG_LEA_MALLOC 1
10530 _ACEOF
10533 ## Use mmap directly for allocating larger buffers.
10534 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10535 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10536 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10537 case "$opsys" in
10538 gnu*) REL_ALLOC=no ;;
10539 esac
10542 if test x"${REL_ALLOC}" = x; then
10543 REL_ALLOC=${GNU_MALLOC}
10549 for ac_header in stdlib.h unistd.h
10551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10553 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10554 $as_echo_n "checking for $ac_header... " >&6; }
10555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10556 $as_echo_n "(cached) " >&6
10558 ac_res=`eval 'as_val=${'$as_ac_Header'}
10559 $as_echo "$as_val"'`
10560 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10561 $as_echo "$ac_res" >&6; }
10562 else
10563 # Is the header compilable?
10564 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10565 $as_echo_n "checking $ac_header usability... " >&6; }
10566 cat >conftest.$ac_ext <<_ACEOF
10567 /* confdefs.h. */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 $ac_includes_default
10573 #include <$ac_header>
10574 _ACEOF
10575 rm -f conftest.$ac_objext
10576 if { (ac_try="$ac_compile"
10577 case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10580 esac
10581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10582 $as_echo "$ac_try_echo") >&5
10583 (eval "$ac_compile") 2>conftest.er1
10584 ac_status=$?
10585 grep -v '^ *+' conftest.er1 >conftest.err
10586 rm -f conftest.er1
10587 cat conftest.err >&5
10588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); } && {
10590 test -z "$ac_c_werror_flag" ||
10591 test ! -s conftest.err
10592 } && test -s conftest.$ac_objext; then
10593 ac_header_compiler=yes
10594 else
10595 $as_echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_header_compiler=no
10601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10603 $as_echo "$ac_header_compiler" >&6; }
10605 # Is the header present?
10606 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10607 $as_echo_n "checking $ac_header presence... " >&6; }
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h. */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 #include <$ac_header>
10615 _ACEOF
10616 if { (ac_try="$ac_cpp conftest.$ac_ext"
10617 case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620 esac
10621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10622 $as_echo "$ac_try_echo") >&5
10623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10624 ac_status=$?
10625 grep -v '^ *+' conftest.er1 >conftest.err
10626 rm -f conftest.er1
10627 cat conftest.err >&5
10628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } >/dev/null && {
10630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10631 test ! -s conftest.err
10632 }; then
10633 ac_header_preproc=yes
10634 else
10635 $as_echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10638 ac_header_preproc=no
10641 rm -f conftest.err conftest.$ac_ext
10642 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10643 $as_echo "$ac_header_preproc" >&6; }
10645 # So? What about this header?
10646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10647 yes:no: )
10648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10649 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10651 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10652 ac_header_preproc=yes
10654 no:yes:* )
10655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10656 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10658 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10660 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10662 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10666 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10669 esac
10670 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10671 $as_echo_n "checking for $ac_header... " >&6; }
10672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10673 $as_echo_n "(cached) " >&6
10674 else
10675 eval "$as_ac_Header=\$ac_header_preproc"
10677 ac_res=`eval 'as_val=${'$as_ac_Header'}
10678 $as_echo "$as_val"'`
10679 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10680 $as_echo "$ac_res" >&6; }
10683 if test `eval 'as_val=${'$as_ac_Header'}
10684 $as_echo "$as_val"'` = yes; then
10685 cat >>confdefs.h <<_ACEOF
10686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10687 _ACEOF
10691 done
10694 for ac_func in getpagesize
10696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10697 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10698 $as_echo_n "checking for $ac_func... " >&6; }
10699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10700 $as_echo_n "(cached) " >&6
10701 else
10702 cat >conftest.$ac_ext <<_ACEOF
10703 /* confdefs.h. */
10704 _ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10710 #define $ac_func innocuous_$ac_func
10712 /* System header to define __stub macros and hopefully few prototypes,
10713 which can conflict with char $ac_func (); below.
10714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10715 <limits.h> exists even on freestanding compilers. */
10717 #ifdef __STDC__
10718 # include <limits.h>
10719 #else
10720 # include <assert.h>
10721 #endif
10723 #undef $ac_func
10725 /* Override any GCC internal prototype to avoid an error.
10726 Use char because int might match the return type of a GCC
10727 builtin and then its argument prototype would still apply. */
10728 #ifdef __cplusplus
10729 extern "C"
10730 #endif
10731 char $ac_func ();
10732 /* The GNU C library defines this for functions which it implements
10733 to always fail with ENOSYS. Some functions are actually named
10734 something starting with __ and the normal name is an alias. */
10735 #if defined __stub_$ac_func || defined __stub___$ac_func
10736 choke me
10737 #endif
10740 main ()
10742 return $ac_func ();
10744 return 0;
10746 _ACEOF
10747 rm -f conftest.$ac_objext conftest$ac_exeext
10748 if { (ac_try="$ac_link"
10749 case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10752 esac
10753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10754 $as_echo "$ac_try_echo") >&5
10755 (eval "$ac_link") 2>conftest.er1
10756 ac_status=$?
10757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
10760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } && {
10762 test -z "$ac_c_werror_flag" ||
10763 test ! -s conftest.err
10764 } && test -s conftest$ac_exeext && {
10765 test "$cross_compiling" = yes ||
10766 $as_test_x conftest$ac_exeext
10767 }; then
10768 eval "$as_ac_var=yes"
10769 else
10770 $as_echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10773 eval "$as_ac_var=no"
10776 rm -rf conftest.dSYM
10777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10778 conftest$ac_exeext conftest.$ac_ext
10780 ac_res=`eval 'as_val=${'$as_ac_var'}
10781 $as_echo "$as_val"'`
10782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10783 $as_echo "$ac_res" >&6; }
10784 if test `eval 'as_val=${'$as_ac_var'}
10785 $as_echo "$as_val"'` = yes; then
10786 cat >>confdefs.h <<_ACEOF
10787 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10788 _ACEOF
10791 done
10793 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10794 $as_echo_n "checking for working mmap... " >&6; }
10795 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10796 $as_echo_n "(cached) " >&6
10797 else
10798 if test "$cross_compiling" = yes; then
10799 ac_cv_func_mmap_fixed_mapped=no
10800 else
10801 cat >conftest.$ac_ext <<_ACEOF
10802 /* confdefs.h. */
10803 _ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h. */
10807 $ac_includes_default
10808 /* malloc might have been renamed as rpl_malloc. */
10809 #undef malloc
10811 /* Thanks to Mike Haertel and Jim Avera for this test.
10812 Here is a matrix of mmap possibilities:
10813 mmap private not fixed
10814 mmap private fixed at somewhere currently unmapped
10815 mmap private fixed at somewhere already mapped
10816 mmap shared not fixed
10817 mmap shared fixed at somewhere currently unmapped
10818 mmap shared fixed at somewhere already mapped
10819 For private mappings, we should verify that changes cannot be read()
10820 back from the file, nor mmap's back from the file at a different
10821 address. (There have been systems where private was not correctly
10822 implemented like the infamous i386 svr4.0, and systems where the
10823 VM page cache was not coherent with the file system buffer cache
10824 like early versions of FreeBSD and possibly contemporary NetBSD.)
10825 For shared mappings, we should conversely verify that changes get
10826 propagated back to all the places they're supposed to be.
10828 Grep wants private fixed already mapped.
10829 The main things grep needs to know about mmap are:
10830 * does it exist and is it safe to write into the mmap'd area
10831 * how to use it (BSD variants) */
10833 #include <fcntl.h>
10834 #include <sys/mman.h>
10836 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10837 char *malloc ();
10838 #endif
10840 /* This mess was copied from the GNU getpagesize.h. */
10841 #ifndef HAVE_GETPAGESIZE
10842 /* Assume that all systems that can run configure have sys/param.h. */
10843 # ifndef HAVE_SYS_PARAM_H
10844 # define HAVE_SYS_PARAM_H 1
10845 # endif
10847 # ifdef _SC_PAGESIZE
10848 # define getpagesize() sysconf(_SC_PAGESIZE)
10849 # else /* no _SC_PAGESIZE */
10850 # ifdef HAVE_SYS_PARAM_H
10851 # include <sys/param.h>
10852 # ifdef EXEC_PAGESIZE
10853 # define getpagesize() EXEC_PAGESIZE
10854 # else /* no EXEC_PAGESIZE */
10855 # ifdef NBPG
10856 # define getpagesize() NBPG * CLSIZE
10857 # ifndef CLSIZE
10858 # define CLSIZE 1
10859 # endif /* no CLSIZE */
10860 # else /* no NBPG */
10861 # ifdef NBPC
10862 # define getpagesize() NBPC
10863 # else /* no NBPC */
10864 # ifdef PAGESIZE
10865 # define getpagesize() PAGESIZE
10866 # endif /* PAGESIZE */
10867 # endif /* no NBPC */
10868 # endif /* no NBPG */
10869 # endif /* no EXEC_PAGESIZE */
10870 # else /* no HAVE_SYS_PARAM_H */
10871 # define getpagesize() 8192 /* punt totally */
10872 # endif /* no HAVE_SYS_PARAM_H */
10873 # endif /* no _SC_PAGESIZE */
10875 #endif /* no HAVE_GETPAGESIZE */
10878 main ()
10880 char *data, *data2, *data3;
10881 int i, pagesize;
10882 int fd;
10884 pagesize = getpagesize ();
10886 /* First, make a file with some known garbage in it. */
10887 data = (char *) malloc (pagesize);
10888 if (!data)
10889 return 1;
10890 for (i = 0; i < pagesize; ++i)
10891 *(data + i) = rand ();
10892 umask (0);
10893 fd = creat ("conftest.mmap", 0600);
10894 if (fd < 0)
10895 return 1;
10896 if (write (fd, data, pagesize) != pagesize)
10897 return 1;
10898 close (fd);
10900 /* Next, try to mmap the file at a fixed address which already has
10901 something else allocated at it. If we can, also make sure that
10902 we see the same garbage. */
10903 fd = open ("conftest.mmap", O_RDWR);
10904 if (fd < 0)
10905 return 1;
10906 data2 = (char *) malloc (2 * pagesize);
10907 if (!data2)
10908 return 1;
10909 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10910 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10911 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10912 return 1;
10913 for (i = 0; i < pagesize; ++i)
10914 if (*(data + i) != *(data2 + i))
10915 return 1;
10917 /* Finally, make sure that changes to the mapped area do not
10918 percolate back to the file as seen by read(). (This is a bug on
10919 some variants of i386 svr4.0.) */
10920 for (i = 0; i < pagesize; ++i)
10921 *(data2 + i) = *(data2 + i) + 1;
10922 data3 = (char *) malloc (pagesize);
10923 if (!data3)
10924 return 1;
10925 if (read (fd, data3, pagesize) != pagesize)
10926 return 1;
10927 for (i = 0; i < pagesize; ++i)
10928 if (*(data + i) != *(data3 + i))
10929 return 1;
10930 close (fd);
10931 return 0;
10933 _ACEOF
10934 rm -f conftest$ac_exeext
10935 if { (ac_try="$ac_link"
10936 case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10939 esac
10940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10941 $as_echo "$ac_try_echo") >&5
10942 (eval "$ac_link") 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10946 { (case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949 esac
10950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10951 $as_echo "$ac_try_echo") >&5
10952 (eval "$ac_try") 2>&5
10953 ac_status=$?
10954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10956 ac_cv_func_mmap_fixed_mapped=yes
10957 else
10958 $as_echo "$as_me: program exited with status $ac_status" >&5
10959 $as_echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10962 ( exit $ac_status )
10963 ac_cv_func_mmap_fixed_mapped=no
10965 rm -rf conftest.dSYM
10966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10971 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10972 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10973 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10975 cat >>confdefs.h <<\_ACEOF
10976 #define HAVE_MMAP 1
10977 _ACEOF
10980 rm -f conftest.mmap
10982 if test $use_mmap_for_buffers = yes; then
10983 REL_ALLOC=no
10986 LIBS="$LIBS_SYSTEM $LIBS"
10989 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10990 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10991 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10992 $as_echo_n "(cached) " >&6
10993 else
10994 ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-ldnet $LIBS"
10996 cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h. */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11003 /* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11006 #ifdef __cplusplus
11007 extern "C"
11008 #endif
11009 char dnet_ntoa ();
11011 main ()
11013 return dnet_ntoa ();
11015 return 0;
11017 _ACEOF
11018 rm -f conftest.$ac_objext conftest$ac_exeext
11019 if { (ac_try="$ac_link"
11020 case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11023 esac
11024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11025 $as_echo "$ac_try_echo") >&5
11026 (eval "$ac_link") 2>conftest.er1
11027 ac_status=$?
11028 grep -v '^ *+' conftest.er1 >conftest.err
11029 rm -f conftest.er1
11030 cat conftest.err >&5
11031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } && {
11033 test -z "$ac_c_werror_flag" ||
11034 test ! -s conftest.err
11035 } && test -s conftest$ac_exeext && {
11036 test "$cross_compiling" = yes ||
11037 $as_test_x conftest$ac_exeext
11038 }; then
11039 ac_cv_lib_dnet_dnet_ntoa=yes
11040 else
11041 $as_echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11044 ac_cv_lib_dnet_dnet_ntoa=no
11047 rm -rf conftest.dSYM
11048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11052 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11053 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11054 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11055 cat >>confdefs.h <<_ACEOF
11056 #define HAVE_LIBDNET 1
11057 _ACEOF
11059 LIBS="-ldnet $LIBS"
11064 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11065 $as_echo_n "checking for main in -lXbsd... " >&6; }
11066 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11067 $as_echo_n "(cached) " >&6
11068 else
11069 ac_check_lib_save_LIBS=$LIBS
11070 LIBS="-lXbsd $LIBS"
11071 cat >conftest.$ac_ext <<_ACEOF
11072 /* confdefs.h. */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11080 main ()
11082 return main ();
11084 return 0;
11086 _ACEOF
11087 rm -f conftest.$ac_objext conftest$ac_exeext
11088 if { (ac_try="$ac_link"
11089 case "(($ac_try" in
11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11092 esac
11093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11094 $as_echo "$ac_try_echo") >&5
11095 (eval "$ac_link") 2>conftest.er1
11096 ac_status=$?
11097 grep -v '^ *+' conftest.er1 >conftest.err
11098 rm -f conftest.er1
11099 cat conftest.err >&5
11100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } && {
11102 test -z "$ac_c_werror_flag" ||
11103 test ! -s conftest.err
11104 } && test -s conftest$ac_exeext && {
11105 test "$cross_compiling" = yes ||
11106 $as_test_x conftest$ac_exeext
11107 }; then
11108 ac_cv_lib_Xbsd_main=yes
11109 else
11110 $as_echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 ac_cv_lib_Xbsd_main=no
11116 rm -rf conftest.dSYM
11117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11118 conftest$ac_exeext conftest.$ac_ext
11119 LIBS=$ac_check_lib_save_LIBS
11121 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11122 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11123 if test $ac_cv_lib_Xbsd_main = yes; then
11124 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11129 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11130 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11131 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11132 $as_echo_n "(cached) " >&6
11133 else
11134 ac_check_lib_save_LIBS=$LIBS
11135 LIBS="-lpthreads $LIBS"
11136 cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h. */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11143 /* Override any GCC internal prototype to avoid an error.
11144 Use char because int might match the return type of a GCC
11145 builtin and then its argument prototype would still apply. */
11146 #ifdef __cplusplus
11147 extern "C"
11148 #endif
11149 char cma_open ();
11151 main ()
11153 return cma_open ();
11155 return 0;
11157 _ACEOF
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (ac_try="$ac_link"
11160 case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11163 esac
11164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11165 $as_echo "$ac_try_echo") >&5
11166 (eval "$ac_link") 2>conftest.er1
11167 ac_status=$?
11168 grep -v '^ *+' conftest.er1 >conftest.err
11169 rm -f conftest.er1
11170 cat conftest.err >&5
11171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } && {
11173 test -z "$ac_c_werror_flag" ||
11174 test ! -s conftest.err
11175 } && test -s conftest$ac_exeext && {
11176 test "$cross_compiling" = yes ||
11177 $as_test_x conftest$ac_exeext
11178 }; then
11179 ac_cv_lib_pthreads_cma_open=yes
11180 else
11181 $as_echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 ac_cv_lib_pthreads_cma_open=no
11187 rm -rf conftest.dSYM
11188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11189 conftest$ac_exeext conftest.$ac_ext
11190 LIBS=$ac_check_lib_save_LIBS
11192 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11193 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11194 if test $ac_cv_lib_pthreads_cma_open = yes; then
11195 cat >>confdefs.h <<_ACEOF
11196 #define HAVE_LIBPTHREADS 1
11197 _ACEOF
11199 LIBS="-lpthreads $LIBS"
11204 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11205 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11206 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11207 ## added to LIBS in configure would never contain the pthreads part,
11208 ## but the value used in Makefiles might. FIXME?
11210 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11211 ## be harmless on older versions of X where it happens to exist.
11212 test "$opsys" = "aix4-2" && \
11213 test $ac_cv_lib_pthreads_cma_open = yes && \
11214 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11217 case ${host_os} in
11218 aix*)
11219 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11220 $as_echo_n "checking for -bbigtoc option... " >&6; }
11221 if test "${gdb_cv_bigtoc+set}" = set; then
11222 $as_echo_n "(cached) " >&6
11223 else
11225 case $GCC in
11226 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11227 *) gdb_cv_bigtoc=-bbigtoc ;;
11228 esac
11230 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11231 cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h. */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11239 main ()
11241 int i;
11243 return 0;
11245 _ACEOF
11246 rm -f conftest.$ac_objext conftest$ac_exeext
11247 if { (ac_try="$ac_link"
11248 case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11251 esac
11252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11253 $as_echo "$ac_try_echo") >&5
11254 (eval "$ac_link") 2>conftest.er1
11255 ac_status=$?
11256 grep -v '^ *+' conftest.er1 >conftest.err
11257 rm -f conftest.er1
11258 cat conftest.err >&5
11259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } && {
11261 test -z "$ac_c_werror_flag" ||
11262 test ! -s conftest.err
11263 } && test -s conftest$ac_exeext && {
11264 test "$cross_compiling" = yes ||
11265 $as_test_x conftest$ac_exeext
11266 }; then
11268 else
11269 $as_echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11272 gdb_cv_bigtoc=
11275 rm -rf conftest.dSYM
11276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11277 conftest$ac_exeext conftest.$ac_ext
11280 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11281 $as_echo "$gdb_cv_bigtoc" >&6; }
11283 esac
11285 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11286 # used for the tests that follow. We set them back to REAL_CFLAGS and
11287 # REAL_CPPFLAGS later on.
11289 REAL_CPPFLAGS="$CPPFLAGS"
11291 if test "${HAVE_X11}" = "yes"; then
11292 DEFS="$C_SWITCH_X_SITE $DEFS"
11293 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11294 LIBS="$LIBX $LIBS"
11295 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11296 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11298 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11299 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11300 # but it's more convenient here to set LD_RUN_PATH
11301 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11302 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11303 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11304 export LD_RUN_PATH
11307 if test "${opsys}" = "gnu-linux"; then
11308 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11309 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11310 cat >conftest.$ac_ext <<_ACEOF
11311 /* confdefs.h. */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11318 main ()
11320 XOpenDisplay ("foo");
11322 return 0;
11324 _ACEOF
11325 rm -f conftest.$ac_objext conftest$ac_exeext
11326 if { (ac_try="$ac_link"
11327 case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11330 esac
11331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11332 $as_echo "$ac_try_echo") >&5
11333 (eval "$ac_link") 2>conftest.er1
11334 ac_status=$?
11335 grep -v '^ *+' conftest.er1 >conftest.err
11336 rm -f conftest.er1
11337 cat conftest.err >&5
11338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } && {
11340 test -z "$ac_c_werror_flag" ||
11341 test ! -s conftest.err
11342 } && test -s conftest$ac_exeext && {
11343 test "$cross_compiling" = yes ||
11344 $as_test_x conftest$ac_exeext
11345 }; then
11346 xlinux_first_failure=no
11347 else
11348 $as_echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 xlinux_first_failure=yes
11354 rm -rf conftest.dSYM
11355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11356 conftest$ac_exeext conftest.$ac_ext
11357 if test "${xlinux_first_failure}" = "yes"; then
11358 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11359 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11360 OLD_CPPFLAGS="$CPPFLAGS"
11361 OLD_LIBS="$LIBS"
11362 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11363 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11364 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11365 LIBS="$LIBS -b i486-linuxaout"
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h. */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11374 main ()
11376 XOpenDisplay ("foo");
11378 return 0;
11380 _ACEOF
11381 rm -f conftest.$ac_objext conftest$ac_exeext
11382 if { (ac_try="$ac_link"
11383 case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11386 esac
11387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11388 $as_echo "$ac_try_echo") >&5
11389 (eval "$ac_link") 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } && {
11396 test -z "$ac_c_werror_flag" ||
11397 test ! -s conftest.err
11398 } && test -s conftest$ac_exeext && {
11399 test "$cross_compiling" = yes ||
11400 $as_test_x conftest$ac_exeext
11401 }; then
11402 xlinux_second_failure=no
11403 else
11404 $as_echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11407 xlinux_second_failure=yes
11410 rm -rf conftest.dSYM
11411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11412 conftest$ac_exeext conftest.$ac_ext
11413 if test "${xlinux_second_failure}" = "yes"; then
11414 # If we get the same failure with -b, there is no use adding -b.
11415 # So take it out. This plays safe.
11416 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11417 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11418 CPPFLAGS="$OLD_CPPFLAGS"
11419 LIBS="$OLD_LIBS"
11420 { $as_echo "$as_me:$LINENO: result: no" >&5
11421 $as_echo "no" >&6; }
11422 else
11423 { $as_echo "$as_me:$LINENO: result: yes" >&5
11424 $as_echo "yes" >&6; }
11426 else
11427 { $as_echo "$as_me:$LINENO: result: no" >&5
11428 $as_echo "no" >&6; }
11432 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11433 # header files included from there.
11434 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11435 $as_echo_n "checking for Xkb... " >&6; }
11436 cat >conftest.$ac_ext <<_ACEOF
11437 /* confdefs.h. */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 #include <X11/Xlib.h>
11443 #include <X11/XKBlib.h>
11445 main ()
11447 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11449 return 0;
11451 _ACEOF
11452 rm -f conftest.$ac_objext conftest$ac_exeext
11453 if { (ac_try="$ac_link"
11454 case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457 esac
11458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11459 $as_echo "$ac_try_echo") >&5
11460 (eval "$ac_link") 2>conftest.er1
11461 ac_status=$?
11462 grep -v '^ *+' conftest.er1 >conftest.err
11463 rm -f conftest.er1
11464 cat conftest.err >&5
11465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } && {
11467 test -z "$ac_c_werror_flag" ||
11468 test ! -s conftest.err
11469 } && test -s conftest$ac_exeext && {
11470 test "$cross_compiling" = yes ||
11471 $as_test_x conftest$ac_exeext
11472 }; then
11473 emacs_xkb=yes
11474 else
11475 $as_echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11478 emacs_xkb=no
11481 rm -rf conftest.dSYM
11482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11483 conftest$ac_exeext conftest.$ac_ext
11484 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11485 $as_echo "$emacs_xkb" >&6; }
11486 if test $emacs_xkb = yes; then
11488 cat >>confdefs.h <<\_ACEOF
11489 #define HAVE_XKBGETKEYBOARD 1
11490 _ACEOF
11498 for ac_func in XrmSetDatabase XScreenResourceString \
11499 XScreenNumberOfScreen XSetWMProtocols
11501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11502 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11503 $as_echo_n "checking for $ac_func... " >&6; }
11504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11505 $as_echo_n "(cached) " >&6
11506 else
11507 cat >conftest.$ac_ext <<_ACEOF
11508 /* confdefs.h. */
11509 _ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11515 #define $ac_func innocuous_$ac_func
11517 /* System header to define __stub macros and hopefully few prototypes,
11518 which can conflict with char $ac_func (); below.
11519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11520 <limits.h> exists even on freestanding compilers. */
11522 #ifdef __STDC__
11523 # include <limits.h>
11524 #else
11525 # include <assert.h>
11526 #endif
11528 #undef $ac_func
11530 /* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
11533 #ifdef __cplusplus
11534 extern "C"
11535 #endif
11536 char $ac_func ();
11537 /* The GNU C library defines this for functions which it implements
11538 to always fail with ENOSYS. Some functions are actually named
11539 something starting with __ and the normal name is an alias. */
11540 #if defined __stub_$ac_func || defined __stub___$ac_func
11541 choke me
11542 #endif
11545 main ()
11547 return $ac_func ();
11549 return 0;
11551 _ACEOF
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (ac_try="$ac_link"
11554 case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11557 esac
11558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11559 $as_echo "$ac_try_echo") >&5
11560 (eval "$ac_link") 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } && {
11567 test -z "$ac_c_werror_flag" ||
11568 test ! -s conftest.err
11569 } && test -s conftest$ac_exeext && {
11570 test "$cross_compiling" = yes ||
11571 $as_test_x conftest$ac_exeext
11572 }; then
11573 eval "$as_ac_var=yes"
11574 else
11575 $as_echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11578 eval "$as_ac_var=no"
11581 rm -rf conftest.dSYM
11582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11583 conftest$ac_exeext conftest.$ac_ext
11585 ac_res=`eval 'as_val=${'$as_ac_var'}
11586 $as_echo "$as_val"'`
11587 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11588 $as_echo "$ac_res" >&6; }
11589 if test `eval 'as_val=${'$as_ac_var'}
11590 $as_echo "$as_val"'` = yes; then
11591 cat >>confdefs.h <<_ACEOF
11592 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11593 _ACEOF
11596 done
11600 if test "${window_system}" = "x11"; then
11601 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11602 $as_echo_n "checking X11 version 6... " >&6; }
11603 if test "${emacs_cv_x11_version_6+set}" = set; then
11604 $as_echo_n "(cached) " >&6
11605 else
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h. */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 #include <X11/Xlib.h>
11614 main ()
11616 #if XlibSpecificationRelease < 6
11617 fail;
11618 #endif
11621 return 0;
11623 _ACEOF
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (ac_try="$ac_link"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629 esac
11630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11631 $as_echo "$ac_try_echo") >&5
11632 (eval "$ac_link") 2>conftest.er1
11633 ac_status=$?
11634 grep -v '^ *+' conftest.er1 >conftest.err
11635 rm -f conftest.er1
11636 cat conftest.err >&5
11637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } && {
11639 test -z "$ac_c_werror_flag" ||
11640 test ! -s conftest.err
11641 } && test -s conftest$ac_exeext && {
11642 test "$cross_compiling" = yes ||
11643 $as_test_x conftest$ac_exeext
11644 }; then
11645 emacs_cv_x11_version_6=yes
11646 else
11647 $as_echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11650 emacs_cv_x11_version_6=no
11653 rm -rf conftest.dSYM
11654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11655 conftest$ac_exeext conftest.$ac_ext
11658 if test $emacs_cv_x11_version_6 = yes; then
11659 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11660 $as_echo "6 or newer" >&6; }
11662 cat >>confdefs.h <<\_ACEOF
11663 #define HAVE_X11R6 1
11664 _ACEOF
11666 else
11667 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11668 $as_echo "before 6" >&6; }
11673 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11674 HAVE_RSVG=no
11675 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11676 if test "${with_rsvg}" != "no"; then
11677 RSVG_REQUIRED=2.11.0
11678 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11681 succeeded=no
11683 # Extract the first word of "pkg-config", so it can be a program name with args.
11684 set dummy pkg-config; ac_word=$2
11685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11686 $as_echo_n "checking for $ac_word... " >&6; }
11687 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11688 $as_echo_n "(cached) " >&6
11689 else
11690 case $PKG_CONFIG in
11691 [\\/]* | ?:[\\/]*)
11692 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696 for as_dir in $PATH
11698 IFS=$as_save_IFS
11699 test -z "$as_dir" && as_dir=.
11700 for ac_exec_ext in '' $ac_executable_extensions; do
11701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11702 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 break 2
11706 done
11707 done
11708 IFS=$as_save_IFS
11710 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11712 esac
11714 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11715 if test -n "$PKG_CONFIG"; then
11716 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11717 $as_echo "$PKG_CONFIG" >&6; }
11718 else
11719 { $as_echo "$as_me:$LINENO: result: no" >&5
11720 $as_echo "no" >&6; }
11725 if test "$PKG_CONFIG" = "no" ; then
11727 else
11728 PKG_CONFIG_MIN_VERSION=0.9.0
11729 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11730 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11731 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11733 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11734 { $as_echo "$as_me:$LINENO: result: yes" >&5
11735 $as_echo "yes" >&6; }
11736 succeeded=yes
11738 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11739 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11740 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11741 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11742 $as_echo "$RSVG_CFLAGS" >&6; }
11744 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11745 $as_echo_n "checking RSVG_LIBS... " >&6; }
11746 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11747 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11748 $as_echo "$RSVG_LIBS" >&6; }
11749 else
11750 { $as_echo "$as_me:$LINENO: result: no" >&5
11751 $as_echo "no" >&6; }
11752 RSVG_CFLAGS=""
11753 RSVG_LIBS=""
11754 ## If we have a custom action on failure, don't print errors, but
11755 ## do set a variable so people can do so.
11756 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11762 else
11763 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11764 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11768 if test $succeeded = yes; then
11770 else
11777 if test ".${RSVG_CFLAGS}" != "."; then
11778 HAVE_RSVG=yes
11780 cat >>confdefs.h <<\_ACEOF
11781 #define HAVE_RSVG 1
11782 _ACEOF
11784 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11785 LIBS="$RSVG_LIBS $LIBS"
11791 HAVE_GTK=no
11792 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11793 GLIB_REQUIRED=2.6
11794 GTK_REQUIRED=2.6
11795 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11798 succeeded=no
11800 # Extract the first word of "pkg-config", so it can be a program name with args.
11801 set dummy pkg-config; ac_word=$2
11802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11805 $as_echo_n "(cached) " >&6
11806 else
11807 case $PKG_CONFIG in
11808 [\\/]* | ?:[\\/]*)
11809 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $PATH
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11819 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11821 break 2
11823 done
11824 done
11825 IFS=$as_save_IFS
11827 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11829 esac
11831 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11832 if test -n "$PKG_CONFIG"; then
11833 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11834 $as_echo "$PKG_CONFIG" >&6; }
11835 else
11836 { $as_echo "$as_me:$LINENO: result: no" >&5
11837 $as_echo "no" >&6; }
11842 if test "$PKG_CONFIG" = "no" ; then
11843 pkg_check_gtk=no
11844 else
11845 PKG_CONFIG_MIN_VERSION=0.9.0
11846 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11847 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11848 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11850 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11851 { $as_echo "$as_me:$LINENO: result: yes" >&5
11852 $as_echo "yes" >&6; }
11853 succeeded=yes
11855 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11856 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11857 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11858 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11859 $as_echo "$GTK_CFLAGS" >&6; }
11861 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11862 $as_echo_n "checking GTK_LIBS... " >&6; }
11863 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11864 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11865 $as_echo "$GTK_LIBS" >&6; }
11866 else
11867 { $as_echo "$as_me:$LINENO: result: no" >&5
11868 $as_echo "no" >&6; }
11869 GTK_CFLAGS=""
11870 GTK_LIBS=""
11871 ## If we have a custom action on failure, don't print errors, but
11872 ## do set a variable so people can do so.
11873 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11879 else
11880 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11881 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11885 if test $succeeded = yes; then
11886 pkg_check_gtk=yes
11887 else
11888 pkg_check_gtk=no
11891 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11892 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11893 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11894 { (exit 1); exit 1; }; }
11899 GTK_OBJ=
11900 if test x"$pkg_check_gtk" = xyes; then
11904 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11905 CFLAGS="$CFLAGS $GTK_CFLAGS"
11906 LIBS="$GTK_LIBS $LIBS"
11907 GTK_COMPILES=no
11909 for ac_func in gtk_main
11911 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11912 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11913 $as_echo_n "checking for $ac_func... " >&6; }
11914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11915 $as_echo_n "(cached) " >&6
11916 else
11917 cat >conftest.$ac_ext <<_ACEOF
11918 /* confdefs.h. */
11919 _ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11925 #define $ac_func innocuous_$ac_func
11927 /* System header to define __stub macros and hopefully few prototypes,
11928 which can conflict with char $ac_func (); below.
11929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11930 <limits.h> exists even on freestanding compilers. */
11932 #ifdef __STDC__
11933 # include <limits.h>
11934 #else
11935 # include <assert.h>
11936 #endif
11938 #undef $ac_func
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11943 #ifdef __cplusplus
11944 extern "C"
11945 #endif
11946 char $ac_func ();
11947 /* The GNU C library defines this for functions which it implements
11948 to always fail with ENOSYS. Some functions are actually named
11949 something starting with __ and the normal name is an alias. */
11950 #if defined __stub_$ac_func || defined __stub___$ac_func
11951 choke me
11952 #endif
11955 main ()
11957 return $ac_func ();
11959 return 0;
11961 _ACEOF
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (ac_try="$ac_link"
11964 case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11967 esac
11968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11969 $as_echo "$ac_try_echo") >&5
11970 (eval "$ac_link") 2>conftest.er1
11971 ac_status=$?
11972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
11975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } && {
11977 test -z "$ac_c_werror_flag" ||
11978 test ! -s conftest.err
11979 } && test -s conftest$ac_exeext && {
11980 test "$cross_compiling" = yes ||
11981 $as_test_x conftest$ac_exeext
11982 }; then
11983 eval "$as_ac_var=yes"
11984 else
11985 $as_echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 eval "$as_ac_var=no"
11991 rm -rf conftest.dSYM
11992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11993 conftest$ac_exeext conftest.$ac_ext
11995 ac_res=`eval 'as_val=${'$as_ac_var'}
11996 $as_echo "$as_val"'`
11997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11998 $as_echo "$ac_res" >&6; }
11999 if test `eval 'as_val=${'$as_ac_var'}
12000 $as_echo "$as_val"'` = yes; then
12001 cat >>confdefs.h <<_ACEOF
12002 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12003 _ACEOF
12004 GTK_COMPILES=yes
12006 done
12008 if test "${GTK_COMPILES}" != "yes"; then
12009 if test "$USE_X_TOOLKIT" != "maybe"; then
12010 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12011 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12012 { (exit 1); exit 1; }; };
12014 else
12015 HAVE_GTK=yes
12017 cat >>confdefs.h <<\_ACEOF
12018 #define USE_GTK 1
12019 _ACEOF
12021 GTK_OBJ=gtkutil.o
12022 USE_X_TOOLKIT=none
12023 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12025 else
12026 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12027 closing open displays. This is no problem if you just use
12028 one display, but if you use more than one and close one of them
12029 Emacs may crash." >&5
12030 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12031 closing open displays. This is no problem if you just use
12032 one display, but if you use more than one and close one of them
12033 Emacs may crash." >&2;}
12034 sleep 3
12042 if test "${HAVE_GTK}" = "yes"; then
12044 if test "$with_toolkit_scroll_bars" != no; then
12045 with_toolkit_scroll_bars=yes
12048 HAVE_GTK_MULTIDISPLAY=no
12050 for ac_func in gdk_display_open
12052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12053 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12054 $as_echo_n "checking for $ac_func... " >&6; }
12055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12056 $as_echo_n "(cached) " >&6
12057 else
12058 cat >conftest.$ac_ext <<_ACEOF
12059 /* confdefs.h. */
12060 _ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12066 #define $ac_func innocuous_$ac_func
12068 /* System header to define __stub macros and hopefully few prototypes,
12069 which can conflict with char $ac_func (); below.
12070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12071 <limits.h> exists even on freestanding compilers. */
12073 #ifdef __STDC__
12074 # include <limits.h>
12075 #else
12076 # include <assert.h>
12077 #endif
12079 #undef $ac_func
12081 /* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
12084 #ifdef __cplusplus
12085 extern "C"
12086 #endif
12087 char $ac_func ();
12088 /* The GNU C library defines this for functions which it implements
12089 to always fail with ENOSYS. Some functions are actually named
12090 something starting with __ and the normal name is an alias. */
12091 #if defined __stub_$ac_func || defined __stub___$ac_func
12092 choke me
12093 #endif
12096 main ()
12098 return $ac_func ();
12100 return 0;
12102 _ACEOF
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (ac_try="$ac_link"
12105 case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12108 esac
12109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12110 $as_echo "$ac_try_echo") >&5
12111 (eval "$ac_link") 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } && {
12118 test -z "$ac_c_werror_flag" ||
12119 test ! -s conftest.err
12120 } && test -s conftest$ac_exeext && {
12121 test "$cross_compiling" = yes ||
12122 $as_test_x conftest$ac_exeext
12123 }; then
12124 eval "$as_ac_var=yes"
12125 else
12126 $as_echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 eval "$as_ac_var=no"
12132 rm -rf conftest.dSYM
12133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12134 conftest$ac_exeext conftest.$ac_ext
12136 ac_res=`eval 'as_val=${'$as_ac_var'}
12137 $as_echo "$as_val"'`
12138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12139 $as_echo "$ac_res" >&6; }
12140 if test `eval 'as_val=${'$as_ac_var'}
12141 $as_echo "$as_val"'` = yes; then
12142 cat >>confdefs.h <<_ACEOF
12143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12144 _ACEOF
12145 HAVE_GTK_MULTIDISPLAY=yes
12147 done
12149 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12151 cat >>confdefs.h <<\_ACEOF
12152 #define HAVE_GTK_MULTIDISPLAY 1
12153 _ACEOF
12157 HAVE_GTK_FILE_SELECTION=no
12158 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12159 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12160 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12161 $as_echo_n "(cached) " >&6
12162 else
12163 cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h. */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169 $ac_includes_default
12170 #include <gtk/gtk.h>
12173 main ()
12175 #ifndef GTK_TYPE_FILE_SELECTION
12176 (void) GTK_TYPE_FILE_SELECTION;
12177 #endif
12180 return 0;
12182 _ACEOF
12183 rm -f conftest.$ac_objext
12184 if { (ac_try="$ac_compile"
12185 case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12188 esac
12189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12190 $as_echo "$ac_try_echo") >&5
12191 (eval "$ac_compile") 2>conftest.er1
12192 ac_status=$?
12193 grep -v '^ *+' conftest.er1 >conftest.err
12194 rm -f conftest.er1
12195 cat conftest.err >&5
12196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } && {
12198 test -z "$ac_c_werror_flag" ||
12199 test ! -s conftest.err
12200 } && test -s conftest.$ac_objext; then
12201 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12202 else
12203 $as_echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.$ac_ext >&5
12206 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12211 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12212 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12213 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12214 HAVE_GTK_FILE_SELECTION=yes
12215 else
12216 HAVE_GTK_FILE_SELECTION=no
12219 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12221 for ac_func in gtk_file_selection_new
12223 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12224 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12225 $as_echo_n "checking for $ac_func... " >&6; }
12226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12227 $as_echo_n "(cached) " >&6
12228 else
12229 cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h. */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12237 #define $ac_func innocuous_$ac_func
12239 /* System header to define __stub macros and hopefully few prototypes,
12240 which can conflict with char $ac_func (); below.
12241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242 <limits.h> exists even on freestanding compilers. */
12244 #ifdef __STDC__
12245 # include <limits.h>
12246 #else
12247 # include <assert.h>
12248 #endif
12250 #undef $ac_func
12252 /* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
12255 #ifdef __cplusplus
12256 extern "C"
12257 #endif
12258 char $ac_func ();
12259 /* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262 #if defined __stub_$ac_func || defined __stub___$ac_func
12263 choke me
12264 #endif
12267 main ()
12269 return $ac_func ();
12271 return 0;
12273 _ACEOF
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279 esac
12280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12281 $as_echo "$ac_try_echo") >&5
12282 (eval "$ac_link") 2>conftest.er1
12283 ac_status=$?
12284 grep -v '^ *+' conftest.er1 >conftest.err
12285 rm -f conftest.er1
12286 cat conftest.err >&5
12287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && {
12289 test -z "$ac_c_werror_flag" ||
12290 test ! -s conftest.err
12291 } && test -s conftest$ac_exeext && {
12292 test "$cross_compiling" = yes ||
12293 $as_test_x conftest$ac_exeext
12294 }; then
12295 eval "$as_ac_var=yes"
12296 else
12297 $as_echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 eval "$as_ac_var=no"
12303 rm -rf conftest.dSYM
12304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12305 conftest$ac_exeext conftest.$ac_ext
12307 ac_res=`eval 'as_val=${'$as_ac_var'}
12308 $as_echo "$as_val"'`
12309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12310 $as_echo "$ac_res" >&6; }
12311 if test `eval 'as_val=${'$as_ac_var'}
12312 $as_echo "$as_val"'` = yes; then
12313 cat >>confdefs.h <<_ACEOF
12314 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12315 _ACEOF
12316 HAVE_GTK_FILE_SELECTION=yes
12317 else
12318 HAVE_GTK_FILE_SELECTION=no
12320 done
12324 HAVE_GTK_FILE_CHOOSER=no
12325 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12326 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12327 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12328 $as_echo_n "(cached) " >&6
12329 else
12330 cat >conftest.$ac_ext <<_ACEOF
12331 /* confdefs.h. */
12332 _ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12336 $ac_includes_default
12337 #include <gtk/gtk.h>
12340 main ()
12342 #ifndef GTK_TYPE_FILE_CHOOSER
12343 (void) GTK_TYPE_FILE_CHOOSER;
12344 #endif
12347 return 0;
12349 _ACEOF
12350 rm -f conftest.$ac_objext
12351 if { (ac_try="$ac_compile"
12352 case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12355 esac
12356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12357 $as_echo "$ac_try_echo") >&5
12358 (eval "$ac_compile") 2>conftest.er1
12359 ac_status=$?
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
12363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } && {
12365 test -z "$ac_c_werror_flag" ||
12366 test ! -s conftest.err
12367 } && test -s conftest.$ac_objext; then
12368 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12369 else
12370 $as_echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12373 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12379 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12380 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12381 HAVE_GTK_FILE_CHOOSER=yes
12382 else
12383 HAVE_GTK_FILE_CHOOSER=no
12386 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12388 for ac_func in gtk_file_chooser_dialog_new
12390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12391 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12392 $as_echo_n "checking for $ac_func... " >&6; }
12393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12394 $as_echo_n "(cached) " >&6
12395 else
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h. */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12404 #define $ac_func innocuous_$ac_func
12406 /* System header to define __stub macros and hopefully few prototypes,
12407 which can conflict with char $ac_func (); below.
12408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12409 <limits.h> exists even on freestanding compilers. */
12411 #ifdef __STDC__
12412 # include <limits.h>
12413 #else
12414 # include <assert.h>
12415 #endif
12417 #undef $ac_func
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12422 #ifdef __cplusplus
12423 extern "C"
12424 #endif
12425 char $ac_func ();
12426 /* The GNU C library defines this for functions which it implements
12427 to always fail with ENOSYS. Some functions are actually named
12428 something starting with __ and the normal name is an alias. */
12429 #if defined __stub_$ac_func || defined __stub___$ac_func
12430 choke me
12431 #endif
12434 main ()
12436 return $ac_func ();
12438 return 0;
12440 _ACEOF
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (ac_try="$ac_link"
12443 case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446 esac
12447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12448 $as_echo "$ac_try_echo") >&5
12449 (eval "$ac_link") 2>conftest.er1
12450 ac_status=$?
12451 grep -v '^ *+' conftest.er1 >conftest.err
12452 rm -f conftest.er1
12453 cat conftest.err >&5
12454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } && {
12456 test -z "$ac_c_werror_flag" ||
12457 test ! -s conftest.err
12458 } && test -s conftest$ac_exeext && {
12459 test "$cross_compiling" = yes ||
12460 $as_test_x conftest$ac_exeext
12461 }; then
12462 eval "$as_ac_var=yes"
12463 else
12464 $as_echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12467 eval "$as_ac_var=no"
12470 rm -rf conftest.dSYM
12471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12472 conftest$ac_exeext conftest.$ac_ext
12474 ac_res=`eval 'as_val=${'$as_ac_var'}
12475 $as_echo "$as_val"'`
12476 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12477 $as_echo "$ac_res" >&6; }
12478 if test `eval 'as_val=${'$as_ac_var'}
12479 $as_echo "$as_val"'` = yes; then
12480 cat >>confdefs.h <<_ACEOF
12481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12482 _ACEOF
12483 HAVE_GTK_FILE_CHOOSER=yes
12484 else
12485 HAVE_GTK_FILE_CHOOSER=no
12487 done
12491 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12492 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12494 cat >>confdefs.h <<\_ACEOF
12495 #define HAVE_GTK_FILE_BOTH 1
12496 _ACEOF
12500 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12501 HAVE_GTK_AND_PTHREAD=no
12503 for ac_header in pthread.h
12505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12508 $as_echo_n "checking for $ac_header... " >&6; }
12509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12510 $as_echo_n "(cached) " >&6
12512 ac_res=`eval 'as_val=${'$as_ac_Header'}
12513 $as_echo "$as_val"'`
12514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12515 $as_echo "$ac_res" >&6; }
12516 else
12517 # Is the header compilable?
12518 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12519 $as_echo_n "checking $ac_header usability... " >&6; }
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h. */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526 $ac_includes_default
12527 #include <$ac_header>
12528 _ACEOF
12529 rm -f conftest.$ac_objext
12530 if { (ac_try="$ac_compile"
12531 case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534 esac
12535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12536 $as_echo "$ac_try_echo") >&5
12537 (eval "$ac_compile") 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } && {
12544 test -z "$ac_c_werror_flag" ||
12545 test ! -s conftest.err
12546 } && test -s conftest.$ac_objext; then
12547 ac_header_compiler=yes
12548 else
12549 $as_echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 ac_header_compiler=no
12555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12557 $as_echo "$ac_header_compiler" >&6; }
12559 # Is the header present?
12560 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12561 $as_echo_n "checking $ac_header presence... " >&6; }
12562 cat >conftest.$ac_ext <<_ACEOF
12563 /* confdefs.h. */
12564 _ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12568 #include <$ac_header>
12569 _ACEOF
12570 if { (ac_try="$ac_cpp conftest.$ac_ext"
12571 case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12574 esac
12575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12576 $as_echo "$ac_try_echo") >&5
12577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12578 ac_status=$?
12579 grep -v '^ *+' conftest.er1 >conftest.err
12580 rm -f conftest.er1
12581 cat conftest.err >&5
12582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } >/dev/null && {
12584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12585 test ! -s conftest.err
12586 }; then
12587 ac_header_preproc=yes
12588 else
12589 $as_echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12592 ac_header_preproc=no
12595 rm -f conftest.err conftest.$ac_ext
12596 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12597 $as_echo "$ac_header_preproc" >&6; }
12599 # So? What about this header?
12600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12601 yes:no: )
12602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12603 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12605 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12606 ac_header_preproc=yes
12608 no:yes:* )
12609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12610 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12612 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12614 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12616 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12620 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12623 esac
12624 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12625 $as_echo_n "checking for $ac_header... " >&6; }
12626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12627 $as_echo_n "(cached) " >&6
12628 else
12629 eval "$as_ac_Header=\$ac_header_preproc"
12631 ac_res=`eval 'as_val=${'$as_ac_Header'}
12632 $as_echo "$as_val"'`
12633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12634 $as_echo "$ac_res" >&6; }
12637 if test `eval 'as_val=${'$as_ac_Header'}
12638 $as_echo "$as_val"'` = yes; then
12639 cat >>confdefs.h <<_ACEOF
12640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12641 _ACEOF
12645 done
12647 if test "$ac_cv_header_pthread_h"; then
12648 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12649 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12650 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12651 $as_echo_n "(cached) " >&6
12652 else
12653 ac_check_lib_save_LIBS=$LIBS
12654 LIBS="-lpthread $LIBS"
12655 cat >conftest.$ac_ext <<_ACEOF
12656 /* confdefs.h. */
12657 _ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h. */
12662 /* Override any GCC internal prototype to avoid an error.
12663 Use char because int might match the return type of a GCC
12664 builtin and then its argument prototype would still apply. */
12665 #ifdef __cplusplus
12666 extern "C"
12667 #endif
12668 char pthread_self ();
12670 main ()
12672 return pthread_self ();
12674 return 0;
12676 _ACEOF
12677 rm -f conftest.$ac_objext conftest$ac_exeext
12678 if { (ac_try="$ac_link"
12679 case "(($ac_try" in
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12682 esac
12683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12684 $as_echo "$ac_try_echo") >&5
12685 (eval "$ac_link") 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && {
12692 test -z "$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12694 } && test -s conftest$ac_exeext && {
12695 test "$cross_compiling" = yes ||
12696 $as_test_x conftest$ac_exeext
12697 }; then
12698 ac_cv_lib_pthread_pthread_self=yes
12699 else
12700 $as_echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 ac_cv_lib_pthread_pthread_self=no
12706 rm -rf conftest.dSYM
12707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12708 conftest$ac_exeext conftest.$ac_ext
12709 LIBS=$ac_check_lib_save_LIBS
12711 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12712 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12713 if test $ac_cv_lib_pthread_pthread_self = yes; then
12714 HAVE_GTK_AND_PTHREAD=yes
12718 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12719 case "${canonical}" in
12720 *-hpux*) ;;
12721 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12722 esac
12724 cat >>confdefs.h <<\_ACEOF
12725 #define HAVE_GTK_AND_PTHREAD 1
12726 _ACEOF
12732 HAVE_DBUS=no
12733 DBUS_OBJ=
12734 if test "${with_dbus}" = "yes"; then
12736 succeeded=no
12738 # Extract the first word of "pkg-config", so it can be a program name with args.
12739 set dummy pkg-config; ac_word=$2
12740 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12741 $as_echo_n "checking for $ac_word... " >&6; }
12742 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12743 $as_echo_n "(cached) " >&6
12744 else
12745 case $PKG_CONFIG in
12746 [\\/]* | ?:[\\/]*)
12747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12751 for as_dir in $PATH
12753 IFS=$as_save_IFS
12754 test -z "$as_dir" && as_dir=.
12755 for ac_exec_ext in '' $ac_executable_extensions; do
12756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12757 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12759 break 2
12761 done
12762 done
12763 IFS=$as_save_IFS
12765 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12767 esac
12769 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12770 if test -n "$PKG_CONFIG"; then
12771 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12772 $as_echo "$PKG_CONFIG" >&6; }
12773 else
12774 { $as_echo "$as_me:$LINENO: result: no" >&5
12775 $as_echo "no" >&6; }
12780 if test "$PKG_CONFIG" = "no" ; then
12781 HAVE_DBUS=no
12782 else
12783 PKG_CONFIG_MIN_VERSION=0.9.0
12784 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12785 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12786 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12788 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12789 { $as_echo "$as_me:$LINENO: result: yes" >&5
12790 $as_echo "yes" >&6; }
12791 succeeded=yes
12793 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12794 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12795 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12796 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12797 $as_echo "$DBUS_CFLAGS" >&6; }
12799 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12800 $as_echo_n "checking DBUS_LIBS... " >&6; }
12801 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12802 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12803 $as_echo "$DBUS_LIBS" >&6; }
12804 else
12805 { $as_echo "$as_me:$LINENO: result: no" >&5
12806 $as_echo "no" >&6; }
12807 DBUS_CFLAGS=""
12808 DBUS_LIBS=""
12809 ## If we have a custom action on failure, don't print errors, but
12810 ## do set a variable so people can do so.
12811 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12817 else
12818 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12819 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12823 if test $succeeded = yes; then
12824 HAVE_DBUS=yes
12825 else
12826 HAVE_DBUS=no
12829 if test "$HAVE_DBUS" = yes; then
12830 LIBS="$LIBS $DBUS_LIBS"
12832 cat >>confdefs.h <<\_ACEOF
12833 #define HAVE_DBUS 1
12834 _ACEOF
12837 for ac_func in dbus_watch_get_unix_fd
12839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12840 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12841 $as_echo_n "checking for $ac_func... " >&6; }
12842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12843 $as_echo_n "(cached) " >&6
12844 else
12845 cat >conftest.$ac_ext <<_ACEOF
12846 /* confdefs.h. */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12853 #define $ac_func innocuous_$ac_func
12855 /* System header to define __stub macros and hopefully few prototypes,
12856 which can conflict with char $ac_func (); below.
12857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12858 <limits.h> exists even on freestanding compilers. */
12860 #ifdef __STDC__
12861 # include <limits.h>
12862 #else
12863 # include <assert.h>
12864 #endif
12866 #undef $ac_func
12868 /* Override any GCC internal prototype to avoid an error.
12869 Use char because int might match the return type of a GCC
12870 builtin and then its argument prototype would still apply. */
12871 #ifdef __cplusplus
12872 extern "C"
12873 #endif
12874 char $ac_func ();
12875 /* The GNU C library defines this for functions which it implements
12876 to always fail with ENOSYS. Some functions are actually named
12877 something starting with __ and the normal name is an alias. */
12878 #if defined __stub_$ac_func || defined __stub___$ac_func
12879 choke me
12880 #endif
12883 main ()
12885 return $ac_func ();
12887 return 0;
12889 _ACEOF
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (ac_try="$ac_link"
12892 case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895 esac
12896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12897 $as_echo "$ac_try_echo") >&5
12898 (eval "$ac_link") 2>conftest.er1
12899 ac_status=$?
12900 grep -v '^ *+' conftest.er1 >conftest.err
12901 rm -f conftest.er1
12902 cat conftest.err >&5
12903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } && {
12905 test -z "$ac_c_werror_flag" ||
12906 test ! -s conftest.err
12907 } && test -s conftest$ac_exeext && {
12908 test "$cross_compiling" = yes ||
12909 $as_test_x conftest$ac_exeext
12910 }; then
12911 eval "$as_ac_var=yes"
12912 else
12913 $as_echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 eval "$as_ac_var=no"
12919 rm -rf conftest.dSYM
12920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12921 conftest$ac_exeext conftest.$ac_ext
12923 ac_res=`eval 'as_val=${'$as_ac_var'}
12924 $as_echo "$as_val"'`
12925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12926 $as_echo "$ac_res" >&6; }
12927 if test `eval 'as_val=${'$as_ac_var'}
12928 $as_echo "$as_val"'` = yes; then
12929 cat >>confdefs.h <<_ACEOF
12930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12931 _ACEOF
12934 done
12936 DBUS_OBJ=dbusbind.o
12941 HAVE_GCONF=no
12942 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12944 succeeded=no
12946 # Extract the first word of "pkg-config", so it can be a program name with args.
12947 set dummy pkg-config; ac_word=$2
12948 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12949 $as_echo_n "checking for $ac_word... " >&6; }
12950 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12951 $as_echo_n "(cached) " >&6
12952 else
12953 case $PKG_CONFIG in
12954 [\\/]* | ?:[\\/]*)
12955 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12959 for as_dir in $PATH
12961 IFS=$as_save_IFS
12962 test -z "$as_dir" && as_dir=.
12963 for ac_exec_ext in '' $ac_executable_extensions; do
12964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12965 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12966 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12967 break 2
12969 done
12970 done
12971 IFS=$as_save_IFS
12973 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12975 esac
12977 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12978 if test -n "$PKG_CONFIG"; then
12979 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12980 $as_echo "$PKG_CONFIG" >&6; }
12981 else
12982 { $as_echo "$as_me:$LINENO: result: no" >&5
12983 $as_echo "no" >&6; }
12988 if test "$PKG_CONFIG" = "no" ; then
12989 HAVE_GCONF=no
12990 else
12991 PKG_CONFIG_MIN_VERSION=0.9.0
12992 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12993 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12994 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12996 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12997 { $as_echo "$as_me:$LINENO: result: yes" >&5
12998 $as_echo "yes" >&6; }
12999 succeeded=yes
13001 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
13002 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
13003 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13004 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
13005 $as_echo "$GCONF_CFLAGS" >&6; }
13007 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
13008 $as_echo_n "checking GCONF_LIBS... " >&6; }
13009 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13010 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
13011 $as_echo "$GCONF_LIBS" >&6; }
13012 else
13013 { $as_echo "$as_me:$LINENO: result: no" >&5
13014 $as_echo "no" >&6; }
13015 GCONF_CFLAGS=""
13016 GCONF_LIBS=""
13017 ## If we have a custom action on failure, don't print errors, but
13018 ## do set a variable so people can do so.
13019 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13025 else
13026 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13027 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13031 if test $succeeded = yes; then
13032 HAVE_GCONF=yes
13033 else
13034 HAVE_GCONF=no
13037 if test "$HAVE_GCONF" = yes; then
13039 cat >>confdefs.h <<\_ACEOF
13040 #define HAVE_GCONF 1
13041 _ACEOF
13046 HAVE_LIBSELINUX=no
13047 LIBSELINUX_LIBS=
13048 if test "${with_selinux}" = "yes"; then
13049 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13050 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13051 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13052 $as_echo_n "(cached) " >&6
13053 else
13054 ac_check_lib_save_LIBS=$LIBS
13055 LIBS="-lselinux $LIBS"
13056 cat >conftest.$ac_ext <<_ACEOF
13057 /* confdefs.h. */
13058 _ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13063 /* Override any GCC internal prototype to avoid an error.
13064 Use char because int might match the return type of a GCC
13065 builtin and then its argument prototype would still apply. */
13066 #ifdef __cplusplus
13067 extern "C"
13068 #endif
13069 char lgetfilecon ();
13071 main ()
13073 return lgetfilecon ();
13075 return 0;
13077 _ACEOF
13078 rm -f conftest.$ac_objext conftest$ac_exeext
13079 if { (ac_try="$ac_link"
13080 case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13083 esac
13084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13085 $as_echo "$ac_try_echo") >&5
13086 (eval "$ac_link") 2>conftest.er1
13087 ac_status=$?
13088 grep -v '^ *+' conftest.er1 >conftest.err
13089 rm -f conftest.er1
13090 cat conftest.err >&5
13091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } && {
13093 test -z "$ac_c_werror_flag" ||
13094 test ! -s conftest.err
13095 } && test -s conftest$ac_exeext && {
13096 test "$cross_compiling" = yes ||
13097 $as_test_x conftest$ac_exeext
13098 }; then
13099 ac_cv_lib_selinux_lgetfilecon=yes
13100 else
13101 $as_echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13104 ac_cv_lib_selinux_lgetfilecon=no
13107 rm -rf conftest.dSYM
13108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13109 conftest$ac_exeext conftest.$ac_ext
13110 LIBS=$ac_check_lib_save_LIBS
13112 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13113 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13114 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13115 HAVE_LIBSELINUX=yes
13116 else
13117 HAVE_LIBSELINUX=no
13120 if test "$HAVE_LIBSELINUX" = yes; then
13122 cat >>confdefs.h <<\_ACEOF
13123 #define HAVE_LIBSELINUX 1
13124 _ACEOF
13126 LIBSELINUX_LIBS=-lselinux
13131 HAVE_XAW3D=no
13132 LUCID_LIBW=
13133 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13134 if test "$with_xaw3d" != no; then
13135 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13136 $as_echo_n "checking for xaw3d... " >&6; }
13137 if test "${emacs_cv_xaw3d+set}" = set; then
13138 $as_echo_n "(cached) " >&6
13139 else
13140 cat >conftest.$ac_ext <<_ACEOF
13141 /* confdefs.h. */
13142 _ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13147 #include <X11/Intrinsic.h>
13148 #include <X11/Xaw3d/Simple.h>
13150 main ()
13154 return 0;
13156 _ACEOF
13157 rm -f conftest.$ac_objext conftest$ac_exeext
13158 if { (ac_try="$ac_link"
13159 case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13162 esac
13163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13164 $as_echo "$ac_try_echo") >&5
13165 (eval "$ac_link") 2>conftest.er1
13166 ac_status=$?
13167 grep -v '^ *+' conftest.er1 >conftest.err
13168 rm -f conftest.er1
13169 cat conftest.err >&5
13170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } && {
13172 test -z "$ac_c_werror_flag" ||
13173 test ! -s conftest.err
13174 } && test -s conftest$ac_exeext && {
13175 test "$cross_compiling" = yes ||
13176 $as_test_x conftest$ac_exeext
13177 }; then
13178 emacs_cv_xaw3d=yes
13179 else
13180 $as_echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13183 emacs_cv_xaw3d=no
13186 rm -rf conftest.dSYM
13187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13188 conftest$ac_exeext conftest.$ac_ext
13191 else
13192 emacs_cv_xaw3d=no
13194 if test $emacs_cv_xaw3d = yes; then
13195 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13196 $as_echo "yes; using Lucid toolkit" >&6; }
13197 USE_X_TOOLKIT=LUCID
13198 HAVE_XAW3D=yes
13199 LUCID_LIBW=-lXaw3d
13201 cat >>confdefs.h <<\_ACEOF
13202 #define HAVE_XAW3D 1
13203 _ACEOF
13205 else
13206 { $as_echo "$as_me:$LINENO: result: no" >&5
13207 $as_echo "no" >&6; }
13208 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13209 $as_echo_n "checking for libXaw... " >&6; }
13210 if test "${emacs_cv_xaw+set}" = set; then
13211 $as_echo_n "(cached) " >&6
13212 else
13213 cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h. */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13220 #include <X11/Intrinsic.h>
13221 #include <X11/Xaw/Simple.h>
13223 main ()
13227 return 0;
13229 _ACEOF
13230 rm -f conftest.$ac_objext conftest$ac_exeext
13231 if { (ac_try="$ac_link"
13232 case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235 esac
13236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13237 $as_echo "$ac_try_echo") >&5
13238 (eval "$ac_link") 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } && {
13245 test -z "$ac_c_werror_flag" ||
13246 test ! -s conftest.err
13247 } && test -s conftest$ac_exeext && {
13248 test "$cross_compiling" = yes ||
13249 $as_test_x conftest$ac_exeext
13250 }; then
13251 emacs_cv_xaw=yes
13252 else
13253 $as_echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 emacs_cv_xaw=no
13259 rm -rf conftest.dSYM
13260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13261 conftest$ac_exeext conftest.$ac_ext
13264 if test $emacs_cv_xaw = yes; then
13265 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13266 $as_echo "yes; using Lucid toolkit" >&6; }
13267 USE_X_TOOLKIT=LUCID
13268 LUCID_LIBW=-lXaw
13269 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13270 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13271 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13272 { (exit 1); exit 1; }; }
13273 else
13274 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13275 $as_echo "no; do not use toolkit by default" >&6; }
13276 USE_X_TOOLKIT=none
13281 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13283 LIBXTR6=
13284 if test "${USE_X_TOOLKIT}" != "none"; then
13285 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13286 $as_echo_n "checking X11 toolkit version... " >&6; }
13287 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13288 $as_echo_n "(cached) " >&6
13289 else
13290 cat >conftest.$ac_ext <<_ACEOF
13291 /* confdefs.h. */
13292 _ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h. */
13296 #include <X11/Intrinsic.h>
13298 main ()
13300 #if XtSpecificationRelease < 6
13301 fail;
13302 #endif
13305 return 0;
13307 _ACEOF
13308 rm -f conftest.$ac_objext conftest$ac_exeext
13309 if { (ac_try="$ac_link"
13310 case "(($ac_try" in
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13313 esac
13314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13315 $as_echo "$ac_try_echo") >&5
13316 (eval "$ac_link") 2>conftest.er1
13317 ac_status=$?
13318 grep -v '^ *+' conftest.er1 >conftest.err
13319 rm -f conftest.er1
13320 cat conftest.err >&5
13321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } && {
13323 test -z "$ac_c_werror_flag" ||
13324 test ! -s conftest.err
13325 } && test -s conftest$ac_exeext && {
13326 test "$cross_compiling" = yes ||
13327 $as_test_x conftest$ac_exeext
13328 }; then
13329 emacs_cv_x11_toolkit_version_6=yes
13330 else
13331 $as_echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13334 emacs_cv_x11_toolkit_version_6=no
13337 rm -rf conftest.dSYM
13338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13339 conftest$ac_exeext conftest.$ac_ext
13342 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13343 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13344 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13345 $as_echo "6 or newer" >&6; }
13347 cat >>confdefs.h <<\_ACEOF
13348 #define HAVE_X11XTR6 1
13349 _ACEOF
13351 LIBXTR6="-lSM -lICE"
13352 case "$opsys" in
13353 ## Use libw.a along with X11R6 Xt.
13354 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13355 esac
13356 else
13357 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13358 $as_echo "before 6" >&6; }
13361 OLDLIBS="$LIBS"
13362 if test x$HAVE_X11XTR6 = xyes; then
13363 LIBS="-lXt -lSM -lICE $LIBS"
13364 else
13365 LIBS="-lXt $LIBS"
13368 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13369 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13370 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13371 $as_echo_n "(cached) " >&6
13372 else
13373 ac_check_lib_save_LIBS=$LIBS
13374 LIBS="-lXmu $LIBS"
13375 cat >conftest.$ac_ext <<_ACEOF
13376 /* confdefs.h. */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13382 /* Override any GCC internal prototype to avoid an error.
13383 Use char because int might match the return type of a GCC
13384 builtin and then its argument prototype would still apply. */
13385 #ifdef __cplusplus
13386 extern "C"
13387 #endif
13388 char XmuConvertStandardSelection ();
13390 main ()
13392 return XmuConvertStandardSelection ();
13394 return 0;
13396 _ACEOF
13397 rm -f conftest.$ac_objext conftest$ac_exeext
13398 if { (ac_try="$ac_link"
13399 case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13402 esac
13403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13404 $as_echo "$ac_try_echo") >&5
13405 (eval "$ac_link") 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } && {
13412 test -z "$ac_c_werror_flag" ||
13413 test ! -s conftest.err
13414 } && test -s conftest$ac_exeext && {
13415 test "$cross_compiling" = yes ||
13416 $as_test_x conftest$ac_exeext
13417 }; then
13418 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13419 else
13420 $as_echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13423 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13426 rm -rf conftest.dSYM
13427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13428 conftest$ac_exeext conftest.$ac_ext
13429 LIBS=$ac_check_lib_save_LIBS
13431 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13432 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13433 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13434 cat >>confdefs.h <<_ACEOF
13435 #define HAVE_LIBXMU 1
13436 _ACEOF
13438 LIBS="-lXmu $LIBS"
13442 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13446 LIBXMU=-lXmu
13447 case "$machine" in
13448 ## These machines don't supply Xmu.
13449 hpux* | aix4-2 )
13450 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13452 esac
13455 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13456 if test "${HAVE_X11}" = "yes"; then
13457 if test "${USE_X_TOOLKIT}" != "none"; then
13459 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13460 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13461 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13462 $as_echo_n "(cached) " >&6
13463 else
13464 ac_check_lib_save_LIBS=$LIBS
13465 LIBS="-lXext $LIBS"
13466 cat >conftest.$ac_ext <<_ACEOF
13467 /* confdefs.h. */
13468 _ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13473 /* Override any GCC internal prototype to avoid an error.
13474 Use char because int might match the return type of a GCC
13475 builtin and then its argument prototype would still apply. */
13476 #ifdef __cplusplus
13477 extern "C"
13478 #endif
13479 char XShapeQueryExtension ();
13481 main ()
13483 return XShapeQueryExtension ();
13485 return 0;
13487 _ACEOF
13488 rm -f conftest.$ac_objext conftest$ac_exeext
13489 if { (ac_try="$ac_link"
13490 case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13493 esac
13494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13495 $as_echo "$ac_try_echo") >&5
13496 (eval "$ac_link") 2>conftest.er1
13497 ac_status=$?
13498 grep -v '^ *+' conftest.er1 >conftest.err
13499 rm -f conftest.er1
13500 cat conftest.err >&5
13501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } && {
13503 test -z "$ac_c_werror_flag" ||
13504 test ! -s conftest.err
13505 } && test -s conftest$ac_exeext && {
13506 test "$cross_compiling" = yes ||
13507 $as_test_x conftest$ac_exeext
13508 }; then
13509 ac_cv_lib_Xext_XShapeQueryExtension=yes
13510 else
13511 $as_echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13514 ac_cv_lib_Xext_XShapeQueryExtension=no
13517 rm -rf conftest.dSYM
13518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13519 conftest$ac_exeext conftest.$ac_ext
13520 LIBS=$ac_check_lib_save_LIBS
13522 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13523 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13524 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13525 cat >>confdefs.h <<_ACEOF
13526 #define HAVE_LIBXEXT 1
13527 _ACEOF
13529 LIBS="-lXext $LIBS"
13536 LIBXP=
13537 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13538 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13539 $as_echo_n "checking for Motif version 2.1... " >&6; }
13540 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13541 $as_echo_n "(cached) " >&6
13542 else
13543 cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h. */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13549 #include <Xm/Xm.h>
13551 main ()
13553 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13554 int x = 5;
13555 #else
13556 Motif version prior to 2.1.
13557 #endif
13559 return 0;
13561 _ACEOF
13562 rm -f conftest.$ac_objext
13563 if { (ac_try="$ac_compile"
13564 case "(($ac_try" in
13565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566 *) ac_try_echo=$ac_try;;
13567 esac
13568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13569 $as_echo "$ac_try_echo") >&5
13570 (eval "$ac_compile") 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } && {
13577 test -z "$ac_c_werror_flag" ||
13578 test ! -s conftest.err
13579 } && test -s conftest.$ac_objext; then
13580 emacs_cv_motif_version_2_1=yes
13581 else
13582 $as_echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13585 emacs_cv_motif_version_2_1=no
13588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13591 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13592 if test $emacs_cv_motif_version_2_1 = yes; then
13593 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13594 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13595 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13596 $as_echo_n "(cached) " >&6
13597 else
13598 ac_check_lib_save_LIBS=$LIBS
13599 LIBS="-lXp $LIBS"
13600 cat >conftest.$ac_ext <<_ACEOF
13601 /* confdefs.h. */
13602 _ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h. */
13607 /* Override any GCC internal prototype to avoid an error.
13608 Use char because int might match the return type of a GCC
13609 builtin and then its argument prototype would still apply. */
13610 #ifdef __cplusplus
13611 extern "C"
13612 #endif
13613 char XpCreateContext ();
13615 main ()
13617 return XpCreateContext ();
13619 return 0;
13621 _ACEOF
13622 rm -f conftest.$ac_objext conftest$ac_exeext
13623 if { (ac_try="$ac_link"
13624 case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13627 esac
13628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13629 $as_echo "$ac_try_echo") >&5
13630 (eval "$ac_link") 2>conftest.er1
13631 ac_status=$?
13632 grep -v '^ *+' conftest.er1 >conftest.err
13633 rm -f conftest.er1
13634 cat conftest.err >&5
13635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } && {
13637 test -z "$ac_c_werror_flag" ||
13638 test ! -s conftest.err
13639 } && test -s conftest$ac_exeext && {
13640 test "$cross_compiling" = yes ||
13641 $as_test_x conftest$ac_exeext
13642 }; then
13643 ac_cv_lib_Xp_XpCreateContext=yes
13644 else
13645 $as_echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13648 ac_cv_lib_Xp_XpCreateContext=no
13651 rm -rf conftest.dSYM
13652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13653 conftest$ac_exeext conftest.$ac_ext
13654 LIBS=$ac_check_lib_save_LIBS
13656 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13657 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13658 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13659 LIBXP=-lXp
13662 else
13663 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13664 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13665 if test "${emacs_cv_lesstif+set}" = set; then
13666 $as_echo_n "(cached) " >&6
13667 else
13668 # We put this in CFLAGS temporarily to precede other -I options
13669 # that might be in CFLAGS temporarily.
13670 # We put this in CPPFLAGS where it precedes the other -I options.
13671 OLD_CPPFLAGS=$CPPFLAGS
13672 OLD_CFLAGS=$CFLAGS
13673 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13674 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13675 cat >conftest.$ac_ext <<_ACEOF
13676 /* confdefs.h. */
13677 _ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13681 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13683 main ()
13685 int x = 5;
13687 return 0;
13689 _ACEOF
13690 rm -f conftest.$ac_objext
13691 if { (ac_try="$ac_compile"
13692 case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695 esac
13696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13697 $as_echo "$ac_try_echo") >&5
13698 (eval "$ac_compile") 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest.$ac_objext; then
13708 emacs_cv_lesstif=yes
13709 else
13710 $as_echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13713 emacs_cv_lesstif=no
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13719 $as_echo "$emacs_cv_lesstif" >&6; }
13720 if test $emacs_cv_lesstif = yes; then
13721 # Make sure this -I option remains in CPPFLAGS after it is set
13722 # back to REAL_CPPFLAGS.
13723 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13724 # have those other -I options anyway. Ultimately, having this
13725 # directory ultimately in CPPFLAGS will be enough.
13726 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13727 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13728 else
13729 CFLAGS=$OLD_CFLAGS
13730 CPPFLAGS=$OLD_CPPFLAGS
13737 USE_TOOLKIT_SCROLL_BARS=no
13738 if test "${with_toolkit_scroll_bars}" != "no"; then
13739 if test "${USE_X_TOOLKIT}" != "none"; then
13740 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13741 cat >>confdefs.h <<\_ACEOF
13742 #define USE_TOOLKIT_SCROLL_BARS 1
13743 _ACEOF
13745 HAVE_XAW3D=no
13746 USE_TOOLKIT_SCROLL_BARS=yes
13747 elif test "${HAVE_XAW3D}" = "yes"; then
13748 cat >>confdefs.h <<\_ACEOF
13749 #define USE_TOOLKIT_SCROLL_BARS 1
13750 _ACEOF
13752 USE_TOOLKIT_SCROLL_BARS=yes
13754 elif test "${HAVE_GTK}" = "yes"; then
13755 cat >>confdefs.h <<\_ACEOF
13756 #define USE_TOOLKIT_SCROLL_BARS 1
13757 _ACEOF
13759 USE_TOOLKIT_SCROLL_BARS=yes
13760 elif test "${HAVE_NS}" = "yes"; then
13761 cat >>confdefs.h <<\_ACEOF
13762 #define USE_TOOLKIT_SCROLL_BARS 1
13763 _ACEOF
13765 USE_TOOLKIT_SCROLL_BARS=yes
13769 cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h. */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13776 #include <X11/Xlib.h>
13777 #include <X11/Xresource.h>
13779 main ()
13781 XIMProc callback;
13783 return 0;
13785 _ACEOF
13786 rm -f conftest.$ac_objext
13787 if { (ac_try="$ac_compile"
13788 case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13791 esac
13792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13793 $as_echo "$ac_try_echo") >&5
13794 (eval "$ac_compile") 2>conftest.er1
13795 ac_status=$?
13796 grep -v '^ *+' conftest.er1 >conftest.err
13797 rm -f conftest.er1
13798 cat conftest.err >&5
13799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } && {
13801 test -z "$ac_c_werror_flag" ||
13802 test ! -s conftest.err
13803 } && test -s conftest.$ac_objext; then
13804 HAVE_XIM=yes
13806 cat >>confdefs.h <<\_ACEOF
13807 #define HAVE_XIM 1
13808 _ACEOF
13810 else
13811 $as_echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13814 HAVE_XIM=no
13817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13820 if test "${with_xim}" != "no"; then
13822 cat >>confdefs.h <<\_ACEOF
13823 #define USE_XIM 1
13824 _ACEOF
13829 if test "${HAVE_XIM}" != "no"; then
13830 late_CFLAGS=$CFLAGS
13831 if test "$GCC" = yes; then
13832 CFLAGS="$CFLAGS --pedantic-errors"
13834 cat >conftest.$ac_ext <<_ACEOF
13835 /* confdefs.h. */
13836 _ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13841 #include <X11/Xlib.h>
13842 #include <X11/Xresource.h>
13844 main ()
13846 Display *display;
13847 XrmDatabase db;
13848 char *res_name;
13849 char *res_class;
13850 XIMProc callback;
13851 XPointer *client_data;
13852 #ifndef __GNUC__
13853 /* If we're not using GCC, it's probably not XFree86, and this is
13854 probably right, but we can't use something like --pedantic-errors. */
13855 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13856 char*, XIMProc, XPointer*);
13857 #endif
13858 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13859 client_data);
13861 return 0;
13863 _ACEOF
13864 rm -f conftest.$ac_objext
13865 if { (ac_try="$ac_compile"
13866 case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869 esac
13870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13871 $as_echo "$ac_try_echo") >&5
13872 (eval "$ac_compile") 2>conftest.er1
13873 ac_status=$?
13874 grep -v '^ *+' conftest.er1 >conftest.err
13875 rm -f conftest.er1
13876 cat conftest.err >&5
13877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } && {
13879 test -z "$ac_c_werror_flag" ||
13880 test ! -s conftest.err
13881 } && test -s conftest.$ac_objext; then
13882 emacs_cv_arg6_star=yes
13883 else
13884 $as_echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892 if test "$emacs_cv_arg6_star" = yes; then
13893 cat >>confdefs.h <<\_ACEOF
13894 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13895 _ACEOF
13897 else
13898 cat >>confdefs.h <<\_ACEOF
13899 #define XRegisterIMInstantiateCallback_arg6 XPointer
13900 _ACEOF
13903 CFLAGS=$late_CFLAGS
13906 ### Start of font-backend (under any platform) section.
13907 # (nothing here yet -- this is a placeholder)
13908 ### End of font-backend (under any platform) section.
13910 ### Start of font-backend (under X11) section.
13911 if test "${HAVE_X11}" = "yes"; then
13913 succeeded=no
13915 # Extract the first word of "pkg-config", so it can be a program name with args.
13916 set dummy pkg-config; ac_word=$2
13917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13918 $as_echo_n "checking for $ac_word... " >&6; }
13919 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13920 $as_echo_n "(cached) " >&6
13921 else
13922 case $PKG_CONFIG in
13923 [\\/]* | ?:[\\/]*)
13924 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13930 IFS=$as_save_IFS
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13934 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13935 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13936 break 2
13938 done
13939 done
13940 IFS=$as_save_IFS
13942 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13944 esac
13946 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13947 if test -n "$PKG_CONFIG"; then
13948 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13949 $as_echo "$PKG_CONFIG" >&6; }
13950 else
13951 { $as_echo "$as_me:$LINENO: result: no" >&5
13952 $as_echo "no" >&6; }
13957 if test "$PKG_CONFIG" = "no" ; then
13958 HAVE_FC=no
13959 else
13960 PKG_CONFIG_MIN_VERSION=0.9.0
13961 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13962 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13963 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13965 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13966 { $as_echo "$as_me:$LINENO: result: yes" >&5
13967 $as_echo "yes" >&6; }
13968 succeeded=yes
13970 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13971 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13972 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13973 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13974 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13976 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13977 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13978 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13979 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13980 $as_echo "$FONTCONFIG_LIBS" >&6; }
13981 else
13982 { $as_echo "$as_me:$LINENO: result: no" >&5
13983 $as_echo "no" >&6; }
13984 FONTCONFIG_CFLAGS=""
13985 FONTCONFIG_LIBS=""
13986 ## If we have a custom action on failure, don't print errors, but
13987 ## do set a variable so people can do so.
13988 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13994 else
13995 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13996 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14000 if test $succeeded = yes; then
14001 HAVE_FC=yes
14002 else
14003 HAVE_FC=no
14007 ## Use -lXft if available, unless `--with-xft=no'.
14008 HAVE_XFT=maybe
14009 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
14010 with_xft="no";
14012 if test "x${with_xft}" != "xno"; then
14015 succeeded=no
14017 # Extract the first word of "pkg-config", so it can be a program name with args.
14018 set dummy pkg-config; ac_word=$2
14019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14020 $as_echo_n "checking for $ac_word... " >&6; }
14021 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14022 $as_echo_n "(cached) " >&6
14023 else
14024 case $PKG_CONFIG in
14025 [\\/]* | ?:[\\/]*)
14026 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14030 for as_dir in $PATH
14032 IFS=$as_save_IFS
14033 test -z "$as_dir" && as_dir=.
14034 for ac_exec_ext in '' $ac_executable_extensions; do
14035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14036 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14037 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14038 break 2
14040 done
14041 done
14042 IFS=$as_save_IFS
14044 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14046 esac
14048 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14049 if test -n "$PKG_CONFIG"; then
14050 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14051 $as_echo "$PKG_CONFIG" >&6; }
14052 else
14053 { $as_echo "$as_me:$LINENO: result: no" >&5
14054 $as_echo "no" >&6; }
14059 if test "$PKG_CONFIG" = "no" ; then
14060 HAVE_XFT=no
14061 else
14062 PKG_CONFIG_MIN_VERSION=0.9.0
14063 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14064 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14065 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14067 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14068 { $as_echo "$as_me:$LINENO: result: yes" >&5
14069 $as_echo "yes" >&6; }
14070 succeeded=yes
14072 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14073 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14074 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14075 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14076 $as_echo "$XFT_CFLAGS" >&6; }
14078 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14079 $as_echo_n "checking XFT_LIBS... " >&6; }
14080 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14081 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14082 $as_echo "$XFT_LIBS" >&6; }
14083 else
14084 { $as_echo "$as_me:$LINENO: result: no" >&5
14085 $as_echo "no" >&6; }
14086 XFT_CFLAGS=""
14087 XFT_LIBS=""
14088 ## If we have a custom action on failure, don't print errors, but
14089 ## do set a variable so people can do so.
14090 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14096 else
14097 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14098 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14102 if test $succeeded = yes; then
14104 else
14105 HAVE_XFT=no
14108 ## Because xftfont.c uses XRenderQueryExtension, we also
14109 ## need to link to -lXrender.
14110 HAVE_XRENDER=no
14111 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14112 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14113 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14114 $as_echo_n "(cached) " >&6
14115 else
14116 ac_check_lib_save_LIBS=$LIBS
14117 LIBS="-lXrender $LIBS"
14118 cat >conftest.$ac_ext <<_ACEOF
14119 /* confdefs.h. */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14125 /* Override any GCC internal prototype to avoid an error.
14126 Use char because int might match the return type of a GCC
14127 builtin and then its argument prototype would still apply. */
14128 #ifdef __cplusplus
14129 extern "C"
14130 #endif
14131 char XRenderQueryExtension ();
14133 main ()
14135 return XRenderQueryExtension ();
14137 return 0;
14139 _ACEOF
14140 rm -f conftest.$ac_objext conftest$ac_exeext
14141 if { (ac_try="$ac_link"
14142 case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14145 esac
14146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14147 $as_echo "$ac_try_echo") >&5
14148 (eval "$ac_link") 2>conftest.er1
14149 ac_status=$?
14150 grep -v '^ *+' conftest.er1 >conftest.err
14151 rm -f conftest.er1
14152 cat conftest.err >&5
14153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } && {
14155 test -z "$ac_c_werror_flag" ||
14156 test ! -s conftest.err
14157 } && test -s conftest$ac_exeext && {
14158 test "$cross_compiling" = yes ||
14159 $as_test_x conftest$ac_exeext
14160 }; then
14161 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14162 else
14163 $as_echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14166 ac_cv_lib_Xrender_XRenderQueryExtension=no
14169 rm -rf conftest.dSYM
14170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14171 conftest$ac_exeext conftest.$ac_ext
14172 LIBS=$ac_check_lib_save_LIBS
14174 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14175 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14176 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14177 HAVE_XRENDER=yes
14180 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14181 OLD_CPPFLAGS="$CPPFLAGS"
14182 OLD_CFLAGS="$CFLAGS"
14183 OLD_LIBS="$LIBS"
14184 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14185 CFLAGS="$CFLAGS $XFT_CFLAGS"
14186 XFT_LIBS="-lXrender $XFT_LIBS"
14187 LIBS="$XFT_LIBS $LIBS"
14188 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14189 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14190 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14191 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14192 $as_echo_n "(cached) " >&6
14194 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14195 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14196 else
14197 # Is the header compilable?
14198 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14199 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14200 cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h. */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14206 $ac_includes_default
14207 #include <X11/Xft/Xft.h>
14208 _ACEOF
14209 rm -f conftest.$ac_objext
14210 if { (ac_try="$ac_compile"
14211 case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14214 esac
14215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14216 $as_echo "$ac_try_echo") >&5
14217 (eval "$ac_compile") 2>conftest.er1
14218 ac_status=$?
14219 grep -v '^ *+' conftest.er1 >conftest.err
14220 rm -f conftest.er1
14221 cat conftest.err >&5
14222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } && {
14224 test -z "$ac_c_werror_flag" ||
14225 test ! -s conftest.err
14226 } && test -s conftest.$ac_objext; then
14227 ac_header_compiler=yes
14228 else
14229 $as_echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14232 ac_header_compiler=no
14235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14236 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14237 $as_echo "$ac_header_compiler" >&6; }
14239 # Is the header present?
14240 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14241 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14242 cat >conftest.$ac_ext <<_ACEOF
14243 /* confdefs.h. */
14244 _ACEOF
14245 cat confdefs.h >>conftest.$ac_ext
14246 cat >>conftest.$ac_ext <<_ACEOF
14247 /* end confdefs.h. */
14248 #include <X11/Xft/Xft.h>
14249 _ACEOF
14250 if { (ac_try="$ac_cpp conftest.$ac_ext"
14251 case "(($ac_try" in
14252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14254 esac
14255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14256 $as_echo "$ac_try_echo") >&5
14257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14258 ac_status=$?
14259 grep -v '^ *+' conftest.er1 >conftest.err
14260 rm -f conftest.er1
14261 cat conftest.err >&5
14262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } >/dev/null && {
14264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14265 test ! -s conftest.err
14266 }; then
14267 ac_header_preproc=yes
14268 else
14269 $as_echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.$ac_ext >&5
14272 ac_header_preproc=no
14275 rm -f conftest.err conftest.$ac_ext
14276 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14277 $as_echo "$ac_header_preproc" >&6; }
14279 # So? What about this header?
14280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14281 yes:no: )
14282 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14283 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14284 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14285 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14286 ac_header_preproc=yes
14288 no:yes:* )
14289 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14290 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14291 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14292 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14293 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14294 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14295 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14296 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14297 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14298 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14299 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14300 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14303 esac
14304 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14305 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14306 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14307 $as_echo_n "(cached) " >&6
14308 else
14309 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14311 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14312 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14315 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14316 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14317 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14318 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14319 $as_echo_n "(cached) " >&6
14320 else
14321 ac_check_lib_save_LIBS=$LIBS
14322 LIBS="-lXft $XFT_LIBS $LIBS"
14323 cat >conftest.$ac_ext <<_ACEOF
14324 /* confdefs.h. */
14325 _ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14330 /* Override any GCC internal prototype to avoid an error.
14331 Use char because int might match the return type of a GCC
14332 builtin and then its argument prototype would still apply. */
14333 #ifdef __cplusplus
14334 extern "C"
14335 #endif
14336 char XftFontOpen ();
14338 main ()
14340 return XftFontOpen ();
14342 return 0;
14344 _ACEOF
14345 rm -f conftest.$ac_objext conftest$ac_exeext
14346 if { (ac_try="$ac_link"
14347 case "(($ac_try" in
14348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14349 *) ac_try_echo=$ac_try;;
14350 esac
14351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14352 $as_echo "$ac_try_echo") >&5
14353 (eval "$ac_link") 2>conftest.er1
14354 ac_status=$?
14355 grep -v '^ *+' conftest.er1 >conftest.err
14356 rm -f conftest.er1
14357 cat conftest.err >&5
14358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } && {
14360 test -z "$ac_c_werror_flag" ||
14361 test ! -s conftest.err
14362 } && test -s conftest$ac_exeext && {
14363 test "$cross_compiling" = yes ||
14364 $as_test_x conftest$ac_exeext
14365 }; then
14366 ac_cv_lib_Xft_XftFontOpen=yes
14367 else
14368 $as_echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14371 ac_cv_lib_Xft_XftFontOpen=no
14374 rm -rf conftest.dSYM
14375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14376 conftest$ac_exeext conftest.$ac_ext
14377 LIBS=$ac_check_lib_save_LIBS
14379 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14380 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14381 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14382 HAVE_XFT=yes
14389 if test "${HAVE_XFT}" = "yes"; then
14391 cat >>confdefs.h <<\_ACEOF
14392 #define HAVE_XFT 1
14393 _ACEOF
14396 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14397 else
14398 CPPFLAGS="$OLD_CPPFLAGS"
14399 CFLAGS="$OLD_CFLAGS"
14400 LIBS="$OLD_LIBS"
14401 fi # "${HAVE_XFT}" = "yes"
14402 fi # "$HAVE_XFT" != no
14403 fi # "x${with_xft}" != "xno"
14405 if test "$HAVE_XFT" != "yes"; then
14406 HAVE_XFT=no
14410 HAVE_FREETYPE=no
14411 ## We used to allow building with FreeType and without Xft.
14412 ## However, the ftx font backend driver is not in good shape.
14413 if test "${HAVE_XFT}" = "yes"; then
14414 HAVE_FREETYPE=yes
14415 FONTCONFIG_CFLAGS=
14416 FONTCONFIG_LIBS=
14419 HAVE_LIBOTF=no
14420 if test "${HAVE_FREETYPE}" = "yes"; then
14422 cat >>confdefs.h <<\_ACEOF
14423 #define HAVE_FREETYPE 1
14424 _ACEOF
14426 if test "${with_libotf}" != "no"; then
14428 succeeded=no
14430 # Extract the first word of "pkg-config", so it can be a program name with args.
14431 set dummy pkg-config; ac_word=$2
14432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14433 $as_echo_n "checking for $ac_word... " >&6; }
14434 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14435 $as_echo_n "(cached) " >&6
14436 else
14437 case $PKG_CONFIG in
14438 [\\/]* | ?:[\\/]*)
14439 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14443 for as_dir in $PATH
14445 IFS=$as_save_IFS
14446 test -z "$as_dir" && as_dir=.
14447 for ac_exec_ext in '' $ac_executable_extensions; do
14448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14449 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14451 break 2
14453 done
14454 done
14455 IFS=$as_save_IFS
14457 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14459 esac
14461 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14462 if test -n "$PKG_CONFIG"; then
14463 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14464 $as_echo "$PKG_CONFIG" >&6; }
14465 else
14466 { $as_echo "$as_me:$LINENO: result: no" >&5
14467 $as_echo "no" >&6; }
14472 if test "$PKG_CONFIG" = "no" ; then
14473 HAVE_LIBOTF=no
14474 else
14475 PKG_CONFIG_MIN_VERSION=0.9.0
14476 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14477 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14478 $as_echo_n "checking for libotf... " >&6; }
14480 if $PKG_CONFIG --exists "libotf" 2>&5; then
14481 { $as_echo "$as_me:$LINENO: result: yes" >&5
14482 $as_echo "yes" >&6; }
14483 succeeded=yes
14485 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14486 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14487 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14488 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14489 $as_echo "$LIBOTF_CFLAGS" >&6; }
14491 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14492 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14493 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14494 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14495 $as_echo "$LIBOTF_LIBS" >&6; }
14496 else
14497 { $as_echo "$as_me:$LINENO: result: no" >&5
14498 $as_echo "no" >&6; }
14499 LIBOTF_CFLAGS=""
14500 LIBOTF_LIBS=""
14501 ## If we have a custom action on failure, don't print errors, but
14502 ## do set a variable so people can do so.
14503 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14509 else
14510 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14511 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14515 if test $succeeded = yes; then
14516 HAVE_LIBOTF=yes
14517 else
14518 HAVE_LIBOTF=no
14521 if test "$HAVE_LIBOTF" = "yes"; then
14523 cat >>confdefs.h <<\_ACEOF
14524 #define HAVE_LIBOTF 1
14525 _ACEOF
14527 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14528 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14529 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14530 $as_echo_n "(cached) " >&6
14531 else
14532 ac_check_lib_save_LIBS=$LIBS
14533 LIBS="-lotf $LIBS"
14534 cat >conftest.$ac_ext <<_ACEOF
14535 /* confdefs.h. */
14536 _ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14541 /* Override any GCC internal prototype to avoid an error.
14542 Use char because int might match the return type of a GCC
14543 builtin and then its argument prototype would still apply. */
14544 #ifdef __cplusplus
14545 extern "C"
14546 #endif
14547 char OTF_get_variation_glyphs ();
14549 main ()
14551 return OTF_get_variation_glyphs ();
14553 return 0;
14555 _ACEOF
14556 rm -f conftest.$ac_objext conftest$ac_exeext
14557 if { (ac_try="$ac_link"
14558 case "(($ac_try" in
14559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560 *) ac_try_echo=$ac_try;;
14561 esac
14562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14563 $as_echo "$ac_try_echo") >&5
14564 (eval "$ac_link") 2>conftest.er1
14565 ac_status=$?
14566 grep -v '^ *+' conftest.er1 >conftest.err
14567 rm -f conftest.er1
14568 cat conftest.err >&5
14569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } && {
14571 test -z "$ac_c_werror_flag" ||
14572 test ! -s conftest.err
14573 } && test -s conftest$ac_exeext && {
14574 test "$cross_compiling" = yes ||
14575 $as_test_x conftest$ac_exeext
14576 }; then
14577 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14578 else
14579 $as_echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14582 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14585 rm -rf conftest.dSYM
14586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14587 conftest$ac_exeext conftest.$ac_ext
14588 LIBS=$ac_check_lib_save_LIBS
14590 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14591 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14592 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14593 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14594 else
14595 HAVE_OTF_GET_VARIATION_GLYPHS=no
14598 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14600 cat >>confdefs.h <<\_ACEOF
14601 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14602 _ACEOF
14609 HAVE_M17N_FLT=no
14610 if test "${HAVE_LIBOTF}" = yes; then
14611 if test "${with_m17n_flt}" != "no"; then
14613 succeeded=no
14615 # Extract the first word of "pkg-config", so it can be a program name with args.
14616 set dummy pkg-config; ac_word=$2
14617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14618 $as_echo_n "checking for $ac_word... " >&6; }
14619 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14620 $as_echo_n "(cached) " >&6
14621 else
14622 case $PKG_CONFIG in
14623 [\\/]* | ?:[\\/]*)
14624 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14628 for as_dir in $PATH
14630 IFS=$as_save_IFS
14631 test -z "$as_dir" && as_dir=.
14632 for ac_exec_ext in '' $ac_executable_extensions; do
14633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14634 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14636 break 2
14638 done
14639 done
14640 IFS=$as_save_IFS
14642 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14644 esac
14646 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14647 if test -n "$PKG_CONFIG"; then
14648 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14649 $as_echo "$PKG_CONFIG" >&6; }
14650 else
14651 { $as_echo "$as_me:$LINENO: result: no" >&5
14652 $as_echo "no" >&6; }
14657 if test "$PKG_CONFIG" = "no" ; then
14658 HAVE_M17N_FLT=no
14659 else
14660 PKG_CONFIG_MIN_VERSION=0.9.0
14661 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14662 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14663 $as_echo_n "checking for m17n-flt... " >&6; }
14665 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14666 { $as_echo "$as_me:$LINENO: result: yes" >&5
14667 $as_echo "yes" >&6; }
14668 succeeded=yes
14670 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14671 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14672 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14673 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14674 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14676 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14677 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14678 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14679 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14680 $as_echo "$M17N_FLT_LIBS" >&6; }
14681 else
14682 { $as_echo "$as_me:$LINENO: result: no" >&5
14683 $as_echo "no" >&6; }
14684 M17N_FLT_CFLAGS=""
14685 M17N_FLT_LIBS=""
14686 ## If we have a custom action on failure, don't print errors, but
14687 ## do set a variable so people can do so.
14688 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14694 else
14695 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14696 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14700 if test $succeeded = yes; then
14701 HAVE_M17N_FLT=yes
14702 else
14703 HAVE_M17N_FLT=no
14706 if test "$HAVE_M17N_FLT" = "yes"; then
14708 cat >>confdefs.h <<\_ACEOF
14709 #define HAVE_M17N_FLT 1
14710 _ACEOF
14715 else
14716 HAVE_XFT=no
14717 HAVE_FREETYPE=no
14718 HAVE_LIBOTF=no
14719 HAVE_M17N_FLT=no
14722 ### End of font-backend (under X11) section.
14733 ### Use -lXpm if available, unless `--with-xpm=no'.
14734 HAVE_XPM=no
14735 LIBXPM=
14736 if test "${HAVE_X11}" = "yes"; then
14737 if test "${with_xpm}" != "no"; then
14738 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14739 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14740 $as_echo_n "checking for X11/xpm.h... " >&6; }
14741 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14742 $as_echo_n "(cached) " >&6
14744 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14745 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14746 else
14747 # Is the header compilable?
14748 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14749 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h. */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14756 $ac_includes_default
14757 #include <X11/xpm.h>
14758 _ACEOF
14759 rm -f conftest.$ac_objext
14760 if { (ac_try="$ac_compile"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14764 esac
14765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14766 $as_echo "$ac_try_echo") >&5
14767 (eval "$ac_compile") 2>conftest.er1
14768 ac_status=$?
14769 grep -v '^ *+' conftest.er1 >conftest.err
14770 rm -f conftest.er1
14771 cat conftest.err >&5
14772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } && {
14774 test -z "$ac_c_werror_flag" ||
14775 test ! -s conftest.err
14776 } && test -s conftest.$ac_objext; then
14777 ac_header_compiler=yes
14778 else
14779 $as_echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 ac_header_compiler=no
14785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14786 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14787 $as_echo "$ac_header_compiler" >&6; }
14789 # Is the header present?
14790 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14791 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14792 cat >conftest.$ac_ext <<_ACEOF
14793 /* confdefs.h. */
14794 _ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14798 #include <X11/xpm.h>
14799 _ACEOF
14800 if { (ac_try="$ac_cpp conftest.$ac_ext"
14801 case "(($ac_try" in
14802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803 *) ac_try_echo=$ac_try;;
14804 esac
14805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14806 $as_echo "$ac_try_echo") >&5
14807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14808 ac_status=$?
14809 grep -v '^ *+' conftest.er1 >conftest.err
14810 rm -f conftest.er1
14811 cat conftest.err >&5
14812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } >/dev/null && {
14814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14815 test ! -s conftest.err
14816 }; then
14817 ac_header_preproc=yes
14818 else
14819 $as_echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14822 ac_header_preproc=no
14825 rm -f conftest.err conftest.$ac_ext
14826 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14827 $as_echo "$ac_header_preproc" >&6; }
14829 # So? What about this header?
14830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14831 yes:no: )
14832 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14833 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14834 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14835 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14836 ac_header_preproc=yes
14838 no:yes:* )
14839 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14840 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14841 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14842 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14843 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14844 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14845 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14846 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14847 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14848 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14849 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14850 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14853 esac
14854 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14855 $as_echo_n "checking for X11/xpm.h... " >&6; }
14856 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14857 $as_echo_n "(cached) " >&6
14858 else
14859 ac_cv_header_X11_xpm_h=$ac_header_preproc
14861 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14862 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14865 if test $ac_cv_header_X11_xpm_h = yes; then
14866 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14867 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14868 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14869 $as_echo_n "(cached) " >&6
14870 else
14871 ac_check_lib_save_LIBS=$LIBS
14872 LIBS="-lXpm -lX11 $LIBS"
14873 cat >conftest.$ac_ext <<_ACEOF
14874 /* confdefs.h. */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14880 /* Override any GCC internal prototype to avoid an error.
14881 Use char because int might match the return type of a GCC
14882 builtin and then its argument prototype would still apply. */
14883 #ifdef __cplusplus
14884 extern "C"
14885 #endif
14886 char XpmReadFileToPixmap ();
14888 main ()
14890 return XpmReadFileToPixmap ();
14892 return 0;
14894 _ACEOF
14895 rm -f conftest.$ac_objext conftest$ac_exeext
14896 if { (ac_try="$ac_link"
14897 case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14900 esac
14901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14902 $as_echo "$ac_try_echo") >&5
14903 (eval "$ac_link") 2>conftest.er1
14904 ac_status=$?
14905 grep -v '^ *+' conftest.er1 >conftest.err
14906 rm -f conftest.er1
14907 cat conftest.err >&5
14908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } && {
14910 test -z "$ac_c_werror_flag" ||
14911 test ! -s conftest.err
14912 } && test -s conftest$ac_exeext && {
14913 test "$cross_compiling" = yes ||
14914 $as_test_x conftest$ac_exeext
14915 }; then
14916 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14917 else
14918 $as_echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14924 rm -rf conftest.dSYM
14925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14926 conftest$ac_exeext conftest.$ac_ext
14927 LIBS=$ac_check_lib_save_LIBS
14929 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14930 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14931 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14932 HAVE_XPM=yes
14938 if test "${HAVE_XPM}" = "yes"; then
14939 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14940 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14941 cat >conftest.$ac_ext <<_ACEOF
14942 /* confdefs.h. */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947 #include "X11/xpm.h"
14948 #ifndef XpmReturnAllocPixels
14949 no_return_alloc_pixels
14950 #endif
14952 _ACEOF
14953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14954 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14955 HAVE_XPM=no
14956 else
14957 HAVE_XPM=yes
14959 rm -f conftest*
14962 if test "${HAVE_XPM}" = "yes"; then
14963 { $as_echo "$as_me:$LINENO: result: yes" >&5
14964 $as_echo "yes" >&6; }
14965 else
14966 { $as_echo "$as_me:$LINENO: result: no" >&5
14967 $as_echo "no" >&6; }
14972 if test "${HAVE_XPM}" = "yes"; then
14974 cat >>confdefs.h <<\_ACEOF
14975 #define HAVE_XPM 1
14976 _ACEOF
14978 LIBXPM=-lXpm
14983 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14984 HAVE_JPEG=no
14985 LIBJPEG=
14986 if test "${HAVE_X11}" = "yes"; then
14987 if test "${with_jpeg}" != "no"; then
14988 if test "${ac_cv_header_jerror_h+set}" = set; then
14989 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14990 $as_echo_n "checking for jerror.h... " >&6; }
14991 if test "${ac_cv_header_jerror_h+set}" = set; then
14992 $as_echo_n "(cached) " >&6
14994 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14995 $as_echo "$ac_cv_header_jerror_h" >&6; }
14996 else
14997 # Is the header compilable?
14998 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14999 $as_echo_n "checking jerror.h usability... " >&6; }
15000 cat >conftest.$ac_ext <<_ACEOF
15001 /* confdefs.h. */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006 $ac_includes_default
15007 #include <jerror.h>
15008 _ACEOF
15009 rm -f conftest.$ac_objext
15010 if { (ac_try="$ac_compile"
15011 case "(($ac_try" in
15012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15013 *) ac_try_echo=$ac_try;;
15014 esac
15015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15016 $as_echo "$ac_try_echo") >&5
15017 (eval "$ac_compile") 2>conftest.er1
15018 ac_status=$?
15019 grep -v '^ *+' conftest.er1 >conftest.err
15020 rm -f conftest.er1
15021 cat conftest.err >&5
15022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } && {
15024 test -z "$ac_c_werror_flag" ||
15025 test ! -s conftest.err
15026 } && test -s conftest.$ac_objext; then
15027 ac_header_compiler=yes
15028 else
15029 $as_echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15032 ac_header_compiler=no
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15036 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15037 $as_echo "$ac_header_compiler" >&6; }
15039 # Is the header present?
15040 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15041 $as_echo_n "checking jerror.h presence... " >&6; }
15042 cat >conftest.$ac_ext <<_ACEOF
15043 /* confdefs.h. */
15044 _ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15048 #include <jerror.h>
15049 _ACEOF
15050 if { (ac_try="$ac_cpp conftest.$ac_ext"
15051 case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15054 esac
15055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15056 $as_echo "$ac_try_echo") >&5
15057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15058 ac_status=$?
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
15062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } >/dev/null && {
15064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 }; then
15067 ac_header_preproc=yes
15068 else
15069 $as_echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 ac_header_preproc=no
15075 rm -f conftest.err conftest.$ac_ext
15076 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15077 $as_echo "$ac_header_preproc" >&6; }
15079 # So? What about this header?
15080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15081 yes:no: )
15082 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15083 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15084 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15085 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15086 ac_header_preproc=yes
15088 no:yes:* )
15089 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15090 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15091 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15092 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15093 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15094 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15095 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15096 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15097 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15098 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15099 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15100 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15103 esac
15104 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15105 $as_echo_n "checking for jerror.h... " >&6; }
15106 if test "${ac_cv_header_jerror_h+set}" = set; then
15107 $as_echo_n "(cached) " >&6
15108 else
15109 ac_cv_header_jerror_h=$ac_header_preproc
15111 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15112 $as_echo "$ac_cv_header_jerror_h" >&6; }
15115 if test $ac_cv_header_jerror_h = yes; then
15116 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15117 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15118 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15119 $as_echo_n "(cached) " >&6
15120 else
15121 ac_check_lib_save_LIBS=$LIBS
15122 LIBS="-ljpeg $LIBS"
15123 cat >conftest.$ac_ext <<_ACEOF
15124 /* confdefs.h. */
15125 _ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15130 /* Override any GCC internal prototype to avoid an error.
15131 Use char because int might match the return type of a GCC
15132 builtin and then its argument prototype would still apply. */
15133 #ifdef __cplusplus
15134 extern "C"
15135 #endif
15136 char jpeg_destroy_compress ();
15138 main ()
15140 return jpeg_destroy_compress ();
15142 return 0;
15144 _ACEOF
15145 rm -f conftest.$ac_objext conftest$ac_exeext
15146 if { (ac_try="$ac_link"
15147 case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15150 esac
15151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15152 $as_echo "$ac_try_echo") >&5
15153 (eval "$ac_link") 2>conftest.er1
15154 ac_status=$?
15155 grep -v '^ *+' conftest.er1 >conftest.err
15156 rm -f conftest.er1
15157 cat conftest.err >&5
15158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } && {
15160 test -z "$ac_c_werror_flag" ||
15161 test ! -s conftest.err
15162 } && test -s conftest$ac_exeext && {
15163 test "$cross_compiling" = yes ||
15164 $as_test_x conftest$ac_exeext
15165 }; then
15166 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15167 else
15168 $as_echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15174 rm -rf conftest.dSYM
15175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15176 conftest$ac_exeext conftest.$ac_ext
15177 LIBS=$ac_check_lib_save_LIBS
15179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15180 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15181 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15182 HAVE_JPEG=yes
15191 if test "${HAVE_JPEG}" = "yes"; then
15192 cat >>confdefs.h <<\_ACEOF
15193 #define HAVE_JPEG 1
15194 _ACEOF
15196 cat >conftest.$ac_ext <<_ACEOF
15197 /* confdefs.h. */
15198 _ACEOF
15199 cat confdefs.h >>conftest.$ac_ext
15200 cat >>conftest.$ac_ext <<_ACEOF
15201 /* end confdefs.h. */
15202 #include <jpeglib.h>
15203 version=JPEG_LIB_VERSION
15205 _ACEOF
15206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15207 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15208 cat >>confdefs.h <<\_ACEOF
15209 #define HAVE_JPEG 1
15210 _ACEOF
15212 else
15213 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15214 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15215 HAVE_JPEG=no
15217 rm -f conftest*
15220 if test "${HAVE_JPEG}" = "yes"; then
15221 LIBJPEG=-ljpeg
15226 ### Use -lpng if available, unless `--with-png=no'.
15227 HAVE_PNG=no
15228 LIBPNG=
15229 if test "${HAVE_X11}" = "yes"; then
15230 if test "${with_png}" != "no"; then
15231 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15232 # in /usr/include/libpng.
15235 for ac_header in png.h libpng/png.h
15237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15240 $as_echo_n "checking for $ac_header... " >&6; }
15241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15242 $as_echo_n "(cached) " >&6
15244 ac_res=`eval 'as_val=${'$as_ac_Header'}
15245 $as_echo "$as_val"'`
15246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15247 $as_echo "$ac_res" >&6; }
15248 else
15249 # Is the header compilable?
15250 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15251 $as_echo_n "checking $ac_header usability... " >&6; }
15252 cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h. */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15258 $ac_includes_default
15259 #include <$ac_header>
15260 _ACEOF
15261 rm -f conftest.$ac_objext
15262 if { (ac_try="$ac_compile"
15263 case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266 esac
15267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15268 $as_echo "$ac_try_echo") >&5
15269 (eval "$ac_compile") 2>conftest.er1
15270 ac_status=$?
15271 grep -v '^ *+' conftest.er1 >conftest.err
15272 rm -f conftest.er1
15273 cat conftest.err >&5
15274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } && {
15276 test -z "$ac_c_werror_flag" ||
15277 test ! -s conftest.err
15278 } && test -s conftest.$ac_objext; then
15279 ac_header_compiler=yes
15280 else
15281 $as_echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15284 ac_header_compiler=no
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15289 $as_echo "$ac_header_compiler" >&6; }
15291 # Is the header present?
15292 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15293 $as_echo_n "checking $ac_header presence... " >&6; }
15294 cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h. */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15300 #include <$ac_header>
15301 _ACEOF
15302 if { (ac_try="$ac_cpp conftest.$ac_ext"
15303 case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15306 esac
15307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15308 $as_echo "$ac_try_echo") >&5
15309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15310 ac_status=$?
15311 grep -v '^ *+' conftest.er1 >conftest.err
15312 rm -f conftest.er1
15313 cat conftest.err >&5
15314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } >/dev/null && {
15316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15317 test ! -s conftest.err
15318 }; then
15319 ac_header_preproc=yes
15320 else
15321 $as_echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 ac_header_preproc=no
15327 rm -f conftest.err conftest.$ac_ext
15328 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15329 $as_echo "$ac_header_preproc" >&6; }
15331 # So? What about this header?
15332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15333 yes:no: )
15334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15335 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15337 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15338 ac_header_preproc=yes
15340 no:yes:* )
15341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15342 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15344 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15346 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15348 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15350 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15352 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15355 esac
15356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15357 $as_echo_n "checking for $ac_header... " >&6; }
15358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15359 $as_echo_n "(cached) " >&6
15360 else
15361 eval "$as_ac_Header=\$ac_header_preproc"
15363 ac_res=`eval 'as_val=${'$as_ac_Header'}
15364 $as_echo "$as_val"'`
15365 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15366 $as_echo "$ac_res" >&6; }
15369 if test `eval 'as_val=${'$as_ac_Header'}
15370 $as_echo "$as_val"'` = yes; then
15371 cat >>confdefs.h <<_ACEOF
15372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15373 _ACEOF
15377 done
15379 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15380 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15381 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15382 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15383 $as_echo_n "(cached) " >&6
15384 else
15385 ac_check_lib_save_LIBS=$LIBS
15386 LIBS="-lpng -lz -lm $LIBS"
15387 cat >conftest.$ac_ext <<_ACEOF
15388 /* confdefs.h. */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15394 /* Override any GCC internal prototype to avoid an error.
15395 Use char because int might match the return type of a GCC
15396 builtin and then its argument prototype would still apply. */
15397 #ifdef __cplusplus
15398 extern "C"
15399 #endif
15400 char png_get_channels ();
15402 main ()
15404 return png_get_channels ();
15406 return 0;
15408 _ACEOF
15409 rm -f conftest.$ac_objext conftest$ac_exeext
15410 if { (ac_try="$ac_link"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414 esac
15415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15416 $as_echo "$ac_try_echo") >&5
15417 (eval "$ac_link") 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } && {
15424 test -z "$ac_c_werror_flag" ||
15425 test ! -s conftest.err
15426 } && test -s conftest$ac_exeext && {
15427 test "$cross_compiling" = yes ||
15428 $as_test_x conftest$ac_exeext
15429 }; then
15430 ac_cv_lib_png_png_get_channels=yes
15431 else
15432 $as_echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 ac_cv_lib_png_png_get_channels=no
15438 rm -rf conftest.dSYM
15439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15440 conftest$ac_exeext conftest.$ac_ext
15441 LIBS=$ac_check_lib_save_LIBS
15443 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15444 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15445 if test $ac_cv_lib_png_png_get_channels = yes; then
15446 HAVE_PNG=yes
15452 if test "${HAVE_PNG}" = "yes"; then
15454 cat >>confdefs.h <<\_ACEOF
15455 #define HAVE_PNG 1
15456 _ACEOF
15458 LIBPNG="-lpng -lz -lm"
15463 ### Use -ltiff if available, unless `--with-tiff=no'.
15464 HAVE_TIFF=no
15465 LIBTIFF=
15466 if test "${HAVE_X11}" = "yes"; then
15467 if test "${with_tiff}" != "no"; then
15468 if test "${ac_cv_header_tiffio_h+set}" = set; then
15469 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15470 $as_echo_n "checking for tiffio.h... " >&6; }
15471 if test "${ac_cv_header_tiffio_h+set}" = set; then
15472 $as_echo_n "(cached) " >&6
15474 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15475 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15476 else
15477 # Is the header compilable?
15478 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15479 $as_echo_n "checking tiffio.h usability... " >&6; }
15480 cat >conftest.$ac_ext <<_ACEOF
15481 /* confdefs.h. */
15482 _ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 $ac_includes_default
15487 #include <tiffio.h>
15488 _ACEOF
15489 rm -f conftest.$ac_objext
15490 if { (ac_try="$ac_compile"
15491 case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15494 esac
15495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15496 $as_echo "$ac_try_echo") >&5
15497 (eval "$ac_compile") 2>conftest.er1
15498 ac_status=$?
15499 grep -v '^ *+' conftest.er1 >conftest.err
15500 rm -f conftest.er1
15501 cat conftest.err >&5
15502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } && {
15504 test -z "$ac_c_werror_flag" ||
15505 test ! -s conftest.err
15506 } && test -s conftest.$ac_objext; then
15507 ac_header_compiler=yes
15508 else
15509 $as_echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15512 ac_header_compiler=no
15515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15516 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15517 $as_echo "$ac_header_compiler" >&6; }
15519 # Is the header present?
15520 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15521 $as_echo_n "checking tiffio.h presence... " >&6; }
15522 cat >conftest.$ac_ext <<_ACEOF
15523 /* confdefs.h. */
15524 _ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15528 #include <tiffio.h>
15529 _ACEOF
15530 if { (ac_try="$ac_cpp conftest.$ac_ext"
15531 case "(($ac_try" in
15532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533 *) ac_try_echo=$ac_try;;
15534 esac
15535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15536 $as_echo "$ac_try_echo") >&5
15537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15538 ac_status=$?
15539 grep -v '^ *+' conftest.er1 >conftest.err
15540 rm -f conftest.er1
15541 cat conftest.err >&5
15542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } >/dev/null && {
15544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15545 test ! -s conftest.err
15546 }; then
15547 ac_header_preproc=yes
15548 else
15549 $as_echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15552 ac_header_preproc=no
15555 rm -f conftest.err conftest.$ac_ext
15556 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15557 $as_echo "$ac_header_preproc" >&6; }
15559 # So? What about this header?
15560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15561 yes:no: )
15562 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15563 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15564 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15565 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15566 ac_header_preproc=yes
15568 no:yes:* )
15569 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15570 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15571 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15572 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15573 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15574 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15575 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15576 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15577 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15578 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15579 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15580 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15583 esac
15584 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15585 $as_echo_n "checking for tiffio.h... " >&6; }
15586 if test "${ac_cv_header_tiffio_h+set}" = set; then
15587 $as_echo_n "(cached) " >&6
15588 else
15589 ac_cv_header_tiffio_h=$ac_header_preproc
15591 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15592 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15595 if test $ac_cv_header_tiffio_h = yes; then
15596 tifflibs="-lz -lm"
15597 # At least one tiff package requires the jpeg library.
15598 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15599 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15600 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15601 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15602 $as_echo_n "(cached) " >&6
15603 else
15604 ac_check_lib_save_LIBS=$LIBS
15605 LIBS="-ltiff $tifflibs $LIBS"
15606 cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h. */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15613 /* Override any GCC internal prototype to avoid an error.
15614 Use char because int might match the return type of a GCC
15615 builtin and then its argument prototype would still apply. */
15616 #ifdef __cplusplus
15617 extern "C"
15618 #endif
15619 char TIFFGetVersion ();
15621 main ()
15623 return TIFFGetVersion ();
15625 return 0;
15627 _ACEOF
15628 rm -f conftest.$ac_objext conftest$ac_exeext
15629 if { (ac_try="$ac_link"
15630 case "(($ac_try" in
15631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15632 *) ac_try_echo=$ac_try;;
15633 esac
15634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15635 $as_echo "$ac_try_echo") >&5
15636 (eval "$ac_link") 2>conftest.er1
15637 ac_status=$?
15638 grep -v '^ *+' conftest.er1 >conftest.err
15639 rm -f conftest.er1
15640 cat conftest.err >&5
15641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } && {
15643 test -z "$ac_c_werror_flag" ||
15644 test ! -s conftest.err
15645 } && test -s conftest$ac_exeext && {
15646 test "$cross_compiling" = yes ||
15647 $as_test_x conftest$ac_exeext
15648 }; then
15649 ac_cv_lib_tiff_TIFFGetVersion=yes
15650 else
15651 $as_echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15654 ac_cv_lib_tiff_TIFFGetVersion=no
15657 rm -rf conftest.dSYM
15658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15659 conftest$ac_exeext conftest.$ac_ext
15660 LIBS=$ac_check_lib_save_LIBS
15662 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15663 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15664 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15665 HAVE_TIFF=yes
15673 if test "${HAVE_TIFF}" = "yes"; then
15675 cat >>confdefs.h <<\_ACEOF
15676 #define HAVE_TIFF 1
15677 _ACEOF
15679 LIBTIFF=-ltiff
15684 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15685 HAVE_GIF=no
15686 LIBGIF=
15687 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15688 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15689 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15690 $as_echo_n "checking for gif_lib.h... " >&6; }
15691 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15692 $as_echo_n "(cached) " >&6
15694 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15695 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15696 else
15697 # Is the header compilable?
15698 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15699 $as_echo_n "checking gif_lib.h usability... " >&6; }
15700 cat >conftest.$ac_ext <<_ACEOF
15701 /* confdefs.h. */
15702 _ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15706 $ac_includes_default
15707 #include <gif_lib.h>
15708 _ACEOF
15709 rm -f conftest.$ac_objext
15710 if { (ac_try="$ac_compile"
15711 case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15714 esac
15715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15716 $as_echo "$ac_try_echo") >&5
15717 (eval "$ac_compile") 2>conftest.er1
15718 ac_status=$?
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
15722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } && {
15724 test -z "$ac_c_werror_flag" ||
15725 test ! -s conftest.err
15726 } && test -s conftest.$ac_objext; then
15727 ac_header_compiler=yes
15728 else
15729 $as_echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15732 ac_header_compiler=no
15735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15736 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15737 $as_echo "$ac_header_compiler" >&6; }
15739 # Is the header present?
15740 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15741 $as_echo_n "checking gif_lib.h presence... " >&6; }
15742 cat >conftest.$ac_ext <<_ACEOF
15743 /* confdefs.h. */
15744 _ACEOF
15745 cat confdefs.h >>conftest.$ac_ext
15746 cat >>conftest.$ac_ext <<_ACEOF
15747 /* end confdefs.h. */
15748 #include <gif_lib.h>
15749 _ACEOF
15750 if { (ac_try="$ac_cpp conftest.$ac_ext"
15751 case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15754 esac
15755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15756 $as_echo "$ac_try_echo") >&5
15757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15758 ac_status=$?
15759 grep -v '^ *+' conftest.er1 >conftest.err
15760 rm -f conftest.er1
15761 cat conftest.err >&5
15762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } >/dev/null && {
15764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15765 test ! -s conftest.err
15766 }; then
15767 ac_header_preproc=yes
15768 else
15769 $as_echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 ac_header_preproc=no
15775 rm -f conftest.err conftest.$ac_ext
15776 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15777 $as_echo "$ac_header_preproc" >&6; }
15779 # So? What about this header?
15780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15781 yes:no: )
15782 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15783 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15784 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15785 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15786 ac_header_preproc=yes
15788 no:yes:* )
15789 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15790 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15791 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15792 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15793 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15794 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15795 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15796 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15797 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15798 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15799 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15800 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15803 esac
15804 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15805 $as_echo_n "checking for gif_lib.h... " >&6; }
15806 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15807 $as_echo_n "(cached) " >&6
15808 else
15809 ac_cv_header_gif_lib_h=$ac_header_preproc
15811 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15812 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15815 if test $ac_cv_header_gif_lib_h = yes; then
15816 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15817 # Earlier versions can crash Emacs.
15818 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15819 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15820 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15821 $as_echo_n "(cached) " >&6
15822 else
15823 ac_check_lib_save_LIBS=$LIBS
15824 LIBS="-lgif $LIBS"
15825 cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h. */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15832 /* Override any GCC internal prototype to avoid an error.
15833 Use char because int might match the return type of a GCC
15834 builtin and then its argument prototype would still apply. */
15835 #ifdef __cplusplus
15836 extern "C"
15837 #endif
15838 char EGifPutExtensionLast ();
15840 main ()
15842 return EGifPutExtensionLast ();
15844 return 0;
15846 _ACEOF
15847 rm -f conftest.$ac_objext conftest$ac_exeext
15848 if { (ac_try="$ac_link"
15849 case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15852 esac
15853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15854 $as_echo "$ac_try_echo") >&5
15855 (eval "$ac_link") 2>conftest.er1
15856 ac_status=$?
15857 grep -v '^ *+' conftest.er1 >conftest.err
15858 rm -f conftest.er1
15859 cat conftest.err >&5
15860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } && {
15862 test -z "$ac_c_werror_flag" ||
15863 test ! -s conftest.err
15864 } && test -s conftest$ac_exeext && {
15865 test "$cross_compiling" = yes ||
15866 $as_test_x conftest$ac_exeext
15867 }; then
15868 ac_cv_lib_gif_EGifPutExtensionLast=yes
15869 else
15870 $as_echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15873 ac_cv_lib_gif_EGifPutExtensionLast=no
15876 rm -rf conftest.dSYM
15877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15878 conftest$ac_exeext conftest.$ac_ext
15879 LIBS=$ac_check_lib_save_LIBS
15881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15882 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15883 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15884 HAVE_GIF=yes
15885 else
15886 HAVE_GIF=maybe
15893 if test "$HAVE_GIF" = yes; then
15894 LIBGIF=-lgif
15895 elif test "$HAVE_GIF" = maybe; then
15896 # If gif_lib.h but no libgif, try libungif.
15897 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15898 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15899 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15900 $as_echo_n "(cached) " >&6
15901 else
15902 ac_check_lib_save_LIBS=$LIBS
15903 LIBS="-lungif $LIBS"
15904 cat >conftest.$ac_ext <<_ACEOF
15905 /* confdefs.h. */
15906 _ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15911 /* Override any GCC internal prototype to avoid an error.
15912 Use char because int might match the return type of a GCC
15913 builtin and then its argument prototype would still apply. */
15914 #ifdef __cplusplus
15915 extern "C"
15916 #endif
15917 char EGifPutExtensionLast ();
15919 main ()
15921 return EGifPutExtensionLast ();
15923 return 0;
15925 _ACEOF
15926 rm -f conftest.$ac_objext conftest$ac_exeext
15927 if { (ac_try="$ac_link"
15928 case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15931 esac
15932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15933 $as_echo "$ac_try_echo") >&5
15934 (eval "$ac_link") 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest$ac_exeext && {
15944 test "$cross_compiling" = yes ||
15945 $as_test_x conftest$ac_exeext
15946 }; then
15947 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15948 else
15949 $as_echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 ac_cv_lib_ungif_EGifPutExtensionLast=no
15955 rm -rf conftest.dSYM
15956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15957 conftest$ac_exeext conftest.$ac_ext
15958 LIBS=$ac_check_lib_save_LIBS
15960 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15961 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15962 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15963 HAVE_GIF=yes
15964 else
15965 HAVE_GIF=no
15968 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15971 if test "${HAVE_GIF}" = "yes"; then
15973 cat >>confdefs.h <<\_ACEOF
15974 #define HAVE_GIF 1
15975 _ACEOF
15981 if test "${HAVE_X11}" = "yes"; then
15982 MISSING=""
15983 WITH_NO=""
15984 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15985 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15986 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15987 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15988 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15989 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15990 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15991 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15992 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15993 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15995 if test "X${MISSING}" != X; then
15996 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15997 $MISSING
15998 Maybe some development libraries/packages are missing?
15999 If you don't want to link with them give
16000 $WITH_NO
16001 as options to configure" >&5
16002 $as_echo "$as_me: error: The following required libraries were not found:
16003 $MISSING
16004 Maybe some development libraries/packages are missing?
16005 If you don't want to link with them give
16006 $WITH_NO
16007 as options to configure" >&2;}
16008 { (exit 1); exit 1; }; }
16012 ### Use -lgpm if available, unless `--with-gpm=no'.
16013 HAVE_GPM=no
16014 LIBGPM=
16015 MOUSE_SUPPORT=
16016 if test "${with_gpm}" != "no"; then
16017 if test "${ac_cv_header_gpm_h+set}" = set; then
16018 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16019 $as_echo_n "checking for gpm.h... " >&6; }
16020 if test "${ac_cv_header_gpm_h+set}" = set; then
16021 $as_echo_n "(cached) " >&6
16023 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16024 $as_echo "$ac_cv_header_gpm_h" >&6; }
16025 else
16026 # Is the header compilable?
16027 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16028 $as_echo_n "checking gpm.h usability... " >&6; }
16029 cat >conftest.$ac_ext <<_ACEOF
16030 /* confdefs.h. */
16031 _ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16035 $ac_includes_default
16036 #include <gpm.h>
16037 _ACEOF
16038 rm -f conftest.$ac_objext
16039 if { (ac_try="$ac_compile"
16040 case "(($ac_try" in
16041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16042 *) ac_try_echo=$ac_try;;
16043 esac
16044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16045 $as_echo "$ac_try_echo") >&5
16046 (eval "$ac_compile") 2>conftest.er1
16047 ac_status=$?
16048 grep -v '^ *+' conftest.er1 >conftest.err
16049 rm -f conftest.er1
16050 cat conftest.err >&5
16051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } && {
16053 test -z "$ac_c_werror_flag" ||
16054 test ! -s conftest.err
16055 } && test -s conftest.$ac_objext; then
16056 ac_header_compiler=yes
16057 else
16058 $as_echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16061 ac_header_compiler=no
16064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16065 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16066 $as_echo "$ac_header_compiler" >&6; }
16068 # Is the header present?
16069 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16070 $as_echo_n "checking gpm.h presence... " >&6; }
16071 cat >conftest.$ac_ext <<_ACEOF
16072 /* confdefs.h. */
16073 _ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16077 #include <gpm.h>
16078 _ACEOF
16079 if { (ac_try="$ac_cpp conftest.$ac_ext"
16080 case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16083 esac
16084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16085 $as_echo "$ac_try_echo") >&5
16086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16087 ac_status=$?
16088 grep -v '^ *+' conftest.er1 >conftest.err
16089 rm -f conftest.er1
16090 cat conftest.err >&5
16091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } >/dev/null && {
16093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16094 test ! -s conftest.err
16095 }; then
16096 ac_header_preproc=yes
16097 else
16098 $as_echo "$as_me: failed program was:" >&5
16099 sed 's/^/| /' conftest.$ac_ext >&5
16101 ac_header_preproc=no
16104 rm -f conftest.err conftest.$ac_ext
16105 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16106 $as_echo "$ac_header_preproc" >&6; }
16108 # So? What about this header?
16109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16110 yes:no: )
16111 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16112 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16113 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16114 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16115 ac_header_preproc=yes
16117 no:yes:* )
16118 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16119 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16120 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16121 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16122 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16123 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16124 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16125 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16126 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16127 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16128 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16129 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16132 esac
16133 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16134 $as_echo_n "checking for gpm.h... " >&6; }
16135 if test "${ac_cv_header_gpm_h+set}" = set; then
16136 $as_echo_n "(cached) " >&6
16137 else
16138 ac_cv_header_gpm_h=$ac_header_preproc
16140 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16141 $as_echo "$ac_cv_header_gpm_h" >&6; }
16144 if test $ac_cv_header_gpm_h = yes; then
16145 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16146 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16147 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16148 $as_echo_n "(cached) " >&6
16149 else
16150 ac_check_lib_save_LIBS=$LIBS
16151 LIBS="-lgpm $LIBS"
16152 cat >conftest.$ac_ext <<_ACEOF
16153 /* confdefs.h. */
16154 _ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16159 /* Override any GCC internal prototype to avoid an error.
16160 Use char because int might match the return type of a GCC
16161 builtin and then its argument prototype would still apply. */
16162 #ifdef __cplusplus
16163 extern "C"
16164 #endif
16165 char Gpm_Open ();
16167 main ()
16169 return Gpm_Open ();
16171 return 0;
16173 _ACEOF
16174 rm -f conftest.$ac_objext conftest$ac_exeext
16175 if { (ac_try="$ac_link"
16176 case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16179 esac
16180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16181 $as_echo "$ac_try_echo") >&5
16182 (eval "$ac_link") 2>conftest.er1
16183 ac_status=$?
16184 grep -v '^ *+' conftest.er1 >conftest.err
16185 rm -f conftest.er1
16186 cat conftest.err >&5
16187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } && {
16189 test -z "$ac_c_werror_flag" ||
16190 test ! -s conftest.err
16191 } && test -s conftest$ac_exeext && {
16192 test "$cross_compiling" = yes ||
16193 $as_test_x conftest$ac_exeext
16194 }; then
16195 ac_cv_lib_gpm_Gpm_Open=yes
16196 else
16197 $as_echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16200 ac_cv_lib_gpm_Gpm_Open=no
16203 rm -rf conftest.dSYM
16204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16205 conftest$ac_exeext conftest.$ac_ext
16206 LIBS=$ac_check_lib_save_LIBS
16208 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16209 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16210 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16211 HAVE_GPM=yes
16218 if test "${HAVE_GPM}" = "yes"; then
16220 cat >>confdefs.h <<\_ACEOF
16221 #define HAVE_GPM 1
16222 _ACEOF
16224 LIBGPM=-lgpm
16225 ## May be reset below.
16226 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
16231 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16232 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16233 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16234 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16235 $as_echo_n "(cached) " >&6
16237 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16238 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16239 else
16240 # Is the header compilable?
16241 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16242 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16243 cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h. */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 $ac_includes_default
16250 #include <malloc/malloc.h>
16251 _ACEOF
16252 rm -f conftest.$ac_objext
16253 if { (ac_try="$ac_compile"
16254 case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16257 esac
16258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16259 $as_echo "$ac_try_echo") >&5
16260 (eval "$ac_compile") 2>conftest.er1
16261 ac_status=$?
16262 grep -v '^ *+' conftest.er1 >conftest.err
16263 rm -f conftest.er1
16264 cat conftest.err >&5
16265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } && {
16267 test -z "$ac_c_werror_flag" ||
16268 test ! -s conftest.err
16269 } && test -s conftest.$ac_objext; then
16270 ac_header_compiler=yes
16271 else
16272 $as_echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16275 ac_header_compiler=no
16278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16279 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16280 $as_echo "$ac_header_compiler" >&6; }
16282 # Is the header present?
16283 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16284 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16285 cat >conftest.$ac_ext <<_ACEOF
16286 /* confdefs.h. */
16287 _ACEOF
16288 cat confdefs.h >>conftest.$ac_ext
16289 cat >>conftest.$ac_ext <<_ACEOF
16290 /* end confdefs.h. */
16291 #include <malloc/malloc.h>
16292 _ACEOF
16293 if { (ac_try="$ac_cpp conftest.$ac_ext"
16294 case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297 esac
16298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16299 $as_echo "$ac_try_echo") >&5
16300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16301 ac_status=$?
16302 grep -v '^ *+' conftest.er1 >conftest.err
16303 rm -f conftest.er1
16304 cat conftest.err >&5
16305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } >/dev/null && {
16307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16308 test ! -s conftest.err
16309 }; then
16310 ac_header_preproc=yes
16311 else
16312 $as_echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16315 ac_header_preproc=no
16318 rm -f conftest.err conftest.$ac_ext
16319 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16320 $as_echo "$ac_header_preproc" >&6; }
16322 # So? What about this header?
16323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16324 yes:no: )
16325 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16326 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16327 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16328 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16329 ac_header_preproc=yes
16331 no:yes:* )
16332 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16333 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16334 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16335 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16336 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16337 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16338 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16339 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16340 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16341 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16342 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16343 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16346 esac
16347 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16348 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16349 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16350 $as_echo_n "(cached) " >&6
16351 else
16352 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16354 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16355 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16358 if test $ac_cv_header_malloc_malloc_h = yes; then
16360 cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_MALLOC_MALLOC_H 1
16362 _ACEOF
16368 C_SWITCH_X_SYSTEM=
16369 ### Use NeXTstep API to implement GUI.
16370 if test "${HAVE_NS}" = "yes"; then
16372 cat >>confdefs.h <<\_ACEOF
16373 #define HAVE_NS 1
16374 _ACEOF
16376 if test "${NS_IMPL_COCOA}" = "yes"; then
16378 cat >>confdefs.h <<\_ACEOF
16379 #define NS_IMPL_COCOA 1
16380 _ACEOF
16382 GNU_OBJC_CFLAGS=
16384 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16386 cat >>confdefs.h <<\_ACEOF
16387 #define NS_IMPL_GNUSTEP 1
16388 _ACEOF
16390 # See also .m.o rule in Makefile.in */
16391 # FIXME: are all these flags really needed? Document here why. */
16392 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16393 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16395 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16397 cat >>confdefs.h <<\_ACEOF
16398 #define NS_HAVE_NSINTEGER 1
16399 _ACEOF
16402 # We also have mouse menus.
16403 HAVE_MENUS=yes
16404 OTHER_FILES=ns-app
16408 ### Use session management (-lSM -lICE) if available
16409 HAVE_X_SM=no
16410 LIBXSM=
16411 if test "${HAVE_X11}" = "yes"; then
16412 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16413 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16414 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16415 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16416 $as_echo_n "(cached) " >&6
16418 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16419 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16420 else
16421 # Is the header compilable?
16422 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16423 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16424 cat >conftest.$ac_ext <<_ACEOF
16425 /* confdefs.h. */
16426 _ACEOF
16427 cat confdefs.h >>conftest.$ac_ext
16428 cat >>conftest.$ac_ext <<_ACEOF
16429 /* end confdefs.h. */
16430 $ac_includes_default
16431 #include <X11/SM/SMlib.h>
16432 _ACEOF
16433 rm -f conftest.$ac_objext
16434 if { (ac_try="$ac_compile"
16435 case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16438 esac
16439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16440 $as_echo "$ac_try_echo") >&5
16441 (eval "$ac_compile") 2>conftest.er1
16442 ac_status=$?
16443 grep -v '^ *+' conftest.er1 >conftest.err
16444 rm -f conftest.er1
16445 cat conftest.err >&5
16446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } && {
16448 test -z "$ac_c_werror_flag" ||
16449 test ! -s conftest.err
16450 } && test -s conftest.$ac_objext; then
16451 ac_header_compiler=yes
16452 else
16453 $as_echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16456 ac_header_compiler=no
16459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16460 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16461 $as_echo "$ac_header_compiler" >&6; }
16463 # Is the header present?
16464 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16465 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16466 cat >conftest.$ac_ext <<_ACEOF
16467 /* confdefs.h. */
16468 _ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16472 #include <X11/SM/SMlib.h>
16473 _ACEOF
16474 if { (ac_try="$ac_cpp conftest.$ac_ext"
16475 case "(($ac_try" in
16476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16477 *) ac_try_echo=$ac_try;;
16478 esac
16479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16480 $as_echo "$ac_try_echo") >&5
16481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16482 ac_status=$?
16483 grep -v '^ *+' conftest.er1 >conftest.err
16484 rm -f conftest.er1
16485 cat conftest.err >&5
16486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } >/dev/null && {
16488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16489 test ! -s conftest.err
16490 }; then
16491 ac_header_preproc=yes
16492 else
16493 $as_echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16496 ac_header_preproc=no
16499 rm -f conftest.err conftest.$ac_ext
16500 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16501 $as_echo "$ac_header_preproc" >&6; }
16503 # So? What about this header?
16504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16505 yes:no: )
16506 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16507 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16508 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16509 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16510 ac_header_preproc=yes
16512 no:yes:* )
16513 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16514 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16515 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16516 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16517 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16518 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16519 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16520 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16521 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16522 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16523 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16524 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16527 esac
16528 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16529 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16530 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16531 $as_echo_n "(cached) " >&6
16532 else
16533 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16535 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16536 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16539 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16540 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16541 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16542 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16543 $as_echo_n "(cached) " >&6
16544 else
16545 ac_check_lib_save_LIBS=$LIBS
16546 LIBS="-lSM -lICE $LIBS"
16547 cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h. */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16554 /* Override any GCC internal prototype to avoid an error.
16555 Use char because int might match the return type of a GCC
16556 builtin and then its argument prototype would still apply. */
16557 #ifdef __cplusplus
16558 extern "C"
16559 #endif
16560 char SmcOpenConnection ();
16562 main ()
16564 return SmcOpenConnection ();
16566 return 0;
16568 _ACEOF
16569 rm -f conftest.$ac_objext conftest$ac_exeext
16570 if { (ac_try="$ac_link"
16571 case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16574 esac
16575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16576 $as_echo "$ac_try_echo") >&5
16577 (eval "$ac_link") 2>conftest.er1
16578 ac_status=$?
16579 grep -v '^ *+' conftest.er1 >conftest.err
16580 rm -f conftest.er1
16581 cat conftest.err >&5
16582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } && {
16584 test -z "$ac_c_werror_flag" ||
16585 test ! -s conftest.err
16586 } && test -s conftest$ac_exeext && {
16587 test "$cross_compiling" = yes ||
16588 $as_test_x conftest$ac_exeext
16589 }; then
16590 ac_cv_lib_SM_SmcOpenConnection=yes
16591 else
16592 $as_echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16595 ac_cv_lib_SM_SmcOpenConnection=no
16598 rm -rf conftest.dSYM
16599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16600 conftest$ac_exeext conftest.$ac_ext
16601 LIBS=$ac_check_lib_save_LIBS
16603 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16604 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16605 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16606 HAVE_X_SM=yes
16613 if test "${HAVE_X_SM}" = "yes"; then
16615 cat >>confdefs.h <<\_ACEOF
16616 #define HAVE_X_SM 1
16617 _ACEOF
16619 LIBXSM="-lSM -lICE"
16620 case "$LIBS" in
16621 *-lSM*) ;;
16622 *) LIBS="$LIBXSM $LIBS" ;;
16623 esac
16628 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16629 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16630 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16631 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16632 $as_echo_n "(cached) " >&6
16633 else
16634 cat >conftest.$ac_ext <<_ACEOF
16635 /* confdefs.h. */
16636 _ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 #include <netdb.h>
16642 main ()
16644 return h_errno;
16646 return 0;
16648 _ACEOF
16649 rm -f conftest.$ac_objext conftest$ac_exeext
16650 if { (ac_try="$ac_link"
16651 case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16654 esac
16655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16656 $as_echo "$ac_try_echo") >&5
16657 (eval "$ac_link") 2>conftest.er1
16658 ac_status=$?
16659 grep -v '^ *+' conftest.er1 >conftest.err
16660 rm -f conftest.er1
16661 cat conftest.err >&5
16662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } && {
16664 test -z "$ac_c_werror_flag" ||
16665 test ! -s conftest.err
16666 } && test -s conftest$ac_exeext && {
16667 test "$cross_compiling" = yes ||
16668 $as_test_x conftest$ac_exeext
16669 }; then
16670 emacs_cv_netdb_declares_h_errno=yes
16671 else
16672 $as_echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 emacs_cv_netdb_declares_h_errno=no
16678 rm -rf conftest.dSYM
16679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16680 conftest$ac_exeext conftest.$ac_ext
16682 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16683 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16684 if test $emacs_cv_netdb_declares_h_errno = yes; then
16686 cat >>confdefs.h <<\_ACEOF
16687 #define HAVE_H_ERRNO 1
16688 _ACEOF
16692 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16693 # for constant arguments. Useless!
16694 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16695 $as_echo_n "checking for working alloca.h... " >&6; }
16696 if test "${ac_cv_working_alloca_h+set}" = set; then
16697 $as_echo_n "(cached) " >&6
16698 else
16699 cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h. */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 #include <alloca.h>
16707 main ()
16709 char *p = (char *) alloca (2 * sizeof (int));
16710 if (p) return 0;
16712 return 0;
16714 _ACEOF
16715 rm -f conftest.$ac_objext conftest$ac_exeext
16716 if { (ac_try="$ac_link"
16717 case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720 esac
16721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16722 $as_echo "$ac_try_echo") >&5
16723 (eval "$ac_link") 2>conftest.er1
16724 ac_status=$?
16725 grep -v '^ *+' conftest.er1 >conftest.err
16726 rm -f conftest.er1
16727 cat conftest.err >&5
16728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } && {
16730 test -z "$ac_c_werror_flag" ||
16731 test ! -s conftest.err
16732 } && test -s conftest$ac_exeext && {
16733 test "$cross_compiling" = yes ||
16734 $as_test_x conftest$ac_exeext
16735 }; then
16736 ac_cv_working_alloca_h=yes
16737 else
16738 $as_echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16741 ac_cv_working_alloca_h=no
16744 rm -rf conftest.dSYM
16745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16746 conftest$ac_exeext conftest.$ac_ext
16748 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16749 $as_echo "$ac_cv_working_alloca_h" >&6; }
16750 if test $ac_cv_working_alloca_h = yes; then
16752 cat >>confdefs.h <<\_ACEOF
16753 #define HAVE_ALLOCA_H 1
16754 _ACEOF
16758 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16759 $as_echo_n "checking for alloca... " >&6; }
16760 if test "${ac_cv_func_alloca_works+set}" = set; then
16761 $as_echo_n "(cached) " >&6
16762 else
16763 cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h. */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 #ifdef __GNUC__
16770 # define alloca __builtin_alloca
16771 #else
16772 # ifdef _MSC_VER
16773 # include <malloc.h>
16774 # define alloca _alloca
16775 # else
16776 # ifdef HAVE_ALLOCA_H
16777 # include <alloca.h>
16778 # else
16779 # ifdef _AIX
16780 #pragma alloca
16781 # else
16782 # ifndef alloca /* predefined by HP cc +Olibcalls */
16783 char *alloca ();
16784 # endif
16785 # endif
16786 # endif
16787 # endif
16788 #endif
16791 main ()
16793 char *p = (char *) alloca (1);
16794 if (p) return 0;
16796 return 0;
16798 _ACEOF
16799 rm -f conftest.$ac_objext conftest$ac_exeext
16800 if { (ac_try="$ac_link"
16801 case "(($ac_try" in
16802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803 *) ac_try_echo=$ac_try;;
16804 esac
16805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16806 $as_echo "$ac_try_echo") >&5
16807 (eval "$ac_link") 2>conftest.er1
16808 ac_status=$?
16809 grep -v '^ *+' conftest.er1 >conftest.err
16810 rm -f conftest.er1
16811 cat conftest.err >&5
16812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } && {
16814 test -z "$ac_c_werror_flag" ||
16815 test ! -s conftest.err
16816 } && test -s conftest$ac_exeext && {
16817 test "$cross_compiling" = yes ||
16818 $as_test_x conftest$ac_exeext
16819 }; then
16820 ac_cv_func_alloca_works=yes
16821 else
16822 $as_echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16825 ac_cv_func_alloca_works=no
16828 rm -rf conftest.dSYM
16829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16830 conftest$ac_exeext conftest.$ac_ext
16832 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16833 $as_echo "$ac_cv_func_alloca_works" >&6; }
16835 if test $ac_cv_func_alloca_works = yes; then
16837 cat >>confdefs.h <<\_ACEOF
16838 #define HAVE_ALLOCA 1
16839 _ACEOF
16841 else
16842 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16843 # that cause trouble. Some versions do not even contain alloca or
16844 # contain a buggy version. If you still want to use their alloca,
16845 # use ar to extract alloca.o from them instead of compiling alloca.c.
16847 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16849 cat >>confdefs.h <<\_ACEOF
16850 #define C_ALLOCA 1
16851 _ACEOF
16854 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16855 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16856 if test "${ac_cv_os_cray+set}" = set; then
16857 $as_echo_n "(cached) " >&6
16858 else
16859 cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h. */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 #if defined CRAY && ! defined CRAY2
16866 webecray
16867 #else
16868 wenotbecray
16869 #endif
16871 _ACEOF
16872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16873 $EGREP "webecray" >/dev/null 2>&1; then
16874 ac_cv_os_cray=yes
16875 else
16876 ac_cv_os_cray=no
16878 rm -f conftest*
16881 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16882 $as_echo "$ac_cv_os_cray" >&6; }
16883 if test $ac_cv_os_cray = yes; then
16884 for ac_func in _getb67 GETB67 getb67; do
16885 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16886 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16887 $as_echo_n "checking for $ac_func... " >&6; }
16888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16889 $as_echo_n "(cached) " >&6
16890 else
16891 cat >conftest.$ac_ext <<_ACEOF
16892 /* confdefs.h. */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16899 #define $ac_func innocuous_$ac_func
16901 /* System header to define __stub macros and hopefully few prototypes,
16902 which can conflict with char $ac_func (); below.
16903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16904 <limits.h> exists even on freestanding compilers. */
16906 #ifdef __STDC__
16907 # include <limits.h>
16908 #else
16909 # include <assert.h>
16910 #endif
16912 #undef $ac_func
16914 /* Override any GCC internal prototype to avoid an error.
16915 Use char because int might match the return type of a GCC
16916 builtin and then its argument prototype would still apply. */
16917 #ifdef __cplusplus
16918 extern "C"
16919 #endif
16920 char $ac_func ();
16921 /* The GNU C library defines this for functions which it implements
16922 to always fail with ENOSYS. Some functions are actually named
16923 something starting with __ and the normal name is an alias. */
16924 #if defined __stub_$ac_func || defined __stub___$ac_func
16925 choke me
16926 #endif
16929 main ()
16931 return $ac_func ();
16933 return 0;
16935 _ACEOF
16936 rm -f conftest.$ac_objext conftest$ac_exeext
16937 if { (ac_try="$ac_link"
16938 case "(($ac_try" in
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16941 esac
16942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16943 $as_echo "$ac_try_echo") >&5
16944 (eval "$ac_link") 2>conftest.er1
16945 ac_status=$?
16946 grep -v '^ *+' conftest.er1 >conftest.err
16947 rm -f conftest.er1
16948 cat conftest.err >&5
16949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } && {
16951 test -z "$ac_c_werror_flag" ||
16952 test ! -s conftest.err
16953 } && test -s conftest$ac_exeext && {
16954 test "$cross_compiling" = yes ||
16955 $as_test_x conftest$ac_exeext
16956 }; then
16957 eval "$as_ac_var=yes"
16958 else
16959 $as_echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 eval "$as_ac_var=no"
16965 rm -rf conftest.dSYM
16966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16967 conftest$ac_exeext conftest.$ac_ext
16969 ac_res=`eval 'as_val=${'$as_ac_var'}
16970 $as_echo "$as_val"'`
16971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16972 $as_echo "$ac_res" >&6; }
16973 if test `eval 'as_val=${'$as_ac_var'}
16974 $as_echo "$as_val"'` = yes; then
16976 cat >>confdefs.h <<_ACEOF
16977 #define CRAY_STACKSEG_END $ac_func
16978 _ACEOF
16980 break
16983 done
16986 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16987 $as_echo_n "checking stack direction for C alloca... " >&6; }
16988 if test "${ac_cv_c_stack_direction+set}" = set; then
16989 $as_echo_n "(cached) " >&6
16990 else
16991 if test "$cross_compiling" = yes; then
16992 ac_cv_c_stack_direction=0
16993 else
16994 cat >conftest.$ac_ext <<_ACEOF
16995 /* confdefs.h. */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000 $ac_includes_default
17002 find_stack_direction ()
17004 static char *addr = 0;
17005 auto char dummy;
17006 if (addr == 0)
17008 addr = &dummy;
17009 return find_stack_direction ();
17011 else
17012 return (&dummy > addr) ? 1 : -1;
17016 main ()
17018 return find_stack_direction () < 0;
17020 _ACEOF
17021 rm -f conftest$ac_exeext
17022 if { (ac_try="$ac_link"
17023 case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17026 esac
17027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17028 $as_echo "$ac_try_echo") >&5
17029 (eval "$ac_link") 2>&5
17030 ac_status=$?
17031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17033 { (case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17036 esac
17037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17038 $as_echo "$ac_try_echo") >&5
17039 (eval "$ac_try") 2>&5
17040 ac_status=$?
17041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; }; then
17043 ac_cv_c_stack_direction=1
17044 else
17045 $as_echo "$as_me: program exited with status $ac_status" >&5
17046 $as_echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17049 ( exit $ac_status )
17050 ac_cv_c_stack_direction=-1
17052 rm -rf conftest.dSYM
17053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17058 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17059 $as_echo "$ac_cv_c_stack_direction" >&6; }
17061 cat >>confdefs.h <<_ACEOF
17062 #define STACK_DIRECTION $ac_cv_c_stack_direction
17063 _ACEOF
17069 if test x"$ac_cv_func_alloca_works" != xyes; then
17070 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
17071 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
17072 { (exit 1); exit 1; }; }
17075 # fmod, logb, and frexp are found in -lm on most systems.
17076 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17078 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
17079 $as_echo_n "checking for sqrt in -lm... " >&6; }
17080 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17081 $as_echo_n "(cached) " >&6
17082 else
17083 ac_check_lib_save_LIBS=$LIBS
17084 LIBS="-lm $LIBS"
17085 cat >conftest.$ac_ext <<_ACEOF
17086 /* confdefs.h. */
17087 _ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17092 /* Override any GCC internal prototype to avoid an error.
17093 Use char because int might match the return type of a GCC
17094 builtin and then its argument prototype would still apply. */
17095 #ifdef __cplusplus
17096 extern "C"
17097 #endif
17098 char sqrt ();
17100 main ()
17102 return sqrt ();
17104 return 0;
17106 _ACEOF
17107 rm -f conftest.$ac_objext conftest$ac_exeext
17108 if { (ac_try="$ac_link"
17109 case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17112 esac
17113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17114 $as_echo "$ac_try_echo") >&5
17115 (eval "$ac_link") 2>conftest.er1
17116 ac_status=$?
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
17120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } && {
17122 test -z "$ac_c_werror_flag" ||
17123 test ! -s conftest.err
17124 } && test -s conftest$ac_exeext && {
17125 test "$cross_compiling" = yes ||
17126 $as_test_x conftest$ac_exeext
17127 }; then
17128 ac_cv_lib_m_sqrt=yes
17129 else
17130 $as_echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 ac_cv_lib_m_sqrt=no
17136 rm -rf conftest.dSYM
17137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17138 conftest$ac_exeext conftest.$ac_ext
17139 LIBS=$ac_check_lib_save_LIBS
17141 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
17142 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17143 if test $ac_cv_lib_m_sqrt = yes; then
17144 cat >>confdefs.h <<_ACEOF
17145 #define HAVE_LIBM 1
17146 _ACEOF
17148 LIBS="-lm $LIBS"
17153 # Check for mail-locking functions in a "mail" library. Probably this should
17154 # have the same check as for liblockfile below.
17155 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
17156 $as_echo_n "checking for maillock in -lmail... " >&6; }
17157 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17158 $as_echo_n "(cached) " >&6
17159 else
17160 ac_check_lib_save_LIBS=$LIBS
17161 LIBS="-lmail $LIBS"
17162 cat >conftest.$ac_ext <<_ACEOF
17163 /* confdefs.h. */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17169 /* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17172 #ifdef __cplusplus
17173 extern "C"
17174 #endif
17175 char maillock ();
17177 main ()
17179 return maillock ();
17181 return 0;
17183 _ACEOF
17184 rm -f conftest.$ac_objext conftest$ac_exeext
17185 if { (ac_try="$ac_link"
17186 case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17189 esac
17190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17191 $as_echo "$ac_try_echo") >&5
17192 (eval "$ac_link") 2>conftest.er1
17193 ac_status=$?
17194 grep -v '^ *+' conftest.er1 >conftest.err
17195 rm -f conftest.er1
17196 cat conftest.err >&5
17197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); } && {
17199 test -z "$ac_c_werror_flag" ||
17200 test ! -s conftest.err
17201 } && test -s conftest$ac_exeext && {
17202 test "$cross_compiling" = yes ||
17203 $as_test_x conftest$ac_exeext
17204 }; then
17205 ac_cv_lib_mail_maillock=yes
17206 else
17207 $as_echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17210 ac_cv_lib_mail_maillock=no
17213 rm -rf conftest.dSYM
17214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17215 conftest$ac_exeext conftest.$ac_ext
17216 LIBS=$ac_check_lib_save_LIBS
17218 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17219 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17220 if test $ac_cv_lib_mail_maillock = yes; then
17221 have_mail=yes
17222 else
17223 have_mail=no
17226 if test $have_mail = yes; then
17227 LIBS_MAIL=-lmail
17228 LIBS="$LIBS_MAIL $LIBS"
17230 cat >>confdefs.h <<\_ACEOF
17231 #define HAVE_LIBMAIL 1
17232 _ACEOF
17234 else
17235 LIBS_MAIL=
17237 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17238 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17239 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17240 $as_echo_n "(cached) " >&6
17241 else
17242 ac_check_lib_save_LIBS=$LIBS
17243 LIBS="-llockfile $LIBS"
17244 cat >conftest.$ac_ext <<_ACEOF
17245 /* confdefs.h. */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17251 /* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17254 #ifdef __cplusplus
17255 extern "C"
17256 #endif
17257 char maillock ();
17259 main ()
17261 return maillock ();
17263 return 0;
17265 _ACEOF
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (ac_try="$ac_link"
17268 case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17271 esac
17272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17273 $as_echo "$ac_try_echo") >&5
17274 (eval "$ac_link") 2>conftest.er1
17275 ac_status=$?
17276 grep -v '^ *+' conftest.er1 >conftest.err
17277 rm -f conftest.er1
17278 cat conftest.err >&5
17279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } && {
17281 test -z "$ac_c_werror_flag" ||
17282 test ! -s conftest.err
17283 } && test -s conftest$ac_exeext && {
17284 test "$cross_compiling" = yes ||
17285 $as_test_x conftest$ac_exeext
17286 }; then
17287 ac_cv_lib_lockfile_maillock=yes
17288 else
17289 $as_echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17292 ac_cv_lib_lockfile_maillock=no
17295 rm -rf conftest.dSYM
17296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17297 conftest$ac_exeext conftest.$ac_ext
17298 LIBS=$ac_check_lib_save_LIBS
17300 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17301 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17302 if test $ac_cv_lib_lockfile_maillock = yes; then
17303 have_lockfile=yes
17304 else
17305 have_lockfile=no
17308 if test $have_lockfile = yes; then
17309 LIBS_MAIL=-llockfile
17310 LIBS="$LIBS_MAIL $LIBS"
17312 cat >>confdefs.h <<\_ACEOF
17313 #define HAVE_LIBLOCKFILE 1
17314 _ACEOF
17316 else
17317 # If we have the shared liblockfile, assume we must use it for mail
17318 # locking (e.g. Debian). If we couldn't link against liblockfile
17319 # (no liblockfile.a installed), ensure that we don't need to.
17320 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17321 set dummy liblockfile.so; ac_word=$2
17322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17323 $as_echo_n "checking for $ac_word... " >&6; }
17324 if test "${ac_cv_prog_liblockfile+set}" = set; then
17325 $as_echo_n "(cached) " >&6
17326 else
17327 if test -n "$liblockfile"; then
17328 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17329 else
17330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17331 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17332 for as_dir in $as_dummy
17334 IFS=$as_save_IFS
17335 test -z "$as_dir" && as_dir=.
17336 for ac_exec_ext in '' $ac_executable_extensions; do
17337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17338 ac_cv_prog_liblockfile="yes"
17339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17340 break 2
17342 done
17343 done
17344 IFS=$as_save_IFS
17346 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17349 liblockfile=$ac_cv_prog_liblockfile
17350 if test -n "$liblockfile"; then
17351 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17352 $as_echo "$liblockfile" >&6; }
17353 else
17354 { $as_echo "$as_me:$LINENO: result: no" >&5
17355 $as_echo "no" >&6; }
17359 if test $ac_cv_prog_liblockfile = yes; then
17360 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17361 This probably means that movemail could lose mail.
17362 There may be a \`development' package to install containing liblockfile." >&5
17363 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17364 This probably means that movemail could lose mail.
17365 There may be a \`development' package to install containing liblockfile." >&2;}
17366 { (exit 1); exit 1; }; }
17370 for ac_func in touchlock
17372 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17373 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17374 $as_echo_n "checking for $ac_func... " >&6; }
17375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17376 $as_echo_n "(cached) " >&6
17377 else
17378 cat >conftest.$ac_ext <<_ACEOF
17379 /* confdefs.h. */
17380 _ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h. */
17384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17386 #define $ac_func innocuous_$ac_func
17388 /* System header to define __stub macros and hopefully few prototypes,
17389 which can conflict with char $ac_func (); below.
17390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17391 <limits.h> exists even on freestanding compilers. */
17393 #ifdef __STDC__
17394 # include <limits.h>
17395 #else
17396 # include <assert.h>
17397 #endif
17399 #undef $ac_func
17401 /* Override any GCC internal prototype to avoid an error.
17402 Use char because int might match the return type of a GCC
17403 builtin and then its argument prototype would still apply. */
17404 #ifdef __cplusplus
17405 extern "C"
17406 #endif
17407 char $ac_func ();
17408 /* The GNU C library defines this for functions which it implements
17409 to always fail with ENOSYS. Some functions are actually named
17410 something starting with __ and the normal name is an alias. */
17411 #if defined __stub_$ac_func || defined __stub___$ac_func
17412 choke me
17413 #endif
17416 main ()
17418 return $ac_func ();
17420 return 0;
17422 _ACEOF
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (ac_try="$ac_link"
17425 case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17428 esac
17429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17430 $as_echo "$ac_try_echo") >&5
17431 (eval "$ac_link") 2>conftest.er1
17432 ac_status=$?
17433 grep -v '^ *+' conftest.er1 >conftest.err
17434 rm -f conftest.er1
17435 cat conftest.err >&5
17436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } && {
17438 test -z "$ac_c_werror_flag" ||
17439 test ! -s conftest.err
17440 } && test -s conftest$ac_exeext && {
17441 test "$cross_compiling" = yes ||
17442 $as_test_x conftest$ac_exeext
17443 }; then
17444 eval "$as_ac_var=yes"
17445 else
17446 $as_echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17449 eval "$as_ac_var=no"
17452 rm -rf conftest.dSYM
17453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17454 conftest$ac_exeext conftest.$ac_ext
17456 ac_res=`eval 'as_val=${'$as_ac_var'}
17457 $as_echo "$as_val"'`
17458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17459 $as_echo "$ac_res" >&6; }
17460 if test `eval 'as_val=${'$as_ac_var'}
17461 $as_echo "$as_val"'` = yes; then
17462 cat >>confdefs.h <<_ACEOF
17463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17464 _ACEOF
17467 done
17470 for ac_header in maillock.h
17472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17474 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17475 $as_echo_n "checking for $ac_header... " >&6; }
17476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17477 $as_echo_n "(cached) " >&6
17479 ac_res=`eval 'as_val=${'$as_ac_Header'}
17480 $as_echo "$as_val"'`
17481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17482 $as_echo "$ac_res" >&6; }
17483 else
17484 # Is the header compilable?
17485 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17486 $as_echo_n "checking $ac_header usability... " >&6; }
17487 cat >conftest.$ac_ext <<_ACEOF
17488 /* confdefs.h. */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17493 $ac_includes_default
17494 #include <$ac_header>
17495 _ACEOF
17496 rm -f conftest.$ac_objext
17497 if { (ac_try="$ac_compile"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17501 esac
17502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17503 $as_echo "$ac_try_echo") >&5
17504 (eval "$ac_compile") 2>conftest.er1
17505 ac_status=$?
17506 grep -v '^ *+' conftest.er1 >conftest.err
17507 rm -f conftest.er1
17508 cat conftest.err >&5
17509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } && {
17511 test -z "$ac_c_werror_flag" ||
17512 test ! -s conftest.err
17513 } && test -s conftest.$ac_objext; then
17514 ac_header_compiler=yes
17515 else
17516 $as_echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17519 ac_header_compiler=no
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17524 $as_echo "$ac_header_compiler" >&6; }
17526 # Is the header present?
17527 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17528 $as_echo_n "checking $ac_header presence... " >&6; }
17529 cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h. */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535 #include <$ac_header>
17536 _ACEOF
17537 if { (ac_try="$ac_cpp conftest.$ac_ext"
17538 case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17541 esac
17542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17543 $as_echo "$ac_try_echo") >&5
17544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17545 ac_status=$?
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
17549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } >/dev/null && {
17551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17552 test ! -s conftest.err
17553 }; then
17554 ac_header_preproc=yes
17555 else
17556 $as_echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17559 ac_header_preproc=no
17562 rm -f conftest.err conftest.$ac_ext
17563 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17564 $as_echo "$ac_header_preproc" >&6; }
17566 # So? What about this header?
17567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17568 yes:no: )
17569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17570 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17572 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17573 ac_header_preproc=yes
17575 no:yes:* )
17576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17577 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17579 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17581 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17583 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17585 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17587 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17590 esac
17591 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17592 $as_echo_n "checking for $ac_header... " >&6; }
17593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17594 $as_echo_n "(cached) " >&6
17595 else
17596 eval "$as_ac_Header=\$ac_header_preproc"
17598 ac_res=`eval 'as_val=${'$as_ac_Header'}
17599 $as_echo "$as_val"'`
17600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17601 $as_echo "$ac_res" >&6; }
17604 if test `eval 'as_val=${'$as_ac_Header'}
17605 $as_echo "$as_val"'` = yes; then
17606 cat >>confdefs.h <<_ACEOF
17607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17608 _ACEOF
17612 done
17616 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17617 ## interlock access to the mail spool. The alternative is a lock file named
17618 ## /usr/spool/mail/$USER.lock.
17619 mail_lock=no
17620 case "$opsys" in
17621 aix4-2) mail_lock="lockf" ;;
17623 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
17625 ## On GNU/Linux systems, both methods are used by various mail programs.
17626 ## I assume most people are using newer mailers that have heard of flock.
17627 ## Change this if you need to.
17628 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17629 ## configure gets the right answers, and that means *NOT* using flock.
17630 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17631 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17632 ## Debian maintainer hasn't provided a clean fix for Emacs.
17633 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17634 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17635 ## correct logic. -- fx
17636 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17637 ## liblockfile is a Free Software replacement for libmail, used on
17638 ## Debian systems and elsewhere. -rfr.
17639 gnu-*)
17640 mail_lock="flock"
17641 if test $have_mail = yes || test $have_lockfile = yes; then
17642 test $ac_cv_header_maillock_h = yes && mail_lock=no
17645 esac
17647 BLESSMAIL_TARGET=
17648 case "$mail_lock" in
17649 flock)
17650 cat >>confdefs.h <<\_ACEOF
17651 #define MAIL_USE_FLOCK 1
17652 _ACEOF
17655 lockf)
17656 cat >>confdefs.h <<\_ACEOF
17657 #define MAIL_USE_LOCKF 1
17658 _ACEOF
17661 *) BLESSMAIL_TARGET="need-blessmail" ;;
17662 esac
17739 for ac_func in gethostname getdomainname dup2 \
17740 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17741 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17742 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17743 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17744 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17745 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17746 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17747 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17748 cfmakeraw cfsetspeed isnan copysign
17750 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17751 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17752 $as_echo_n "checking for $ac_func... " >&6; }
17753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17754 $as_echo_n "(cached) " >&6
17755 else
17756 cat >conftest.$ac_ext <<_ACEOF
17757 /* confdefs.h. */
17758 _ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17764 #define $ac_func innocuous_$ac_func
17766 /* System header to define __stub macros and hopefully few prototypes,
17767 which can conflict with char $ac_func (); below.
17768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17769 <limits.h> exists even on freestanding compilers. */
17771 #ifdef __STDC__
17772 # include <limits.h>
17773 #else
17774 # include <assert.h>
17775 #endif
17777 #undef $ac_func
17779 /* Override any GCC internal prototype to avoid an error.
17780 Use char because int might match the return type of a GCC
17781 builtin and then its argument prototype would still apply. */
17782 #ifdef __cplusplus
17783 extern "C"
17784 #endif
17785 char $ac_func ();
17786 /* The GNU C library defines this for functions which it implements
17787 to always fail with ENOSYS. Some functions are actually named
17788 something starting with __ and the normal name is an alias. */
17789 #if defined __stub_$ac_func || defined __stub___$ac_func
17790 choke me
17791 #endif
17794 main ()
17796 return $ac_func ();
17798 return 0;
17800 _ACEOF
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (ac_try="$ac_link"
17803 case "(($ac_try" in
17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17806 esac
17807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17808 $as_echo "$ac_try_echo") >&5
17809 (eval "$ac_link") 2>conftest.er1
17810 ac_status=$?
17811 grep -v '^ *+' conftest.er1 >conftest.err
17812 rm -f conftest.er1
17813 cat conftest.err >&5
17814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } && {
17816 test -z "$ac_c_werror_flag" ||
17817 test ! -s conftest.err
17818 } && test -s conftest$ac_exeext && {
17819 test "$cross_compiling" = yes ||
17820 $as_test_x conftest$ac_exeext
17821 }; then
17822 eval "$as_ac_var=yes"
17823 else
17824 $as_echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17827 eval "$as_ac_var=no"
17830 rm -rf conftest.dSYM
17831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17832 conftest$ac_exeext conftest.$ac_ext
17834 ac_res=`eval 'as_val=${'$as_ac_var'}
17835 $as_echo "$as_val"'`
17836 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17837 $as_echo "$ac_res" >&6; }
17838 if test `eval 'as_val=${'$as_ac_var'}
17839 $as_echo "$as_val"'` = yes; then
17840 cat >>confdefs.h <<_ACEOF
17841 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17842 _ACEOF
17845 done
17849 for ac_header in sys/un.h
17851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17853 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17854 $as_echo_n "checking for $ac_header... " >&6; }
17855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17856 $as_echo_n "(cached) " >&6
17858 ac_res=`eval 'as_val=${'$as_ac_Header'}
17859 $as_echo "$as_val"'`
17860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17861 $as_echo "$ac_res" >&6; }
17862 else
17863 # Is the header compilable?
17864 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17865 $as_echo_n "checking $ac_header usability... " >&6; }
17866 cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h. */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17872 $ac_includes_default
17873 #include <$ac_header>
17874 _ACEOF
17875 rm -f conftest.$ac_objext
17876 if { (ac_try="$ac_compile"
17877 case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17880 esac
17881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17882 $as_echo "$ac_try_echo") >&5
17883 (eval "$ac_compile") 2>conftest.er1
17884 ac_status=$?
17885 grep -v '^ *+' conftest.er1 >conftest.err
17886 rm -f conftest.er1
17887 cat conftest.err >&5
17888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } && {
17890 test -z "$ac_c_werror_flag" ||
17891 test ! -s conftest.err
17892 } && test -s conftest.$ac_objext; then
17893 ac_header_compiler=yes
17894 else
17895 $as_echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17898 ac_header_compiler=no
17901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17902 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17903 $as_echo "$ac_header_compiler" >&6; }
17905 # Is the header present?
17906 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17907 $as_echo_n "checking $ac_header presence... " >&6; }
17908 cat >conftest.$ac_ext <<_ACEOF
17909 /* confdefs.h. */
17910 _ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17914 #include <$ac_header>
17915 _ACEOF
17916 if { (ac_try="$ac_cpp conftest.$ac_ext"
17917 case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17920 esac
17921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17922 $as_echo "$ac_try_echo") >&5
17923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17924 ac_status=$?
17925 grep -v '^ *+' conftest.er1 >conftest.err
17926 rm -f conftest.er1
17927 cat conftest.err >&5
17928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } >/dev/null && {
17930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17931 test ! -s conftest.err
17932 }; then
17933 ac_header_preproc=yes
17934 else
17935 $as_echo "$as_me: failed program was:" >&5
17936 sed 's/^/| /' conftest.$ac_ext >&5
17938 ac_header_preproc=no
17941 rm -f conftest.err conftest.$ac_ext
17942 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17943 $as_echo "$ac_header_preproc" >&6; }
17945 # So? What about this header?
17946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17947 yes:no: )
17948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17949 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17952 ac_header_preproc=yes
17954 no:yes:* )
17955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17956 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17958 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17960 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17962 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17966 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17969 esac
17970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17971 $as_echo_n "checking for $ac_header... " >&6; }
17972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17973 $as_echo_n "(cached) " >&6
17974 else
17975 eval "$as_ac_Header=\$ac_header_preproc"
17977 ac_res=`eval 'as_val=${'$as_ac_Header'}
17978 $as_echo "$as_val"'`
17979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17980 $as_echo "$ac_res" >&6; }
17983 if test `eval 'as_val=${'$as_ac_Header'}
17984 $as_echo "$as_val"'` = yes; then
17985 cat >>confdefs.h <<_ACEOF
17986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17987 _ACEOF
17991 done
17998 for ac_header in $ac_header_list
18000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18002 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18003 $as_echo_n "checking for $ac_header... " >&6; }
18004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18005 $as_echo_n "(cached) " >&6
18007 ac_res=`eval 'as_val=${'$as_ac_Header'}
18008 $as_echo "$as_val"'`
18009 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18010 $as_echo "$ac_res" >&6; }
18011 else
18012 # Is the header compilable?
18013 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18014 $as_echo_n "checking $ac_header usability... " >&6; }
18015 cat >conftest.$ac_ext <<_ACEOF
18016 /* confdefs.h. */
18017 _ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18021 $ac_includes_default
18022 #include <$ac_header>
18023 _ACEOF
18024 rm -f conftest.$ac_objext
18025 if { (ac_try="$ac_compile"
18026 case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18029 esac
18030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18031 $as_echo "$ac_try_echo") >&5
18032 (eval "$ac_compile") 2>conftest.er1
18033 ac_status=$?
18034 grep -v '^ *+' conftest.er1 >conftest.err
18035 rm -f conftest.er1
18036 cat conftest.err >&5
18037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } && {
18039 test -z "$ac_c_werror_flag" ||
18040 test ! -s conftest.err
18041 } && test -s conftest.$ac_objext; then
18042 ac_header_compiler=yes
18043 else
18044 $as_echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18047 ac_header_compiler=no
18050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18051 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18052 $as_echo "$ac_header_compiler" >&6; }
18054 # Is the header present?
18055 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18056 $as_echo_n "checking $ac_header presence... " >&6; }
18057 cat >conftest.$ac_ext <<_ACEOF
18058 /* confdefs.h. */
18059 _ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h. */
18063 #include <$ac_header>
18064 _ACEOF
18065 if { (ac_try="$ac_cpp conftest.$ac_ext"
18066 case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18069 esac
18070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18071 $as_echo "$ac_try_echo") >&5
18072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18073 ac_status=$?
18074 grep -v '^ *+' conftest.er1 >conftest.err
18075 rm -f conftest.er1
18076 cat conftest.err >&5
18077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); } >/dev/null && {
18079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18080 test ! -s conftest.err
18081 }; then
18082 ac_header_preproc=yes
18083 else
18084 $as_echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18087 ac_header_preproc=no
18090 rm -f conftest.err conftest.$ac_ext
18091 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18092 $as_echo "$ac_header_preproc" >&6; }
18094 # So? What about this header?
18095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18096 yes:no: )
18097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18098 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18100 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18101 ac_header_preproc=yes
18103 no:yes:* )
18104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18105 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18107 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18109 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18111 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18113 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18115 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18118 esac
18119 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18120 $as_echo_n "checking for $ac_header... " >&6; }
18121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18122 $as_echo_n "(cached) " >&6
18123 else
18124 eval "$as_ac_Header=\$ac_header_preproc"
18126 ac_res=`eval 'as_val=${'$as_ac_Header'}
18127 $as_echo "$as_val"'`
18128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18129 $as_echo "$ac_res" >&6; }
18132 if test `eval 'as_val=${'$as_ac_Header'}
18133 $as_echo "$as_val"'` = yes; then
18134 cat >>confdefs.h <<_ACEOF
18135 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18136 _ACEOF
18140 done
18150 for ac_func in $ac_func_list
18152 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18153 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18154 $as_echo_n "checking for $ac_func... " >&6; }
18155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18156 $as_echo_n "(cached) " >&6
18157 else
18158 cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h. */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18166 #define $ac_func innocuous_$ac_func
18168 /* System header to define __stub macros and hopefully few prototypes,
18169 which can conflict with char $ac_func (); below.
18170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18171 <limits.h> exists even on freestanding compilers. */
18173 #ifdef __STDC__
18174 # include <limits.h>
18175 #else
18176 # include <assert.h>
18177 #endif
18179 #undef $ac_func
18181 /* Override any GCC internal prototype to avoid an error.
18182 Use char because int might match the return type of a GCC
18183 builtin and then its argument prototype would still apply. */
18184 #ifdef __cplusplus
18185 extern "C"
18186 #endif
18187 char $ac_func ();
18188 /* The GNU C library defines this for functions which it implements
18189 to always fail with ENOSYS. Some functions are actually named
18190 something starting with __ and the normal name is an alias. */
18191 #if defined __stub_$ac_func || defined __stub___$ac_func
18192 choke me
18193 #endif
18196 main ()
18198 return $ac_func ();
18200 return 0;
18202 _ACEOF
18203 rm -f conftest.$ac_objext conftest$ac_exeext
18204 if { (ac_try="$ac_link"
18205 case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18208 esac
18209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18210 $as_echo "$ac_try_echo") >&5
18211 (eval "$ac_link") 2>conftest.er1
18212 ac_status=$?
18213 grep -v '^ *+' conftest.er1 >conftest.err
18214 rm -f conftest.er1
18215 cat conftest.err >&5
18216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } && {
18218 test -z "$ac_c_werror_flag" ||
18219 test ! -s conftest.err
18220 } && test -s conftest$ac_exeext && {
18221 test "$cross_compiling" = yes ||
18222 $as_test_x conftest$ac_exeext
18223 }; then
18224 eval "$as_ac_var=yes"
18225 else
18226 $as_echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18229 eval "$as_ac_var=no"
18232 rm -rf conftest.dSYM
18233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18234 conftest$ac_exeext conftest.$ac_ext
18236 ac_res=`eval 'as_val=${'$as_ac_var'}
18237 $as_echo "$as_val"'`
18238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18239 $as_echo "$ac_res" >&6; }
18240 if test `eval 'as_val=${'$as_ac_var'}
18241 $as_echo "$as_val"'` = yes; then
18242 cat >>confdefs.h <<_ACEOF
18243 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18244 _ACEOF
18247 done
18265 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18266 $as_echo_n "checking for working mktime... " >&6; }
18267 if test "${ac_cv_func_working_mktime+set}" = set; then
18268 $as_echo_n "(cached) " >&6
18269 else
18270 if test "$cross_compiling" = yes; then
18271 ac_cv_func_working_mktime=no
18272 else
18273 cat >conftest.$ac_ext <<_ACEOF
18274 /* confdefs.h. */
18275 _ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18279 /* Test program from Paul Eggert and Tony Leneis. */
18280 #ifdef TIME_WITH_SYS_TIME
18281 # include <sys/time.h>
18282 # include <time.h>
18283 #else
18284 # ifdef HAVE_SYS_TIME_H
18285 # include <sys/time.h>
18286 # else
18287 # include <time.h>
18288 # endif
18289 #endif
18291 #include <limits.h>
18292 #include <stdlib.h>
18294 #ifdef HAVE_UNISTD_H
18295 # include <unistd.h>
18296 #endif
18298 #ifndef HAVE_ALARM
18299 # define alarm(X) /* empty */
18300 #endif
18302 /* Work around redefinition to rpl_putenv by other config tests. */
18303 #undef putenv
18305 static time_t time_t_max;
18306 static time_t time_t_min;
18308 /* Values we'll use to set the TZ environment variable. */
18309 static char *tz_strings[] = {
18310 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18311 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18313 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18315 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18316 Based on a problem report from Andreas Jaeger. */
18317 static int
18318 spring_forward_gap ()
18320 /* glibc (up to about 1998-10-07) failed this test. */
18321 struct tm tm;
18323 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18324 instead of "TZ=America/Vancouver" in order to detect the bug even
18325 on systems that don't support the Olson extension, or don't have the
18326 full zoneinfo tables installed. */
18327 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18329 tm.tm_year = 98;
18330 tm.tm_mon = 3;
18331 tm.tm_mday = 5;
18332 tm.tm_hour = 2;
18333 tm.tm_min = 0;
18334 tm.tm_sec = 0;
18335 tm.tm_isdst = -1;
18336 return mktime (&tm) != (time_t) -1;
18339 static int
18340 mktime_test1 (now)
18341 time_t now;
18343 struct tm *lt;
18344 return ! (lt = localtime (&now)) || mktime (lt) == now;
18347 static int
18348 mktime_test (now)
18349 time_t now;
18351 return (mktime_test1 (now)
18352 && mktime_test1 ((time_t) (time_t_max - now))
18353 && mktime_test1 ((time_t) (time_t_min + now)));
18356 static int
18357 irix_6_4_bug ()
18359 /* Based on code from Ariel Faigon. */
18360 struct tm tm;
18361 tm.tm_year = 96;
18362 tm.tm_mon = 3;
18363 tm.tm_mday = 0;
18364 tm.tm_hour = 0;
18365 tm.tm_min = 0;
18366 tm.tm_sec = 0;
18367 tm.tm_isdst = -1;
18368 mktime (&tm);
18369 return tm.tm_mon == 2 && tm.tm_mday == 31;
18372 static int
18373 bigtime_test (j)
18374 int j;
18376 struct tm tm;
18377 time_t now;
18378 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18379 now = mktime (&tm);
18380 if (now != (time_t) -1)
18382 struct tm *lt = localtime (&now);
18383 if (! (lt
18384 && lt->tm_year == tm.tm_year
18385 && lt->tm_mon == tm.tm_mon
18386 && lt->tm_mday == tm.tm_mday
18387 && lt->tm_hour == tm.tm_hour
18388 && lt->tm_min == tm.tm_min
18389 && lt->tm_sec == tm.tm_sec
18390 && lt->tm_yday == tm.tm_yday
18391 && lt->tm_wday == tm.tm_wday
18392 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18393 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18394 return 0;
18396 return 1;
18399 static int
18400 year_2050_test ()
18402 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18403 ignoring leap seconds. */
18404 unsigned long int answer = 2527315200UL;
18406 struct tm tm;
18407 time_t t;
18408 tm.tm_year = 2050 - 1900;
18409 tm.tm_mon = 2 - 1;
18410 tm.tm_mday = 1;
18411 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18412 tm.tm_isdst = -1;
18414 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18415 instead of "TZ=America/Vancouver" in order to detect the bug even
18416 on systems that don't support the Olson extension, or don't have the
18417 full zoneinfo tables installed. */
18418 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18420 t = mktime (&tm);
18422 /* Check that the result is either a failure, or close enough
18423 to the correct answer that we can assume the discrepancy is
18424 due to leap seconds. */
18425 return (t == (time_t) -1
18426 || (0 < t && answer - 120 <= t && t <= answer + 120));
18430 main ()
18432 time_t t, delta;
18433 int i, j;
18435 /* This test makes some buggy mktime implementations loop.
18436 Give up after 60 seconds; a mktime slower than that
18437 isn't worth using anyway. */
18438 alarm (60);
18440 for (;;)
18442 t = (time_t_max << 1) + 1;
18443 if (t <= time_t_max)
18444 break;
18445 time_t_max = t;
18447 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18449 delta = time_t_max / 997; /* a suitable prime number */
18450 for (i = 0; i < N_STRINGS; i++)
18452 if (tz_strings[i])
18453 putenv (tz_strings[i]);
18455 for (t = 0; t <= time_t_max - delta; t += delta)
18456 if (! mktime_test (t))
18457 return 1;
18458 if (! (mktime_test ((time_t) 1)
18459 && mktime_test ((time_t) (60 * 60))
18460 && mktime_test ((time_t) (60 * 60 * 24))))
18461 return 1;
18463 for (j = 1; ; j <<= 1)
18464 if (! bigtime_test (j))
18465 return 1;
18466 else if (INT_MAX / 2 < j)
18467 break;
18468 if (! bigtime_test (INT_MAX))
18469 return 1;
18471 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18473 _ACEOF
18474 rm -f conftest$ac_exeext
18475 if { (ac_try="$ac_link"
18476 case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18479 esac
18480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18481 $as_echo "$ac_try_echo") >&5
18482 (eval "$ac_link") 2>&5
18483 ac_status=$?
18484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18486 { (case "(($ac_try" in
18487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488 *) ac_try_echo=$ac_try;;
18489 esac
18490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18491 $as_echo "$ac_try_echo") >&5
18492 (eval "$ac_try") 2>&5
18493 ac_status=$?
18494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; }; then
18496 ac_cv_func_working_mktime=yes
18497 else
18498 $as_echo "$as_me: program exited with status $ac_status" >&5
18499 $as_echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18502 ( exit $ac_status )
18503 ac_cv_func_working_mktime=no
18505 rm -rf conftest.dSYM
18506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18511 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18512 $as_echo "$ac_cv_func_working_mktime" >&6; }
18513 if test $ac_cv_func_working_mktime = no; then
18514 case " $LIBOBJS " in
18515 *" mktime.$ac_objext "* ) ;;
18516 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18518 esac
18522 if test "$ac_cv_func_working_mktime" = no; then
18524 cat >>confdefs.h <<\_ACEOF
18525 #define BROKEN_MKTIME 1
18526 _ACEOF
18530 ac_have_func=no # yes means we've found a way to get the load average.
18532 # Make sure getloadavg.c is where it belongs, at configure-time.
18533 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18534 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18535 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18536 { (exit 1); exit 1; }; }
18538 ac_save_LIBS=$LIBS
18540 # Check for getloadavg, but be sure not to touch the cache variable.
18541 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18542 $as_echo_n "checking for getloadavg... " >&6; }
18543 if test "${ac_cv_func_getloadavg+set}" = set; then
18544 $as_echo_n "(cached) " >&6
18545 else
18546 cat >conftest.$ac_ext <<_ACEOF
18547 /* confdefs.h. */
18548 _ACEOF
18549 cat confdefs.h >>conftest.$ac_ext
18550 cat >>conftest.$ac_ext <<_ACEOF
18551 /* end confdefs.h. */
18552 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18554 #define getloadavg innocuous_getloadavg
18556 /* System header to define __stub macros and hopefully few prototypes,
18557 which can conflict with char getloadavg (); below.
18558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18559 <limits.h> exists even on freestanding compilers. */
18561 #ifdef __STDC__
18562 # include <limits.h>
18563 #else
18564 # include <assert.h>
18565 #endif
18567 #undef getloadavg
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 getloadavg ();
18576 /* The GNU C library defines this for functions which it implements
18577 to always fail with ENOSYS. Some functions are actually named
18578 something starting with __ and the normal name is an alias. */
18579 #if defined __stub_getloadavg || defined __stub___getloadavg
18580 choke me
18581 #endif
18584 main ()
18586 return getloadavg ();
18588 return 0;
18590 _ACEOF
18591 rm -f conftest.$ac_objext conftest$ac_exeext
18592 if { (ac_try="$ac_link"
18593 case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18596 esac
18597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18598 $as_echo "$ac_try_echo") >&5
18599 (eval "$ac_link") 2>conftest.er1
18600 ac_status=$?
18601 grep -v '^ *+' conftest.er1 >conftest.err
18602 rm -f conftest.er1
18603 cat conftest.err >&5
18604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } && {
18606 test -z "$ac_c_werror_flag" ||
18607 test ! -s conftest.err
18608 } && test -s conftest$ac_exeext && {
18609 test "$cross_compiling" = yes ||
18610 $as_test_x conftest$ac_exeext
18611 }; then
18612 ac_cv_func_getloadavg=yes
18613 else
18614 $as_echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18617 ac_cv_func_getloadavg=no
18620 rm -rf conftest.dSYM
18621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18622 conftest$ac_exeext conftest.$ac_ext
18624 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18625 $as_echo "$ac_cv_func_getloadavg" >&6; }
18626 if test $ac_cv_func_getloadavg = yes; then
18627 exit 0
18628 else
18629 exit 1
18631 ) && ac_have_func=yes
18633 # On HPUX9, an unprivileged user can get load averages through this function.
18635 for ac_func in pstat_getdynamic
18637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18638 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18639 $as_echo_n "checking for $ac_func... " >&6; }
18640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18641 $as_echo_n "(cached) " >&6
18642 else
18643 cat >conftest.$ac_ext <<_ACEOF
18644 /* confdefs.h. */
18645 _ACEOF
18646 cat confdefs.h >>conftest.$ac_ext
18647 cat >>conftest.$ac_ext <<_ACEOF
18648 /* end confdefs.h. */
18649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18651 #define $ac_func innocuous_$ac_func
18653 /* System header to define __stub macros and hopefully few prototypes,
18654 which can conflict with char $ac_func (); below.
18655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18656 <limits.h> exists even on freestanding compilers. */
18658 #ifdef __STDC__
18659 # include <limits.h>
18660 #else
18661 # include <assert.h>
18662 #endif
18664 #undef $ac_func
18666 /* Override any GCC internal prototype to avoid an error.
18667 Use char because int might match the return type of a GCC
18668 builtin and then its argument prototype would still apply. */
18669 #ifdef __cplusplus
18670 extern "C"
18671 #endif
18672 char $ac_func ();
18673 /* The GNU C library defines this for functions which it implements
18674 to always fail with ENOSYS. Some functions are actually named
18675 something starting with __ and the normal name is an alias. */
18676 #if defined __stub_$ac_func || defined __stub___$ac_func
18677 choke me
18678 #endif
18681 main ()
18683 return $ac_func ();
18685 return 0;
18687 _ACEOF
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (ac_try="$ac_link"
18690 case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18693 esac
18694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18695 $as_echo "$ac_try_echo") >&5
18696 (eval "$ac_link") 2>conftest.er1
18697 ac_status=$?
18698 grep -v '^ *+' conftest.er1 >conftest.err
18699 rm -f conftest.er1
18700 cat conftest.err >&5
18701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } && {
18703 test -z "$ac_c_werror_flag" ||
18704 test ! -s conftest.err
18705 } && test -s conftest$ac_exeext && {
18706 test "$cross_compiling" = yes ||
18707 $as_test_x conftest$ac_exeext
18708 }; then
18709 eval "$as_ac_var=yes"
18710 else
18711 $as_echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18714 eval "$as_ac_var=no"
18717 rm -rf conftest.dSYM
18718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18719 conftest$ac_exeext conftest.$ac_ext
18721 ac_res=`eval 'as_val=${'$as_ac_var'}
18722 $as_echo "$as_val"'`
18723 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18724 $as_echo "$ac_res" >&6; }
18725 if test `eval 'as_val=${'$as_ac_var'}
18726 $as_echo "$as_val"'` = yes; then
18727 cat >>confdefs.h <<_ACEOF
18728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18729 _ACEOF
18732 done
18735 # Solaris has libkstat which does not require root.
18737 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18738 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18739 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18740 $as_echo_n "(cached) " >&6
18741 else
18742 ac_check_lib_save_LIBS=$LIBS
18743 LIBS="-lkstat $LIBS"
18744 cat >conftest.$ac_ext <<_ACEOF
18745 /* confdefs.h. */
18746 _ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h. */
18751 /* Override any GCC internal prototype to avoid an error.
18752 Use char because int might match the return type of a GCC
18753 builtin and then its argument prototype would still apply. */
18754 #ifdef __cplusplus
18755 extern "C"
18756 #endif
18757 char kstat_open ();
18759 main ()
18761 return kstat_open ();
18763 return 0;
18765 _ACEOF
18766 rm -f conftest.$ac_objext conftest$ac_exeext
18767 if { (ac_try="$ac_link"
18768 case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18771 esac
18772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18773 $as_echo "$ac_try_echo") >&5
18774 (eval "$ac_link") 2>conftest.er1
18775 ac_status=$?
18776 grep -v '^ *+' conftest.er1 >conftest.err
18777 rm -f conftest.er1
18778 cat conftest.err >&5
18779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } && {
18781 test -z "$ac_c_werror_flag" ||
18782 test ! -s conftest.err
18783 } && test -s conftest$ac_exeext && {
18784 test "$cross_compiling" = yes ||
18785 $as_test_x conftest$ac_exeext
18786 }; then
18787 ac_cv_lib_kstat_kstat_open=yes
18788 else
18789 $as_echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18792 ac_cv_lib_kstat_kstat_open=no
18795 rm -rf conftest.dSYM
18796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18797 conftest$ac_exeext conftest.$ac_ext
18798 LIBS=$ac_check_lib_save_LIBS
18800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18801 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18802 if test $ac_cv_lib_kstat_kstat_open = yes; then
18803 cat >>confdefs.h <<_ACEOF
18804 #define HAVE_LIBKSTAT 1
18805 _ACEOF
18807 LIBS="-lkstat $LIBS"
18811 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18813 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18814 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18815 # to get the right answer into the cache.
18816 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18817 if test $ac_have_func = no; then
18818 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18819 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18820 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18821 $as_echo_n "(cached) " >&6
18822 else
18823 ac_check_lib_save_LIBS=$LIBS
18824 LIBS="-lelf $LIBS"
18825 cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h. */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18832 /* Override any GCC internal prototype to avoid an error.
18833 Use char because int might match the return type of a GCC
18834 builtin and then its argument prototype would still apply. */
18835 #ifdef __cplusplus
18836 extern "C"
18837 #endif
18838 char elf_begin ();
18840 main ()
18842 return elf_begin ();
18844 return 0;
18846 _ACEOF
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (ac_try="$ac_link"
18849 case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18852 esac
18853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18854 $as_echo "$ac_try_echo") >&5
18855 (eval "$ac_link") 2>conftest.er1
18856 ac_status=$?
18857 grep -v '^ *+' conftest.er1 >conftest.err
18858 rm -f conftest.er1
18859 cat conftest.err >&5
18860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } && {
18862 test -z "$ac_c_werror_flag" ||
18863 test ! -s conftest.err
18864 } && test -s conftest$ac_exeext && {
18865 test "$cross_compiling" = yes ||
18866 $as_test_x conftest$ac_exeext
18867 }; then
18868 ac_cv_lib_elf_elf_begin=yes
18869 else
18870 $as_echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 ac_cv_lib_elf_elf_begin=no
18876 rm -rf conftest.dSYM
18877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18878 conftest$ac_exeext conftest.$ac_ext
18879 LIBS=$ac_check_lib_save_LIBS
18881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18882 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18883 if test $ac_cv_lib_elf_elf_begin = yes; then
18884 LIBS="-lelf $LIBS"
18888 if test $ac_have_func = no; then
18889 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18890 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18891 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18892 $as_echo_n "(cached) " >&6
18893 else
18894 ac_check_lib_save_LIBS=$LIBS
18895 LIBS="-lkvm $LIBS"
18896 cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h. */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18903 /* Override any GCC internal prototype to avoid an error.
18904 Use char because int might match the return type of a GCC
18905 builtin and then its argument prototype would still apply. */
18906 #ifdef __cplusplus
18907 extern "C"
18908 #endif
18909 char kvm_open ();
18911 main ()
18913 return kvm_open ();
18915 return 0;
18917 _ACEOF
18918 rm -f conftest.$ac_objext conftest$ac_exeext
18919 if { (ac_try="$ac_link"
18920 case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18923 esac
18924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18925 $as_echo "$ac_try_echo") >&5
18926 (eval "$ac_link") 2>conftest.er1
18927 ac_status=$?
18928 grep -v '^ *+' conftest.er1 >conftest.err
18929 rm -f conftest.er1
18930 cat conftest.err >&5
18931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } && {
18933 test -z "$ac_c_werror_flag" ||
18934 test ! -s conftest.err
18935 } && test -s conftest$ac_exeext && {
18936 test "$cross_compiling" = yes ||
18937 $as_test_x conftest$ac_exeext
18938 }; then
18939 ac_cv_lib_kvm_kvm_open=yes
18940 else
18941 $as_echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 ac_cv_lib_kvm_kvm_open=no
18947 rm -rf conftest.dSYM
18948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18949 conftest$ac_exeext conftest.$ac_ext
18950 LIBS=$ac_check_lib_save_LIBS
18952 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18953 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18954 if test $ac_cv_lib_kvm_kvm_open = yes; then
18955 LIBS="-lkvm $LIBS"
18958 # Check for the 4.4BSD definition of getloadavg.
18959 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18960 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18961 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18962 $as_echo_n "(cached) " >&6
18963 else
18964 ac_check_lib_save_LIBS=$LIBS
18965 LIBS="-lutil $LIBS"
18966 cat >conftest.$ac_ext <<_ACEOF
18967 /* confdefs.h. */
18968 _ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18973 /* Override any GCC internal prototype to avoid an error.
18974 Use char because int might match the return type of a GCC
18975 builtin and then its argument prototype would still apply. */
18976 #ifdef __cplusplus
18977 extern "C"
18978 #endif
18979 char getloadavg ();
18981 main ()
18983 return getloadavg ();
18985 return 0;
18987 _ACEOF
18988 rm -f conftest.$ac_objext conftest$ac_exeext
18989 if { (ac_try="$ac_link"
18990 case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18993 esac
18994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18995 $as_echo "$ac_try_echo") >&5
18996 (eval "$ac_link") 2>conftest.er1
18997 ac_status=$?
18998 grep -v '^ *+' conftest.er1 >conftest.err
18999 rm -f conftest.er1
19000 cat conftest.err >&5
19001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } && {
19003 test -z "$ac_c_werror_flag" ||
19004 test ! -s conftest.err
19005 } && test -s conftest$ac_exeext && {
19006 test "$cross_compiling" = yes ||
19007 $as_test_x conftest$ac_exeext
19008 }; then
19009 ac_cv_lib_util_getloadavg=yes
19010 else
19011 $as_echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.$ac_ext >&5
19014 ac_cv_lib_util_getloadavg=no
19017 rm -rf conftest.dSYM
19018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19019 conftest$ac_exeext conftest.$ac_ext
19020 LIBS=$ac_check_lib_save_LIBS
19022 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
19023 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19024 if test $ac_cv_lib_util_getloadavg = yes; then
19025 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19030 if test $ac_have_func = no; then
19031 # There is a commonly available library for RS/6000 AIX.
19032 # Since it is not a standard part of AIX, it might be installed locally.
19033 ac_getloadavg_LIBS=$LIBS
19034 LIBS="-L/usr/local/lib $LIBS"
19035 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
19036 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19037 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19038 $as_echo_n "(cached) " >&6
19039 else
19040 ac_check_lib_save_LIBS=$LIBS
19041 LIBS="-lgetloadavg $LIBS"
19042 cat >conftest.$ac_ext <<_ACEOF
19043 /* confdefs.h. */
19044 _ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19049 /* Override any GCC internal prototype to avoid an error.
19050 Use char because int might match the return type of a GCC
19051 builtin and then its argument prototype would still apply. */
19052 #ifdef __cplusplus
19053 extern "C"
19054 #endif
19055 char getloadavg ();
19057 main ()
19059 return getloadavg ();
19061 return 0;
19063 _ACEOF
19064 rm -f conftest.$ac_objext conftest$ac_exeext
19065 if { (ac_try="$ac_link"
19066 case "(($ac_try" in
19067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068 *) ac_try_echo=$ac_try;;
19069 esac
19070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19071 $as_echo "$ac_try_echo") >&5
19072 (eval "$ac_link") 2>conftest.er1
19073 ac_status=$?
19074 grep -v '^ *+' conftest.er1 >conftest.err
19075 rm -f conftest.er1
19076 cat conftest.err >&5
19077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } && {
19079 test -z "$ac_c_werror_flag" ||
19080 test ! -s conftest.err
19081 } && test -s conftest$ac_exeext && {
19082 test "$cross_compiling" = yes ||
19083 $as_test_x conftest$ac_exeext
19084 }; then
19085 ac_cv_lib_getloadavg_getloadavg=yes
19086 else
19087 $as_echo "$as_me: failed program was:" >&5
19088 sed 's/^/| /' conftest.$ac_ext >&5
19090 ac_cv_lib_getloadavg_getloadavg=no
19093 rm -rf conftest.dSYM
19094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19095 conftest$ac_exeext conftest.$ac_ext
19096 LIBS=$ac_check_lib_save_LIBS
19098 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19099 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19100 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19101 LIBS="-lgetloadavg $LIBS"
19102 else
19103 LIBS=$ac_getloadavg_LIBS
19108 # Make sure it is really in the library, if we think we found it,
19109 # otherwise set up the replacement function.
19111 for ac_func in getloadavg
19113 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19114 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19115 $as_echo_n "checking for $ac_func... " >&6; }
19116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19117 $as_echo_n "(cached) " >&6
19118 else
19119 cat >conftest.$ac_ext <<_ACEOF
19120 /* confdefs.h. */
19121 _ACEOF
19122 cat confdefs.h >>conftest.$ac_ext
19123 cat >>conftest.$ac_ext <<_ACEOF
19124 /* end confdefs.h. */
19125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19127 #define $ac_func innocuous_$ac_func
19129 /* System header to define __stub macros and hopefully few prototypes,
19130 which can conflict with char $ac_func (); below.
19131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19132 <limits.h> exists even on freestanding compilers. */
19134 #ifdef __STDC__
19135 # include <limits.h>
19136 #else
19137 # include <assert.h>
19138 #endif
19140 #undef $ac_func
19142 /* Override any GCC internal prototype to avoid an error.
19143 Use char because int might match the return type of a GCC
19144 builtin and then its argument prototype would still apply. */
19145 #ifdef __cplusplus
19146 extern "C"
19147 #endif
19148 char $ac_func ();
19149 /* The GNU C library defines this for functions which it implements
19150 to always fail with ENOSYS. Some functions are actually named
19151 something starting with __ and the normal name is an alias. */
19152 #if defined __stub_$ac_func || defined __stub___$ac_func
19153 choke me
19154 #endif
19157 main ()
19159 return $ac_func ();
19161 return 0;
19163 _ACEOF
19164 rm -f conftest.$ac_objext conftest$ac_exeext
19165 if { (ac_try="$ac_link"
19166 case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19169 esac
19170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19171 $as_echo "$ac_try_echo") >&5
19172 (eval "$ac_link") 2>conftest.er1
19173 ac_status=$?
19174 grep -v '^ *+' conftest.er1 >conftest.err
19175 rm -f conftest.er1
19176 cat conftest.err >&5
19177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } && {
19179 test -z "$ac_c_werror_flag" ||
19180 test ! -s conftest.err
19181 } && test -s conftest$ac_exeext && {
19182 test "$cross_compiling" = yes ||
19183 $as_test_x conftest$ac_exeext
19184 }; then
19185 eval "$as_ac_var=yes"
19186 else
19187 $as_echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19190 eval "$as_ac_var=no"
19193 rm -rf conftest.dSYM
19194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19195 conftest$ac_exeext conftest.$ac_ext
19197 ac_res=`eval 'as_val=${'$as_ac_var'}
19198 $as_echo "$as_val"'`
19199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19200 $as_echo "$ac_res" >&6; }
19201 if test `eval 'as_val=${'$as_ac_var'}
19202 $as_echo "$as_val"'` = yes; then
19203 cat >>confdefs.h <<_ACEOF
19204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19205 _ACEOF
19207 else
19208 case " $LIBOBJS " in
19209 *" getloadavg.$ac_objext "* ) ;;
19210 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
19212 esac
19215 cat >>confdefs.h <<\_ACEOF
19216 #define C_GETLOADAVG 1
19217 _ACEOF
19219 # Figure out what our getloadavg.c needs.
19220 ac_have_func=no
19221 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19222 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19223 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19224 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19225 $as_echo_n "(cached) " >&6
19227 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19228 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19229 else
19230 # Is the header compilable?
19231 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19232 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19233 cat >conftest.$ac_ext <<_ACEOF
19234 /* confdefs.h. */
19235 _ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19239 $ac_includes_default
19240 #include <sys/dg_sys_info.h>
19241 _ACEOF
19242 rm -f conftest.$ac_objext
19243 if { (ac_try="$ac_compile"
19244 case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19247 esac
19248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19249 $as_echo "$ac_try_echo") >&5
19250 (eval "$ac_compile") 2>conftest.er1
19251 ac_status=$?
19252 grep -v '^ *+' conftest.er1 >conftest.err
19253 rm -f conftest.er1
19254 cat conftest.err >&5
19255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } && {
19257 test -z "$ac_c_werror_flag" ||
19258 test ! -s conftest.err
19259 } && test -s conftest.$ac_objext; then
19260 ac_header_compiler=yes
19261 else
19262 $as_echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19265 ac_header_compiler=no
19268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19270 $as_echo "$ac_header_compiler" >&6; }
19272 # Is the header present?
19273 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19274 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19275 cat >conftest.$ac_ext <<_ACEOF
19276 /* confdefs.h. */
19277 _ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19281 #include <sys/dg_sys_info.h>
19282 _ACEOF
19283 if { (ac_try="$ac_cpp conftest.$ac_ext"
19284 case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19287 esac
19288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19289 $as_echo "$ac_try_echo") >&5
19290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19291 ac_status=$?
19292 grep -v '^ *+' conftest.er1 >conftest.err
19293 rm -f conftest.er1
19294 cat conftest.err >&5
19295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } >/dev/null && {
19297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19298 test ! -s conftest.err
19299 }; then
19300 ac_header_preproc=yes
19301 else
19302 $as_echo "$as_me: failed program was:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19305 ac_header_preproc=no
19308 rm -f conftest.err conftest.$ac_ext
19309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19310 $as_echo "$ac_header_preproc" >&6; }
19312 # So? What about this header?
19313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19314 yes:no: )
19315 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19316 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19317 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19318 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19319 ac_header_preproc=yes
19321 no:yes:* )
19322 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19323 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19324 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19325 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19326 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19327 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19328 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19329 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19330 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19331 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19332 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19333 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19336 esac
19337 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19338 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19339 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19340 $as_echo_n "(cached) " >&6
19341 else
19342 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19344 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19345 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19348 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19349 ac_have_func=yes
19351 cat >>confdefs.h <<\_ACEOF
19352 #define DGUX 1
19353 _ACEOF
19356 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19357 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19358 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19359 $as_echo_n "(cached) " >&6
19360 else
19361 ac_check_lib_save_LIBS=$LIBS
19362 LIBS="-ldgc $LIBS"
19363 cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h. */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19370 /* Override any GCC internal prototype to avoid an error.
19371 Use char because int might match the return type of a GCC
19372 builtin and then its argument prototype would still apply. */
19373 #ifdef __cplusplus
19374 extern "C"
19375 #endif
19376 char dg_sys_info ();
19378 main ()
19380 return dg_sys_info ();
19382 return 0;
19384 _ACEOF
19385 rm -f conftest.$ac_objext conftest$ac_exeext
19386 if { (ac_try="$ac_link"
19387 case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19390 esac
19391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19392 $as_echo "$ac_try_echo") >&5
19393 (eval "$ac_link") 2>conftest.er1
19394 ac_status=$?
19395 grep -v '^ *+' conftest.er1 >conftest.err
19396 rm -f conftest.er1
19397 cat conftest.err >&5
19398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } && {
19400 test -z "$ac_c_werror_flag" ||
19401 test ! -s conftest.err
19402 } && test -s conftest$ac_exeext && {
19403 test "$cross_compiling" = yes ||
19404 $as_test_x conftest$ac_exeext
19405 }; then
19406 ac_cv_lib_dgc_dg_sys_info=yes
19407 else
19408 $as_echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19411 ac_cv_lib_dgc_dg_sys_info=no
19414 rm -rf conftest.dSYM
19415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19416 conftest$ac_exeext conftest.$ac_ext
19417 LIBS=$ac_check_lib_save_LIBS
19419 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19420 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19421 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19422 cat >>confdefs.h <<_ACEOF
19423 #define HAVE_LIBDGC 1
19424 _ACEOF
19426 LIBS="-ldgc $LIBS"
19434 if test "${ac_cv_header_locale_h+set}" = set; then
19435 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19436 $as_echo_n "checking for locale.h... " >&6; }
19437 if test "${ac_cv_header_locale_h+set}" = set; then
19438 $as_echo_n "(cached) " >&6
19440 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19441 $as_echo "$ac_cv_header_locale_h" >&6; }
19442 else
19443 # Is the header compilable?
19444 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19445 $as_echo_n "checking locale.h usability... " >&6; }
19446 cat >conftest.$ac_ext <<_ACEOF
19447 /* confdefs.h. */
19448 _ACEOF
19449 cat confdefs.h >>conftest.$ac_ext
19450 cat >>conftest.$ac_ext <<_ACEOF
19451 /* end confdefs.h. */
19452 $ac_includes_default
19453 #include <locale.h>
19454 _ACEOF
19455 rm -f conftest.$ac_objext
19456 if { (ac_try="$ac_compile"
19457 case "(($ac_try" in
19458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19459 *) ac_try_echo=$ac_try;;
19460 esac
19461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19462 $as_echo "$ac_try_echo") >&5
19463 (eval "$ac_compile") 2>conftest.er1
19464 ac_status=$?
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
19468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } && {
19470 test -z "$ac_c_werror_flag" ||
19471 test ! -s conftest.err
19472 } && test -s conftest.$ac_objext; then
19473 ac_header_compiler=yes
19474 else
19475 $as_echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19478 ac_header_compiler=no
19481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19482 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19483 $as_echo "$ac_header_compiler" >&6; }
19485 # Is the header present?
19486 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19487 $as_echo_n "checking locale.h presence... " >&6; }
19488 cat >conftest.$ac_ext <<_ACEOF
19489 /* confdefs.h. */
19490 _ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19494 #include <locale.h>
19495 _ACEOF
19496 if { (ac_try="$ac_cpp conftest.$ac_ext"
19497 case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19500 esac
19501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19502 $as_echo "$ac_try_echo") >&5
19503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19504 ac_status=$?
19505 grep -v '^ *+' conftest.er1 >conftest.err
19506 rm -f conftest.er1
19507 cat conftest.err >&5
19508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } >/dev/null && {
19510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19511 test ! -s conftest.err
19512 }; then
19513 ac_header_preproc=yes
19514 else
19515 $as_echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19518 ac_header_preproc=no
19521 rm -f conftest.err conftest.$ac_ext
19522 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19523 $as_echo "$ac_header_preproc" >&6; }
19525 # So? What about this header?
19526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19527 yes:no: )
19528 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19529 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19530 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19531 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19532 ac_header_preproc=yes
19534 no:yes:* )
19535 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19536 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19537 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19538 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19539 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19540 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19541 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19542 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19543 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19544 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19545 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19546 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19549 esac
19550 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19551 $as_echo_n "checking for locale.h... " >&6; }
19552 if test "${ac_cv_header_locale_h+set}" = set; then
19553 $as_echo_n "(cached) " >&6
19554 else
19555 ac_cv_header_locale_h=$ac_header_preproc
19557 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19558 $as_echo "$ac_cv_header_locale_h" >&6; }
19564 for ac_func in setlocale
19566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19567 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19568 $as_echo_n "checking for $ac_func... " >&6; }
19569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19570 $as_echo_n "(cached) " >&6
19571 else
19572 cat >conftest.$ac_ext <<_ACEOF
19573 /* confdefs.h. */
19574 _ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h. */
19578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19580 #define $ac_func innocuous_$ac_func
19582 /* System header to define __stub macros and hopefully few prototypes,
19583 which can conflict with char $ac_func (); below.
19584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19585 <limits.h> exists even on freestanding compilers. */
19587 #ifdef __STDC__
19588 # include <limits.h>
19589 #else
19590 # include <assert.h>
19591 #endif
19593 #undef $ac_func
19595 /* Override any GCC internal prototype to avoid an error.
19596 Use char because int might match the return type of a GCC
19597 builtin and then its argument prototype would still apply. */
19598 #ifdef __cplusplus
19599 extern "C"
19600 #endif
19601 char $ac_func ();
19602 /* The GNU C library defines this for functions which it implements
19603 to always fail with ENOSYS. Some functions are actually named
19604 something starting with __ and the normal name is an alias. */
19605 #if defined __stub_$ac_func || defined __stub___$ac_func
19606 choke me
19607 #endif
19610 main ()
19612 return $ac_func ();
19614 return 0;
19616 _ACEOF
19617 rm -f conftest.$ac_objext conftest$ac_exeext
19618 if { (ac_try="$ac_link"
19619 case "(($ac_try" in
19620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621 *) ac_try_echo=$ac_try;;
19622 esac
19623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19624 $as_echo "$ac_try_echo") >&5
19625 (eval "$ac_link") 2>conftest.er1
19626 ac_status=$?
19627 grep -v '^ *+' conftest.er1 >conftest.err
19628 rm -f conftest.er1
19629 cat conftest.err >&5
19630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } && {
19632 test -z "$ac_c_werror_flag" ||
19633 test ! -s conftest.err
19634 } && test -s conftest$ac_exeext && {
19635 test "$cross_compiling" = yes ||
19636 $as_test_x conftest$ac_exeext
19637 }; then
19638 eval "$as_ac_var=yes"
19639 else
19640 $as_echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19643 eval "$as_ac_var=no"
19646 rm -rf conftest.dSYM
19647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19648 conftest$ac_exeext conftest.$ac_ext
19650 ac_res=`eval 'as_val=${'$as_ac_var'}
19651 $as_echo "$as_val"'`
19652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19653 $as_echo "$ac_res" >&6; }
19654 if test `eval 'as_val=${'$as_ac_var'}
19655 $as_echo "$as_val"'` = yes; then
19656 cat >>confdefs.h <<_ACEOF
19657 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19658 _ACEOF
19661 done
19664 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19665 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19666 # Irix 4.0.5F has the header but not the library.
19667 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19668 ac_have_func=yes
19670 cat >>confdefs.h <<\_ACEOF
19671 #define SVR4 1
19672 _ACEOF
19676 if test $ac_have_func = no; then
19677 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19678 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19679 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19680 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19681 $as_echo_n "(cached) " >&6
19683 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19684 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19685 else
19686 # Is the header compilable?
19687 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19688 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19689 cat >conftest.$ac_ext <<_ACEOF
19690 /* confdefs.h. */
19691 _ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h. */
19695 $ac_includes_default
19696 #include <inq_stats/cpustats.h>
19697 _ACEOF
19698 rm -f conftest.$ac_objext
19699 if { (ac_try="$ac_compile"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19703 esac
19704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19705 $as_echo "$ac_try_echo") >&5
19706 (eval "$ac_compile") 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } && {
19713 test -z "$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19715 } && test -s conftest.$ac_objext; then
19716 ac_header_compiler=yes
19717 else
19718 $as_echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 ac_header_compiler=no
19724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19725 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19726 $as_echo "$ac_header_compiler" >&6; }
19728 # Is the header present?
19729 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19730 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19731 cat >conftest.$ac_ext <<_ACEOF
19732 /* confdefs.h. */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19737 #include <inq_stats/cpustats.h>
19738 _ACEOF
19739 if { (ac_try="$ac_cpp conftest.$ac_ext"
19740 case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19743 esac
19744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19745 $as_echo "$ac_try_echo") >&5
19746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19747 ac_status=$?
19748 grep -v '^ *+' conftest.er1 >conftest.err
19749 rm -f conftest.er1
19750 cat conftest.err >&5
19751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } >/dev/null && {
19753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19754 test ! -s conftest.err
19755 }; then
19756 ac_header_preproc=yes
19757 else
19758 $as_echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19761 ac_header_preproc=no
19764 rm -f conftest.err conftest.$ac_ext
19765 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19766 $as_echo "$ac_header_preproc" >&6; }
19768 # So? What about this header?
19769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19770 yes:no: )
19771 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19772 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19773 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19774 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19775 ac_header_preproc=yes
19777 no:yes:* )
19778 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19779 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19780 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19781 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19782 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19783 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19784 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19785 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19786 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19787 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19788 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19789 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19792 esac
19793 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19794 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19795 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19796 $as_echo_n "(cached) " >&6
19797 else
19798 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19800 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19801 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19804 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19805 ac_have_func=yes
19807 cat >>confdefs.h <<\_ACEOF
19808 #define UMAX 1
19809 _ACEOF
19812 cat >>confdefs.h <<\_ACEOF
19813 #define UMAX4_3 1
19814 _ACEOF
19821 if test $ac_have_func = no; then
19822 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19823 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19824 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19825 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19826 $as_echo_n "(cached) " >&6
19828 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19829 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19830 else
19831 # Is the header compilable?
19832 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19833 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19834 cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h. */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840 $ac_includes_default
19841 #include <sys/cpustats.h>
19842 _ACEOF
19843 rm -f conftest.$ac_objext
19844 if { (ac_try="$ac_compile"
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_compile") 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); } && {
19858 test -z "$ac_c_werror_flag" ||
19859 test ! -s conftest.err
19860 } && test -s conftest.$ac_objext; then
19861 ac_header_compiler=yes
19862 else
19863 $as_echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19866 ac_header_compiler=no
19869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19870 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19871 $as_echo "$ac_header_compiler" >&6; }
19873 # Is the header present?
19874 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19875 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19876 cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h. */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882 #include <sys/cpustats.h>
19883 _ACEOF
19884 if { (ac_try="$ac_cpp conftest.$ac_ext"
19885 case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19888 esac
19889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19890 $as_echo "$ac_try_echo") >&5
19891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19892 ac_status=$?
19893 grep -v '^ *+' conftest.er1 >conftest.err
19894 rm -f conftest.er1
19895 cat conftest.err >&5
19896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); } >/dev/null && {
19898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19899 test ! -s conftest.err
19900 }; then
19901 ac_header_preproc=yes
19902 else
19903 $as_echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19906 ac_header_preproc=no
19909 rm -f conftest.err conftest.$ac_ext
19910 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19911 $as_echo "$ac_header_preproc" >&6; }
19913 # So? What about this header?
19914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19915 yes:no: )
19916 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19917 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19918 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19919 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19920 ac_header_preproc=yes
19922 no:yes:* )
19923 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19924 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19925 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19926 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19927 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19928 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19929 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19930 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19931 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19932 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19933 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19934 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19937 esac
19938 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19939 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19940 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19941 $as_echo_n "(cached) " >&6
19942 else
19943 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19945 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19946 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19949 if test $ac_cv_header_sys_cpustats_h = yes; then
19950 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19951 #define UMAX 1
19952 _ACEOF
19959 if test $ac_have_func = no; then
19961 for ac_header in mach/mach.h
19963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19965 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19966 $as_echo_n "checking for $ac_header... " >&6; }
19967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19968 $as_echo_n "(cached) " >&6
19970 ac_res=`eval 'as_val=${'$as_ac_Header'}
19971 $as_echo "$as_val"'`
19972 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19973 $as_echo "$ac_res" >&6; }
19974 else
19975 # Is the header compilable?
19976 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19977 $as_echo_n "checking $ac_header usability... " >&6; }
19978 cat >conftest.$ac_ext <<_ACEOF
19979 /* confdefs.h. */
19980 _ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h. */
19984 $ac_includes_default
19985 #include <$ac_header>
19986 _ACEOF
19987 rm -f conftest.$ac_objext
19988 if { (ac_try="$ac_compile"
19989 case "(($ac_try" in
19990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19991 *) ac_try_echo=$ac_try;;
19992 esac
19993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19994 $as_echo "$ac_try_echo") >&5
19995 (eval "$ac_compile") 2>conftest.er1
19996 ac_status=$?
19997 grep -v '^ *+' conftest.er1 >conftest.err
19998 rm -f conftest.er1
19999 cat conftest.err >&5
20000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } && {
20002 test -z "$ac_c_werror_flag" ||
20003 test ! -s conftest.err
20004 } && test -s conftest.$ac_objext; then
20005 ac_header_compiler=yes
20006 else
20007 $as_echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20010 ac_header_compiler=no
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20014 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20015 $as_echo "$ac_header_compiler" >&6; }
20017 # Is the header present?
20018 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20019 $as_echo_n "checking $ac_header presence... " >&6; }
20020 cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h. */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 #include <$ac_header>
20027 _ACEOF
20028 if { (ac_try="$ac_cpp conftest.$ac_ext"
20029 case "(($ac_try" in
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031 *) ac_try_echo=$ac_try;;
20032 esac
20033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20034 $as_echo "$ac_try_echo") >&5
20035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20036 ac_status=$?
20037 grep -v '^ *+' conftest.er1 >conftest.err
20038 rm -f conftest.er1
20039 cat conftest.err >&5
20040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } >/dev/null && {
20042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20043 test ! -s conftest.err
20044 }; then
20045 ac_header_preproc=yes
20046 else
20047 $as_echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20050 ac_header_preproc=no
20053 rm -f conftest.err conftest.$ac_ext
20054 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20055 $as_echo "$ac_header_preproc" >&6; }
20057 # So? What about this header?
20058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20059 yes:no: )
20060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20061 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20063 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20064 ac_header_preproc=yes
20066 no:yes:* )
20067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20068 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20070 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20072 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20074 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20076 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20078 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20081 esac
20082 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20083 $as_echo_n "checking for $ac_header... " >&6; }
20084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20085 $as_echo_n "(cached) " >&6
20086 else
20087 eval "$as_ac_Header=\$ac_header_preproc"
20089 ac_res=`eval 'as_val=${'$as_ac_Header'}
20090 $as_echo "$as_val"'`
20091 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20092 $as_echo "$ac_res" >&6; }
20095 if test `eval 'as_val=${'$as_ac_Header'}
20096 $as_echo "$as_val"'` = yes; then
20097 cat >>confdefs.h <<_ACEOF
20098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20099 _ACEOF
20103 done
20108 for ac_header in nlist.h
20110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20112 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20113 $as_echo_n "checking for $ac_header... " >&6; }
20114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20115 $as_echo_n "(cached) " >&6
20117 ac_res=`eval 'as_val=${'$as_ac_Header'}
20118 $as_echo "$as_val"'`
20119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20120 $as_echo "$ac_res" >&6; }
20121 else
20122 # Is the header compilable?
20123 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20124 $as_echo_n "checking $ac_header usability... " >&6; }
20125 cat >conftest.$ac_ext <<_ACEOF
20126 /* confdefs.h. */
20127 _ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20131 $ac_includes_default
20132 #include <$ac_header>
20133 _ACEOF
20134 rm -f conftest.$ac_objext
20135 if { (ac_try="$ac_compile"
20136 case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20139 esac
20140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20141 $as_echo "$ac_try_echo") >&5
20142 (eval "$ac_compile") 2>conftest.er1
20143 ac_status=$?
20144 grep -v '^ *+' conftest.er1 >conftest.err
20145 rm -f conftest.er1
20146 cat conftest.err >&5
20147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } && {
20149 test -z "$ac_c_werror_flag" ||
20150 test ! -s conftest.err
20151 } && test -s conftest.$ac_objext; then
20152 ac_header_compiler=yes
20153 else
20154 $as_echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20157 ac_header_compiler=no
20160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20161 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20162 $as_echo "$ac_header_compiler" >&6; }
20164 # Is the header present?
20165 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20166 $as_echo_n "checking $ac_header presence... " >&6; }
20167 cat >conftest.$ac_ext <<_ACEOF
20168 /* confdefs.h. */
20169 _ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 #include <$ac_header>
20174 _ACEOF
20175 if { (ac_try="$ac_cpp conftest.$ac_ext"
20176 case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20179 esac
20180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20181 $as_echo "$ac_try_echo") >&5
20182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20183 ac_status=$?
20184 grep -v '^ *+' conftest.er1 >conftest.err
20185 rm -f conftest.er1
20186 cat conftest.err >&5
20187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } >/dev/null && {
20189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20190 test ! -s conftest.err
20191 }; then
20192 ac_header_preproc=yes
20193 else
20194 $as_echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20197 ac_header_preproc=no
20200 rm -f conftest.err conftest.$ac_ext
20201 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20202 $as_echo "$ac_header_preproc" >&6; }
20204 # So? What about this header?
20205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20206 yes:no: )
20207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20208 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20211 ac_header_preproc=yes
20213 no:yes:* )
20214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20215 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20217 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20219 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20221 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20223 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20225 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20228 esac
20229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20230 $as_echo_n "checking for $ac_header... " >&6; }
20231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20232 $as_echo_n "(cached) " >&6
20233 else
20234 eval "$as_ac_Header=\$ac_header_preproc"
20236 ac_res=`eval 'as_val=${'$as_ac_Header'}
20237 $as_echo "$as_val"'`
20238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20239 $as_echo "$ac_res" >&6; }
20242 if test `eval 'as_val=${'$as_ac_Header'}
20243 $as_echo "$as_val"'` = yes; then
20244 cat >>confdefs.h <<_ACEOF
20245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20246 _ACEOF
20247 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20248 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20249 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20250 $as_echo_n "(cached) " >&6
20251 else
20252 cat >conftest.$ac_ext <<_ACEOF
20253 /* confdefs.h. */
20254 _ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20258 #include <nlist.h>
20261 main ()
20263 static struct nlist ac_aggr;
20264 if (ac_aggr.n_un.n_name)
20265 return 0;
20267 return 0;
20269 _ACEOF
20270 rm -f conftest.$ac_objext
20271 if { (ac_try="$ac_compile"
20272 case "(($ac_try" in
20273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274 *) ac_try_echo=$ac_try;;
20275 esac
20276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20277 $as_echo "$ac_try_echo") >&5
20278 (eval "$ac_compile") 2>conftest.er1
20279 ac_status=$?
20280 grep -v '^ *+' conftest.er1 >conftest.err
20281 rm -f conftest.er1
20282 cat conftest.err >&5
20283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } && {
20285 test -z "$ac_c_werror_flag" ||
20286 test ! -s conftest.err
20287 } && test -s conftest.$ac_objext; then
20288 ac_cv_member_struct_nlist_n_un_n_name=yes
20289 else
20290 $as_echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20293 cat >conftest.$ac_ext <<_ACEOF
20294 /* confdefs.h. */
20295 _ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h. */
20299 #include <nlist.h>
20302 main ()
20304 static struct nlist ac_aggr;
20305 if (sizeof ac_aggr.n_un.n_name)
20306 return 0;
20308 return 0;
20310 _ACEOF
20311 rm -f conftest.$ac_objext
20312 if { (ac_try="$ac_compile"
20313 case "(($ac_try" in
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20316 esac
20317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20318 $as_echo "$ac_try_echo") >&5
20319 (eval "$ac_compile") 2>conftest.er1
20320 ac_status=$?
20321 grep -v '^ *+' conftest.er1 >conftest.err
20322 rm -f conftest.er1
20323 cat conftest.err >&5
20324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); } && {
20326 test -z "$ac_c_werror_flag" ||
20327 test ! -s conftest.err
20328 } && test -s conftest.$ac_objext; then
20329 ac_cv_member_struct_nlist_n_un_n_name=yes
20330 else
20331 $as_echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20334 ac_cv_member_struct_nlist_n_un_n_name=no
20337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20342 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20343 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20344 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20346 cat >>confdefs.h <<_ACEOF
20347 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20348 _ACEOF
20351 cat >>confdefs.h <<\_ACEOF
20352 #define NLIST_NAME_UNION 1
20353 _ACEOF
20360 done
20363 done
20366 # Some definitions of getloadavg require that the program be installed setgid.
20367 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20368 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20369 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20370 $as_echo_n "(cached) " >&6
20371 else
20372 cat >conftest.$ac_ext <<_ACEOF
20373 /* confdefs.h. */
20374 _ACEOF
20375 cat confdefs.h >>conftest.$ac_ext
20376 cat >>conftest.$ac_ext <<_ACEOF
20377 /* end confdefs.h. */
20378 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20379 #ifdef LDAV_PRIVILEGED
20380 Yowza Am I SETGID yet
20381 #endif
20382 _ACEOF
20383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20384 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20385 ac_cv_func_getloadavg_setgid=yes
20386 else
20387 ac_cv_func_getloadavg_setgid=no
20389 rm -f conftest*
20392 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20393 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20394 if test $ac_cv_func_getloadavg_setgid = yes; then
20395 NEED_SETGID=true
20397 cat >>confdefs.h <<\_ACEOF
20398 #define GETLOADAVG_PRIVILEGED 1
20399 _ACEOF
20401 else
20402 NEED_SETGID=false
20405 if test $ac_cv_func_getloadavg_setgid = yes; then
20406 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20407 $as_echo_n "checking group of /dev/kmem... " >&6; }
20408 if test "${ac_cv_group_kmem+set}" = set; then
20409 $as_echo_n "(cached) " >&6
20410 else
20411 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20412 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20413 # If we got an error (system does not support symlinks), try without -L.
20414 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20415 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20416 | sed -ne 's/[ ][ ]*/ /g;
20417 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20418 / /s/.* //;p;'`
20421 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20422 $as_echo "$ac_cv_group_kmem" >&6; }
20423 KMEM_GROUP=$ac_cv_group_kmem
20425 if test "x$ac_save_LIBS" = x; then
20426 GETLOADAVG_LIBS=$LIBS
20427 else
20428 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20430 LIBS=$ac_save_LIBS
20434 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20435 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20436 if test "${ac_cv_sys_largefile_source+set}" = set; then
20437 $as_echo_n "(cached) " >&6
20438 else
20439 while :; do
20440 cat >conftest.$ac_ext <<_ACEOF
20441 /* confdefs.h. */
20442 _ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446 #include <sys/types.h> /* for off_t */
20447 #include <stdio.h>
20449 main ()
20451 int (*fp) (FILE *, off_t, int) = fseeko;
20452 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20454 return 0;
20456 _ACEOF
20457 rm -f conftest.$ac_objext conftest$ac_exeext
20458 if { (ac_try="$ac_link"
20459 case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20462 esac
20463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20464 $as_echo "$ac_try_echo") >&5
20465 (eval "$ac_link") 2>conftest.er1
20466 ac_status=$?
20467 grep -v '^ *+' conftest.er1 >conftest.err
20468 rm -f conftest.er1
20469 cat conftest.err >&5
20470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } && {
20472 test -z "$ac_c_werror_flag" ||
20473 test ! -s conftest.err
20474 } && test -s conftest$ac_exeext && {
20475 test "$cross_compiling" = yes ||
20476 $as_test_x conftest$ac_exeext
20477 }; then
20478 ac_cv_sys_largefile_source=no; break
20479 else
20480 $as_echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20486 rm -rf conftest.dSYM
20487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20488 conftest$ac_exeext conftest.$ac_ext
20489 cat >conftest.$ac_ext <<_ACEOF
20490 /* confdefs.h. */
20491 _ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h. */
20495 #define _LARGEFILE_SOURCE 1
20496 #include <sys/types.h> /* for off_t */
20497 #include <stdio.h>
20499 main ()
20501 int (*fp) (FILE *, off_t, int) = fseeko;
20502 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20504 return 0;
20506 _ACEOF
20507 rm -f conftest.$ac_objext conftest$ac_exeext
20508 if { (ac_try="$ac_link"
20509 case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20512 esac
20513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20514 $as_echo "$ac_try_echo") >&5
20515 (eval "$ac_link") 2>conftest.er1
20516 ac_status=$?
20517 grep -v '^ *+' conftest.er1 >conftest.err
20518 rm -f conftest.er1
20519 cat conftest.err >&5
20520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } && {
20522 test -z "$ac_c_werror_flag" ||
20523 test ! -s conftest.err
20524 } && test -s conftest$ac_exeext && {
20525 test "$cross_compiling" = yes ||
20526 $as_test_x conftest$ac_exeext
20527 }; then
20528 ac_cv_sys_largefile_source=1; break
20529 else
20530 $as_echo "$as_me: failed program was:" >&5
20531 sed 's/^/| /' conftest.$ac_ext >&5
20536 rm -rf conftest.dSYM
20537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20538 conftest$ac_exeext conftest.$ac_ext
20539 ac_cv_sys_largefile_source=unknown
20540 break
20541 done
20543 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20544 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20545 case $ac_cv_sys_largefile_source in #(
20546 no | unknown) ;;
20548 cat >>confdefs.h <<_ACEOF
20549 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20550 _ACEOF
20552 esac
20553 rm -rf conftest*
20555 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20556 # in glibc 2.1.3, but that breaks too many other things.
20557 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20558 if test $ac_cv_sys_largefile_source != unknown; then
20560 cat >>confdefs.h <<\_ACEOF
20561 #define HAVE_FSEEKO 1
20562 _ACEOF
20567 # Configure getopt.
20568 # getopt.m4 serial 10
20570 # The getopt module assume you want GNU getopt, with getopt_long etc,
20571 # rather than vanilla POSIX getopt. This means your your code should
20572 # always include <getopt.h> for the getopt prototypes.
20584 # Prerequisites of lib/getopt*.
20589 GETOPT_H=
20591 for ac_header in getopt.h
20593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20595 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20596 $as_echo_n "checking for $ac_header... " >&6; }
20597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20598 $as_echo_n "(cached) " >&6
20600 ac_res=`eval 'as_val=${'$as_ac_Header'}
20601 $as_echo "$as_val"'`
20602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20603 $as_echo "$ac_res" >&6; }
20604 else
20605 # Is the header compilable?
20606 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20607 $as_echo_n "checking $ac_header usability... " >&6; }
20608 cat >conftest.$ac_ext <<_ACEOF
20609 /* confdefs.h. */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20614 $ac_includes_default
20615 #include <$ac_header>
20616 _ACEOF
20617 rm -f conftest.$ac_objext
20618 if { (ac_try="$ac_compile"
20619 case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20622 esac
20623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20624 $as_echo "$ac_try_echo") >&5
20625 (eval "$ac_compile") 2>conftest.er1
20626 ac_status=$?
20627 grep -v '^ *+' conftest.er1 >conftest.err
20628 rm -f conftest.er1
20629 cat conftest.err >&5
20630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } && {
20632 test -z "$ac_c_werror_flag" ||
20633 test ! -s conftest.err
20634 } && test -s conftest.$ac_objext; then
20635 ac_header_compiler=yes
20636 else
20637 $as_echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20640 ac_header_compiler=no
20643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20645 $as_echo "$ac_header_compiler" >&6; }
20647 # Is the header present?
20648 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20649 $as_echo_n "checking $ac_header presence... " >&6; }
20650 cat >conftest.$ac_ext <<_ACEOF
20651 /* confdefs.h. */
20652 _ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20656 #include <$ac_header>
20657 _ACEOF
20658 if { (ac_try="$ac_cpp conftest.$ac_ext"
20659 case "(($ac_try" in
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661 *) ac_try_echo=$ac_try;;
20662 esac
20663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20664 $as_echo "$ac_try_echo") >&5
20665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20666 ac_status=$?
20667 grep -v '^ *+' conftest.er1 >conftest.err
20668 rm -f conftest.er1
20669 cat conftest.err >&5
20670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } >/dev/null && {
20672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20673 test ! -s conftest.err
20674 }; then
20675 ac_header_preproc=yes
20676 else
20677 $as_echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_header_preproc=no
20683 rm -f conftest.err conftest.$ac_ext
20684 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20685 $as_echo "$ac_header_preproc" >&6; }
20687 # So? What about this header?
20688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20689 yes:no: )
20690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20691 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20693 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20694 ac_header_preproc=yes
20696 no:yes:* )
20697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20698 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20700 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20702 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20704 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20706 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20708 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20711 esac
20712 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20713 $as_echo_n "checking for $ac_header... " >&6; }
20714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20715 $as_echo_n "(cached) " >&6
20716 else
20717 eval "$as_ac_Header=\$ac_header_preproc"
20719 ac_res=`eval 'as_val=${'$as_ac_Header'}
20720 $as_echo "$as_val"'`
20721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20722 $as_echo "$ac_res" >&6; }
20725 if test `eval 'as_val=${'$as_ac_Header'}
20726 $as_echo "$as_val"'` = yes; then
20727 cat >>confdefs.h <<_ACEOF
20728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20729 _ACEOF
20731 else
20732 GETOPT_H=getopt.h
20735 done
20737 if test -z "$GETOPT_H"; then
20739 for ac_func in getopt_long_only
20741 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20742 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20743 $as_echo_n "checking for $ac_func... " >&6; }
20744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20745 $as_echo_n "(cached) " >&6
20746 else
20747 cat >conftest.$ac_ext <<_ACEOF
20748 /* confdefs.h. */
20749 _ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h. */
20753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20755 #define $ac_func innocuous_$ac_func
20757 /* System header to define __stub macros and hopefully few prototypes,
20758 which can conflict with char $ac_func (); below.
20759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20760 <limits.h> exists even on freestanding compilers. */
20762 #ifdef __STDC__
20763 # include <limits.h>
20764 #else
20765 # include <assert.h>
20766 #endif
20768 #undef $ac_func
20770 /* Override any GCC internal prototype to avoid an error.
20771 Use char because int might match the return type of a GCC
20772 builtin and then its argument prototype would still apply. */
20773 #ifdef __cplusplus
20774 extern "C"
20775 #endif
20776 char $ac_func ();
20777 /* The GNU C library defines this for functions which it implements
20778 to always fail with ENOSYS. Some functions are actually named
20779 something starting with __ and the normal name is an alias. */
20780 #if defined __stub_$ac_func || defined __stub___$ac_func
20781 choke me
20782 #endif
20785 main ()
20787 return $ac_func ();
20789 return 0;
20791 _ACEOF
20792 rm -f conftest.$ac_objext conftest$ac_exeext
20793 if { (ac_try="$ac_link"
20794 case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20797 esac
20798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20799 $as_echo "$ac_try_echo") >&5
20800 (eval "$ac_link") 2>conftest.er1
20801 ac_status=$?
20802 grep -v '^ *+' conftest.er1 >conftest.err
20803 rm -f conftest.er1
20804 cat conftest.err >&5
20805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } && {
20807 test -z "$ac_c_werror_flag" ||
20808 test ! -s conftest.err
20809 } && test -s conftest$ac_exeext && {
20810 test "$cross_compiling" = yes ||
20811 $as_test_x conftest$ac_exeext
20812 }; then
20813 eval "$as_ac_var=yes"
20814 else
20815 $as_echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 eval "$as_ac_var=no"
20821 rm -rf conftest.dSYM
20822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20823 conftest$ac_exeext conftest.$ac_ext
20825 ac_res=`eval 'as_val=${'$as_ac_var'}
20826 $as_echo "$as_val"'`
20827 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20828 $as_echo "$ac_res" >&6; }
20829 if test `eval 'as_val=${'$as_ac_var'}
20830 $as_echo "$as_val"'` = yes; then
20831 cat >>confdefs.h <<_ACEOF
20832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20833 _ACEOF
20835 else
20836 GETOPT_H=getopt.h
20838 done
20842 if test -z "$GETOPT_H"; then
20843 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20844 $as_echo_n "checking whether optreset is declared... " >&6; }
20845 if test "${ac_cv_have_decl_optreset+set}" = set; then
20846 $as_echo_n "(cached) " >&6
20847 else
20848 cat >conftest.$ac_ext <<_ACEOF
20849 /* confdefs.h. */
20850 _ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 #include <getopt.h>
20857 main ()
20859 #ifndef optreset
20860 (void) optreset;
20861 #endif
20864 return 0;
20866 _ACEOF
20867 rm -f conftest.$ac_objext
20868 if { (ac_try="$ac_compile"
20869 case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20872 esac
20873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20874 $as_echo "$ac_try_echo") >&5
20875 (eval "$ac_compile") 2>conftest.er1
20876 ac_status=$?
20877 grep -v '^ *+' conftest.er1 >conftest.err
20878 rm -f conftest.er1
20879 cat conftest.err >&5
20880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } && {
20882 test -z "$ac_c_werror_flag" ||
20883 test ! -s conftest.err
20884 } && test -s conftest.$ac_objext; then
20885 ac_cv_have_decl_optreset=yes
20886 else
20887 $as_echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20890 ac_cv_have_decl_optreset=no
20893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20895 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20896 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20897 if test $ac_cv_have_decl_optreset = yes; then
20898 GETOPT_H=getopt.h
20903 if test -z "$GETOPT_H"; then
20904 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20905 $as_echo_n "checking for working GNU getopt function... " >&6; }
20906 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20907 $as_echo_n "(cached) " >&6
20908 else
20909 if test "$cross_compiling" = yes; then
20910 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20911 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20912 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20913 $as_echo_n "(cached) " >&6
20914 else
20915 cat >conftest.$ac_ext <<_ACEOF
20916 /* confdefs.h. */
20917 _ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h. */
20921 #include <getopt.h>
20924 main ()
20926 #ifndef getopt_clip
20927 (void) getopt_clip;
20928 #endif
20931 return 0;
20933 _ACEOF
20934 rm -f conftest.$ac_objext
20935 if { (ac_try="$ac_compile"
20936 case "(($ac_try" in
20937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20938 *) ac_try_echo=$ac_try;;
20939 esac
20940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20941 $as_echo "$ac_try_echo") >&5
20942 (eval "$ac_compile") 2>conftest.er1
20943 ac_status=$?
20944 grep -v '^ *+' conftest.er1 >conftest.err
20945 rm -f conftest.er1
20946 cat conftest.err >&5
20947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } && {
20949 test -z "$ac_c_werror_flag" ||
20950 test ! -s conftest.err
20951 } && test -s conftest.$ac_objext; then
20952 ac_cv_have_decl_getopt_clip=yes
20953 else
20954 $as_echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20957 ac_cv_have_decl_getopt_clip=no
20960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20962 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20963 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20964 if test $ac_cv_have_decl_getopt_clip = yes; then
20965 gl_cv_func_gnu_getopt=no
20966 else
20967 gl_cv_func_gnu_getopt=yes
20970 else
20971 cat >conftest.$ac_ext <<_ACEOF
20972 /* confdefs.h. */
20973 _ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 #include <getopt.h>
20979 main ()
20982 char *myargv[3];
20983 myargv[0] = "conftest";
20984 myargv[1] = "-+";
20985 myargv[2] = 0;
20986 return getopt (2, myargv, "+a") != '?';
20989 return 0;
20991 _ACEOF
20992 rm -f conftest$ac_exeext
20993 if { (ac_try="$ac_link"
20994 case "(($ac_try" in
20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996 *) ac_try_echo=$ac_try;;
20997 esac
20998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20999 $as_echo "$ac_try_echo") >&5
21000 (eval "$ac_link") 2>&5
21001 ac_status=$?
21002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21004 { (case "(($ac_try" in
21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006 *) ac_try_echo=$ac_try;;
21007 esac
21008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21009 $as_echo "$ac_try_echo") >&5
21010 (eval "$ac_try") 2>&5
21011 ac_status=$?
21012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 gl_cv_func_gnu_getopt=yes
21015 else
21016 $as_echo "$as_me: program exited with status $ac_status" >&5
21017 $as_echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21020 ( exit $ac_status )
21021 gl_cv_func_gnu_getopt=no
21023 rm -rf conftest.dSYM
21024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21029 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
21030 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21031 if test "$gl_cv_func_gnu_getopt" = "no"; then
21032 GETOPT_H=getopt.h
21038 if test -n "$GETOPT_H"; then
21041 GETOPT_H=getopt.h
21043 cat >>confdefs.h <<\_ACEOF
21044 #define __GETOPT_PREFIX rpl_
21045 _ACEOF
21050 GETOPTOBJS='getopt.o getopt1.o'
21057 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
21058 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21059 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21060 $as_echo_n "(cached) " >&6
21061 else
21062 # Use it with a single arg.
21063 cat >conftest.$ac_ext <<_ACEOF
21064 /* confdefs.h. */
21065 _ACEOF
21066 cat confdefs.h >>conftest.$ac_ext
21067 cat >>conftest.$ac_ext <<_ACEOF
21068 /* end confdefs.h. */
21069 $ac_includes_default
21071 main ()
21073 getpgrp (0);
21075 return 0;
21077 _ACEOF
21078 rm -f conftest.$ac_objext
21079 if { (ac_try="$ac_compile"
21080 case "(($ac_try" in
21081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082 *) ac_try_echo=$ac_try;;
21083 esac
21084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21085 $as_echo "$ac_try_echo") >&5
21086 (eval "$ac_compile") 2>conftest.er1
21087 ac_status=$?
21088 grep -v '^ *+' conftest.er1 >conftest.err
21089 rm -f conftest.er1
21090 cat conftest.err >&5
21091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); } && {
21093 test -z "$ac_c_werror_flag" ||
21094 test ! -s conftest.err
21095 } && test -s conftest.$ac_objext; then
21096 ac_cv_func_getpgrp_void=no
21097 else
21098 $as_echo "$as_me: failed program was:" >&5
21099 sed 's/^/| /' conftest.$ac_ext >&5
21101 ac_cv_func_getpgrp_void=yes
21104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21107 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
21108 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21109 if test $ac_cv_func_getpgrp_void = yes; then
21111 cat >>confdefs.h <<\_ACEOF
21112 #define GETPGRP_VOID 1
21113 _ACEOF
21119 for ac_func in strftime
21121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21122 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21123 $as_echo_n "checking for $ac_func... " >&6; }
21124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21125 $as_echo_n "(cached) " >&6
21126 else
21127 cat >conftest.$ac_ext <<_ACEOF
21128 /* confdefs.h. */
21129 _ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21135 #define $ac_func innocuous_$ac_func
21137 /* System header to define __stub macros and hopefully few prototypes,
21138 which can conflict with char $ac_func (); below.
21139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21140 <limits.h> exists even on freestanding compilers. */
21142 #ifdef __STDC__
21143 # include <limits.h>
21144 #else
21145 # include <assert.h>
21146 #endif
21148 #undef $ac_func
21150 /* Override any GCC internal prototype to avoid an error.
21151 Use char because int might match the return type of a GCC
21152 builtin and then its argument prototype would still apply. */
21153 #ifdef __cplusplus
21154 extern "C"
21155 #endif
21156 char $ac_func ();
21157 /* The GNU C library defines this for functions which it implements
21158 to always fail with ENOSYS. Some functions are actually named
21159 something starting with __ and the normal name is an alias. */
21160 #if defined __stub_$ac_func || defined __stub___$ac_func
21161 choke me
21162 #endif
21165 main ()
21167 return $ac_func ();
21169 return 0;
21171 _ACEOF
21172 rm -f conftest.$ac_objext conftest$ac_exeext
21173 if { (ac_try="$ac_link"
21174 case "(($ac_try" in
21175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176 *) ac_try_echo=$ac_try;;
21177 esac
21178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21179 $as_echo "$ac_try_echo") >&5
21180 (eval "$ac_link") 2>conftest.er1
21181 ac_status=$?
21182 grep -v '^ *+' conftest.er1 >conftest.err
21183 rm -f conftest.er1
21184 cat conftest.err >&5
21185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); } && {
21187 test -z "$ac_c_werror_flag" ||
21188 test ! -s conftest.err
21189 } && test -s conftest$ac_exeext && {
21190 test "$cross_compiling" = yes ||
21191 $as_test_x conftest$ac_exeext
21192 }; then
21193 eval "$as_ac_var=yes"
21194 else
21195 $as_echo "$as_me: failed program was:" >&5
21196 sed 's/^/| /' conftest.$ac_ext >&5
21198 eval "$as_ac_var=no"
21201 rm -rf conftest.dSYM
21202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21203 conftest$ac_exeext conftest.$ac_ext
21205 ac_res=`eval 'as_val=${'$as_ac_var'}
21206 $as_echo "$as_val"'`
21207 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21208 $as_echo "$ac_res" >&6; }
21209 if test `eval 'as_val=${'$as_ac_var'}
21210 $as_echo "$as_val"'` = yes; then
21211 cat >>confdefs.h <<_ACEOF
21212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21213 _ACEOF
21215 else
21216 # strftime is in -lintl on SCO UNIX.
21217 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21218 $as_echo_n "checking for strftime in -lintl... " >&6; }
21219 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21220 $as_echo_n "(cached) " >&6
21221 else
21222 ac_check_lib_save_LIBS=$LIBS
21223 LIBS="-lintl $LIBS"
21224 cat >conftest.$ac_ext <<_ACEOF
21225 /* confdefs.h. */
21226 _ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21231 /* Override any GCC internal prototype to avoid an error.
21232 Use char because int might match the return type of a GCC
21233 builtin and then its argument prototype would still apply. */
21234 #ifdef __cplusplus
21235 extern "C"
21236 #endif
21237 char strftime ();
21239 main ()
21241 return strftime ();
21243 return 0;
21245 _ACEOF
21246 rm -f conftest.$ac_objext conftest$ac_exeext
21247 if { (ac_try="$ac_link"
21248 case "(($ac_try" in
21249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250 *) ac_try_echo=$ac_try;;
21251 esac
21252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21253 $as_echo "$ac_try_echo") >&5
21254 (eval "$ac_link") 2>conftest.er1
21255 ac_status=$?
21256 grep -v '^ *+' conftest.er1 >conftest.err
21257 rm -f conftest.er1
21258 cat conftest.err >&5
21259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } && {
21261 test -z "$ac_c_werror_flag" ||
21262 test ! -s conftest.err
21263 } && test -s conftest$ac_exeext && {
21264 test "$cross_compiling" = yes ||
21265 $as_test_x conftest$ac_exeext
21266 }; then
21267 ac_cv_lib_intl_strftime=yes
21268 else
21269 $as_echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21272 ac_cv_lib_intl_strftime=no
21275 rm -rf conftest.dSYM
21276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21277 conftest$ac_exeext conftest.$ac_ext
21278 LIBS=$ac_check_lib_save_LIBS
21280 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21281 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21282 if test $ac_cv_lib_intl_strftime = yes; then
21283 cat >>confdefs.h <<\_ACEOF
21284 #define HAVE_STRFTIME 1
21285 _ACEOF
21287 LIBS="-lintl $LIBS"
21291 done
21294 # UNIX98 PTYs.
21296 for ac_func in grantpt
21298 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21299 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21300 $as_echo_n "checking for $ac_func... " >&6; }
21301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21302 $as_echo_n "(cached) " >&6
21303 else
21304 cat >conftest.$ac_ext <<_ACEOF
21305 /* confdefs.h. */
21306 _ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21312 #define $ac_func innocuous_$ac_func
21314 /* System header to define __stub macros and hopefully few prototypes,
21315 which can conflict with char $ac_func (); below.
21316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21317 <limits.h> exists even on freestanding compilers. */
21319 #ifdef __STDC__
21320 # include <limits.h>
21321 #else
21322 # include <assert.h>
21323 #endif
21325 #undef $ac_func
21327 /* Override any GCC internal prototype to avoid an error.
21328 Use char because int might match the return type of a GCC
21329 builtin and then its argument prototype would still apply. */
21330 #ifdef __cplusplus
21331 extern "C"
21332 #endif
21333 char $ac_func ();
21334 /* The GNU C library defines this for functions which it implements
21335 to always fail with ENOSYS. Some functions are actually named
21336 something starting with __ and the normal name is an alias. */
21337 #if defined __stub_$ac_func || defined __stub___$ac_func
21338 choke me
21339 #endif
21342 main ()
21344 return $ac_func ();
21346 return 0;
21348 _ACEOF
21349 rm -f conftest.$ac_objext conftest$ac_exeext
21350 if { (ac_try="$ac_link"
21351 case "(($ac_try" in
21352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353 *) ac_try_echo=$ac_try;;
21354 esac
21355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21356 $as_echo "$ac_try_echo") >&5
21357 (eval "$ac_link") 2>conftest.er1
21358 ac_status=$?
21359 grep -v '^ *+' conftest.er1 >conftest.err
21360 rm -f conftest.er1
21361 cat conftest.err >&5
21362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } && {
21364 test -z "$ac_c_werror_flag" ||
21365 test ! -s conftest.err
21366 } && test -s conftest$ac_exeext && {
21367 test "$cross_compiling" = yes ||
21368 $as_test_x conftest$ac_exeext
21369 }; then
21370 eval "$as_ac_var=yes"
21371 else
21372 $as_echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21375 eval "$as_ac_var=no"
21378 rm -rf conftest.dSYM
21379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21380 conftest$ac_exeext conftest.$ac_ext
21382 ac_res=`eval 'as_val=${'$as_ac_var'}
21383 $as_echo "$as_val"'`
21384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21385 $as_echo "$ac_res" >&6; }
21386 if test `eval 'as_val=${'$as_ac_var'}
21387 $as_echo "$as_val"'` = yes; then
21388 cat >>confdefs.h <<_ACEOF
21389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21390 _ACEOF
21393 done
21396 # PTY-related GNU extensions.
21398 for ac_func in getpt
21400 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21401 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21402 $as_echo_n "checking for $ac_func... " >&6; }
21403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21404 $as_echo_n "(cached) " >&6
21405 else
21406 cat >conftest.$ac_ext <<_ACEOF
21407 /* confdefs.h. */
21408 _ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h. */
21412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21414 #define $ac_func innocuous_$ac_func
21416 /* System header to define __stub macros and hopefully few prototypes,
21417 which can conflict with char $ac_func (); below.
21418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21419 <limits.h> exists even on freestanding compilers. */
21421 #ifdef __STDC__
21422 # include <limits.h>
21423 #else
21424 # include <assert.h>
21425 #endif
21427 #undef $ac_func
21429 /* Override any GCC internal prototype to avoid an error.
21430 Use char because int might match the return type of a GCC
21431 builtin and then its argument prototype would still apply. */
21432 #ifdef __cplusplus
21433 extern "C"
21434 #endif
21435 char $ac_func ();
21436 /* The GNU C library defines this for functions which it implements
21437 to always fail with ENOSYS. Some functions are actually named
21438 something starting with __ and the normal name is an alias. */
21439 #if defined __stub_$ac_func || defined __stub___$ac_func
21440 choke me
21441 #endif
21444 main ()
21446 return $ac_func ();
21448 return 0;
21450 _ACEOF
21451 rm -f conftest.$ac_objext conftest$ac_exeext
21452 if { (ac_try="$ac_link"
21453 case "(($ac_try" in
21454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455 *) ac_try_echo=$ac_try;;
21456 esac
21457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21458 $as_echo "$ac_try_echo") >&5
21459 (eval "$ac_link") 2>conftest.er1
21460 ac_status=$?
21461 grep -v '^ *+' conftest.er1 >conftest.err
21462 rm -f conftest.er1
21463 cat conftest.err >&5
21464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); } && {
21466 test -z "$ac_c_werror_flag" ||
21467 test ! -s conftest.err
21468 } && test -s conftest$ac_exeext && {
21469 test "$cross_compiling" = yes ||
21470 $as_test_x conftest$ac_exeext
21471 }; then
21472 eval "$as_ac_var=yes"
21473 else
21474 $as_echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21477 eval "$as_ac_var=no"
21480 rm -rf conftest.dSYM
21481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21482 conftest$ac_exeext conftest.$ac_ext
21484 ac_res=`eval 'as_val=${'$as_ac_var'}
21485 $as_echo "$as_val"'`
21486 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21487 $as_echo "$ac_res" >&6; }
21488 if test `eval 'as_val=${'$as_ac_var'}
21489 $as_echo "$as_val"'` = yes; then
21490 cat >>confdefs.h <<_ACEOF
21491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21492 _ACEOF
21495 done
21498 # Check this now, so that we will NOT find the above functions in ncurses.
21499 # That is because we have not set up to link ncurses in lib-src.
21500 # It's better to believe a function is not available
21501 # than to expect to find it in ncurses.
21502 # Also we need tputs and friends to be able to build at all.
21503 have_tputs_et_al=true
21504 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21505 $as_echo_n "checking for library containing tputs... " >&6; }
21506 if test "${ac_cv_search_tputs+set}" = set; then
21507 $as_echo_n "(cached) " >&6
21508 else
21509 ac_func_search_save_LIBS=$LIBS
21510 cat >conftest.$ac_ext <<_ACEOF
21511 /* confdefs.h. */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21517 /* Override any GCC internal prototype to avoid an error.
21518 Use char because int might match the return type of a GCC
21519 builtin and then its argument prototype would still apply. */
21520 #ifdef __cplusplus
21521 extern "C"
21522 #endif
21523 char tputs ();
21525 main ()
21527 return tputs ();
21529 return 0;
21531 _ACEOF
21532 for ac_lib in '' ncurses terminfo termcap; do
21533 if test -z "$ac_lib"; then
21534 ac_res="none required"
21535 else
21536 ac_res=-l$ac_lib
21537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21539 rm -f conftest.$ac_objext conftest$ac_exeext
21540 if { (ac_try="$ac_link"
21541 case "(($ac_try" in
21542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21544 esac
21545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21546 $as_echo "$ac_try_echo") >&5
21547 (eval "$ac_link") 2>conftest.er1
21548 ac_status=$?
21549 grep -v '^ *+' conftest.er1 >conftest.err
21550 rm -f conftest.er1
21551 cat conftest.err >&5
21552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } && {
21554 test -z "$ac_c_werror_flag" ||
21555 test ! -s conftest.err
21556 } && test -s conftest$ac_exeext && {
21557 test "$cross_compiling" = yes ||
21558 $as_test_x conftest$ac_exeext
21559 }; then
21560 ac_cv_search_tputs=$ac_res
21561 else
21562 $as_echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21568 rm -rf conftest.dSYM
21569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21570 conftest$ac_exeext
21571 if test "${ac_cv_search_tputs+set}" = set; then
21572 break
21574 done
21575 if test "${ac_cv_search_tputs+set}" = set; then
21577 else
21578 ac_cv_search_tputs=no
21580 rm conftest.$ac_ext
21581 LIBS=$ac_func_search_save_LIBS
21583 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21584 $as_echo "$ac_cv_search_tputs" >&6; }
21585 ac_res=$ac_cv_search_tputs
21586 if test "$ac_res" != no; then
21587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21589 else
21590 have_tputs_et_al=false
21593 if test "$have_tputs_et_al" != true; then
21594 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21595 Maybe some development libraries/packages are missing? Try installing
21596 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21597 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21598 Maybe some development libraries/packages are missing? Try installing
21599 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21600 { (exit 1); exit 1; }; }
21602 # Must define this when any termcap library is found.
21604 cat >>confdefs.h <<\_ACEOF
21605 #define HAVE_LIBNCURSES 1
21606 _ACEOF
21608 ## FIXME This was the cpp logic, but I am not sure it is right.
21609 ## The above test has not necessarily found libncurses.
21610 HAVE_LIBNCURSES=yes
21612 ## Use terminfo instead of termcap?
21613 ## Note only system files NOT using terminfo are:
21614 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
21615 ## darwin|gnu without ncurses.
21616 TERMINFO=no
21617 LIBS_TERMCAP=
21618 case "$opsys" in
21619 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21620 ## hpux10-20: Use the system provided termcap(3) library.
21621 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21622 ## is necessary. Otherwise Emacs dumps core when run -nw.
21623 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
21625 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21626 ## The ncurses library has been moved out of the System framework in
21627 ## Mac OS X 10.2. So if configure detects it, set the command-line
21628 ## option to use it.
21629 darwin|gnu*)
21630 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21631 if test "x$HAVE_LIBNCURSES" = "xyes"; then
21632 TERMINFO=yes
21633 LIBS_TERMCAP="-lncurses"
21637 freebsd)
21638 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo" >&5
21639 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21640 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21641 $as_echo_n "(cached) " >&6
21642 else
21643 cat >conftest.$ac_ext <<_ACEOF
21644 /* confdefs.h. */
21645 _ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21649 #include <osreldate.h>
21651 main ()
21653 #if __FreeBSD_version < 400000
21654 fail;
21655 #endif
21658 return 0;
21660 _ACEOF
21661 rm -f conftest.$ac_objext conftest$ac_exeext
21662 if { (ac_try="$ac_link"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21666 esac
21667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21668 $as_echo "$ac_try_echo") >&5
21669 (eval "$ac_link") 2>conftest.er1
21670 ac_status=$?
21671 grep -v '^ *+' conftest.er1 >conftest.err
21672 rm -f conftest.er1
21673 cat conftest.err >&5
21674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); } && {
21676 test -z "$ac_c_werror_flag" ||
21677 test ! -s conftest.err
21678 } && test -s conftest$ac_exeext && {
21679 test "$cross_compiling" = yes ||
21680 $as_test_x conftest$ac_exeext
21681 }; then
21682 emacs_cv_freebsd_terminfo=yes
21683 else
21684 $as_echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21687 emacs_cv_freebsd_terminfo=no
21690 rm -rf conftest.dSYM
21691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21692 conftest$ac_exeext conftest.$ac_ext
21696 { $as_echo "$as_me:$LINENO: result: $emacs_cv_freebsd_terminfo" >&5
21697 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21699 if test $emacs_cv_freebsd_terminfo = yes; then
21700 TERMINFO=yes
21701 LIBS_TERMCAP="-lncurses"
21702 else
21703 LIBS_TERMCAP="-ltermcap"
21707 netbsd)
21708 if test $ac_cv_search_tputs = -lterminfo; then
21709 TERMINFO=yes
21710 LIBS_TERMCAP="-lterminfo"
21711 else
21712 LIBS_TERMCAP="-ltermcap"
21716 esac
21718 case "$opsys" in
21719 ## hpux: Make sure we get select from libc rather than from libcurses
21720 ## because libcurses on HPUX 10.10 has a broken version of select.
21721 ## We used to use -lc -lcurses, but this may be cleaner.
21722 hpux*) LIBS_TERMCAP="-ltermcap" ;;
21724 openbsd) LIBS_TERMCAP="-lncurses" ;;
21726 ## Must use system termcap, if we use any termcap. It does special things.
21727 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21728 esac
21730 TERMCAP_OBJ=tparam.o
21731 if test $TERMINFO = yes; then
21733 cat >>confdefs.h <<\_ACEOF
21734 #define TERMINFO 1
21735 _ACEOF
21738 ## Default used to be -ltermcap. Add a case above if need something else.
21739 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
21741 TERMCAP_OBJ=terminfo.o
21747 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21748 resolv=no
21749 cat >conftest.$ac_ext <<_ACEOF
21750 /* confdefs.h. */
21751 _ACEOF
21752 cat confdefs.h >>conftest.$ac_ext
21753 cat >>conftest.$ac_ext <<_ACEOF
21754 /* end confdefs.h. */
21755 #include <netinet/in.h>
21756 #include <arpa/nameser.h>
21757 #include <resolv.h>
21759 main ()
21761 return res_init();
21763 return 0;
21765 _ACEOF
21766 rm -f conftest.$ac_objext conftest$ac_exeext
21767 if { (ac_try="$ac_link"
21768 case "(($ac_try" in
21769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770 *) ac_try_echo=$ac_try;;
21771 esac
21772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21773 $as_echo "$ac_try_echo") >&5
21774 (eval "$ac_link") 2>conftest.er1
21775 ac_status=$?
21776 grep -v '^ *+' conftest.er1 >conftest.err
21777 rm -f conftest.er1
21778 cat conftest.err >&5
21779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); } && {
21781 test -z "$ac_c_werror_flag" ||
21782 test ! -s conftest.err
21783 } && test -s conftest$ac_exeext && {
21784 test "$cross_compiling" = yes ||
21785 $as_test_x conftest$ac_exeext
21786 }; then
21787 have_res_init=yes
21788 else
21789 $as_echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21792 have_res_init=no
21795 rm -rf conftest.dSYM
21796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21797 conftest$ac_exeext conftest.$ac_ext
21798 if test "$have_res_init" = no; then
21799 OLIBS="$LIBS"
21800 LIBS="$LIBS -lresolv"
21801 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21802 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21803 cat >conftest.$ac_ext <<_ACEOF
21804 /* confdefs.h. */
21805 _ACEOF
21806 cat confdefs.h >>conftest.$ac_ext
21807 cat >>conftest.$ac_ext <<_ACEOF
21808 /* end confdefs.h. */
21809 #include <netinet/in.h>
21810 #include <arpa/nameser.h>
21811 #include <resolv.h>
21813 main ()
21815 return res_init();
21817 return 0;
21819 _ACEOF
21820 rm -f conftest.$ac_objext conftest$ac_exeext
21821 if { (ac_try="$ac_link"
21822 case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21825 esac
21826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21827 $as_echo "$ac_try_echo") >&5
21828 (eval "$ac_link") 2>conftest.er1
21829 ac_status=$?
21830 grep -v '^ *+' conftest.er1 >conftest.err
21831 rm -f conftest.er1
21832 cat conftest.err >&5
21833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); } && {
21835 test -z "$ac_c_werror_flag" ||
21836 test ! -s conftest.err
21837 } && test -s conftest$ac_exeext && {
21838 test "$cross_compiling" = yes ||
21839 $as_test_x conftest$ac_exeext
21840 }; then
21841 have_res_init=yes
21842 else
21843 $as_echo "$as_me: failed program was:" >&5
21844 sed 's/^/| /' conftest.$ac_ext >&5
21846 have_res_init=no
21849 rm -rf conftest.dSYM
21850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21851 conftest$ac_exeext conftest.$ac_ext
21852 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21853 $as_echo "$have_res_init" >&6; }
21854 if test "$have_res_init" = yes ; then
21855 resolv=yes
21857 LIBS="$OLIBS"
21860 if test "$have_res_init" = yes; then
21862 cat >>confdefs.h <<\_ACEOF
21863 #define HAVE_RES_INIT 1
21864 _ACEOF
21868 # Do we need the Hesiod library to provide the support routines?
21869 LIBHESIOD=
21870 if test "$with_hesiod" != no ; then
21871 # Don't set $LIBS here -- see comments above. FIXME which comments?
21872 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21873 $as_echo_n "checking for res_send... " >&6; }
21874 if test "${ac_cv_func_res_send+set}" = set; then
21875 $as_echo_n "(cached) " >&6
21876 else
21877 cat >conftest.$ac_ext <<_ACEOF
21878 /* confdefs.h. */
21879 _ACEOF
21880 cat confdefs.h >>conftest.$ac_ext
21881 cat >>conftest.$ac_ext <<_ACEOF
21882 /* end confdefs.h. */
21883 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21885 #define res_send innocuous_res_send
21887 /* System header to define __stub macros and hopefully few prototypes,
21888 which can conflict with char res_send (); below.
21889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21890 <limits.h> exists even on freestanding compilers. */
21892 #ifdef __STDC__
21893 # include <limits.h>
21894 #else
21895 # include <assert.h>
21896 #endif
21898 #undef res_send
21900 /* Override any GCC internal prototype to avoid an error.
21901 Use char because int might match the return type of a GCC
21902 builtin and then its argument prototype would still apply. */
21903 #ifdef __cplusplus
21904 extern "C"
21905 #endif
21906 char res_send ();
21907 /* The GNU C library defines this for functions which it implements
21908 to always fail with ENOSYS. Some functions are actually named
21909 something starting with __ and the normal name is an alias. */
21910 #if defined __stub_res_send || defined __stub___res_send
21911 choke me
21912 #endif
21915 main ()
21917 return res_send ();
21919 return 0;
21921 _ACEOF
21922 rm -f conftest.$ac_objext conftest$ac_exeext
21923 if { (ac_try="$ac_link"
21924 case "(($ac_try" in
21925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21926 *) ac_try_echo=$ac_try;;
21927 esac
21928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21929 $as_echo "$ac_try_echo") >&5
21930 (eval "$ac_link") 2>conftest.er1
21931 ac_status=$?
21932 grep -v '^ *+' conftest.er1 >conftest.err
21933 rm -f conftest.er1
21934 cat conftest.err >&5
21935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); } && {
21937 test -z "$ac_c_werror_flag" ||
21938 test ! -s conftest.err
21939 } && test -s conftest$ac_exeext && {
21940 test "$cross_compiling" = yes ||
21941 $as_test_x conftest$ac_exeext
21942 }; then
21943 ac_cv_func_res_send=yes
21944 else
21945 $as_echo "$as_me: failed program was:" >&5
21946 sed 's/^/| /' conftest.$ac_ext >&5
21948 ac_cv_func_res_send=no
21951 rm -rf conftest.dSYM
21952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21953 conftest$ac_exeext conftest.$ac_ext
21955 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21956 $as_echo "$ac_cv_func_res_send" >&6; }
21957 if test $ac_cv_func_res_send = yes; then
21959 else
21960 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21961 $as_echo_n "checking for __res_send... " >&6; }
21962 if test "${ac_cv_func___res_send+set}" = set; then
21963 $as_echo_n "(cached) " >&6
21964 else
21965 cat >conftest.$ac_ext <<_ACEOF
21966 /* confdefs.h. */
21967 _ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h. */
21971 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21973 #define __res_send innocuous___res_send
21975 /* System header to define __stub macros and hopefully few prototypes,
21976 which can conflict with char __res_send (); below.
21977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21978 <limits.h> exists even on freestanding compilers. */
21980 #ifdef __STDC__
21981 # include <limits.h>
21982 #else
21983 # include <assert.h>
21984 #endif
21986 #undef __res_send
21988 /* Override any GCC internal prototype to avoid an error.
21989 Use char because int might match the return type of a GCC
21990 builtin and then its argument prototype would still apply. */
21991 #ifdef __cplusplus
21992 extern "C"
21993 #endif
21994 char __res_send ();
21995 /* The GNU C library defines this for functions which it implements
21996 to always fail with ENOSYS. Some functions are actually named
21997 something starting with __ and the normal name is an alias. */
21998 #if defined __stub___res_send || defined __stub_____res_send
21999 choke me
22000 #endif
22003 main ()
22005 return __res_send ();
22007 return 0;
22009 _ACEOF
22010 rm -f conftest.$ac_objext conftest$ac_exeext
22011 if { (ac_try="$ac_link"
22012 case "(($ac_try" in
22013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22014 *) ac_try_echo=$ac_try;;
22015 esac
22016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22017 $as_echo "$ac_try_echo") >&5
22018 (eval "$ac_link") 2>conftest.er1
22019 ac_status=$?
22020 grep -v '^ *+' conftest.er1 >conftest.err
22021 rm -f conftest.er1
22022 cat conftest.err >&5
22023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); } && {
22025 test -z "$ac_c_werror_flag" ||
22026 test ! -s conftest.err
22027 } && test -s conftest$ac_exeext && {
22028 test "$cross_compiling" = yes ||
22029 $as_test_x conftest$ac_exeext
22030 }; then
22031 ac_cv_func___res_send=yes
22032 else
22033 $as_echo "$as_me: failed program was:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22036 ac_cv_func___res_send=no
22039 rm -rf conftest.dSYM
22040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22041 conftest$ac_exeext conftest.$ac_ext
22043 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
22044 $as_echo "$ac_cv_func___res_send" >&6; }
22045 if test $ac_cv_func___res_send = yes; then
22047 else
22048 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
22049 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22050 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22051 $as_echo_n "(cached) " >&6
22052 else
22053 ac_check_lib_save_LIBS=$LIBS
22054 LIBS="-lresolv $LIBS"
22055 cat >conftest.$ac_ext <<_ACEOF
22056 /* confdefs.h. */
22057 _ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22062 /* Override any GCC internal prototype to avoid an error.
22063 Use char because int might match the return type of a GCC
22064 builtin and then its argument prototype would still apply. */
22065 #ifdef __cplusplus
22066 extern "C"
22067 #endif
22068 char res_send ();
22070 main ()
22072 return res_send ();
22074 return 0;
22076 _ACEOF
22077 rm -f conftest.$ac_objext conftest$ac_exeext
22078 if { (ac_try="$ac_link"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22082 esac
22083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22084 $as_echo "$ac_try_echo") >&5
22085 (eval "$ac_link") 2>conftest.er1
22086 ac_status=$?
22087 grep -v '^ *+' conftest.er1 >conftest.err
22088 rm -f conftest.er1
22089 cat conftest.err >&5
22090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } && {
22092 test -z "$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22094 } && test -s conftest$ac_exeext && {
22095 test "$cross_compiling" = yes ||
22096 $as_test_x conftest$ac_exeext
22097 }; then
22098 ac_cv_lib_resolv_res_send=yes
22099 else
22100 $as_echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22103 ac_cv_lib_resolv_res_send=no
22106 rm -rf conftest.dSYM
22107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22108 conftest$ac_exeext conftest.$ac_ext
22109 LIBS=$ac_check_lib_save_LIBS
22111 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
22112 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22113 if test $ac_cv_lib_resolv_res_send = yes; then
22114 resolv=yes
22115 else
22116 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
22117 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22118 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22119 $as_echo_n "(cached) " >&6
22120 else
22121 ac_check_lib_save_LIBS=$LIBS
22122 LIBS="-lresolv $LIBS"
22123 cat >conftest.$ac_ext <<_ACEOF
22124 /* confdefs.h. */
22125 _ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h. */
22130 /* Override any GCC internal prototype to avoid an error.
22131 Use char because int might match the return type of a GCC
22132 builtin and then its argument prototype would still apply. */
22133 #ifdef __cplusplus
22134 extern "C"
22135 #endif
22136 char __res_send ();
22138 main ()
22140 return __res_send ();
22142 return 0;
22144 _ACEOF
22145 rm -f conftest.$ac_objext conftest$ac_exeext
22146 if { (ac_try="$ac_link"
22147 case "(($ac_try" in
22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149 *) ac_try_echo=$ac_try;;
22150 esac
22151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22152 $as_echo "$ac_try_echo") >&5
22153 (eval "$ac_link") 2>conftest.er1
22154 ac_status=$?
22155 grep -v '^ *+' conftest.er1 >conftest.err
22156 rm -f conftest.er1
22157 cat conftest.err >&5
22158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } && {
22160 test -z "$ac_c_werror_flag" ||
22161 test ! -s conftest.err
22162 } && test -s conftest$ac_exeext && {
22163 test "$cross_compiling" = yes ||
22164 $as_test_x conftest$ac_exeext
22165 }; then
22166 ac_cv_lib_resolv___res_send=yes
22167 else
22168 $as_echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22171 ac_cv_lib_resolv___res_send=no
22174 rm -rf conftest.dSYM
22175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22176 conftest$ac_exeext conftest.$ac_ext
22177 LIBS=$ac_check_lib_save_LIBS
22179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
22180 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22181 if test $ac_cv_lib_resolv___res_send = yes; then
22182 resolv=yes
22191 if test "$resolv" = yes ; then
22192 RESOLVLIB=-lresolv
22193 else
22194 RESOLVLIB=
22196 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
22197 $as_echo_n "checking for hes_getmailhost... " >&6; }
22198 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22199 $as_echo_n "(cached) " >&6
22200 else
22201 cat >conftest.$ac_ext <<_ACEOF
22202 /* confdefs.h. */
22203 _ACEOF
22204 cat confdefs.h >>conftest.$ac_ext
22205 cat >>conftest.$ac_ext <<_ACEOF
22206 /* end confdefs.h. */
22207 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22209 #define hes_getmailhost innocuous_hes_getmailhost
22211 /* System header to define __stub macros and hopefully few prototypes,
22212 which can conflict with char hes_getmailhost (); below.
22213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22214 <limits.h> exists even on freestanding compilers. */
22216 #ifdef __STDC__
22217 # include <limits.h>
22218 #else
22219 # include <assert.h>
22220 #endif
22222 #undef hes_getmailhost
22224 /* Override any GCC internal prototype to avoid an error.
22225 Use char because int might match the return type of a GCC
22226 builtin and then its argument prototype would still apply. */
22227 #ifdef __cplusplus
22228 extern "C"
22229 #endif
22230 char hes_getmailhost ();
22231 /* The GNU C library defines this for functions which it implements
22232 to always fail with ENOSYS. Some functions are actually named
22233 something starting with __ and the normal name is an alias. */
22234 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22235 choke me
22236 #endif
22239 main ()
22241 return hes_getmailhost ();
22243 return 0;
22245 _ACEOF
22246 rm -f conftest.$ac_objext conftest$ac_exeext
22247 if { (ac_try="$ac_link"
22248 case "(($ac_try" in
22249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250 *) ac_try_echo=$ac_try;;
22251 esac
22252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22253 $as_echo "$ac_try_echo") >&5
22254 (eval "$ac_link") 2>conftest.er1
22255 ac_status=$?
22256 grep -v '^ *+' conftest.er1 >conftest.err
22257 rm -f conftest.er1
22258 cat conftest.err >&5
22259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } && {
22261 test -z "$ac_c_werror_flag" ||
22262 test ! -s conftest.err
22263 } && test -s conftest$ac_exeext && {
22264 test "$cross_compiling" = yes ||
22265 $as_test_x conftest$ac_exeext
22266 }; then
22267 ac_cv_func_hes_getmailhost=yes
22268 else
22269 $as_echo "$as_me: failed program was:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22272 ac_cv_func_hes_getmailhost=no
22275 rm -rf conftest.dSYM
22276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22277 conftest$ac_exeext conftest.$ac_ext
22279 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
22280 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22281 if test $ac_cv_func_hes_getmailhost = yes; then
22283 else
22284 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
22285 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22286 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22287 $as_echo_n "(cached) " >&6
22288 else
22289 ac_check_lib_save_LIBS=$LIBS
22290 LIBS="-lhesiod $RESOLVLIB $LIBS"
22291 cat >conftest.$ac_ext <<_ACEOF
22292 /* confdefs.h. */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22298 /* Override any GCC internal prototype to avoid an error.
22299 Use char because int might match the return type of a GCC
22300 builtin and then its argument prototype would still apply. */
22301 #ifdef __cplusplus
22302 extern "C"
22303 #endif
22304 char hes_getmailhost ();
22306 main ()
22308 return hes_getmailhost ();
22310 return 0;
22312 _ACEOF
22313 rm -f conftest.$ac_objext conftest$ac_exeext
22314 if { (ac_try="$ac_link"
22315 case "(($ac_try" in
22316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22317 *) ac_try_echo=$ac_try;;
22318 esac
22319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22320 $as_echo "$ac_try_echo") >&5
22321 (eval "$ac_link") 2>conftest.er1
22322 ac_status=$?
22323 grep -v '^ *+' conftest.er1 >conftest.err
22324 rm -f conftest.er1
22325 cat conftest.err >&5
22326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); } && {
22328 test -z "$ac_c_werror_flag" ||
22329 test ! -s conftest.err
22330 } && test -s conftest$ac_exeext && {
22331 test "$cross_compiling" = yes ||
22332 $as_test_x conftest$ac_exeext
22333 }; then
22334 ac_cv_lib_hesiod_hes_getmailhost=yes
22335 else
22336 $as_echo "$as_me: failed program was:" >&5
22337 sed 's/^/| /' conftest.$ac_ext >&5
22339 ac_cv_lib_hesiod_hes_getmailhost=no
22342 rm -rf conftest.dSYM
22343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22344 conftest$ac_exeext conftest.$ac_ext
22345 LIBS=$ac_check_lib_save_LIBS
22347 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22348 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22349 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22350 hesiod=yes
22351 else
22358 if test x"$hesiod" = xyes; then
22360 cat >>confdefs.h <<\_ACEOF
22361 #define HAVE_LIBHESIOD 1
22362 _ACEOF
22364 LIBHESIOD=-lhesiod
22369 # Do we need libresolv (due to res_init or Hesiod)?
22370 if test "$resolv" = yes ; then
22372 cat >>confdefs.h <<\_ACEOF
22373 #define HAVE_LIBRESOLV 1
22374 _ACEOF
22376 LIBRESOLV=-lresolv
22377 else
22378 LIBRESOLV=
22382 # These tell us which Kerberos-related libraries to use.
22383 COM_ERRLIB=
22384 CRYPTOLIB=
22385 KRB5LIB=
22386 DESLIB=
22387 KRB4LIB=
22389 if test "${with_kerberos}" != no; then
22390 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22391 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22392 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22393 $as_echo_n "(cached) " >&6
22394 else
22395 ac_check_lib_save_LIBS=$LIBS
22396 LIBS="-lcom_err $LIBS"
22397 cat >conftest.$ac_ext <<_ACEOF
22398 /* confdefs.h. */
22399 _ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h. */
22404 /* Override any GCC internal prototype to avoid an error.
22405 Use char because int might match the return type of a GCC
22406 builtin and then its argument prototype would still apply. */
22407 #ifdef __cplusplus
22408 extern "C"
22409 #endif
22410 char com_err ();
22412 main ()
22414 return com_err ();
22416 return 0;
22418 _ACEOF
22419 rm -f conftest.$ac_objext conftest$ac_exeext
22420 if { (ac_try="$ac_link"
22421 case "(($ac_try" in
22422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423 *) ac_try_echo=$ac_try;;
22424 esac
22425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22426 $as_echo "$ac_try_echo") >&5
22427 (eval "$ac_link") 2>conftest.er1
22428 ac_status=$?
22429 grep -v '^ *+' conftest.er1 >conftest.err
22430 rm -f conftest.er1
22431 cat conftest.err >&5
22432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } && {
22434 test -z "$ac_c_werror_flag" ||
22435 test ! -s conftest.err
22436 } && test -s conftest$ac_exeext && {
22437 test "$cross_compiling" = yes ||
22438 $as_test_x conftest$ac_exeext
22439 }; then
22440 ac_cv_lib_com_err_com_err=yes
22441 else
22442 $as_echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22445 ac_cv_lib_com_err_com_err=no
22448 rm -rf conftest.dSYM
22449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22450 conftest$ac_exeext conftest.$ac_ext
22451 LIBS=$ac_check_lib_save_LIBS
22453 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22454 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22455 if test $ac_cv_lib_com_err_com_err = yes; then
22456 have_com_err=yes
22457 else
22458 have_com_err=no
22461 if test $have_com_err = yes; then
22462 COM_ERRLIB=-lcom_err
22463 LIBS="$COM_ERRLIB $LIBS"
22465 cat >>confdefs.h <<\_ACEOF
22466 #define HAVE_LIBCOM_ERR 1
22467 _ACEOF
22470 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22471 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22472 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22473 $as_echo_n "(cached) " >&6
22474 else
22475 ac_check_lib_save_LIBS=$LIBS
22476 LIBS="-lcrypto $LIBS"
22477 cat >conftest.$ac_ext <<_ACEOF
22478 /* confdefs.h. */
22479 _ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22484 /* Override any GCC internal prototype to avoid an error.
22485 Use char because int might match the return type of a GCC
22486 builtin and then its argument prototype would still apply. */
22487 #ifdef __cplusplus
22488 extern "C"
22489 #endif
22490 char mit_des_cbc_encrypt ();
22492 main ()
22494 return mit_des_cbc_encrypt ();
22496 return 0;
22498 _ACEOF
22499 rm -f conftest.$ac_objext conftest$ac_exeext
22500 if { (ac_try="$ac_link"
22501 case "(($ac_try" in
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503 *) ac_try_echo=$ac_try;;
22504 esac
22505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22506 $as_echo "$ac_try_echo") >&5
22507 (eval "$ac_link") 2>conftest.er1
22508 ac_status=$?
22509 grep -v '^ *+' conftest.er1 >conftest.err
22510 rm -f conftest.er1
22511 cat conftest.err >&5
22512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); } && {
22514 test -z "$ac_c_werror_flag" ||
22515 test ! -s conftest.err
22516 } && test -s conftest$ac_exeext && {
22517 test "$cross_compiling" = yes ||
22518 $as_test_x conftest$ac_exeext
22519 }; then
22520 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22521 else
22522 $as_echo "$as_me: failed program was:" >&5
22523 sed 's/^/| /' conftest.$ac_ext >&5
22525 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22528 rm -rf conftest.dSYM
22529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22530 conftest$ac_exeext conftest.$ac_ext
22531 LIBS=$ac_check_lib_save_LIBS
22533 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22534 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22535 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22536 have_crypto=yes
22537 else
22538 have_crypto=no
22541 if test $have_crypto = yes; then
22542 CRYPTOLIB=-lcrypto
22543 LIBS="$CRYPTOLIB $LIBS"
22545 cat >>confdefs.h <<\_ACEOF
22546 #define HAVE_LIBCRYPTO 1
22547 _ACEOF
22550 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22551 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22552 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22553 $as_echo_n "(cached) " >&6
22554 else
22555 ac_check_lib_save_LIBS=$LIBS
22556 LIBS="-lk5crypto $LIBS"
22557 cat >conftest.$ac_ext <<_ACEOF
22558 /* confdefs.h. */
22559 _ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h. */
22564 /* Override any GCC internal prototype to avoid an error.
22565 Use char because int might match the return type of a GCC
22566 builtin and then its argument prototype would still apply. */
22567 #ifdef __cplusplus
22568 extern "C"
22569 #endif
22570 char mit_des_cbc_encrypt ();
22572 main ()
22574 return mit_des_cbc_encrypt ();
22576 return 0;
22578 _ACEOF
22579 rm -f conftest.$ac_objext conftest$ac_exeext
22580 if { (ac_try="$ac_link"
22581 case "(($ac_try" in
22582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22583 *) ac_try_echo=$ac_try;;
22584 esac
22585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22586 $as_echo "$ac_try_echo") >&5
22587 (eval "$ac_link") 2>conftest.er1
22588 ac_status=$?
22589 grep -v '^ *+' conftest.er1 >conftest.err
22590 rm -f conftest.er1
22591 cat conftest.err >&5
22592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); } && {
22594 test -z "$ac_c_werror_flag" ||
22595 test ! -s conftest.err
22596 } && test -s conftest$ac_exeext && {
22597 test "$cross_compiling" = yes ||
22598 $as_test_x conftest$ac_exeext
22599 }; then
22600 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22601 else
22602 $as_echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22605 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22608 rm -rf conftest.dSYM
22609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22610 conftest$ac_exeext conftest.$ac_ext
22611 LIBS=$ac_check_lib_save_LIBS
22613 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22614 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22615 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22616 have_k5crypto=yes
22617 else
22618 have_k5crypto=no
22621 if test $have_k5crypto = yes; then
22622 CRYPTOLIB=-lk5crypto
22623 LIBS="$CRYPTOLIB $LIBS"
22625 cat >>confdefs.h <<\_ACEOF
22626 #define HAVE_LIBK5CRYPTO 1
22627 _ACEOF
22630 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22631 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22632 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22633 $as_echo_n "(cached) " >&6
22634 else
22635 ac_check_lib_save_LIBS=$LIBS
22636 LIBS="-lkrb5 $LIBS"
22637 cat >conftest.$ac_ext <<_ACEOF
22638 /* confdefs.h. */
22639 _ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22644 /* Override any GCC internal prototype to avoid an error.
22645 Use char because int might match the return type of a GCC
22646 builtin and then its argument prototype would still apply. */
22647 #ifdef __cplusplus
22648 extern "C"
22649 #endif
22650 char krb5_init_context ();
22652 main ()
22654 return krb5_init_context ();
22656 return 0;
22658 _ACEOF
22659 rm -f conftest.$ac_objext conftest$ac_exeext
22660 if { (ac_try="$ac_link"
22661 case "(($ac_try" in
22662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22663 *) ac_try_echo=$ac_try;;
22664 esac
22665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22666 $as_echo "$ac_try_echo") >&5
22667 (eval "$ac_link") 2>conftest.er1
22668 ac_status=$?
22669 grep -v '^ *+' conftest.er1 >conftest.err
22670 rm -f conftest.er1
22671 cat conftest.err >&5
22672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } && {
22674 test -z "$ac_c_werror_flag" ||
22675 test ! -s conftest.err
22676 } && test -s conftest$ac_exeext && {
22677 test "$cross_compiling" = yes ||
22678 $as_test_x conftest$ac_exeext
22679 }; then
22680 ac_cv_lib_krb5_krb5_init_context=yes
22681 else
22682 $as_echo "$as_me: failed program was:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22685 ac_cv_lib_krb5_krb5_init_context=no
22688 rm -rf conftest.dSYM
22689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22690 conftest$ac_exeext conftest.$ac_ext
22691 LIBS=$ac_check_lib_save_LIBS
22693 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22694 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22695 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22696 have_krb5=yes
22697 else
22698 have_krb5=no
22701 if test $have_krb5=yes; then
22702 KRB5LIB=-lkrb5
22703 LIBS="$KRB5LIB $LIBS"
22705 cat >>confdefs.h <<\_ACEOF
22706 #define HAVE_LIBKRB5 1
22707 _ACEOF
22710 if test "${with_kerberos5}" = no; then
22711 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22712 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22713 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22714 $as_echo_n "(cached) " >&6
22715 else
22716 ac_check_lib_save_LIBS=$LIBS
22717 LIBS="-ldes425 $LIBS"
22718 cat >conftest.$ac_ext <<_ACEOF
22719 /* confdefs.h. */
22720 _ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22725 /* Override any GCC internal prototype to avoid an error.
22726 Use char because int might match the return type of a GCC
22727 builtin and then its argument prototype would still apply. */
22728 #ifdef __cplusplus
22729 extern "C"
22730 #endif
22731 char des_cbc_encrypt ();
22733 main ()
22735 return des_cbc_encrypt ();
22737 return 0;
22739 _ACEOF
22740 rm -f conftest.$ac_objext conftest$ac_exeext
22741 if { (ac_try="$ac_link"
22742 case "(($ac_try" in
22743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744 *) ac_try_echo=$ac_try;;
22745 esac
22746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22747 $as_echo "$ac_try_echo") >&5
22748 (eval "$ac_link") 2>conftest.er1
22749 ac_status=$?
22750 grep -v '^ *+' conftest.er1 >conftest.err
22751 rm -f conftest.er1
22752 cat conftest.err >&5
22753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); } && {
22755 test -z "$ac_c_werror_flag" ||
22756 test ! -s conftest.err
22757 } && test -s conftest$ac_exeext && {
22758 test "$cross_compiling" = yes ||
22759 $as_test_x conftest$ac_exeext
22760 }; then
22761 ac_cv_lib_des425_des_cbc_encrypt=yes
22762 else
22763 $as_echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22766 ac_cv_lib_des425_des_cbc_encrypt=no
22769 rm -rf conftest.dSYM
22770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22771 conftest$ac_exeext conftest.$ac_ext
22772 LIBS=$ac_check_lib_save_LIBS
22774 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22775 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22776 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22777 have_des425=yes
22778 else
22779 have_des425=no
22782 if test $have_des425 = yes; then
22783 DESLIB=-ldes425
22784 LIBS="$DESLIB $LIBS"
22786 cat >>confdefs.h <<\_ACEOF
22787 #define HAVE_LIBDES425 1
22788 _ACEOF
22790 else
22791 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22792 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22793 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22794 $as_echo_n "(cached) " >&6
22795 else
22796 ac_check_lib_save_LIBS=$LIBS
22797 LIBS="-ldes $LIBS"
22798 cat >conftest.$ac_ext <<_ACEOF
22799 /* confdefs.h. */
22800 _ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h. */
22805 /* Override any GCC internal prototype to avoid an error.
22806 Use char because int might match the return type of a GCC
22807 builtin and then its argument prototype would still apply. */
22808 #ifdef __cplusplus
22809 extern "C"
22810 #endif
22811 char des_cbc_encrypt ();
22813 main ()
22815 return des_cbc_encrypt ();
22817 return 0;
22819 _ACEOF
22820 rm -f conftest.$ac_objext conftest$ac_exeext
22821 if { (ac_try="$ac_link"
22822 case "(($ac_try" in
22823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22824 *) ac_try_echo=$ac_try;;
22825 esac
22826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22827 $as_echo "$ac_try_echo") >&5
22828 (eval "$ac_link") 2>conftest.er1
22829 ac_status=$?
22830 grep -v '^ *+' conftest.er1 >conftest.err
22831 rm -f conftest.er1
22832 cat conftest.err >&5
22833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } && {
22835 test -z "$ac_c_werror_flag" ||
22836 test ! -s conftest.err
22837 } && test -s conftest$ac_exeext && {
22838 test "$cross_compiling" = yes ||
22839 $as_test_x conftest$ac_exeext
22840 }; then
22841 ac_cv_lib_des_des_cbc_encrypt=yes
22842 else
22843 $as_echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22846 ac_cv_lib_des_des_cbc_encrypt=no
22849 rm -rf conftest.dSYM
22850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22851 conftest$ac_exeext conftest.$ac_ext
22852 LIBS=$ac_check_lib_save_LIBS
22854 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22855 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22856 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22857 have_des=yes
22858 else
22859 have_des=no
22862 if test $have_des = yes; then
22863 DESLIB=-ldes
22864 LIBS="$DESLIB $LIBS"
22866 cat >>confdefs.h <<\_ACEOF
22867 #define HAVE_LIBDES 1
22868 _ACEOF
22872 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22873 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22874 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22875 $as_echo_n "(cached) " >&6
22876 else
22877 ac_check_lib_save_LIBS=$LIBS
22878 LIBS="-lkrb4 $LIBS"
22879 cat >conftest.$ac_ext <<_ACEOF
22880 /* confdefs.h. */
22881 _ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h. */
22886 /* Override any GCC internal prototype to avoid an error.
22887 Use char because int might match the return type of a GCC
22888 builtin and then its argument prototype would still apply. */
22889 #ifdef __cplusplus
22890 extern "C"
22891 #endif
22892 char krb_get_cred ();
22894 main ()
22896 return krb_get_cred ();
22898 return 0;
22900 _ACEOF
22901 rm -f conftest.$ac_objext conftest$ac_exeext
22902 if { (ac_try="$ac_link"
22903 case "(($ac_try" in
22904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22905 *) ac_try_echo=$ac_try;;
22906 esac
22907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22908 $as_echo "$ac_try_echo") >&5
22909 (eval "$ac_link") 2>conftest.er1
22910 ac_status=$?
22911 grep -v '^ *+' conftest.er1 >conftest.err
22912 rm -f conftest.er1
22913 cat conftest.err >&5
22914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); } && {
22916 test -z "$ac_c_werror_flag" ||
22917 test ! -s conftest.err
22918 } && test -s conftest$ac_exeext && {
22919 test "$cross_compiling" = yes ||
22920 $as_test_x conftest$ac_exeext
22921 }; then
22922 ac_cv_lib_krb4_krb_get_cred=yes
22923 else
22924 $as_echo "$as_me: failed program was:" >&5
22925 sed 's/^/| /' conftest.$ac_ext >&5
22927 ac_cv_lib_krb4_krb_get_cred=no
22930 rm -rf conftest.dSYM
22931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22932 conftest$ac_exeext conftest.$ac_ext
22933 LIBS=$ac_check_lib_save_LIBS
22935 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22936 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22937 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22938 have_krb4=yes
22939 else
22940 have_krb4=no
22943 if test $have_krb4 = yes; then
22944 KRB4LIB=-lkrb4
22945 LIBS="$KRB4LIB $LIBS"
22947 cat >>confdefs.h <<\_ACEOF
22948 #define HAVE_LIBKRB4 1
22949 _ACEOF
22951 else
22952 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22953 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22954 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22955 $as_echo_n "(cached) " >&6
22956 else
22957 ac_check_lib_save_LIBS=$LIBS
22958 LIBS="-lkrb $LIBS"
22959 cat >conftest.$ac_ext <<_ACEOF
22960 /* confdefs.h. */
22961 _ACEOF
22962 cat confdefs.h >>conftest.$ac_ext
22963 cat >>conftest.$ac_ext <<_ACEOF
22964 /* end confdefs.h. */
22966 /* Override any GCC internal prototype to avoid an error.
22967 Use char because int might match the return type of a GCC
22968 builtin and then its argument prototype would still apply. */
22969 #ifdef __cplusplus
22970 extern "C"
22971 #endif
22972 char krb_get_cred ();
22974 main ()
22976 return krb_get_cred ();
22978 return 0;
22980 _ACEOF
22981 rm -f conftest.$ac_objext conftest$ac_exeext
22982 if { (ac_try="$ac_link"
22983 case "(($ac_try" in
22984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985 *) ac_try_echo=$ac_try;;
22986 esac
22987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22988 $as_echo "$ac_try_echo") >&5
22989 (eval "$ac_link") 2>conftest.er1
22990 ac_status=$?
22991 grep -v '^ *+' conftest.er1 >conftest.err
22992 rm -f conftest.er1
22993 cat conftest.err >&5
22994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); } && {
22996 test -z "$ac_c_werror_flag" ||
22997 test ! -s conftest.err
22998 } && test -s conftest$ac_exeext && {
22999 test "$cross_compiling" = yes ||
23000 $as_test_x conftest$ac_exeext
23001 }; then
23002 ac_cv_lib_krb_krb_get_cred=yes
23003 else
23004 $as_echo "$as_me: failed program was:" >&5
23005 sed 's/^/| /' conftest.$ac_ext >&5
23007 ac_cv_lib_krb_krb_get_cred=no
23010 rm -rf conftest.dSYM
23011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23012 conftest$ac_exeext conftest.$ac_ext
23013 LIBS=$ac_check_lib_save_LIBS
23015 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
23016 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23017 if test $ac_cv_lib_krb_krb_get_cred = yes; then
23018 have_krb=yes
23019 else
23020 have_krb=no
23023 if test $have_krb = yes; then
23024 KRB4LIB=-lkrb
23025 LIBS="$KRB4LIB $LIBS"
23027 cat >>confdefs.h <<\_ACEOF
23028 #define HAVE_LIBKRB 1
23029 _ACEOF
23035 if test "${with_kerberos5}" != no; then
23037 for ac_header in krb5.h
23039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23041 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23042 $as_echo_n "checking for $ac_header... " >&6; }
23043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23044 $as_echo_n "(cached) " >&6
23046 ac_res=`eval 'as_val=${'$as_ac_Header'}
23047 $as_echo "$as_val"'`
23048 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23049 $as_echo "$ac_res" >&6; }
23050 else
23051 # Is the header compilable?
23052 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23053 $as_echo_n "checking $ac_header usability... " >&6; }
23054 cat >conftest.$ac_ext <<_ACEOF
23055 /* confdefs.h. */
23056 _ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h. */
23060 $ac_includes_default
23061 #include <$ac_header>
23062 _ACEOF
23063 rm -f conftest.$ac_objext
23064 if { (ac_try="$ac_compile"
23065 case "(($ac_try" in
23066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23067 *) ac_try_echo=$ac_try;;
23068 esac
23069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23070 $as_echo "$ac_try_echo") >&5
23071 (eval "$ac_compile") 2>conftest.er1
23072 ac_status=$?
23073 grep -v '^ *+' conftest.er1 >conftest.err
23074 rm -f conftest.er1
23075 cat conftest.err >&5
23076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } && {
23078 test -z "$ac_c_werror_flag" ||
23079 test ! -s conftest.err
23080 } && test -s conftest.$ac_objext; then
23081 ac_header_compiler=yes
23082 else
23083 $as_echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 ac_header_compiler=no
23089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23090 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23091 $as_echo "$ac_header_compiler" >&6; }
23093 # Is the header present?
23094 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23095 $as_echo_n "checking $ac_header presence... " >&6; }
23096 cat >conftest.$ac_ext <<_ACEOF
23097 /* confdefs.h. */
23098 _ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h. */
23102 #include <$ac_header>
23103 _ACEOF
23104 if { (ac_try="$ac_cpp conftest.$ac_ext"
23105 case "(($ac_try" in
23106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107 *) ac_try_echo=$ac_try;;
23108 esac
23109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23110 $as_echo "$ac_try_echo") >&5
23111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23112 ac_status=$?
23113 grep -v '^ *+' conftest.er1 >conftest.err
23114 rm -f conftest.er1
23115 cat conftest.err >&5
23116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); } >/dev/null && {
23118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23119 test ! -s conftest.err
23120 }; then
23121 ac_header_preproc=yes
23122 else
23123 $as_echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23126 ac_header_preproc=no
23129 rm -f conftest.err conftest.$ac_ext
23130 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23131 $as_echo "$ac_header_preproc" >&6; }
23133 # So? What about this header?
23134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23135 yes:no: )
23136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23137 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23140 ac_header_preproc=yes
23142 no:yes:* )
23143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23144 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23146 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23148 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23150 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23152 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23154 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23157 esac
23158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23159 $as_echo_n "checking for $ac_header... " >&6; }
23160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23161 $as_echo_n "(cached) " >&6
23162 else
23163 eval "$as_ac_Header=\$ac_header_preproc"
23165 ac_res=`eval 'as_val=${'$as_ac_Header'}
23166 $as_echo "$as_val"'`
23167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23168 $as_echo "$ac_res" >&6; }
23171 if test `eval 'as_val=${'$as_ac_Header'}
23172 $as_echo "$as_val"'` = yes; then
23173 cat >>confdefs.h <<_ACEOF
23174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23175 _ACEOF
23176 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
23177 $as_echo_n "checking for krb5_error.text... " >&6; }
23178 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23179 $as_echo_n "(cached) " >&6
23180 else
23181 cat >conftest.$ac_ext <<_ACEOF
23182 /* confdefs.h. */
23183 _ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h. */
23187 #include <krb5.h>
23190 main ()
23192 static krb5_error ac_aggr;
23193 if (ac_aggr.text)
23194 return 0;
23196 return 0;
23198 _ACEOF
23199 rm -f conftest.$ac_objext
23200 if { (ac_try="$ac_compile"
23201 case "(($ac_try" in
23202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203 *) ac_try_echo=$ac_try;;
23204 esac
23205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23206 $as_echo "$ac_try_echo") >&5
23207 (eval "$ac_compile") 2>conftest.er1
23208 ac_status=$?
23209 grep -v '^ *+' conftest.er1 >conftest.err
23210 rm -f conftest.er1
23211 cat conftest.err >&5
23212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); } && {
23214 test -z "$ac_c_werror_flag" ||
23215 test ! -s conftest.err
23216 } && test -s conftest.$ac_objext; then
23217 ac_cv_member_krb5_error_text=yes
23218 else
23219 $as_echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23222 cat >conftest.$ac_ext <<_ACEOF
23223 /* confdefs.h. */
23224 _ACEOF
23225 cat confdefs.h >>conftest.$ac_ext
23226 cat >>conftest.$ac_ext <<_ACEOF
23227 /* end confdefs.h. */
23228 #include <krb5.h>
23231 main ()
23233 static krb5_error ac_aggr;
23234 if (sizeof ac_aggr.text)
23235 return 0;
23237 return 0;
23239 _ACEOF
23240 rm -f conftest.$ac_objext
23241 if { (ac_try="$ac_compile"
23242 case "(($ac_try" in
23243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244 *) ac_try_echo=$ac_try;;
23245 esac
23246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23247 $as_echo "$ac_try_echo") >&5
23248 (eval "$ac_compile") 2>conftest.er1
23249 ac_status=$?
23250 grep -v '^ *+' conftest.er1 >conftest.err
23251 rm -f conftest.er1
23252 cat conftest.err >&5
23253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); } && {
23255 test -z "$ac_c_werror_flag" ||
23256 test ! -s conftest.err
23257 } && test -s conftest.$ac_objext; then
23258 ac_cv_member_krb5_error_text=yes
23259 else
23260 $as_echo "$as_me: failed program was:" >&5
23261 sed 's/^/| /' conftest.$ac_ext >&5
23263 ac_cv_member_krb5_error_text=no
23266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23271 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
23272 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23273 if test $ac_cv_member_krb5_error_text = yes; then
23275 cat >>confdefs.h <<_ACEOF
23276 #define HAVE_KRB5_ERROR_TEXT 1
23277 _ACEOF
23281 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
23282 $as_echo_n "checking for krb5_error.e_text... " >&6; }
23283 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23284 $as_echo_n "(cached) " >&6
23285 else
23286 cat >conftest.$ac_ext <<_ACEOF
23287 /* confdefs.h. */
23288 _ACEOF
23289 cat confdefs.h >>conftest.$ac_ext
23290 cat >>conftest.$ac_ext <<_ACEOF
23291 /* end confdefs.h. */
23292 #include <krb5.h>
23295 main ()
23297 static krb5_error ac_aggr;
23298 if (ac_aggr.e_text)
23299 return 0;
23301 return 0;
23303 _ACEOF
23304 rm -f conftest.$ac_objext
23305 if { (ac_try="$ac_compile"
23306 case "(($ac_try" in
23307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308 *) ac_try_echo=$ac_try;;
23309 esac
23310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23311 $as_echo "$ac_try_echo") >&5
23312 (eval "$ac_compile") 2>conftest.er1
23313 ac_status=$?
23314 grep -v '^ *+' conftest.er1 >conftest.err
23315 rm -f conftest.er1
23316 cat conftest.err >&5
23317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); } && {
23319 test -z "$ac_c_werror_flag" ||
23320 test ! -s conftest.err
23321 } && test -s conftest.$ac_objext; then
23322 ac_cv_member_krb5_error_e_text=yes
23323 else
23324 $as_echo "$as_me: failed program was:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23327 cat >conftest.$ac_ext <<_ACEOF
23328 /* confdefs.h. */
23329 _ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h. */
23333 #include <krb5.h>
23336 main ()
23338 static krb5_error ac_aggr;
23339 if (sizeof ac_aggr.e_text)
23340 return 0;
23342 return 0;
23344 _ACEOF
23345 rm -f conftest.$ac_objext
23346 if { (ac_try="$ac_compile"
23347 case "(($ac_try" in
23348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349 *) ac_try_echo=$ac_try;;
23350 esac
23351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23352 $as_echo "$ac_try_echo") >&5
23353 (eval "$ac_compile") 2>conftest.er1
23354 ac_status=$?
23355 grep -v '^ *+' conftest.er1 >conftest.err
23356 rm -f conftest.er1
23357 cat conftest.err >&5
23358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); } && {
23360 test -z "$ac_c_werror_flag" ||
23361 test ! -s conftest.err
23362 } && test -s conftest.$ac_objext; then
23363 ac_cv_member_krb5_error_e_text=yes
23364 else
23365 $as_echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23368 ac_cv_member_krb5_error_e_text=no
23371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23376 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23377 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23378 if test $ac_cv_member_krb5_error_e_text = yes; then
23380 cat >>confdefs.h <<_ACEOF
23381 #define HAVE_KRB5_ERROR_E_TEXT 1
23382 _ACEOF
23389 done
23391 else
23393 for ac_header in des.h
23395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23398 $as_echo_n "checking for $ac_header... " >&6; }
23399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23400 $as_echo_n "(cached) " >&6
23402 ac_res=`eval 'as_val=${'$as_ac_Header'}
23403 $as_echo "$as_val"'`
23404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23405 $as_echo "$ac_res" >&6; }
23406 else
23407 # Is the header compilable?
23408 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23409 $as_echo_n "checking $ac_header usability... " >&6; }
23410 cat >conftest.$ac_ext <<_ACEOF
23411 /* confdefs.h. */
23412 _ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h. */
23416 $ac_includes_default
23417 #include <$ac_header>
23418 _ACEOF
23419 rm -f conftest.$ac_objext
23420 if { (ac_try="$ac_compile"
23421 case "(($ac_try" in
23422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423 *) ac_try_echo=$ac_try;;
23424 esac
23425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23426 $as_echo "$ac_try_echo") >&5
23427 (eval "$ac_compile") 2>conftest.er1
23428 ac_status=$?
23429 grep -v '^ *+' conftest.er1 >conftest.err
23430 rm -f conftest.er1
23431 cat conftest.err >&5
23432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); } && {
23434 test -z "$ac_c_werror_flag" ||
23435 test ! -s conftest.err
23436 } && test -s conftest.$ac_objext; then
23437 ac_header_compiler=yes
23438 else
23439 $as_echo "$as_me: failed program was:" >&5
23440 sed 's/^/| /' conftest.$ac_ext >&5
23442 ac_header_compiler=no
23445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23446 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23447 $as_echo "$ac_header_compiler" >&6; }
23449 # Is the header present?
23450 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23451 $as_echo_n "checking $ac_header presence... " >&6; }
23452 cat >conftest.$ac_ext <<_ACEOF
23453 /* confdefs.h. */
23454 _ACEOF
23455 cat confdefs.h >>conftest.$ac_ext
23456 cat >>conftest.$ac_ext <<_ACEOF
23457 /* end confdefs.h. */
23458 #include <$ac_header>
23459 _ACEOF
23460 if { (ac_try="$ac_cpp conftest.$ac_ext"
23461 case "(($ac_try" in
23462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23463 *) ac_try_echo=$ac_try;;
23464 esac
23465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23466 $as_echo "$ac_try_echo") >&5
23467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
23472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } >/dev/null && {
23474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23476 }; then
23477 ac_header_preproc=yes
23478 else
23479 $as_echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23482 ac_header_preproc=no
23485 rm -f conftest.err conftest.$ac_ext
23486 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23487 $as_echo "$ac_header_preproc" >&6; }
23489 # So? What about this header?
23490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23491 yes:no: )
23492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23493 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23496 ac_header_preproc=yes
23498 no:yes:* )
23499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23500 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23502 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23504 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23506 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23508 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23510 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23513 esac
23514 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23515 $as_echo_n "checking for $ac_header... " >&6; }
23516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23517 $as_echo_n "(cached) " >&6
23518 else
23519 eval "$as_ac_Header=\$ac_header_preproc"
23521 ac_res=`eval 'as_val=${'$as_ac_Header'}
23522 $as_echo "$as_val"'`
23523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23524 $as_echo "$ac_res" >&6; }
23527 if test `eval 'as_val=${'$as_ac_Header'}
23528 $as_echo "$as_val"'` = yes; then
23529 cat >>confdefs.h <<_ACEOF
23530 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23531 _ACEOF
23533 else
23535 for ac_header in kerberosIV/des.h
23537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23539 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23540 $as_echo_n "checking for $ac_header... " >&6; }
23541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23542 $as_echo_n "(cached) " >&6
23544 ac_res=`eval 'as_val=${'$as_ac_Header'}
23545 $as_echo "$as_val"'`
23546 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23547 $as_echo "$ac_res" >&6; }
23548 else
23549 # Is the header compilable?
23550 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23551 $as_echo_n "checking $ac_header usability... " >&6; }
23552 cat >conftest.$ac_ext <<_ACEOF
23553 /* confdefs.h. */
23554 _ACEOF
23555 cat confdefs.h >>conftest.$ac_ext
23556 cat >>conftest.$ac_ext <<_ACEOF
23557 /* end confdefs.h. */
23558 $ac_includes_default
23559 #include <$ac_header>
23560 _ACEOF
23561 rm -f conftest.$ac_objext
23562 if { (ac_try="$ac_compile"
23563 case "(($ac_try" in
23564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565 *) ac_try_echo=$ac_try;;
23566 esac
23567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23568 $as_echo "$ac_try_echo") >&5
23569 (eval "$ac_compile") 2>conftest.er1
23570 ac_status=$?
23571 grep -v '^ *+' conftest.er1 >conftest.err
23572 rm -f conftest.er1
23573 cat conftest.err >&5
23574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); } && {
23576 test -z "$ac_c_werror_flag" ||
23577 test ! -s conftest.err
23578 } && test -s conftest.$ac_objext; then
23579 ac_header_compiler=yes
23580 else
23581 $as_echo "$as_me: failed program was:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23584 ac_header_compiler=no
23587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23588 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23589 $as_echo "$ac_header_compiler" >&6; }
23591 # Is the header present?
23592 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23593 $as_echo_n "checking $ac_header presence... " >&6; }
23594 cat >conftest.$ac_ext <<_ACEOF
23595 /* confdefs.h. */
23596 _ACEOF
23597 cat confdefs.h >>conftest.$ac_ext
23598 cat >>conftest.$ac_ext <<_ACEOF
23599 /* end confdefs.h. */
23600 #include <$ac_header>
23601 _ACEOF
23602 if { (ac_try="$ac_cpp conftest.$ac_ext"
23603 case "(($ac_try" in
23604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23605 *) ac_try_echo=$ac_try;;
23606 esac
23607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23608 $as_echo "$ac_try_echo") >&5
23609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23610 ac_status=$?
23611 grep -v '^ *+' conftest.er1 >conftest.err
23612 rm -f conftest.er1
23613 cat conftest.err >&5
23614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); } >/dev/null && {
23616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23617 test ! -s conftest.err
23618 }; then
23619 ac_header_preproc=yes
23620 else
23621 $as_echo "$as_me: failed program was:" >&5
23622 sed 's/^/| /' conftest.$ac_ext >&5
23624 ac_header_preproc=no
23627 rm -f conftest.err conftest.$ac_ext
23628 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23629 $as_echo "$ac_header_preproc" >&6; }
23631 # So? What about this header?
23632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23633 yes:no: )
23634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23635 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23637 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23638 ac_header_preproc=yes
23640 no:yes:* )
23641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23642 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23644 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23646 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23648 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23650 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23652 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23655 esac
23656 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23657 $as_echo_n "checking for $ac_header... " >&6; }
23658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23659 $as_echo_n "(cached) " >&6
23660 else
23661 eval "$as_ac_Header=\$ac_header_preproc"
23663 ac_res=`eval 'as_val=${'$as_ac_Header'}
23664 $as_echo "$as_val"'`
23665 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23666 $as_echo "$ac_res" >&6; }
23669 if test `eval 'as_val=${'$as_ac_Header'}
23670 $as_echo "$as_val"'` = yes; then
23671 cat >>confdefs.h <<_ACEOF
23672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23673 _ACEOF
23675 else
23677 for ac_header in kerberos/des.h
23679 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23682 $as_echo_n "checking for $ac_header... " >&6; }
23683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23684 $as_echo_n "(cached) " >&6
23686 ac_res=`eval 'as_val=${'$as_ac_Header'}
23687 $as_echo "$as_val"'`
23688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23689 $as_echo "$ac_res" >&6; }
23690 else
23691 # Is the header compilable?
23692 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23693 $as_echo_n "checking $ac_header usability... " >&6; }
23694 cat >conftest.$ac_ext <<_ACEOF
23695 /* confdefs.h. */
23696 _ACEOF
23697 cat confdefs.h >>conftest.$ac_ext
23698 cat >>conftest.$ac_ext <<_ACEOF
23699 /* end confdefs.h. */
23700 $ac_includes_default
23701 #include <$ac_header>
23702 _ACEOF
23703 rm -f conftest.$ac_objext
23704 if { (ac_try="$ac_compile"
23705 case "(($ac_try" in
23706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707 *) ac_try_echo=$ac_try;;
23708 esac
23709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23710 $as_echo "$ac_try_echo") >&5
23711 (eval "$ac_compile") 2>conftest.er1
23712 ac_status=$?
23713 grep -v '^ *+' conftest.er1 >conftest.err
23714 rm -f conftest.er1
23715 cat conftest.err >&5
23716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); } && {
23718 test -z "$ac_c_werror_flag" ||
23719 test ! -s conftest.err
23720 } && test -s conftest.$ac_objext; then
23721 ac_header_compiler=yes
23722 else
23723 $as_echo "$as_me: failed program was:" >&5
23724 sed 's/^/| /' conftest.$ac_ext >&5
23726 ac_header_compiler=no
23729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23731 $as_echo "$ac_header_compiler" >&6; }
23733 # Is the header present?
23734 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23735 $as_echo_n "checking $ac_header presence... " >&6; }
23736 cat >conftest.$ac_ext <<_ACEOF
23737 /* confdefs.h. */
23738 _ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h. */
23742 #include <$ac_header>
23743 _ACEOF
23744 if { (ac_try="$ac_cpp conftest.$ac_ext"
23745 case "(($ac_try" in
23746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23747 *) ac_try_echo=$ac_try;;
23748 esac
23749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23750 $as_echo "$ac_try_echo") >&5
23751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23752 ac_status=$?
23753 grep -v '^ *+' conftest.er1 >conftest.err
23754 rm -f conftest.er1
23755 cat conftest.err >&5
23756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); } >/dev/null && {
23758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23759 test ! -s conftest.err
23760 }; then
23761 ac_header_preproc=yes
23762 else
23763 $as_echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23766 ac_header_preproc=no
23769 rm -f conftest.err conftest.$ac_ext
23770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23771 $as_echo "$ac_header_preproc" >&6; }
23773 # So? What about this header?
23774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23775 yes:no: )
23776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23777 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23780 ac_header_preproc=yes
23782 no:yes:* )
23783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23784 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23786 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23788 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23790 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23794 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23797 esac
23798 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23799 $as_echo_n "checking for $ac_header... " >&6; }
23800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23801 $as_echo_n "(cached) " >&6
23802 else
23803 eval "$as_ac_Header=\$ac_header_preproc"
23805 ac_res=`eval 'as_val=${'$as_ac_Header'}
23806 $as_echo "$as_val"'`
23807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23808 $as_echo "$ac_res" >&6; }
23811 if test `eval 'as_val=${'$as_ac_Header'}
23812 $as_echo "$as_val"'` = yes; then
23813 cat >>confdefs.h <<_ACEOF
23814 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23815 _ACEOF
23819 done
23823 done
23827 done
23830 for ac_header in krb.h
23832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23834 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23835 $as_echo_n "checking for $ac_header... " >&6; }
23836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23837 $as_echo_n "(cached) " >&6
23839 ac_res=`eval 'as_val=${'$as_ac_Header'}
23840 $as_echo "$as_val"'`
23841 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23842 $as_echo "$ac_res" >&6; }
23843 else
23844 # Is the header compilable?
23845 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23846 $as_echo_n "checking $ac_header usability... " >&6; }
23847 cat >conftest.$ac_ext <<_ACEOF
23848 /* confdefs.h. */
23849 _ACEOF
23850 cat confdefs.h >>conftest.$ac_ext
23851 cat >>conftest.$ac_ext <<_ACEOF
23852 /* end confdefs.h. */
23853 $ac_includes_default
23854 #include <$ac_header>
23855 _ACEOF
23856 rm -f conftest.$ac_objext
23857 if { (ac_try="$ac_compile"
23858 case "(($ac_try" in
23859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23860 *) ac_try_echo=$ac_try;;
23861 esac
23862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23863 $as_echo "$ac_try_echo") >&5
23864 (eval "$ac_compile") 2>conftest.er1
23865 ac_status=$?
23866 grep -v '^ *+' conftest.er1 >conftest.err
23867 rm -f conftest.er1
23868 cat conftest.err >&5
23869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); } && {
23871 test -z "$ac_c_werror_flag" ||
23872 test ! -s conftest.err
23873 } && test -s conftest.$ac_objext; then
23874 ac_header_compiler=yes
23875 else
23876 $as_echo "$as_me: failed program was:" >&5
23877 sed 's/^/| /' conftest.$ac_ext >&5
23879 ac_header_compiler=no
23882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23884 $as_echo "$ac_header_compiler" >&6; }
23886 # Is the header present?
23887 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23888 $as_echo_n "checking $ac_header presence... " >&6; }
23889 cat >conftest.$ac_ext <<_ACEOF
23890 /* confdefs.h. */
23891 _ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h. */
23895 #include <$ac_header>
23896 _ACEOF
23897 if { (ac_try="$ac_cpp conftest.$ac_ext"
23898 case "(($ac_try" in
23899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23900 *) ac_try_echo=$ac_try;;
23901 esac
23902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23903 $as_echo "$ac_try_echo") >&5
23904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23905 ac_status=$?
23906 grep -v '^ *+' conftest.er1 >conftest.err
23907 rm -f conftest.er1
23908 cat conftest.err >&5
23909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910 (exit $ac_status); } >/dev/null && {
23911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23912 test ! -s conftest.err
23913 }; then
23914 ac_header_preproc=yes
23915 else
23916 $as_echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23919 ac_header_preproc=no
23922 rm -f conftest.err conftest.$ac_ext
23923 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23924 $as_echo "$ac_header_preproc" >&6; }
23926 # So? What about this header?
23927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23928 yes:no: )
23929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23930 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23933 ac_header_preproc=yes
23935 no:yes:* )
23936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23937 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23939 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23941 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23943 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23945 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23947 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23950 esac
23951 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23952 $as_echo_n "checking for $ac_header... " >&6; }
23953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23954 $as_echo_n "(cached) " >&6
23955 else
23956 eval "$as_ac_Header=\$ac_header_preproc"
23958 ac_res=`eval 'as_val=${'$as_ac_Header'}
23959 $as_echo "$as_val"'`
23960 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23961 $as_echo "$ac_res" >&6; }
23964 if test `eval 'as_val=${'$as_ac_Header'}
23965 $as_echo "$as_val"'` = yes; then
23966 cat >>confdefs.h <<_ACEOF
23967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23968 _ACEOF
23970 else
23972 for ac_header in kerberosIV/krb.h
23974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23976 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23977 $as_echo_n "checking for $ac_header... " >&6; }
23978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23979 $as_echo_n "(cached) " >&6
23981 ac_res=`eval 'as_val=${'$as_ac_Header'}
23982 $as_echo "$as_val"'`
23983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23984 $as_echo "$ac_res" >&6; }
23985 else
23986 # Is the header compilable?
23987 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23988 $as_echo_n "checking $ac_header usability... " >&6; }
23989 cat >conftest.$ac_ext <<_ACEOF
23990 /* confdefs.h. */
23991 _ACEOF
23992 cat confdefs.h >>conftest.$ac_ext
23993 cat >>conftest.$ac_ext <<_ACEOF
23994 /* end confdefs.h. */
23995 $ac_includes_default
23996 #include <$ac_header>
23997 _ACEOF
23998 rm -f conftest.$ac_objext
23999 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
24016 ac_header_compiler=yes
24017 else
24018 $as_echo "$as_me: failed program was:" >&5
24019 sed 's/^/| /' conftest.$ac_ext >&5
24021 ac_header_compiler=no
24024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24025 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24026 $as_echo "$ac_header_compiler" >&6; }
24028 # Is the header present?
24029 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24030 $as_echo_n "checking $ac_header presence... " >&6; }
24031 cat >conftest.$ac_ext <<_ACEOF
24032 /* confdefs.h. */
24033 _ACEOF
24034 cat confdefs.h >>conftest.$ac_ext
24035 cat >>conftest.$ac_ext <<_ACEOF
24036 /* end confdefs.h. */
24037 #include <$ac_header>
24038 _ACEOF
24039 if { (ac_try="$ac_cpp conftest.$ac_ext"
24040 case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24043 esac
24044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24045 $as_echo "$ac_try_echo") >&5
24046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24047 ac_status=$?
24048 grep -v '^ *+' conftest.er1 >conftest.err
24049 rm -f conftest.er1
24050 cat conftest.err >&5
24051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } >/dev/null && {
24053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24054 test ! -s conftest.err
24055 }; then
24056 ac_header_preproc=yes
24057 else
24058 $as_echo "$as_me: failed program was:" >&5
24059 sed 's/^/| /' conftest.$ac_ext >&5
24061 ac_header_preproc=no
24064 rm -f conftest.err conftest.$ac_ext
24065 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24066 $as_echo "$ac_header_preproc" >&6; }
24068 # So? What about this header?
24069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24070 yes:no: )
24071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24072 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24075 ac_header_preproc=yes
24077 no:yes:* )
24078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24079 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24081 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24083 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24085 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24087 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24089 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24092 esac
24093 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24094 $as_echo_n "checking for $ac_header... " >&6; }
24095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24096 $as_echo_n "(cached) " >&6
24097 else
24098 eval "$as_ac_Header=\$ac_header_preproc"
24100 ac_res=`eval 'as_val=${'$as_ac_Header'}
24101 $as_echo "$as_val"'`
24102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24103 $as_echo "$ac_res" >&6; }
24106 if test `eval 'as_val=${'$as_ac_Header'}
24107 $as_echo "$as_val"'` = yes; then
24108 cat >>confdefs.h <<_ACEOF
24109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24110 _ACEOF
24112 else
24114 for ac_header in kerberos/krb.h
24116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24118 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24119 $as_echo_n "checking for $ac_header... " >&6; }
24120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24121 $as_echo_n "(cached) " >&6
24123 ac_res=`eval 'as_val=${'$as_ac_Header'}
24124 $as_echo "$as_val"'`
24125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24126 $as_echo "$ac_res" >&6; }
24127 else
24128 # Is the header compilable?
24129 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24130 $as_echo_n "checking $ac_header usability... " >&6; }
24131 cat >conftest.$ac_ext <<_ACEOF
24132 /* confdefs.h. */
24133 _ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h. */
24137 $ac_includes_default
24138 #include <$ac_header>
24139 _ACEOF
24140 rm -f conftest.$ac_objext
24141 if { (ac_try="$ac_compile"
24142 case "(($ac_try" in
24143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24144 *) ac_try_echo=$ac_try;;
24145 esac
24146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24147 $as_echo "$ac_try_echo") >&5
24148 (eval "$ac_compile") 2>conftest.er1
24149 ac_status=$?
24150 grep -v '^ *+' conftest.er1 >conftest.err
24151 rm -f conftest.er1
24152 cat conftest.err >&5
24153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); } && {
24155 test -z "$ac_c_werror_flag" ||
24156 test ! -s conftest.err
24157 } && test -s conftest.$ac_objext; then
24158 ac_header_compiler=yes
24159 else
24160 $as_echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24163 ac_header_compiler=no
24166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24167 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24168 $as_echo "$ac_header_compiler" >&6; }
24170 # Is the header present?
24171 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24172 $as_echo_n "checking $ac_header presence... " >&6; }
24173 cat >conftest.$ac_ext <<_ACEOF
24174 /* confdefs.h. */
24175 _ACEOF
24176 cat confdefs.h >>conftest.$ac_ext
24177 cat >>conftest.$ac_ext <<_ACEOF
24178 /* end confdefs.h. */
24179 #include <$ac_header>
24180 _ACEOF
24181 if { (ac_try="$ac_cpp conftest.$ac_ext"
24182 case "(($ac_try" in
24183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24184 *) ac_try_echo=$ac_try;;
24185 esac
24186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24187 $as_echo "$ac_try_echo") >&5
24188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24189 ac_status=$?
24190 grep -v '^ *+' conftest.er1 >conftest.err
24191 rm -f conftest.er1
24192 cat conftest.err >&5
24193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); } >/dev/null && {
24195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24196 test ! -s conftest.err
24197 }; then
24198 ac_header_preproc=yes
24199 else
24200 $as_echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24203 ac_header_preproc=no
24206 rm -f conftest.err conftest.$ac_ext
24207 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24208 $as_echo "$ac_header_preproc" >&6; }
24210 # So? What about this header?
24211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24212 yes:no: )
24213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24214 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24217 ac_header_preproc=yes
24219 no:yes:* )
24220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24221 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24223 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24225 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24227 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24229 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24231 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24234 esac
24235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24236 $as_echo_n "checking for $ac_header... " >&6; }
24237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24238 $as_echo_n "(cached) " >&6
24239 else
24240 eval "$as_ac_Header=\$ac_header_preproc"
24242 ac_res=`eval 'as_val=${'$as_ac_Header'}
24243 $as_echo "$as_val"'`
24244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24245 $as_echo "$ac_res" >&6; }
24248 if test `eval 'as_val=${'$as_ac_Header'}
24249 $as_echo "$as_val"'` = yes; then
24250 cat >>confdefs.h <<_ACEOF
24251 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24252 _ACEOF
24256 done
24260 done
24264 done
24268 for ac_header in com_err.h
24270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24272 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24273 $as_echo_n "checking for $ac_header... " >&6; }
24274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24275 $as_echo_n "(cached) " >&6
24277 ac_res=`eval 'as_val=${'$as_ac_Header'}
24278 $as_echo "$as_val"'`
24279 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24280 $as_echo "$ac_res" >&6; }
24281 else
24282 # Is the header compilable?
24283 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24284 $as_echo_n "checking $ac_header usability... " >&6; }
24285 cat >conftest.$ac_ext <<_ACEOF
24286 /* confdefs.h. */
24287 _ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h. */
24291 $ac_includes_default
24292 #include <$ac_header>
24293 _ACEOF
24294 rm -f conftest.$ac_objext
24295 if { (ac_try="$ac_compile"
24296 case "(($ac_try" in
24297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24298 *) ac_try_echo=$ac_try;;
24299 esac
24300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24301 $as_echo "$ac_try_echo") >&5
24302 (eval "$ac_compile") 2>conftest.er1
24303 ac_status=$?
24304 grep -v '^ *+' conftest.er1 >conftest.err
24305 rm -f conftest.er1
24306 cat conftest.err >&5
24307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); } && {
24309 test -z "$ac_c_werror_flag" ||
24310 test ! -s conftest.err
24311 } && test -s conftest.$ac_objext; then
24312 ac_header_compiler=yes
24313 else
24314 $as_echo "$as_me: failed program was:" >&5
24315 sed 's/^/| /' conftest.$ac_ext >&5
24317 ac_header_compiler=no
24320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24321 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24322 $as_echo "$ac_header_compiler" >&6; }
24324 # Is the header present?
24325 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24326 $as_echo_n "checking $ac_header presence... " >&6; }
24327 cat >conftest.$ac_ext <<_ACEOF
24328 /* confdefs.h. */
24329 _ACEOF
24330 cat confdefs.h >>conftest.$ac_ext
24331 cat >>conftest.$ac_ext <<_ACEOF
24332 /* end confdefs.h. */
24333 #include <$ac_header>
24334 _ACEOF
24335 if { (ac_try="$ac_cpp conftest.$ac_ext"
24336 case "(($ac_try" in
24337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24338 *) ac_try_echo=$ac_try;;
24339 esac
24340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24341 $as_echo "$ac_try_echo") >&5
24342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24343 ac_status=$?
24344 grep -v '^ *+' conftest.er1 >conftest.err
24345 rm -f conftest.er1
24346 cat conftest.err >&5
24347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); } >/dev/null && {
24349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24350 test ! -s conftest.err
24351 }; then
24352 ac_header_preproc=yes
24353 else
24354 $as_echo "$as_me: failed program was:" >&5
24355 sed 's/^/| /' conftest.$ac_ext >&5
24357 ac_header_preproc=no
24360 rm -f conftest.err conftest.$ac_ext
24361 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24362 $as_echo "$ac_header_preproc" >&6; }
24364 # So? What about this header?
24365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24366 yes:no: )
24367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24368 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24370 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24371 ac_header_preproc=yes
24373 no:yes:* )
24374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24375 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24377 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24379 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24381 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24383 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24385 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24388 esac
24389 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24390 $as_echo_n "checking for $ac_header... " >&6; }
24391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24392 $as_echo_n "(cached) " >&6
24393 else
24394 eval "$as_ac_Header=\$ac_header_preproc"
24396 ac_res=`eval 'as_val=${'$as_ac_Header'}
24397 $as_echo "$as_val"'`
24398 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24399 $as_echo "$ac_res" >&6; }
24402 if test `eval 'as_val=${'$as_ac_Header'}
24403 $as_echo "$as_val"'` = yes; then
24404 cat >>confdefs.h <<_ACEOF
24405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24406 _ACEOF
24410 done
24420 # Solaris requires -lintl if you want strerror (which calls dgettext)
24421 # to return localized messages.
24423 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24424 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24425 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24426 $as_echo_n "(cached) " >&6
24427 else
24428 ac_check_lib_save_LIBS=$LIBS
24429 LIBS="-lintl $LIBS"
24430 cat >conftest.$ac_ext <<_ACEOF
24431 /* confdefs.h. */
24432 _ACEOF
24433 cat confdefs.h >>conftest.$ac_ext
24434 cat >>conftest.$ac_ext <<_ACEOF
24435 /* end confdefs.h. */
24437 /* Override any GCC internal prototype to avoid an error.
24438 Use char because int might match the return type of a GCC
24439 builtin and then its argument prototype would still apply. */
24440 #ifdef __cplusplus
24441 extern "C"
24442 #endif
24443 char dgettext ();
24445 main ()
24447 return dgettext ();
24449 return 0;
24451 _ACEOF
24452 rm -f conftest.$ac_objext conftest$ac_exeext
24453 if { (ac_try="$ac_link"
24454 case "(($ac_try" in
24455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24456 *) ac_try_echo=$ac_try;;
24457 esac
24458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24459 $as_echo "$ac_try_echo") >&5
24460 (eval "$ac_link") 2>conftest.er1
24461 ac_status=$?
24462 grep -v '^ *+' conftest.er1 >conftest.err
24463 rm -f conftest.er1
24464 cat conftest.err >&5
24465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); } && {
24467 test -z "$ac_c_werror_flag" ||
24468 test ! -s conftest.err
24469 } && test -s conftest$ac_exeext && {
24470 test "$cross_compiling" = yes ||
24471 $as_test_x conftest$ac_exeext
24472 }; then
24473 ac_cv_lib_intl_dgettext=yes
24474 else
24475 $as_echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.$ac_ext >&5
24478 ac_cv_lib_intl_dgettext=no
24481 rm -rf conftest.dSYM
24482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24483 conftest$ac_exeext conftest.$ac_ext
24484 LIBS=$ac_check_lib_save_LIBS
24486 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24487 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24488 if test $ac_cv_lib_intl_dgettext = yes; then
24489 cat >>confdefs.h <<_ACEOF
24490 #define HAVE_LIBINTL 1
24491 _ACEOF
24493 LIBS="-lintl $LIBS"
24498 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24499 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24500 if test "${emacs_cv_localtime_cache+set}" = set; then
24501 $as_echo_n "(cached) " >&6
24502 else
24503 if test x$ac_cv_func_tzset = xyes; then
24504 if test "$cross_compiling" = yes; then
24505 # If we have tzset, assume the worst when cross-compiling.
24506 emacs_cv_localtime_cache=yes
24507 else
24508 cat >conftest.$ac_ext <<_ACEOF
24509 /* confdefs.h. */
24510 _ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h. */
24514 #include <time.h>
24515 extern char **environ;
24516 unset_TZ ()
24518 char **from, **to;
24519 for (to = from = environ; (*to = *from); from++)
24520 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24521 to++;
24523 char TZ_GMT0[] = "TZ=GMT0";
24524 char TZ_PST8[] = "TZ=PST8";
24525 main()
24527 time_t now = time ((time_t *) 0);
24528 int hour_GMT0, hour_unset;
24529 if (putenv (TZ_GMT0) != 0)
24530 exit (1);
24531 hour_GMT0 = localtime (&now)->tm_hour;
24532 unset_TZ ();
24533 hour_unset = localtime (&now)->tm_hour;
24534 if (putenv (TZ_PST8) != 0)
24535 exit (1);
24536 if (localtime (&now)->tm_hour == hour_GMT0)
24537 exit (1);
24538 unset_TZ ();
24539 if (localtime (&now)->tm_hour != hour_unset)
24540 exit (1);
24541 exit (0);
24543 _ACEOF
24544 rm -f conftest$ac_exeext
24545 if { (ac_try="$ac_link"
24546 case "(($ac_try" in
24547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24548 *) ac_try_echo=$ac_try;;
24549 esac
24550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24551 $as_echo "$ac_try_echo") >&5
24552 (eval "$ac_link") 2>&5
24553 ac_status=$?
24554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24556 { (case "(($ac_try" in
24557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24558 *) ac_try_echo=$ac_try;;
24559 esac
24560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24561 $as_echo "$ac_try_echo") >&5
24562 (eval "$ac_try") 2>&5
24563 ac_status=$?
24564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); }; }; then
24566 emacs_cv_localtime_cache=no
24567 else
24568 $as_echo "$as_me: program exited with status $ac_status" >&5
24569 $as_echo "$as_me: failed program was:" >&5
24570 sed 's/^/| /' conftest.$ac_ext >&5
24572 ( exit $ac_status )
24573 emacs_cv_localtime_cache=yes
24575 rm -rf conftest.dSYM
24576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24580 else
24581 # If we lack tzset, report that localtime does not cache TZ,
24582 # since we can't invalidate the cache if we don't have tzset.
24583 emacs_cv_localtime_cache=no
24586 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24587 $as_echo "$emacs_cv_localtime_cache" >&6; }
24588 if test $emacs_cv_localtime_cache = yes; then
24590 cat >>confdefs.h <<\_ACEOF
24591 #define LOCALTIME_CACHE 1
24592 _ACEOF
24596 if test "x$HAVE_TIMEVAL" = xyes; then
24598 for ac_func in gettimeofday
24600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24601 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24602 $as_echo_n "checking for $ac_func... " >&6; }
24603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24604 $as_echo_n "(cached) " >&6
24605 else
24606 cat >conftest.$ac_ext <<_ACEOF
24607 /* confdefs.h. */
24608 _ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h. */
24612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24614 #define $ac_func innocuous_$ac_func
24616 /* System header to define __stub macros and hopefully few prototypes,
24617 which can conflict with char $ac_func (); below.
24618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24619 <limits.h> exists even on freestanding compilers. */
24621 #ifdef __STDC__
24622 # include <limits.h>
24623 #else
24624 # include <assert.h>
24625 #endif
24627 #undef $ac_func
24629 /* Override any GCC internal prototype to avoid an error.
24630 Use char because int might match the return type of a GCC
24631 builtin and then its argument prototype would still apply. */
24632 #ifdef __cplusplus
24633 extern "C"
24634 #endif
24635 char $ac_func ();
24636 /* The GNU C library defines this for functions which it implements
24637 to always fail with ENOSYS. Some functions are actually named
24638 something starting with __ and the normal name is an alias. */
24639 #if defined __stub_$ac_func || defined __stub___$ac_func
24640 choke me
24641 #endif
24644 main ()
24646 return $ac_func ();
24648 return 0;
24650 _ACEOF
24651 rm -f conftest.$ac_objext conftest$ac_exeext
24652 if { (ac_try="$ac_link"
24653 case "(($ac_try" in
24654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24656 esac
24657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24658 $as_echo "$ac_try_echo") >&5
24659 (eval "$ac_link") 2>conftest.er1
24660 ac_status=$?
24661 grep -v '^ *+' conftest.er1 >conftest.err
24662 rm -f conftest.er1
24663 cat conftest.err >&5
24664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } && {
24666 test -z "$ac_c_werror_flag" ||
24667 test ! -s conftest.err
24668 } && test -s conftest$ac_exeext && {
24669 test "$cross_compiling" = yes ||
24670 $as_test_x conftest$ac_exeext
24671 }; then
24672 eval "$as_ac_var=yes"
24673 else
24674 $as_echo "$as_me: failed program was:" >&5
24675 sed 's/^/| /' conftest.$ac_ext >&5
24677 eval "$as_ac_var=no"
24680 rm -rf conftest.dSYM
24681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24682 conftest$ac_exeext conftest.$ac_ext
24684 ac_res=`eval 'as_val=${'$as_ac_var'}
24685 $as_echo "$as_val"'`
24686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24687 $as_echo "$ac_res" >&6; }
24688 if test `eval 'as_val=${'$as_ac_var'}
24689 $as_echo "$as_val"'` = yes; then
24690 cat >>confdefs.h <<_ACEOF
24691 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24692 _ACEOF
24695 done
24697 if test $ac_cv_func_gettimeofday = yes; then
24698 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24699 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24700 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24701 $as_echo_n "(cached) " >&6
24702 else
24703 cat >conftest.$ac_ext <<_ACEOF
24704 /* confdefs.h. */
24705 _ACEOF
24706 cat confdefs.h >>conftest.$ac_ext
24707 cat >>conftest.$ac_ext <<_ACEOF
24708 /* end confdefs.h. */
24710 #ifdef TIME_WITH_SYS_TIME
24711 #include <sys/time.h>
24712 #include <time.h>
24713 #else
24714 #ifdef HAVE_SYS_TIME_H
24715 #include <sys/time.h>
24716 #else
24717 #include <time.h>
24718 #endif
24719 #endif
24721 main ()
24723 struct timeval time;
24724 gettimeofday (&time, 0);
24726 return 0;
24728 _ACEOF
24729 rm -f conftest.$ac_objext
24730 if { (ac_try="$ac_compile"
24731 case "(($ac_try" in
24732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24733 *) ac_try_echo=$ac_try;;
24734 esac
24735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24736 $as_echo "$ac_try_echo") >&5
24737 (eval "$ac_compile") 2>conftest.er1
24738 ac_status=$?
24739 grep -v '^ *+' conftest.er1 >conftest.err
24740 rm -f conftest.er1
24741 cat conftest.err >&5
24742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); } && {
24744 test -z "$ac_c_werror_flag" ||
24745 test ! -s conftest.err
24746 } && test -s conftest.$ac_objext; then
24747 emacs_cv_gettimeofday_two_arguments=yes
24748 else
24749 $as_echo "$as_me: failed program was:" >&5
24750 sed 's/^/| /' conftest.$ac_ext >&5
24752 emacs_cv_gettimeofday_two_arguments=no
24755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24757 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24758 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24759 if test $emacs_cv_gettimeofday_two_arguments = no; then
24761 cat >>confdefs.h <<\_ACEOF
24762 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24763 _ACEOF
24769 ok_so_far=yes
24770 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24771 $as_echo_n "checking for socket... " >&6; }
24772 if test "${ac_cv_func_socket+set}" = set; then
24773 $as_echo_n "(cached) " >&6
24774 else
24775 cat >conftest.$ac_ext <<_ACEOF
24776 /* confdefs.h. */
24777 _ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h. */
24781 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24783 #define socket innocuous_socket
24785 /* System header to define __stub macros and hopefully few prototypes,
24786 which can conflict with char socket (); below.
24787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24788 <limits.h> exists even on freestanding compilers. */
24790 #ifdef __STDC__
24791 # include <limits.h>
24792 #else
24793 # include <assert.h>
24794 #endif
24796 #undef socket
24798 /* Override any GCC internal prototype to avoid an error.
24799 Use char because int might match the return type of a GCC
24800 builtin and then its argument prototype would still apply. */
24801 #ifdef __cplusplus
24802 extern "C"
24803 #endif
24804 char socket ();
24805 /* The GNU C library defines this for functions which it implements
24806 to always fail with ENOSYS. Some functions are actually named
24807 something starting with __ and the normal name is an alias. */
24808 #if defined __stub_socket || defined __stub___socket
24809 choke me
24810 #endif
24813 main ()
24815 return socket ();
24817 return 0;
24819 _ACEOF
24820 rm -f conftest.$ac_objext conftest$ac_exeext
24821 if { (ac_try="$ac_link"
24822 case "(($ac_try" in
24823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24824 *) ac_try_echo=$ac_try;;
24825 esac
24826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24827 $as_echo "$ac_try_echo") >&5
24828 (eval "$ac_link") 2>conftest.er1
24829 ac_status=$?
24830 grep -v '^ *+' conftest.er1 >conftest.err
24831 rm -f conftest.er1
24832 cat conftest.err >&5
24833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); } && {
24835 test -z "$ac_c_werror_flag" ||
24836 test ! -s conftest.err
24837 } && test -s conftest$ac_exeext && {
24838 test "$cross_compiling" = yes ||
24839 $as_test_x conftest$ac_exeext
24840 }; then
24841 ac_cv_func_socket=yes
24842 else
24843 $as_echo "$as_me: failed program was:" >&5
24844 sed 's/^/| /' conftest.$ac_ext >&5
24846 ac_cv_func_socket=no
24849 rm -rf conftest.dSYM
24850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24851 conftest$ac_exeext conftest.$ac_ext
24853 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24854 $as_echo "$ac_cv_func_socket" >&6; }
24855 if test $ac_cv_func_socket = yes; then
24857 else
24858 ok_so_far=no
24861 if test $ok_so_far = yes; then
24862 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24863 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24864 $as_echo_n "checking for netinet/in.h... " >&6; }
24865 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24866 $as_echo_n "(cached) " >&6
24868 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24869 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24870 else
24871 # Is the header compilable?
24872 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24873 $as_echo_n "checking netinet/in.h usability... " >&6; }
24874 cat >conftest.$ac_ext <<_ACEOF
24875 /* confdefs.h. */
24876 _ACEOF
24877 cat confdefs.h >>conftest.$ac_ext
24878 cat >>conftest.$ac_ext <<_ACEOF
24879 /* end confdefs.h. */
24880 $ac_includes_default
24881 #include <netinet/in.h>
24882 _ACEOF
24883 rm -f conftest.$ac_objext
24884 if { (ac_try="$ac_compile"
24885 case "(($ac_try" in
24886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887 *) ac_try_echo=$ac_try;;
24888 esac
24889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24890 $as_echo "$ac_try_echo") >&5
24891 (eval "$ac_compile") 2>conftest.er1
24892 ac_status=$?
24893 grep -v '^ *+' conftest.er1 >conftest.err
24894 rm -f conftest.er1
24895 cat conftest.err >&5
24896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); } && {
24898 test -z "$ac_c_werror_flag" ||
24899 test ! -s conftest.err
24900 } && test -s conftest.$ac_objext; then
24901 ac_header_compiler=yes
24902 else
24903 $as_echo "$as_me: failed program was:" >&5
24904 sed 's/^/| /' conftest.$ac_ext >&5
24906 ac_header_compiler=no
24909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24910 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24911 $as_echo "$ac_header_compiler" >&6; }
24913 # Is the header present?
24914 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24915 $as_echo_n "checking netinet/in.h presence... " >&6; }
24916 cat >conftest.$ac_ext <<_ACEOF
24917 /* confdefs.h. */
24918 _ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h. */
24922 #include <netinet/in.h>
24923 _ACEOF
24924 if { (ac_try="$ac_cpp conftest.$ac_ext"
24925 case "(($ac_try" in
24926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24927 *) ac_try_echo=$ac_try;;
24928 esac
24929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24930 $as_echo "$ac_try_echo") >&5
24931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24932 ac_status=$?
24933 grep -v '^ *+' conftest.er1 >conftest.err
24934 rm -f conftest.er1
24935 cat conftest.err >&5
24936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); } >/dev/null && {
24938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24939 test ! -s conftest.err
24940 }; then
24941 ac_header_preproc=yes
24942 else
24943 $as_echo "$as_me: failed program was:" >&5
24944 sed 's/^/| /' conftest.$ac_ext >&5
24946 ac_header_preproc=no
24949 rm -f conftest.err conftest.$ac_ext
24950 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24951 $as_echo "$ac_header_preproc" >&6; }
24953 # So? What about this header?
24954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24955 yes:no: )
24956 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24957 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24958 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24959 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24960 ac_header_preproc=yes
24962 no:yes:* )
24963 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24964 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24965 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24966 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24967 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24968 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24969 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24970 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24971 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24972 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24973 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24974 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24977 esac
24978 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24979 $as_echo_n "checking for netinet/in.h... " >&6; }
24980 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24981 $as_echo_n "(cached) " >&6
24982 else
24983 ac_cv_header_netinet_in_h=$ac_header_preproc
24985 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24986 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24989 if test $ac_cv_header_netinet_in_h = yes; then
24991 else
24992 ok_so_far=no
24997 if test $ok_so_far = yes; then
24998 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24999 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25000 $as_echo_n "checking for arpa/inet.h... " >&6; }
25001 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25002 $as_echo_n "(cached) " >&6
25004 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25005 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25006 else
25007 # Is the header compilable?
25008 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
25009 $as_echo_n "checking arpa/inet.h usability... " >&6; }
25010 cat >conftest.$ac_ext <<_ACEOF
25011 /* confdefs.h. */
25012 _ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25016 $ac_includes_default
25017 #include <arpa/inet.h>
25018 _ACEOF
25019 rm -f conftest.$ac_objext
25020 if { (ac_try="$ac_compile"
25021 case "(($ac_try" in
25022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023 *) ac_try_echo=$ac_try;;
25024 esac
25025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25026 $as_echo "$ac_try_echo") >&5
25027 (eval "$ac_compile") 2>conftest.er1
25028 ac_status=$?
25029 grep -v '^ *+' conftest.er1 >conftest.err
25030 rm -f conftest.er1
25031 cat conftest.err >&5
25032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033 (exit $ac_status); } && {
25034 test -z "$ac_c_werror_flag" ||
25035 test ! -s conftest.err
25036 } && test -s conftest.$ac_objext; then
25037 ac_header_compiler=yes
25038 else
25039 $as_echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25042 ac_header_compiler=no
25045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25046 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25047 $as_echo "$ac_header_compiler" >&6; }
25049 # Is the header present?
25050 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
25051 $as_echo_n "checking arpa/inet.h presence... " >&6; }
25052 cat >conftest.$ac_ext <<_ACEOF
25053 /* confdefs.h. */
25054 _ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h. */
25058 #include <arpa/inet.h>
25059 _ACEOF
25060 if { (ac_try="$ac_cpp conftest.$ac_ext"
25061 case "(($ac_try" in
25062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25063 *) ac_try_echo=$ac_try;;
25064 esac
25065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25066 $as_echo "$ac_try_echo") >&5
25067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25068 ac_status=$?
25069 grep -v '^ *+' conftest.er1 >conftest.err
25070 rm -f conftest.er1
25071 cat conftest.err >&5
25072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); } >/dev/null && {
25074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25075 test ! -s conftest.err
25076 }; then
25077 ac_header_preproc=yes
25078 else
25079 $as_echo "$as_me: failed program was:" >&5
25080 sed 's/^/| /' conftest.$ac_ext >&5
25082 ac_header_preproc=no
25085 rm -f conftest.err conftest.$ac_ext
25086 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25087 $as_echo "$ac_header_preproc" >&6; }
25089 # So? What about this header?
25090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25091 yes:no: )
25092 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
25093 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25094 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
25095 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
25096 ac_header_preproc=yes
25098 no:yes:* )
25099 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
25100 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
25101 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
25102 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
25103 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
25104 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
25105 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
25106 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
25107 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
25108 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
25109 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
25110 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
25113 esac
25114 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25115 $as_echo_n "checking for arpa/inet.h... " >&6; }
25116 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25117 $as_echo_n "(cached) " >&6
25118 else
25119 ac_cv_header_arpa_inet_h=$ac_header_preproc
25121 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25122 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25125 if test $ac_cv_header_arpa_inet_h = yes; then
25127 else
25128 ok_so_far=no
25133 if test $ok_so_far = yes; then
25135 cat >>confdefs.h <<\_ACEOF
25136 #define HAVE_INET_SOCKETS 1
25137 _ACEOF
25142 for ac_header in sys/ioctl.h
25144 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25146 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25147 $as_echo_n "checking for $ac_header... " >&6; }
25148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25149 $as_echo_n "(cached) " >&6
25151 ac_res=`eval 'as_val=${'$as_ac_Header'}
25152 $as_echo "$as_val"'`
25153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25154 $as_echo "$ac_res" >&6; }
25155 else
25156 # Is the header compilable?
25157 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25158 $as_echo_n "checking $ac_header usability... " >&6; }
25159 cat >conftest.$ac_ext <<_ACEOF
25160 /* confdefs.h. */
25161 _ACEOF
25162 cat confdefs.h >>conftest.$ac_ext
25163 cat >>conftest.$ac_ext <<_ACEOF
25164 /* end confdefs.h. */
25165 $ac_includes_default
25166 #include <$ac_header>
25167 _ACEOF
25168 rm -f conftest.$ac_objext
25169 if { (ac_try="$ac_compile"
25170 case "(($ac_try" in
25171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25172 *) ac_try_echo=$ac_try;;
25173 esac
25174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25175 $as_echo "$ac_try_echo") >&5
25176 (eval "$ac_compile") 2>conftest.er1
25177 ac_status=$?
25178 grep -v '^ *+' conftest.er1 >conftest.err
25179 rm -f conftest.er1
25180 cat conftest.err >&5
25181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); } && {
25183 test -z "$ac_c_werror_flag" ||
25184 test ! -s conftest.err
25185 } && test -s conftest.$ac_objext; then
25186 ac_header_compiler=yes
25187 else
25188 $as_echo "$as_me: failed program was:" >&5
25189 sed 's/^/| /' conftest.$ac_ext >&5
25191 ac_header_compiler=no
25194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25195 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25196 $as_echo "$ac_header_compiler" >&6; }
25198 # Is the header present?
25199 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25200 $as_echo_n "checking $ac_header presence... " >&6; }
25201 cat >conftest.$ac_ext <<_ACEOF
25202 /* confdefs.h. */
25203 _ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h. */
25207 #include <$ac_header>
25208 _ACEOF
25209 if { (ac_try="$ac_cpp conftest.$ac_ext"
25210 case "(($ac_try" in
25211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212 *) ac_try_echo=$ac_try;;
25213 esac
25214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25215 $as_echo "$ac_try_echo") >&5
25216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25217 ac_status=$?
25218 grep -v '^ *+' conftest.er1 >conftest.err
25219 rm -f conftest.er1
25220 cat conftest.err >&5
25221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); } >/dev/null && {
25223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25224 test ! -s conftest.err
25225 }; then
25226 ac_header_preproc=yes
25227 else
25228 $as_echo "$as_me: failed program was:" >&5
25229 sed 's/^/| /' conftest.$ac_ext >&5
25231 ac_header_preproc=no
25234 rm -f conftest.err conftest.$ac_ext
25235 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25236 $as_echo "$ac_header_preproc" >&6; }
25238 # So? What about this header?
25239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25240 yes:no: )
25241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25242 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25245 ac_header_preproc=yes
25247 no:yes:* )
25248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25249 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25251 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25253 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25255 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25257 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25259 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25262 esac
25263 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25264 $as_echo_n "checking for $ac_header... " >&6; }
25265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25266 $as_echo_n "(cached) " >&6
25267 else
25268 eval "$as_ac_Header=\$ac_header_preproc"
25270 ac_res=`eval 'as_val=${'$as_ac_Header'}
25271 $as_echo "$as_val"'`
25272 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25273 $as_echo "$ac_res" >&6; }
25276 if test `eval 'as_val=${'$as_ac_Header'}
25277 $as_echo "$as_val"'` = yes; then
25278 cat >>confdefs.h <<_ACEOF
25279 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25280 _ACEOF
25284 done
25287 if test -f /usr/lpp/X11/bin/smt.exp; then
25289 cat >>confdefs.h <<\_ACEOF
25290 #define HAVE_AIX_SMT_EXP 1
25291 _ACEOF
25295 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
25296 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
25297 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25298 { $as_echo "$as_me:$LINENO: result: yes" >&5
25299 $as_echo "yes" >&6; }
25301 cat >>confdefs.h <<\_ACEOF
25302 #define HAVE_DEV_PTMX 1
25303 _ACEOF
25305 else
25306 { $as_echo "$as_me:$LINENO: result: no" >&5
25307 $as_echo "no" >&6; }
25310 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
25311 $as_echo_n "checking for pid_t... " >&6; }
25312 if test "${ac_cv_type_pid_t+set}" = set; then
25313 $as_echo_n "(cached) " >&6
25314 else
25315 ac_cv_type_pid_t=no
25316 cat >conftest.$ac_ext <<_ACEOF
25317 /* confdefs.h. */
25318 _ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h. */
25322 $ac_includes_default
25324 main ()
25326 if (sizeof (pid_t))
25327 return 0;
25329 return 0;
25331 _ACEOF
25332 rm -f conftest.$ac_objext
25333 if { (ac_try="$ac_compile"
25334 case "(($ac_try" in
25335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25336 *) ac_try_echo=$ac_try;;
25337 esac
25338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25339 $as_echo "$ac_try_echo") >&5
25340 (eval "$ac_compile") 2>conftest.er1
25341 ac_status=$?
25342 grep -v '^ *+' conftest.er1 >conftest.err
25343 rm -f conftest.er1
25344 cat conftest.err >&5
25345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); } && {
25347 test -z "$ac_c_werror_flag" ||
25348 test ! -s conftest.err
25349 } && test -s conftest.$ac_objext; then
25350 cat >conftest.$ac_ext <<_ACEOF
25351 /* confdefs.h. */
25352 _ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h. */
25356 $ac_includes_default
25358 main ()
25360 if (sizeof ((pid_t)))
25361 return 0;
25363 return 0;
25365 _ACEOF
25366 rm -f conftest.$ac_objext
25367 if { (ac_try="$ac_compile"
25368 case "(($ac_try" in
25369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25370 *) ac_try_echo=$ac_try;;
25371 esac
25372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25373 $as_echo "$ac_try_echo") >&5
25374 (eval "$ac_compile") 2>conftest.er1
25375 ac_status=$?
25376 grep -v '^ *+' conftest.er1 >conftest.err
25377 rm -f conftest.er1
25378 cat conftest.err >&5
25379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380 (exit $ac_status); } && {
25381 test -z "$ac_c_werror_flag" ||
25382 test ! -s conftest.err
25383 } && test -s conftest.$ac_objext; then
25385 else
25386 $as_echo "$as_me: failed program was:" >&5
25387 sed 's/^/| /' conftest.$ac_ext >&5
25389 ac_cv_type_pid_t=yes
25392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25393 else
25394 $as_echo "$as_me: failed program was:" >&5
25395 sed 's/^/| /' conftest.$ac_ext >&5
25400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25402 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25403 $as_echo "$ac_cv_type_pid_t" >&6; }
25404 if test $ac_cv_type_pid_t = yes; then
25406 else
25408 cat >>confdefs.h <<_ACEOF
25409 #define pid_t int
25410 _ACEOF
25415 for ac_header in vfork.h
25417 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25419 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25420 $as_echo_n "checking for $ac_header... " >&6; }
25421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25422 $as_echo_n "(cached) " >&6
25424 ac_res=`eval 'as_val=${'$as_ac_Header'}
25425 $as_echo "$as_val"'`
25426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25427 $as_echo "$ac_res" >&6; }
25428 else
25429 # Is the header compilable?
25430 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25431 $as_echo_n "checking $ac_header usability... " >&6; }
25432 cat >conftest.$ac_ext <<_ACEOF
25433 /* confdefs.h. */
25434 _ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h. */
25438 $ac_includes_default
25439 #include <$ac_header>
25440 _ACEOF
25441 rm -f conftest.$ac_objext
25442 if { (ac_try="$ac_compile"
25443 case "(($ac_try" in
25444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445 *) ac_try_echo=$ac_try;;
25446 esac
25447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25448 $as_echo "$ac_try_echo") >&5
25449 (eval "$ac_compile") 2>conftest.er1
25450 ac_status=$?
25451 grep -v '^ *+' conftest.er1 >conftest.err
25452 rm -f conftest.er1
25453 cat conftest.err >&5
25454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } && {
25456 test -z "$ac_c_werror_flag" ||
25457 test ! -s conftest.err
25458 } && test -s conftest.$ac_objext; then
25459 ac_header_compiler=yes
25460 else
25461 $as_echo "$as_me: failed program was:" >&5
25462 sed 's/^/| /' conftest.$ac_ext >&5
25464 ac_header_compiler=no
25467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25468 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25469 $as_echo "$ac_header_compiler" >&6; }
25471 # Is the header present?
25472 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25473 $as_echo_n "checking $ac_header presence... " >&6; }
25474 cat >conftest.$ac_ext <<_ACEOF
25475 /* confdefs.h. */
25476 _ACEOF
25477 cat confdefs.h >>conftest.$ac_ext
25478 cat >>conftest.$ac_ext <<_ACEOF
25479 /* end confdefs.h. */
25480 #include <$ac_header>
25481 _ACEOF
25482 if { (ac_try="$ac_cpp conftest.$ac_ext"
25483 case "(($ac_try" in
25484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25485 *) ac_try_echo=$ac_try;;
25486 esac
25487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25488 $as_echo "$ac_try_echo") >&5
25489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25490 ac_status=$?
25491 grep -v '^ *+' conftest.er1 >conftest.err
25492 rm -f conftest.er1
25493 cat conftest.err >&5
25494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); } >/dev/null && {
25496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25497 test ! -s conftest.err
25498 }; then
25499 ac_header_preproc=yes
25500 else
25501 $as_echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25504 ac_header_preproc=no
25507 rm -f conftest.err conftest.$ac_ext
25508 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25509 $as_echo "$ac_header_preproc" >&6; }
25511 # So? What about this header?
25512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25513 yes:no: )
25514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25515 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25517 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25518 ac_header_preproc=yes
25520 no:yes:* )
25521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25522 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25524 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25526 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25528 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25530 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25532 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25535 esac
25536 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25537 $as_echo_n "checking for $ac_header... " >&6; }
25538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25539 $as_echo_n "(cached) " >&6
25540 else
25541 eval "$as_ac_Header=\$ac_header_preproc"
25543 ac_res=`eval 'as_val=${'$as_ac_Header'}
25544 $as_echo "$as_val"'`
25545 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25546 $as_echo "$ac_res" >&6; }
25549 if test `eval 'as_val=${'$as_ac_Header'}
25550 $as_echo "$as_val"'` = yes; then
25551 cat >>confdefs.h <<_ACEOF
25552 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25553 _ACEOF
25557 done
25561 for ac_func in fork vfork
25563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25564 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25565 $as_echo_n "checking for $ac_func... " >&6; }
25566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25567 $as_echo_n "(cached) " >&6
25568 else
25569 cat >conftest.$ac_ext <<_ACEOF
25570 /* confdefs.h. */
25571 _ACEOF
25572 cat confdefs.h >>conftest.$ac_ext
25573 cat >>conftest.$ac_ext <<_ACEOF
25574 /* end confdefs.h. */
25575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25577 #define $ac_func innocuous_$ac_func
25579 /* System header to define __stub macros and hopefully few prototypes,
25580 which can conflict with char $ac_func (); below.
25581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25582 <limits.h> exists even on freestanding compilers. */
25584 #ifdef __STDC__
25585 # include <limits.h>
25586 #else
25587 # include <assert.h>
25588 #endif
25590 #undef $ac_func
25592 /* Override any GCC internal prototype to avoid an error.
25593 Use char because int might match the return type of a GCC
25594 builtin and then its argument prototype would still apply. */
25595 #ifdef __cplusplus
25596 extern "C"
25597 #endif
25598 char $ac_func ();
25599 /* The GNU C library defines this for functions which it implements
25600 to always fail with ENOSYS. Some functions are actually named
25601 something starting with __ and the normal name is an alias. */
25602 #if defined __stub_$ac_func || defined __stub___$ac_func
25603 choke me
25604 #endif
25607 main ()
25609 return $ac_func ();
25611 return 0;
25613 _ACEOF
25614 rm -f conftest.$ac_objext conftest$ac_exeext
25615 if { (ac_try="$ac_link"
25616 case "(($ac_try" in
25617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25618 *) ac_try_echo=$ac_try;;
25619 esac
25620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25621 $as_echo "$ac_try_echo") >&5
25622 (eval "$ac_link") 2>conftest.er1
25623 ac_status=$?
25624 grep -v '^ *+' conftest.er1 >conftest.err
25625 rm -f conftest.er1
25626 cat conftest.err >&5
25627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); } && {
25629 test -z "$ac_c_werror_flag" ||
25630 test ! -s conftest.err
25631 } && test -s conftest$ac_exeext && {
25632 test "$cross_compiling" = yes ||
25633 $as_test_x conftest$ac_exeext
25634 }; then
25635 eval "$as_ac_var=yes"
25636 else
25637 $as_echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25640 eval "$as_ac_var=no"
25643 rm -rf conftest.dSYM
25644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25645 conftest$ac_exeext conftest.$ac_ext
25647 ac_res=`eval 'as_val=${'$as_ac_var'}
25648 $as_echo "$as_val"'`
25649 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25650 $as_echo "$ac_res" >&6; }
25651 if test `eval 'as_val=${'$as_ac_var'}
25652 $as_echo "$as_val"'` = yes; then
25653 cat >>confdefs.h <<_ACEOF
25654 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25655 _ACEOF
25658 done
25660 if test "x$ac_cv_func_fork" = xyes; then
25661 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25662 $as_echo_n "checking for working fork... " >&6; }
25663 if test "${ac_cv_func_fork_works+set}" = set; then
25664 $as_echo_n "(cached) " >&6
25665 else
25666 if test "$cross_compiling" = yes; then
25667 ac_cv_func_fork_works=cross
25668 else
25669 cat >conftest.$ac_ext <<_ACEOF
25670 /* confdefs.h. */
25671 _ACEOF
25672 cat confdefs.h >>conftest.$ac_ext
25673 cat >>conftest.$ac_ext <<_ACEOF
25674 /* end confdefs.h. */
25675 $ac_includes_default
25677 main ()
25680 /* By Ruediger Kuhlmann. */
25681 return fork () < 0;
25684 return 0;
25686 _ACEOF
25687 rm -f conftest$ac_exeext
25688 if { (ac_try="$ac_link"
25689 case "(($ac_try" in
25690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691 *) ac_try_echo=$ac_try;;
25692 esac
25693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25694 $as_echo "$ac_try_echo") >&5
25695 (eval "$ac_link") 2>&5
25696 ac_status=$?
25697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25699 { (case "(($ac_try" in
25700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25701 *) ac_try_echo=$ac_try;;
25702 esac
25703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25704 $as_echo "$ac_try_echo") >&5
25705 (eval "$ac_try") 2>&5
25706 ac_status=$?
25707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); }; }; then
25709 ac_cv_func_fork_works=yes
25710 else
25711 $as_echo "$as_me: program exited with status $ac_status" >&5
25712 $as_echo "$as_me: failed program was:" >&5
25713 sed 's/^/| /' conftest.$ac_ext >&5
25715 ( exit $ac_status )
25716 ac_cv_func_fork_works=no
25718 rm -rf conftest.dSYM
25719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25724 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25725 $as_echo "$ac_cv_func_fork_works" >&6; }
25727 else
25728 ac_cv_func_fork_works=$ac_cv_func_fork
25730 if test "x$ac_cv_func_fork_works" = xcross; then
25731 case $host in
25732 *-*-amigaos* | *-*-msdosdjgpp*)
25733 # Override, as these systems have only a dummy fork() stub
25734 ac_cv_func_fork_works=no
25737 ac_cv_func_fork_works=yes
25739 esac
25740 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25741 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25743 ac_cv_func_vfork_works=$ac_cv_func_vfork
25744 if test "x$ac_cv_func_vfork" = xyes; then
25745 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25746 $as_echo_n "checking for working vfork... " >&6; }
25747 if test "${ac_cv_func_vfork_works+set}" = set; then
25748 $as_echo_n "(cached) " >&6
25749 else
25750 if test "$cross_compiling" = yes; then
25751 ac_cv_func_vfork_works=cross
25752 else
25753 cat >conftest.$ac_ext <<_ACEOF
25754 /* confdefs.h. */
25755 _ACEOF
25756 cat confdefs.h >>conftest.$ac_ext
25757 cat >>conftest.$ac_ext <<_ACEOF
25758 /* end confdefs.h. */
25759 /* Thanks to Paul Eggert for this test. */
25760 $ac_includes_default
25761 #include <sys/wait.h>
25762 #ifdef HAVE_VFORK_H
25763 # include <vfork.h>
25764 #endif
25765 /* On some sparc systems, changes by the child to local and incoming
25766 argument registers are propagated back to the parent. The compiler
25767 is told about this with #include <vfork.h>, but some compilers
25768 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25769 static variable whose address is put into a register that is
25770 clobbered by the vfork. */
25771 static void
25772 #ifdef __cplusplus
25773 sparc_address_test (int arg)
25774 # else
25775 sparc_address_test (arg) int arg;
25776 #endif
25778 static pid_t child;
25779 if (!child) {
25780 child = vfork ();
25781 if (child < 0) {
25782 perror ("vfork");
25783 _exit(2);
25785 if (!child) {
25786 arg = getpid();
25787 write(-1, "", 0);
25788 _exit (arg);
25794 main ()
25796 pid_t parent = getpid ();
25797 pid_t child;
25799 sparc_address_test (0);
25801 child = vfork ();
25803 if (child == 0) {
25804 /* Here is another test for sparc vfork register problems. This
25805 test uses lots of local variables, at least as many local
25806 variables as main has allocated so far including compiler
25807 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25808 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25809 reuse the register of parent for one of the local variables,
25810 since it will think that parent can't possibly be used any more
25811 in this routine. Assigning to the local variable will thus
25812 munge parent in the parent process. */
25813 pid_t
25814 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25815 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25816 /* Convince the compiler that p..p7 are live; otherwise, it might
25817 use the same hardware register for all 8 local variables. */
25818 if (p != p1 || p != p2 || p != p3 || p != p4
25819 || p != p5 || p != p6 || p != p7)
25820 _exit(1);
25822 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25823 from child file descriptors. If the child closes a descriptor
25824 before it execs or exits, this munges the parent's descriptor
25825 as well. Test for this by closing stdout in the child. */
25826 _exit(close(fileno(stdout)) != 0);
25827 } else {
25828 int status;
25829 struct stat st;
25831 while (wait(&status) != child)
25833 return (
25834 /* Was there some problem with vforking? */
25835 child < 0
25837 /* Did the child fail? (This shouldn't happen.) */
25838 || status
25840 /* Did the vfork/compiler bug occur? */
25841 || parent != getpid()
25843 /* Did the file descriptor bug occur? */
25844 || fstat(fileno(stdout), &st) != 0
25848 _ACEOF
25849 rm -f conftest$ac_exeext
25850 if { (ac_try="$ac_link"
25851 case "(($ac_try" in
25852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25853 *) ac_try_echo=$ac_try;;
25854 esac
25855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25856 $as_echo "$ac_try_echo") >&5
25857 (eval "$ac_link") 2>&5
25858 ac_status=$?
25859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25861 { (case "(($ac_try" in
25862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863 *) ac_try_echo=$ac_try;;
25864 esac
25865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25866 $as_echo "$ac_try_echo") >&5
25867 (eval "$ac_try") 2>&5
25868 ac_status=$?
25869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870 (exit $ac_status); }; }; then
25871 ac_cv_func_vfork_works=yes
25872 else
25873 $as_echo "$as_me: program exited with status $ac_status" >&5
25874 $as_echo "$as_me: failed program was:" >&5
25875 sed 's/^/| /' conftest.$ac_ext >&5
25877 ( exit $ac_status )
25878 ac_cv_func_vfork_works=no
25880 rm -rf conftest.dSYM
25881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25886 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25887 $as_echo "$ac_cv_func_vfork_works" >&6; }
25890 if test "x$ac_cv_func_fork_works" = xcross; then
25891 ac_cv_func_vfork_works=$ac_cv_func_vfork
25892 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25893 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25896 if test "x$ac_cv_func_vfork_works" = xyes; then
25898 cat >>confdefs.h <<\_ACEOF
25899 #define HAVE_WORKING_VFORK 1
25900 _ACEOF
25902 else
25904 cat >>confdefs.h <<\_ACEOF
25905 #define vfork fork
25906 _ACEOF
25909 if test "x$ac_cv_func_fork_works" = xyes; then
25911 cat >>confdefs.h <<\_ACEOF
25912 #define HAVE_WORKING_FORK 1
25913 _ACEOF
25918 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25919 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25920 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25921 $as_echo_n "(cached) " >&6
25922 else
25923 cat >conftest.$ac_ext <<_ACEOF
25924 /* confdefs.h. */
25925 _ACEOF
25926 cat confdefs.h >>conftest.$ac_ext
25927 cat >>conftest.$ac_ext <<_ACEOF
25928 /* end confdefs.h. */
25929 #include <langinfo.h>
25931 main ()
25933 char* cs = nl_langinfo(CODESET);
25935 return 0;
25937 _ACEOF
25938 rm -f conftest.$ac_objext conftest$ac_exeext
25939 if { (ac_try="$ac_link"
25940 case "(($ac_try" in
25941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25942 *) ac_try_echo=$ac_try;;
25943 esac
25944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25945 $as_echo "$ac_try_echo") >&5
25946 (eval "$ac_link") 2>conftest.er1
25947 ac_status=$?
25948 grep -v '^ *+' conftest.er1 >conftest.err
25949 rm -f conftest.er1
25950 cat conftest.err >&5
25951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952 (exit $ac_status); } && {
25953 test -z "$ac_c_werror_flag" ||
25954 test ! -s conftest.err
25955 } && test -s conftest$ac_exeext && {
25956 test "$cross_compiling" = yes ||
25957 $as_test_x conftest$ac_exeext
25958 }; then
25959 emacs_cv_langinfo_codeset=yes
25960 else
25961 $as_echo "$as_me: failed program was:" >&5
25962 sed 's/^/| /' conftest.$ac_ext >&5
25964 emacs_cv_langinfo_codeset=no
25967 rm -rf conftest.dSYM
25968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25969 conftest$ac_exeext conftest.$ac_ext
25972 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25973 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25974 if test $emacs_cv_langinfo_codeset = yes; then
25976 cat >>confdefs.h <<\_ACEOF
25977 #define HAVE_LANGINFO_CODESET 1
25978 _ACEOF
25982 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25983 $as_echo_n "checking for size_t... " >&6; }
25984 if test "${ac_cv_type_size_t+set}" = set; then
25985 $as_echo_n "(cached) " >&6
25986 else
25987 ac_cv_type_size_t=no
25988 cat >conftest.$ac_ext <<_ACEOF
25989 /* confdefs.h. */
25990 _ACEOF
25991 cat confdefs.h >>conftest.$ac_ext
25992 cat >>conftest.$ac_ext <<_ACEOF
25993 /* end confdefs.h. */
25994 $ac_includes_default
25996 main ()
25998 if (sizeof (size_t))
25999 return 0;
26001 return 0;
26003 _ACEOF
26004 rm -f conftest.$ac_objext
26005 if { (ac_try="$ac_compile"
26006 case "(($ac_try" in
26007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26008 *) ac_try_echo=$ac_try;;
26009 esac
26010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26011 $as_echo "$ac_try_echo") >&5
26012 (eval "$ac_compile") 2>conftest.er1
26013 ac_status=$?
26014 grep -v '^ *+' conftest.er1 >conftest.err
26015 rm -f conftest.er1
26016 cat conftest.err >&5
26017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); } && {
26019 test -z "$ac_c_werror_flag" ||
26020 test ! -s conftest.err
26021 } && test -s conftest.$ac_objext; then
26022 cat >conftest.$ac_ext <<_ACEOF
26023 /* confdefs.h. */
26024 _ACEOF
26025 cat confdefs.h >>conftest.$ac_ext
26026 cat >>conftest.$ac_ext <<_ACEOF
26027 /* end confdefs.h. */
26028 $ac_includes_default
26030 main ()
26032 if (sizeof ((size_t)))
26033 return 0;
26035 return 0;
26037 _ACEOF
26038 rm -f conftest.$ac_objext
26039 if { (ac_try="$ac_compile"
26040 case "(($ac_try" in
26041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26042 *) ac_try_echo=$ac_try;;
26043 esac
26044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26045 $as_echo "$ac_try_echo") >&5
26046 (eval "$ac_compile") 2>conftest.er1
26047 ac_status=$?
26048 grep -v '^ *+' conftest.er1 >conftest.err
26049 rm -f conftest.er1
26050 cat conftest.err >&5
26051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052 (exit $ac_status); } && {
26053 test -z "$ac_c_werror_flag" ||
26054 test ! -s conftest.err
26055 } && test -s conftest.$ac_objext; then
26057 else
26058 $as_echo "$as_me: failed program was:" >&5
26059 sed 's/^/| /' conftest.$ac_ext >&5
26061 ac_cv_type_size_t=yes
26064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26065 else
26066 $as_echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26074 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26075 $as_echo "$ac_cv_type_size_t" >&6; }
26076 if test $ac_cv_type_size_t = yes; then
26078 cat >>confdefs.h <<_ACEOF
26079 #define HAVE_SIZE_T 1
26080 _ACEOF
26086 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
26087 $as_echo_n "checking for mbstate_t... " >&6; }
26088 if test "${ac_cv_type_mbstate_t+set}" = set; then
26089 $as_echo_n "(cached) " >&6
26090 else
26091 cat >conftest.$ac_ext <<_ACEOF
26092 /* confdefs.h. */
26093 _ACEOF
26094 cat confdefs.h >>conftest.$ac_ext
26095 cat >>conftest.$ac_ext <<_ACEOF
26096 /* end confdefs.h. */
26097 $ac_includes_default
26098 # include <wchar.h>
26100 main ()
26102 mbstate_t x; return sizeof x;
26104 return 0;
26106 _ACEOF
26107 rm -f conftest.$ac_objext
26108 if { (ac_try="$ac_compile"
26109 case "(($ac_try" in
26110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26111 *) ac_try_echo=$ac_try;;
26112 esac
26113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26114 $as_echo "$ac_try_echo") >&5
26115 (eval "$ac_compile") 2>conftest.er1
26116 ac_status=$?
26117 grep -v '^ *+' conftest.er1 >conftest.err
26118 rm -f conftest.er1
26119 cat conftest.err >&5
26120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); } && {
26122 test -z "$ac_c_werror_flag" ||
26123 test ! -s conftest.err
26124 } && test -s conftest.$ac_objext; then
26125 ac_cv_type_mbstate_t=yes
26126 else
26127 $as_echo "$as_me: failed program was:" >&5
26128 sed 's/^/| /' conftest.$ac_ext >&5
26130 ac_cv_type_mbstate_t=no
26133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26135 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
26136 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26137 if test $ac_cv_type_mbstate_t = yes; then
26139 cat >>confdefs.h <<\_ACEOF
26140 #define HAVE_MBSTATE_T 1
26141 _ACEOF
26143 else
26145 cat >>confdefs.h <<\_ACEOF
26146 #define mbstate_t int
26147 _ACEOF
26151 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
26152 $as_echo_n "checking for C restrict keyword... " >&6; }
26153 if test "${emacs_cv_c_restrict+set}" = set; then
26154 $as_echo_n "(cached) " >&6
26155 else
26156 cat >conftest.$ac_ext <<_ACEOF
26157 /* confdefs.h. */
26158 _ACEOF
26159 cat confdefs.h >>conftest.$ac_ext
26160 cat >>conftest.$ac_ext <<_ACEOF
26161 /* end confdefs.h. */
26162 void fred (int *restrict x);
26164 main ()
26168 return 0;
26170 _ACEOF
26171 rm -f conftest.$ac_objext
26172 if { (ac_try="$ac_compile"
26173 case "(($ac_try" in
26174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175 *) ac_try_echo=$ac_try;;
26176 esac
26177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26178 $as_echo "$ac_try_echo") >&5
26179 (eval "$ac_compile") 2>conftest.er1
26180 ac_status=$?
26181 grep -v '^ *+' conftest.er1 >conftest.err
26182 rm -f conftest.er1
26183 cat conftest.err >&5
26184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); } && {
26186 test -z "$ac_c_werror_flag" ||
26187 test ! -s conftest.err
26188 } && test -s conftest.$ac_objext; then
26189 emacs_cv_c_restrict=yes
26190 else
26191 $as_echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26194 cat >conftest.$ac_ext <<_ACEOF
26195 /* confdefs.h. */
26196 _ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h. */
26200 void fred (int *__restrict x);
26202 main ()
26206 return 0;
26208 _ACEOF
26209 rm -f conftest.$ac_objext
26210 if { (ac_try="$ac_compile"
26211 case "(($ac_try" in
26212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26213 *) ac_try_echo=$ac_try;;
26214 esac
26215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26216 $as_echo "$ac_try_echo") >&5
26217 (eval "$ac_compile") 2>conftest.er1
26218 ac_status=$?
26219 grep -v '^ *+' conftest.er1 >conftest.err
26220 rm -f conftest.er1
26221 cat conftest.err >&5
26222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223 (exit $ac_status); } && {
26224 test -z "$ac_c_werror_flag" ||
26225 test ! -s conftest.err
26226 } && test -s conftest.$ac_objext; then
26227 emacs_cv_c_restrict=__restrict
26228 else
26229 $as_echo "$as_me: failed program was:" >&5
26230 sed 's/^/| /' conftest.$ac_ext >&5
26232 emacs_cv_c_restrict=no
26235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26240 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
26241 $as_echo "$emacs_cv_c_restrict" >&6; }
26242 case "$emacs_cv_c_restrict" in
26243 yes) emacs_restrict=restrict;;
26244 no) emacs_restrict="";;
26245 *) emacs_restrict="$emacs_cv_c_restrict";;
26246 esac
26247 if test "$emacs_restrict" != __restrict; then
26249 cat >>confdefs.h <<_ACEOF
26250 #define __restrict $emacs_restrict
26251 _ACEOF
26255 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
26256 $as_echo_n "checking for C restricted array declarations... " >&6; }
26257 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26258 $as_echo_n "(cached) " >&6
26259 else
26260 cat >conftest.$ac_ext <<_ACEOF
26261 /* confdefs.h. */
26262 _ACEOF
26263 cat confdefs.h >>conftest.$ac_ext
26264 cat >>conftest.$ac_ext <<_ACEOF
26265 /* end confdefs.h. */
26266 void fred (int x[__restrict]);
26268 main ()
26272 return 0;
26274 _ACEOF
26275 rm -f conftest.$ac_objext
26276 if { (ac_try="$ac_compile"
26277 case "(($ac_try" in
26278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26279 *) ac_try_echo=$ac_try;;
26280 esac
26281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26282 $as_echo "$ac_try_echo") >&5
26283 (eval "$ac_compile") 2>conftest.er1
26284 ac_status=$?
26285 grep -v '^ *+' conftest.er1 >conftest.err
26286 rm -f conftest.er1
26287 cat conftest.err >&5
26288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); } && {
26290 test -z "$ac_c_werror_flag" ||
26291 test ! -s conftest.err
26292 } && test -s conftest.$ac_objext; then
26293 emacs_cv_c_restrict_arr=yes
26294 else
26295 $as_echo "$as_me: failed program was:" >&5
26296 sed 's/^/| /' conftest.$ac_ext >&5
26298 emacs_cv_c_restrict_arr=no
26301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26303 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
26304 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26305 if test "$emacs_cv_c_restrict_arr" = yes; then
26307 cat >>confdefs.h <<\_ACEOF
26308 #define __restrict_arr __restrict
26309 _ACEOF
26315 # Set up the CFLAGS for real compilation, so we can substitute it.
26316 CFLAGS="$REAL_CFLAGS"
26317 CPPFLAGS="$REAL_CPPFLAGS"
26319 ## Hack to detect a buggy GCC version.
26320 if test "x$GCC" = xyes \
26321 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26322 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26323 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26324 { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5
26325 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;}
26326 { (exit 1); exit 1; }; }
26329 #### Find out which version of Emacs this is.
26330 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
26331 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
26332 if test x"${version}" = x; then
26333 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&5
26334 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&2;}
26335 { (exit 1); exit 1; }; }
26337 if test x"${version}" != x"$PACKAGE_VERSION"; then
26338 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
26339 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
26342 ### Specify what sort of things we'll be editing into Makefile and config.h.
26343 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26346 ## Unused?
26368 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
26369 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
26370 ## end of LIBX_BASE, but nothing ever set it.
26375 ## Used in lwlib/Makefile.in.
26388 cat >>confdefs.h <<_ACEOF
26389 #define EMACS_CONFIGURATION "${canonical}"
26390 _ACEOF
26393 cat >>confdefs.h <<_ACEOF
26394 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26395 _ACEOF
26398 cat >>confdefs.h <<_ACEOF
26399 #define config_machfile "${machfile}"
26400 _ACEOF
26403 cat >>confdefs.h <<_ACEOF
26404 #define config_opsysfile "${opsysfile}"
26405 _ACEOF
26408 XMENU_OBJ=
26409 XOBJ=
26410 FONT_OBJ=
26411 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26413 cat >>confdefs.h <<\_ACEOF
26414 #define HAVE_X_WINDOWS 1
26415 _ACEOF
26417 XMENU_OBJ=xmenu.o
26418 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26419 FONT_OBJ=xfont.o
26420 if test "$HAVE_XFT" = "yes"; then
26421 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
26422 elif test "$HAVE_FREETYPE" = "yes"; then
26423 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
26431 WIDGET_OBJ=
26432 MOTIF_LIBW=
26433 if test "${USE_X_TOOLKIT}" != "none" ; then
26434 WIDGET_OBJ=widget.o
26436 cat >>confdefs.h <<\_ACEOF
26437 #define USE_X_TOOLKIT 1
26438 _ACEOF
26440 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26442 cat >>confdefs.h <<\_ACEOF
26443 #define USE_LUCID 1
26444 _ACEOF
26446 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26448 cat >>confdefs.h <<\_ACEOF
26449 #define USE_MOTIF 1
26450 _ACEOF
26452 MOTIF_LIBW=-lXm
26453 case "$opsys" in
26454 gnu-linux)
26455 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26456 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26459 unixware)
26460 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26461 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26462 MOTIF_LIBW="MOTIF_LIBW -lXimp"
26465 aix4-2)
26466 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26467 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26469 esac
26470 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26475 TOOLKIT_LIBW=
26476 case "$USE_X_TOOLKIT" in
26477 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26478 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26479 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26480 esac
26483 if test "$USE_X_TOOLKIT" = "none"; then
26484 LIBXT_OTHER="\$(LIBXSM)"
26485 OLDXMENU_TARGET="really-oldXMenu"
26486 else
26487 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26488 OLDXMENU_TARGET="really-lwlib"
26492 ## The X Menu stuff is present in the X10 distribution, but missing
26493 ## from X11. If we have X10, just use the installed library;
26494 ## otherwise, use our own copy.
26495 if test "${HAVE_X11}" = "yes" ; then
26497 cat >>confdefs.h <<\_ACEOF
26498 #define HAVE_X11 1
26499 _ACEOF
26502 if test "$USE_X_TOOLKIT" = "none"; then
26503 OLDXMENU="\${oldXMenudir}libXMenu11.a"
26504 else
26505 OLDXMENU="\${lwlibdir}liblw.a"
26507 LIBXMENU="\$(OLDXMENU)"
26508 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
26509 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
26510 else
26511 ## For a syntactically valid Makefile; not actually used for anything.
26512 ## See comments in src/Makefile.in.
26513 OLDXMENU=nothing
26514 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
26515 if test "${HAVE_X_WINDOWS}" = "yes"; then
26516 LIBXMENU="-lXMenu"
26517 else
26518 LIBXMENU=
26520 LIBX_OTHER=
26521 OLDXMENU_DEPS=
26524 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
26525 OLDXMENU_TARGET=
26526 OLDXMENU=nothing
26527 LIBXMENU=
26528 OLDXMENU_DEPS=
26537 if test "${HAVE_MENUS}" = "yes" ; then
26539 cat >>confdefs.h <<\_ACEOF
26540 #define HAVE_MENUS 1
26541 _ACEOF
26545 if test "${GNU_MALLOC}" = "yes" ; then
26547 cat >>confdefs.h <<\_ACEOF
26548 #define GNU_MALLOC 1
26549 _ACEOF
26553 RALLOC_OBJ=
26554 if test "${REL_ALLOC}" = "yes" ; then
26556 cat >>confdefs.h <<\_ACEOF
26557 #define REL_ALLOC 1
26558 _ACEOF
26561 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
26565 if test "$opsys" = "cygwin"; then
26566 CYGWIN_OBJ="sheap.o"
26567 ## Cygwin differs because of its unexec().
26568 PRE_ALLOC_OBJ=
26569 POST_ALLOC_OBJ=lastfile.o
26570 else
26571 CYGWIN_OBJ=
26572 PRE_ALLOC_OBJ=lastfile.o
26573 POST_ALLOC_OBJ=
26580 case "$opsys" in
26581 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26583 darwin)
26584 ## The -headerpad option tells ld (see man page) to leave room at the
26585 ## end of the header for adding load commands. Needed for dumping.
26586 ## 0x690 is the total size of 30 segment load commands (at 56
26587 ## each); under Cocoa 31 commands are required.
26588 if test "$HAVE_NS" = "yes"; then
26589 libs_nsgui="-framework AppKit"
26590 headerpad_extra=6C8
26591 else
26592 libs_nsgui=
26593 headerpad_extra=690
26595 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26597 ## This is here because src/Makefile.in did some extra fiddling around
26598 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26599 ## #ifndef LD_SWITCH_SYSTEM
26600 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26601 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26602 ## not using gcc, darwin system not on an alpha (ie darwin, since
26603 ## darwin + alpha does not occur).
26604 ## Because this was done in src/Makefile.in, the resulting part of
26605 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
26606 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
26607 ## rather than LD_SWITCH_SYSTEM.
26608 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26609 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
26612 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
26613 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
26614 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
26615 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
26616 ## had different values in configure (in ac_link) and src/Makefile.in.
26617 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
26618 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
26620 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26621 esac
26623 if test "$NS_IMPL_GNUSTEP" = "yes"; then
26624 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
26630 LINKER=
26631 ORDINARY_LINK=
26632 case "$opsys" in
26633 ## gnu: GNU needs its own crt0.
26634 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
26636 cygwin) LINKER="\$(CC)" ;;
26638 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
26639 ## library search parth, i.e. it won't search /usr/lib for libc and
26640 ## friends. Using -nostartfiles instead avoids this problem, and
26641 ## will also work on earlier NetBSD releases.
26642 netbsd|openbsd) LINKER="\$(CC) -nostartfiles" ;;
26644 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
26645 ## MkLinux/LinuxPPC needs this.
26646 ## ibms390x only supports opsys = gnu-linux so it can be added here.
26647 gnu-*)
26648 case "$machine" in
26649 macppc|ibms390x) LINKER="\$(CC) -nostdlib" ;;
26650 esac
26652 esac
26655 PRE_EDIT_LDFLAGS=
26656 POST_EDIT_LDFLAGS=
26657 if test "x$ORDINARY_LINK" = "xyes"; then
26659 LINKER="\$(CC)"
26661 cat >>confdefs.h <<\_ACEOF
26662 #define ORDINARY_LINK 1
26663 _ACEOF
26666 ## The system files defining neither ORDINARY_LINK nor LINKER are:
26667 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
26668 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
26670 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
26671 ## places that are difficult to figure out at make time. Fortunately,
26672 ## these same versions allow you to pass arbitrary flags on to the
26673 ## linker, so there is no reason not to use it as a linker.
26675 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
26676 ## searching for libraries in its internal directories, so we have to
26677 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
26678 LINKER="\$(CC) -nostdlib"
26679 ## GCC passes any argument prefixed with -Xlinker directly to the linker.
26680 ## See prefix-args.c for an explanation of why we do not do this with the
26681 ## shell''s ``for'' construct. Note that sane people do not have '.' in
26682 ## their paths, so we must use ./prefix-args.
26683 ## TODO either make prefix-args check ORDINARY_LINK internally,
26684 ## or remove it altogether (bug#6184), removing the need for this hack.
26685 PRE_EDIT_LDFLAGS='`./prefix-args -Xlinker'
26686 POST_EDIT_LDFLAGS='`'
26691 test "x$LINKER" = "x" && LINKER=ld
26692 ## FIXME? What setting of EDIT_LDFLAGS should this have?
26693 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic"
26698 ## FIXME? The logic here is not precisely the same as that above.
26699 ## There is no check here for a pre-defined LINKER.
26700 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
26701 LIB_GCC=
26702 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26704 case "$opsys" in
26705 ## cygwin: don't link against static libgcc.
26706 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
26708 gnu-*)
26709 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26710 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26711 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26712 if test "$machine" = "arm"; then
26713 LIB_GCC="-lgcc_s"
26714 else
26715 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26716 ## immediately undefine it again and redefine it to empty.
26717 ## Was the C_SWITCH_X_SITE part really necessary?
26718 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26719 LIB_GCC=
26723 ## Ask GCC where to find libgcc.a.
26724 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26725 esac
26729 TOOLTIP_SUPPORT=
26730 WINDOW_SUPPORT=
26731 ## If we're using X11/GNUstep, define some consequences.
26732 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
26734 cat >>confdefs.h <<\_ACEOF
26735 #define HAVE_WINDOW_SYSTEM 1
26736 _ACEOF
26739 cat >>confdefs.h <<\_ACEOF
26740 #define HAVE_MOUSE 1
26741 _ACEOF
26743 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
26744 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
26746 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
26747 test "$HAVE_X_WINDOWS" = "yes" && \
26748 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
26760 #### Report on what we decided to do.
26761 #### Report GTK as a toolkit, even if it doesn't use Xt.
26762 #### It makes printing result more understandable as using GTK sets
26763 #### toolkit_scroll_bars to yes by default.
26764 if test "${HAVE_GTK}" = "yes"; then
26765 USE_X_TOOLKIT=GTK
26768 echo "
26769 Configured for \`${canonical}'.
26771 Where should the build process find the source code? ${srcdir}
26772 What operating system and machine description files should Emacs use?
26773 \`${opsysfile}' and \`${machfile}'
26774 What compiler should emacs be built with? ${CC} ${CFLAGS}
26775 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26776 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26777 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26778 What window system should Emacs use? ${window_system}
26779 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26781 if test -n "${x_includes}"; then
26782 echo " Where do we find X Windows header files? ${x_includes}"
26783 else
26784 echo " Where do we find X Windows header files? Standard dirs"
26786 if test -n "${x_libraries}"; then
26787 echo " Where do we find X Windows libraries? ${x_libraries}"
26788 else
26789 echo " Where do we find X Windows libraries? Standard dirs"
26792 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26793 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26794 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26795 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26796 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26797 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26798 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26799 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26800 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26801 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26802 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26804 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26805 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26806 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26807 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26809 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26810 echo
26812 if test $USE_XASSERTS = yes; then
26813 echo " Compiling with asserts turned on."
26814 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26817 echo
26819 if test "$HAVE_NS" = "yes"; then
26820 echo
26821 echo "You must run \"make install\" in order to test the built application.
26822 The installed application will go to nextstep/Emacs.app and can be
26823 run or moved from there."
26824 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26825 echo "The application will be fully self-contained."
26826 else
26827 echo "The lisp resources for the application will be installed under ${prefix}.
26828 You may need to run \"make install\" with sudo. The application will fail
26829 to run if these resources are not installed."
26831 echo
26834 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26835 echo "D-Bus integration has been tested for GNU/Linux only."
26836 echo
26840 # Remove any trailing slashes in these variables.
26841 test "${prefix}" != NONE &&
26842 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26843 test "${exec_prefix}" != NONE &&
26844 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26846 ac_config_files="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
26848 ac_config_commands="$ac_config_commands default"
26850 cat >confcache <<\_ACEOF
26851 # This file is a shell script that caches the results of configure
26852 # tests run on this system so they can be shared between configure
26853 # scripts and configure runs, see configure's option --config-cache.
26854 # It is not useful on other systems. If it contains results you don't
26855 # want to keep, you may remove or edit it.
26857 # config.status only pays attention to the cache file if you give it
26858 # the --recheck option to rerun configure.
26860 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26861 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26862 # following values.
26864 _ACEOF
26866 # The following way of writing the cache mishandles newlines in values,
26867 # but we know of no workaround that is simple, portable, and efficient.
26868 # So, we kill variables containing newlines.
26869 # Ultrix sh set writes to stderr and can't be redirected directly,
26870 # and sets the high bit in the cache file unless we assign to the vars.
26872 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26873 eval ac_val=\$$ac_var
26874 case $ac_val in #(
26875 *${as_nl}*)
26876 case $ac_var in #(
26877 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26878 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26879 esac
26880 case $ac_var in #(
26881 _ | IFS | as_nl) ;; #(
26882 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26883 *) $as_unset $ac_var ;;
26884 esac ;;
26885 esac
26886 done
26888 (set) 2>&1 |
26889 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26890 *${as_nl}ac_space=\ *)
26891 # `set' does not quote correctly, so add quotes (double-quote
26892 # substitution turns \\\\ into \\, and sed turns \\ into \).
26893 sed -n \
26894 "s/'/'\\\\''/g;
26895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26896 ;; #(
26898 # `set' quotes correctly as required by POSIX, so do not add quotes.
26899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26901 esac |
26902 sort
26904 sed '
26905 /^ac_cv_env_/b end
26906 t clear
26907 :clear
26908 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26909 t end
26910 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26911 :end' >>confcache
26912 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26913 if test -w "$cache_file"; then
26914 test "x$cache_file" != "x/dev/null" &&
26915 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26916 $as_echo "$as_me: updating cache $cache_file" >&6;}
26917 cat confcache >$cache_file
26918 else
26919 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26920 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26923 rm -f confcache
26925 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26926 # Let make expand exec_prefix.
26927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26929 DEFS=-DHAVE_CONFIG_H
26931 ac_libobjs=
26932 ac_ltlibobjs=
26933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26934 # 1. Remove the extension, and $U if already installed.
26935 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26936 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26937 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26938 # will be set to the directory where LIBOBJS objects are built.
26939 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26940 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26941 done
26942 LIBOBJS=$ac_libobjs
26944 LTLIBOBJS=$ac_ltlibobjs
26948 : ${CONFIG_STATUS=./config.status}
26949 ac_write_fail=0
26950 ac_clean_files_save=$ac_clean_files
26951 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26952 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26953 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26954 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26955 #! $SHELL
26956 # Generated by $as_me.
26957 # Run this file to recreate the current configuration.
26958 # Compiler output produced by configure, useful for debugging
26959 # configure, is in config.log if it exists.
26961 debug=false
26962 ac_cs_recheck=false
26963 ac_cs_silent=false
26964 SHELL=\${CONFIG_SHELL-$SHELL}
26965 _ACEOF
26967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26968 ## --------------------- ##
26969 ## M4sh Initialization. ##
26970 ## --------------------- ##
26972 # Be more Bourne compatible
26973 DUALCASE=1; export DUALCASE # for MKS sh
26974 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26975 emulate sh
26976 NULLCMD=:
26977 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26978 # is contrary to our usage. Disable this feature.
26979 alias -g '${1+"$@"}'='"$@"'
26980 setopt NO_GLOB_SUBST
26981 else
26982 case `(set -o) 2>/dev/null` in
26983 *posix*) set -o posix ;;
26984 esac
26991 # PATH needs CR
26992 # Avoid depending upon Character Ranges.
26993 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26994 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26995 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26996 as_cr_digits='0123456789'
26997 as_cr_alnum=$as_cr_Letters$as_cr_digits
26999 as_nl='
27001 export as_nl
27002 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27003 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27004 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27005 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27006 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27007 as_echo='printf %s\n'
27008 as_echo_n='printf %s'
27009 else
27010 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27011 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27012 as_echo_n='/usr/ucb/echo -n'
27013 else
27014 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27015 as_echo_n_body='eval
27016 arg=$1;
27017 case $arg in
27018 *"$as_nl"*)
27019 expr "X$arg" : "X\\(.*\\)$as_nl";
27020 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27021 esac;
27022 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27024 export as_echo_n_body
27025 as_echo_n='sh -c $as_echo_n_body as_echo'
27027 export as_echo_body
27028 as_echo='sh -c $as_echo_body as_echo'
27031 # The user is always right.
27032 if test "${PATH_SEPARATOR+set}" != set; then
27033 PATH_SEPARATOR=:
27034 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27035 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27036 PATH_SEPARATOR=';'
27040 # Support unset when possible.
27041 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27042 as_unset=unset
27043 else
27044 as_unset=false
27048 # IFS
27049 # We need space, tab and new line, in precisely that order. Quoting is
27050 # there to prevent editors from complaining about space-tab.
27051 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27052 # splitting by setting IFS to empty value.)
27053 IFS=" "" $as_nl"
27055 # Find who we are. Look in the path if we contain no directory separator.
27056 case $0 in
27057 *[\\/]* ) as_myself=$0 ;;
27058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27059 for as_dir in $PATH
27061 IFS=$as_save_IFS
27062 test -z "$as_dir" && as_dir=.
27063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27064 done
27065 IFS=$as_save_IFS
27068 esac
27069 # We did not find ourselves, most probably we were run as `sh COMMAND'
27070 # in which case we are not to be found in the path.
27071 if test "x$as_myself" = x; then
27072 as_myself=$0
27074 if test ! -f "$as_myself"; then
27075 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27076 { (exit 1); exit 1; }
27079 # Work around bugs in pre-3.0 UWIN ksh.
27080 for as_var in ENV MAIL MAILPATH
27081 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27082 done
27083 PS1='$ '
27084 PS2='> '
27085 PS4='+ '
27087 # NLS nuisances.
27088 LC_ALL=C
27089 export LC_ALL
27090 LANGUAGE=C
27091 export LANGUAGE
27093 # Required to use basename.
27094 if expr a : '\(a\)' >/dev/null 2>&1 &&
27095 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27096 as_expr=expr
27097 else
27098 as_expr=false
27101 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27102 as_basename=basename
27103 else
27104 as_basename=false
27108 # Name of the executable.
27109 as_me=`$as_basename -- "$0" ||
27110 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27111 X"$0" : 'X\(//\)$' \| \
27112 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27113 $as_echo X/"$0" |
27114 sed '/^.*\/\([^/][^/]*\)\/*$/{
27115 s//\1/
27118 /^X\/\(\/\/\)$/{
27119 s//\1/
27122 /^X\/\(\/\).*/{
27123 s//\1/
27126 s/.*/./; q'`
27128 # CDPATH.
27129 $as_unset CDPATH
27133 as_lineno_1=$LINENO
27134 as_lineno_2=$LINENO
27135 test "x$as_lineno_1" != "x$as_lineno_2" &&
27136 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27138 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27139 # uniformly replaced by the line number. The first 'sed' inserts a
27140 # line-number line after each line using $LINENO; the second 'sed'
27141 # does the real work. The second script uses 'N' to pair each
27142 # line-number line with the line containing $LINENO, and appends
27143 # trailing '-' during substitution so that $LINENO is not a special
27144 # case at line end.
27145 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27146 # scripts with optimization help from Paolo Bonzini. Blame Lee
27147 # E. McMahon (1931-1989) for sed's syntax. :-)
27148 sed -n '
27150 /[$]LINENO/=
27151 ' <$as_myself |
27152 sed '
27153 s/[$]LINENO.*/&-/
27154 t lineno
27156 :lineno
27158 :loop
27159 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27160 t loop
27161 s/-\n.*//
27162 ' >$as_me.lineno &&
27163 chmod +x "$as_me.lineno" ||
27164 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27165 { (exit 1); exit 1; }; }
27167 # Don't try to exec as it changes $[0], causing all sort of problems
27168 # (the dirname of $[0] is not the place where we might find the
27169 # original and so on. Autoconf is especially sensitive to this).
27170 . "./$as_me.lineno"
27171 # Exit status is that of the last command.
27172 exit
27176 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27177 as_dirname=dirname
27178 else
27179 as_dirname=false
27182 ECHO_C= ECHO_N= ECHO_T=
27183 case `echo -n x` in
27184 -n*)
27185 case `echo 'x\c'` in
27186 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27187 *) ECHO_C='\c';;
27188 esac;;
27190 ECHO_N='-n';;
27191 esac
27192 if expr a : '\(a\)' >/dev/null 2>&1 &&
27193 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27194 as_expr=expr
27195 else
27196 as_expr=false
27199 rm -f conf$$ conf$$.exe conf$$.file
27200 if test -d conf$$.dir; then
27201 rm -f conf$$.dir/conf$$.file
27202 else
27203 rm -f conf$$.dir
27204 mkdir conf$$.dir 2>/dev/null
27206 if (echo >conf$$.file) 2>/dev/null; then
27207 if ln -s conf$$.file conf$$ 2>/dev/null; then
27208 as_ln_s='ln -s'
27209 # ... but there are two gotchas:
27210 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27211 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27212 # In both cases, we have to default to `cp -p'.
27213 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27214 as_ln_s='cp -p'
27215 elif ln conf$$.file conf$$ 2>/dev/null; then
27216 as_ln_s=ln
27217 else
27218 as_ln_s='cp -p'
27220 else
27221 as_ln_s='cp -p'
27223 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27224 rmdir conf$$.dir 2>/dev/null
27226 if mkdir -p . 2>/dev/null; then
27227 as_mkdir_p=:
27228 else
27229 test -d ./-p && rmdir ./-p
27230 as_mkdir_p=false
27233 if test -x / >/dev/null 2>&1; then
27234 as_test_x='test -x'
27235 else
27236 if ls -dL / >/dev/null 2>&1; then
27237 as_ls_L_option=L
27238 else
27239 as_ls_L_option=
27241 as_test_x='
27242 eval sh -c '\''
27243 if test -d "$1"; then
27244 test -d "$1/.";
27245 else
27246 case $1 in
27247 -*)set "./$1";;
27248 esac;
27249 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27250 ???[sx]*):;;*)false;;esac;fi
27251 '\'' sh
27254 as_executable_p=$as_test_x
27256 # Sed expression to map a string onto a valid CPP name.
27257 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27259 # Sed expression to map a string onto a valid variable name.
27260 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27263 exec 6>&1
27265 # Save the log message, to keep $[0] and so on meaningful, and to
27266 # report actual input values of CONFIG_FILES etc. instead of their
27267 # values after options handling.
27268 ac_log="
27269 This file was extended by emacs $as_me 24.0.50, which was
27270 generated by GNU Autoconf 2.62. Invocation command line was
27272 CONFIG_FILES = $CONFIG_FILES
27273 CONFIG_HEADERS = $CONFIG_HEADERS
27274 CONFIG_LINKS = $CONFIG_LINKS
27275 CONFIG_COMMANDS = $CONFIG_COMMANDS
27276 $ $0 $@
27278 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27281 _ACEOF
27283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27284 # Files that config.status was made for.
27285 config_files="$ac_config_files"
27286 config_headers="$ac_config_headers"
27287 config_commands="$ac_config_commands"
27289 _ACEOF
27291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27292 ac_cs_usage="\
27293 \`$as_me' instantiates files from templates according to the
27294 current configuration.
27296 Usage: $0 [OPTIONS] [FILE]...
27298 -h, --help print this help, then exit
27299 -V, --version print version number and configuration settings, then exit
27300 -q, --quiet do not print progress messages
27301 -d, --debug don't remove temporary files
27302 --recheck update $as_me by reconfiguring in the same conditions
27303 --file=FILE[:TEMPLATE]
27304 instantiate the configuration file FILE
27305 --header=FILE[:TEMPLATE]
27306 instantiate the configuration header FILE
27308 Configuration files:
27309 $config_files
27311 Configuration headers:
27312 $config_headers
27314 Configuration commands:
27315 $config_commands
27317 Report bugs to <bug-autoconf@gnu.org>."
27319 _ACEOF
27320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27321 ac_cs_version="\\
27322 emacs config.status 24.0.50
27323 configured by $0, generated by GNU Autoconf 2.62,
27324 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27326 Copyright (C) 2008 Free Software Foundation, Inc.
27327 This config.status script is free software; the Free Software Foundation
27328 gives unlimited permission to copy, distribute and modify it."
27330 ac_pwd='$ac_pwd'
27331 srcdir='$srcdir'
27332 INSTALL='$INSTALL'
27333 test -n "\$AWK" || AWK=awk
27334 _ACEOF
27336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27337 # The default lists apply if the user does not specify any file.
27338 ac_need_defaults=:
27339 while test $# != 0
27341 case $1 in
27342 --*=*)
27343 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27344 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27345 ac_shift=:
27348 ac_option=$1
27349 ac_optarg=$2
27350 ac_shift=shift
27352 esac
27354 case $ac_option in
27355 # Handling of the options.
27356 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27357 ac_cs_recheck=: ;;
27358 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27359 $as_echo "$ac_cs_version"; exit ;;
27360 --debug | --debu | --deb | --de | --d | -d )
27361 debug=: ;;
27362 --file | --fil | --fi | --f )
27363 $ac_shift
27364 case $ac_optarg in
27365 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27366 esac
27367 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
27368 ac_need_defaults=false;;
27369 --header | --heade | --head | --hea )
27370 $ac_shift
27371 case $ac_optarg in
27372 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27373 esac
27374 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
27375 ac_need_defaults=false;;
27376 --he | --h)
27377 # Conflict between --help and --header
27378 { $as_echo "$as_me: error: ambiguous option: $1
27379 Try \`$0 --help' for more information." >&2
27380 { (exit 1); exit 1; }; };;
27381 --help | --hel | -h )
27382 $as_echo "$ac_cs_usage"; exit ;;
27383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27384 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27385 ac_cs_silent=: ;;
27387 # This is an error.
27388 -*) { $as_echo "$as_me: error: unrecognized option: $1
27389 Try \`$0 --help' for more information." >&2
27390 { (exit 1); exit 1; }; } ;;
27392 *) ac_config_targets="$ac_config_targets $1"
27393 ac_need_defaults=false ;;
27395 esac
27396 shift
27397 done
27399 ac_configure_extra_args=
27401 if $ac_cs_silent; then
27402 exec 6>/dev/null
27403 ac_configure_extra_args="$ac_configure_extra_args --silent"
27406 _ACEOF
27407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27408 if \$ac_cs_recheck; then
27409 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27410 shift
27411 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27412 CONFIG_SHELL='$SHELL'
27413 export CONFIG_SHELL
27414 exec "\$@"
27417 _ACEOF
27418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27419 exec 5>>config.log
27421 echo
27422 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27423 ## Running $as_me. ##
27424 _ASBOX
27425 $as_echo "$ac_log"
27426 } >&5
27428 _ACEOF
27429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27431 # INIT-COMMANDS
27433 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
27435 _ACEOF
27437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27439 # Handling of arguments.
27440 for ac_config_target in $ac_config_targets
27442 case $ac_config_target in
27443 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27444 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27445 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27446 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27447 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27448 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27449 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27450 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27451 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27452 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27453 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27454 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27455 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27457 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27458 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27459 { (exit 1); exit 1; }; };;
27460 esac
27461 done
27464 # If the user did not use the arguments to specify the items to instantiate,
27465 # then the envvar interface is used. Set only those that are not.
27466 # We use the long form for the default assignment because of an extremely
27467 # bizarre bug on SunOS 4.1.3.
27468 if $ac_need_defaults; then
27469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27471 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27474 # Have a temporary directory for convenience. Make it in the build tree
27475 # simply because there is no reason against having it here, and in addition,
27476 # creating and moving files from /tmp can sometimes cause problems.
27477 # Hook for its removal unless debugging.
27478 # Note that there is a small window in which the directory will not be cleaned:
27479 # after its creation but before its name has been assigned to `$tmp'.
27480 $debug ||
27482 tmp=
27483 trap 'exit_status=$?
27484 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27486 trap '{ (exit 1); exit 1; }' 1 2 13 15
27488 # Create a (secure) tmp directory for tmp files.
27491 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27492 test -n "$tmp" && test -d "$tmp"
27493 } ||
27495 tmp=./conf$$-$RANDOM
27496 (umask 077 && mkdir "$tmp")
27497 } ||
27499 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27500 { (exit 1); exit 1; }
27503 # Set up the scripts for CONFIG_FILES section.
27504 # No need to generate them if there are no CONFIG_FILES.
27505 # This happens for instance with `./config.status config.h'.
27506 if test -n "$CONFIG_FILES"; then
27508 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27509 ac_cs_awk_getline=:
27510 ac_cs_awk_pipe_init=
27511 ac_cs_awk_read_file='
27512 while ((getline aline < (F[key])) > 0)
27513 print(aline)
27514 close(F[key])'
27515 ac_cs_awk_pipe_fini=
27516 else
27517 ac_cs_awk_getline=false
27518 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27519 ac_cs_awk_read_file='
27520 print "|#_!!_#|"
27521 print "cat " F[key] " &&"
27522 '$ac_cs_awk_pipe_init
27523 # The final `:' finishes the AND list.
27524 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27526 ac_cr=' '
27527 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27528 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27529 ac_cs_awk_cr='\\r'
27530 else
27531 ac_cs_awk_cr=$ac_cr
27534 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27535 _ACEOF
27537 # Create commands to substitute file output variables.
27539 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27540 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27541 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27542 echo "_ACAWK" &&
27543 echo "_ACEOF"
27544 } >conf$$files.sh &&
27545 . ./conf$$files.sh ||
27546 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27547 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27548 { (exit 1); exit 1; }; }
27549 rm -f conf$$files.sh
27552 echo "cat >conf$$subs.awk <<_ACEOF" &&
27553 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27554 echo "_ACEOF"
27555 } >conf$$subs.sh ||
27556 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27557 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27558 { (exit 1); exit 1; }; }
27559 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27560 ac_delim='%!_!# '
27561 for ac_last_try in false false false false false :; do
27562 . ./conf$$subs.sh ||
27563 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27564 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27565 { (exit 1); exit 1; }; }
27567 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27568 break
27569 elif $ac_last_try; then
27570 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27571 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27572 { (exit 1); exit 1; }; }
27573 else
27574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27576 done
27577 rm -f conf$$subs.sh
27579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27580 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27581 _ACEOF
27582 sed -n '
27584 s/^/S["/; s/!.*/"]=/
27587 s/^[^!]*!//
27588 :repl
27589 t repl
27590 s/'"$ac_delim"'$//
27591 t delim
27594 s/\(.\{148\}\).*/\1/
27595 t more1
27596 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27599 b repl
27600 :more1
27601 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27604 s/.\{148\}//
27605 t nl
27606 :delim
27608 s/\(.\{148\}\).*/\1/
27609 t more2
27610 s/["\\]/\\&/g; s/^/"/; s/$/"/
27613 :more2
27614 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27617 s/.\{148\}//
27618 t delim
27619 ' <conf$$subs.awk | sed '
27620 /^[^""]/{
27622 s/\n//
27624 ' >>$CONFIG_STATUS || ac_write_fail=1
27625 rm -f conf$$subs.awk
27626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27627 _ACAWK
27628 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27629 for (key in S) S_is_set[key] = 1
27630 FS = "\a"
27631 \$ac_cs_awk_pipe_init
27634 line = $ 0
27635 nfields = split(line, field, "@")
27636 substed = 0
27637 len = length(field[1])
27638 for (i = 2; i < nfields; i++) {
27639 key = field[i]
27640 keylen = length(key)
27641 if (S_is_set[key]) {
27642 value = S[key]
27643 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27644 len += length(value) + length(field[++i])
27645 substed = 1
27646 } else
27647 len += 1 + keylen
27649 if (nfields == 3 && !substed) {
27650 key = field[2]
27651 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27652 \$ac_cs_awk_read_file
27653 next
27656 print line
27658 \$ac_cs_awk_pipe_fini
27659 _ACAWK
27660 _ACEOF
27661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27662 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27663 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27664 else
27666 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27667 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27668 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27669 { (exit 1); exit 1; }; }
27670 _ACEOF
27672 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27673 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27674 # trailing colons and then remove the whole line if VPATH becomes empty
27675 # (actually we leave an empty line to preserve line numbers).
27676 if test "x$srcdir" = x.; then
27677 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27678 s/:*\$(srcdir):*/:/
27679 s/:*\${srcdir}:*/:/
27680 s/:*@srcdir@:*/:/
27681 s/^\([^=]*=[ ]*\):*/\1/
27682 s/:*$//
27683 s/^[^=]*=[ ]*$//
27687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27688 fi # test -n "$CONFIG_FILES"
27690 # Set up the scripts for CONFIG_HEADERS section.
27691 # No need to generate them if there are no CONFIG_HEADERS.
27692 # This happens for instance with `./config.status Makefile'.
27693 if test -n "$CONFIG_HEADERS"; then
27694 cat >"$tmp/defines.awk" <<\_ACAWK ||
27695 BEGIN {
27696 _ACEOF
27698 # Transform confdefs.h into an awk script `defines.awk', embedded as
27699 # here-document in config.status, that substitutes the proper values into
27700 # config.h.in to produce config.h.
27702 # Create a delimiter string that does not exist in confdefs.h, to ease
27703 # handling of long lines.
27704 ac_delim='%!_!# '
27705 for ac_last_try in false false :; do
27706 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27707 if test -z "$ac_t"; then
27708 break
27709 elif $ac_last_try; then
27710 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27711 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27712 { (exit 1); exit 1; }; }
27713 else
27714 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27716 done
27718 # For the awk script, D is an array of macro values keyed by name,
27719 # likewise P contains macro parameters if any. Preserve backslash
27720 # newline sequences.
27722 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27723 sed -n '
27724 s/.\{148\}/&'"$ac_delim"'/g
27725 t rset
27726 :rset
27727 s/^[ ]*#[ ]*define[ ][ ]*/ /
27728 t def
27730 :def
27731 s/\\$//
27732 t bsnl
27733 s/["\\]/\\&/g
27734 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27735 D["\1"]=" \3"/p
27736 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27738 :bsnl
27739 s/["\\]/\\&/g
27740 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27741 D["\1"]=" \3\\\\\\n"\\/p
27742 t cont
27743 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27744 t cont
27746 :cont
27748 s/.\{148\}/&'"$ac_delim"'/g
27749 t clear
27750 :clear
27751 s/\\$//
27752 t bsnlc
27753 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27755 :bsnlc
27756 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27757 b cont
27758 ' <confdefs.h | sed '
27759 s/'"$ac_delim"'/"\\\
27760 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27763 for (key in D) D_is_set[key] = 1
27764 FS = "\a"
27766 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27767 line = \$ 0
27768 split(line, arg, " ")
27769 if (arg[1] == "#") {
27770 defundef = arg[2]
27771 mac1 = arg[3]
27772 } else {
27773 defundef = substr(arg[1], 2)
27774 mac1 = arg[2]
27776 split(mac1, mac2, "(") #)
27777 macro = mac2[1]
27778 if (D_is_set[macro]) {
27779 # Preserve the white space surrounding the "#".
27780 prefix = substr(line, 1, index(line, defundef) - 1)
27781 print prefix "define", macro P[macro] D[macro]
27782 next
27783 } else {
27784 # Replace #undef with comments. This is necessary, for example,
27785 # in the case of _POSIX_SOURCE, which is predefined and required
27786 # on some systems where configure will not decide to define it.
27787 if (defundef == "undef") {
27788 print "/*", line, "*/"
27789 next
27793 { print }
27794 _ACAWK
27795 _ACEOF
27796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27797 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27798 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27799 { (exit 1); exit 1; }; }
27800 fi # test -n "$CONFIG_HEADERS"
27803 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27804 shift
27805 for ac_tag
27807 case $ac_tag in
27808 :[FHLC]) ac_mode=$ac_tag; continue;;
27809 esac
27810 case $ac_mode$ac_tag in
27811 :[FHL]*:*);;
27812 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27813 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27814 { (exit 1); exit 1; }; };;
27815 :[FH]-) ac_tag=-:-;;
27816 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27817 esac
27818 ac_save_IFS=$IFS
27819 IFS=:
27820 set x $ac_tag
27821 IFS=$ac_save_IFS
27822 shift
27823 ac_file=$1
27824 shift
27826 case $ac_mode in
27827 :L) ac_source=$1;;
27828 :[FH])
27829 ac_file_inputs=
27830 for ac_f
27832 case $ac_f in
27833 -) ac_f="$tmp/stdin";;
27834 *) # Look for the file first in the build tree, then in the source tree
27835 # (if the path is not absolute). The absolute path cannot be DOS-style,
27836 # because $ac_f cannot contain `:'.
27837 test -f "$ac_f" ||
27838 case $ac_f in
27839 [\\/$]*) false;;
27840 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27841 esac ||
27842 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27843 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27844 { (exit 1); exit 1; }; };;
27845 esac
27846 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27847 ac_file_inputs="$ac_file_inputs '$ac_f'"
27848 done
27850 # Let's still pretend it is `configure' which instantiates (i.e., don't
27851 # use $as_me), people would be surprised to read:
27852 # /* config.h. Generated by config.status. */
27853 configure_input='Generated from '`
27854 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27855 `' by configure.'
27856 if test x"$ac_file" != x-; then
27857 configure_input="$ac_file. $configure_input"
27858 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27859 $as_echo "$as_me: creating $ac_file" >&6;}
27861 # Neutralize special characters interpreted by sed in replacement strings.
27862 case $configure_input in #(
27863 *\&* | *\|* | *\\* )
27864 ac_sed_conf_input=`$as_echo "$configure_input" |
27865 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27866 *) ac_sed_conf_input=$configure_input;;
27867 esac
27869 case $ac_tag in
27870 *:-:* | *:-) cat >"$tmp/stdin" \
27871 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27872 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27873 { (exit 1); exit 1; }; } ;;
27874 esac
27876 esac
27878 ac_dir=`$as_dirname -- "$ac_file" ||
27879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27880 X"$ac_file" : 'X\(//\)[^/]' \| \
27881 X"$ac_file" : 'X\(//\)$' \| \
27882 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27883 $as_echo X"$ac_file" |
27884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27885 s//\1/
27888 /^X\(\/\/\)[^/].*/{
27889 s//\1/
27892 /^X\(\/\/\)$/{
27893 s//\1/
27896 /^X\(\/\).*/{
27897 s//\1/
27900 s/.*/./; q'`
27901 { as_dir="$ac_dir"
27902 case $as_dir in #(
27903 -*) as_dir=./$as_dir;;
27904 esac
27905 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27906 as_dirs=
27907 while :; do
27908 case $as_dir in #(
27909 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27910 *) as_qdir=$as_dir;;
27911 esac
27912 as_dirs="'$as_qdir' $as_dirs"
27913 as_dir=`$as_dirname -- "$as_dir" ||
27914 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27915 X"$as_dir" : 'X\(//\)[^/]' \| \
27916 X"$as_dir" : 'X\(//\)$' \| \
27917 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27918 $as_echo X"$as_dir" |
27919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27920 s//\1/
27923 /^X\(\/\/\)[^/].*/{
27924 s//\1/
27927 /^X\(\/\/\)$/{
27928 s//\1/
27931 /^X\(\/\).*/{
27932 s//\1/
27935 s/.*/./; q'`
27936 test -d "$as_dir" && break
27937 done
27938 test -z "$as_dirs" || eval "mkdir $as_dirs"
27939 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27940 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27941 { (exit 1); exit 1; }; }; }
27942 ac_builddir=.
27944 case "$ac_dir" in
27945 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27947 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27948 # A ".." for each directory in $ac_dir_suffix.
27949 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27950 case $ac_top_builddir_sub in
27951 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27952 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27953 esac ;;
27954 esac
27955 ac_abs_top_builddir=$ac_pwd
27956 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27957 # for backward compatibility:
27958 ac_top_builddir=$ac_top_build_prefix
27960 case $srcdir in
27961 .) # We are building in place.
27962 ac_srcdir=.
27963 ac_top_srcdir=$ac_top_builddir_sub
27964 ac_abs_top_srcdir=$ac_pwd ;;
27965 [\\/]* | ?:[\\/]* ) # Absolute name.
27966 ac_srcdir=$srcdir$ac_dir_suffix;
27967 ac_top_srcdir=$srcdir
27968 ac_abs_top_srcdir=$srcdir ;;
27969 *) # Relative name.
27970 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27971 ac_top_srcdir=$ac_top_build_prefix$srcdir
27972 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27973 esac
27974 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27977 case $ac_mode in
27980 # CONFIG_FILE
27983 case $INSTALL in
27984 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27985 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27986 esac
27987 _ACEOF
27989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27990 # If the template does not know about datarootdir, expand it.
27991 # FIXME: This hack should be removed a few years after 2.60.
27992 ac_datarootdir_hack=; ac_datarootdir_seen=
27994 ac_sed_dataroot='
27995 /datarootdir/ {
27999 /@datadir@/p
28000 /@docdir@/p
28001 /@infodir@/p
28002 /@localedir@/p
28003 /@mandir@/p
28005 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28006 *datarootdir*) ac_datarootdir_seen=yes;;
28007 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28008 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28009 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28010 _ACEOF
28011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28012 ac_datarootdir_hack='
28013 s&@datadir@&$datadir&g
28014 s&@docdir@&$docdir&g
28015 s&@infodir@&$infodir&g
28016 s&@localedir@&$localedir&g
28017 s&@mandir@&$mandir&g
28018 s&\\\${datarootdir}&$datarootdir&g' ;;
28019 esac
28020 _ACEOF
28022 # Neutralize VPATH when `$srcdir' = `.'.
28023 # Shell code in configure.ac might set extrasub.
28024 # FIXME: do we really want to maintain this feature?
28025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28026 ac_sed_extra="$ac_vpsub
28027 $extrasub
28028 _ACEOF
28029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28032 s|@configure_input@|$ac_sed_conf_input|;t t
28033 s&@top_builddir@&$ac_top_builddir_sub&;t t
28034 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28035 s&@srcdir@&$ac_srcdir&;t t
28036 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28037 s&@top_srcdir@&$ac_top_srcdir&;t t
28038 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28039 s&@builddir@&$ac_builddir&;t t
28040 s&@abs_builddir@&$ac_abs_builddir&;t t
28041 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28042 s&@INSTALL@&$ac_INSTALL&;t t
28043 $ac_datarootdir_hack
28045 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28046 if $ac_cs_awk_getline; then
28047 $AWK -f "$tmp/subs.awk"
28048 else
28049 $AWK -f "$tmp/subs.awk" | $SHELL
28050 fi >$tmp/out \
28051 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28052 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28053 { (exit 1); exit 1; }; }
28055 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28056 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28057 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28058 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28059 which seems to be undefined. Please make sure it is defined." >&5
28060 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28061 which seems to be undefined. Please make sure it is defined." >&2;}
28063 rm -f "$tmp/stdin"
28064 case $ac_file in
28065 -) cat "$tmp/out" && rm -f "$tmp/out";;
28066 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28067 esac \
28068 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28069 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28070 { (exit 1); exit 1; }; }
28074 # CONFIG_HEADER
28076 if test x"$ac_file" != x-; then
28078 $as_echo "/* $configure_input */" \
28079 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28080 } >"$tmp/config.h" \
28081 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28082 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28083 { (exit 1); exit 1; }; }
28084 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28085 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28086 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28087 else
28088 rm -f "$ac_file"
28089 mv "$tmp/config.h" "$ac_file" \
28090 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28091 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28092 { (exit 1); exit 1; }; }
28094 else
28095 $as_echo "/* $configure_input */" \
28096 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28097 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28098 $as_echo "$as_me: error: could not create -" >&2;}
28099 { (exit 1); exit 1; }; }
28103 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
28104 $as_echo "$as_me: executing $ac_file commands" >&6;}
28106 esac
28109 case $ac_file$ac_mode in
28110 "default":C)
28112 ### Make the necessary directories, if they don't exist.
28113 for dir in etc lisp ; do
28114 test -d ${dir} || mkdir ${dir}
28115 done
28117 echo creating src/epaths.h
28118 ${MAKE-make} epaths-force
28120 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
28121 echo creating src/.gdbinit
28122 echo source $srcdir/src/.gdbinit > src/.gdbinit
28127 esac
28128 done # for ac_tag
28131 { (exit 0); exit 0; }
28132 _ACEOF
28133 chmod +x $CONFIG_STATUS
28134 ac_clean_files=$ac_clean_files_save
28136 test $ac_write_fail = 0 ||
28137 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28138 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28139 { (exit 1); exit 1; }; }
28142 # configure is writing to config.log, and then calls config.status.
28143 # config.status does its own redirection, appending to config.log.
28144 # Unfortunately, on DOS this fails, as config.log is still kept open
28145 # by configure, so config.status won't be able to write to it; its
28146 # output is simply discarded. So we exec the FD to /dev/null,
28147 # effectively closing config.log, so it can be properly (re)opened and
28148 # appended to by config.status. When coming back to configure, we
28149 # need to make the FD available again.
28150 if test "$no_create" != yes; then
28151 ac_cs_success=:
28152 ac_config_status_args=
28153 test "$silent" = yes &&
28154 ac_config_status_args="$ac_config_status_args --quiet"
28155 exec 5>/dev/null
28156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28157 exec 5>>config.log
28158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28159 # would make configure fail if this is the last instruction.
28160 $ac_cs_success || { (exit 1); exit 1; }
28162 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28163 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
28164 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}