Merge from emacs-23
[emacs.git] / configure
blob9e3c0fff5fd3b719bccf483894769697838275c0
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 NS_IMPL_GNUSTEP_INC
724 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
725 TEMACS_LDFLAGS2
726 NS_OBJ
727 NS_SUPPORT
728 LIB_STANDARD
729 HAVE_XSERVER
730 GMALLOC_OBJ
731 VMLIMIT_OBJ
732 RSVG_CFLAGS
733 RSVG_LIBS
734 GTK_CFLAGS
735 GTK_LIBS
736 GTK_OBJ
737 DBUS_CFLAGS
738 DBUS_LIBS
739 DBUS_OBJ
740 GCONF_CFLAGS
741 GCONF_LIBS
742 LIBSELINUX_LIBS
743 LIBXTR6
744 LIBXMU
745 FONTCONFIG_CFLAGS
746 FONTCONFIG_LIBS
747 XFT_CFLAGS
748 XFT_LIBS
749 LIBOTF_CFLAGS
750 LIBOTF_LIBS
751 M17N_FLT_CFLAGS
752 M17N_FLT_LIBS
753 FREETYPE_CFLAGS
754 FREETYPE_LIBS
755 LIBXPM
756 LIBJPEG
757 LIBPNG
758 LIBTIFF
759 LIBGIF
760 LIBGPM
761 LIBXSM
762 ALLOCA
763 liblockfile
764 LIBS_MAIL
765 BLESSMAIL_TARGET
766 LIBOBJS
767 NEED_SETGID
768 KMEM_GROUP
769 GETLOADAVG_LIBS
770 GETOPT_H
771 GETOPTOBJS
772 LIBS_TERMCAP
773 TERMCAP_OBJ
774 LIBHESIOD
775 LIBRESOLV
776 COM_ERRLIB
777 CRYPTOLIB
778 KRB5LIB
779 DESLIB
780 KRB4LIB
781 version
782 configuration
783 canonical
784 srcdir
785 lispdir
786 locallisppath
787 lisppath
788 x_default_search_path
789 etcdir
790 archlibdir
791 bitmapdir
792 gamedir
793 gameuser
794 unexec
795 LD_SWITCH_X_SITE
796 C_SWITCH_X_SITE
797 C_SWITCH_X_SYSTEM
798 X_TOOLKIT_TYPE
799 machfile
800 opsysfile
801 ns_appdir
802 ns_appbindir
803 ns_appresdir
804 ns_appsrc
805 GNU_OBJC_CFLAGS
806 OTHER_FILES
807 FONT_OBJ
808 XMENU_OBJ
809 XOBJ
810 WIDGET_OBJ
811 TOOLKIT_LIBW
812 LIBXT_OTHER
813 OLDXMENU_TARGET
814 OLDXMENU
815 LIBXMENU
816 LIBX_OTHER
817 OLDXMENU_DEPS
818 RALLOC_OBJ
819 CYGWIN_OBJ
820 PRE_ALLOC_OBJ
821 POST_ALLOC_OBJ
822 LD_SWITCH_SYSTEM_TEMACS
823 LD_SWITCH_SYSTEM_EXTRA
824 YMF_PASS_LDFLAGS
825 LINKER
826 LIB_GCC
827 MOUSE_SUPPORT
828 TOOLTIP_SUPPORT
829 WINDOW_SUPPORT
830 LTLIBOBJS'
831 ac_subst_files='deps_frag
832 ns_frag'
833 ac_user_opts='
834 enable_option_checking
835 with_pop
836 with_kerberos
837 with_kerberos5
838 with_hesiod
839 with_mmdf
840 with_mail_unlink
841 with_mailhost
842 with_sound
843 with_sync_input
844 with_x_toolkit
845 with_xpm
846 with_jpeg
847 with_tiff
848 with_gif
849 with_png
850 with_rsvg
851 with_xft
852 with_libotf
853 with_m17n_flt
854 with_toolkit_scroll_bars
855 with_xaw3d
856 with_xim
857 with_ns
858 with_gpm
859 with_dbus
860 with_gconf
861 with_selinux
862 with_makeinfo
863 with_pkg_config_prog
864 with_crt_dir
865 with_gnustep_conf
866 enable_ns_self_contained
867 enable_asserts
868 enable_maintainer_mode
869 enable_locallisppath
870 enable_checking
871 enable_profiling
872 enable_autodepend
873 enable_largefile
874 with_x
876 ac_precious_vars='build_alias
877 host_alias
878 target_alias
880 CFLAGS
881 LDFLAGS
882 LIBS
883 CPPFLAGS
885 XMKMF'
888 # Initialize some variables set by options.
889 ac_init_help=
890 ac_init_version=false
891 ac_unrecognized_opts=
892 ac_unrecognized_sep=
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
895 cache_file=/dev/null
896 exec_prefix=NONE
897 no_create=
898 no_recursion=
899 prefix=NONE
900 program_prefix=NONE
901 program_suffix=NONE
902 program_transform_name=s,x,x,
903 silent=
904 site=
905 srcdir=
906 verbose=
907 x_includes=NONE
908 x_libraries=NONE
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir='${exec_prefix}/bin'
917 sbindir='${exec_prefix}/sbin'
918 libexecdir='${exec_prefix}/libexec'
919 datarootdir='${prefix}/share'
920 datadir='${datarootdir}'
921 sysconfdir='${prefix}/etc'
922 sharedstatedir='${prefix}/com'
923 localstatedir='${prefix}/var'
924 includedir='${prefix}/include'
925 oldincludedir='/usr/include'
926 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
927 infodir='${datarootdir}/info'
928 htmldir='${docdir}'
929 dvidir='${docdir}'
930 pdfdir='${docdir}'
931 psdir='${docdir}'
932 libdir='${exec_prefix}/lib'
933 localedir='${datarootdir}/locale'
934 mandir='${datarootdir}/man'
936 ac_prev=
937 ac_dashdash=
938 for ac_option
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\$ac_option
943 ac_prev=
944 continue
947 case $ac_option in
948 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *) ac_optarg=yes ;;
950 esac
952 # Accept the important Cygnus configure options, so we can diagnose typos.
954 case $ac_dashdash$ac_option in
956 ac_dashdash=yes ;;
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961 bindir=$ac_optarg ;;
963 -build | --build | --buil | --bui | --bu)
964 ac_prev=build_alias ;;
965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966 build_alias=$ac_optarg ;;
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973 cache_file=$ac_optarg ;;
975 --config-cache | -C)
976 cache_file=config.cache ;;
978 -datadir | --datadir | --datadi | --datad)
979 ac_prev=datadir ;;
980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
981 datadir=$ac_optarg ;;
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
990 -disable-* | --disable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
995 { (exit 1); exit 1; }; }
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=no ;;
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1017 -enable-* | --enable-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1222 -with-* | --with-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1232 "with_$ac_useropt"
1233 "*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=\$ac_optarg ;;
1239 -without-* | --without-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1244 { (exit 1); exit 1; }; }
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1274 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1275 Try \`$0 --help' for more information." >&2
1276 { (exit 1); exit 1; }; }
1279 *=*)
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1283 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1284 { (exit 1); exit 1; }; }
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1289 # FIXME: should be removed in autoconf 3.0.
1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1296 esac
1297 done
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1302 { (exit 1); exit 1; }; }
1305 if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1307 no) ;;
1308 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1309 { (exit 1); exit 1; }; } ;;
1310 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1311 esac
1314 # Check all directory arguments for consistency.
1315 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316 datadir sysconfdir sharedstatedir localstatedir includedir \
1317 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318 libdir localedir mandir
1320 eval ac_val=\$$ac_var
1321 # Remove trailing slashes.
1322 case $ac_val in
1323 */ )
1324 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325 eval $ac_var=\$ac_val;;
1326 esac
1327 # Be sure to have absolute directory names.
1328 case $ac_val in
1329 [\\/$]* | ?:[\\/]* ) continue;;
1330 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1331 esac
1332 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1333 { (exit 1); exit 1; }; }
1334 done
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1348 If a cross compiler is detected then cross compile mode will be used." >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1350 cross_compiling=yes
1354 ac_tool_prefix=
1355 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357 test "$silent" = yes && exec 6>/dev/null
1360 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di=`ls -di .` &&
1362 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1364 { (exit 1); exit 1; }; }
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1367 { (exit 1); exit 1; }; }
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir=`$as_dirname -- "$as_myself" ||
1375 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379 $as_echo X"$as_myself" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 s//\1/
1384 /^X\(\/\/\)[^/].*/{
1385 s//\1/
1388 /^X\(\/\/\)$/{
1389 s//\1/
1392 /^X\(\/\).*/{
1393 s//\1/
1396 s/.*/./; q'`
1397 srcdir=$ac_confdir
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 srcdir=..
1401 else
1402 ac_srcdir_defaulted=no
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1406 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1407 { (exit 1); exit 1; }; }
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1412 { (exit 1); exit 1; }; }
1413 pwd)`
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 srcdir=.
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1421 case $srcdir in
1422 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423 esac
1424 for ac_var in $ac_precious_vars; do
1425 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_${ac_var}_value=\$${ac_var}
1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429 done
1432 # Report the --help message.
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1437 cat <<_ACEOF
1438 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1445 Defaults for the options are specified in brackets.
1447 Configuration:
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1462 [PREFIX]
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1469 For better control, use the options below.
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1491 _ACEOF
1493 cat <<\_ACEOF
1495 Program names:
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1500 X features:
1501 --x-includes=DIR X include files are in DIR
1502 --x-libraries=DIR X library files are in DIR
1504 System types:
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507 _ACEOF
1510 if test -n "$ac_init_help"; then
1511 case $ac_init_help in
1512 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1513 esac
1514 cat <<\_ACEOF
1516 Optional Features:
1517 --disable-option-checking ignore unrecognized --enable/--with options
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1520 --disable-ns-self-contained
1521 disable self contained build under NeXTstep
1522 --enable-asserts compile code with asserts enabled
1523 --enable-maintainer-mode
1524 enable make rules and dependencies not useful (and
1525 sometimes confusing) to the casual installer
1526 --enable-locallisppath=PATH
1527 directories Emacs should search for lisp files
1528 specific to this site
1529 --enable-checking[=LIST]
1530 enable expensive run-time checks. With LIST, enable
1531 only specific categories of checks. Categories are:
1532 all,yes,no. Flags are: stringbytes, stringoverrun,
1533 stringfreelist, xmallocoverrun, conslist
1534 --enable-profiling build emacs with profiling support. This might not
1535 work on all platforms
1536 --enable-autodepend automatically generate dependencies to .h-files.
1537 Requires GNU Make and Gcc. Enabled if GNU Make and
1538 Gcc is found
1539 --disable-largefile omit support for large files
1541 Optional Packages:
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544 --without-pop don't support POP mail retrieval with movemail
1545 --with-kerberos support Kerberos-authenticated POP
1546 --with-kerberos5 support Kerberos version 5 authenticated POP
1547 --with-hesiod support Hesiod to get the POP server host
1548 --with-mmdf support MMDF mailboxes
1549 --with-mail-unlink unlink, rather than empty, mail spool after reading
1550 --with-mailhost=HOSTNAME
1551 string giving default POP mail host
1552 --without-sound don't compile with sound support
1553 --without-sync-input process async input synchronously
1554 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1555 athena, motif, no)
1556 --without-xpm don't compile with XPM image support
1557 --without-jpeg don't compile with JPEG image support
1558 --without-tiff don't compile with TIFF image support
1559 --without-gif don't compile with GIF image support
1560 --without-png don't compile with PNG image support
1561 --without-rsvg don't compile with SVG image support
1562 --without-xft don't use XFT for anti aliased fonts
1563 --without-libotf don't use libotf for OpenType font support
1564 --without-m17n-flt don't use m17n-flt for text shaping
1565 --without-toolkit-scroll-bars
1566 don't use Motif or Xaw3d scroll bars
1567 --without-xaw3d don't use Xaw3d
1568 --without-xim don't use X11 XIM
1569 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1570 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1571 console
1572 --without-dbus don't compile with D-Bus support
1573 --without-gconf don't compile with GConf support
1574 --without-selinux don't compile with SELinux support
1575 --without-makeinfo don't require makeinfo for building manuals
1576 --with-pkg-config-prog=PATH
1577 path to pkg-config for finding GTK and librsvg
1578 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1579 /usr/lib, or /usr/lib64 on some platforms.
1580 --with-gnustep-conf=PATH
1581 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1582 or /etc/GNUstep/GNUstep.conf
1583 --with-x use the X Window System
1585 Some influential environment variables:
1586 CC C compiler command
1587 CFLAGS C compiler flags
1588 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1589 nonstandard directory <lib dir>
1590 LIBS libraries to pass to the linker, e.g. -l<library>
1591 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1592 you have headers in a nonstandard directory <include dir>
1593 CPP C preprocessor
1594 XMKMF Path to xmkmf, Makefile generator for X Window System
1596 Use these variables to override the choices made by `configure' or to help
1597 it to find libraries and programs with nonstandard names/locations.
1599 _ACEOF
1600 ac_status=$?
1603 if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608 continue
1609 ac_builddir=.
1611 case "$ac_dir" in
1612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620 esac ;;
1621 esac
1622 ac_abs_top_builddir=$ac_pwd
1623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624 # for backward compatibility:
1625 ac_top_builddir=$ac_top_build_prefix
1627 case $srcdir in
1628 .) # We are building in place.
1629 ac_srcdir=.
1630 ac_top_srcdir=$ac_top_builddir_sub
1631 ac_abs_top_srcdir=$ac_pwd ;;
1632 [\\/]* | ?:[\\/]* ) # Absolute name.
1633 ac_srcdir=$srcdir$ac_dir_suffix;
1634 ac_top_srcdir=$srcdir
1635 ac_abs_top_srcdir=$srcdir ;;
1636 *) # Relative name.
1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1640 esac
1641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643 cd "$ac_dir" || { ac_status=$?; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure" --help=recursive
1651 else
1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 fi || ac_status=$?
1654 cd "$ac_pwd" || { ac_status=$?; break; }
1655 done
1658 test -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1660 cat <<\_ACEOF
1661 emacs configure 24.0.50
1662 generated by GNU Autoconf 2.62
1664 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1665 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1666 This configure script is free software; the Free Software Foundation
1667 gives unlimited permission to copy, distribute and modify it.
1668 _ACEOF
1669 exit
1671 cat >config.log <<_ACEOF
1672 This file contains any messages produced by compilers while
1673 running configure, to aid debugging if configure makes a mistake.
1675 It was created by emacs $as_me 24.0.50, which was
1676 generated by GNU Autoconf 2.62. Invocation command line was
1678 $ $0 $@
1680 _ACEOF
1681 exec 5>>config.log
1683 cat <<_ASUNAME
1684 ## --------- ##
1685 ## Platform. ##
1686 ## --------- ##
1688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1695 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1697 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1698 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1700 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1701 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1702 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1703 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1705 _ASUNAME
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 $as_echo "PATH: $as_dir"
1713 done
1714 IFS=$as_save_IFS
1716 } >&5
1718 cat >&5 <<_ACEOF
1721 ## ----------- ##
1722 ## Core tests. ##
1723 ## ----------- ##
1725 _ACEOF
1728 # Keep a trace of the command line.
1729 # Strip out --no-create and --no-recursion so they do not pile up.
1730 # Strip out --silent because we don't want to record it for future runs.
1731 # Also quote any args containing shell meta-characters.
1732 # Make two passes to allow for proper duplicate-argument suppression.
1733 ac_configure_args=
1734 ac_configure_args0=
1735 ac_configure_args1=
1736 ac_must_keep_next=false
1737 for ac_pass in 1 2
1739 for ac_arg
1741 case $ac_arg in
1742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744 | -silent | --silent | --silen | --sile | --sil)
1745 continue ;;
1746 *\'*)
1747 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 esac
1749 case $ac_pass in
1750 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1752 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1753 if test $ac_must_keep_next = true; then
1754 ac_must_keep_next=false # Got value, back to normal.
1755 else
1756 case $ac_arg in
1757 *=* | --config-cache | -C | -disable-* | --disable-* \
1758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1760 | -with-* | --with-* | -without-* | --without-* | --x)
1761 case "$ac_configure_args0 " in
1762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1763 esac
1765 -* ) ac_must_keep_next=true ;;
1766 esac
1768 ac_configure_args="$ac_configure_args '$ac_arg'"
1770 esac
1771 done
1772 done
1773 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1774 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1776 # When interrupted or exit'd, cleanup temporary files, and complete
1777 # config.log. We remove comments because anyway the quotes in there
1778 # would cause problems or look ugly.
1779 # WARNING: Use '\'' to represent an apostrophe within the trap.
1780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1781 trap 'exit_status=$?
1782 # Save into config.log some information that might help in debugging.
1784 echo
1786 cat <<\_ASBOX
1787 ## ---------------- ##
1788 ## Cache variables. ##
1789 ## ---------------- ##
1790 _ASBOX
1791 echo
1792 # The following way of writing the cache mishandles newlines in values,
1794 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1795 eval ac_val=\$$ac_var
1796 case $ac_val in #(
1797 *${as_nl}*)
1798 case $ac_var in #(
1799 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1800 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1801 esac
1802 case $ac_var in #(
1803 _ | IFS | as_nl) ;; #(
1804 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1805 *) $as_unset $ac_var ;;
1806 esac ;;
1807 esac
1808 done
1809 (set) 2>&1 |
1810 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1811 *${as_nl}ac_space=\ *)
1812 sed -n \
1813 "s/'\''/'\''\\\\'\'''\''/g;
1814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1815 ;; #(
1817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1819 esac |
1820 sort
1822 echo
1824 cat <<\_ASBOX
1825 ## ----------------- ##
1826 ## Output variables. ##
1827 ## ----------------- ##
1828 _ASBOX
1829 echo
1830 for ac_var in $ac_subst_vars
1832 eval ac_val=\$$ac_var
1833 case $ac_val in
1834 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1835 esac
1836 $as_echo "$ac_var='\''$ac_val'\''"
1837 done | sort
1838 echo
1840 if test -n "$ac_subst_files"; then
1841 cat <<\_ASBOX
1842 ## ------------------- ##
1843 ## File substitutions. ##
1844 ## ------------------- ##
1845 _ASBOX
1846 echo
1847 for ac_var in $ac_subst_files
1849 eval ac_val=\$$ac_var
1850 case $ac_val in
1851 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1852 esac
1853 $as_echo "$ac_var='\''$ac_val'\''"
1854 done | sort
1855 echo
1858 if test -s confdefs.h; then
1859 cat <<\_ASBOX
1860 ## ----------- ##
1861 ## confdefs.h. ##
1862 ## ----------- ##
1863 _ASBOX
1864 echo
1865 cat confdefs.h
1866 echo
1868 test "$ac_signal" != 0 &&
1869 $as_echo "$as_me: caught signal $ac_signal"
1870 $as_echo "$as_me: exit $exit_status"
1871 } >&5
1872 rm -f core *.core core.conftest.* &&
1873 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1874 exit $exit_status
1876 for ac_signal in 1 2 13 15; do
1877 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1878 done
1879 ac_signal=0
1881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1882 rm -f -r conftest* confdefs.h
1884 # Predefined preprocessor variables.
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_NAME "$PACKAGE_NAME"
1888 _ACEOF
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1893 _ACEOF
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1898 _ACEOF
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_STRING "$PACKAGE_STRING"
1903 _ACEOF
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1908 _ACEOF
1911 # Let the site file select an alternate cache file if it wants to.
1912 # Prefer an explicitly selected file to automatically selected ones.
1913 ac_site_file1=NONE
1914 ac_site_file2=NONE
1915 if test -n "$CONFIG_SITE"; then
1916 ac_site_file1=$CONFIG_SITE
1917 elif test "x$prefix" != xNONE; then
1918 ac_site_file1=$prefix/share/config.site
1919 ac_site_file2=$prefix/etc/config.site
1920 else
1921 ac_site_file1=$ac_default_prefix/share/config.site
1922 ac_site_file2=$ac_default_prefix/etc/config.site
1924 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1926 test "x$ac_site_file" = xNONE && continue
1927 if test -r "$ac_site_file"; then
1928 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1930 sed 's/^/| /' "$ac_site_file" >&5
1931 . "$ac_site_file"
1933 done
1935 if test -r "$cache_file"; then
1936 # Some versions of bash will fail to source /dev/null (special
1937 # files actually), so we avoid doing that.
1938 if test -f "$cache_file"; then
1939 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940 $as_echo "$as_me: loading cache $cache_file" >&6;}
1941 case $cache_file in
1942 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1943 *) . "./$cache_file";;
1944 esac
1946 else
1947 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948 $as_echo "$as_me: creating cache $cache_file" >&6;}
1949 >$cache_file
1952 ac_header_list="$ac_header_list sys/time.h"
1953 ac_header_list="$ac_header_list unistd.h"
1954 ac_func_list="$ac_func_list alarm"
1955 # Check that the precious variables saved in the cache have kept the same
1956 # value.
1957 ac_cache_corrupted=false
1958 for ac_var in $ac_precious_vars; do
1959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960 eval ac_new_set=\$ac_env_${ac_var}_set
1961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962 eval ac_new_val=\$ac_env_${ac_var}_value
1963 case $ac_old_set,$ac_new_set in
1964 set,)
1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1968 ,set)
1969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1972 ,);;
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
1975 # differences in whitespace do not lead to failure.
1976 ac_old_val_w=`echo x $ac_old_val`
1977 ac_new_val_w=`echo x $ac_new_val`
1978 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1979 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1980 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981 ac_cache_corrupted=:
1982 else
1983 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1984 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1985 eval $ac_var=\$ac_old_val
1987 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1988 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1989 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1990 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1991 fi;;
1992 esac
1993 # Pass precious variables to config.status.
1994 if test "$ac_new_set" = set; then
1995 case $ac_new_val in
1996 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 *) ac_arg=$ac_var=$ac_new_val ;;
1998 esac
1999 case " $ac_configure_args " in
2000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2001 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2002 esac
2004 done
2005 if $ac_cache_corrupted; then
2006 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2007 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2008 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2009 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2010 { (exit 1); exit 1; }; }
2037 ac_ext=c
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2048 test "$program_prefix" != NONE &&
2049 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2050 # Use a double $ so make ignores it.
2051 test "$program_suffix" != NONE &&
2052 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2053 # Double any \ or $.
2054 # By default was `s,x,x', remove it if useless.
2055 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2056 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2059 lispdir='${datadir}/emacs/${version}/lisp'
2060 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2061 '${datadir}/emacs/site-lisp'
2062 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2063 etcdir='${datadir}/emacs/${version}/etc'
2064 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2065 docdir='${datadir}/emacs/${version}/etc'
2066 gamedir='${localstatedir}/games/emacs'
2068 gameuser=games
2073 # Check whether --with-pop was given.
2074 if test "${with_pop+set}" = set; then
2075 withval=$with_pop;
2076 else
2077 with_pop=yes
2080 if test "$with_pop" = yes; then
2081 cat >>confdefs.h <<\_ACEOF
2082 #define MAIL_USE_POP 1
2083 _ACEOF
2089 # Check whether --with-kerberos was given.
2090 if test "${with_kerberos+set}" = set; then
2091 withval=$with_kerberos;
2092 else
2093 with_kerberos=no
2096 if test "$with_kerberos" != no; then
2097 cat >>confdefs.h <<\_ACEOF
2098 #define KERBEROS 1
2099 _ACEOF
2105 # Check whether --with-kerberos5 was given.
2106 if test "${with_kerberos5+set}" = set; then
2107 withval=$with_kerberos5;
2108 else
2109 with_kerberos5=no
2112 if test "${with_kerberos5}" != no; then
2113 if test "${with_kerberos}" = no; then
2114 with_kerberos=yes
2115 cat >>confdefs.h <<\_ACEOF
2116 #define KERBEROS 1
2117 _ACEOF
2121 cat >>confdefs.h <<\_ACEOF
2122 #define KERBEROS5 1
2123 _ACEOF
2128 # Check whether --with-hesiod was given.
2129 if test "${with_hesiod+set}" = set; then
2130 withval=$with_hesiod;
2131 else
2132 with_hesiod=no
2135 if test "$with_hesiod" != no; then
2137 cat >>confdefs.h <<\_ACEOF
2138 #define HESIOD 1
2139 _ACEOF
2144 # Check whether --with-mmdf was given.
2145 if test "${with_mmdf+set}" = set; then
2146 withval=$with_mmdf;
2147 else
2148 with_mmdf=no
2151 if test "$with_mmdf" != no; then
2153 cat >>confdefs.h <<\_ACEOF
2154 #define MAIL_USE_MMDF 1
2155 _ACEOF
2160 # Check whether --with-mail-unlink was given.
2161 if test "${with_mail_unlink+set}" = set; then
2162 withval=$with_mail_unlink;
2163 else
2164 with_mail_unlink=no
2167 if test "$with_mail_unlink" != no; then
2169 cat >>confdefs.h <<\_ACEOF
2170 #define MAIL_UNLINK_SPOOL 1
2171 _ACEOF
2176 # Check whether --with-mailhost was given.
2177 if test "${with_mailhost+set}" = set; then
2178 withval=$with_mailhost;
2179 cat >>confdefs.h <<_ACEOF
2180 #define MAILHOST "$withval"
2181 _ACEOF
2187 # Check whether --with-sound was given.
2188 if test "${with_sound+set}" = set; then
2189 withval=$with_sound;
2190 else
2191 with_sound=yes
2196 # Check whether --with-sync-input was given.
2197 if test "${with_sync_input+set}" = set; then
2198 withval=$with_sync_input;
2199 else
2200 with_sync_input=yes
2203 if test "$with_sync_input" = yes; then
2205 cat >>confdefs.h <<\_ACEOF
2206 #define SYNC_INPUT 1
2207 _ACEOF
2212 # Check whether --with-x-toolkit was given.
2213 if test "${with_x_toolkit+set}" = set; then
2214 withval=$with_x_toolkit; case "${withval}" in
2215 y | ye | yes ) val=gtk ;;
2216 n | no ) val=no ;;
2217 l | lu | luc | luci | lucid ) val=lucid ;;
2218 a | at | ath | athe | athen | athena ) val=athena ;;
2219 m | mo | mot | moti | motif ) val=motif ;;
2220 g | gt | gtk ) val=gtk ;;
2222 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2223 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2224 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2225 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2226 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2227 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2228 { (exit 1); exit 1; }; }
2230 esac
2231 with_x_toolkit=$val
2237 # Check whether --with-xpm was given.
2238 if test "${with_xpm+set}" = set; then
2239 withval=$with_xpm;
2240 else
2241 with_xpm=yes
2245 # Check whether --with-jpeg was given.
2246 if test "${with_jpeg+set}" = set; then
2247 withval=$with_jpeg;
2248 else
2249 with_jpeg=yes
2253 # Check whether --with-tiff was given.
2254 if test "${with_tiff+set}" = set; then
2255 withval=$with_tiff;
2256 else
2257 with_tiff=yes
2261 # Check whether --with-gif was given.
2262 if test "${with_gif+set}" = set; then
2263 withval=$with_gif;
2264 else
2265 with_gif=yes
2269 # Check whether --with-png was given.
2270 if test "${with_png+set}" = set; then
2271 withval=$with_png;
2272 else
2273 with_png=yes
2277 # Check whether --with-rsvg was given.
2278 if test "${with_rsvg+set}" = set; then
2279 withval=$with_rsvg;
2280 else
2281 with_rsvg=yes
2286 # Check whether --with-xft was given.
2287 if test "${with_xft+set}" = set; then
2288 withval=$with_xft;
2289 else
2290 with_xft=yes
2294 # Check whether --with-libotf was given.
2295 if test "${with_libotf+set}" = set; then
2296 withval=$with_libotf;
2297 else
2298 with_libotf=yes
2302 # Check whether --with-m17n-flt was given.
2303 if test "${with_m17n_flt+set}" = set; then
2304 withval=$with_m17n_flt;
2305 else
2306 with_m17n_flt=yes
2311 # Check whether --with-toolkit-scroll-bars was given.
2312 if test "${with_toolkit_scroll_bars+set}" = set; then
2313 withval=$with_toolkit_scroll_bars;
2314 else
2315 with_toolkit_scroll_bars=yes
2319 # Check whether --with-xaw3d was given.
2320 if test "${with_xaw3d+set}" = set; then
2321 withval=$with_xaw3d;
2322 else
2323 with_xaw3d=yes
2327 # Check whether --with-xim was given.
2328 if test "${with_xim+set}" = set; then
2329 withval=$with_xim;
2330 else
2331 with_xim=yes
2335 # Check whether --with-ns was given.
2336 if test "${with_ns+set}" = set; then
2337 withval=$with_ns;
2338 else
2339 with_ns=no
2344 # Check whether --with-gpm was given.
2345 if test "${with_gpm+set}" = set; then
2346 withval=$with_gpm;
2347 else
2348 with_gpm=yes
2352 # Check whether --with-dbus was given.
2353 if test "${with_dbus+set}" = set; then
2354 withval=$with_dbus;
2355 else
2356 with_dbus=yes
2360 # Check whether --with-gconf was given.
2361 if test "${with_gconf+set}" = set; then
2362 withval=$with_gconf;
2363 else
2364 with_gconf=yes
2368 # Check whether --with-selinux was given.
2369 if test "${with_selinux+set}" = set; then
2370 withval=$with_selinux;
2371 else
2372 with_selinux=yes
2376 ## For the times when you want to build Emacs but don't have
2377 ## a suitable makeinfo, and can live without the manuals.
2379 # Check whether --with-makeinfo was given.
2380 if test "${with_makeinfo+set}" = set; then
2381 withval=$with_makeinfo;
2382 else
2383 with_makeinfo=yes
2388 # Check whether --with-pkg-config-prog was given.
2389 if test "${with_pkg_config_prog+set}" = set; then
2390 withval=$with_pkg_config_prog;
2393 if test "X${with_pkg_config_prog}" != X; then
2394 if test "${with_pkg_config_prog}" != yes; then
2395 PKG_CONFIG="${with_pkg_config_prog}"
2399 CRT_DIR=
2401 # Check whether --with-crt-dir was given.
2402 if test "${with_crt_dir+set}" = set; then
2403 withval=$with_crt_dir;
2406 CRT_DIR="${with_crt_dir}"
2409 # Check whether --with-gnustep-conf was given.
2410 if test "${with_gnustep_conf+set}" = set; then
2411 withval=$with_gnustep_conf;
2414 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2415 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2416 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2417 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2419 # Check whether --enable-ns-self-contained was given.
2420 if test "${enable_ns_self_contained+set}" = set; then
2421 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2422 else
2423 EN_NS_SELF_CONTAINED=yes
2427 # Check whether --enable-asserts was given.
2428 if test "${enable_asserts+set}" = set; then
2429 enableval=$enable_asserts; USE_XASSERTS=$enableval
2430 else
2431 USE_XASSERTS=no
2435 # Check whether --enable-maintainer-mode was given.
2436 if test "${enable_maintainer_mode+set}" = set; then
2437 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2438 else
2439 USE_MAINTAINER_MODE=no
2442 if test $USE_MAINTAINER_MODE = yes; then
2443 MAINT=
2444 else
2445 MAINT=#
2449 # Check whether --enable-locallisppath was given.
2450 if test "${enable_locallisppath+set}" = set; then
2451 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2452 locallisppath=
2453 elif test "${enableval}" != "yes"; then
2454 locallisppath=${enableval}
2459 # Check whether --enable-checking was given.
2460 if test "${enable_checking+set}" = set; then
2461 enableval=$enable_checking; ac_checking_flags="${enableval}"
2464 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2465 for check in $ac_checking_flags
2467 case $check in
2468 # these set all the flags to specific states
2469 yes) ac_enable_checking=1 ;;
2470 no) ac_enable_checking= ;
2471 ac_gc_check_stringbytes= ;
2472 ac_gc_check_string_overrun= ;
2473 ac_gc_check_string_free_list= ;
2474 ac_xmalloc_overrun= ;
2475 ac_gc_check_cons_list= ;;
2476 all) ac_enable_checking=1 ;
2477 ac_gc_check_stringbytes=1 ;
2478 ac_gc_check_string_overrun=1 ;
2479 ac_gc_check_string_free_list=1 ;
2480 ac_xmalloc_overrun=1 ;
2481 ac_gc_check_cons_list=1 ;;
2482 # these enable particular checks
2483 stringbytes) ac_gc_check_stringbytes=1 ;;
2484 stringoverrun) ac_gc_check_string_overrun=1 ;;
2485 stringfreelist) ac_gc_check_string_free_list=1 ;;
2486 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2487 conslist) ac_gc_check_cons_list=1 ;;
2488 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2489 $as_echo "$as_me: error: unknown check category $check" >&2;}
2490 { (exit 1); exit 1; }; } ;;
2491 esac
2492 done
2493 IFS="$ac_save_IFS"
2495 if test x$ac_enable_checking != x ; then
2497 cat >>confdefs.h <<\_ACEOF
2498 #define ENABLE_CHECKING 1
2499 _ACEOF
2502 if test x$ac_gc_check_stringbytes != x ; then
2504 cat >>confdefs.h <<\_ACEOF
2505 #define GC_CHECK_STRING_BYTES 1
2506 _ACEOF
2509 if test x$ac_gc_check_stringoverrun != x ; then
2511 cat >>confdefs.h <<\_ACEOF
2512 #define GC_CHECK_STRING_OVERRUN 1
2513 _ACEOF
2516 if test x$ac_gc_check_string_free_list != x ; then
2518 cat >>confdefs.h <<\_ACEOF
2519 #define GC_CHECK_STRING_FREE_LIST 1
2520 _ACEOF
2523 if test x$ac_xmalloc_overrun != x ; then
2525 cat >>confdefs.h <<\_ACEOF
2526 #define XMALLOC_OVERRUN_CHECK 1
2527 _ACEOF
2530 if test x$ac_gc_check_cons_list != x ; then
2532 cat >>confdefs.h <<\_ACEOF
2533 #define GC_CHECK_CONS_LIST 1
2534 _ACEOF
2538 # Check whether --enable-profiling was given.
2539 if test "${enable_profiling+set}" = set; then
2540 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2543 if test x$ac_enable_profiling != x ; then
2544 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2545 PROFILING_LDFLAGS="-pg"
2546 else
2547 PROFILING_CFLAGS=
2548 PROFILING_LDFLAGS=
2551 # Check whether --enable-autodepend was given.
2552 if test "${enable_autodepend+set}" = set; then
2553 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2554 else
2555 ac_enable_autodepend=yes
2559 #### Make srcdir absolute, if it isn't already. It's important to
2560 #### avoid running the path through pwd unnecessarily, since pwd can
2561 #### give you automounter prefixes, which can go away. We do all this
2562 #### so Emacs can find its files when run uninstalled.
2563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2564 unset CDPATH
2565 case "${srcdir}" in
2566 /* ) ;;
2568 ## We may be able to use the $PWD environment variable to make this
2569 ## absolute. But sometimes PWD is inaccurate.
2570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2571 ## but that tested only for a well-formed and valid PWD,
2572 ## it did not object when PWD was well-formed and valid but just wrong.
2573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2574 then
2575 srcdir="$PWD"
2576 else
2577 srcdir="`(cd ${srcdir}; pwd)`"
2580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2581 esac
2583 #### Check if the source directory already has a configured system in it.
2584 if test `pwd` != `(cd ${srcdir} && pwd)` \
2585 && test -f "${srcdir}/src/config.h" ; then
2586 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2587 as a build directory right now; it has been configured in its own
2588 right. To configure in another directory as well, you MUST
2589 use GNU make. If you do not have GNU make, then you must
2590 now do \`make distclean' in ${srcdir},
2591 and then run $0 again." >&5
2592 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2593 as a build directory right now; it has been configured in its own
2594 right. To configure in another directory as well, you MUST
2595 use GNU make. If you do not have GNU make, then you must
2596 now do \`make distclean' in ${srcdir},
2597 and then run $0 again." >&2;}
2600 #### Given the configuration name, set machfile and opsysfile to the
2601 #### names of the m/*.h and s/*.h files we should use.
2603 ### Canonicalize the configuration name.
2605 ac_aux_dir=
2606 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2607 if test -f "$ac_dir/install-sh"; then
2608 ac_aux_dir=$ac_dir
2609 ac_install_sh="$ac_aux_dir/install-sh -c"
2610 break
2611 elif test -f "$ac_dir/install.sh"; then
2612 ac_aux_dir=$ac_dir
2613 ac_install_sh="$ac_aux_dir/install.sh -c"
2614 break
2615 elif test -f "$ac_dir/shtool"; then
2616 ac_aux_dir=$ac_dir
2617 ac_install_sh="$ac_aux_dir/shtool install -c"
2618 break
2620 done
2621 if test -z "$ac_aux_dir"; then
2622 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2623 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2624 { (exit 1); exit 1; }; }
2627 # These three variables are undocumented and unsupported,
2628 # and are intended to be withdrawn in a future Autoconf release.
2629 # They can cause serious problems if a builder's source tree is in a directory
2630 # whose full name contains unusual characters.
2631 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2632 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2633 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2636 # Make sure we can run config.sub.
2637 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2638 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2639 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2640 { (exit 1); exit 1; }; }
2642 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2643 $as_echo_n "checking build system type... " >&6; }
2644 if test "${ac_cv_build+set}" = set; then
2645 $as_echo_n "(cached) " >&6
2646 else
2647 ac_build_alias=$build_alias
2648 test "x$ac_build_alias" = x &&
2649 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2650 test "x$ac_build_alias" = x &&
2651 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2652 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2653 { (exit 1); exit 1; }; }
2654 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2655 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2656 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2657 { (exit 1); exit 1; }; }
2660 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2661 $as_echo "$ac_cv_build" >&6; }
2662 case $ac_cv_build in
2663 *-*-*) ;;
2664 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2665 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2666 { (exit 1); exit 1; }; };;
2667 esac
2668 build=$ac_cv_build
2669 ac_save_IFS=$IFS; IFS='-'
2670 set x $ac_cv_build
2671 shift
2672 build_cpu=$1
2673 build_vendor=$2
2674 shift; shift
2675 # Remember, the first character of IFS is used to create $*,
2676 # except with old shells:
2677 build_os=$*
2678 IFS=$ac_save_IFS
2679 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2682 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2683 $as_echo_n "checking host system type... " >&6; }
2684 if test "${ac_cv_host+set}" = set; then
2685 $as_echo_n "(cached) " >&6
2686 else
2687 if test "x$host_alias" = x; then
2688 ac_cv_host=$ac_cv_build
2689 else
2690 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2691 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2692 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2693 { (exit 1); exit 1; }; }
2697 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2698 $as_echo "$ac_cv_host" >&6; }
2699 case $ac_cv_host in
2700 *-*-*) ;;
2701 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2702 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2703 { (exit 1); exit 1; }; };;
2704 esac
2705 host=$ac_cv_host
2706 ac_save_IFS=$IFS; IFS='-'
2707 set x $ac_cv_host
2708 shift
2709 host_cpu=$1
2710 host_vendor=$2
2711 shift; shift
2712 # Remember, the first character of IFS is used to create $*,
2713 # except with old shells:
2714 host_os=$*
2715 IFS=$ac_save_IFS
2716 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2719 canonical=$host
2720 configuration=${host_alias-${build_alias-$host}}
2724 ### If you add support for a new configuration, add code to this
2725 ### switch statement to recognize your configuration name and select
2726 ### the appropriate operating system and machine description files.
2728 ### You would hope that you could choose an m/*.h file pretty much
2729 ### based on the machine portion of the configuration name, and an s-
2730 ### file based on the operating system portion. However, it turns out
2731 ### that each m/*.h file is pretty manufacturer-specific - for
2732 ### example mips.h is MIPS
2733 ### So we basically have to have a special case for each
2734 ### configuration name.
2736 ### As far as handling version numbers on operating systems is
2737 ### concerned, make sure things will fail in a fixable way. If
2738 ### /etc/MACHINES doesn't say anything about version numbers, be
2739 ### prepared to handle anything reasonably. If version numbers
2740 ### matter, be sure /etc/MACHINES says something about it.
2742 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2743 ### "System V Release 4"; he writes, "The old convention encouraged
2744 ### confusion between `system' and `release' levels'."
2746 machine='' opsys='' unported=no
2747 case "${canonical}" in
2749 ## FreeBSD ports
2750 *-*-freebsd* )
2751 opsys=freebsd
2752 case "${canonical}" in
2753 alpha*-*-freebsd*) machine=alpha ;;
2754 arm*-*-freebsd*) machine=arm ;;
2755 ia64-*-freebsd*) machine=ia64 ;;
2756 sparc-*-freebsd*) machine=sparc ;;
2757 sparc64-*-freebsd*) machine=sparc ;;
2758 powerpc-*-freebsd*) machine=macppc ;;
2759 i[3456]86-*-freebsd*) machine=intel386 ;;
2760 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2761 esac
2764 ## FreeBSD kernel + glibc based userland
2765 *-*-kfreebsd*gnu* )
2766 opsys=gnu-kfreebsd
2767 case "${canonical}" in
2768 alpha*-*-kfreebsd*) machine=alpha ;;
2769 ia64-*-kfreebsd*) machine=ia64 ;;
2770 sparc-*-kfreebsd*) machine=sparc ;;
2771 sparc64-*-kfreebsd*) machine=sparc ;;
2772 powerpc-*-kfreebsd*) machine=macppc ;;
2773 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2774 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2775 esac
2778 ## NetBSD ports
2779 *-*-netbsd* )
2780 opsys=netbsd
2781 case "${canonical}" in
2782 alpha*-*-netbsd*) machine=alpha ;;
2783 i[3456]86-*-netbsd*) machine=intel386 ;;
2784 mips-*-netbsd*) machine=mips ;;
2785 mipsel-*-netbsd*) machine=mips ;;
2786 mipseb-*-netbsd*) machine=mips ;;
2787 powerpc-*-netbsd*) machine=macppc ;;
2788 sparc*-*-netbsd*) machine=sparc ;;
2789 vax-*-netbsd*) machine=vax ;;
2790 arm-*-netbsd*) machine=arm ;;
2791 x86_64-*-netbsd*) machine=amdx86-64 ;;
2792 hppa-*-netbsd*) machine=hp800 ;;
2793 m68k-*-netbsd*) machine=m68k ;;
2794 esac
2797 ## OpenBSD ports
2798 *-*-openbsd* )
2799 opsys=openbsd
2800 case "${canonical}" in
2801 alpha*-*-openbsd*) machine=alpha ;;
2802 arm-*-openbsd*) machine=arm ;;
2803 i386-*-openbsd*) machine=intel386 ;;
2804 powerpc-*-openbsd*) machine=macppc ;;
2805 sparc*-*-openbsd*) machine=sparc ;;
2806 vax-*-openbsd*) machine=vax ;;
2807 x86_64-*-openbsd*) machine=amdx86-64 ;;
2808 hppa-*-openbsd*) machine=hp800 ;;
2809 esac
2812 alpha*-*-linux-gnu* )
2813 machine=alpha opsys=gnu-linux
2816 arm*-*-linux-gnu* )
2817 machine=arm opsys=gnu-linux
2820 ## Apple Darwin / Mac OS X
2821 *-apple-darwin* )
2822 case "${canonical}" in
2823 i[3456]86-* ) machine=intel386 ;;
2824 powerpc-* ) machine=macppc ;;
2825 x86_64-* ) machine=amdx86-64 ;;
2826 * ) unported=yes ;;
2827 esac
2828 opsys=darwin
2829 # Define CPP as follows to make autoconf work correctly.
2830 CPP="${CC-cc} -E -no-cpp-precomp"
2831 # Use fink packages if available.
2832 if test -d /sw/include && test -d /sw/lib; then
2833 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2834 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2835 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2839 ## HP 9000 series 700 and 800, running HP/UX
2840 hppa*-hp-hpux10.2* )
2841 machine=hp800 opsys=hpux10-20
2843 hppa*-hp-hpux1[1-9]* )
2844 machine=hp800 opsys=hpux11
2845 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2848 hppa*-*-linux-gnu* )
2849 machine=hp800 opsys=gnu-linux
2852 ## IBM machines
2853 s390-*-linux-gnu* )
2854 machine=ibms390 opsys=gnu-linux
2856 s390x-*-linux-gnu* )
2857 machine=ibms390x opsys=gnu-linux
2859 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2860 machine=ibmrs6000 opsys=aix4-2
2862 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2863 machine=ibmrs6000 opsys=aix4-2
2865 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2866 machine=ibmrs6000 opsys=aix4-2
2868 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2869 machine=ibmrs6000 opsys=aix4-2
2872 ## Macintosh PowerPC
2873 powerpc*-*-linux-gnu* )
2874 machine=macppc opsys=gnu-linux
2877 ## Silicon Graphics machines
2878 ## Iris 4D
2879 mips-sgi-irix6.5 )
2880 machine=iris4d opsys=irix6-5
2881 # Without defining _LANGUAGE_C, things get masked out in the headers
2882 # so that, for instance, grepping for `free' in stdlib.h fails and
2883 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2884 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2885 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2888 ## Suns
2889 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2890 machine=sparc opsys=gnu-linux
2893 *-sun-solaris* \
2894 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2895 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2896 case "${canonical}" in
2897 i[3456]86-*-* ) machine=intel386 ;;
2898 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2899 sparc* ) machine=sparc ;;
2900 * ) unported=yes ;;
2901 esac
2902 case "${canonical}" in
2903 *-sunos5.6* | *-solaris2.6* )
2904 opsys=sol2-6
2905 NON_GNU_CPP=/usr/ccs/lib/cpp
2906 RANLIB="ar -ts"
2908 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2909 opsys=sol2-6
2910 emacs_check_sunpro_c=yes
2911 NON_GNU_CPP=/usr/ccs/lib/cpp
2913 *-sunos5* | *-solaris* )
2914 opsys=sol2-10
2915 emacs_check_sunpro_c=yes
2916 NON_GNU_CPP=/usr/ccs/lib/cpp
2918 esac
2919 ## Watch out for a compiler that we know will not work.
2920 case "${canonical}" in
2921 *-solaris* | *-sunos5* )
2922 if [ "x$CC" = x/usr/ucb/cc ]; then
2923 ## /usr/ucb/cc doesn't work;
2924 ## we should find some other compiler that does work.
2925 unset CC
2928 *) ;;
2929 esac
2932 ## IA-64
2933 ia64*-*-linux* )
2934 machine=ia64 opsys=gnu-linux
2937 ## Intel 386 machines where we don't care about the manufacturer
2938 i[3456]86-*-* )
2939 machine=intel386
2940 case "${canonical}" in
2941 *-cygwin ) opsys=cygwin ;;
2942 *-darwin* ) opsys=darwin
2943 CPP="${CC-cc} -E -no-cpp-precomp"
2945 *-linux-gnu* ) opsys=gnu-linux ;;
2946 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2947 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2948 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2949 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2950 esac
2953 ## m68k Linux-based GNU system
2954 m68k-*-linux-gnu* )
2955 machine=m68k opsys=gnu-linux
2958 ## Mips Linux-based GNU system
2959 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2960 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2961 machine=mips opsys=gnu-linux
2964 ## AMD x86-64 Linux-based GNU system
2965 x86_64-*-linux-gnu* )
2966 machine=amdx86-64 opsys=gnu-linux
2969 ## Tensilica Xtensa Linux-based GNU system
2970 xtensa*-*-linux-gnu* )
2971 machine=xtensa opsys=gnu-linux
2974 ## SuperH Linux-based GNU system
2975 sh[34]*-*-linux-gnu* )
2976 machine=sh3 opsys=gnu-linux
2980 unported=yes
2982 esac
2984 ### If the code above didn't choose an operating system, just choose
2985 ### an operating system based on the configuration name. You really
2986 ### only want to use this when you have no idea what the right
2987 ### operating system is; if you know what operating systems a machine
2988 ### runs, it's cleaner to make it explicit in the case statement
2989 ### above.
2990 if test x"${opsys}" = x; then
2991 case "${canonical}" in
2992 *-gnu* ) opsys=gnu ;;
2994 unported=yes
2996 esac
3001 if test $unported = yes; then
3002 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3003 Check \`etc/MACHINES' for recognized configuration names." >&5
3004 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3005 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3006 { (exit 1); exit 1; }; }
3009 machfile="m/${machine}.h"
3010 opsysfile="s/${opsys}.h"
3013 #### Choose a compiler.
3014 test -n "$CC" && cc_specified=yes
3016 # Save the value of CFLAGS that the user specified.
3017 SPECIFIED_CFLAGS="$CFLAGS"
3019 ac_ext=c
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3027 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if test "${ac_cv_prog_CC+set}" = set; then
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3046 done
3047 done
3048 IFS=$as_save_IFS
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3056 else
3057 { $as_echo "$as_me:$LINENO: result: no" >&5
3058 $as_echo "no" >&6; }
3063 if test -z "$ac_cv_prog_CC"; then
3064 ac_ct_CC=$CC
3065 # Extract the first word of "gcc", so it can be a program name with args.
3066 set dummy gcc; ac_word=$2
3067 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$ac_ct_CC"; then
3073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_CC="gcc"
3083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3086 done
3087 done
3088 IFS=$as_save_IFS
3092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3093 if test -n "$ac_ct_CC"; then
3094 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3095 $as_echo "$ac_ct_CC" >&6; }
3096 else
3097 { $as_echo "$as_me:$LINENO: result: no" >&5
3098 $as_echo "no" >&6; }
3101 if test "x$ac_ct_CC" = x; then
3102 CC=""
3103 else
3104 case $cross_compiling:$ac_tool_warned in
3105 yes:)
3106 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3107 whose name does not start with the host triplet. If you think this
3108 configuration is useful to you, please write to autoconf@gnu.org." >&5
3109 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3110 whose name does not start with the host triplet. If you think this
3111 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3112 ac_tool_warned=yes ;;
3113 esac
3114 CC=$ac_ct_CC
3116 else
3117 CC="$ac_cv_prog_CC"
3120 if test -z "$CC"; then
3121 if test -n "$ac_tool_prefix"; then
3122 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3123 set dummy ${ac_tool_prefix}cc; ac_word=$2
3124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_CC+set}" = set; then
3127 $as_echo_n "(cached) " >&6
3128 else
3129 if test -n "$CC"; then
3130 ac_cv_prog_CC="$CC" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_CC="${ac_tool_prefix}cc"
3140 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 break 2
3143 done
3144 done
3145 IFS=$as_save_IFS
3149 CC=$ac_cv_prog_CC
3150 if test -n "$CC"; then
3151 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3152 $as_echo "$CC" >&6; }
3153 else
3154 { $as_echo "$as_me:$LINENO: result: no" >&5
3155 $as_echo "no" >&6; }
3161 if test -z "$CC"; then
3162 # Extract the first word of "cc", so it can be a program name with args.
3163 set dummy cc; ac_word=$2
3164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_CC+set}" = set; then
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC="$CC" # Let the user override the test.
3171 else
3172 ac_prog_rejected=no
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3181 ac_prog_rejected=yes
3182 continue
3184 ac_cv_prog_CC="cc"
3185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3188 done
3189 done
3190 IFS=$as_save_IFS
3192 if test $ac_prog_rejected = yes; then
3193 # We found a bogon in the path, so make sure we never use it.
3194 set dummy $ac_cv_prog_CC
3195 shift
3196 if test $# != 0; then
3197 # We chose a different compiler from the bogus one.
3198 # However, it has the same basename, so the bogon will be chosen
3199 # first if we set CC to just the basename; use the full file name.
3200 shift
3201 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3206 CC=$ac_cv_prog_CC
3207 if test -n "$CC"; then
3208 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3209 $as_echo "$CC" >&6; }
3210 else
3211 { $as_echo "$as_me:$LINENO: result: no" >&5
3212 $as_echo "no" >&6; }
3217 if test -z "$CC"; then
3218 if test -n "$ac_tool_prefix"; then
3219 for ac_prog in cl.exe
3221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if test "${ac_cv_prog_CC+set}" = set; then
3226 $as_echo_n "(cached) " >&6
3227 else
3228 if test -n "$CC"; then
3229 ac_cv_prog_CC="$CC" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3239 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3242 done
3243 done
3244 IFS=$as_save_IFS
3248 CC=$ac_cv_prog_CC
3249 if test -n "$CC"; then
3250 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3252 else
3253 { $as_echo "$as_me:$LINENO: result: no" >&5
3254 $as_echo "no" >&6; }
3258 test -n "$CC" && break
3259 done
3261 if test -z "$CC"; then
3262 ac_ct_CC=$CC
3263 for ac_prog in cl.exe
3265 # Extract the first word of "$ac_prog", so it can be a program name with args.
3266 set dummy $ac_prog; ac_word=$2
3267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3270 $as_echo_n "(cached) " >&6
3271 else
3272 if test -n "$ac_ct_CC"; then
3273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282 ac_cv_prog_ac_ct_CC="$ac_prog"
3283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3286 done
3287 done
3288 IFS=$as_save_IFS
3292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3293 if test -n "$ac_ct_CC"; then
3294 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3295 $as_echo "$ac_ct_CC" >&6; }
3296 else
3297 { $as_echo "$as_me:$LINENO: result: no" >&5
3298 $as_echo "no" >&6; }
3302 test -n "$ac_ct_CC" && break
3303 done
3305 if test "x$ac_ct_CC" = x; then
3306 CC=""
3307 else
3308 case $cross_compiling:$ac_tool_warned in
3309 yes:)
3310 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3311 whose name does not start with the host triplet. If you think this
3312 configuration is useful to you, please write to autoconf@gnu.org." >&5
3313 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3314 whose name does not start with the host triplet. If you think this
3315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3316 ac_tool_warned=yes ;;
3317 esac
3318 CC=$ac_ct_CC
3325 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3326 See \`config.log' for more details." >&5
3327 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3328 See \`config.log' for more details." >&2;}
3329 { (exit 1); exit 1; }; }
3331 # Provide some information about the compiler.
3332 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3333 set X $ac_compile
3334 ac_compiler=$2
3335 { (ac_try="$ac_compiler --version >&5"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3341 $as_echo "$ac_try_echo") >&5
3342 (eval "$ac_compiler --version >&5") 2>&5
3343 ac_status=$?
3344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }
3346 { (ac_try="$ac_compiler -v >&5"
3347 case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3352 $as_echo "$ac_try_echo") >&5
3353 (eval "$ac_compiler -v >&5") 2>&5
3354 ac_status=$?
3355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }
3357 { (ac_try="$ac_compiler -V >&5"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3363 $as_echo "$ac_try_echo") >&5
3364 (eval "$ac_compiler -V >&5") 2>&5
3365 ac_status=$?
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h. */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3377 main ()
3381 return 0;
3383 _ACEOF
3384 ac_clean_files_save=$ac_clean_files
3385 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3386 # Try to create an executable without -o first, disregard a.out.
3387 # It will help us diagnose broken compilers, and finding out an intuition
3388 # of exeext.
3389 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3390 $as_echo_n "checking for C compiler default output file name... " >&6; }
3391 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3393 # The possible output files:
3394 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3396 ac_rmfiles=
3397 for ac_file in $ac_files
3399 case $ac_file in
3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3401 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3402 esac
3403 done
3404 rm -f $ac_rmfiles
3406 if { (ac_try="$ac_link_default"
3407 case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3410 esac
3411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3412 $as_echo "$ac_try_echo") >&5
3413 (eval "$ac_link_default") 2>&5
3414 ac_status=$?
3415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; then
3417 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3418 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3419 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3420 # so that the user can short-circuit this test for compilers unknown to
3421 # Autoconf.
3422 for ac_file in $ac_files ''
3424 test -f "$ac_file" || continue
3425 case $ac_file in
3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3428 [ab].out )
3429 # We found the default executable, but exeext='' is most
3430 # certainly right.
3431 break;;
3432 *.* )
3433 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3434 then :; else
3435 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3437 # We set ac_cv_exeext here because the later test for it is not
3438 # safe: cross compilers may not add the suffix if given an `-o'
3439 # argument, so we may need to know it at that point already.
3440 # Even if this section looks crufty: it has the advantage of
3441 # actually working.
3442 break;;
3444 break;;
3445 esac
3446 done
3447 test "$ac_cv_exeext" = no && ac_cv_exeext=
3449 else
3450 ac_file=''
3453 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3454 $as_echo "$ac_file" >&6; }
3455 if test -z "$ac_file"; then
3456 $as_echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3460 See \`config.log' for more details." >&5
3461 $as_echo "$as_me: error: C compiler cannot create executables
3462 See \`config.log' for more details." >&2;}
3463 { (exit 77); exit 77; }; }
3466 ac_exeext=$ac_cv_exeext
3468 # Check that the compiler produces executables we can run. If not, either
3469 # the compiler is broken, or we cross compile.
3470 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3471 $as_echo_n "checking whether the C compiler works... " >&6; }
3472 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3473 # If not cross compiling, check that we can run a simple program.
3474 if test "$cross_compiling" != yes; then
3475 if { ac_try='./$ac_file'
3476 { (case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3481 $as_echo "$ac_try_echo") >&5
3482 (eval "$ac_try") 2>&5
3483 ac_status=$?
3484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 cross_compiling=no
3487 else
3488 if test "$cross_compiling" = maybe; then
3489 cross_compiling=yes
3490 else
3491 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3492 If you meant to cross compile, use \`--host'.
3493 See \`config.log' for more details." >&5
3494 $as_echo "$as_me: error: cannot run C compiled programs.
3495 If you meant to cross compile, use \`--host'.
3496 See \`config.log' for more details." >&2;}
3497 { (exit 1); exit 1; }; }
3501 { $as_echo "$as_me:$LINENO: result: yes" >&5
3502 $as_echo "yes" >&6; }
3504 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3505 ac_clean_files=$ac_clean_files_save
3506 # Check that the compiler produces executables we can run. If not, either
3507 # the compiler is broken, or we cross compile.
3508 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3509 $as_echo_n "checking whether we are cross compiling... " >&6; }
3510 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3511 $as_echo "$cross_compiling" >&6; }
3513 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3514 $as_echo_n "checking for suffix of executables... " >&6; }
3515 if { (ac_try="$ac_link"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3521 $as_echo "$ac_try_echo") >&5
3522 (eval "$ac_link") 2>&5
3523 ac_status=$?
3524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; then
3526 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3527 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3528 # work properly (i.e., refer to `conftest.exe'), while it won't with
3529 # `rm'.
3530 for ac_file in conftest.exe conftest conftest.*; do
3531 test -f "$ac_file" || continue
3532 case $ac_file in
3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3534 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3535 break;;
3536 * ) break;;
3537 esac
3538 done
3539 else
3540 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3541 See \`config.log' for more details." >&5
3542 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3543 See \`config.log' for more details." >&2;}
3544 { (exit 1); exit 1; }; }
3547 rm -f conftest$ac_cv_exeext
3548 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3549 $as_echo "$ac_cv_exeext" >&6; }
3551 rm -f conftest.$ac_ext
3552 EXEEXT=$ac_cv_exeext
3553 ac_exeext=$EXEEXT
3554 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3555 $as_echo_n "checking for suffix of object files... " >&6; }
3556 if test "${ac_cv_objext+set}" = set; then
3557 $as_echo_n "(cached) " >&6
3558 else
3559 cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h. */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3567 main ()
3571 return 0;
3573 _ACEOF
3574 rm -f conftest.o conftest.obj
3575 if { (ac_try="$ac_compile"
3576 case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3581 $as_echo "$ac_try_echo") >&5
3582 (eval "$ac_compile") 2>&5
3583 ac_status=$?
3584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; then
3586 for ac_file in conftest.o conftest.obj conftest.*; do
3587 test -f "$ac_file" || continue;
3588 case $ac_file in
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3590 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3591 break;;
3592 esac
3593 done
3594 else
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3598 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3599 See \`config.log' for more details." >&5
3600 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3601 See \`config.log' for more details." >&2;}
3602 { (exit 1); exit 1; }; }
3605 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3607 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3608 $as_echo "$ac_cv_objext" >&6; }
3609 OBJEXT=$ac_cv_objext
3610 ac_objext=$OBJEXT
3611 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3612 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3613 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3614 $as_echo_n "(cached) " >&6
3615 else
3616 cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h. */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3624 main ()
3626 #ifndef __GNUC__
3627 choke me
3628 #endif
3631 return 0;
3633 _ACEOF
3634 rm -f conftest.$ac_objext
3635 if { (ac_try="$ac_compile"
3636 case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639 esac
3640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3641 $as_echo "$ac_try_echo") >&5
3642 (eval "$ac_compile") 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } && {
3649 test -z "$ac_c_werror_flag" ||
3650 test ! -s conftest.err
3651 } && test -s conftest.$ac_objext; then
3652 ac_compiler_gnu=yes
3653 else
3654 $as_echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3657 ac_compiler_gnu=no
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3664 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3665 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3666 if test $ac_compiler_gnu = yes; then
3667 GCC=yes
3668 else
3669 GCC=
3671 ac_test_CFLAGS=${CFLAGS+set}
3672 ac_save_CFLAGS=$CFLAGS
3673 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3674 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3675 if test "${ac_cv_prog_cc_g+set}" = set; then
3676 $as_echo_n "(cached) " >&6
3677 else
3678 ac_save_c_werror_flag=$ac_c_werror_flag
3679 ac_c_werror_flag=yes
3680 ac_cv_prog_cc_g=no
3681 CFLAGS="-g"
3682 cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3690 main ()
3694 return 0;
3696 _ACEOF
3697 rm -f conftest.$ac_objext
3698 if { (ac_try="$ac_compile"
3699 case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3704 $as_echo "$ac_try_echo") >&5
3705 (eval "$ac_compile") 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } && {
3712 test -z "$ac_c_werror_flag" ||
3713 test ! -s conftest.err
3714 } && test -s conftest.$ac_objext; then
3715 ac_cv_prog_cc_g=yes
3716 else
3717 $as_echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3720 CFLAGS=""
3721 cat >conftest.$ac_ext <<_ACEOF
3722 /* confdefs.h. */
3723 _ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3729 main ()
3733 return 0;
3735 _ACEOF
3736 rm -f conftest.$ac_objext
3737 if { (ac_try="$ac_compile"
3738 case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3741 esac
3742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3743 $as_echo "$ac_try_echo") >&5
3744 (eval "$ac_compile") 2>conftest.er1
3745 ac_status=$?
3746 grep -v '^ *+' conftest.er1 >conftest.err
3747 rm -f conftest.er1
3748 cat conftest.err >&5
3749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } && {
3751 test -z "$ac_c_werror_flag" ||
3752 test ! -s conftest.err
3753 } && test -s conftest.$ac_objext; then
3755 else
3756 $as_echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3759 ac_c_werror_flag=$ac_save_c_werror_flag
3760 CFLAGS="-g"
3761 cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h. */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3769 main ()
3773 return 0;
3775 _ACEOF
3776 rm -f conftest.$ac_objext
3777 if { (ac_try="$ac_compile"
3778 case "(($ac_try" in
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3781 esac
3782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3783 $as_echo "$ac_try_echo") >&5
3784 (eval "$ac_compile") 2>conftest.er1
3785 ac_status=$?
3786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
3789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } && {
3791 test -z "$ac_c_werror_flag" ||
3792 test ! -s conftest.err
3793 } && test -s conftest.$ac_objext; then
3794 ac_cv_prog_cc_g=yes
3795 else
3796 $as_echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_c_werror_flag=$ac_save_c_werror_flag
3811 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3812 $as_echo "$ac_cv_prog_cc_g" >&6; }
3813 if test "$ac_test_CFLAGS" = set; then
3814 CFLAGS=$ac_save_CFLAGS
3815 elif test $ac_cv_prog_cc_g = yes; then
3816 if test "$GCC" = yes; then
3817 CFLAGS="-g -O2"
3818 else
3819 CFLAGS="-g"
3821 else
3822 if test "$GCC" = yes; then
3823 CFLAGS="-O2"
3824 else
3825 CFLAGS=
3828 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3830 if test "${ac_cv_prog_cc_c89+set}" = set; then
3831 $as_echo_n "(cached) " >&6
3832 else
3833 ac_cv_prog_cc_c89=no
3834 ac_save_CC=$CC
3835 cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h. */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3841 #include <stdarg.h>
3842 #include <stdio.h>
3843 #include <sys/types.h>
3844 #include <sys/stat.h>
3845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3846 struct buf { int x; };
3847 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3848 static char *e (p, i)
3849 char **p;
3850 int i;
3852 return p[i];
3854 static char *f (char * (*g) (char **, int), char **p, ...)
3856 char *s;
3857 va_list v;
3858 va_start (v,p);
3859 s = g (p, va_arg (v,int));
3860 va_end (v);
3861 return s;
3864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3865 function prototypes and stuff, but not '\xHH' hex character constants.
3866 These don't provoke an error unfortunately, instead are silently treated
3867 as 'x'. The following induces an error, until -std is added to get
3868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3869 array size at least. It's necessary to write '\x00'==0 to get something
3870 that's true only with -std. */
3871 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3874 inside strings and character constants. */
3875 #define FOO(x) 'x'
3876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3878 int test (int i, double x);
3879 struct s1 {int (*f) (int a);};
3880 struct s2 {int (*f) (double a);};
3881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3882 int argc;
3883 char **argv;
3885 main ()
3887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3889 return 0;
3891 _ACEOF
3892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3895 CC="$ac_save_CC $ac_arg"
3896 rm -f conftest.$ac_objext
3897 if { (ac_try="$ac_compile"
3898 case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901 esac
3902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3903 $as_echo "$ac_try_echo") >&5
3904 (eval "$ac_compile") 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } && {
3911 test -z "$ac_c_werror_flag" ||
3912 test ! -s conftest.err
3913 } && test -s conftest.$ac_objext; then
3914 ac_cv_prog_cc_c89=$ac_arg
3915 else
3916 $as_echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3922 rm -f core conftest.err conftest.$ac_objext
3923 test "x$ac_cv_prog_cc_c89" != "xno" && break
3924 done
3925 rm -f conftest.$ac_ext
3926 CC=$ac_save_CC
3929 # AC_CACHE_VAL
3930 case "x$ac_cv_prog_cc_c89" in
3932 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3933 $as_echo "none needed" >&6; } ;;
3934 xno)
3935 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3936 $as_echo "unsupported" >&6; } ;;
3938 CC="$CC $ac_cv_prog_cc_c89"
3939 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3940 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3941 esac
3944 ac_ext=c
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 # On Suns, sometimes $CPP names a directory.
3952 if test -n "$CPP" && test -d "$CPP"; then
3953 CPP=
3956 ## If not using gcc, and on Solaris, and no CPP specified, see if
3957 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3958 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3959 test x"$CPP" = x; then
3960 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3961 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3963 if test "${emacs_cv_sunpro_c+set}" = set; then
3964 $as_echo_n "(cached) " >&6
3965 else
3966 cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h. */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3974 main ()
3976 #ifndef __SUNPRO_C
3977 fail;
3978 #endif
3981 return 0;
3983 _ACEOF
3984 rm -f conftest.$ac_objext conftest$ac_exeext
3985 if { (ac_try="$ac_link"
3986 case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989 esac
3990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3991 $as_echo "$ac_try_echo") >&5
3992 (eval "$ac_link") 2>conftest.er1
3993 ac_status=$?
3994 grep -v '^ *+' conftest.er1 >conftest.err
3995 rm -f conftest.er1
3996 cat conftest.err >&5
3997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } && {
3999 test -z "$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 } && test -s conftest$ac_exeext && {
4002 test "$cross_compiling" = yes ||
4003 $as_test_x conftest$ac_exeext
4004 }; then
4005 emacs_cv_sunpro_c=yes
4006 else
4007 $as_echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 emacs_cv_sunpro_c=no
4013 rm -rf conftest.dSYM
4014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4015 conftest$ac_exeext conftest.$ac_ext
4018 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4019 $as_echo "$emacs_cv_sunpro_c" >&6; }
4021 if test x"$emacs_cv_sunpro_c" = xyes; then
4022 NON_GNU_CPP="$CC -E -Xs"
4026 #### Some systems specify a CPP to use unless we are using GCC.
4027 #### Now that we know whether we are using GCC, we can decide whether
4028 #### to use that one.
4029 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4030 then
4031 CPP="$NON_GNU_CPP"
4034 #### Some systems specify a CC to use unless we are using GCC.
4035 #### Now that we know whether we are using GCC, we can decide whether
4036 #### to use that one.
4037 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4038 test x$cc_specified != xyes
4039 then
4040 CC="$NON_GNU_CC"
4043 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4044 then
4045 CC="$CC $GCC_TEST_OPTIONS"
4048 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4049 then
4050 CC="$CC $NON_GCC_TEST_OPTIONS"
4053 ac_ext=c
4054 ac_cpp='$CPP $CPPFLAGS'
4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4059 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4060 # On Suns, sometimes $CPP names a directory.
4061 if test -n "$CPP" && test -d "$CPP"; then
4062 CPP=
4064 if test -z "$CPP"; then
4065 if test "${ac_cv_prog_CPP+set}" = set; then
4066 $as_echo_n "(cached) " >&6
4067 else
4068 # Double quotes because CPP needs to be expanded
4069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4071 ac_preproc_ok=false
4072 for ac_c_preproc_warn_flag in '' yes
4074 # Use a header file that comes with gcc, so configuring glibc
4075 # with a fresh cross-compiler works.
4076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4077 # <limits.h> exists even on freestanding compilers.
4078 # On the NeXT, cc -E runs the code through the compiler's parser,
4079 # not just through cpp. "Syntax error" is here to catch this case.
4080 cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h. */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4086 #ifdef __STDC__
4087 # include <limits.h>
4088 #else
4089 # include <assert.h>
4090 #endif
4091 Syntax error
4092 _ACEOF
4093 if { (ac_try="$ac_cpp conftest.$ac_ext"
4094 case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4099 $as_echo "$ac_try_echo") >&5
4100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4101 ac_status=$?
4102 grep -v '^ *+' conftest.er1 >conftest.err
4103 rm -f conftest.er1
4104 cat conftest.err >&5
4105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } >/dev/null && {
4107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4108 test ! -s conftest.err
4109 }; then
4111 else
4112 $as_echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4115 # Broken: fails on valid input.
4116 continue
4119 rm -f conftest.err conftest.$ac_ext
4121 # OK, works on sane cases. Now check whether nonexistent headers
4122 # can be detected and how.
4123 cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h. */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 #include <ac_nonexistent.h>
4130 _ACEOF
4131 if { (ac_try="$ac_cpp conftest.$ac_ext"
4132 case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135 esac
4136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4137 $as_echo "$ac_try_echo") >&5
4138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4139 ac_status=$?
4140 grep -v '^ *+' conftest.er1 >conftest.err
4141 rm -f conftest.er1
4142 cat conftest.err >&5
4143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } >/dev/null && {
4145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4146 test ! -s conftest.err
4147 }; then
4148 # Broken: success on invalid input.
4149 continue
4150 else
4151 $as_echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 # Passes both tests.
4155 ac_preproc_ok=:
4156 break
4159 rm -f conftest.err conftest.$ac_ext
4161 done
4162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4163 rm -f conftest.err conftest.$ac_ext
4164 if $ac_preproc_ok; then
4165 break
4168 done
4169 ac_cv_prog_CPP=$CPP
4172 CPP=$ac_cv_prog_CPP
4173 else
4174 ac_cv_prog_CPP=$CPP
4176 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4177 $as_echo "$CPP" >&6; }
4178 ac_preproc_ok=false
4179 for ac_c_preproc_warn_flag in '' yes
4181 # Use a header file that comes with gcc, so configuring glibc
4182 # with a fresh cross-compiler works.
4183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184 # <limits.h> exists even on freestanding compilers.
4185 # On the NeXT, cc -E runs the code through the compiler's parser,
4186 # not just through cpp. "Syntax error" is here to catch this case.
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 #ifdef __STDC__
4194 # include <limits.h>
4195 #else
4196 # include <assert.h>
4197 #endif
4198 Syntax error
4199 _ACEOF
4200 if { (ac_try="$ac_cpp conftest.$ac_ext"
4201 case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4204 esac
4205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4206 $as_echo "$ac_try_echo") >&5
4207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4208 ac_status=$?
4209 grep -v '^ *+' conftest.er1 >conftest.err
4210 rm -f conftest.er1
4211 cat conftest.err >&5
4212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } >/dev/null && {
4214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4216 }; then
4218 else
4219 $as_echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 # Broken: fails on valid input.
4223 continue
4226 rm -f conftest.err conftest.$ac_ext
4228 # OK, works on sane cases. Now check whether nonexistent headers
4229 # can be detected and how.
4230 cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 #include <ac_nonexistent.h>
4237 _ACEOF
4238 if { (ac_try="$ac_cpp conftest.$ac_ext"
4239 case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242 esac
4243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4244 $as_echo "$ac_try_echo") >&5
4245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } >/dev/null && {
4252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4253 test ! -s conftest.err
4254 }; then
4255 # Broken: success on invalid input.
4256 continue
4257 else
4258 $as_echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4261 # Passes both tests.
4262 ac_preproc_ok=:
4263 break
4266 rm -f conftest.err conftest.$ac_ext
4268 done
4269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4270 rm -f conftest.err conftest.$ac_ext
4271 if $ac_preproc_ok; then
4273 else
4274 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4275 See \`config.log' for more details." >&5
4276 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4277 See \`config.log' for more details." >&2;}
4278 { (exit 1); exit 1; }; }
4281 ac_ext=c
4282 ac_cpp='$CPP $CPPFLAGS'
4283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4289 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4290 if test "${ac_cv_path_GREP+set}" = set; then
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -z "$GREP"; then
4294 ac_path_GREP_found=false
4295 # Loop through the user's path and test for each of PROGNAME-LIST
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_prog in grep ggrep; do
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4304 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4305 # Check for GNU ac_path_GREP and select it if it is found.
4306 # Check for GNU $ac_path_GREP
4307 case `"$ac_path_GREP" --version 2>&1` in
4308 *GNU*)
4309 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4311 ac_count=0
4312 $as_echo_n 0123456789 >"conftest.in"
4313 while :
4315 cat "conftest.in" "conftest.in" >"conftest.tmp"
4316 mv "conftest.tmp" "conftest.in"
4317 cp "conftest.in" "conftest.nl"
4318 $as_echo 'GREP' >> "conftest.nl"
4319 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4321 ac_count=`expr $ac_count + 1`
4322 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4323 # Best one so far, save it but keep looking for a better one
4324 ac_cv_path_GREP="$ac_path_GREP"
4325 ac_path_GREP_max=$ac_count
4327 # 10*(2^10) chars as input seems more than enough
4328 test $ac_count -gt 10 && break
4329 done
4330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4331 esac
4333 $ac_path_GREP_found && break 3
4334 done
4335 done
4336 done
4337 IFS=$as_save_IFS
4338 if test -z "$ac_cv_path_GREP"; then
4339 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4340 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4341 { (exit 1); exit 1; }; }
4343 else
4344 ac_cv_path_GREP=$GREP
4348 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4349 $as_echo "$ac_cv_path_GREP" >&6; }
4350 GREP="$ac_cv_path_GREP"
4353 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4354 $as_echo_n "checking for egrep... " >&6; }
4355 if test "${ac_cv_path_EGREP+set}" = set; then
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4359 then ac_cv_path_EGREP="$GREP -E"
4360 else
4361 if test -z "$EGREP"; then
4362 ac_path_EGREP_found=false
4363 # Loop through the user's path and test for each of PROGNAME-LIST
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_prog in egrep; do
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4372 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4373 # Check for GNU ac_path_EGREP and select it if it is found.
4374 # Check for GNU $ac_path_EGREP
4375 case `"$ac_path_EGREP" --version 2>&1` in
4376 *GNU*)
4377 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4379 ac_count=0
4380 $as_echo_n 0123456789 >"conftest.in"
4381 while :
4383 cat "conftest.in" "conftest.in" >"conftest.tmp"
4384 mv "conftest.tmp" "conftest.in"
4385 cp "conftest.in" "conftest.nl"
4386 $as_echo 'EGREP' >> "conftest.nl"
4387 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4389 ac_count=`expr $ac_count + 1`
4390 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4391 # Best one so far, save it but keep looking for a better one
4392 ac_cv_path_EGREP="$ac_path_EGREP"
4393 ac_path_EGREP_max=$ac_count
4395 # 10*(2^10) chars as input seems more than enough
4396 test $ac_count -gt 10 && break
4397 done
4398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4399 esac
4401 $ac_path_EGREP_found && break 3
4402 done
4403 done
4404 done
4405 IFS=$as_save_IFS
4406 if test -z "$ac_cv_path_EGREP"; then
4407 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4408 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4409 { (exit 1); exit 1; }; }
4411 else
4412 ac_cv_path_EGREP=$EGREP
4417 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4418 $as_echo "$ac_cv_path_EGREP" >&6; }
4419 EGREP="$ac_cv_path_EGREP"
4422 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4423 $as_echo_n "checking for ANSI C header files... " >&6; }
4424 if test "${ac_cv_header_stdc+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4426 else
4427 cat >conftest.$ac_ext <<_ACEOF
4428 /* confdefs.h. */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 #include <stdlib.h>
4434 #include <stdarg.h>
4435 #include <string.h>
4436 #include <float.h>
4439 main ()
4443 return 0;
4445 _ACEOF
4446 rm -f conftest.$ac_objext
4447 if { (ac_try="$ac_compile"
4448 case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4453 $as_echo "$ac_try_echo") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
4464 ac_cv_header_stdc=yes
4465 else
4466 $as_echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 ac_cv_header_stdc=no
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 if test $ac_cv_header_stdc = yes; then
4475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4476 cat >conftest.$ac_ext <<_ACEOF
4477 /* confdefs.h. */
4478 _ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 #include <string.h>
4484 _ACEOF
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "memchr" >/dev/null 2>&1; then
4488 else
4489 ac_cv_header_stdc=no
4491 rm -f conftest*
4495 if test $ac_cv_header_stdc = yes; then
4496 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4497 cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h. */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 #include <stdlib.h>
4505 _ACEOF
4506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4507 $EGREP "free" >/dev/null 2>&1; then
4509 else
4510 ac_cv_header_stdc=no
4512 rm -f conftest*
4516 if test $ac_cv_header_stdc = yes; then
4517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4518 if test "$cross_compiling" = yes; then
4520 else
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 #include <ctype.h>
4528 #include <stdlib.h>
4529 #if ((' ' & 0x0FF) == 0x020)
4530 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4531 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4532 #else
4533 # define ISLOWER(c) \
4534 (('a' <= (c) && (c) <= 'i') \
4535 || ('j' <= (c) && (c) <= 'r') \
4536 || ('s' <= (c) && (c) <= 'z'))
4537 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4538 #endif
4540 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4542 main ()
4544 int i;
4545 for (i = 0; i < 256; i++)
4546 if (XOR (islower (i), ISLOWER (i))
4547 || toupper (i) != TOUPPER (i))
4548 return 2;
4549 return 0;
4551 _ACEOF
4552 rm -f conftest$ac_exeext
4553 if { (ac_try="$ac_link"
4554 case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557 esac
4558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4559 $as_echo "$ac_try_echo") >&5
4560 (eval "$ac_link") 2>&5
4561 ac_status=$?
4562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4564 { (case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4569 $as_echo "$ac_try_echo") >&5
4570 (eval "$ac_try") 2>&5
4571 ac_status=$?
4572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4575 else
4576 $as_echo "$as_me: program exited with status $ac_status" >&5
4577 $as_echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4580 ( exit $ac_status )
4581 ac_cv_header_stdc=no
4583 rm -rf conftest.dSYM
4584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4590 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4591 $as_echo "$ac_cv_header_stdc" >&6; }
4592 if test $ac_cv_header_stdc = yes; then
4594 cat >>confdefs.h <<\_ACEOF
4595 #define STDC_HEADERS 1
4596 _ACEOF
4600 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4610 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4611 inttypes.h stdint.h unistd.h
4613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4615 $as_echo_n "checking for $ac_header... " >&6; }
4616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4617 $as_echo_n "(cached) " >&6
4618 else
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 $ac_includes_default
4627 #include <$ac_header>
4628 _ACEOF
4629 rm -f conftest.$ac_objext
4630 if { (ac_try="$ac_compile"
4631 case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4636 $as_echo "$ac_try_echo") >&5
4637 (eval "$ac_compile") 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } && {
4644 test -z "$ac_c_werror_flag" ||
4645 test ! -s conftest.err
4646 } && test -s conftest.$ac_objext; then
4647 eval "$as_ac_Header=yes"
4648 else
4649 $as_echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4652 eval "$as_ac_Header=no"
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657 ac_res=`eval 'as_val=${'$as_ac_Header'}
4658 $as_echo "$as_val"'`
4659 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4660 $as_echo "$ac_res" >&6; }
4661 if test `eval 'as_val=${'$as_ac_Header'}
4662 $as_echo "$as_val"'` = yes; then
4663 cat >>confdefs.h <<_ACEOF
4664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4665 _ACEOF
4669 done
4673 if test "${ac_cv_header_minix_config_h+set}" = set; then
4674 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4675 $as_echo_n "checking for minix/config.h... " >&6; }
4676 if test "${ac_cv_header_minix_config_h+set}" = set; then
4677 $as_echo_n "(cached) " >&6
4679 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4680 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4681 else
4682 # Is the header compilable?
4683 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4684 $as_echo_n "checking minix/config.h usability... " >&6; }
4685 cat >conftest.$ac_ext <<_ACEOF
4686 /* confdefs.h. */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4691 $ac_includes_default
4692 #include <minix/config.h>
4693 _ACEOF
4694 rm -f conftest.$ac_objext
4695 if { (ac_try="$ac_compile"
4696 case "(($ac_try" in
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4699 esac
4700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4701 $as_echo "$ac_try_echo") >&5
4702 (eval "$ac_compile") 2>conftest.er1
4703 ac_status=$?
4704 grep -v '^ *+' conftest.er1 >conftest.err
4705 rm -f conftest.er1
4706 cat conftest.err >&5
4707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } && {
4709 test -z "$ac_c_werror_flag" ||
4710 test ! -s conftest.err
4711 } && test -s conftest.$ac_objext; then
4712 ac_header_compiler=yes
4713 else
4714 $as_echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 ac_header_compiler=no
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4722 $as_echo "$ac_header_compiler" >&6; }
4724 # Is the header present?
4725 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4726 $as_echo_n "checking minix/config.h presence... " >&6; }
4727 cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h. */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 #include <minix/config.h>
4734 _ACEOF
4735 if { (ac_try="$ac_cpp conftest.$ac_ext"
4736 case "(($ac_try" in
4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4739 esac
4740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4741 $as_echo "$ac_try_echo") >&5
4742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4743 ac_status=$?
4744 grep -v '^ *+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } >/dev/null && {
4749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4750 test ! -s conftest.err
4751 }; then
4752 ac_header_preproc=yes
4753 else
4754 $as_echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4757 ac_header_preproc=no
4760 rm -f conftest.err conftest.$ac_ext
4761 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4762 $as_echo "$ac_header_preproc" >&6; }
4764 # So? What about this header?
4765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4766 yes:no: )
4767 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4768 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4769 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4770 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4771 ac_header_preproc=yes
4773 no:yes:* )
4774 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4775 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4776 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4777 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4778 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4779 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4780 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4781 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4782 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4783 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4784 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4785 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4788 esac
4789 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4790 $as_echo_n "checking for minix/config.h... " >&6; }
4791 if test "${ac_cv_header_minix_config_h+set}" = set; then
4792 $as_echo_n "(cached) " >&6
4793 else
4794 ac_cv_header_minix_config_h=$ac_header_preproc
4796 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4797 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4800 if test $ac_cv_header_minix_config_h = yes; then
4801 MINIX=yes
4802 else
4803 MINIX=
4807 if test "$MINIX" = yes; then
4809 cat >>confdefs.h <<\_ACEOF
4810 #define _POSIX_SOURCE 1
4811 _ACEOF
4814 cat >>confdefs.h <<\_ACEOF
4815 #define _POSIX_1_SOURCE 2
4816 _ACEOF
4819 cat >>confdefs.h <<\_ACEOF
4820 #define _MINIX 1
4821 _ACEOF
4827 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4828 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4829 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4830 $as_echo_n "(cached) " >&6
4831 else
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4839 # define __EXTENSIONS__ 1
4840 $ac_includes_default
4842 main ()
4846 return 0;
4848 _ACEOF
4849 rm -f conftest.$ac_objext
4850 if { (ac_try="$ac_compile"
4851 case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854 esac
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857 (eval "$ac_compile") 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } && {
4864 test -z "$ac_c_werror_flag" ||
4865 test ! -s conftest.err
4866 } && test -s conftest.$ac_objext; then
4867 ac_cv_safe_to_define___extensions__=yes
4868 else
4869 $as_echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 ac_cv_safe_to_define___extensions__=no
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4878 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4879 test $ac_cv_safe_to_define___extensions__ = yes &&
4880 cat >>confdefs.h <<\_ACEOF
4881 #define __EXTENSIONS__ 1
4882 _ACEOF
4884 cat >>confdefs.h <<\_ACEOF
4885 #define _ALL_SOURCE 1
4886 _ACEOF
4888 cat >>confdefs.h <<\_ACEOF
4889 #define _GNU_SOURCE 1
4890 _ACEOF
4892 cat >>confdefs.h <<\_ACEOF
4893 #define _POSIX_PTHREAD_SEMANTICS 1
4894 _ACEOF
4896 cat >>confdefs.h <<\_ACEOF
4897 #define _TANDEM_SOURCE 1
4898 _ACEOF
4902 ### Use -Wno-pointer-sign if the compiler supports it
4903 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4904 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4905 SAVE_CFLAGS="$CFLAGS"
4906 CFLAGS="$CFLAGS -Wno-pointer-sign"
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4915 main ()
4919 return 0;
4921 _ACEOF
4922 rm -f conftest.$ac_objext
4923 if { (ac_try="$ac_compile"
4924 case "(($ac_try" in
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4927 esac
4928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4929 $as_echo "$ac_try_echo") >&5
4930 (eval "$ac_compile") 2>conftest.er1
4931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && {
4937 test -z "$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 } && test -s conftest.$ac_objext; then
4940 has_option=yes
4941 else
4942 $as_echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 has_option=no
4948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 if test $has_option = yes; then
4950 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4952 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4953 $as_echo "$has_option" >&6; }
4954 CFLAGS="$SAVE_CFLAGS"
4955 unset has_option
4956 unset SAVE_CFLAGS
4958 ### Use -Wdeclaration-after-statement if the compiler supports it
4959 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4960 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4961 SAVE_CFLAGS="$CFLAGS"
4962 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4971 main ()
4975 return 0;
4977 _ACEOF
4978 rm -f conftest.$ac_objext
4979 if { (ac_try="$ac_compile"
4980 case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983 esac
4984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4985 $as_echo "$ac_try_echo") >&5
4986 (eval "$ac_compile") 2>conftest.er1
4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } && {
4993 test -z "$ac_c_werror_flag" ||
4994 test ! -s conftest.err
4995 } && test -s conftest.$ac_objext; then
4996 has_option=yes
4997 else
4998 $as_echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5001 has_option=no
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005 if test $has_option = yes; then
5006 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5008 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5009 $as_echo "$has_option" >&6; }
5010 CFLAGS="$SAVE_CFLAGS"
5011 unset has_option
5012 unset SAVE_CFLAGS
5014 #### Some other nice autoconf tests.
5016 ac_ext=c
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5022 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5023 # On Suns, sometimes $CPP names a directory.
5024 if test -n "$CPP" && test -d "$CPP"; then
5025 CPP=
5027 if test -z "$CPP"; then
5028 if test "${ac_cv_prog_CPP+set}" = set; then
5029 $as_echo_n "(cached) " >&6
5030 else
5031 # Double quotes because CPP needs to be expanded
5032 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5034 ac_preproc_ok=false
5035 for ac_c_preproc_warn_flag in '' yes
5037 # Use a header file that comes with gcc, so configuring glibc
5038 # with a fresh cross-compiler works.
5039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040 # <limits.h> exists even on freestanding compilers.
5041 # On the NeXT, cc -E runs the code through the compiler's parser,
5042 # not just through cpp. "Syntax error" is here to catch this case.
5043 cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h. */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 #ifdef __STDC__
5050 # include <limits.h>
5051 #else
5052 # include <assert.h>
5053 #endif
5054 Syntax error
5055 _ACEOF
5056 if { (ac_try="$ac_cpp conftest.$ac_ext"
5057 case "(($ac_try" in
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5060 esac
5061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5062 $as_echo "$ac_try_echo") >&5
5063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } >/dev/null && {
5070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5071 test ! -s conftest.err
5072 }; then
5074 else
5075 $as_echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5078 # Broken: fails on valid input.
5079 continue
5082 rm -f conftest.err conftest.$ac_ext
5084 # OK, works on sane cases. Now check whether nonexistent headers
5085 # can be detected and how.
5086 cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #include <ac_nonexistent.h>
5093 _ACEOF
5094 if { (ac_try="$ac_cpp conftest.$ac_ext"
5095 case "(($ac_try" in
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5098 esac
5099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5100 $as_echo "$ac_try_echo") >&5
5101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5102 ac_status=$?
5103 grep -v '^ *+' conftest.er1 >conftest.err
5104 rm -f conftest.er1
5105 cat conftest.err >&5
5106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } >/dev/null && {
5108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5109 test ! -s conftest.err
5110 }; then
5111 # Broken: success on invalid input.
5112 continue
5113 else
5114 $as_echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5117 # Passes both tests.
5118 ac_preproc_ok=:
5119 break
5122 rm -f conftest.err conftest.$ac_ext
5124 done
5125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5126 rm -f conftest.err conftest.$ac_ext
5127 if $ac_preproc_ok; then
5128 break
5131 done
5132 ac_cv_prog_CPP=$CPP
5135 CPP=$ac_cv_prog_CPP
5136 else
5137 ac_cv_prog_CPP=$CPP
5139 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5140 $as_echo "$CPP" >&6; }
5141 ac_preproc_ok=false
5142 for ac_c_preproc_warn_flag in '' yes
5144 # Use a header file that comes with gcc, so configuring glibc
5145 # with a fresh cross-compiler works.
5146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5147 # <limits.h> exists even on freestanding compilers.
5148 # On the NeXT, cc -E runs the code through the compiler's parser,
5149 # not just through cpp. "Syntax error" is here to catch this case.
5150 cat >conftest.$ac_ext <<_ACEOF
5151 /* confdefs.h. */
5152 _ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5156 #ifdef __STDC__
5157 # include <limits.h>
5158 #else
5159 # include <assert.h>
5160 #endif
5161 Syntax error
5162 _ACEOF
5163 if { (ac_try="$ac_cpp conftest.$ac_ext"
5164 case "(($ac_try" in
5165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5167 esac
5168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5169 $as_echo "$ac_try_echo") >&5
5170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } >/dev/null && {
5177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5179 }; then
5181 else
5182 $as_echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5185 # Broken: fails on valid input.
5186 continue
5189 rm -f conftest.err conftest.$ac_ext
5191 # OK, works on sane cases. Now check whether nonexistent headers
5192 # can be detected and how.
5193 cat >conftest.$ac_ext <<_ACEOF
5194 /* confdefs.h. */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 #include <ac_nonexistent.h>
5200 _ACEOF
5201 if { (ac_try="$ac_cpp conftest.$ac_ext"
5202 case "(($ac_try" in
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5205 esac
5206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5207 $as_echo "$ac_try_echo") >&5
5208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5209 ac_status=$?
5210 grep -v '^ *+' conftest.er1 >conftest.err
5211 rm -f conftest.er1
5212 cat conftest.err >&5
5213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } >/dev/null && {
5215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5216 test ! -s conftest.err
5217 }; then
5218 # Broken: success on invalid input.
5219 continue
5220 else
5221 $as_echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5224 # Passes both tests.
5225 ac_preproc_ok=:
5226 break
5229 rm -f conftest.err conftest.$ac_ext
5231 done
5232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5233 rm -f conftest.err conftest.$ac_ext
5234 if $ac_preproc_ok; then
5236 else
5237 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5238 See \`config.log' for more details." >&5
5239 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5240 See \`config.log' for more details." >&2;}
5241 { (exit 1); exit 1; }; }
5244 ac_ext=c
5245 ac_cpp='$CPP $CPPFLAGS'
5246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250 # Find a good install program. We prefer a C program (faster),
5251 # so one script is as good as another. But avoid the broken or
5252 # incompatible versions:
5253 # SysV /etc/install, /usr/sbin/install
5254 # SunOS /usr/etc/install
5255 # IRIX /sbin/install
5256 # AIX /bin/install
5257 # AmigaOS /C/install, which installs bootblocks on floppy discs
5258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5261 # OS/2's system install, which has a completely different semantic
5262 # ./install, which can be erroneously created by make from ./install.sh.
5263 # Reject install programs that cannot install multiple files.
5264 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5265 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5266 if test -z "$INSTALL"; then
5267 if test "${ac_cv_path_install+set}" = set; then
5268 $as_echo_n "(cached) " >&6
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 # Account for people who put trailing slashes in PATH elements.
5276 case $as_dir/ in
5277 ./ | .// | /cC/* | \
5278 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5279 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5280 /usr/ucb/* ) ;;
5282 # OSF1 and SCO ODT 3.0 have their own names for install.
5283 # Don't use installbsd from OSF since it installs stuff as root
5284 # by default.
5285 for ac_prog in ginstall scoinst install; do
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5288 if test $ac_prog = install &&
5289 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5290 # AIX install. It has an incompatible calling convention.
5292 elif test $ac_prog = install &&
5293 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5294 # program-specific install script used by HP pwplus--don't use.
5296 else
5297 rm -rf conftest.one conftest.two conftest.dir
5298 echo one > conftest.one
5299 echo two > conftest.two
5300 mkdir conftest.dir
5301 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5302 test -s conftest.one && test -s conftest.two &&
5303 test -s conftest.dir/conftest.one &&
5304 test -s conftest.dir/conftest.two
5305 then
5306 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5307 break 3
5311 done
5312 done
5314 esac
5316 done
5317 IFS=$as_save_IFS
5319 rm -rf conftest.one conftest.two conftest.dir
5322 if test "${ac_cv_path_install+set}" = set; then
5323 INSTALL=$ac_cv_path_install
5324 else
5325 # As a last resort, use the slow shell script. Don't cache a
5326 # value for INSTALL within a source directory, because that will
5327 # break other packages using the cache if that directory is
5328 # removed, or if the value is a relative name.
5329 INSTALL=$ac_install_sh
5332 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5333 $as_echo "$INSTALL" >&6; }
5335 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5336 # It thinks the first close brace ends the variable substitution.
5337 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5339 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5341 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5343 if test "x$RANLIB" = x; then
5344 if test -n "$ac_tool_prefix"; then
5345 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5346 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_prog_RANLIB+set}" = set; then
5350 $as_echo_n "(cached) " >&6
5351 else
5352 if test -n "$RANLIB"; then
5353 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5366 done
5367 done
5368 IFS=$as_save_IFS
5372 RANLIB=$ac_cv_prog_RANLIB
5373 if test -n "$RANLIB"; then
5374 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5375 $as_echo "$RANLIB" >&6; }
5376 else
5377 { $as_echo "$as_me:$LINENO: result: no" >&5
5378 $as_echo "no" >&6; }
5383 if test -z "$ac_cv_prog_RANLIB"; then
5384 ac_ct_RANLIB=$RANLIB
5385 # Extract the first word of "ranlib", so it can be a program name with args.
5386 set dummy ranlib; ac_word=$2
5387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5390 $as_echo_n "(cached) " >&6
5391 else
5392 if test -n "$ac_ct_RANLIB"; then
5393 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402 ac_cv_prog_ac_ct_RANLIB="ranlib"
5403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5406 done
5407 done
5408 IFS=$as_save_IFS
5412 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5413 if test -n "$ac_ct_RANLIB"; then
5414 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5415 $as_echo "$ac_ct_RANLIB" >&6; }
5416 else
5417 { $as_echo "$as_me:$LINENO: result: no" >&5
5418 $as_echo "no" >&6; }
5421 if test "x$ac_ct_RANLIB" = x; then
5422 RANLIB=":"
5423 else
5424 case $cross_compiling:$ac_tool_warned in
5425 yes:)
5426 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5427 whose name does not start with the host triplet. If you think this
5428 configuration is useful to you, please write to autoconf@gnu.org." >&5
5429 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5430 whose name does not start with the host triplet. If you think this
5431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5432 ac_tool_warned=yes ;;
5433 esac
5434 RANLIB=$ac_ct_RANLIB
5436 else
5437 RANLIB="$ac_cv_prog_RANLIB"
5442 ## Although we're running on an amd64 kernel, we're actually compiling for
5443 ## the x86 architecture. The user should probably have provided an
5444 ## explicit --build to `configure', but if everything else than the kernel
5445 ## is running in i386 mode, we can help them out.
5446 if test "$machine" = "amdx86-64"; then
5447 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5448 $as_echo_n "checking whether i386 is declared... " >&6; }
5449 if test "${ac_cv_have_decl_i386+set}" = set; then
5450 $as_echo_n "(cached) " >&6
5451 else
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 $ac_includes_default
5460 main ()
5462 #ifndef i386
5463 (void) i386;
5464 #endif
5467 return 0;
5469 _ACEOF
5470 rm -f conftest.$ac_objext
5471 if { (ac_try="$ac_compile"
5472 case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5477 $as_echo "$ac_try_echo") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5479 ac_status=$?
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && {
5485 test -z "$ac_c_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest.$ac_objext; then
5488 ac_cv_have_decl_i386=yes
5489 else
5490 $as_echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5493 ac_cv_have_decl_i386=no
5496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5499 $as_echo "$ac_cv_have_decl_i386" >&6; }
5501 if test "$ac_cv_have_decl_i386" = "yes"; then
5502 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5503 machine=intel386
5504 machfile="m/${machine}.h"
5508 # Extract the first word of "install-info", so it can be a program name with args.
5509 set dummy install-info; ac_word=$2
5510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5513 $as_echo_n "(cached) " >&6
5514 else
5515 case $INSTALL_INFO in
5516 [\\/]* | ?:[\\/]*)
5517 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5531 done
5532 done
5533 IFS=$as_save_IFS
5536 esac
5538 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5539 if test -n "$INSTALL_INFO"; then
5540 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5541 $as_echo "$INSTALL_INFO" >&6; }
5542 else
5543 { $as_echo "$as_me:$LINENO: result: no" >&5
5544 $as_echo "no" >&6; }
5548 # Extract the first word of "install-info", so it can be a program name with args.
5549 set dummy install-info; ac_word=$2
5550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5553 $as_echo_n "(cached) " >&6
5554 else
5555 case $INSTALL_INFO in
5556 [\\/]* | ?:[\\/]*)
5557 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in /usr/sbin
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 break 2
5571 done
5572 done
5573 IFS=$as_save_IFS
5576 esac
5578 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5579 if test -n "$INSTALL_INFO"; then
5580 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5581 $as_echo "$INSTALL_INFO" >&6; }
5582 else
5583 { $as_echo "$as_me:$LINENO: result: no" >&5
5584 $as_echo "no" >&6; }
5588 # Extract the first word of "install-info", so it can be a program name with args.
5589 set dummy install-info; ac_word=$2
5590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5593 $as_echo_n "(cached) " >&6
5594 else
5595 case $INSTALL_INFO in
5596 [\\/]* | ?:[\\/]*)
5597 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in /sbin
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5611 done
5612 done
5613 IFS=$as_save_IFS
5615 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5617 esac
5619 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5620 if test -n "$INSTALL_INFO"; then
5621 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5622 $as_echo "$INSTALL_INFO" >&6; }
5623 else
5624 { $as_echo "$as_me:$LINENO: result: no" >&5
5625 $as_echo "no" >&6; }
5629 # Extract the first word of "gzip", so it can be a program name with args.
5630 set dummy gzip; ac_word=$2
5631 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5634 $as_echo_n "(cached) " >&6
5635 else
5636 case $GZIP_PROG in
5637 [\\/]* | ?:[\\/]*)
5638 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5652 done
5653 done
5654 IFS=$as_save_IFS
5657 esac
5659 GZIP_PROG=$ac_cv_path_GZIP_PROG
5660 if test -n "$GZIP_PROG"; then
5661 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5662 $as_echo "$GZIP_PROG" >&6; }
5663 else
5664 { $as_echo "$as_me:$LINENO: result: no" >&5
5665 $as_echo "no" >&6; }
5671 ## Need makeinfo >= 4.6 (?) to build the manuals.
5672 # Extract the first word of "makeinfo", so it can be a program name with args.
5673 set dummy makeinfo; ac_word=$2
5674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5677 $as_echo_n "(cached) " >&6
5678 else
5679 case $MAKEINFO in
5680 [\\/]* | ?:[\\/]*)
5681 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5691 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5695 done
5696 done
5697 IFS=$as_save_IFS
5699 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5701 esac
5703 MAKEINFO=$ac_cv_path_MAKEINFO
5704 if test -n "$MAKEINFO"; then
5705 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5706 $as_echo "$MAKEINFO" >&6; }
5707 else
5708 { $as_echo "$as_me:$LINENO: result: no" >&5
5709 $as_echo "no" >&6; }
5713 if test "$MAKEINFO" != "no" && \
5714 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
5715 MAKEINFO=no
5718 ## Makeinfo is unusual. For a released Emacs, the manuals are
5719 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5720 ## therefore in the category of "special tools" not normally required, which
5721 ## configure does not have to check for (eg autoconf itself).
5722 ## In a Bazaar checkout on the other hand, the manuals are not included.
5723 ## So makeinfo is a requirement to build from Bazaar, and configure
5724 ## should test for it as it does for any other build requirement.
5725 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5726 ## with pre-built manuals, from a Bazaar checkout.
5727 if test "$MAKEINFO" = "no"; then
5728 if test "x${with_makeinfo}" = "xno"; then
5729 MAKEINFO=off
5730 elif test ! -e $srcdir/info/emacs; then
5731 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5732 source tree does not seem to have pre-built manuals in the \`info' directory.
5733 Either install a suitable version of makeinfo, or re-run configure
5734 with the \`--without-makeinfo' option to build without the manuals. " >&5
5735 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5736 source tree does not seem to have pre-built manuals in the \`info' directory.
5737 Either install a suitable version of makeinfo, or re-run configure
5738 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5739 { (exit 1); exit 1; }; }
5744 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5745 then
5746 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5749 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5750 then
5751 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5755 late_LDFLAGS=$LDFLAGS
5756 if test "$GCC" = yes; then
5757 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5758 else
5759 LDFLAGS="$LDFLAGS -znocombreloc"
5762 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5763 $as_echo_n "checking for -znocombreloc... " >&6; }
5764 cat >conftest.$ac_ext <<_ACEOF
5765 main(){return 0;}
5766 _ACEOF
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (ac_try="$ac_link"
5769 case "(($ac_try" in
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5772 esac
5773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5774 $as_echo "$ac_try_echo") >&5
5775 (eval "$ac_link") 2>conftest.er1
5776 ac_status=$?
5777 grep -v '^ *+' conftest.er1 >conftest.err
5778 rm -f conftest.er1
5779 cat conftest.err >&5
5780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } && {
5782 test -z "$ac_c_werror_flag" ||
5783 test ! -s conftest.err
5784 } && test -s conftest$ac_exeext && {
5785 test "$cross_compiling" = yes ||
5786 $as_test_x conftest$ac_exeext
5787 }; then
5788 { $as_echo "$as_me:$LINENO: result: yes" >&5
5789 $as_echo "yes" >&6; }
5790 else
5791 $as_echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5794 LDFLAGS=$late_LDFLAGS
5795 { $as_echo "$as_me:$LINENO: result: no" >&5
5796 $as_echo "no" >&6; }
5799 rm -rf conftest.dSYM
5800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5801 conftest$ac_exeext conftest.$ac_ext
5803 #### Extract some information from the operating system and machine files.
5805 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5806 - which libraries the lib-src programs will want, and
5807 - whether the GNU malloc routines are usable..." >&5
5808 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5809 - which libraries the lib-src programs will want, and
5810 - whether the GNU malloc routines are usable..." >&6;}
5812 ### First figure out CFLAGS (which we use for running the compiler here)
5813 ### and REAL_CFLAGS (which we use for real compilation).
5814 ### The two are the same except on a few systems, where they are made
5815 ### different to work around various lossages. For example,
5816 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5817 ### as implying static linking.
5819 ### If the CFLAGS env var is specified, we use that value
5820 ### instead of the default.
5822 ### It's not important that this name contain the PID; you can't run
5823 ### two configures in the same directory and have anything work
5824 ### anyway.
5825 tempcname="conftest.c"
5827 echo '
5828 #include "'${srcdir}'/src/'${opsysfile}'"
5829 #include "'${srcdir}'/src/'${machfile}'"
5831 configure___ LIBX=-lX11
5833 configure___ unexec=UNEXEC
5835 #ifdef CANNOT_DUMP
5836 configure___ cannot_dump=yes
5837 #else
5838 configure___ cannot_dump=no
5839 #endif
5841 #ifdef SYSTEM_MALLOC
5842 configure___ system_malloc=yes
5843 #else
5844 configure___ system_malloc=no
5845 #endif
5847 #ifdef USE_MMAP_FOR_BUFFERS
5848 configure___ use_mmap_for_buffers=yes
5849 #else
5850 configure___ use_mmap_for_buffers=no
5851 #endif
5853 #ifndef C_OPTIMIZE_SWITCH
5854 #ifdef __GNUC__
5855 #define C_OPTIMIZE_SWITCH -O2
5856 #else
5857 #define C_OPTIMIZE_SWITCH -O
5858 #endif
5859 #endif
5861 #ifndef C_WARNINGS_SWITCH
5862 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5863 #endif
5865 #ifdef THIS_IS_CONFIGURE
5867 /* Get the CFLAGS for tests in configure. */
5868 #ifdef __GNUC__
5869 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5870 #else
5871 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5872 #endif
5874 #else /* not THIS_IS_CONFIGURE */
5876 /* Get the CFLAGS for real compilation. */
5877 #ifdef __GNUC__
5878 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5879 #else
5880 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5881 #endif
5883 #endif /* not THIS_IS_CONFIGURE */
5884 ' > ${tempcname}
5886 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5888 # The value of CPP is a quoted variable reference, so we need to do this
5889 # to get its actual value...
5890 CPP=`eval "echo $CPP"`
5891 eval `${CPP} -Isrc ${tempcname} \
5892 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5893 if test "x$SPECIFIED_CFLAGS" = x; then
5894 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5895 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5896 else
5897 REAL_CFLAGS="$CFLAGS"
5899 rm ${tempcname}
5905 LD_SWITCH_SYSTEM=
5906 case "$opsys" in
5907 freebsd)
5908 ## Let `ld' find image libs and similar things in /usr/local/lib.
5909 ## The system compiler, GCC, has apparently been modified to not
5910 ## look there, contrary to what a stock GCC would do.
5911 LD_SWITCH_SYSTEM=-L/usr/local/lib
5914 gnu-linux)
5915 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5916 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5919 netbsd)
5920 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5923 openbsd)
5924 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5925 ## otherwise Emacs dumps core on elf systems.
5926 LD_SWITCH_SYSTEM="-Z"
5928 esac
5931 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5933 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5934 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5935 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5936 ## values in configure and the Makefiles. How helpful.
5937 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5938 case "$opsys" in
5939 gnu-linux)
5940 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5941 LD_SWITCH_SYSTEM="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5943 netbsd|openbsd)
5944 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5945 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5946 esac
5949 C_SWITCH_MACHINE=
5950 if test "$machine" = "alpha"; then
5951 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5952 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5953 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5954 $as_echo_n "(cached) " >&6
5955 else
5956 cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h. */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 $ac_includes_default
5964 main ()
5966 #ifndef __ELF__
5967 (void) __ELF__;
5968 #endif
5971 return 0;
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (ac_try="$ac_compile"
5976 case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5981 $as_echo "$ac_try_echo") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest.$ac_objext; then
5992 ac_cv_have_decl___ELF__=yes
5993 else
5994 $as_echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_cv_have_decl___ELF__=no
6000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6003 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6005 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6006 ## With ELF, make sure that all common symbols get allocated to in the
6007 ## data section. Otherwise, the dump of temacs may miss variables in
6008 ## the shared library that have been initialized. For example, with
6009 ## GNU libc, __malloc_initialized would normally be resolved to the
6010 ## shared library's .bss section, which is fatal.
6011 if test "x$GCC" = "xyes"; then
6012 C_SWITCH_MACHINE="-fno-common"
6013 else
6014 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6015 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6016 { (exit 1); exit 1; }; }
6023 C_SWITCH_SYSTEM=
6024 ## Some programs in src produce warnings saying certain subprograms
6025 ## are too complex and need a MAXMEM value greater than 2000 for
6026 ## additional optimization. --nils@exp-math.uni-essen.de
6027 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6028 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6029 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6030 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6034 LIBS_SYSTEM=
6035 case "$opsys" in
6036 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6037 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6039 freebsd) LIBS_SYSTEM="-lutil" ;;
6041 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6043 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6045 ## Motif needs -lgen.
6046 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6047 esac
6051 ### Make sure subsequent tests use flags consistent with the build flags.
6053 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6054 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6055 else
6056 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6061 # Check whether --enable-largefile was given.
6062 if test "${enable_largefile+set}" = set; then
6063 enableval=$enable_largefile;
6066 if test "$enable_largefile" != no; then
6068 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6069 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6070 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6071 $as_echo_n "(cached) " >&6
6072 else
6073 ac_cv_sys_largefile_CC=no
6074 if test "$GCC" != yes; then
6075 ac_save_CC=$CC
6076 while :; do
6077 # IRIX 6.2 and later do not support large files by default,
6078 # so use the C compiler's -n32 option if that helps.
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <sys/types.h>
6086 /* Check that off_t can represent 2**63 - 1 correctly.
6087 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6088 since some C++ compilers masquerading as C compilers
6089 incorrectly reject 9223372036854775807. */
6090 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6091 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6092 && LARGE_OFF_T % 2147483647 == 1)
6093 ? 1 : -1];
6095 main ()
6099 return 0;
6101 _ACEOF
6102 rm -f conftest.$ac_objext
6103 if { (ac_try="$ac_compile"
6104 case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107 esac
6108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6109 $as_echo "$ac_try_echo") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6120 break
6121 else
6122 $as_echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6128 rm -f core conftest.err conftest.$ac_objext
6129 CC="$CC -n32"
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6132 case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135 esac
6136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137 $as_echo "$ac_try_echo") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.$ac_objext; then
6148 ac_cv_sys_largefile_CC=' -n32'; break
6149 else
6150 $as_echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6156 rm -f core conftest.err conftest.$ac_objext
6157 break
6158 done
6159 CC=$ac_save_CC
6160 rm -f conftest.$ac_ext
6163 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6164 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6165 if test "$ac_cv_sys_largefile_CC" != no; then
6166 CC=$CC$ac_cv_sys_largefile_CC
6169 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6170 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6171 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6173 else
6174 while :; do
6175 cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h. */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 #include <sys/types.h>
6182 /* Check that off_t can represent 2**63 - 1 correctly.
6183 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6184 since some C++ compilers masquerading as C compilers
6185 incorrectly reject 9223372036854775807. */
6186 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6188 && LARGE_OFF_T % 2147483647 == 1)
6189 ? 1 : -1];
6191 main ()
6195 return 0;
6197 _ACEOF
6198 rm -f conftest.$ac_objext
6199 if { (ac_try="$ac_compile"
6200 case "(($ac_try" in
6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202 *) ac_try_echo=$ac_try;;
6203 esac
6204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6205 $as_echo "$ac_try_echo") >&5
6206 (eval "$ac_compile") 2>conftest.er1
6207 ac_status=$?
6208 grep -v '^ *+' conftest.er1 >conftest.err
6209 rm -f conftest.er1
6210 cat conftest.err >&5
6211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } && {
6213 test -z "$ac_c_werror_flag" ||
6214 test ! -s conftest.err
6215 } && test -s conftest.$ac_objext; then
6216 ac_cv_sys_file_offset_bits=no; break
6217 else
6218 $as_echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225 cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h. */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 #define _FILE_OFFSET_BITS 64
6232 #include <sys/types.h>
6233 /* Check that off_t can represent 2**63 - 1 correctly.
6234 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6235 since some C++ compilers masquerading as C compilers
6236 incorrectly reject 9223372036854775807. */
6237 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6238 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6239 && LARGE_OFF_T % 2147483647 == 1)
6240 ? 1 : -1];
6242 main ()
6246 return 0;
6248 _ACEOF
6249 rm -f conftest.$ac_objext
6250 if { (ac_try="$ac_compile"
6251 case "(($ac_try" in
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6254 esac
6255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6256 $as_echo "$ac_try_echo") >&5
6257 (eval "$ac_compile") 2>conftest.er1
6258 ac_status=$?
6259 grep -v '^ *+' conftest.er1 >conftest.err
6260 rm -f conftest.er1
6261 cat conftest.err >&5
6262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest.$ac_objext; then
6267 ac_cv_sys_file_offset_bits=64; break
6268 else
6269 $as_echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 ac_cv_sys_file_offset_bits=unknown
6277 break
6278 done
6280 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6281 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6282 case $ac_cv_sys_file_offset_bits in #(
6283 no | unknown) ;;
6285 cat >>confdefs.h <<_ACEOF
6286 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6287 _ACEOF
6289 esac
6290 rm -rf conftest*
6291 if test $ac_cv_sys_file_offset_bits = unknown; then
6292 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6293 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6294 if test "${ac_cv_sys_large_files+set}" = set; then
6295 $as_echo_n "(cached) " >&6
6296 else
6297 while :; do
6298 cat >conftest.$ac_ext <<_ACEOF
6299 /* confdefs.h. */
6300 _ACEOF
6301 cat confdefs.h >>conftest.$ac_ext
6302 cat >>conftest.$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6304 #include <sys/types.h>
6305 /* Check that off_t can represent 2**63 - 1 correctly.
6306 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6307 since some C++ compilers masquerading as C compilers
6308 incorrectly reject 9223372036854775807. */
6309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6311 && LARGE_OFF_T % 2147483647 == 1)
6312 ? 1 : -1];
6314 main ()
6318 return 0;
6320 _ACEOF
6321 rm -f conftest.$ac_objext
6322 if { (ac_try="$ac_compile"
6323 case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326 esac
6327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6328 $as_echo "$ac_try_echo") >&5
6329 (eval "$ac_compile") 2>conftest.er1
6330 ac_status=$?
6331 grep -v '^ *+' conftest.er1 >conftest.err
6332 rm -f conftest.er1
6333 cat conftest.err >&5
6334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } && {
6336 test -z "$ac_c_werror_flag" ||
6337 test ! -s conftest.err
6338 } && test -s conftest.$ac_objext; then
6339 ac_cv_sys_large_files=no; break
6340 else
6341 $as_echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348 cat >conftest.$ac_ext <<_ACEOF
6349 /* confdefs.h. */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6354 #define _LARGE_FILES 1
6355 #include <sys/types.h>
6356 /* Check that off_t can represent 2**63 - 1 correctly.
6357 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6358 since some C++ compilers masquerading as C compilers
6359 incorrectly reject 9223372036854775807. */
6360 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6361 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6362 && LARGE_OFF_T % 2147483647 == 1)
6363 ? 1 : -1];
6365 main ()
6369 return 0;
6371 _ACEOF
6372 rm -f conftest.$ac_objext
6373 if { (ac_try="$ac_compile"
6374 case "(($ac_try" in
6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6377 esac
6378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6379 $as_echo "$ac_try_echo") >&5
6380 (eval "$ac_compile") 2>conftest.er1
6381 ac_status=$?
6382 grep -v '^ *+' conftest.er1 >conftest.err
6383 rm -f conftest.er1
6384 cat conftest.err >&5
6385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && {
6387 test -z "$ac_c_werror_flag" ||
6388 test ! -s conftest.err
6389 } && test -s conftest.$ac_objext; then
6390 ac_cv_sys_large_files=1; break
6391 else
6392 $as_echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 ac_cv_sys_large_files=unknown
6400 break
6401 done
6403 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6404 $as_echo "$ac_cv_sys_large_files" >&6; }
6405 case $ac_cv_sys_large_files in #(
6406 no | unknown) ;;
6408 cat >>confdefs.h <<_ACEOF
6409 #define _LARGE_FILES $ac_cv_sys_large_files
6410 _ACEOF
6412 esac
6413 rm -rf conftest*
6419 ## If user specified a crt-dir, use that unconditionally.
6420 if test "X$CRT_DIR" = "X"; then
6422 case "$canonical" in
6423 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6424 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6425 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6426 ## For anything else (eg /usr/lib32), it is up the user to specify
6427 ## the location (bug#5655).
6428 ## Test for crtn.o, not just the directory, because sometimes the
6429 ## directory exists but does not have the relevant files (bug#1287).
6430 ## FIXME better to test for binary compatibility somehow.
6431 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6434 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6435 esac
6437 case "$opsys" in
6438 hpux10-20) CRT_DIR=/lib ;;
6439 esac
6441 ## Default is /usr/lib.
6442 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6444 else
6446 ## Some platforms don't use any of these files, so it is not
6447 ## appropriate to put this test outside the if block.
6448 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6449 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6450 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6451 { (exit 1); exit 1; }; }
6457 LIB_MATH=-lm
6458 LIB_STANDARD=
6459 START_FILES=
6461 case $opsys in
6462 cygwin )
6463 LIB_MATH=
6464 START_FILES='ecrt0.o'
6466 darwin )
6467 ## Adding -lm confuses the dynamic linker, so omit it.
6468 LIB_MATH=
6469 START_FILES='pre-crt0.o'
6471 freebsd )
6472 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6473 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6475 gnu-linux | gnu-kfreebsd )
6476 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6477 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6479 hpux10-20 | hpux11 )
6480 LIB_STANDARD=-lc
6481 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6483 netbsd | openbsd )
6484 if test -f $CRT_DIR/crti.o; then
6485 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6486 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6487 else
6488 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6489 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6492 esac
6500 if test "${with_sound}" != "no"; then
6501 # Sound support for GNU/Linux and the free BSDs.
6505 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6509 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6510 $as_echo_n "checking for $ac_header... " >&6; }
6511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6512 $as_echo_n "(cached) " >&6
6514 ac_res=`eval 'as_val=${'$as_ac_Header'}
6515 $as_echo "$as_val"'`
6516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6517 $as_echo "$ac_res" >&6; }
6518 else
6519 # Is the header compilable?
6520 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6521 $as_echo_n "checking $ac_header usability... " >&6; }
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 $ac_includes_default
6529 #include <$ac_header>
6530 _ACEOF
6531 rm -f conftest.$ac_objext
6532 if { (ac_try="$ac_compile"
6533 case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536 esac
6537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6538 $as_echo "$ac_try_echo") >&5
6539 (eval "$ac_compile") 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest.$ac_objext; then
6549 ac_header_compiler=yes
6550 else
6551 $as_echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6554 ac_header_compiler=no
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6559 $as_echo "$ac_header_compiler" >&6; }
6561 # Is the header present?
6562 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6563 $as_echo_n "checking $ac_header presence... " >&6; }
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 #include <$ac_header>
6571 _ACEOF
6572 if { (ac_try="$ac_cpp conftest.$ac_ext"
6573 case "(($ac_try" in
6574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575 *) ac_try_echo=$ac_try;;
6576 esac
6577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6578 $as_echo "$ac_try_echo") >&5
6579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } >/dev/null && {
6586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 }; then
6589 ac_header_preproc=yes
6590 else
6591 $as_echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 ac_header_preproc=no
6597 rm -f conftest.err conftest.$ac_ext
6598 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6599 $as_echo "$ac_header_preproc" >&6; }
6601 # So? What about this header?
6602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6603 yes:no: )
6604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6605 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6607 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6608 ac_header_preproc=yes
6610 no:yes:* )
6611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6612 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6614 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6616 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6618 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6620 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6622 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6625 esac
6626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6627 $as_echo_n "checking for $ac_header... " >&6; }
6628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6629 $as_echo_n "(cached) " >&6
6630 else
6631 eval "$as_ac_Header=\$ac_header_preproc"
6633 ac_res=`eval 'as_val=${'$as_ac_Header'}
6634 $as_echo "$as_val"'`
6635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6636 $as_echo "$ac_res" >&6; }
6639 if test `eval 'as_val=${'$as_ac_Header'}
6640 $as_echo "$as_val"'` = yes; then
6641 cat >>confdefs.h <<_ACEOF
6642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6643 _ACEOF
6647 done
6649 # Emulation library used on NetBSD.
6650 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6651 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6652 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6653 $as_echo_n "(cached) " >&6
6654 else
6655 ac_check_lib_save_LIBS=$LIBS
6656 LIBS="-lossaudio $LIBS"
6657 cat >conftest.$ac_ext <<_ACEOF
6658 /* confdefs.h. */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6664 /* Override any GCC internal prototype to avoid an error.
6665 Use char because int might match the return type of a GCC
6666 builtin and then its argument prototype would still apply. */
6667 #ifdef __cplusplus
6668 extern "C"
6669 #endif
6670 char _oss_ioctl ();
6672 main ()
6674 return _oss_ioctl ();
6676 return 0;
6678 _ACEOF
6679 rm -f conftest.$ac_objext conftest$ac_exeext
6680 if { (ac_try="$ac_link"
6681 case "(($ac_try" in
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6684 esac
6685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6686 $as_echo "$ac_try_echo") >&5
6687 (eval "$ac_link") 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && {
6694 test -z "$ac_c_werror_flag" ||
6695 test ! -s conftest.err
6696 } && test -s conftest$ac_exeext && {
6697 test "$cross_compiling" = yes ||
6698 $as_test_x conftest$ac_exeext
6699 }; then
6700 ac_cv_lib_ossaudio__oss_ioctl=yes
6701 else
6702 $as_echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6705 ac_cv_lib_ossaudio__oss_ioctl=no
6708 rm -rf conftest.dSYM
6709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6710 conftest$ac_exeext conftest.$ac_ext
6711 LIBS=$ac_check_lib_save_LIBS
6713 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6714 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6715 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6716 LIBSOUND=-lossaudio
6717 else
6718 LIBSOUND=
6723 ALSA_REQUIRED=1.0.0
6724 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6726 succeeded=no
6728 # Extract the first word of "pkg-config", so it can be a program name with args.
6729 set dummy pkg-config; ac_word=$2
6730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6733 $as_echo_n "(cached) " >&6
6734 else
6735 case $PKG_CONFIG in
6736 [\\/]* | ?:[\\/]*)
6737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6751 done
6752 done
6753 IFS=$as_save_IFS
6755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6757 esac
6759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6760 if test -n "$PKG_CONFIG"; then
6761 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6762 $as_echo "$PKG_CONFIG" >&6; }
6763 else
6764 { $as_echo "$as_me:$LINENO: result: no" >&5
6765 $as_echo "no" >&6; }
6770 if test "$PKG_CONFIG" = "no" ; then
6771 HAVE_ALSA=no
6772 else
6773 PKG_CONFIG_MIN_VERSION=0.9.0
6774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6775 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6776 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6778 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6779 { $as_echo "$as_me:$LINENO: result: yes" >&5
6780 $as_echo "yes" >&6; }
6781 succeeded=yes
6783 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6784 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6785 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6786 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6787 $as_echo "$ALSA_CFLAGS" >&6; }
6789 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6790 $as_echo_n "checking ALSA_LIBS... " >&6; }
6791 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6792 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6793 $as_echo "$ALSA_LIBS" >&6; }
6794 else
6795 { $as_echo "$as_me:$LINENO: result: no" >&5
6796 $as_echo "no" >&6; }
6797 ALSA_CFLAGS=""
6798 ALSA_LIBS=""
6799 ## If we have a custom action on failure, don't print errors, but
6800 ## do set a variable so people can do so.
6801 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6807 else
6808 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6809 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6813 if test $succeeded = yes; then
6814 HAVE_ALSA=yes
6815 else
6816 HAVE_ALSA=no
6819 if test $HAVE_ALSA = yes; then
6820 SAVE_CFLAGS="$CFLAGS"
6821 SAVE_LDFLAGS="$LDFLAGS"
6822 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6823 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6824 cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h. */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 #include <asoundlib.h>
6832 main ()
6834 snd_lib_error_set_handler (0);
6836 return 0;
6838 _ACEOF
6839 rm -f conftest.$ac_objext
6840 if { (ac_try="$ac_compile"
6841 case "(($ac_try" in
6842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6843 *) ac_try_echo=$ac_try;;
6844 esac
6845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6846 $as_echo "$ac_try_echo") >&5
6847 (eval "$ac_compile") 2>conftest.er1
6848 ac_status=$?
6849 grep -v '^ *+' conftest.er1 >conftest.err
6850 rm -f conftest.er1
6851 cat conftest.err >&5
6852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } && {
6854 test -z "$ac_c_werror_flag" ||
6855 test ! -s conftest.err
6856 } && test -s conftest.$ac_objext; then
6857 emacs_alsa_normal=yes
6858 else
6859 $as_echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6862 emacs_alsa_normal=no
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866 if test "$emacs_alsa_normal" != yes; then
6867 cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h. */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 #include <alsa/asoundlib.h>
6875 main ()
6877 snd_lib_error_set_handler (0);
6879 return 0;
6881 _ACEOF
6882 rm -f conftest.$ac_objext
6883 if { (ac_try="$ac_compile"
6884 case "(($ac_try" in
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6887 esac
6888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6889 $as_echo "$ac_try_echo") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.$ac_objext; then
6900 emacs_alsa_subdir=yes
6901 else
6902 $as_echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6905 emacs_alsa_subdir=no
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 if test "$emacs_alsa_subdir" != yes; then
6910 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6911 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6912 { (exit 1); exit 1; }; }
6914 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6917 CFLAGS="$SAVE_CFLAGS"
6918 LDFLAGS="$SAVE_LDFLAGS"
6919 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6920 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6922 cat >>confdefs.h <<\_ACEOF
6923 #define HAVE_ALSA 1
6924 _ACEOF
6955 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6956 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6957 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6958 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6959 sys/utsname.h pwd.h utmp.h
6961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6963 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6964 $as_echo_n "checking for $ac_header... " >&6; }
6965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6966 $as_echo_n "(cached) " >&6
6968 ac_res=`eval 'as_val=${'$as_ac_Header'}
6969 $as_echo "$as_val"'`
6970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6971 $as_echo "$ac_res" >&6; }
6972 else
6973 # Is the header compilable?
6974 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6975 $as_echo_n "checking $ac_header usability... " >&6; }
6976 cat >conftest.$ac_ext <<_ACEOF
6977 /* confdefs.h. */
6978 _ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6982 $ac_includes_default
6983 #include <$ac_header>
6984 _ACEOF
6985 rm -f conftest.$ac_objext
6986 if { (ac_try="$ac_compile"
6987 case "(($ac_try" in
6988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6989 *) ac_try_echo=$ac_try;;
6990 esac
6991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6992 $as_echo "$ac_try_echo") >&5
6993 (eval "$ac_compile") 2>conftest.er1
6994 ac_status=$?
6995 grep -v '^ *+' conftest.er1 >conftest.err
6996 rm -f conftest.er1
6997 cat conftest.err >&5
6998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } && {
7000 test -z "$ac_c_werror_flag" ||
7001 test ! -s conftest.err
7002 } && test -s conftest.$ac_objext; then
7003 ac_header_compiler=yes
7004 else
7005 $as_echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7008 ac_header_compiler=no
7011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7013 $as_echo "$ac_header_compiler" >&6; }
7015 # Is the header present?
7016 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7017 $as_echo_n "checking $ac_header presence... " >&6; }
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 #include <$ac_header>
7025 _ACEOF
7026 if { (ac_try="$ac_cpp conftest.$ac_ext"
7027 case "(($ac_try" in
7028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029 *) ac_try_echo=$ac_try;;
7030 esac
7031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7032 $as_echo "$ac_try_echo") >&5
7033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7034 ac_status=$?
7035 grep -v '^ *+' conftest.er1 >conftest.err
7036 rm -f conftest.er1
7037 cat conftest.err >&5
7038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } >/dev/null && {
7040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7041 test ! -s conftest.err
7042 }; then
7043 ac_header_preproc=yes
7044 else
7045 $as_echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7048 ac_header_preproc=no
7051 rm -f conftest.err conftest.$ac_ext
7052 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7053 $as_echo "$ac_header_preproc" >&6; }
7055 # So? What about this header?
7056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7057 yes:no: )
7058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7059 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7062 ac_header_preproc=yes
7064 no:yes:* )
7065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7066 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7068 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7070 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7072 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7076 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7079 esac
7080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7081 $as_echo_n "checking for $ac_header... " >&6; }
7082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7083 $as_echo_n "(cached) " >&6
7084 else
7085 eval "$as_ac_Header=\$ac_header_preproc"
7087 ac_res=`eval 'as_val=${'$as_ac_Header'}
7088 $as_echo "$as_val"'`
7089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7090 $as_echo "$ac_res" >&6; }
7093 if test `eval 'as_val=${'$as_ac_Header'}
7094 $as_echo "$as_val"'` = yes; then
7095 cat >>confdefs.h <<_ACEOF
7096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7097 _ACEOF
7101 done
7104 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7105 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 #include <sys/personality.h>
7114 main ()
7116 personality (PER_LINUX32)
7118 return 0;
7120 _ACEOF
7121 rm -f conftest.$ac_objext
7122 if { (ac_try="$ac_compile"
7123 case "(($ac_try" in
7124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7125 *) ac_try_echo=$ac_try;;
7126 esac
7127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7128 $as_echo "$ac_try_echo") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7130 ac_status=$?
7131 grep -v '^ *+' conftest.er1 >conftest.err
7132 rm -f conftest.er1
7133 cat conftest.err >&5
7134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
7139 emacs_cv_personality_linux32=yes
7140 else
7141 $as_echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7144 emacs_cv_personality_linux32=no
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7149 $as_echo "$emacs_cv_personality_linux32" >&6; }
7151 if test $emacs_cv_personality_linux32 = yes; then
7153 cat >>confdefs.h <<\_ACEOF
7154 #define HAVE_PERSONALITY_LINUX32 1
7155 _ACEOF
7160 for ac_header in term.h
7162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7163 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7164 $as_echo_n "checking for $ac_header... " >&6; }
7165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7166 $as_echo_n "(cached) " >&6
7167 else
7168 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h. */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 #include <$ac_header>
7175 _ACEOF
7176 if { (ac_try="$ac_cpp conftest.$ac_ext"
7177 case "(($ac_try" in
7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7180 esac
7181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7182 $as_echo "$ac_try_echo") >&5
7183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7184 ac_status=$?
7185 grep -v '^ *+' conftest.er1 >conftest.err
7186 rm -f conftest.er1
7187 cat conftest.err >&5
7188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } >/dev/null && {
7190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7191 test ! -s conftest.err
7192 }; then
7193 eval "$as_ac_Header=yes"
7194 else
7195 $as_echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7198 eval "$as_ac_Header=no"
7201 rm -f conftest.err conftest.$ac_ext
7203 ac_res=`eval 'as_val=${'$as_ac_Header'}
7204 $as_echo "$as_val"'`
7205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7206 $as_echo "$ac_res" >&6; }
7207 if test `eval 'as_val=${'$as_ac_Header'}
7208 $as_echo "$as_val"'` = yes; then
7209 cat >>confdefs.h <<_ACEOF
7210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7211 _ACEOF
7215 done
7217 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7218 $as_echo_n "checking for ANSI C header files... " >&6; }
7219 if test "${ac_cv_header_stdc+set}" = set; then
7220 $as_echo_n "(cached) " >&6
7221 else
7222 cat >conftest.$ac_ext <<_ACEOF
7223 /* confdefs.h. */
7224 _ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h. */
7228 #include <stdlib.h>
7229 #include <stdarg.h>
7230 #include <string.h>
7231 #include <float.h>
7234 main ()
7238 return 0;
7240 _ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (ac_try="$ac_compile"
7243 case "(($ac_try" in
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7246 esac
7247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7248 $as_echo "$ac_try_echo") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7250 ac_status=$?
7251 grep -v '^ *+' conftest.er1 >conftest.err
7252 rm -f conftest.er1
7253 cat conftest.err >&5
7254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.$ac_objext; then
7259 ac_cv_header_stdc=yes
7260 else
7261 $as_echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7264 ac_cv_header_stdc=no
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7269 if test $ac_cv_header_stdc = yes; then
7270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7271 cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h. */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 #include <string.h>
7279 _ACEOF
7280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7281 $EGREP "memchr" >/dev/null 2>&1; then
7283 else
7284 ac_cv_header_stdc=no
7286 rm -f conftest*
7290 if test $ac_cv_header_stdc = yes; then
7291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7292 cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h. */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 #include <stdlib.h>
7300 _ACEOF
7301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7302 $EGREP "free" >/dev/null 2>&1; then
7304 else
7305 ac_cv_header_stdc=no
7307 rm -f conftest*
7311 if test $ac_cv_header_stdc = yes; then
7312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7313 if test "$cross_compiling" = yes; then
7315 else
7316 cat >conftest.$ac_ext <<_ACEOF
7317 /* confdefs.h. */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7322 #include <ctype.h>
7323 #include <stdlib.h>
7324 #if ((' ' & 0x0FF) == 0x020)
7325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7327 #else
7328 # define ISLOWER(c) \
7329 (('a' <= (c) && (c) <= 'i') \
7330 || ('j' <= (c) && (c) <= 'r') \
7331 || ('s' <= (c) && (c) <= 'z'))
7332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7333 #endif
7335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7337 main ()
7339 int i;
7340 for (i = 0; i < 256; i++)
7341 if (XOR (islower (i), ISLOWER (i))
7342 || toupper (i) != TOUPPER (i))
7343 return 2;
7344 return 0;
7346 _ACEOF
7347 rm -f conftest$ac_exeext
7348 if { (ac_try="$ac_link"
7349 case "(($ac_try" in
7350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7352 esac
7353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7354 $as_echo "$ac_try_echo") >&5
7355 (eval "$ac_link") 2>&5
7356 ac_status=$?
7357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7359 { (case "(($ac_try" in
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7362 esac
7363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7364 $as_echo "$ac_try_echo") >&5
7365 (eval "$ac_try") 2>&5
7366 ac_status=$?
7367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; }; then
7370 else
7371 $as_echo "$as_me: program exited with status $ac_status" >&5
7372 $as_echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7375 ( exit $ac_status )
7376 ac_cv_header_stdc=no
7378 rm -rf conftest.dSYM
7379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7385 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7386 $as_echo "$ac_cv_header_stdc" >&6; }
7387 if test $ac_cv_header_stdc = yes; then
7389 cat >>confdefs.h <<\_ACEOF
7390 #define STDC_HEADERS 1
7391 _ACEOF
7395 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7396 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7397 if test "${ac_cv_header_time+set}" = set; then
7398 $as_echo_n "(cached) " >&6
7399 else
7400 cat >conftest.$ac_ext <<_ACEOF
7401 /* confdefs.h. */
7402 _ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7406 #include <sys/types.h>
7407 #include <sys/time.h>
7408 #include <time.h>
7411 main ()
7413 if ((struct tm *) 0)
7414 return 0;
7416 return 0;
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (ac_try="$ac_compile"
7421 case "(($ac_try" in
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7424 esac
7425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7426 $as_echo "$ac_try_echo") >&5
7427 (eval "$ac_compile") 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } && {
7434 test -z "$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7436 } && test -s conftest.$ac_objext; then
7437 ac_cv_header_time=yes
7438 else
7439 $as_echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7442 ac_cv_header_time=no
7445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7447 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7448 $as_echo "$ac_cv_header_time" >&6; }
7449 if test $ac_cv_header_time = yes; then
7451 cat >>confdefs.h <<\_ACEOF
7452 #define TIME_WITH_SYS_TIME 1
7453 _ACEOF
7457 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7458 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7459 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7460 $as_echo_n "(cached) " >&6
7461 else
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h. */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 $ac_includes_default
7470 main ()
7472 #ifndef sys_siglist
7473 (void) sys_siglist;
7474 #endif
7477 return 0;
7479 _ACEOF
7480 rm -f conftest.$ac_objext
7481 if { (ac_try="$ac_compile"
7482 case "(($ac_try" in
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7485 esac
7486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7487 $as_echo "$ac_try_echo") >&5
7488 (eval "$ac_compile") 2>conftest.er1
7489 ac_status=$?
7490 grep -v '^ *+' conftest.er1 >conftest.err
7491 rm -f conftest.er1
7492 cat conftest.err >&5
7493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } && {
7495 test -z "$ac_c_werror_flag" ||
7496 test ! -s conftest.err
7497 } && test -s conftest.$ac_objext; then
7498 ac_cv_have_decl_sys_siglist=yes
7499 else
7500 $as_echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7503 ac_cv_have_decl_sys_siglist=no
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7509 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7510 if test $ac_cv_have_decl_sys_siglist = yes; then
7512 cat >>confdefs.h <<_ACEOF
7513 #define HAVE_DECL_SYS_SIGLIST 1
7514 _ACEOF
7517 else
7518 cat >>confdefs.h <<_ACEOF
7519 #define HAVE_DECL_SYS_SIGLIST 0
7520 _ACEOF
7526 if test $ac_cv_have_decl_sys_siglist != yes; then
7527 # For Tru64, at least:
7528 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7529 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7530 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7531 $as_echo_n "(cached) " >&6
7532 else
7533 cat >conftest.$ac_ext <<_ACEOF
7534 /* confdefs.h. */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 $ac_includes_default
7541 main ()
7543 #ifndef __sys_siglist
7544 (void) __sys_siglist;
7545 #endif
7548 return 0;
7550 _ACEOF
7551 rm -f conftest.$ac_objext
7552 if { (ac_try="$ac_compile"
7553 case "(($ac_try" in
7554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555 *) ac_try_echo=$ac_try;;
7556 esac
7557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7558 $as_echo "$ac_try_echo") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7560 ac_status=$?
7561 grep -v '^ *+' conftest.er1 >conftest.err
7562 rm -f conftest.er1
7563 cat conftest.err >&5
7564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.$ac_objext; then
7569 ac_cv_have_decl___sys_siglist=yes
7570 else
7571 $as_echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7574 ac_cv_have_decl___sys_siglist=no
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7580 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7581 if test $ac_cv_have_decl___sys_siglist = yes; then
7583 cat >>confdefs.h <<_ACEOF
7584 #define HAVE_DECL___SYS_SIGLIST 1
7585 _ACEOF
7588 else
7589 cat >>confdefs.h <<_ACEOF
7590 #define HAVE_DECL___SYS_SIGLIST 0
7591 _ACEOF
7597 if test $ac_cv_have_decl___sys_siglist = yes; then
7599 cat >>confdefs.h <<\_ACEOF
7600 #define sys_siglist __sys_siglist
7601 _ACEOF
7605 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7606 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7607 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7608 $as_echo_n "(cached) " >&6
7609 else
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 #include <sys/types.h>
7617 #include <sys/wait.h>
7618 #ifndef WEXITSTATUS
7619 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7620 #endif
7621 #ifndef WIFEXITED
7622 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7623 #endif
7626 main ()
7628 int s;
7629 wait (&s);
7630 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7632 return 0;
7634 _ACEOF
7635 rm -f conftest.$ac_objext
7636 if { (ac_try="$ac_compile"
7637 case "(($ac_try" in
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7640 esac
7641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7642 $as_echo "$ac_try_echo") >&5
7643 (eval "$ac_compile") 2>conftest.er1
7644 ac_status=$?
7645 grep -v '^ *+' conftest.er1 >conftest.err
7646 rm -f conftest.er1
7647 cat conftest.err >&5
7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } && {
7650 test -z "$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 } && test -s conftest.$ac_objext; then
7653 ac_cv_header_sys_wait_h=yes
7654 else
7655 $as_echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7658 ac_cv_header_sys_wait_h=no
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7664 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7665 if test $ac_cv_header_sys_wait_h = yes; then
7667 cat >>confdefs.h <<\_ACEOF
7668 #define HAVE_SYS_WAIT_H 1
7669 _ACEOF
7674 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7675 $as_echo_n "checking for struct utimbuf... " >&6; }
7676 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7677 $as_echo_n "(cached) " >&6
7678 else
7679 cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h. */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 #ifdef TIME_WITH_SYS_TIME
7686 #include <sys/time.h>
7687 #include <time.h>
7688 #else
7689 #ifdef HAVE_SYS_TIME_H
7690 #include <sys/time.h>
7691 #else
7692 #include <time.h>
7693 #endif
7694 #endif
7695 #ifdef HAVE_UTIME_H
7696 #include <utime.h>
7697 #endif
7699 main ()
7701 static struct utimbuf x; x.actime = x.modtime;
7703 return 0;
7705 _ACEOF
7706 rm -f conftest.$ac_objext
7707 if { (ac_try="$ac_compile"
7708 case "(($ac_try" in
7709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710 *) ac_try_echo=$ac_try;;
7711 esac
7712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7713 $as_echo "$ac_try_echo") >&5
7714 (eval "$ac_compile") 2>conftest.er1
7715 ac_status=$?
7716 grep -v '^ *+' conftest.er1 >conftest.err
7717 rm -f conftest.er1
7718 cat conftest.err >&5
7719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } && {
7721 test -z "$ac_c_werror_flag" ||
7722 test ! -s conftest.err
7723 } && test -s conftest.$ac_objext; then
7724 emacs_cv_struct_utimbuf=yes
7725 else
7726 $as_echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7729 emacs_cv_struct_utimbuf=no
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7735 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7736 if test $emacs_cv_struct_utimbuf = yes; then
7738 cat >>confdefs.h <<\_ACEOF
7739 #define HAVE_STRUCT_UTIMBUF 1
7740 _ACEOF
7744 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7745 $as_echo_n "checking return type of signal handlers... " >&6; }
7746 if test "${ac_cv_type_signal+set}" = set; then
7747 $as_echo_n "(cached) " >&6
7748 else
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 #include <sys/types.h>
7756 #include <signal.h>
7759 main ()
7761 return *(signal (0, 0)) (0) == 1;
7763 return 0;
7765 _ACEOF
7766 rm -f conftest.$ac_objext
7767 if { (ac_try="$ac_compile"
7768 case "(($ac_try" in
7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7771 esac
7772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7773 $as_echo "$ac_try_echo") >&5
7774 (eval "$ac_compile") 2>conftest.er1
7775 ac_status=$?
7776 grep -v '^ *+' conftest.er1 >conftest.err
7777 rm -f conftest.er1
7778 cat conftest.err >&5
7779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && {
7781 test -z "$ac_c_werror_flag" ||
7782 test ! -s conftest.err
7783 } && test -s conftest.$ac_objext; then
7784 ac_cv_type_signal=int
7785 else
7786 $as_echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7789 ac_cv_type_signal=void
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7795 $as_echo "$ac_cv_type_signal" >&6; }
7797 cat >>confdefs.h <<_ACEOF
7798 #define RETSIGTYPE $ac_cv_type_signal
7799 _ACEOF
7803 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7804 $as_echo_n "checking for speed_t... " >&6; }
7805 if test "${emacs_cv_speed_t+set}" = set; then
7806 $as_echo_n "(cached) " >&6
7807 else
7808 cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h. */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 #include <termios.h>
7816 main ()
7818 speed_t x = 1;
7820 return 0;
7822 _ACEOF
7823 rm -f conftest.$ac_objext
7824 if { (ac_try="$ac_compile"
7825 case "(($ac_try" in
7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827 *) ac_try_echo=$ac_try;;
7828 esac
7829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7830 $as_echo "$ac_try_echo") >&5
7831 (eval "$ac_compile") 2>conftest.er1
7832 ac_status=$?
7833 grep -v '^ *+' conftest.er1 >conftest.err
7834 rm -f conftest.er1
7835 cat conftest.err >&5
7836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } && {
7838 test -z "$ac_c_werror_flag" ||
7839 test ! -s conftest.err
7840 } && test -s conftest.$ac_objext; then
7841 emacs_cv_speed_t=yes
7842 else
7843 $as_echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7846 emacs_cv_speed_t=no
7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7851 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7852 $as_echo "$emacs_cv_speed_t" >&6; }
7853 if test $emacs_cv_speed_t = yes; then
7855 cat >>confdefs.h <<\_ACEOF
7856 #define HAVE_SPEED_T 1
7857 _ACEOF
7861 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7862 $as_echo_n "checking for struct timeval... " >&6; }
7863 if test "${emacs_cv_struct_timeval+set}" = set; then
7864 $as_echo_n "(cached) " >&6
7865 else
7866 cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h. */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 #ifdef TIME_WITH_SYS_TIME
7873 #include <sys/time.h>
7874 #include <time.h>
7875 #else
7876 #ifdef HAVE_SYS_TIME_H
7877 #include <sys/time.h>
7878 #else
7879 #include <time.h>
7880 #endif
7881 #endif
7883 main ()
7885 static struct timeval x; x.tv_sec = x.tv_usec;
7887 return 0;
7889 _ACEOF
7890 rm -f conftest.$ac_objext
7891 if { (ac_try="$ac_compile"
7892 case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7895 esac
7896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7897 $as_echo "$ac_try_echo") >&5
7898 (eval "$ac_compile") 2>conftest.er1
7899 ac_status=$?
7900 grep -v '^ *+' conftest.er1 >conftest.err
7901 rm -f conftest.er1
7902 cat conftest.err >&5
7903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } && {
7905 test -z "$ac_c_werror_flag" ||
7906 test ! -s conftest.err
7907 } && test -s conftest.$ac_objext; then
7908 emacs_cv_struct_timeval=yes
7909 else
7910 $as_echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7913 emacs_cv_struct_timeval=no
7916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7919 $as_echo "$emacs_cv_struct_timeval" >&6; }
7920 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7921 if test $emacs_cv_struct_timeval = yes; then
7923 cat >>confdefs.h <<\_ACEOF
7924 #define HAVE_TIMEVAL 1
7925 _ACEOF
7929 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7930 $as_echo_n "checking for struct exception... " >&6; }
7931 if test "${emacs_cv_struct_exception+set}" = set; then
7932 $as_echo_n "(cached) " >&6
7933 else
7934 cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h. */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 #include <math.h>
7942 main ()
7944 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7946 return 0;
7948 _ACEOF
7949 rm -f conftest.$ac_objext
7950 if { (ac_try="$ac_compile"
7951 case "(($ac_try" in
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7954 esac
7955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7956 $as_echo "$ac_try_echo") >&5
7957 (eval "$ac_compile") 2>conftest.er1
7958 ac_status=$?
7959 grep -v '^ *+' conftest.er1 >conftest.err
7960 rm -f conftest.er1
7961 cat conftest.err >&5
7962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } && {
7964 test -z "$ac_c_werror_flag" ||
7965 test ! -s conftest.err
7966 } && test -s conftest.$ac_objext; then
7967 emacs_cv_struct_exception=yes
7968 else
7969 $as_echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7972 emacs_cv_struct_exception=no
7975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7978 $as_echo "$emacs_cv_struct_exception" >&6; }
7979 HAVE_EXCEPTION=$emacs_cv_struct_exception
7980 if test $emacs_cv_struct_exception != yes; then
7982 cat >>confdefs.h <<\_ACEOF
7983 #define NO_MATHERR 1
7984 _ACEOF
7989 for ac_header in sys/socket.h
7991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7993 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7994 $as_echo_n "checking for $ac_header... " >&6; }
7995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7996 $as_echo_n "(cached) " >&6
7998 ac_res=`eval 'as_val=${'$as_ac_Header'}
7999 $as_echo "$as_val"'`
8000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8001 $as_echo "$ac_res" >&6; }
8002 else
8003 # Is the header compilable?
8004 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8005 $as_echo_n "checking $ac_header usability... " >&6; }
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 $ac_includes_default
8013 #include <$ac_header>
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8017 case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8022 $as_echo "$ac_try_echo") >&5
8023 (eval "$ac_compile") 2>conftest.er1
8024 ac_status=$?
8025 grep -v '^ *+' conftest.er1 >conftest.err
8026 rm -f conftest.er1
8027 cat conftest.err >&5
8028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } && {
8030 test -z "$ac_c_werror_flag" ||
8031 test ! -s conftest.err
8032 } && test -s conftest.$ac_objext; then
8033 ac_header_compiler=yes
8034 else
8035 $as_echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8038 ac_header_compiler=no
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8043 $as_echo "$ac_header_compiler" >&6; }
8045 # Is the header present?
8046 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8047 $as_echo_n "checking $ac_header presence... " >&6; }
8048 cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h. */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 #include <$ac_header>
8055 _ACEOF
8056 if { (ac_try="$ac_cpp conftest.$ac_ext"
8057 case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8060 esac
8061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8062 $as_echo "$ac_try_echo") >&5
8063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8064 ac_status=$?
8065 grep -v '^ *+' conftest.er1 >conftest.err
8066 rm -f conftest.er1
8067 cat conftest.err >&5
8068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } >/dev/null && {
8070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8071 test ! -s conftest.err
8072 }; then
8073 ac_header_preproc=yes
8074 else
8075 $as_echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8078 ac_header_preproc=no
8081 rm -f conftest.err conftest.$ac_ext
8082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8083 $as_echo "$ac_header_preproc" >&6; }
8085 # So? What about this header?
8086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8087 yes:no: )
8088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8089 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8091 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8092 ac_header_preproc=yes
8094 no:yes:* )
8095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8096 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8098 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8100 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8102 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8104 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8106 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8109 esac
8110 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8111 $as_echo_n "checking for $ac_header... " >&6; }
8112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8113 $as_echo_n "(cached) " >&6
8114 else
8115 eval "$as_ac_Header=\$ac_header_preproc"
8117 ac_res=`eval 'as_val=${'$as_ac_Header'}
8118 $as_echo "$as_val"'`
8119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8120 $as_echo "$ac_res" >&6; }
8123 if test `eval 'as_val=${'$as_ac_Header'}
8124 $as_echo "$as_val"'` = yes; then
8125 cat >>confdefs.h <<_ACEOF
8126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8127 _ACEOF
8131 done
8134 for ac_header in net/if.h
8136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8137 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8138 $as_echo_n "checking for $ac_header... " >&6; }
8139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8140 $as_echo_n "(cached) " >&6
8141 else
8142 cat >conftest.$ac_ext <<_ACEOF
8143 /* confdefs.h. */
8144 _ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8148 $ac_includes_default
8149 #if HAVE_SYS_SOCKET_H
8150 #include <sys/socket.h>
8151 #endif
8153 #include <$ac_header>
8154 _ACEOF
8155 rm -f conftest.$ac_objext
8156 if { (ac_try="$ac_compile"
8157 case "(($ac_try" in
8158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8160 esac
8161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8162 $as_echo "$ac_try_echo") >&5
8163 (eval "$ac_compile") 2>conftest.er1
8164 ac_status=$?
8165 grep -v '^ *+' conftest.er1 >conftest.err
8166 rm -f conftest.er1
8167 cat conftest.err >&5
8168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } && {
8170 test -z "$ac_c_werror_flag" ||
8171 test ! -s conftest.err
8172 } && test -s conftest.$ac_objext; then
8173 eval "$as_ac_Header=yes"
8174 else
8175 $as_echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 eval "$as_ac_Header=no"
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 ac_res=`eval 'as_val=${'$as_ac_Header'}
8184 $as_echo "$as_val"'`
8185 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8186 $as_echo "$ac_res" >&6; }
8187 if test `eval 'as_val=${'$as_ac_Header'}
8188 $as_echo "$as_val"'` = yes; then
8189 cat >>confdefs.h <<_ACEOF
8190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8191 _ACEOF
8195 done
8198 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8199 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8200 if test "${ac_cv_struct_tm+set}" = set; then
8201 $as_echo_n "(cached) " >&6
8202 else
8203 cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h. */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 #include <sys/types.h>
8210 #include <time.h>
8213 main ()
8215 struct tm tm;
8216 int *p = &tm.tm_sec;
8217 return !p;
8219 return 0;
8221 _ACEOF
8222 rm -f conftest.$ac_objext
8223 if { (ac_try="$ac_compile"
8224 case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227 esac
8228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8229 $as_echo "$ac_try_echo") >&5
8230 (eval "$ac_compile") 2>conftest.er1
8231 ac_status=$?
8232 grep -v '^ *+' conftest.er1 >conftest.err
8233 rm -f conftest.er1
8234 cat conftest.err >&5
8235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && {
8237 test -z "$ac_c_werror_flag" ||
8238 test ! -s conftest.err
8239 } && test -s conftest.$ac_objext; then
8240 ac_cv_struct_tm=time.h
8241 else
8242 $as_echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8245 ac_cv_struct_tm=sys/time.h
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8251 $as_echo "$ac_cv_struct_tm" >&6; }
8252 if test $ac_cv_struct_tm = sys/time.h; then
8254 cat >>confdefs.h <<\_ACEOF
8255 #define TM_IN_SYS_TIME 1
8256 _ACEOF
8260 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8261 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8262 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8263 $as_echo_n "(cached) " >&6
8264 else
8265 cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h. */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 #include <sys/types.h>
8272 #include <$ac_cv_struct_tm>
8276 main ()
8278 static struct tm ac_aggr;
8279 if (ac_aggr.tm_zone)
8280 return 0;
8282 return 0;
8284 _ACEOF
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8287 case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290 esac
8291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8292 $as_echo "$ac_try_echo") >&5
8293 (eval "$ac_compile") 2>conftest.er1
8294 ac_status=$?
8295 grep -v '^ *+' conftest.er1 >conftest.err
8296 rm -f conftest.er1
8297 cat conftest.err >&5
8298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } && {
8300 test -z "$ac_c_werror_flag" ||
8301 test ! -s conftest.err
8302 } && test -s conftest.$ac_objext; then
8303 ac_cv_member_struct_tm_tm_zone=yes
8304 else
8305 $as_echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8308 cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h. */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 #include <sys/types.h>
8315 #include <$ac_cv_struct_tm>
8319 main ()
8321 static struct tm ac_aggr;
8322 if (sizeof ac_aggr.tm_zone)
8323 return 0;
8325 return 0;
8327 _ACEOF
8328 rm -f conftest.$ac_objext
8329 if { (ac_try="$ac_compile"
8330 case "(($ac_try" in
8331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332 *) ac_try_echo=$ac_try;;
8333 esac
8334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8335 $as_echo "$ac_try_echo") >&5
8336 (eval "$ac_compile") 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest.$ac_objext; then
8346 ac_cv_member_struct_tm_tm_zone=yes
8347 else
8348 $as_echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8351 ac_cv_member_struct_tm_tm_zone=no
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8360 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8361 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8363 cat >>confdefs.h <<_ACEOF
8364 #define HAVE_STRUCT_TM_TM_ZONE 1
8365 _ACEOF
8370 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8372 cat >>confdefs.h <<\_ACEOF
8373 #define HAVE_TM_ZONE 1
8374 _ACEOF
8376 else
8377 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8378 $as_echo_n "checking whether tzname is declared... " >&6; }
8379 if test "${ac_cv_have_decl_tzname+set}" = set; then
8380 $as_echo_n "(cached) " >&6
8381 else
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h. */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 #include <time.h>
8391 main ()
8393 #ifndef tzname
8394 (void) tzname;
8395 #endif
8398 return 0;
8400 _ACEOF
8401 rm -f conftest.$ac_objext
8402 if { (ac_try="$ac_compile"
8403 case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406 esac
8407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8408 $as_echo "$ac_try_echo") >&5
8409 (eval "$ac_compile") 2>conftest.er1
8410 ac_status=$?
8411 grep -v '^ *+' conftest.er1 >conftest.err
8412 rm -f conftest.er1
8413 cat conftest.err >&5
8414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } && {
8416 test -z "$ac_c_werror_flag" ||
8417 test ! -s conftest.err
8418 } && test -s conftest.$ac_objext; then
8419 ac_cv_have_decl_tzname=yes
8420 else
8421 $as_echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 ac_cv_have_decl_tzname=no
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8430 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8431 if test $ac_cv_have_decl_tzname = yes; then
8433 cat >>confdefs.h <<_ACEOF
8434 #define HAVE_DECL_TZNAME 1
8435 _ACEOF
8438 else
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_DECL_TZNAME 0
8441 _ACEOF
8447 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8448 $as_echo_n "checking for tzname... " >&6; }
8449 if test "${ac_cv_var_tzname+set}" = set; then
8450 $as_echo_n "(cached) " >&6
8451 else
8452 cat >conftest.$ac_ext <<_ACEOF
8453 /* confdefs.h. */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 #include <time.h>
8459 #if !HAVE_DECL_TZNAME
8460 extern char *tzname[];
8461 #endif
8464 main ()
8466 return tzname[0][0];
8468 return 0;
8470 _ACEOF
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (ac_try="$ac_link"
8473 case "(($ac_try" in
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8476 esac
8477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8478 $as_echo "$ac_try_echo") >&5
8479 (eval "$ac_link") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest$ac_exeext && {
8489 test "$cross_compiling" = yes ||
8490 $as_test_x conftest$ac_exeext
8491 }; then
8492 ac_cv_var_tzname=yes
8493 else
8494 $as_echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8497 ac_cv_var_tzname=no
8500 rm -rf conftest.dSYM
8501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8502 conftest$ac_exeext conftest.$ac_ext
8504 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8505 $as_echo "$ac_cv_var_tzname" >&6; }
8506 if test $ac_cv_var_tzname = yes; then
8508 cat >>confdefs.h <<\_ACEOF
8509 #define HAVE_TZNAME 1
8510 _ACEOF
8515 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8516 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8517 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8518 $as_echo_n "(cached) " >&6
8519 else
8520 cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h. */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8526 #include <time.h>
8529 main ()
8531 static struct tm ac_aggr;
8532 if (ac_aggr.tm_gmtoff)
8533 return 0;
8535 return 0;
8537 _ACEOF
8538 rm -f conftest.$ac_objext
8539 if { (ac_try="$ac_compile"
8540 case "(($ac_try" in
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8543 esac
8544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8545 $as_echo "$ac_try_echo") >&5
8546 (eval "$ac_compile") 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } && {
8553 test -z "$ac_c_werror_flag" ||
8554 test ! -s conftest.err
8555 } && test -s conftest.$ac_objext; then
8556 ac_cv_member_struct_tm_tm_gmtoff=yes
8557 else
8558 $as_echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 cat >conftest.$ac_ext <<_ACEOF
8562 /* confdefs.h. */
8563 _ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h. */
8567 #include <time.h>
8570 main ()
8572 static struct tm ac_aggr;
8573 if (sizeof ac_aggr.tm_gmtoff)
8574 return 0;
8576 return 0;
8578 _ACEOF
8579 rm -f conftest.$ac_objext
8580 if { (ac_try="$ac_compile"
8581 case "(($ac_try" in
8582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583 *) ac_try_echo=$ac_try;;
8584 esac
8585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8586 $as_echo "$ac_try_echo") >&5
8587 (eval "$ac_compile") 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } && {
8594 test -z "$ac_c_werror_flag" ||
8595 test ! -s conftest.err
8596 } && test -s conftest.$ac_objext; then
8597 ac_cv_member_struct_tm_tm_gmtoff=yes
8598 else
8599 $as_echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8602 ac_cv_member_struct_tm_tm_gmtoff=no
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8611 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8612 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8614 cat >>confdefs.h <<\_ACEOF
8615 #define HAVE_TM_GMTOFF 1
8616 _ACEOF
8620 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8621 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8622 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8623 $as_echo_n "(cached) " >&6
8624 else
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h. */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631 $ac_includes_default
8632 #if HAVE_SYS_SOCKET_H
8633 #include <sys/socket.h>
8634 #endif
8635 #if HAVE_NET_IF_H
8636 #include <net/if.h>
8637 #endif
8640 main ()
8642 static struct ifreq ac_aggr;
8643 if (ac_aggr.ifr_flags)
8644 return 0;
8646 return 0;
8648 _ACEOF
8649 rm -f conftest.$ac_objext
8650 if { (ac_try="$ac_compile"
8651 case "(($ac_try" in
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8654 esac
8655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8656 $as_echo "$ac_try_echo") >&5
8657 (eval "$ac_compile") 2>conftest.er1
8658 ac_status=$?
8659 grep -v '^ *+' conftest.er1 >conftest.err
8660 rm -f conftest.er1
8661 cat conftest.err >&5
8662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest.$ac_objext; then
8667 ac_cv_member_struct_ifreq_ifr_flags=yes
8668 else
8669 $as_echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 cat >conftest.$ac_ext <<_ACEOF
8673 /* confdefs.h. */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 $ac_includes_default
8679 #if HAVE_SYS_SOCKET_H
8680 #include <sys/socket.h>
8681 #endif
8682 #if HAVE_NET_IF_H
8683 #include <net/if.h>
8684 #endif
8687 main ()
8689 static struct ifreq ac_aggr;
8690 if (sizeof ac_aggr.ifr_flags)
8691 return 0;
8693 return 0;
8695 _ACEOF
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8698 case "(($ac_try" in
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8701 esac
8702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8703 $as_echo "$ac_try_echo") >&5
8704 (eval "$ac_compile") 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && {
8711 test -z "$ac_c_werror_flag" ||
8712 test ! -s conftest.err
8713 } && test -s conftest.$ac_objext; then
8714 ac_cv_member_struct_ifreq_ifr_flags=yes
8715 else
8716 $as_echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_cv_member_struct_ifreq_ifr_flags=no
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8728 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8729 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8731 cat >>confdefs.h <<_ACEOF
8732 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8733 _ACEOF
8737 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8738 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8739 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8740 $as_echo_n "(cached) " >&6
8741 else
8742 cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h. */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748 $ac_includes_default
8749 #if HAVE_SYS_SOCKET_H
8750 #include <sys/socket.h>
8751 #endif
8752 #if HAVE_NET_IF_H
8753 #include <net/if.h>
8754 #endif
8757 main ()
8759 static struct ifreq ac_aggr;
8760 if (ac_aggr.ifr_hwaddr)
8761 return 0;
8763 return 0;
8765 _ACEOF
8766 rm -f conftest.$ac_objext
8767 if { (ac_try="$ac_compile"
8768 case "(($ac_try" in
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8771 esac
8772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8773 $as_echo "$ac_try_echo") >&5
8774 (eval "$ac_compile") 2>conftest.er1
8775 ac_status=$?
8776 grep -v '^ *+' conftest.er1 >conftest.err
8777 rm -f conftest.er1
8778 cat conftest.err >&5
8779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && {
8781 test -z "$ac_c_werror_flag" ||
8782 test ! -s conftest.err
8783 } && test -s conftest.$ac_objext; then
8784 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8785 else
8786 $as_echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 cat >conftest.$ac_ext <<_ACEOF
8790 /* confdefs.h. */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8795 $ac_includes_default
8796 #if HAVE_SYS_SOCKET_H
8797 #include <sys/socket.h>
8798 #endif
8799 #if HAVE_NET_IF_H
8800 #include <net/if.h>
8801 #endif
8804 main ()
8806 static struct ifreq ac_aggr;
8807 if (sizeof ac_aggr.ifr_hwaddr)
8808 return 0;
8810 return 0;
8812 _ACEOF
8813 rm -f conftest.$ac_objext
8814 if { (ac_try="$ac_compile"
8815 case "(($ac_try" in
8816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817 *) ac_try_echo=$ac_try;;
8818 esac
8819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8820 $as_echo "$ac_try_echo") >&5
8821 (eval "$ac_compile") 2>conftest.er1
8822 ac_status=$?
8823 grep -v '^ *+' conftest.er1 >conftest.err
8824 rm -f conftest.er1
8825 cat conftest.err >&5
8826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && {
8828 test -z "$ac_c_werror_flag" ||
8829 test ! -s conftest.err
8830 } && test -s conftest.$ac_objext; then
8831 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8832 else
8833 $as_echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8836 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8845 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8846 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8848 cat >>confdefs.h <<_ACEOF
8849 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8850 _ACEOF
8854 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8855 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8856 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8857 $as_echo_n "(cached) " >&6
8858 else
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 $ac_includes_default
8866 #if HAVE_SYS_SOCKET_H
8867 #include <sys/socket.h>
8868 #endif
8869 #if HAVE_NET_IF_H
8870 #include <net/if.h>
8871 #endif
8874 main ()
8876 static struct ifreq ac_aggr;
8877 if (ac_aggr.ifr_netmask)
8878 return 0;
8880 return 0;
8882 _ACEOF
8883 rm -f conftest.$ac_objext
8884 if { (ac_try="$ac_compile"
8885 case "(($ac_try" in
8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8888 esac
8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891 (eval "$ac_compile") 2>conftest.er1
8892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest.$ac_objext; then
8901 ac_cv_member_struct_ifreq_ifr_netmask=yes
8902 else
8903 $as_echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8906 cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h. */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8912 $ac_includes_default
8913 #if HAVE_SYS_SOCKET_H
8914 #include <sys/socket.h>
8915 #endif
8916 #if HAVE_NET_IF_H
8917 #include <net/if.h>
8918 #endif
8921 main ()
8923 static struct ifreq ac_aggr;
8924 if (sizeof ac_aggr.ifr_netmask)
8925 return 0;
8927 return 0;
8929 _ACEOF
8930 rm -f conftest.$ac_objext
8931 if { (ac_try="$ac_compile"
8932 case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8935 esac
8936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8937 $as_echo "$ac_try_echo") >&5
8938 (eval "$ac_compile") 2>conftest.er1
8939 ac_status=$?
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
8943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } && {
8945 test -z "$ac_c_werror_flag" ||
8946 test ! -s conftest.err
8947 } && test -s conftest.$ac_objext; then
8948 ac_cv_member_struct_ifreq_ifr_netmask=yes
8949 else
8950 $as_echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8953 ac_cv_member_struct_ifreq_ifr_netmask=no
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8962 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8963 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8965 cat >>confdefs.h <<_ACEOF
8966 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8967 _ACEOF
8971 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8972 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8973 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8974 $as_echo_n "(cached) " >&6
8975 else
8976 cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h. */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 $ac_includes_default
8983 #if HAVE_SYS_SOCKET_H
8984 #include <sys/socket.h>
8985 #endif
8986 #if HAVE_NET_IF_H
8987 #include <net/if.h>
8988 #endif
8991 main ()
8993 static struct ifreq ac_aggr;
8994 if (ac_aggr.ifr_broadaddr)
8995 return 0;
8997 return 0;
8999 _ACEOF
9000 rm -f conftest.$ac_objext
9001 if { (ac_try="$ac_compile"
9002 case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9005 esac
9006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9007 $as_echo "$ac_try_echo") >&5
9008 (eval "$ac_compile") 2>conftest.er1
9009 ac_status=$?
9010 grep -v '^ *+' conftest.er1 >conftest.err
9011 rm -f conftest.er1
9012 cat conftest.err >&5
9013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } && {
9015 test -z "$ac_c_werror_flag" ||
9016 test ! -s conftest.err
9017 } && test -s conftest.$ac_objext; then
9018 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9019 else
9020 $as_echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9023 cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h. */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 $ac_includes_default
9030 #if HAVE_SYS_SOCKET_H
9031 #include <sys/socket.h>
9032 #endif
9033 #if HAVE_NET_IF_H
9034 #include <net/if.h>
9035 #endif
9038 main ()
9040 static struct ifreq ac_aggr;
9041 if (sizeof ac_aggr.ifr_broadaddr)
9042 return 0;
9044 return 0;
9046 _ACEOF
9047 rm -f conftest.$ac_objext
9048 if { (ac_try="$ac_compile"
9049 case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9052 esac
9053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9054 $as_echo "$ac_try_echo") >&5
9055 (eval "$ac_compile") 2>conftest.er1
9056 ac_status=$?
9057 grep -v '^ *+' conftest.er1 >conftest.err
9058 rm -f conftest.er1
9059 cat conftest.err >&5
9060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } && {
9062 test -z "$ac_c_werror_flag" ||
9063 test ! -s conftest.err
9064 } && test -s conftest.$ac_objext; then
9065 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9066 else
9067 $as_echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9070 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9078 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9079 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9080 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9082 cat >>confdefs.h <<_ACEOF
9083 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9084 _ACEOF
9088 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9089 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9090 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9091 $as_echo_n "(cached) " >&6
9092 else
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 $ac_includes_default
9100 #if HAVE_SYS_SOCKET_H
9101 #include <sys/socket.h>
9102 #endif
9103 #if HAVE_NET_IF_H
9104 #include <net/if.h>
9105 #endif
9108 main ()
9110 static struct ifreq ac_aggr;
9111 if (ac_aggr.ifr_addr)
9112 return 0;
9114 return 0;
9116 _ACEOF
9117 rm -f conftest.$ac_objext
9118 if { (ac_try="$ac_compile"
9119 case "(($ac_try" in
9120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9121 *) ac_try_echo=$ac_try;;
9122 esac
9123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9124 $as_echo "$ac_try_echo") >&5
9125 (eval "$ac_compile") 2>conftest.er1
9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } && {
9132 test -z "$ac_c_werror_flag" ||
9133 test ! -s conftest.err
9134 } && test -s conftest.$ac_objext; then
9135 ac_cv_member_struct_ifreq_ifr_addr=yes
9136 else
9137 $as_echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9140 cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h. */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 $ac_includes_default
9147 #if HAVE_SYS_SOCKET_H
9148 #include <sys/socket.h>
9149 #endif
9150 #if HAVE_NET_IF_H
9151 #include <net/if.h>
9152 #endif
9155 main ()
9157 static struct ifreq ac_aggr;
9158 if (sizeof ac_aggr.ifr_addr)
9159 return 0;
9161 return 0;
9163 _ACEOF
9164 rm -f conftest.$ac_objext
9165 if { (ac_try="$ac_compile"
9166 case "(($ac_try" in
9167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168 *) ac_try_echo=$ac_try;;
9169 esac
9170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9171 $as_echo "$ac_try_echo") >&5
9172 (eval "$ac_compile") 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } && {
9179 test -z "$ac_c_werror_flag" ||
9180 test ! -s conftest.err
9181 } && test -s conftest.$ac_objext; then
9182 ac_cv_member_struct_ifreq_ifr_addr=yes
9183 else
9184 $as_echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9187 ac_cv_member_struct_ifreq_ifr_addr=no
9190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9196 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9197 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9199 cat >>confdefs.h <<_ACEOF
9200 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9201 _ACEOF
9208 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9209 $as_echo_n "checking for function prototypes... " >&6; }
9210 if test "$ac_cv_prog_cc_c89" != no; then
9211 { $as_echo "$as_me:$LINENO: result: yes" >&5
9212 $as_echo "yes" >&6; }
9214 cat >>confdefs.h <<\_ACEOF
9215 #define PROTOTYPES 1
9216 _ACEOF
9219 cat >>confdefs.h <<\_ACEOF
9220 #define __PROTOTYPES 1
9221 _ACEOF
9223 else
9224 { $as_echo "$as_me:$LINENO: result: no" >&5
9225 $as_echo "no" >&6; }
9228 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9229 $as_echo_n "checking for working volatile... " >&6; }
9230 if test "${ac_cv_c_volatile+set}" = set; then
9231 $as_echo_n "(cached) " >&6
9232 else
9233 cat >conftest.$ac_ext <<_ACEOF
9234 /* confdefs.h. */
9235 _ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9241 main ()
9244 volatile int x;
9245 int * volatile y = (int *) 0;
9246 return !x && !y;
9248 return 0;
9250 _ACEOF
9251 rm -f conftest.$ac_objext
9252 if { (ac_try="$ac_compile"
9253 case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9256 esac
9257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9258 $as_echo "$ac_try_echo") >&5
9259 (eval "$ac_compile") 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } && {
9266 test -z "$ac_c_werror_flag" ||
9267 test ! -s conftest.err
9268 } && test -s conftest.$ac_objext; then
9269 ac_cv_c_volatile=yes
9270 else
9271 $as_echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9274 ac_cv_c_volatile=no
9277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9280 $as_echo "$ac_cv_c_volatile" >&6; }
9281 if test $ac_cv_c_volatile = no; then
9283 cat >>confdefs.h <<\_ACEOF
9284 #define volatile /**/
9285 _ACEOF
9289 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9290 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9291 if test "${ac_cv_c_const+set}" = set; then
9292 $as_echo_n "(cached) " >&6
9293 else
9294 cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h. */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9302 main ()
9304 /* FIXME: Include the comments suggested by Paul. */
9305 #ifndef __cplusplus
9306 /* Ultrix mips cc rejects this. */
9307 typedef int charset[2];
9308 const charset cs;
9309 /* SunOS 4.1.1 cc rejects this. */
9310 char const *const *pcpcc;
9311 char **ppc;
9312 /* NEC SVR4.0.2 mips cc rejects this. */
9313 struct point {int x, y;};
9314 static struct point const zero = {0,0};
9315 /* AIX XL C 1.02.0.0 rejects this.
9316 It does not let you subtract one const X* pointer from another in
9317 an arm of an if-expression whose if-part is not a constant
9318 expression */
9319 const char *g = "string";
9320 pcpcc = &g + (g ? g-g : 0);
9321 /* HPUX 7.0 cc rejects these. */
9322 ++pcpcc;
9323 ppc = (char**) pcpcc;
9324 pcpcc = (char const *const *) ppc;
9325 { /* SCO 3.2v4 cc rejects this. */
9326 char *t;
9327 char const *s = 0 ? (char *) 0 : (char const *) 0;
9329 *t++ = 0;
9330 if (s) return 0;
9332 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9333 int x[] = {25, 17};
9334 const int *foo = &x[0];
9335 ++foo;
9337 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9338 typedef const int *iptr;
9339 iptr p = 0;
9340 ++p;
9342 { /* AIX XL C 1.02.0.0 rejects this saying
9343 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9344 struct s { int j; const int *ap[3]; };
9345 struct s *b; b->j = 5;
9347 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9348 const int foo = 10;
9349 if (!foo) return 0;
9351 return !cs[0] && !zero.x;
9352 #endif
9355 return 0;
9357 _ACEOF
9358 rm -f conftest.$ac_objext
9359 if { (ac_try="$ac_compile"
9360 case "(($ac_try" in
9361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362 *) ac_try_echo=$ac_try;;
9363 esac
9364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9365 $as_echo "$ac_try_echo") >&5
9366 (eval "$ac_compile") 2>conftest.er1
9367 ac_status=$?
9368 grep -v '^ *+' conftest.er1 >conftest.err
9369 rm -f conftest.er1
9370 cat conftest.err >&5
9371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest.$ac_objext; then
9376 ac_cv_c_const=yes
9377 else
9378 $as_echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 ac_cv_c_const=no
9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9387 $as_echo "$ac_cv_c_const" >&6; }
9388 if test $ac_cv_c_const = no; then
9390 cat >>confdefs.h <<\_ACEOF
9391 #define const /**/
9392 _ACEOF
9396 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9397 $as_echo_n "checking for void * support... " >&6; }
9398 if test "${emacs_cv_void_star+set}" = set; then
9399 $as_echo_n "(cached) " >&6
9400 else
9401 cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h. */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9409 main ()
9411 void * foo;
9413 return 0;
9415 _ACEOF
9416 rm -f conftest.$ac_objext
9417 if { (ac_try="$ac_compile"
9418 case "(($ac_try" in
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9421 esac
9422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9423 $as_echo "$ac_try_echo") >&5
9424 (eval "$ac_compile") 2>conftest.er1
9425 ac_status=$?
9426 grep -v '^ *+' conftest.er1 >conftest.err
9427 rm -f conftest.er1
9428 cat conftest.err >&5
9429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && {
9431 test -z "$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 } && test -s conftest.$ac_objext; then
9434 emacs_cv_void_star=yes
9435 else
9436 $as_echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 emacs_cv_void_star=no
9442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9444 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9445 $as_echo "$emacs_cv_void_star" >&6; }
9446 if test $emacs_cv_void_star = yes; then
9447 cat >>confdefs.h <<\_ACEOF
9448 #define POINTER_TYPE void
9449 _ACEOF
9451 else
9452 cat >>confdefs.h <<\_ACEOF
9453 #define POINTER_TYPE char
9454 _ACEOF
9462 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9463 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9464 set x ${MAKE-make}
9465 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9466 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9467 $as_echo_n "(cached) " >&6
9468 else
9469 cat >conftest.make <<\_ACEOF
9470 SHELL = /bin/sh
9471 all:
9472 @echo '@@@%%%=$(MAKE)=@@@%%%'
9473 _ACEOF
9474 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9475 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9476 *@@@%%%=?*=@@@%%%*)
9477 eval ac_cv_prog_make_${ac_make}_set=yes;;
9479 eval ac_cv_prog_make_${ac_make}_set=no;;
9480 esac
9481 rm -f conftest.make
9483 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9484 { $as_echo "$as_me:$LINENO: result: yes" >&5
9485 $as_echo "yes" >&6; }
9486 SET_MAKE=
9487 else
9488 { $as_echo "$as_me:$LINENO: result: no" >&5
9489 $as_echo "no" >&6; }
9490 SET_MAKE="MAKE=${MAKE-make}"
9494 DEPFLAGS=
9495 MKDEPDIR=":"
9496 deps_frag=deps.mk
9497 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9498 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9499 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9500 HAVE_GNU_MAKE=no
9501 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9502 if test "x$testval" != x; then
9503 HAVE_GNU_MAKE=yes
9504 else
9505 ac_enable_autodepend=no
9507 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9508 $as_echo "$HAVE_GNU_MAKE" >&6; }
9509 if test $HAVE_GNU_MAKE = yes; then
9510 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9511 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9512 SAVE_CFLAGS="$CFLAGS"
9513 CFLAGS="$CFLAGS -MMD -MF deps.d"
9514 cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h. */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9522 main ()
9526 return 0;
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9531 case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534 esac
9535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9536 $as_echo "$ac_try_echo") >&5
9537 (eval "$ac_compile") 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest.$ac_objext; then
9548 else
9549 $as_echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9552 ac_enable_autodepend=no
9555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556 CFLAGS="$SAVE_CFLAGS"
9557 test -f deps.d || ac_enable_autodepend=no
9558 rm -rf deps.d
9559 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9560 $as_echo "$ac_enable_autodepend" >&6; }
9562 if test $ac_enable_autodepend = yes; then
9563 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
9564 ## In parallel builds, another make might create depdir between
9565 ## the first test and mkdir, so stick another test on the end.
9566 ## Or use mkinstalldirs? mkdir -p is not portable.
9567 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9568 deps_frag=autodeps.mk
9571 deps_frag=$srcdir/src/$deps_frag
9577 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9578 $as_echo_n "checking for long file names... " >&6; }
9579 if test "${ac_cv_sys_long_file_names+set}" = set; then
9580 $as_echo_n "(cached) " >&6
9581 else
9582 ac_cv_sys_long_file_names=yes
9583 # Test for long file names in all the places we know might matter:
9584 # . the current directory, where building will happen
9585 # $prefix/lib where we will be installing things
9586 # $exec_prefix/lib likewise
9587 # $TMPDIR if set, where it might want to write temporary files
9588 # /tmp where it might want to write temporary files
9589 # /var/tmp likewise
9590 # /usr/tmp likewise
9591 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9592 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9593 # in the usual case where exec_prefix is '${prefix}'.
9594 case $ac_dir in #(
9595 . | /* | ?:[\\/]*) ;; #(
9596 *) continue;;
9597 esac
9598 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9599 ac_xdir=$ac_dir/cf$$
9600 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9601 ac_tf1=$ac_xdir/conftest9012345
9602 ac_tf2=$ac_xdir/conftest9012346
9603 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9604 ac_cv_sys_long_file_names=no
9605 rm -f -r "$ac_xdir" 2>/dev/null
9606 test $ac_cv_sys_long_file_names = no && break
9607 done
9609 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9610 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9611 if test $ac_cv_sys_long_file_names = yes; then
9613 cat >>confdefs.h <<\_ACEOF
9614 #define HAVE_LONG_FILE_NAMES 1
9615 _ACEOF
9620 #### Choose a window system.
9622 { $as_echo "$as_me:$LINENO: checking for X" >&5
9623 $as_echo_n "checking for X... " >&6; }
9626 # Check whether --with-x was given.
9627 if test "${with_x+set}" = set; then
9628 withval=$with_x;
9631 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9632 if test "x$with_x" = xno; then
9633 # The user explicitly disabled X.
9634 have_x=disabled
9635 else
9636 case $x_includes,$x_libraries in #(
9637 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9638 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9639 { (exit 1); exit 1; }; };; #(
9640 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9641 $as_echo_n "(cached) " >&6
9642 else
9643 # One or both of the vars are not set, and there is no cached value.
9644 ac_x_includes=no ac_x_libraries=no
9645 rm -f -r conftest.dir
9646 if mkdir conftest.dir; then
9647 cd conftest.dir
9648 cat >Imakefile <<'_ACEOF'
9649 incroot:
9650 @echo incroot='${INCROOT}'
9651 usrlibdir:
9652 @echo usrlibdir='${USRLIBDIR}'
9653 libdir:
9654 @echo libdir='${LIBDIR}'
9655 _ACEOF
9656 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9658 for ac_var in incroot usrlibdir libdir; do
9659 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9660 done
9661 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9662 for ac_extension in a so sl dylib la dll; do
9663 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9664 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9665 ac_im_usrlibdir=$ac_im_libdir; break
9667 done
9668 # Screen out bogus values from the imake configuration. They are
9669 # bogus both because they are the default anyway, and because
9670 # using them would break gcc on systems where it needs fixed includes.
9671 case $ac_im_incroot in
9672 /usr/include) ac_x_includes= ;;
9673 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9674 esac
9675 case $ac_im_usrlibdir in
9676 /usr/lib | /lib) ;;
9677 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9678 esac
9680 cd ..
9681 rm -f -r conftest.dir
9684 # Standard set of common directories for X headers.
9685 # Check X11 before X11Rn because it is often a symlink to the current release.
9686 ac_x_header_dirs='
9687 /usr/X11/include
9688 /usr/X11R6/include
9689 /usr/X11R5/include
9690 /usr/X11R4/include
9692 /usr/include/X11
9693 /usr/include/X11R6
9694 /usr/include/X11R5
9695 /usr/include/X11R4
9697 /usr/local/X11/include
9698 /usr/local/X11R6/include
9699 /usr/local/X11R5/include
9700 /usr/local/X11R4/include
9702 /usr/local/include/X11
9703 /usr/local/include/X11R6
9704 /usr/local/include/X11R5
9705 /usr/local/include/X11R4
9707 /usr/X386/include
9708 /usr/x386/include
9709 /usr/XFree86/include/X11
9711 /usr/include
9712 /usr/local/include
9713 /usr/unsupported/include
9714 /usr/athena/include
9715 /usr/local/x11r5/include
9716 /usr/lpp/Xamples/include
9718 /usr/openwin/include
9719 /usr/openwin/share/include'
9721 if test "$ac_x_includes" = no; then
9722 # Guess where to find include files, by looking for Xlib.h.
9723 # First, try using that file with no special directory specified.
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h. */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 #include <X11/Xlib.h>
9731 _ACEOF
9732 if { (ac_try="$ac_cpp conftest.$ac_ext"
9733 case "(($ac_try" in
9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9736 esac
9737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9738 $as_echo "$ac_try_echo") >&5
9739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9740 ac_status=$?
9741 grep -v '^ *+' conftest.er1 >conftest.err
9742 rm -f conftest.er1
9743 cat conftest.err >&5
9744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } >/dev/null && {
9746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9747 test ! -s conftest.err
9748 }; then
9749 # We can compile using X headers with no special include directory.
9750 ac_x_includes=
9751 else
9752 $as_echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9755 for ac_dir in $ac_x_header_dirs; do
9756 if test -r "$ac_dir/X11/Xlib.h"; then
9757 ac_x_includes=$ac_dir
9758 break
9760 done
9763 rm -f conftest.err conftest.$ac_ext
9764 fi # $ac_x_includes = no
9766 if test "$ac_x_libraries" = no; then
9767 # Check for the libraries.
9768 # See if we find them without any special options.
9769 # Don't add to $LIBS permanently.
9770 ac_save_LIBS=$LIBS
9771 LIBS="-lX11 $LIBS"
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h. */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9778 #include <X11/Xlib.h>
9780 main ()
9782 XrmInitialize ()
9784 return 0;
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (ac_try="$ac_link"
9789 case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792 esac
9793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9794 $as_echo "$ac_try_echo") >&5
9795 (eval "$ac_link") 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } && {
9802 test -z "$ac_c_werror_flag" ||
9803 test ! -s conftest.err
9804 } && test -s conftest$ac_exeext && {
9805 test "$cross_compiling" = yes ||
9806 $as_test_x conftest$ac_exeext
9807 }; then
9808 LIBS=$ac_save_LIBS
9809 # We can link X programs with no special library path.
9810 ac_x_libraries=
9811 else
9812 $as_echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 LIBS=$ac_save_LIBS
9816 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9818 # Don't even attempt the hair of trying to link an X program!
9819 for ac_extension in a so sl dylib la dll; do
9820 if test -r "$ac_dir/libX11.$ac_extension"; then
9821 ac_x_libraries=$ac_dir
9822 break 2
9824 done
9825 done
9828 rm -rf conftest.dSYM
9829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9830 conftest$ac_exeext conftest.$ac_ext
9831 fi # $ac_x_libraries = no
9833 case $ac_x_includes,$ac_x_libraries in #(
9834 no,* | *,no | *\'*)
9835 # Didn't find X, or a directory has "'" in its name.
9836 ac_cv_have_x="have_x=no";; #(
9838 # Record where we found X for the cache.
9839 ac_cv_have_x="have_x=yes\
9840 ac_x_includes='$ac_x_includes'\
9841 ac_x_libraries='$ac_x_libraries'"
9842 esac
9844 ;; #(
9845 *) have_x=yes;;
9846 esac
9847 eval "$ac_cv_have_x"
9848 fi # $with_x != no
9850 if test "$have_x" != yes; then
9851 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9852 $as_echo "$have_x" >&6; }
9853 no_x=yes
9854 else
9855 # If each of the values was on the command line, it overrides each guess.
9856 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9857 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9858 # Update the cache value to reflect the command line values.
9859 ac_cv_have_x="have_x=yes\
9860 ac_x_includes='$x_includes'\
9861 ac_x_libraries='$x_libraries'"
9862 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9863 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9866 if test "$no_x" = yes; then
9867 window_system=none
9868 else
9869 window_system=x11
9872 ## Workaround for bug in autoconf <= 2.62.
9873 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9874 ## No need to do anything special for these standard directories.
9875 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9877 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9881 LD_SWITCH_X_SITE_AUX=
9882 LD_SWITCH_X_SITE_AUX_RPATH=
9883 if test "${x_libraries}" != NONE; then
9884 if test -n "${x_libraries}"; then
9885 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9886 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9887 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9889 x_default_search_path=""
9890 x_search_path=${x_libraries}
9891 if test -z "${x_search_path}"; then
9892 x_search_path=/usr/lib
9894 for x_library in `echo ${x_search_path}: | \
9895 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9896 x_search_path="\
9897 ${x_library}/X11/%L/%T/%N%C%S:\
9898 ${x_library}/X11/%l/%T/%N%C%S:\
9899 ${x_library}/X11/%T/%N%C%S:\
9900 ${x_library}/X11/%L/%T/%N%S:\
9901 ${x_library}/X11/%l/%T/%N%S:\
9902 ${x_library}/X11/%T/%N%S"
9903 if test x"${x_default_search_path}" = x; then
9904 x_default_search_path=${x_search_path}
9905 else
9906 x_default_search_path="${x_search_path}:${x_default_search_path}"
9908 done
9913 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9914 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9917 if test x"${x_includes}" = x; then
9918 bitmapdir=/usr/include/X11/bitmaps
9919 else
9920 # accumulate include directories that have X11 bitmap subdirectories
9921 bmd_acc="dummyval"
9922 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9923 if test -d "${bmd}/X11/bitmaps"; then
9924 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9926 if test -d "${bmd}/bitmaps"; then
9927 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9929 done
9930 if test ${bmd_acc} != "dummyval"; then
9931 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9935 HAVE_NS=no
9936 NS_IMPL_COCOA=no
9937 NS_IMPL_GNUSTEP=no
9938 NS_IMPL_GNUSTEP_INC=
9939 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS=
9940 tmp_CPPFLAGS="$CPPFLAGS"
9941 tmp_CFLAGS="$CFLAGS"
9942 CPPFLAGS="$CPPFLAGS -x objective-c"
9943 CFLAGS="$CFLAGS -x objective-c"
9944 TEMACS_LDFLAGS2="\${LDFLAGS}"
9945 if test "${with_ns}" != no; then
9946 if test "${opsys}" = darwin; then
9947 NS_IMPL_COCOA=yes
9948 ns_appdir=`pwd`/nextstep/Emacs.app/
9949 ns_appbindir=${ns_appdir}Contents/MacOS/
9950 ns_appresdir=${ns_appdir}Contents/Resources
9951 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9952 elif test -f $GNUSTEP_CONFIG_FILE; then
9953 NS_IMPL_GNUSTEP=yes
9954 ns_appdir=`pwd`/nextstep/Emacs.app/
9955 ns_appbindir=${ns_appdir}
9956 ns_appresdir=${ns_appdir}Resources
9957 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9958 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9959 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9960 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9961 ## Pull in stuff from GNUstep-make.
9962 ## FIXME? Cleaner to use AC_SUBST_FILE for this?
9963 NS_IMPL_GNUSTEP_INC="FOUNDATION_LIB=gnu
9964 GUI_LIB=gnu
9965 include $GNUSTEP_MAKEFILES/Additional/base.make
9966 include $GNUSTEP_MAKEFILES/Additional/gui.make
9967 shared=no
9969 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS="-L${GNUSTEP_SYSTEM_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc \${CONFIG_SYSTEM_LIBS} -lpthread"
9970 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9971 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9972 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9973 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9974 LIB_STANDARD=
9975 START_FILES=
9976 TEMACS_LDFLAGS2=
9978 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9979 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9980 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9981 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9982 $as_echo_n "(cached) " >&6
9984 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9985 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9986 else
9987 # Is the header compilable?
9988 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9989 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9990 cat >conftest.$ac_ext <<_ACEOF
9991 /* confdefs.h. */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9996 $ac_includes_default
9997 #include <AppKit/AppKit.h>
9998 _ACEOF
9999 rm -f conftest.$ac_objext
10000 if { (ac_try="$ac_compile"
10001 case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004 esac
10005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10006 $as_echo "$ac_try_echo") >&5
10007 (eval "$ac_compile") 2>conftest.er1
10008 ac_status=$?
10009 grep -v '^ *+' conftest.er1 >conftest.err
10010 rm -f conftest.er1
10011 cat conftest.err >&5
10012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } && {
10014 test -z "$ac_c_werror_flag" ||
10015 test ! -s conftest.err
10016 } && test -s conftest.$ac_objext; then
10017 ac_header_compiler=yes
10018 else
10019 $as_echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10022 ac_header_compiler=no
10025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10026 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10027 $as_echo "$ac_header_compiler" >&6; }
10029 # Is the header present?
10030 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10031 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10032 cat >conftest.$ac_ext <<_ACEOF
10033 /* confdefs.h. */
10034 _ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 #include <AppKit/AppKit.h>
10039 _ACEOF
10040 if { (ac_try="$ac_cpp conftest.$ac_ext"
10041 case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10044 esac
10045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10046 $as_echo "$ac_try_echo") >&5
10047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } >/dev/null && {
10054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10055 test ! -s conftest.err
10056 }; then
10057 ac_header_preproc=yes
10058 else
10059 $as_echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10062 ac_header_preproc=no
10065 rm -f conftest.err conftest.$ac_ext
10066 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10067 $as_echo "$ac_header_preproc" >&6; }
10069 # So? What about this header?
10070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10071 yes:no: )
10072 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10073 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10074 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10075 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10076 ac_header_preproc=yes
10078 no:yes:* )
10079 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10080 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10081 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10082 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10083 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10084 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10085 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10086 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10087 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10088 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10089 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10090 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10093 esac
10094 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10095 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10096 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10097 $as_echo_n "(cached) " >&6
10098 else
10099 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
10101 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10102 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10105 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10106 HAVE_NS=yes
10107 else
10108 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10109 files are missing or cannot be compiled." >&5
10110 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10111 files are missing or cannot be compiled." >&2;}
10112 { (exit 1); exit 1; }; }
10116 NS_HAVE_NSINTEGER=yes
10117 cat >conftest.$ac_ext <<_ACEOF
10118 /* confdefs.h. */
10119 _ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 #include <Foundation/NSObjCRuntime.h>
10125 main ()
10127 NSInteger i;
10129 return 0;
10131 _ACEOF
10132 rm -f conftest.$ac_objext
10133 if { (ac_try="$ac_compile"
10134 case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10137 esac
10138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10139 $as_echo "$ac_try_echo") >&5
10140 (eval "$ac_compile") 2>conftest.er1
10141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && {
10147 test -z "$ac_c_werror_flag" ||
10148 test ! -s conftest.err
10149 } && test -s conftest.$ac_objext; then
10150 ns_have_nsinteger=yes
10151 else
10152 $as_echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10155 ns_have_nsinteger=no
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 if test $ns_have_nsinteger = no; then
10160 NS_HAVE_NSINTEGER=no
10167 ns_frag=/dev/null
10168 NS_OBJ=
10169 NS_SUPPORT=
10170 if test "${HAVE_NS}" = yes; then
10171 window_system=nextstep
10172 with_xft=no
10173 # set up packaging dirs
10174 exec_prefix=${ns_appbindir}
10175 libexecdir=${ns_appbindir}/libexec
10176 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10177 prefix=${ns_appresdir}
10179 ns_frag=$srcdir/src/ns.mk
10180 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10181 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10183 CFLAGS="$tmp_CFLAGS"
10184 CPPFLAGS="$tmp_CPPFLAGS"
10190 case "${window_system}" in
10191 x11 )
10192 HAVE_X_WINDOWS=yes
10193 HAVE_X11=yes
10194 case "${with_x_toolkit}" in
10195 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10196 motif ) USE_X_TOOLKIT=MOTIF ;;
10197 gtk ) with_gtk=yes
10198 USE_X_TOOLKIT=none ;;
10199 no ) USE_X_TOOLKIT=none ;;
10200 * ) USE_X_TOOLKIT=maybe ;;
10201 esac
10203 nextstep | none )
10204 HAVE_X_WINDOWS=no
10205 HAVE_X11=no
10206 USE_X_TOOLKIT=none
10208 esac
10210 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10211 # Extract the first word of "X", so it can be a program name with args.
10212 set dummy X; ac_word=$2
10213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10214 $as_echo_n "checking for $ac_word... " >&6; }
10215 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10216 $as_echo_n "(cached) " >&6
10217 else
10218 if test -n "$HAVE_XSERVER"; then
10219 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10220 else
10221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10222 for as_dir in $PATH
10224 IFS=$as_save_IFS
10225 test -z "$as_dir" && as_dir=.
10226 for ac_exec_ext in '' $ac_executable_extensions; do
10227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10228 ac_cv_prog_HAVE_XSERVER="true"
10229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10230 break 2
10232 done
10233 done
10234 IFS=$as_save_IFS
10236 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10239 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10240 if test -n "$HAVE_XSERVER"; then
10241 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10242 $as_echo "$HAVE_XSERVER" >&6; }
10243 else
10244 { $as_echo "$as_me:$LINENO: result: no" >&5
10245 $as_echo "no" >&6; }
10249 if test "$HAVE_XSERVER" = true ||
10250 test -n "$DISPLAY" ||
10251 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10252 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10253 were found. You should install the relevant development files for X
10254 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10255 sure you have development files for image handling, i.e.
10256 tiff, gif, jpeg, png and xpm.
10257 If you are sure you want Emacs compiled without X window support, pass
10258 --without-x
10259 to configure." >&5
10260 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10261 were found. You should install the relevant development files for X
10262 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10263 sure you have development files for image handling, i.e.
10264 tiff, gif, jpeg, png and xpm.
10265 If you are sure you want Emacs compiled without X window support, pass
10266 --without-x
10267 to configure." >&2;}
10268 { (exit 1); exit 1; }; }
10272 ### If we're using X11, we should use the X menu package.
10273 HAVE_MENUS=no
10274 case ${HAVE_X11} in
10275 yes ) HAVE_MENUS=yes ;;
10276 esac
10278 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10279 # Assume not, until told otherwise.
10280 GNU_MALLOC=yes
10281 doug_lea_malloc=yes
10282 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10283 $as_echo_n "checking for malloc_get_state... " >&6; }
10284 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10285 $as_echo_n "(cached) " >&6
10286 else
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h. */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10295 #define malloc_get_state innocuous_malloc_get_state
10297 /* System header to define __stub macros and hopefully few prototypes,
10298 which can conflict with char malloc_get_state (); below.
10299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10300 <limits.h> exists even on freestanding compilers. */
10302 #ifdef __STDC__
10303 # include <limits.h>
10304 #else
10305 # include <assert.h>
10306 #endif
10308 #undef malloc_get_state
10310 /* Override any GCC internal prototype to avoid an error.
10311 Use char because int might match the return type of a GCC
10312 builtin and then its argument prototype would still apply. */
10313 #ifdef __cplusplus
10314 extern "C"
10315 #endif
10316 char malloc_get_state ();
10317 /* The GNU C library defines this for functions which it implements
10318 to always fail with ENOSYS. Some functions are actually named
10319 something starting with __ and the normal name is an alias. */
10320 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10321 choke me
10322 #endif
10325 main ()
10327 return malloc_get_state ();
10329 return 0;
10331 _ACEOF
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (ac_try="$ac_link"
10334 case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10337 esac
10338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10339 $as_echo "$ac_try_echo") >&5
10340 (eval "$ac_link") 2>conftest.er1
10341 ac_status=$?
10342 grep -v '^ *+' conftest.er1 >conftest.err
10343 rm -f conftest.er1
10344 cat conftest.err >&5
10345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } && {
10347 test -z "$ac_c_werror_flag" ||
10348 test ! -s conftest.err
10349 } && test -s conftest$ac_exeext && {
10350 test "$cross_compiling" = yes ||
10351 $as_test_x conftest$ac_exeext
10352 }; then
10353 ac_cv_func_malloc_get_state=yes
10354 else
10355 $as_echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 ac_cv_func_malloc_get_state=no
10361 rm -rf conftest.dSYM
10362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10363 conftest$ac_exeext conftest.$ac_ext
10365 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10366 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10367 if test $ac_cv_func_malloc_get_state = yes; then
10369 else
10370 doug_lea_malloc=no
10373 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10374 $as_echo_n "checking for malloc_set_state... " >&6; }
10375 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10376 $as_echo_n "(cached) " >&6
10377 else
10378 cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h. */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10386 #define malloc_set_state innocuous_malloc_set_state
10388 /* System header to define __stub macros and hopefully few prototypes,
10389 which can conflict with char malloc_set_state (); below.
10390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10391 <limits.h> exists even on freestanding compilers. */
10393 #ifdef __STDC__
10394 # include <limits.h>
10395 #else
10396 # include <assert.h>
10397 #endif
10399 #undef malloc_set_state
10401 /* Override any GCC internal prototype to avoid an error.
10402 Use char because int might match the return type of a GCC
10403 builtin and then its argument prototype would still apply. */
10404 #ifdef __cplusplus
10405 extern "C"
10406 #endif
10407 char malloc_set_state ();
10408 /* The GNU C library defines this for functions which it implements
10409 to always fail with ENOSYS. Some functions are actually named
10410 something starting with __ and the normal name is an alias. */
10411 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10412 choke me
10413 #endif
10416 main ()
10418 return malloc_set_state ();
10420 return 0;
10422 _ACEOF
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (ac_try="$ac_link"
10425 case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10428 esac
10429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10430 $as_echo "$ac_try_echo") >&5
10431 (eval "$ac_link") 2>conftest.er1
10432 ac_status=$?
10433 grep -v '^ *+' conftest.er1 >conftest.err
10434 rm -f conftest.er1
10435 cat conftest.err >&5
10436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } && {
10438 test -z "$ac_c_werror_flag" ||
10439 test ! -s conftest.err
10440 } && test -s conftest$ac_exeext && {
10441 test "$cross_compiling" = yes ||
10442 $as_test_x conftest$ac_exeext
10443 }; then
10444 ac_cv_func_malloc_set_state=yes
10445 else
10446 $as_echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 ac_cv_func_malloc_set_state=no
10452 rm -rf conftest.dSYM
10453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10454 conftest$ac_exeext conftest.$ac_ext
10456 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10457 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10458 if test $ac_cv_func_malloc_set_state = yes; then
10460 else
10461 doug_lea_malloc=no
10464 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10465 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10466 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10467 $as_echo_n "(cached) " >&6
10468 else
10469 cat >conftest.$ac_ext <<_ACEOF
10470 /* confdefs.h. */
10471 _ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 extern void (* __after_morecore_hook)();
10477 main ()
10479 __after_morecore_hook = 0
10481 return 0;
10483 _ACEOF
10484 rm -f conftest.$ac_objext conftest$ac_exeext
10485 if { (ac_try="$ac_link"
10486 case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10489 esac
10490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10491 $as_echo "$ac_try_echo") >&5
10492 (eval "$ac_link") 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest$ac_exeext && {
10502 test "$cross_compiling" = yes ||
10503 $as_test_x conftest$ac_exeext
10504 }; then
10505 emacs_cv_var___after_morecore_hook=yes
10506 else
10507 $as_echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10510 emacs_cv_var___after_morecore_hook=no
10513 rm -rf conftest.dSYM
10514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10515 conftest$ac_exeext conftest.$ac_ext
10517 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10518 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10519 if test $emacs_cv_var___after_morecore_hook = no; then
10520 doug_lea_malloc=no
10523 if test "${system_malloc}" = "yes"; then
10524 GNU_MALLOC=no
10525 GNU_MALLOC_reason="
10526 (The GNU allocators don't work with this system configuration.)"
10527 GMALLOC_OBJ=
10528 VMLIMIT_OBJ=
10529 else
10530 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10531 VMLIMIT_OBJ=vm-limit.o
10536 if test "$doug_lea_malloc" = "yes" ; then
10537 if test "$GNU_MALLOC" = yes ; then
10538 GNU_MALLOC_reason="
10539 (Using Doug Lea's new malloc from the GNU C Library.)"
10542 cat >>confdefs.h <<\_ACEOF
10543 #define DOUG_LEA_MALLOC 1
10544 _ACEOF
10547 ## Use mmap directly for allocating larger buffers.
10548 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10549 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10550 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10551 case "$opsys" in
10552 gnu*) REL_ALLOC=no ;;
10553 esac
10556 if test x"${REL_ALLOC}" = x; then
10557 REL_ALLOC=${GNU_MALLOC}
10563 for ac_header in stdlib.h unistd.h
10565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10567 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10568 $as_echo_n "checking for $ac_header... " >&6; }
10569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10570 $as_echo_n "(cached) " >&6
10572 ac_res=`eval 'as_val=${'$as_ac_Header'}
10573 $as_echo "$as_val"'`
10574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10575 $as_echo "$ac_res" >&6; }
10576 else
10577 # Is the header compilable?
10578 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10579 $as_echo_n "checking $ac_header usability... " >&6; }
10580 cat >conftest.$ac_ext <<_ACEOF
10581 /* confdefs.h. */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10586 $ac_includes_default
10587 #include <$ac_header>
10588 _ACEOF
10589 rm -f conftest.$ac_objext
10590 if { (ac_try="$ac_compile"
10591 case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10594 esac
10595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10596 $as_echo "$ac_try_echo") >&5
10597 (eval "$ac_compile") 2>conftest.er1
10598 ac_status=$?
10599 grep -v '^ *+' conftest.er1 >conftest.err
10600 rm -f conftest.er1
10601 cat conftest.err >&5
10602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } && {
10604 test -z "$ac_c_werror_flag" ||
10605 test ! -s conftest.err
10606 } && test -s conftest.$ac_objext; then
10607 ac_header_compiler=yes
10608 else
10609 $as_echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10612 ac_header_compiler=no
10615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10616 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10617 $as_echo "$ac_header_compiler" >&6; }
10619 # Is the header present?
10620 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10621 $as_echo_n "checking $ac_header presence... " >&6; }
10622 cat >conftest.$ac_ext <<_ACEOF
10623 /* confdefs.h. */
10624 _ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10628 #include <$ac_header>
10629 _ACEOF
10630 if { (ac_try="$ac_cpp conftest.$ac_ext"
10631 case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10634 esac
10635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10636 $as_echo "$ac_try_echo") >&5
10637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } >/dev/null && {
10644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 }; then
10647 ac_header_preproc=yes
10648 else
10649 $as_echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10652 ac_header_preproc=no
10655 rm -f conftest.err conftest.$ac_ext
10656 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10657 $as_echo "$ac_header_preproc" >&6; }
10659 # So? What about this header?
10660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10661 yes:no: )
10662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10663 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10665 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10666 ac_header_preproc=yes
10668 no:yes:* )
10669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10670 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10672 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10674 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10676 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10678 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10680 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10683 esac
10684 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10685 $as_echo_n "checking for $ac_header... " >&6; }
10686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687 $as_echo_n "(cached) " >&6
10688 else
10689 eval "$as_ac_Header=\$ac_header_preproc"
10691 ac_res=`eval 'as_val=${'$as_ac_Header'}
10692 $as_echo "$as_val"'`
10693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10694 $as_echo "$ac_res" >&6; }
10697 if test `eval 'as_val=${'$as_ac_Header'}
10698 $as_echo "$as_val"'` = yes; then
10699 cat >>confdefs.h <<_ACEOF
10700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10701 _ACEOF
10705 done
10708 for ac_func in getpagesize
10710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10711 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10712 $as_echo_n "checking for $ac_func... " >&6; }
10713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10714 $as_echo_n "(cached) " >&6
10715 else
10716 cat >conftest.$ac_ext <<_ACEOF
10717 /* confdefs.h. */
10718 _ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h. */
10722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10724 #define $ac_func innocuous_$ac_func
10726 /* System header to define __stub macros and hopefully few prototypes,
10727 which can conflict with char $ac_func (); below.
10728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10729 <limits.h> exists even on freestanding compilers. */
10731 #ifdef __STDC__
10732 # include <limits.h>
10733 #else
10734 # include <assert.h>
10735 #endif
10737 #undef $ac_func
10739 /* Override any GCC internal prototype to avoid an error.
10740 Use char because int might match the return type of a GCC
10741 builtin and then its argument prototype would still apply. */
10742 #ifdef __cplusplus
10743 extern "C"
10744 #endif
10745 char $ac_func ();
10746 /* The GNU C library defines this for functions which it implements
10747 to always fail with ENOSYS. Some functions are actually named
10748 something starting with __ and the normal name is an alias. */
10749 #if defined __stub_$ac_func || defined __stub___$ac_func
10750 choke me
10751 #endif
10754 main ()
10756 return $ac_func ();
10758 return 0;
10760 _ACEOF
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766 esac
10767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10768 $as_echo "$ac_try_echo") >&5
10769 (eval "$ac_link") 2>conftest.er1
10770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } && {
10776 test -z "$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10778 } && test -s conftest$ac_exeext && {
10779 test "$cross_compiling" = yes ||
10780 $as_test_x conftest$ac_exeext
10781 }; then
10782 eval "$as_ac_var=yes"
10783 else
10784 $as_echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 eval "$as_ac_var=no"
10790 rm -rf conftest.dSYM
10791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10792 conftest$ac_exeext conftest.$ac_ext
10794 ac_res=`eval 'as_val=${'$as_ac_var'}
10795 $as_echo "$as_val"'`
10796 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10797 $as_echo "$ac_res" >&6; }
10798 if test `eval 'as_val=${'$as_ac_var'}
10799 $as_echo "$as_val"'` = yes; then
10800 cat >>confdefs.h <<_ACEOF
10801 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10802 _ACEOF
10805 done
10807 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10808 $as_echo_n "checking for working mmap... " >&6; }
10809 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10810 $as_echo_n "(cached) " >&6
10811 else
10812 if test "$cross_compiling" = yes; then
10813 ac_cv_func_mmap_fixed_mapped=no
10814 else
10815 cat >conftest.$ac_ext <<_ACEOF
10816 /* confdefs.h. */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10821 $ac_includes_default
10822 /* malloc might have been renamed as rpl_malloc. */
10823 #undef malloc
10825 /* Thanks to Mike Haertel and Jim Avera for this test.
10826 Here is a matrix of mmap possibilities:
10827 mmap private not fixed
10828 mmap private fixed at somewhere currently unmapped
10829 mmap private fixed at somewhere already mapped
10830 mmap shared not fixed
10831 mmap shared fixed at somewhere currently unmapped
10832 mmap shared fixed at somewhere already mapped
10833 For private mappings, we should verify that changes cannot be read()
10834 back from the file, nor mmap's back from the file at a different
10835 address. (There have been systems where private was not correctly
10836 implemented like the infamous i386 svr4.0, and systems where the
10837 VM page cache was not coherent with the file system buffer cache
10838 like early versions of FreeBSD and possibly contemporary NetBSD.)
10839 For shared mappings, we should conversely verify that changes get
10840 propagated back to all the places they're supposed to be.
10842 Grep wants private fixed already mapped.
10843 The main things grep needs to know about mmap are:
10844 * does it exist and is it safe to write into the mmap'd area
10845 * how to use it (BSD variants) */
10847 #include <fcntl.h>
10848 #include <sys/mman.h>
10850 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10851 char *malloc ();
10852 #endif
10854 /* This mess was copied from the GNU getpagesize.h. */
10855 #ifndef HAVE_GETPAGESIZE
10856 /* Assume that all systems that can run configure have sys/param.h. */
10857 # ifndef HAVE_SYS_PARAM_H
10858 # define HAVE_SYS_PARAM_H 1
10859 # endif
10861 # ifdef _SC_PAGESIZE
10862 # define getpagesize() sysconf(_SC_PAGESIZE)
10863 # else /* no _SC_PAGESIZE */
10864 # ifdef HAVE_SYS_PARAM_H
10865 # include <sys/param.h>
10866 # ifdef EXEC_PAGESIZE
10867 # define getpagesize() EXEC_PAGESIZE
10868 # else /* no EXEC_PAGESIZE */
10869 # ifdef NBPG
10870 # define getpagesize() NBPG * CLSIZE
10871 # ifndef CLSIZE
10872 # define CLSIZE 1
10873 # endif /* no CLSIZE */
10874 # else /* no NBPG */
10875 # ifdef NBPC
10876 # define getpagesize() NBPC
10877 # else /* no NBPC */
10878 # ifdef PAGESIZE
10879 # define getpagesize() PAGESIZE
10880 # endif /* PAGESIZE */
10881 # endif /* no NBPC */
10882 # endif /* no NBPG */
10883 # endif /* no EXEC_PAGESIZE */
10884 # else /* no HAVE_SYS_PARAM_H */
10885 # define getpagesize() 8192 /* punt totally */
10886 # endif /* no HAVE_SYS_PARAM_H */
10887 # endif /* no _SC_PAGESIZE */
10889 #endif /* no HAVE_GETPAGESIZE */
10892 main ()
10894 char *data, *data2, *data3;
10895 int i, pagesize;
10896 int fd;
10898 pagesize = getpagesize ();
10900 /* First, make a file with some known garbage in it. */
10901 data = (char *) malloc (pagesize);
10902 if (!data)
10903 return 1;
10904 for (i = 0; i < pagesize; ++i)
10905 *(data + i) = rand ();
10906 umask (0);
10907 fd = creat ("conftest.mmap", 0600);
10908 if (fd < 0)
10909 return 1;
10910 if (write (fd, data, pagesize) != pagesize)
10911 return 1;
10912 close (fd);
10914 /* Next, try to mmap the file at a fixed address which already has
10915 something else allocated at it. If we can, also make sure that
10916 we see the same garbage. */
10917 fd = open ("conftest.mmap", O_RDWR);
10918 if (fd < 0)
10919 return 1;
10920 data2 = (char *) malloc (2 * pagesize);
10921 if (!data2)
10922 return 1;
10923 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10924 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10925 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10926 return 1;
10927 for (i = 0; i < pagesize; ++i)
10928 if (*(data + i) != *(data2 + i))
10929 return 1;
10931 /* Finally, make sure that changes to the mapped area do not
10932 percolate back to the file as seen by read(). (This is a bug on
10933 some variants of i386 svr4.0.) */
10934 for (i = 0; i < pagesize; ++i)
10935 *(data2 + i) = *(data2 + i) + 1;
10936 data3 = (char *) malloc (pagesize);
10937 if (!data3)
10938 return 1;
10939 if (read (fd, data3, pagesize) != pagesize)
10940 return 1;
10941 for (i = 0; i < pagesize; ++i)
10942 if (*(data + i) != *(data3 + i))
10943 return 1;
10944 close (fd);
10945 return 0;
10947 _ACEOF
10948 rm -f conftest$ac_exeext
10949 if { (ac_try="$ac_link"
10950 case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10953 esac
10954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10955 $as_echo "$ac_try_echo") >&5
10956 (eval "$ac_link") 2>&5
10957 ac_status=$?
10958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10960 { (case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10963 esac
10964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10965 $as_echo "$ac_try_echo") >&5
10966 (eval "$ac_try") 2>&5
10967 ac_status=$?
10968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
10970 ac_cv_func_mmap_fixed_mapped=yes
10971 else
10972 $as_echo "$as_me: program exited with status $ac_status" >&5
10973 $as_echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10976 ( exit $ac_status )
10977 ac_cv_func_mmap_fixed_mapped=no
10979 rm -rf conftest.dSYM
10980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10985 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10986 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10987 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10989 cat >>confdefs.h <<\_ACEOF
10990 #define HAVE_MMAP 1
10991 _ACEOF
10994 rm -f conftest.mmap
10996 if test $use_mmap_for_buffers = yes; then
10997 REL_ALLOC=no
11000 LIBS="$LIBS_SYSTEM $LIBS"
11003 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11004 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
11005 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11006 $as_echo_n "(cached) " >&6
11007 else
11008 ac_check_lib_save_LIBS=$LIBS
11009 LIBS="-ldnet $LIBS"
11010 cat >conftest.$ac_ext <<_ACEOF
11011 /* confdefs.h. */
11012 _ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11017 /* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
11020 #ifdef __cplusplus
11021 extern "C"
11022 #endif
11023 char dnet_ntoa ();
11025 main ()
11027 return dnet_ntoa ();
11029 return 0;
11031 _ACEOF
11032 rm -f conftest.$ac_objext conftest$ac_exeext
11033 if { (ac_try="$ac_link"
11034 case "(($ac_try" in
11035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036 *) ac_try_echo=$ac_try;;
11037 esac
11038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11039 $as_echo "$ac_try_echo") >&5
11040 (eval "$ac_link") 2>conftest.er1
11041 ac_status=$?
11042 grep -v '^ *+' conftest.er1 >conftest.err
11043 rm -f conftest.er1
11044 cat conftest.err >&5
11045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } && {
11047 test -z "$ac_c_werror_flag" ||
11048 test ! -s conftest.err
11049 } && test -s conftest$ac_exeext && {
11050 test "$cross_compiling" = yes ||
11051 $as_test_x conftest$ac_exeext
11052 }; then
11053 ac_cv_lib_dnet_dnet_ntoa=yes
11054 else
11055 $as_echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11058 ac_cv_lib_dnet_dnet_ntoa=no
11061 rm -rf conftest.dSYM
11062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11063 conftest$ac_exeext conftest.$ac_ext
11064 LIBS=$ac_check_lib_save_LIBS
11066 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11067 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11068 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11069 cat >>confdefs.h <<_ACEOF
11070 #define HAVE_LIBDNET 1
11071 _ACEOF
11073 LIBS="-ldnet $LIBS"
11078 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11079 $as_echo_n "checking for main in -lXbsd... " >&6; }
11080 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11081 $as_echo_n "(cached) " >&6
11082 else
11083 ac_check_lib_save_LIBS=$LIBS
11084 LIBS="-lXbsd $LIBS"
11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h. */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11094 main ()
11096 return main ();
11098 return 0;
11100 _ACEOF
11101 rm -f conftest.$ac_objext conftest$ac_exeext
11102 if { (ac_try="$ac_link"
11103 case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11106 esac
11107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11108 $as_echo "$ac_try_echo") >&5
11109 (eval "$ac_link") 2>conftest.er1
11110 ac_status=$?
11111 grep -v '^ *+' conftest.er1 >conftest.err
11112 rm -f conftest.er1
11113 cat conftest.err >&5
11114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } && {
11116 test -z "$ac_c_werror_flag" ||
11117 test ! -s conftest.err
11118 } && test -s conftest$ac_exeext && {
11119 test "$cross_compiling" = yes ||
11120 $as_test_x conftest$ac_exeext
11121 }; then
11122 ac_cv_lib_Xbsd_main=yes
11123 else
11124 $as_echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11127 ac_cv_lib_Xbsd_main=no
11130 rm -rf conftest.dSYM
11131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11132 conftest$ac_exeext conftest.$ac_ext
11133 LIBS=$ac_check_lib_save_LIBS
11135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11136 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11137 if test $ac_cv_lib_Xbsd_main = yes; then
11138 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11143 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11144 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11145 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11146 $as_echo_n "(cached) " >&6
11147 else
11148 ac_check_lib_save_LIBS=$LIBS
11149 LIBS="-lpthreads $LIBS"
11150 cat >conftest.$ac_ext <<_ACEOF
11151 /* confdefs.h. */
11152 _ACEOF
11153 cat confdefs.h >>conftest.$ac_ext
11154 cat >>conftest.$ac_ext <<_ACEOF
11155 /* end confdefs.h. */
11157 /* Override any GCC internal prototype to avoid an error.
11158 Use char because int might match the return type of a GCC
11159 builtin and then its argument prototype would still apply. */
11160 #ifdef __cplusplus
11161 extern "C"
11162 #endif
11163 char cma_open ();
11165 main ()
11167 return cma_open ();
11169 return 0;
11171 _ACEOF
11172 rm -f conftest.$ac_objext conftest$ac_exeext
11173 if { (ac_try="$ac_link"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11177 esac
11178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11179 $as_echo "$ac_try_echo") >&5
11180 (eval "$ac_link") 2>conftest.er1
11181 ac_status=$?
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
11185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } && {
11187 test -z "$ac_c_werror_flag" ||
11188 test ! -s conftest.err
11189 } && test -s conftest$ac_exeext && {
11190 test "$cross_compiling" = yes ||
11191 $as_test_x conftest$ac_exeext
11192 }; then
11193 ac_cv_lib_pthreads_cma_open=yes
11194 else
11195 $as_echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11198 ac_cv_lib_pthreads_cma_open=no
11201 rm -rf conftest.dSYM
11202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11203 conftest$ac_exeext conftest.$ac_ext
11204 LIBS=$ac_check_lib_save_LIBS
11206 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11207 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11208 if test $ac_cv_lib_pthreads_cma_open = yes; then
11209 cat >>confdefs.h <<_ACEOF
11210 #define HAVE_LIBPTHREADS 1
11211 _ACEOF
11213 LIBS="-lpthreads $LIBS"
11218 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11219 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11220 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11221 ## added to LIBS in configure would never contain the pthreads part,
11222 ## but the value used in Makefiles might. FIXME?
11224 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11225 ## be harmless on older versions of X where it happens to exist.
11226 test "$opsys" = "aix4-2" && \
11227 test $ac_cv_lib_pthreads_cma_open = yes && \
11228 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11231 case ${host_os} in
11232 aix*)
11233 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11234 $as_echo_n "checking for -bbigtoc option... " >&6; }
11235 if test "${gdb_cv_bigtoc+set}" = set; then
11236 $as_echo_n "(cached) " >&6
11237 else
11239 case $GCC in
11240 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11241 *) gdb_cv_bigtoc=-bbigtoc ;;
11242 esac
11244 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11245 cat >conftest.$ac_ext <<_ACEOF
11246 /* confdefs.h. */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11253 main ()
11255 int i;
11257 return 0;
11259 _ACEOF
11260 rm -f conftest.$ac_objext conftest$ac_exeext
11261 if { (ac_try="$ac_link"
11262 case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11265 esac
11266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11267 $as_echo "$ac_try_echo") >&5
11268 (eval "$ac_link") 2>conftest.er1
11269 ac_status=$?
11270 grep -v '^ *+' conftest.er1 >conftest.err
11271 rm -f conftest.er1
11272 cat conftest.err >&5
11273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } && {
11275 test -z "$ac_c_werror_flag" ||
11276 test ! -s conftest.err
11277 } && test -s conftest$ac_exeext && {
11278 test "$cross_compiling" = yes ||
11279 $as_test_x conftest$ac_exeext
11280 }; then
11282 else
11283 $as_echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11286 gdb_cv_bigtoc=
11289 rm -rf conftest.dSYM
11290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11291 conftest$ac_exeext conftest.$ac_ext
11294 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11295 $as_echo "$gdb_cv_bigtoc" >&6; }
11297 esac
11299 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11300 # used for the tests that follow. We set them back to REAL_CFLAGS and
11301 # REAL_CPPFLAGS later on.
11303 REAL_CPPFLAGS="$CPPFLAGS"
11305 if test "${HAVE_X11}" = "yes"; then
11306 DEFS="$C_SWITCH_X_SITE $DEFS"
11307 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11308 LIBS="$LIBX $LIBS"
11309 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11310 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11312 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11313 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11314 # but it's more convenient here to set LD_RUN_PATH
11315 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11316 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11317 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11318 export LD_RUN_PATH
11321 if test "${opsys}" = "gnu-linux"; then
11322 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11323 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11324 cat >conftest.$ac_ext <<_ACEOF
11325 /* confdefs.h. */
11326 _ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11332 main ()
11334 XOpenDisplay ("foo");
11336 return 0;
11338 _ACEOF
11339 rm -f conftest.$ac_objext conftest$ac_exeext
11340 if { (ac_try="$ac_link"
11341 case "(($ac_try" in
11342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343 *) ac_try_echo=$ac_try;;
11344 esac
11345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11346 $as_echo "$ac_try_echo") >&5
11347 (eval "$ac_link") 2>conftest.er1
11348 ac_status=$?
11349 grep -v '^ *+' conftest.er1 >conftest.err
11350 rm -f conftest.er1
11351 cat conftest.err >&5
11352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } && {
11354 test -z "$ac_c_werror_flag" ||
11355 test ! -s conftest.err
11356 } && test -s conftest$ac_exeext && {
11357 test "$cross_compiling" = yes ||
11358 $as_test_x conftest$ac_exeext
11359 }; then
11360 xlinux_first_failure=no
11361 else
11362 $as_echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11365 xlinux_first_failure=yes
11368 rm -rf conftest.dSYM
11369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11370 conftest$ac_exeext conftest.$ac_ext
11371 if test "${xlinux_first_failure}" = "yes"; then
11372 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11373 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11374 OLD_CPPFLAGS="$CPPFLAGS"
11375 OLD_LIBS="$LIBS"
11376 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11377 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11378 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11379 LIBS="$LIBS -b i486-linuxaout"
11380 cat >conftest.$ac_ext <<_ACEOF
11381 /* confdefs.h. */
11382 _ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11388 main ()
11390 XOpenDisplay ("foo");
11392 return 0;
11394 _ACEOF
11395 rm -f conftest.$ac_objext conftest$ac_exeext
11396 if { (ac_try="$ac_link"
11397 case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11400 esac
11401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11402 $as_echo "$ac_try_echo") >&5
11403 (eval "$ac_link") 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest$ac_exeext && {
11413 test "$cross_compiling" = yes ||
11414 $as_test_x conftest$ac_exeext
11415 }; then
11416 xlinux_second_failure=no
11417 else
11418 $as_echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 xlinux_second_failure=yes
11424 rm -rf conftest.dSYM
11425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11426 conftest$ac_exeext conftest.$ac_ext
11427 if test "${xlinux_second_failure}" = "yes"; then
11428 # If we get the same failure with -b, there is no use adding -b.
11429 # So take it out. This plays safe.
11430 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11431 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11432 CPPFLAGS="$OLD_CPPFLAGS"
11433 LIBS="$OLD_LIBS"
11434 { $as_echo "$as_me:$LINENO: result: no" >&5
11435 $as_echo "no" >&6; }
11436 else
11437 { $as_echo "$as_me:$LINENO: result: yes" >&5
11438 $as_echo "yes" >&6; }
11440 else
11441 { $as_echo "$as_me:$LINENO: result: no" >&5
11442 $as_echo "no" >&6; }
11446 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11447 # header files included from there.
11448 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11449 $as_echo_n "checking for Xkb... " >&6; }
11450 cat >conftest.$ac_ext <<_ACEOF
11451 /* confdefs.h. */
11452 _ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h. */
11456 #include <X11/Xlib.h>
11457 #include <X11/XKBlib.h>
11459 main ()
11461 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11463 return 0;
11465 _ACEOF
11466 rm -f conftest.$ac_objext conftest$ac_exeext
11467 if { (ac_try="$ac_link"
11468 case "(($ac_try" in
11469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11470 *) ac_try_echo=$ac_try;;
11471 esac
11472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11473 $as_echo "$ac_try_echo") >&5
11474 (eval "$ac_link") 2>conftest.er1
11475 ac_status=$?
11476 grep -v '^ *+' conftest.er1 >conftest.err
11477 rm -f conftest.er1
11478 cat conftest.err >&5
11479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } && {
11481 test -z "$ac_c_werror_flag" ||
11482 test ! -s conftest.err
11483 } && test -s conftest$ac_exeext && {
11484 test "$cross_compiling" = yes ||
11485 $as_test_x conftest$ac_exeext
11486 }; then
11487 emacs_xkb=yes
11488 else
11489 $as_echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11492 emacs_xkb=no
11495 rm -rf conftest.dSYM
11496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11497 conftest$ac_exeext conftest.$ac_ext
11498 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11499 $as_echo "$emacs_xkb" >&6; }
11500 if test $emacs_xkb = yes; then
11502 cat >>confdefs.h <<\_ACEOF
11503 #define HAVE_XKBGETKEYBOARD 1
11504 _ACEOF
11512 for ac_func in XrmSetDatabase XScreenResourceString \
11513 XScreenNumberOfScreen XSetWMProtocols
11515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11516 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11517 $as_echo_n "checking for $ac_func... " >&6; }
11518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11519 $as_echo_n "(cached) " >&6
11520 else
11521 cat >conftest.$ac_ext <<_ACEOF
11522 /* confdefs.h. */
11523 _ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11529 #define $ac_func innocuous_$ac_func
11531 /* System header to define __stub macros and hopefully few prototypes,
11532 which can conflict with char $ac_func (); below.
11533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11534 <limits.h> exists even on freestanding compilers. */
11536 #ifdef __STDC__
11537 # include <limits.h>
11538 #else
11539 # include <assert.h>
11540 #endif
11542 #undef $ac_func
11544 /* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 char $ac_func ();
11551 /* The GNU C library defines this for functions which it implements
11552 to always fail with ENOSYS. Some functions are actually named
11553 something starting with __ and the normal name is an alias. */
11554 #if defined __stub_$ac_func || defined __stub___$ac_func
11555 choke me
11556 #endif
11559 main ()
11561 return $ac_func ();
11563 return 0;
11565 _ACEOF
11566 rm -f conftest.$ac_objext conftest$ac_exeext
11567 if { (ac_try="$ac_link"
11568 case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11571 esac
11572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11573 $as_echo "$ac_try_echo") >&5
11574 (eval "$ac_link") 2>conftest.er1
11575 ac_status=$?
11576 grep -v '^ *+' conftest.er1 >conftest.err
11577 rm -f conftest.er1
11578 cat conftest.err >&5
11579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } && {
11581 test -z "$ac_c_werror_flag" ||
11582 test ! -s conftest.err
11583 } && test -s conftest$ac_exeext && {
11584 test "$cross_compiling" = yes ||
11585 $as_test_x conftest$ac_exeext
11586 }; then
11587 eval "$as_ac_var=yes"
11588 else
11589 $as_echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11592 eval "$as_ac_var=no"
11595 rm -rf conftest.dSYM
11596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11597 conftest$ac_exeext conftest.$ac_ext
11599 ac_res=`eval 'as_val=${'$as_ac_var'}
11600 $as_echo "$as_val"'`
11601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11602 $as_echo "$ac_res" >&6; }
11603 if test `eval 'as_val=${'$as_ac_var'}
11604 $as_echo "$as_val"'` = yes; then
11605 cat >>confdefs.h <<_ACEOF
11606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11607 _ACEOF
11610 done
11614 if test "${window_system}" = "x11"; then
11615 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11616 $as_echo_n "checking X11 version 6... " >&6; }
11617 if test "${emacs_cv_x11_version_6+set}" = set; then
11618 $as_echo_n "(cached) " >&6
11619 else
11620 cat >conftest.$ac_ext <<_ACEOF
11621 /* confdefs.h. */
11622 _ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11626 #include <X11/Xlib.h>
11628 main ()
11630 #if XlibSpecificationRelease < 6
11631 fail;
11632 #endif
11635 return 0;
11637 _ACEOF
11638 rm -f conftest.$ac_objext conftest$ac_exeext
11639 if { (ac_try="$ac_link"
11640 case "(($ac_try" in
11641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642 *) ac_try_echo=$ac_try;;
11643 esac
11644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11645 $as_echo "$ac_try_echo") >&5
11646 (eval "$ac_link") 2>conftest.er1
11647 ac_status=$?
11648 grep -v '^ *+' conftest.er1 >conftest.err
11649 rm -f conftest.er1
11650 cat conftest.err >&5
11651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } && {
11653 test -z "$ac_c_werror_flag" ||
11654 test ! -s conftest.err
11655 } && test -s conftest$ac_exeext && {
11656 test "$cross_compiling" = yes ||
11657 $as_test_x conftest$ac_exeext
11658 }; then
11659 emacs_cv_x11_version_6=yes
11660 else
11661 $as_echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11664 emacs_cv_x11_version_6=no
11667 rm -rf conftest.dSYM
11668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11669 conftest$ac_exeext conftest.$ac_ext
11672 if test $emacs_cv_x11_version_6 = yes; then
11673 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11674 $as_echo "6 or newer" >&6; }
11676 cat >>confdefs.h <<\_ACEOF
11677 #define HAVE_X11R6 1
11678 _ACEOF
11680 else
11681 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11682 $as_echo "before 6" >&6; }
11687 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11688 HAVE_RSVG=no
11689 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11690 if test "${with_rsvg}" != "no"; then
11691 RSVG_REQUIRED=2.11.0
11692 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11695 succeeded=no
11697 # Extract the first word of "pkg-config", so it can be a program name with args.
11698 set dummy pkg-config; ac_word=$2
11699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11700 $as_echo_n "checking for $ac_word... " >&6; }
11701 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11702 $as_echo_n "(cached) " >&6
11703 else
11704 case $PKG_CONFIG in
11705 [\\/]* | ?:[\\/]*)
11706 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $PATH
11712 IFS=$as_save_IFS
11713 test -z "$as_dir" && as_dir=.
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11716 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11718 break 2
11720 done
11721 done
11722 IFS=$as_save_IFS
11724 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11726 esac
11728 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11729 if test -n "$PKG_CONFIG"; then
11730 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11731 $as_echo "$PKG_CONFIG" >&6; }
11732 else
11733 { $as_echo "$as_me:$LINENO: result: no" >&5
11734 $as_echo "no" >&6; }
11739 if test "$PKG_CONFIG" = "no" ; then
11741 else
11742 PKG_CONFIG_MIN_VERSION=0.9.0
11743 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11744 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11745 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11747 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11748 { $as_echo "$as_me:$LINENO: result: yes" >&5
11749 $as_echo "yes" >&6; }
11750 succeeded=yes
11752 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11753 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11754 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11755 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11756 $as_echo "$RSVG_CFLAGS" >&6; }
11758 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11759 $as_echo_n "checking RSVG_LIBS... " >&6; }
11760 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11761 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11762 $as_echo "$RSVG_LIBS" >&6; }
11763 else
11764 { $as_echo "$as_me:$LINENO: result: no" >&5
11765 $as_echo "no" >&6; }
11766 RSVG_CFLAGS=""
11767 RSVG_LIBS=""
11768 ## If we have a custom action on failure, don't print errors, but
11769 ## do set a variable so people can do so.
11770 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11776 else
11777 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11778 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11782 if test $succeeded = yes; then
11784 else
11791 if test ".${RSVG_CFLAGS}" != "."; then
11792 HAVE_RSVG=yes
11794 cat >>confdefs.h <<\_ACEOF
11795 #define HAVE_RSVG 1
11796 _ACEOF
11798 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11799 LIBS="$RSVG_LIBS $LIBS"
11805 HAVE_GTK=no
11806 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11807 GLIB_REQUIRED=2.6
11808 GTK_REQUIRED=2.6
11809 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11812 succeeded=no
11814 # Extract the first word of "pkg-config", so it can be a program name with args.
11815 set dummy pkg-config; ac_word=$2
11816 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11817 $as_echo_n "checking for $ac_word... " >&6; }
11818 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11819 $as_echo_n "(cached) " >&6
11820 else
11821 case $PKG_CONFIG in
11822 [\\/]* | ?:[\\/]*)
11823 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827 for as_dir in $PATH
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
11832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11833 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11834 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 break 2
11837 done
11838 done
11839 IFS=$as_save_IFS
11841 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11843 esac
11845 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11846 if test -n "$PKG_CONFIG"; then
11847 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11848 $as_echo "$PKG_CONFIG" >&6; }
11849 else
11850 { $as_echo "$as_me:$LINENO: result: no" >&5
11851 $as_echo "no" >&6; }
11856 if test "$PKG_CONFIG" = "no" ; then
11857 pkg_check_gtk=no
11858 else
11859 PKG_CONFIG_MIN_VERSION=0.9.0
11860 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11861 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11862 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11864 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11865 { $as_echo "$as_me:$LINENO: result: yes" >&5
11866 $as_echo "yes" >&6; }
11867 succeeded=yes
11869 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11870 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11871 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11872 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11873 $as_echo "$GTK_CFLAGS" >&6; }
11875 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11876 $as_echo_n "checking GTK_LIBS... " >&6; }
11877 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11878 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11879 $as_echo "$GTK_LIBS" >&6; }
11880 else
11881 { $as_echo "$as_me:$LINENO: result: no" >&5
11882 $as_echo "no" >&6; }
11883 GTK_CFLAGS=""
11884 GTK_LIBS=""
11885 ## If we have a custom action on failure, don't print errors, but
11886 ## do set a variable so people can do so.
11887 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11893 else
11894 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11895 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11899 if test $succeeded = yes; then
11900 pkg_check_gtk=yes
11901 else
11902 pkg_check_gtk=no
11905 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11906 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11907 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11908 { (exit 1); exit 1; }; }
11913 GTK_OBJ=
11914 if test x"$pkg_check_gtk" = xyes; then
11918 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11919 CFLAGS="$CFLAGS $GTK_CFLAGS"
11920 LIBS="$GTK_LIBS $LIBS"
11921 GTK_COMPILES=no
11923 for ac_func in gtk_main
11925 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11926 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11927 $as_echo_n "checking for $ac_func... " >&6; }
11928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11929 $as_echo_n "(cached) " >&6
11930 else
11931 cat >conftest.$ac_ext <<_ACEOF
11932 /* confdefs.h. */
11933 _ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h. */
11937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11939 #define $ac_func innocuous_$ac_func
11941 /* System header to define __stub macros and hopefully few prototypes,
11942 which can conflict with char $ac_func (); below.
11943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11944 <limits.h> exists even on freestanding compilers. */
11946 #ifdef __STDC__
11947 # include <limits.h>
11948 #else
11949 # include <assert.h>
11950 #endif
11952 #undef $ac_func
11954 /* Override any GCC internal prototype to avoid an error.
11955 Use char because int might match the return type of a GCC
11956 builtin and then its argument prototype would still apply. */
11957 #ifdef __cplusplus
11958 extern "C"
11959 #endif
11960 char $ac_func ();
11961 /* The GNU C library defines this for functions which it implements
11962 to always fail with ENOSYS. Some functions are actually named
11963 something starting with __ and the normal name is an alias. */
11964 #if defined __stub_$ac_func || defined __stub___$ac_func
11965 choke me
11966 #endif
11969 main ()
11971 return $ac_func ();
11973 return 0;
11975 _ACEOF
11976 rm -f conftest.$ac_objext conftest$ac_exeext
11977 if { (ac_try="$ac_link"
11978 case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11981 esac
11982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11983 $as_echo "$ac_try_echo") >&5
11984 (eval "$ac_link") 2>conftest.er1
11985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } && {
11991 test -z "$ac_c_werror_flag" ||
11992 test ! -s conftest.err
11993 } && test -s conftest$ac_exeext && {
11994 test "$cross_compiling" = yes ||
11995 $as_test_x conftest$ac_exeext
11996 }; then
11997 eval "$as_ac_var=yes"
11998 else
11999 $as_echo "$as_me: failed program was:" >&5
12000 sed 's/^/| /' conftest.$ac_ext >&5
12002 eval "$as_ac_var=no"
12005 rm -rf conftest.dSYM
12006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12007 conftest$ac_exeext conftest.$ac_ext
12009 ac_res=`eval 'as_val=${'$as_ac_var'}
12010 $as_echo "$as_val"'`
12011 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12012 $as_echo "$ac_res" >&6; }
12013 if test `eval 'as_val=${'$as_ac_var'}
12014 $as_echo "$as_val"'` = yes; then
12015 cat >>confdefs.h <<_ACEOF
12016 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12017 _ACEOF
12018 GTK_COMPILES=yes
12020 done
12022 if test "${GTK_COMPILES}" != "yes"; then
12023 if test "$USE_X_TOOLKIT" != "maybe"; then
12024 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12025 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12026 { (exit 1); exit 1; }; };
12028 else
12029 HAVE_GTK=yes
12031 cat >>confdefs.h <<\_ACEOF
12032 #define USE_GTK 1
12033 _ACEOF
12035 GTK_OBJ=gtkutil.o
12036 USE_X_TOOLKIT=none
12037 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12039 else
12040 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12041 closing open displays. This is no problem if you just use
12042 one display, but if you use more than one and close one of them
12043 Emacs may crash." >&5
12044 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12045 closing open displays. This is no problem if you just use
12046 one display, but if you use more than one and close one of them
12047 Emacs may crash." >&2;}
12048 sleep 3
12056 if test "${HAVE_GTK}" = "yes"; then
12058 if test "$with_toolkit_scroll_bars" != no; then
12059 with_toolkit_scroll_bars=yes
12062 HAVE_GTK_MULTIDISPLAY=no
12064 for ac_func in gdk_display_open
12066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12067 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12068 $as_echo_n "checking for $ac_func... " >&6; }
12069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12070 $as_echo_n "(cached) " >&6
12071 else
12072 cat >conftest.$ac_ext <<_ACEOF
12073 /* confdefs.h. */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12080 #define $ac_func innocuous_$ac_func
12082 /* System header to define __stub macros and hopefully few prototypes,
12083 which can conflict with char $ac_func (); below.
12084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12085 <limits.h> exists even on freestanding compilers. */
12087 #ifdef __STDC__
12088 # include <limits.h>
12089 #else
12090 # include <assert.h>
12091 #endif
12093 #undef $ac_func
12095 /* Override any GCC internal prototype to avoid an error.
12096 Use char because int might match the return type of a GCC
12097 builtin and then its argument prototype would still apply. */
12098 #ifdef __cplusplus
12099 extern "C"
12100 #endif
12101 char $ac_func ();
12102 /* The GNU C library defines this for functions which it implements
12103 to always fail with ENOSYS. Some functions are actually named
12104 something starting with __ and the normal name is an alias. */
12105 #if defined __stub_$ac_func || defined __stub___$ac_func
12106 choke me
12107 #endif
12110 main ()
12112 return $ac_func ();
12114 return 0;
12116 _ACEOF
12117 rm -f conftest.$ac_objext conftest$ac_exeext
12118 if { (ac_try="$ac_link"
12119 case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12122 esac
12123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12124 $as_echo "$ac_try_echo") >&5
12125 (eval "$ac_link") 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } && {
12132 test -z "$ac_c_werror_flag" ||
12133 test ! -s conftest.err
12134 } && test -s conftest$ac_exeext && {
12135 test "$cross_compiling" = yes ||
12136 $as_test_x conftest$ac_exeext
12137 }; then
12138 eval "$as_ac_var=yes"
12139 else
12140 $as_echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12143 eval "$as_ac_var=no"
12146 rm -rf conftest.dSYM
12147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12148 conftest$ac_exeext conftest.$ac_ext
12150 ac_res=`eval 'as_val=${'$as_ac_var'}
12151 $as_echo "$as_val"'`
12152 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12153 $as_echo "$ac_res" >&6; }
12154 if test `eval 'as_val=${'$as_ac_var'}
12155 $as_echo "$as_val"'` = yes; then
12156 cat >>confdefs.h <<_ACEOF
12157 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12158 _ACEOF
12159 HAVE_GTK_MULTIDISPLAY=yes
12161 done
12163 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12165 cat >>confdefs.h <<\_ACEOF
12166 #define HAVE_GTK_MULTIDISPLAY 1
12167 _ACEOF
12171 HAVE_GTK_FILE_SELECTION=no
12172 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12173 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12174 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12175 $as_echo_n "(cached) " >&6
12176 else
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h. */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 $ac_includes_default
12184 #include <gtk/gtk.h>
12187 main ()
12189 #ifndef GTK_TYPE_FILE_SELECTION
12190 (void) GTK_TYPE_FILE_SELECTION;
12191 #endif
12194 return 0;
12196 _ACEOF
12197 rm -f conftest.$ac_objext
12198 if { (ac_try="$ac_compile"
12199 case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202 esac
12203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12204 $as_echo "$ac_try_echo") >&5
12205 (eval "$ac_compile") 2>conftest.er1
12206 ac_status=$?
12207 grep -v '^ *+' conftest.er1 >conftest.err
12208 rm -f conftest.er1
12209 cat conftest.err >&5
12210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } && {
12212 test -z "$ac_c_werror_flag" ||
12213 test ! -s conftest.err
12214 } && test -s conftest.$ac_objext; then
12215 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12216 else
12217 $as_echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12225 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12226 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12227 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12228 HAVE_GTK_FILE_SELECTION=yes
12229 else
12230 HAVE_GTK_FILE_SELECTION=no
12233 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12235 for ac_func in gtk_file_selection_new
12237 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12238 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12239 $as_echo_n "checking for $ac_func... " >&6; }
12240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12241 $as_echo_n "(cached) " >&6
12242 else
12243 cat >conftest.$ac_ext <<_ACEOF
12244 /* confdefs.h. */
12245 _ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12251 #define $ac_func innocuous_$ac_func
12253 /* System header to define __stub macros and hopefully few prototypes,
12254 which can conflict with char $ac_func (); below.
12255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12256 <limits.h> exists even on freestanding compilers. */
12258 #ifdef __STDC__
12259 # include <limits.h>
12260 #else
12261 # include <assert.h>
12262 #endif
12264 #undef $ac_func
12266 /* Override any GCC internal prototype to avoid an error.
12267 Use char because int might match the return type of a GCC
12268 builtin and then its argument prototype would still apply. */
12269 #ifdef __cplusplus
12270 extern "C"
12271 #endif
12272 char $ac_func ();
12273 /* The GNU C library defines this for functions which it implements
12274 to always fail with ENOSYS. Some functions are actually named
12275 something starting with __ and the normal name is an alias. */
12276 #if defined __stub_$ac_func || defined __stub___$ac_func
12277 choke me
12278 #endif
12281 main ()
12283 return $ac_func ();
12285 return 0;
12287 _ACEOF
12288 rm -f conftest.$ac_objext conftest$ac_exeext
12289 if { (ac_try="$ac_link"
12290 case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12293 esac
12294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12295 $as_echo "$ac_try_echo") >&5
12296 (eval "$ac_link") 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest$ac_exeext && {
12306 test "$cross_compiling" = yes ||
12307 $as_test_x conftest$ac_exeext
12308 }; then
12309 eval "$as_ac_var=yes"
12310 else
12311 $as_echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 eval "$as_ac_var=no"
12317 rm -rf conftest.dSYM
12318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12319 conftest$ac_exeext conftest.$ac_ext
12321 ac_res=`eval 'as_val=${'$as_ac_var'}
12322 $as_echo "$as_val"'`
12323 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12324 $as_echo "$ac_res" >&6; }
12325 if test `eval 'as_val=${'$as_ac_var'}
12326 $as_echo "$as_val"'` = yes; then
12327 cat >>confdefs.h <<_ACEOF
12328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12329 _ACEOF
12330 HAVE_GTK_FILE_SELECTION=yes
12331 else
12332 HAVE_GTK_FILE_SELECTION=no
12334 done
12338 HAVE_GTK_FILE_CHOOSER=no
12339 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12340 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12341 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12342 $as_echo_n "(cached) " >&6
12343 else
12344 cat >conftest.$ac_ext <<_ACEOF
12345 /* confdefs.h. */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 $ac_includes_default
12351 #include <gtk/gtk.h>
12354 main ()
12356 #ifndef GTK_TYPE_FILE_CHOOSER
12357 (void) GTK_TYPE_FILE_CHOOSER;
12358 #endif
12361 return 0;
12363 _ACEOF
12364 rm -f conftest.$ac_objext
12365 if { (ac_try="$ac_compile"
12366 case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12369 esac
12370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12371 $as_echo "$ac_try_echo") >&5
12372 (eval "$ac_compile") 2>conftest.er1
12373 ac_status=$?
12374 grep -v '^ *+' conftest.er1 >conftest.err
12375 rm -f conftest.er1
12376 cat conftest.err >&5
12377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } && {
12379 test -z "$ac_c_werror_flag" ||
12380 test ! -s conftest.err
12381 } && test -s conftest.$ac_objext; then
12382 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12383 else
12384 $as_echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12387 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12393 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12394 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12395 HAVE_GTK_FILE_CHOOSER=yes
12396 else
12397 HAVE_GTK_FILE_CHOOSER=no
12400 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12402 for ac_func in gtk_file_chooser_dialog_new
12404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12405 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12406 $as_echo_n "checking for $ac_func... " >&6; }
12407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12408 $as_echo_n "(cached) " >&6
12409 else
12410 cat >conftest.$ac_ext <<_ACEOF
12411 /* confdefs.h. */
12412 _ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h. */
12416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12418 #define $ac_func innocuous_$ac_func
12420 /* System header to define __stub macros and hopefully few prototypes,
12421 which can conflict with char $ac_func (); below.
12422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12423 <limits.h> exists even on freestanding compilers. */
12425 #ifdef __STDC__
12426 # include <limits.h>
12427 #else
12428 # include <assert.h>
12429 #endif
12431 #undef $ac_func
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12436 #ifdef __cplusplus
12437 extern "C"
12438 #endif
12439 char $ac_func ();
12440 /* The GNU C library defines this for functions which it implements
12441 to always fail with ENOSYS. Some functions are actually named
12442 something starting with __ and the normal name is an alias. */
12443 #if defined __stub_$ac_func || defined __stub___$ac_func
12444 choke me
12445 #endif
12448 main ()
12450 return $ac_func ();
12452 return 0;
12454 _ACEOF
12455 rm -f conftest.$ac_objext conftest$ac_exeext
12456 if { (ac_try="$ac_link"
12457 case "(($ac_try" in
12458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459 *) ac_try_echo=$ac_try;;
12460 esac
12461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12462 $as_echo "$ac_try_echo") >&5
12463 (eval "$ac_link") 2>conftest.er1
12464 ac_status=$?
12465 grep -v '^ *+' conftest.er1 >conftest.err
12466 rm -f conftest.er1
12467 cat conftest.err >&5
12468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } && {
12470 test -z "$ac_c_werror_flag" ||
12471 test ! -s conftest.err
12472 } && test -s conftest$ac_exeext && {
12473 test "$cross_compiling" = yes ||
12474 $as_test_x conftest$ac_exeext
12475 }; then
12476 eval "$as_ac_var=yes"
12477 else
12478 $as_echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12481 eval "$as_ac_var=no"
12484 rm -rf conftest.dSYM
12485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12486 conftest$ac_exeext conftest.$ac_ext
12488 ac_res=`eval 'as_val=${'$as_ac_var'}
12489 $as_echo "$as_val"'`
12490 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12491 $as_echo "$ac_res" >&6; }
12492 if test `eval 'as_val=${'$as_ac_var'}
12493 $as_echo "$as_val"'` = yes; then
12494 cat >>confdefs.h <<_ACEOF
12495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12496 _ACEOF
12497 HAVE_GTK_FILE_CHOOSER=yes
12498 else
12499 HAVE_GTK_FILE_CHOOSER=no
12501 done
12505 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12506 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12508 cat >>confdefs.h <<\_ACEOF
12509 #define HAVE_GTK_FILE_BOTH 1
12510 _ACEOF
12514 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12515 HAVE_GTK_AND_PTHREAD=no
12517 for ac_header in pthread.h
12519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12521 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12522 $as_echo_n "checking for $ac_header... " >&6; }
12523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12524 $as_echo_n "(cached) " >&6
12526 ac_res=`eval 'as_val=${'$as_ac_Header'}
12527 $as_echo "$as_val"'`
12528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12529 $as_echo "$ac_res" >&6; }
12530 else
12531 # Is the header compilable?
12532 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12533 $as_echo_n "checking $ac_header usability... " >&6; }
12534 cat >conftest.$ac_ext <<_ACEOF
12535 /* confdefs.h. */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12540 $ac_includes_default
12541 #include <$ac_header>
12542 _ACEOF
12543 rm -f conftest.$ac_objext
12544 if { (ac_try="$ac_compile"
12545 case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12548 esac
12549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12550 $as_echo "$ac_try_echo") >&5
12551 (eval "$ac_compile") 2>conftest.er1
12552 ac_status=$?
12553 grep -v '^ *+' conftest.er1 >conftest.err
12554 rm -f conftest.er1
12555 cat conftest.err >&5
12556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } && {
12558 test -z "$ac_c_werror_flag" ||
12559 test ! -s conftest.err
12560 } && test -s conftest.$ac_objext; then
12561 ac_header_compiler=yes
12562 else
12563 $as_echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 ac_header_compiler=no
12569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12571 $as_echo "$ac_header_compiler" >&6; }
12573 # Is the header present?
12574 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12575 $as_echo_n "checking $ac_header presence... " >&6; }
12576 cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h. */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 #include <$ac_header>
12583 _ACEOF
12584 if { (ac_try="$ac_cpp conftest.$ac_ext"
12585 case "(($ac_try" in
12586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587 *) ac_try_echo=$ac_try;;
12588 esac
12589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12590 $as_echo "$ac_try_echo") >&5
12591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12592 ac_status=$?
12593 grep -v '^ *+' conftest.er1 >conftest.err
12594 rm -f conftest.er1
12595 cat conftest.err >&5
12596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } >/dev/null && {
12598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12599 test ! -s conftest.err
12600 }; then
12601 ac_header_preproc=yes
12602 else
12603 $as_echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12606 ac_header_preproc=no
12609 rm -f conftest.err conftest.$ac_ext
12610 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12611 $as_echo "$ac_header_preproc" >&6; }
12613 # So? What about this header?
12614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12615 yes:no: )
12616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12617 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12619 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12620 ac_header_preproc=yes
12622 no:yes:* )
12623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12624 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12626 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12628 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12630 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12632 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12634 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12637 esac
12638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12639 $as_echo_n "checking for $ac_header... " >&6; }
12640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12641 $as_echo_n "(cached) " >&6
12642 else
12643 eval "$as_ac_Header=\$ac_header_preproc"
12645 ac_res=`eval 'as_val=${'$as_ac_Header'}
12646 $as_echo "$as_val"'`
12647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12648 $as_echo "$ac_res" >&6; }
12651 if test `eval 'as_val=${'$as_ac_Header'}
12652 $as_echo "$as_val"'` = yes; then
12653 cat >>confdefs.h <<_ACEOF
12654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12655 _ACEOF
12659 done
12661 if test "$ac_cv_header_pthread_h"; then
12662 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12663 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12664 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12665 $as_echo_n "(cached) " >&6
12666 else
12667 ac_check_lib_save_LIBS=$LIBS
12668 LIBS="-lpthread $LIBS"
12669 cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h. */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12676 /* Override any GCC internal prototype to avoid an error.
12677 Use char because int might match the return type of a GCC
12678 builtin and then its argument prototype would still apply. */
12679 #ifdef __cplusplus
12680 extern "C"
12681 #endif
12682 char pthread_self ();
12684 main ()
12686 return pthread_self ();
12688 return 0;
12690 _ACEOF
12691 rm -f conftest.$ac_objext conftest$ac_exeext
12692 if { (ac_try="$ac_link"
12693 case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12696 esac
12697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12698 $as_echo "$ac_try_echo") >&5
12699 (eval "$ac_link") 2>conftest.er1
12700 ac_status=$?
12701 grep -v '^ *+' conftest.er1 >conftest.err
12702 rm -f conftest.er1
12703 cat conftest.err >&5
12704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } && {
12706 test -z "$ac_c_werror_flag" ||
12707 test ! -s conftest.err
12708 } && test -s conftest$ac_exeext && {
12709 test "$cross_compiling" = yes ||
12710 $as_test_x conftest$ac_exeext
12711 }; then
12712 ac_cv_lib_pthread_pthread_self=yes
12713 else
12714 $as_echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12717 ac_cv_lib_pthread_pthread_self=no
12720 rm -rf conftest.dSYM
12721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12722 conftest$ac_exeext conftest.$ac_ext
12723 LIBS=$ac_check_lib_save_LIBS
12725 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12726 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12727 if test $ac_cv_lib_pthread_pthread_self = yes; then
12728 HAVE_GTK_AND_PTHREAD=yes
12732 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12733 case "${canonical}" in
12734 *-hpux*) ;;
12735 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12736 esac
12738 cat >>confdefs.h <<\_ACEOF
12739 #define HAVE_GTK_AND_PTHREAD 1
12740 _ACEOF
12746 HAVE_DBUS=no
12747 DBUS_OBJ=
12748 if test "${with_dbus}" = "yes"; then
12750 succeeded=no
12752 # Extract the first word of "pkg-config", so it can be a program name with args.
12753 set dummy pkg-config; ac_word=$2
12754 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12755 $as_echo_n "checking for $ac_word... " >&6; }
12756 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12757 $as_echo_n "(cached) " >&6
12758 else
12759 case $PKG_CONFIG in
12760 [\\/]* | ?:[\\/]*)
12761 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12765 for as_dir in $PATH
12767 IFS=$as_save_IFS
12768 test -z "$as_dir" && as_dir=.
12769 for ac_exec_ext in '' $ac_executable_extensions; do
12770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12771 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12773 break 2
12775 done
12776 done
12777 IFS=$as_save_IFS
12779 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12781 esac
12783 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12784 if test -n "$PKG_CONFIG"; then
12785 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12786 $as_echo "$PKG_CONFIG" >&6; }
12787 else
12788 { $as_echo "$as_me:$LINENO: result: no" >&5
12789 $as_echo "no" >&6; }
12794 if test "$PKG_CONFIG" = "no" ; then
12795 HAVE_DBUS=no
12796 else
12797 PKG_CONFIG_MIN_VERSION=0.9.0
12798 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12799 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12800 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12802 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12803 { $as_echo "$as_me:$LINENO: result: yes" >&5
12804 $as_echo "yes" >&6; }
12805 succeeded=yes
12807 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12808 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12809 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12810 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12811 $as_echo "$DBUS_CFLAGS" >&6; }
12813 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12814 $as_echo_n "checking DBUS_LIBS... " >&6; }
12815 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12816 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12817 $as_echo "$DBUS_LIBS" >&6; }
12818 else
12819 { $as_echo "$as_me:$LINENO: result: no" >&5
12820 $as_echo "no" >&6; }
12821 DBUS_CFLAGS=""
12822 DBUS_LIBS=""
12823 ## If we have a custom action on failure, don't print errors, but
12824 ## do set a variable so people can do so.
12825 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12831 else
12832 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12833 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12837 if test $succeeded = yes; then
12838 HAVE_DBUS=yes
12839 else
12840 HAVE_DBUS=no
12843 if test "$HAVE_DBUS" = yes; then
12844 LIBS="$LIBS $DBUS_LIBS"
12846 cat >>confdefs.h <<\_ACEOF
12847 #define HAVE_DBUS 1
12848 _ACEOF
12851 for ac_func in dbus_watch_get_unix_fd
12853 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12854 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12855 $as_echo_n "checking for $ac_func... " >&6; }
12856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12857 $as_echo_n "(cached) " >&6
12858 else
12859 cat >conftest.$ac_ext <<_ACEOF
12860 /* confdefs.h. */
12861 _ACEOF
12862 cat confdefs.h >>conftest.$ac_ext
12863 cat >>conftest.$ac_ext <<_ACEOF
12864 /* end confdefs.h. */
12865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12867 #define $ac_func innocuous_$ac_func
12869 /* System header to define __stub macros and hopefully few prototypes,
12870 which can conflict with char $ac_func (); below.
12871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12872 <limits.h> exists even on freestanding compilers. */
12874 #ifdef __STDC__
12875 # include <limits.h>
12876 #else
12877 # include <assert.h>
12878 #endif
12880 #undef $ac_func
12882 /* Override any GCC internal prototype to avoid an error.
12883 Use char because int might match the return type of a GCC
12884 builtin and then its argument prototype would still apply. */
12885 #ifdef __cplusplus
12886 extern "C"
12887 #endif
12888 char $ac_func ();
12889 /* The GNU C library defines this for functions which it implements
12890 to always fail with ENOSYS. Some functions are actually named
12891 something starting with __ and the normal name is an alias. */
12892 #if defined __stub_$ac_func || defined __stub___$ac_func
12893 choke me
12894 #endif
12897 main ()
12899 return $ac_func ();
12901 return 0;
12903 _ACEOF
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (ac_try="$ac_link"
12906 case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12909 esac
12910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12911 $as_echo "$ac_try_echo") >&5
12912 (eval "$ac_link") 2>conftest.er1
12913 ac_status=$?
12914 grep -v '^ *+' conftest.er1 >conftest.err
12915 rm -f conftest.er1
12916 cat conftest.err >&5
12917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } && {
12919 test -z "$ac_c_werror_flag" ||
12920 test ! -s conftest.err
12921 } && test -s conftest$ac_exeext && {
12922 test "$cross_compiling" = yes ||
12923 $as_test_x conftest$ac_exeext
12924 }; then
12925 eval "$as_ac_var=yes"
12926 else
12927 $as_echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12930 eval "$as_ac_var=no"
12933 rm -rf conftest.dSYM
12934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12935 conftest$ac_exeext conftest.$ac_ext
12937 ac_res=`eval 'as_val=${'$as_ac_var'}
12938 $as_echo "$as_val"'`
12939 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12940 $as_echo "$ac_res" >&6; }
12941 if test `eval 'as_val=${'$as_ac_var'}
12942 $as_echo "$as_val"'` = yes; then
12943 cat >>confdefs.h <<_ACEOF
12944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12945 _ACEOF
12948 done
12950 DBUS_OBJ=dbusbind.o
12955 HAVE_GCONF=no
12956 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12958 succeeded=no
12960 # Extract the first word of "pkg-config", so it can be a program name with args.
12961 set dummy pkg-config; ac_word=$2
12962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12963 $as_echo_n "checking for $ac_word... " >&6; }
12964 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12965 $as_echo_n "(cached) " >&6
12966 else
12967 case $PKG_CONFIG in
12968 [\\/]* | ?:[\\/]*)
12969 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12973 for as_dir in $PATH
12975 IFS=$as_save_IFS
12976 test -z "$as_dir" && as_dir=.
12977 for ac_exec_ext in '' $ac_executable_extensions; do
12978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12979 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12981 break 2
12983 done
12984 done
12985 IFS=$as_save_IFS
12987 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12989 esac
12991 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12992 if test -n "$PKG_CONFIG"; then
12993 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12994 $as_echo "$PKG_CONFIG" >&6; }
12995 else
12996 { $as_echo "$as_me:$LINENO: result: no" >&5
12997 $as_echo "no" >&6; }
13002 if test "$PKG_CONFIG" = "no" ; then
13003 HAVE_GCONF=no
13004 else
13005 PKG_CONFIG_MIN_VERSION=0.9.0
13006 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13007 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
13008 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
13010 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
13011 { $as_echo "$as_me:$LINENO: result: yes" >&5
13012 $as_echo "yes" >&6; }
13013 succeeded=yes
13015 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
13016 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
13017 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13018 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
13019 $as_echo "$GCONF_CFLAGS" >&6; }
13021 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
13022 $as_echo_n "checking GCONF_LIBS... " >&6; }
13023 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13024 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
13025 $as_echo "$GCONF_LIBS" >&6; }
13026 else
13027 { $as_echo "$as_me:$LINENO: result: no" >&5
13028 $as_echo "no" >&6; }
13029 GCONF_CFLAGS=""
13030 GCONF_LIBS=""
13031 ## If we have a custom action on failure, don't print errors, but
13032 ## do set a variable so people can do so.
13033 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13039 else
13040 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13041 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13045 if test $succeeded = yes; then
13046 HAVE_GCONF=yes
13047 else
13048 HAVE_GCONF=no
13051 if test "$HAVE_GCONF" = yes; then
13053 cat >>confdefs.h <<\_ACEOF
13054 #define HAVE_GCONF 1
13055 _ACEOF
13060 HAVE_LIBSELINUX=no
13061 LIBSELINUX_LIBS=
13062 if test "${with_selinux}" = "yes"; then
13063 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13064 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13065 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13066 $as_echo_n "(cached) " >&6
13067 else
13068 ac_check_lib_save_LIBS=$LIBS
13069 LIBS="-lselinux $LIBS"
13070 cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h. */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13077 /* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13080 #ifdef __cplusplus
13081 extern "C"
13082 #endif
13083 char lgetfilecon ();
13085 main ()
13087 return lgetfilecon ();
13089 return 0;
13091 _ACEOF
13092 rm -f conftest.$ac_objext conftest$ac_exeext
13093 if { (ac_try="$ac_link"
13094 case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097 esac
13098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13099 $as_echo "$ac_try_echo") >&5
13100 (eval "$ac_link") 2>conftest.er1
13101 ac_status=$?
13102 grep -v '^ *+' conftest.er1 >conftest.err
13103 rm -f conftest.er1
13104 cat conftest.err >&5
13105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } && {
13107 test -z "$ac_c_werror_flag" ||
13108 test ! -s conftest.err
13109 } && test -s conftest$ac_exeext && {
13110 test "$cross_compiling" = yes ||
13111 $as_test_x conftest$ac_exeext
13112 }; then
13113 ac_cv_lib_selinux_lgetfilecon=yes
13114 else
13115 $as_echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13118 ac_cv_lib_selinux_lgetfilecon=no
13121 rm -rf conftest.dSYM
13122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13123 conftest$ac_exeext conftest.$ac_ext
13124 LIBS=$ac_check_lib_save_LIBS
13126 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13127 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13128 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13129 HAVE_LIBSELINUX=yes
13130 else
13131 HAVE_LIBSELINUX=no
13134 if test "$HAVE_LIBSELINUX" = yes; then
13136 cat >>confdefs.h <<\_ACEOF
13137 #define HAVE_LIBSELINUX 1
13138 _ACEOF
13140 LIBSELINUX_LIBS=-lselinux
13145 HAVE_XAW3D=no
13146 LUCID_LIBW=
13147 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13148 if test "$with_xaw3d" != no; then
13149 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13150 $as_echo_n "checking for xaw3d... " >&6; }
13151 if test "${emacs_cv_xaw3d+set}" = set; then
13152 $as_echo_n "(cached) " >&6
13153 else
13154 cat >conftest.$ac_ext <<_ACEOF
13155 /* confdefs.h. */
13156 _ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13161 #include <X11/Intrinsic.h>
13162 #include <X11/Xaw3d/Simple.h>
13164 main ()
13168 return 0;
13170 _ACEOF
13171 rm -f conftest.$ac_objext conftest$ac_exeext
13172 if { (ac_try="$ac_link"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13176 esac
13177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13178 $as_echo "$ac_try_echo") >&5
13179 (eval "$ac_link") 2>conftest.er1
13180 ac_status=$?
13181 grep -v '^ *+' conftest.er1 >conftest.err
13182 rm -f conftest.er1
13183 cat conftest.err >&5
13184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } && {
13186 test -z "$ac_c_werror_flag" ||
13187 test ! -s conftest.err
13188 } && test -s conftest$ac_exeext && {
13189 test "$cross_compiling" = yes ||
13190 $as_test_x conftest$ac_exeext
13191 }; then
13192 emacs_cv_xaw3d=yes
13193 else
13194 $as_echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13197 emacs_cv_xaw3d=no
13200 rm -rf conftest.dSYM
13201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13202 conftest$ac_exeext conftest.$ac_ext
13205 else
13206 emacs_cv_xaw3d=no
13208 if test $emacs_cv_xaw3d = yes; then
13209 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13210 $as_echo "yes; using Lucid toolkit" >&6; }
13211 USE_X_TOOLKIT=LUCID
13212 HAVE_XAW3D=yes
13213 LUCID_LIBW=-lXaw3d
13215 cat >>confdefs.h <<\_ACEOF
13216 #define HAVE_XAW3D 1
13217 _ACEOF
13219 else
13220 { $as_echo "$as_me:$LINENO: result: no" >&5
13221 $as_echo "no" >&6; }
13222 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13223 $as_echo_n "checking for libXaw... " >&6; }
13224 if test "${emacs_cv_xaw+set}" = set; then
13225 $as_echo_n "(cached) " >&6
13226 else
13227 cat >conftest.$ac_ext <<_ACEOF
13228 /* confdefs.h. */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13234 #include <X11/Intrinsic.h>
13235 #include <X11/Xaw/Simple.h>
13237 main ()
13241 return 0;
13243 _ACEOF
13244 rm -f conftest.$ac_objext conftest$ac_exeext
13245 if { (ac_try="$ac_link"
13246 case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13249 esac
13250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13251 $as_echo "$ac_try_echo") >&5
13252 (eval "$ac_link") 2>conftest.er1
13253 ac_status=$?
13254 grep -v '^ *+' conftest.er1 >conftest.err
13255 rm -f conftest.er1
13256 cat conftest.err >&5
13257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } && {
13259 test -z "$ac_c_werror_flag" ||
13260 test ! -s conftest.err
13261 } && test -s conftest$ac_exeext && {
13262 test "$cross_compiling" = yes ||
13263 $as_test_x conftest$ac_exeext
13264 }; then
13265 emacs_cv_xaw=yes
13266 else
13267 $as_echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13270 emacs_cv_xaw=no
13273 rm -rf conftest.dSYM
13274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13275 conftest$ac_exeext conftest.$ac_ext
13278 if test $emacs_cv_xaw = yes; then
13279 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13280 $as_echo "yes; using Lucid toolkit" >&6; }
13281 USE_X_TOOLKIT=LUCID
13282 LUCID_LIBW=-lXaw
13283 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13284 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13285 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13286 { (exit 1); exit 1; }; }
13287 else
13288 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13289 $as_echo "no; do not use toolkit by default" >&6; }
13290 USE_X_TOOLKIT=none
13295 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13297 LIBXTR6=
13298 if test "${USE_X_TOOLKIT}" != "none"; then
13299 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13300 $as_echo_n "checking X11 toolkit version... " >&6; }
13301 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13302 $as_echo_n "(cached) " >&6
13303 else
13304 cat >conftest.$ac_ext <<_ACEOF
13305 /* confdefs.h. */
13306 _ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h. */
13310 #include <X11/Intrinsic.h>
13312 main ()
13314 #if XtSpecificationRelease < 6
13315 fail;
13316 #endif
13319 return 0;
13321 _ACEOF
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (ac_try="$ac_link"
13324 case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13327 esac
13328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13329 $as_echo "$ac_try_echo") >&5
13330 (eval "$ac_link") 2>conftest.er1
13331 ac_status=$?
13332 grep -v '^ *+' conftest.er1 >conftest.err
13333 rm -f conftest.er1
13334 cat conftest.err >&5
13335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } && {
13337 test -z "$ac_c_werror_flag" ||
13338 test ! -s conftest.err
13339 } && test -s conftest$ac_exeext && {
13340 test "$cross_compiling" = yes ||
13341 $as_test_x conftest$ac_exeext
13342 }; then
13343 emacs_cv_x11_toolkit_version_6=yes
13344 else
13345 $as_echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13348 emacs_cv_x11_toolkit_version_6=no
13351 rm -rf conftest.dSYM
13352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13353 conftest$ac_exeext conftest.$ac_ext
13356 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13357 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13358 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13359 $as_echo "6 or newer" >&6; }
13361 cat >>confdefs.h <<\_ACEOF
13362 #define HAVE_X11XTR6 1
13363 _ACEOF
13365 LIBXTR6="-lSM -lICE"
13366 case "$opsys" in
13367 ## Use libw.a along with X11R6 Xt.
13368 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13369 esac
13370 else
13371 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13372 $as_echo "before 6" >&6; }
13375 OLDLIBS="$LIBS"
13376 if test x$HAVE_X11XTR6 = xyes; then
13377 LIBS="-lXt -lSM -lICE $LIBS"
13378 else
13379 LIBS="-lXt $LIBS"
13382 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13383 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13384 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13385 $as_echo_n "(cached) " >&6
13386 else
13387 ac_check_lib_save_LIBS=$LIBS
13388 LIBS="-lXmu $LIBS"
13389 cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h. */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13396 /* Override any GCC internal prototype to avoid an error.
13397 Use char because int might match the return type of a GCC
13398 builtin and then its argument prototype would still apply. */
13399 #ifdef __cplusplus
13400 extern "C"
13401 #endif
13402 char XmuConvertStandardSelection ();
13404 main ()
13406 return XmuConvertStandardSelection ();
13408 return 0;
13410 _ACEOF
13411 rm -f conftest.$ac_objext conftest$ac_exeext
13412 if { (ac_try="$ac_link"
13413 case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416 esac
13417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13418 $as_echo "$ac_try_echo") >&5
13419 (eval "$ac_link") 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } && {
13426 test -z "$ac_c_werror_flag" ||
13427 test ! -s conftest.err
13428 } && test -s conftest$ac_exeext && {
13429 test "$cross_compiling" = yes ||
13430 $as_test_x conftest$ac_exeext
13431 }; then
13432 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13433 else
13434 $as_echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13440 rm -rf conftest.dSYM
13441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13442 conftest$ac_exeext conftest.$ac_ext
13443 LIBS=$ac_check_lib_save_LIBS
13445 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13446 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13447 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13448 cat >>confdefs.h <<_ACEOF
13449 #define HAVE_LIBXMU 1
13450 _ACEOF
13452 LIBS="-lXmu $LIBS"
13456 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13460 LIBXMU=-lXmu
13461 case "$machine" in
13462 ## These machines don't supply Xmu.
13463 hpux* | aix4-2 )
13464 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13466 esac
13469 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13470 if test "${HAVE_X11}" = "yes"; then
13471 if test "${USE_X_TOOLKIT}" != "none"; then
13473 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13474 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13475 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13476 $as_echo_n "(cached) " >&6
13477 else
13478 ac_check_lib_save_LIBS=$LIBS
13479 LIBS="-lXext $LIBS"
13480 cat >conftest.$ac_ext <<_ACEOF
13481 /* confdefs.h. */
13482 _ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13487 /* Override any GCC internal prototype to avoid an error.
13488 Use char because int might match the return type of a GCC
13489 builtin and then its argument prototype would still apply. */
13490 #ifdef __cplusplus
13491 extern "C"
13492 #endif
13493 char XShapeQueryExtension ();
13495 main ()
13497 return XShapeQueryExtension ();
13499 return 0;
13501 _ACEOF
13502 rm -f conftest.$ac_objext conftest$ac_exeext
13503 if { (ac_try="$ac_link"
13504 case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13507 esac
13508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13509 $as_echo "$ac_try_echo") >&5
13510 (eval "$ac_link") 2>conftest.er1
13511 ac_status=$?
13512 grep -v '^ *+' conftest.er1 >conftest.err
13513 rm -f conftest.er1
13514 cat conftest.err >&5
13515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } && {
13517 test -z "$ac_c_werror_flag" ||
13518 test ! -s conftest.err
13519 } && test -s conftest$ac_exeext && {
13520 test "$cross_compiling" = yes ||
13521 $as_test_x conftest$ac_exeext
13522 }; then
13523 ac_cv_lib_Xext_XShapeQueryExtension=yes
13524 else
13525 $as_echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13528 ac_cv_lib_Xext_XShapeQueryExtension=no
13531 rm -rf conftest.dSYM
13532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13533 conftest$ac_exeext conftest.$ac_ext
13534 LIBS=$ac_check_lib_save_LIBS
13536 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13537 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13538 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13539 cat >>confdefs.h <<_ACEOF
13540 #define HAVE_LIBXEXT 1
13541 _ACEOF
13543 LIBS="-lXext $LIBS"
13550 LIBXP=
13551 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13552 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13553 $as_echo_n "checking for Motif version 2.1... " >&6; }
13554 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13555 $as_echo_n "(cached) " >&6
13556 else
13557 cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h. */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563 #include <Xm/Xm.h>
13565 main ()
13567 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13568 int x = 5;
13569 #else
13570 Motif version prior to 2.1.
13571 #endif
13573 return 0;
13575 _ACEOF
13576 rm -f conftest.$ac_objext
13577 if { (ac_try="$ac_compile"
13578 case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13581 esac
13582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13583 $as_echo "$ac_try_echo") >&5
13584 (eval "$ac_compile") 2>conftest.er1
13585 ac_status=$?
13586 grep -v '^ *+' conftest.er1 >conftest.err
13587 rm -f conftest.er1
13588 cat conftest.err >&5
13589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } && {
13591 test -z "$ac_c_werror_flag" ||
13592 test ! -s conftest.err
13593 } && test -s conftest.$ac_objext; then
13594 emacs_cv_motif_version_2_1=yes
13595 else
13596 $as_echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 emacs_cv_motif_version_2_1=no
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13605 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13606 if test $emacs_cv_motif_version_2_1 = yes; then
13607 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13608 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13609 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13610 $as_echo_n "(cached) " >&6
13611 else
13612 ac_check_lib_save_LIBS=$LIBS
13613 LIBS="-lXp $LIBS"
13614 cat >conftest.$ac_ext <<_ACEOF
13615 /* confdefs.h. */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13621 /* Override any GCC internal prototype to avoid an error.
13622 Use char because int might match the return type of a GCC
13623 builtin and then its argument prototype would still apply. */
13624 #ifdef __cplusplus
13625 extern "C"
13626 #endif
13627 char XpCreateContext ();
13629 main ()
13631 return XpCreateContext ();
13633 return 0;
13635 _ACEOF
13636 rm -f conftest.$ac_objext conftest$ac_exeext
13637 if { (ac_try="$ac_link"
13638 case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13641 esac
13642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13643 $as_echo "$ac_try_echo") >&5
13644 (eval "$ac_link") 2>conftest.er1
13645 ac_status=$?
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
13649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } && {
13651 test -z "$ac_c_werror_flag" ||
13652 test ! -s conftest.err
13653 } && test -s conftest$ac_exeext && {
13654 test "$cross_compiling" = yes ||
13655 $as_test_x conftest$ac_exeext
13656 }; then
13657 ac_cv_lib_Xp_XpCreateContext=yes
13658 else
13659 $as_echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13662 ac_cv_lib_Xp_XpCreateContext=no
13665 rm -rf conftest.dSYM
13666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13667 conftest$ac_exeext conftest.$ac_ext
13668 LIBS=$ac_check_lib_save_LIBS
13670 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13671 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13672 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13673 LIBXP=-lXp
13676 else
13677 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13678 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13679 if test "${emacs_cv_lesstif+set}" = set; then
13680 $as_echo_n "(cached) " >&6
13681 else
13682 # We put this in CFLAGS temporarily to precede other -I options
13683 # that might be in CFLAGS temporarily.
13684 # We put this in CPPFLAGS where it precedes the other -I options.
13685 OLD_CPPFLAGS=$CPPFLAGS
13686 OLD_CFLAGS=$CFLAGS
13687 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13688 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13689 cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h. */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13697 main ()
13699 int x = 5;
13701 return 0;
13703 _ACEOF
13704 rm -f conftest.$ac_objext
13705 if { (ac_try="$ac_compile"
13706 case "(($ac_try" in
13707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13709 esac
13710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13711 $as_echo "$ac_try_echo") >&5
13712 (eval "$ac_compile") 2>conftest.er1
13713 ac_status=$?
13714 grep -v '^ *+' conftest.er1 >conftest.err
13715 rm -f conftest.er1
13716 cat conftest.err >&5
13717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } && {
13719 test -z "$ac_c_werror_flag" ||
13720 test ! -s conftest.err
13721 } && test -s conftest.$ac_objext; then
13722 emacs_cv_lesstif=yes
13723 else
13724 $as_echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13727 emacs_cv_lesstif=no
13730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13733 $as_echo "$emacs_cv_lesstif" >&6; }
13734 if test $emacs_cv_lesstif = yes; then
13735 # Make sure this -I option remains in CPPFLAGS after it is set
13736 # back to REAL_CPPFLAGS.
13737 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13738 # have those other -I options anyway. Ultimately, having this
13739 # directory ultimately in CPPFLAGS will be enough.
13740 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13741 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13742 else
13743 CFLAGS=$OLD_CFLAGS
13744 CPPFLAGS=$OLD_CPPFLAGS
13751 USE_TOOLKIT_SCROLL_BARS=no
13752 if test "${with_toolkit_scroll_bars}" != "no"; then
13753 if test "${USE_X_TOOLKIT}" != "none"; then
13754 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13755 cat >>confdefs.h <<\_ACEOF
13756 #define USE_TOOLKIT_SCROLL_BARS 1
13757 _ACEOF
13759 HAVE_XAW3D=no
13760 USE_TOOLKIT_SCROLL_BARS=yes
13761 elif test "${HAVE_XAW3D}" = "yes"; then
13762 cat >>confdefs.h <<\_ACEOF
13763 #define USE_TOOLKIT_SCROLL_BARS 1
13764 _ACEOF
13766 USE_TOOLKIT_SCROLL_BARS=yes
13768 elif test "${HAVE_GTK}" = "yes"; then
13769 cat >>confdefs.h <<\_ACEOF
13770 #define USE_TOOLKIT_SCROLL_BARS 1
13771 _ACEOF
13773 USE_TOOLKIT_SCROLL_BARS=yes
13774 elif test "${HAVE_NS}" = "yes"; then
13775 cat >>confdefs.h <<\_ACEOF
13776 #define USE_TOOLKIT_SCROLL_BARS 1
13777 _ACEOF
13779 USE_TOOLKIT_SCROLL_BARS=yes
13783 cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h. */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13790 #include <X11/Xlib.h>
13791 #include <X11/Xresource.h>
13793 main ()
13795 XIMProc callback;
13797 return 0;
13799 _ACEOF
13800 rm -f conftest.$ac_objext
13801 if { (ac_try="$ac_compile"
13802 case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805 esac
13806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13807 $as_echo "$ac_try_echo") >&5
13808 (eval "$ac_compile") 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } && {
13815 test -z "$ac_c_werror_flag" ||
13816 test ! -s conftest.err
13817 } && test -s conftest.$ac_objext; then
13818 HAVE_XIM=yes
13820 cat >>confdefs.h <<\_ACEOF
13821 #define HAVE_XIM 1
13822 _ACEOF
13824 else
13825 $as_echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13828 HAVE_XIM=no
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13834 if test "${with_xim}" != "no"; then
13836 cat >>confdefs.h <<\_ACEOF
13837 #define USE_XIM 1
13838 _ACEOF
13843 if test "${HAVE_XIM}" != "no"; then
13844 late_CFLAGS=$CFLAGS
13845 if test "$GCC" = yes; then
13846 CFLAGS="$CFLAGS --pedantic-errors"
13848 cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h. */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13855 #include <X11/Xlib.h>
13856 #include <X11/Xresource.h>
13858 main ()
13860 Display *display;
13861 XrmDatabase db;
13862 char *res_name;
13863 char *res_class;
13864 XIMProc callback;
13865 XPointer *client_data;
13866 #ifndef __GNUC__
13867 /* If we're not using GCC, it's probably not XFree86, and this is
13868 probably right, but we can't use something like --pedantic-errors. */
13869 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13870 char*, XIMProc, XPointer*);
13871 #endif
13872 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13873 client_data);
13875 return 0;
13877 _ACEOF
13878 rm -f conftest.$ac_objext
13879 if { (ac_try="$ac_compile"
13880 case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13883 esac
13884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13885 $as_echo "$ac_try_echo") >&5
13886 (eval "$ac_compile") 2>conftest.er1
13887 ac_status=$?
13888 grep -v '^ *+' conftest.er1 >conftest.err
13889 rm -f conftest.er1
13890 cat conftest.err >&5
13891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } && {
13893 test -z "$ac_c_werror_flag" ||
13894 test ! -s conftest.err
13895 } && test -s conftest.$ac_objext; then
13896 emacs_cv_arg6_star=yes
13897 else
13898 $as_echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906 if test "$emacs_cv_arg6_star" = yes; then
13907 cat >>confdefs.h <<\_ACEOF
13908 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13909 _ACEOF
13911 else
13912 cat >>confdefs.h <<\_ACEOF
13913 #define XRegisterIMInstantiateCallback_arg6 XPointer
13914 _ACEOF
13917 CFLAGS=$late_CFLAGS
13920 ### Start of font-backend (under any platform) section.
13921 # (nothing here yet -- this is a placeholder)
13922 ### End of font-backend (under any platform) section.
13924 ### Start of font-backend (under X11) section.
13925 if test "${HAVE_X11}" = "yes"; then
13927 succeeded=no
13929 # Extract the first word of "pkg-config", so it can be a program name with args.
13930 set dummy pkg-config; ac_word=$2
13931 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13932 $as_echo_n "checking for $ac_word... " >&6; }
13933 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13934 $as_echo_n "(cached) " >&6
13935 else
13936 case $PKG_CONFIG in
13937 [\\/]* | ?:[\\/]*)
13938 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942 for as_dir in $PATH
13944 IFS=$as_save_IFS
13945 test -z "$as_dir" && as_dir=.
13946 for ac_exec_ext in '' $ac_executable_extensions; do
13947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13948 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13950 break 2
13952 done
13953 done
13954 IFS=$as_save_IFS
13956 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13958 esac
13960 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13961 if test -n "$PKG_CONFIG"; then
13962 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13963 $as_echo "$PKG_CONFIG" >&6; }
13964 else
13965 { $as_echo "$as_me:$LINENO: result: no" >&5
13966 $as_echo "no" >&6; }
13971 if test "$PKG_CONFIG" = "no" ; then
13972 HAVE_FC=no
13973 else
13974 PKG_CONFIG_MIN_VERSION=0.9.0
13975 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13976 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13977 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13979 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13980 { $as_echo "$as_me:$LINENO: result: yes" >&5
13981 $as_echo "yes" >&6; }
13982 succeeded=yes
13984 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13985 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13986 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13987 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13988 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13990 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13991 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13992 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13993 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13994 $as_echo "$FONTCONFIG_LIBS" >&6; }
13995 else
13996 { $as_echo "$as_me:$LINENO: result: no" >&5
13997 $as_echo "no" >&6; }
13998 FONTCONFIG_CFLAGS=""
13999 FONTCONFIG_LIBS=""
14000 ## If we have a custom action on failure, don't print errors, but
14001 ## do set a variable so people can do so.
14002 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
14008 else
14009 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14010 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14014 if test $succeeded = yes; then
14015 HAVE_FC=yes
14016 else
14017 HAVE_FC=no
14021 ## Use -lXft if available, unless `--with-xft=no'.
14022 HAVE_XFT=maybe
14023 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
14024 with_xft="no";
14026 if test "x${with_xft}" != "xno"; then
14029 succeeded=no
14031 # Extract the first word of "pkg-config", so it can be a program name with args.
14032 set dummy pkg-config; ac_word=$2
14033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14034 $as_echo_n "checking for $ac_word... " >&6; }
14035 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14036 $as_echo_n "(cached) " >&6
14037 else
14038 case $PKG_CONFIG in
14039 [\\/]* | ?:[\\/]*)
14040 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044 for as_dir in $PATH
14046 IFS=$as_save_IFS
14047 test -z "$as_dir" && as_dir=.
14048 for ac_exec_ext in '' $ac_executable_extensions; do
14049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14050 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14052 break 2
14054 done
14055 done
14056 IFS=$as_save_IFS
14058 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14060 esac
14062 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14063 if test -n "$PKG_CONFIG"; then
14064 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14065 $as_echo "$PKG_CONFIG" >&6; }
14066 else
14067 { $as_echo "$as_me:$LINENO: result: no" >&5
14068 $as_echo "no" >&6; }
14073 if test "$PKG_CONFIG" = "no" ; then
14074 HAVE_XFT=no
14075 else
14076 PKG_CONFIG_MIN_VERSION=0.9.0
14077 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14078 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14079 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14081 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14082 { $as_echo "$as_me:$LINENO: result: yes" >&5
14083 $as_echo "yes" >&6; }
14084 succeeded=yes
14086 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14087 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14088 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14089 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14090 $as_echo "$XFT_CFLAGS" >&6; }
14092 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14093 $as_echo_n "checking XFT_LIBS... " >&6; }
14094 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14095 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14096 $as_echo "$XFT_LIBS" >&6; }
14097 else
14098 { $as_echo "$as_me:$LINENO: result: no" >&5
14099 $as_echo "no" >&6; }
14100 XFT_CFLAGS=""
14101 XFT_LIBS=""
14102 ## If we have a custom action on failure, don't print errors, but
14103 ## do set a variable so people can do so.
14104 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14110 else
14111 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14112 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14116 if test $succeeded = yes; then
14118 else
14119 HAVE_XFT=no
14122 ## Because xftfont.c uses XRenderQueryExtension, we also
14123 ## need to link to -lXrender.
14124 HAVE_XRENDER=no
14125 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14126 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14127 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14128 $as_echo_n "(cached) " >&6
14129 else
14130 ac_check_lib_save_LIBS=$LIBS
14131 LIBS="-lXrender $LIBS"
14132 cat >conftest.$ac_ext <<_ACEOF
14133 /* confdefs.h. */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14139 /* Override any GCC internal prototype to avoid an error.
14140 Use char because int might match the return type of a GCC
14141 builtin and then its argument prototype would still apply. */
14142 #ifdef __cplusplus
14143 extern "C"
14144 #endif
14145 char XRenderQueryExtension ();
14147 main ()
14149 return XRenderQueryExtension ();
14151 return 0;
14153 _ACEOF
14154 rm -f conftest.$ac_objext conftest$ac_exeext
14155 if { (ac_try="$ac_link"
14156 case "(($ac_try" in
14157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158 *) ac_try_echo=$ac_try;;
14159 esac
14160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14161 $as_echo "$ac_try_echo") >&5
14162 (eval "$ac_link") 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } && {
14169 test -z "$ac_c_werror_flag" ||
14170 test ! -s conftest.err
14171 } && test -s conftest$ac_exeext && {
14172 test "$cross_compiling" = yes ||
14173 $as_test_x conftest$ac_exeext
14174 }; then
14175 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14176 else
14177 $as_echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14180 ac_cv_lib_Xrender_XRenderQueryExtension=no
14183 rm -rf conftest.dSYM
14184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14185 conftest$ac_exeext conftest.$ac_ext
14186 LIBS=$ac_check_lib_save_LIBS
14188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14189 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14190 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14191 HAVE_XRENDER=yes
14194 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14195 OLD_CPPFLAGS="$CPPFLAGS"
14196 OLD_CFLAGS="$CFLAGS"
14197 OLD_LIBS="$LIBS"
14198 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14199 CFLAGS="$CFLAGS $XFT_CFLAGS"
14200 XFT_LIBS="-lXrender $XFT_LIBS"
14201 LIBS="$XFT_LIBS $LIBS"
14202 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14203 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14204 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14205 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14206 $as_echo_n "(cached) " >&6
14208 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14209 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14210 else
14211 # Is the header compilable?
14212 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14213 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14214 cat >conftest.$ac_ext <<_ACEOF
14215 /* confdefs.h. */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14220 $ac_includes_default
14221 #include <X11/Xft/Xft.h>
14222 _ACEOF
14223 rm -f conftest.$ac_objext
14224 if { (ac_try="$ac_compile"
14225 case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14228 esac
14229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14230 $as_echo "$ac_try_echo") >&5
14231 (eval "$ac_compile") 2>conftest.er1
14232 ac_status=$?
14233 grep -v '^ *+' conftest.er1 >conftest.err
14234 rm -f conftest.er1
14235 cat conftest.err >&5
14236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } && {
14238 test -z "$ac_c_werror_flag" ||
14239 test ! -s conftest.err
14240 } && test -s conftest.$ac_objext; then
14241 ac_header_compiler=yes
14242 else
14243 $as_echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14246 ac_header_compiler=no
14249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14250 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14251 $as_echo "$ac_header_compiler" >&6; }
14253 # Is the header present?
14254 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14255 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14256 cat >conftest.$ac_ext <<_ACEOF
14257 /* confdefs.h. */
14258 _ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14262 #include <X11/Xft/Xft.h>
14263 _ACEOF
14264 if { (ac_try="$ac_cpp conftest.$ac_ext"
14265 case "(($ac_try" in
14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14268 esac
14269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14270 $as_echo "$ac_try_echo") >&5
14271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14272 ac_status=$?
14273 grep -v '^ *+' conftest.er1 >conftest.err
14274 rm -f conftest.er1
14275 cat conftest.err >&5
14276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } >/dev/null && {
14278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14279 test ! -s conftest.err
14280 }; then
14281 ac_header_preproc=yes
14282 else
14283 $as_echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14286 ac_header_preproc=no
14289 rm -f conftest.err conftest.$ac_ext
14290 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14291 $as_echo "$ac_header_preproc" >&6; }
14293 # So? What about this header?
14294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14295 yes:no: )
14296 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14297 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14298 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14299 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14300 ac_header_preproc=yes
14302 no:yes:* )
14303 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14304 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14305 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14306 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14307 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14308 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14309 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14310 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14311 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14312 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14313 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14314 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14317 esac
14318 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14319 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14320 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14321 $as_echo_n "(cached) " >&6
14322 else
14323 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14325 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14326 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14329 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14330 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14331 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14332 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14333 $as_echo_n "(cached) " >&6
14334 else
14335 ac_check_lib_save_LIBS=$LIBS
14336 LIBS="-lXft $XFT_LIBS $LIBS"
14337 cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h. */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14344 /* Override any GCC internal prototype to avoid an error.
14345 Use char because int might match the return type of a GCC
14346 builtin and then its argument prototype would still apply. */
14347 #ifdef __cplusplus
14348 extern "C"
14349 #endif
14350 char XftFontOpen ();
14352 main ()
14354 return XftFontOpen ();
14356 return 0;
14358 _ACEOF
14359 rm -f conftest.$ac_objext conftest$ac_exeext
14360 if { (ac_try="$ac_link"
14361 case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14364 esac
14365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14366 $as_echo "$ac_try_echo") >&5
14367 (eval "$ac_link") 2>conftest.er1
14368 ac_status=$?
14369 grep -v '^ *+' conftest.er1 >conftest.err
14370 rm -f conftest.er1
14371 cat conftest.err >&5
14372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } && {
14374 test -z "$ac_c_werror_flag" ||
14375 test ! -s conftest.err
14376 } && test -s conftest$ac_exeext && {
14377 test "$cross_compiling" = yes ||
14378 $as_test_x conftest$ac_exeext
14379 }; then
14380 ac_cv_lib_Xft_XftFontOpen=yes
14381 else
14382 $as_echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14385 ac_cv_lib_Xft_XftFontOpen=no
14388 rm -rf conftest.dSYM
14389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14390 conftest$ac_exeext conftest.$ac_ext
14391 LIBS=$ac_check_lib_save_LIBS
14393 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14394 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14395 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14396 HAVE_XFT=yes
14403 if test "${HAVE_XFT}" = "yes"; then
14405 cat >>confdefs.h <<\_ACEOF
14406 #define HAVE_XFT 1
14407 _ACEOF
14410 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14411 else
14412 CPPFLAGS="$OLD_CPPFLAGS"
14413 CFLAGS="$OLD_CFLAGS"
14414 LIBS="$OLD_LIBS"
14415 fi # "${HAVE_XFT}" = "yes"
14416 fi # "$HAVE_XFT" != no
14417 fi # "x${with_xft}" != "xno"
14419 if test "$HAVE_XFT" != "yes"; then
14420 HAVE_XFT=no
14424 HAVE_FREETYPE=no
14425 ## We used to allow building with FreeType and without Xft.
14426 ## However, the ftx font backend driver is not in good shape.
14427 if test "${HAVE_XFT}" = "yes"; then
14428 HAVE_FREETYPE=yes
14429 FONTCONFIG_CFLAGS=
14430 FONTCONFIG_LIBS=
14433 HAVE_LIBOTF=no
14434 if test "${HAVE_FREETYPE}" = "yes"; then
14436 cat >>confdefs.h <<\_ACEOF
14437 #define HAVE_FREETYPE 1
14438 _ACEOF
14440 if test "${with_libotf}" != "no"; then
14442 succeeded=no
14444 # Extract the first word of "pkg-config", so it can be a program name with args.
14445 set dummy pkg-config; ac_word=$2
14446 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14447 $as_echo_n "checking for $ac_word... " >&6; }
14448 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14449 $as_echo_n "(cached) " >&6
14450 else
14451 case $PKG_CONFIG in
14452 [\\/]* | ?:[\\/]*)
14453 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14457 for as_dir in $PATH
14459 IFS=$as_save_IFS
14460 test -z "$as_dir" && as_dir=.
14461 for ac_exec_ext in '' $ac_executable_extensions; do
14462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14463 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14465 break 2
14467 done
14468 done
14469 IFS=$as_save_IFS
14471 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14473 esac
14475 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14476 if test -n "$PKG_CONFIG"; then
14477 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14478 $as_echo "$PKG_CONFIG" >&6; }
14479 else
14480 { $as_echo "$as_me:$LINENO: result: no" >&5
14481 $as_echo "no" >&6; }
14486 if test "$PKG_CONFIG" = "no" ; then
14487 HAVE_LIBOTF=no
14488 else
14489 PKG_CONFIG_MIN_VERSION=0.9.0
14490 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14491 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14492 $as_echo_n "checking for libotf... " >&6; }
14494 if $PKG_CONFIG --exists "libotf" 2>&5; then
14495 { $as_echo "$as_me:$LINENO: result: yes" >&5
14496 $as_echo "yes" >&6; }
14497 succeeded=yes
14499 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14500 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14501 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14502 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14503 $as_echo "$LIBOTF_CFLAGS" >&6; }
14505 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14506 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14507 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14508 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14509 $as_echo "$LIBOTF_LIBS" >&6; }
14510 else
14511 { $as_echo "$as_me:$LINENO: result: no" >&5
14512 $as_echo "no" >&6; }
14513 LIBOTF_CFLAGS=""
14514 LIBOTF_LIBS=""
14515 ## If we have a custom action on failure, don't print errors, but
14516 ## do set a variable so people can do so.
14517 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14523 else
14524 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14525 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14529 if test $succeeded = yes; then
14530 HAVE_LIBOTF=yes
14531 else
14532 HAVE_LIBOTF=no
14535 if test "$HAVE_LIBOTF" = "yes"; then
14537 cat >>confdefs.h <<\_ACEOF
14538 #define HAVE_LIBOTF 1
14539 _ACEOF
14541 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14542 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14543 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14544 $as_echo_n "(cached) " >&6
14545 else
14546 ac_check_lib_save_LIBS=$LIBS
14547 LIBS="-lotf $LIBS"
14548 cat >conftest.$ac_ext <<_ACEOF
14549 /* confdefs.h. */
14550 _ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h. */
14555 /* Override any GCC internal prototype to avoid an error.
14556 Use char because int might match the return type of a GCC
14557 builtin and then its argument prototype would still apply. */
14558 #ifdef __cplusplus
14559 extern "C"
14560 #endif
14561 char OTF_get_variation_glyphs ();
14563 main ()
14565 return OTF_get_variation_glyphs ();
14567 return 0;
14569 _ACEOF
14570 rm -f conftest.$ac_objext conftest$ac_exeext
14571 if { (ac_try="$ac_link"
14572 case "(($ac_try" in
14573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574 *) ac_try_echo=$ac_try;;
14575 esac
14576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14577 $as_echo "$ac_try_echo") >&5
14578 (eval "$ac_link") 2>conftest.er1
14579 ac_status=$?
14580 grep -v '^ *+' conftest.er1 >conftest.err
14581 rm -f conftest.er1
14582 cat conftest.err >&5
14583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } && {
14585 test -z "$ac_c_werror_flag" ||
14586 test ! -s conftest.err
14587 } && test -s conftest$ac_exeext && {
14588 test "$cross_compiling" = yes ||
14589 $as_test_x conftest$ac_exeext
14590 }; then
14591 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14592 else
14593 $as_echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14596 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14599 rm -rf conftest.dSYM
14600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14601 conftest$ac_exeext conftest.$ac_ext
14602 LIBS=$ac_check_lib_save_LIBS
14604 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14605 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14606 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14607 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14608 else
14609 HAVE_OTF_GET_VARIATION_GLYPHS=no
14612 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14614 cat >>confdefs.h <<\_ACEOF
14615 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14616 _ACEOF
14623 HAVE_M17N_FLT=no
14624 if test "${HAVE_LIBOTF}" = yes; then
14625 if test "${with_m17n_flt}" != "no"; then
14627 succeeded=no
14629 # Extract the first word of "pkg-config", so it can be a program name with args.
14630 set dummy pkg-config; ac_word=$2
14631 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14632 $as_echo_n "checking for $ac_word... " >&6; }
14633 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14634 $as_echo_n "(cached) " >&6
14635 else
14636 case $PKG_CONFIG in
14637 [\\/]* | ?:[\\/]*)
14638 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14642 for as_dir in $PATH
14644 IFS=$as_save_IFS
14645 test -z "$as_dir" && as_dir=.
14646 for ac_exec_ext in '' $ac_executable_extensions; do
14647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14648 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14650 break 2
14652 done
14653 done
14654 IFS=$as_save_IFS
14656 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14658 esac
14660 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14661 if test -n "$PKG_CONFIG"; then
14662 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14663 $as_echo "$PKG_CONFIG" >&6; }
14664 else
14665 { $as_echo "$as_me:$LINENO: result: no" >&5
14666 $as_echo "no" >&6; }
14671 if test "$PKG_CONFIG" = "no" ; then
14672 HAVE_M17N_FLT=no
14673 else
14674 PKG_CONFIG_MIN_VERSION=0.9.0
14675 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14676 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14677 $as_echo_n "checking for m17n-flt... " >&6; }
14679 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14680 { $as_echo "$as_me:$LINENO: result: yes" >&5
14681 $as_echo "yes" >&6; }
14682 succeeded=yes
14684 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14685 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14686 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14687 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14688 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14690 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14691 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14692 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14693 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14694 $as_echo "$M17N_FLT_LIBS" >&6; }
14695 else
14696 { $as_echo "$as_me:$LINENO: result: no" >&5
14697 $as_echo "no" >&6; }
14698 M17N_FLT_CFLAGS=""
14699 M17N_FLT_LIBS=""
14700 ## If we have a custom action on failure, don't print errors, but
14701 ## do set a variable so people can do so.
14702 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14708 else
14709 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14710 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14714 if test $succeeded = yes; then
14715 HAVE_M17N_FLT=yes
14716 else
14717 HAVE_M17N_FLT=no
14720 if test "$HAVE_M17N_FLT" = "yes"; then
14722 cat >>confdefs.h <<\_ACEOF
14723 #define HAVE_M17N_FLT 1
14724 _ACEOF
14729 else
14730 HAVE_XFT=no
14731 HAVE_FREETYPE=no
14732 HAVE_LIBOTF=no
14733 HAVE_M17N_FLT=no
14736 ### End of font-backend (under X11) section.
14747 ### Use -lXpm if available, unless `--with-xpm=no'.
14748 HAVE_XPM=no
14749 LIBXPM=
14750 if test "${HAVE_X11}" = "yes"; then
14751 if test "${with_xpm}" != "no"; then
14752 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14753 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14754 $as_echo_n "checking for X11/xpm.h... " >&6; }
14755 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14756 $as_echo_n "(cached) " >&6
14758 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14759 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14760 else
14761 # Is the header compilable?
14762 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14763 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14764 cat >conftest.$ac_ext <<_ACEOF
14765 /* confdefs.h. */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h. */
14770 $ac_includes_default
14771 #include <X11/xpm.h>
14772 _ACEOF
14773 rm -f conftest.$ac_objext
14774 if { (ac_try="$ac_compile"
14775 case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14778 esac
14779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14780 $as_echo "$ac_try_echo") >&5
14781 (eval "$ac_compile") 2>conftest.er1
14782 ac_status=$?
14783 grep -v '^ *+' conftest.er1 >conftest.err
14784 rm -f conftest.er1
14785 cat conftest.err >&5
14786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); } && {
14788 test -z "$ac_c_werror_flag" ||
14789 test ! -s conftest.err
14790 } && test -s conftest.$ac_objext; then
14791 ac_header_compiler=yes
14792 else
14793 $as_echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14796 ac_header_compiler=no
14799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14801 $as_echo "$ac_header_compiler" >&6; }
14803 # Is the header present?
14804 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14805 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14806 cat >conftest.$ac_ext <<_ACEOF
14807 /* confdefs.h. */
14808 _ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 #include <X11/xpm.h>
14813 _ACEOF
14814 if { (ac_try="$ac_cpp conftest.$ac_ext"
14815 case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14818 esac
14819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14820 $as_echo "$ac_try_echo") >&5
14821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14822 ac_status=$?
14823 grep -v '^ *+' conftest.er1 >conftest.err
14824 rm -f conftest.er1
14825 cat conftest.err >&5
14826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } >/dev/null && {
14828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14829 test ! -s conftest.err
14830 }; then
14831 ac_header_preproc=yes
14832 else
14833 $as_echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14836 ac_header_preproc=no
14839 rm -f conftest.err conftest.$ac_ext
14840 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14841 $as_echo "$ac_header_preproc" >&6; }
14843 # So? What about this header?
14844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14845 yes:no: )
14846 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14847 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14848 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14849 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14850 ac_header_preproc=yes
14852 no:yes:* )
14853 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14854 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14855 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14856 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14857 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14858 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14859 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14860 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14861 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14862 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14863 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14864 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14867 esac
14868 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14869 $as_echo_n "checking for X11/xpm.h... " >&6; }
14870 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14871 $as_echo_n "(cached) " >&6
14872 else
14873 ac_cv_header_X11_xpm_h=$ac_header_preproc
14875 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14876 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14879 if test $ac_cv_header_X11_xpm_h = yes; then
14880 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14881 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14882 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14883 $as_echo_n "(cached) " >&6
14884 else
14885 ac_check_lib_save_LIBS=$LIBS
14886 LIBS="-lXpm -lX11 $LIBS"
14887 cat >conftest.$ac_ext <<_ACEOF
14888 /* confdefs.h. */
14889 _ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h. */
14894 /* Override any GCC internal prototype to avoid an error.
14895 Use char because int might match the return type of a GCC
14896 builtin and then its argument prototype would still apply. */
14897 #ifdef __cplusplus
14898 extern "C"
14899 #endif
14900 char XpmReadFileToPixmap ();
14902 main ()
14904 return XpmReadFileToPixmap ();
14906 return 0;
14908 _ACEOF
14909 rm -f conftest.$ac_objext conftest$ac_exeext
14910 if { (ac_try="$ac_link"
14911 case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14914 esac
14915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14916 $as_echo "$ac_try_echo") >&5
14917 (eval "$ac_link") 2>conftest.er1
14918 ac_status=$?
14919 grep -v '^ *+' conftest.er1 >conftest.err
14920 rm -f conftest.er1
14921 cat conftest.err >&5
14922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } && {
14924 test -z "$ac_c_werror_flag" ||
14925 test ! -s conftest.err
14926 } && test -s conftest$ac_exeext && {
14927 test "$cross_compiling" = yes ||
14928 $as_test_x conftest$ac_exeext
14929 }; then
14930 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14931 else
14932 $as_echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14938 rm -rf conftest.dSYM
14939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14940 conftest$ac_exeext conftest.$ac_ext
14941 LIBS=$ac_check_lib_save_LIBS
14943 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14944 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14945 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14946 HAVE_XPM=yes
14952 if test "${HAVE_XPM}" = "yes"; then
14953 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14954 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14955 cat >conftest.$ac_ext <<_ACEOF
14956 /* confdefs.h. */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 #include "X11/xpm.h"
14962 #ifndef XpmReturnAllocPixels
14963 no_return_alloc_pixels
14964 #endif
14966 _ACEOF
14967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14968 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14969 HAVE_XPM=no
14970 else
14971 HAVE_XPM=yes
14973 rm -f conftest*
14976 if test "${HAVE_XPM}" = "yes"; then
14977 { $as_echo "$as_me:$LINENO: result: yes" >&5
14978 $as_echo "yes" >&6; }
14979 else
14980 { $as_echo "$as_me:$LINENO: result: no" >&5
14981 $as_echo "no" >&6; }
14986 if test "${HAVE_XPM}" = "yes"; then
14988 cat >>confdefs.h <<\_ACEOF
14989 #define HAVE_XPM 1
14990 _ACEOF
14992 LIBXPM=-lXpm
14997 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14998 HAVE_JPEG=no
14999 LIBJPEG=
15000 if test "${HAVE_X11}" = "yes"; then
15001 if test "${with_jpeg}" != "no"; then
15002 if test "${ac_cv_header_jerror_h+set}" = set; then
15003 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15004 $as_echo_n "checking for jerror.h... " >&6; }
15005 if test "${ac_cv_header_jerror_h+set}" = set; then
15006 $as_echo_n "(cached) " >&6
15008 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15009 $as_echo "$ac_cv_header_jerror_h" >&6; }
15010 else
15011 # Is the header compilable?
15012 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
15013 $as_echo_n "checking jerror.h usability... " >&6; }
15014 cat >conftest.$ac_ext <<_ACEOF
15015 /* confdefs.h. */
15016 _ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15020 $ac_includes_default
15021 #include <jerror.h>
15022 _ACEOF
15023 rm -f conftest.$ac_objext
15024 if { (ac_try="$ac_compile"
15025 case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15028 esac
15029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15030 $as_echo "$ac_try_echo") >&5
15031 (eval "$ac_compile") 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest.$ac_objext; then
15041 ac_header_compiler=yes
15042 else
15043 $as_echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 ac_header_compiler=no
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15050 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15051 $as_echo "$ac_header_compiler" >&6; }
15053 # Is the header present?
15054 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15055 $as_echo_n "checking jerror.h presence... " >&6; }
15056 cat >conftest.$ac_ext <<_ACEOF
15057 /* confdefs.h. */
15058 _ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15062 #include <jerror.h>
15063 _ACEOF
15064 if { (ac_try="$ac_cpp conftest.$ac_ext"
15065 case "(($ac_try" in
15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067 *) ac_try_echo=$ac_try;;
15068 esac
15069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15070 $as_echo "$ac_try_echo") >&5
15071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15072 ac_status=$?
15073 grep -v '^ *+' conftest.er1 >conftest.err
15074 rm -f conftest.er1
15075 cat conftest.err >&5
15076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } >/dev/null && {
15078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15079 test ! -s conftest.err
15080 }; then
15081 ac_header_preproc=yes
15082 else
15083 $as_echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15086 ac_header_preproc=no
15089 rm -f conftest.err conftest.$ac_ext
15090 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15091 $as_echo "$ac_header_preproc" >&6; }
15093 # So? What about this header?
15094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15095 yes:no: )
15096 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15097 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15098 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15099 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15100 ac_header_preproc=yes
15102 no:yes:* )
15103 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15104 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15105 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15106 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15107 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15108 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15109 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15110 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15111 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15112 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15113 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15114 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15117 esac
15118 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15119 $as_echo_n "checking for jerror.h... " >&6; }
15120 if test "${ac_cv_header_jerror_h+set}" = set; then
15121 $as_echo_n "(cached) " >&6
15122 else
15123 ac_cv_header_jerror_h=$ac_header_preproc
15125 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15126 $as_echo "$ac_cv_header_jerror_h" >&6; }
15129 if test $ac_cv_header_jerror_h = yes; then
15130 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15131 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15132 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15133 $as_echo_n "(cached) " >&6
15134 else
15135 ac_check_lib_save_LIBS=$LIBS
15136 LIBS="-ljpeg $LIBS"
15137 cat >conftest.$ac_ext <<_ACEOF
15138 /* confdefs.h. */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15144 /* Override any GCC internal prototype to avoid an error.
15145 Use char because int might match the return type of a GCC
15146 builtin and then its argument prototype would still apply. */
15147 #ifdef __cplusplus
15148 extern "C"
15149 #endif
15150 char jpeg_destroy_compress ();
15152 main ()
15154 return jpeg_destroy_compress ();
15156 return 0;
15158 _ACEOF
15159 rm -f conftest.$ac_objext conftest$ac_exeext
15160 if { (ac_try="$ac_link"
15161 case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15164 esac
15165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15166 $as_echo "$ac_try_echo") >&5
15167 (eval "$ac_link") 2>conftest.er1
15168 ac_status=$?
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
15172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } && {
15174 test -z "$ac_c_werror_flag" ||
15175 test ! -s conftest.err
15176 } && test -s conftest$ac_exeext && {
15177 test "$cross_compiling" = yes ||
15178 $as_test_x conftest$ac_exeext
15179 }; then
15180 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15181 else
15182 $as_echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15185 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15188 rm -rf conftest.dSYM
15189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15190 conftest$ac_exeext conftest.$ac_ext
15191 LIBS=$ac_check_lib_save_LIBS
15193 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15194 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15195 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15196 HAVE_JPEG=yes
15205 if test "${HAVE_JPEG}" = "yes"; then
15206 cat >>confdefs.h <<\_ACEOF
15207 #define HAVE_JPEG 1
15208 _ACEOF
15210 cat >conftest.$ac_ext <<_ACEOF
15211 /* confdefs.h. */
15212 _ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15216 #include <jpeglib.h>
15217 version=JPEG_LIB_VERSION
15219 _ACEOF
15220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15221 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15222 cat >>confdefs.h <<\_ACEOF
15223 #define HAVE_JPEG 1
15224 _ACEOF
15226 else
15227 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15228 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15229 HAVE_JPEG=no
15231 rm -f conftest*
15234 if test "${HAVE_JPEG}" = "yes"; then
15235 LIBJPEG=-ljpeg
15240 ### Use -lpng if available, unless `--with-png=no'.
15241 HAVE_PNG=no
15242 LIBPNG=
15243 if test "${HAVE_X11}" = "yes"; then
15244 if test "${with_png}" != "no"; then
15245 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15246 # in /usr/include/libpng.
15249 for ac_header in png.h libpng/png.h
15251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15253 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15254 $as_echo_n "checking for $ac_header... " >&6; }
15255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15256 $as_echo_n "(cached) " >&6
15258 ac_res=`eval 'as_val=${'$as_ac_Header'}
15259 $as_echo "$as_val"'`
15260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15261 $as_echo "$ac_res" >&6; }
15262 else
15263 # Is the header compilable?
15264 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15265 $as_echo_n "checking $ac_header usability... " >&6; }
15266 cat >conftest.$ac_ext <<_ACEOF
15267 /* confdefs.h. */
15268 _ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h. */
15272 $ac_includes_default
15273 #include <$ac_header>
15274 _ACEOF
15275 rm -f conftest.$ac_objext
15276 if { (ac_try="$ac_compile"
15277 case "(($ac_try" in
15278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15279 *) ac_try_echo=$ac_try;;
15280 esac
15281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15282 $as_echo "$ac_try_echo") >&5
15283 (eval "$ac_compile") 2>conftest.er1
15284 ac_status=$?
15285 grep -v '^ *+' conftest.er1 >conftest.err
15286 rm -f conftest.er1
15287 cat conftest.err >&5
15288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } && {
15290 test -z "$ac_c_werror_flag" ||
15291 test ! -s conftest.err
15292 } && test -s conftest.$ac_objext; then
15293 ac_header_compiler=yes
15294 else
15295 $as_echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15298 ac_header_compiler=no
15301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15302 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15303 $as_echo "$ac_header_compiler" >&6; }
15305 # Is the header present?
15306 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15307 $as_echo_n "checking $ac_header presence... " >&6; }
15308 cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h. */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15314 #include <$ac_header>
15315 _ACEOF
15316 if { (ac_try="$ac_cpp conftest.$ac_ext"
15317 case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15320 esac
15321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15322 $as_echo "$ac_try_echo") >&5
15323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15324 ac_status=$?
15325 grep -v '^ *+' conftest.er1 >conftest.err
15326 rm -f conftest.er1
15327 cat conftest.err >&5
15328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } >/dev/null && {
15330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15331 test ! -s conftest.err
15332 }; then
15333 ac_header_preproc=yes
15334 else
15335 $as_echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15338 ac_header_preproc=no
15341 rm -f conftest.err conftest.$ac_ext
15342 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15343 $as_echo "$ac_header_preproc" >&6; }
15345 # So? What about this header?
15346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15347 yes:no: )
15348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15349 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15352 ac_header_preproc=yes
15354 no:yes:* )
15355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15356 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15358 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15360 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15362 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15364 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15366 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15369 esac
15370 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15371 $as_echo_n "checking for $ac_header... " >&6; }
15372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15373 $as_echo_n "(cached) " >&6
15374 else
15375 eval "$as_ac_Header=\$ac_header_preproc"
15377 ac_res=`eval 'as_val=${'$as_ac_Header'}
15378 $as_echo "$as_val"'`
15379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15380 $as_echo "$ac_res" >&6; }
15383 if test `eval 'as_val=${'$as_ac_Header'}
15384 $as_echo "$as_val"'` = yes; then
15385 cat >>confdefs.h <<_ACEOF
15386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15387 _ACEOF
15391 done
15393 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15394 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15395 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15396 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15397 $as_echo_n "(cached) " >&6
15398 else
15399 ac_check_lib_save_LIBS=$LIBS
15400 LIBS="-lpng -lz -lm $LIBS"
15401 cat >conftest.$ac_ext <<_ACEOF
15402 /* confdefs.h. */
15403 _ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15408 /* Override any GCC internal prototype to avoid an error.
15409 Use char because int might match the return type of a GCC
15410 builtin and then its argument prototype would still apply. */
15411 #ifdef __cplusplus
15412 extern "C"
15413 #endif
15414 char png_get_channels ();
15416 main ()
15418 return png_get_channels ();
15420 return 0;
15422 _ACEOF
15423 rm -f conftest.$ac_objext conftest$ac_exeext
15424 if { (ac_try="$ac_link"
15425 case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15428 esac
15429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15430 $as_echo "$ac_try_echo") >&5
15431 (eval "$ac_link") 2>conftest.er1
15432 ac_status=$?
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
15436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } && {
15438 test -z "$ac_c_werror_flag" ||
15439 test ! -s conftest.err
15440 } && test -s conftest$ac_exeext && {
15441 test "$cross_compiling" = yes ||
15442 $as_test_x conftest$ac_exeext
15443 }; then
15444 ac_cv_lib_png_png_get_channels=yes
15445 else
15446 $as_echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 ac_cv_lib_png_png_get_channels=no
15452 rm -rf conftest.dSYM
15453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15454 conftest$ac_exeext conftest.$ac_ext
15455 LIBS=$ac_check_lib_save_LIBS
15457 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15458 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15459 if test $ac_cv_lib_png_png_get_channels = yes; then
15460 HAVE_PNG=yes
15466 if test "${HAVE_PNG}" = "yes"; then
15468 cat >>confdefs.h <<\_ACEOF
15469 #define HAVE_PNG 1
15470 _ACEOF
15472 LIBPNG="-lpng -lz -lm"
15477 ### Use -ltiff if available, unless `--with-tiff=no'.
15478 HAVE_TIFF=no
15479 LIBTIFF=
15480 if test "${HAVE_X11}" = "yes"; then
15481 if test "${with_tiff}" != "no"; then
15482 if test "${ac_cv_header_tiffio_h+set}" = set; then
15483 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15484 $as_echo_n "checking for tiffio.h... " >&6; }
15485 if test "${ac_cv_header_tiffio_h+set}" = set; then
15486 $as_echo_n "(cached) " >&6
15488 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15489 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15490 else
15491 # Is the header compilable?
15492 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15493 $as_echo_n "checking tiffio.h usability... " >&6; }
15494 cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h. */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 $ac_includes_default
15501 #include <tiffio.h>
15502 _ACEOF
15503 rm -f conftest.$ac_objext
15504 if { (ac_try="$ac_compile"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15508 esac
15509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15510 $as_echo "$ac_try_echo") >&5
15511 (eval "$ac_compile") 2>conftest.er1
15512 ac_status=$?
15513 grep -v '^ *+' conftest.er1 >conftest.err
15514 rm -f conftest.er1
15515 cat conftest.err >&5
15516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } && {
15518 test -z "$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15520 } && test -s conftest.$ac_objext; then
15521 ac_header_compiler=yes
15522 else
15523 $as_echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 ac_header_compiler=no
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15531 $as_echo "$ac_header_compiler" >&6; }
15533 # Is the header present?
15534 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15535 $as_echo_n "checking tiffio.h presence... " >&6; }
15536 cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h. */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 #include <tiffio.h>
15543 _ACEOF
15544 if { (ac_try="$ac_cpp conftest.$ac_ext"
15545 case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15548 esac
15549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15550 $as_echo "$ac_try_echo") >&5
15551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15552 ac_status=$?
15553 grep -v '^ *+' conftest.er1 >conftest.err
15554 rm -f conftest.er1
15555 cat conftest.err >&5
15556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } >/dev/null && {
15558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15559 test ! -s conftest.err
15560 }; then
15561 ac_header_preproc=yes
15562 else
15563 $as_echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15566 ac_header_preproc=no
15569 rm -f conftest.err conftest.$ac_ext
15570 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15571 $as_echo "$ac_header_preproc" >&6; }
15573 # So? What about this header?
15574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15575 yes:no: )
15576 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15577 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15578 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15579 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15580 ac_header_preproc=yes
15582 no:yes:* )
15583 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15584 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15585 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15586 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15587 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15588 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15589 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15590 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15591 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15592 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15593 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15594 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15597 esac
15598 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15599 $as_echo_n "checking for tiffio.h... " >&6; }
15600 if test "${ac_cv_header_tiffio_h+set}" = set; then
15601 $as_echo_n "(cached) " >&6
15602 else
15603 ac_cv_header_tiffio_h=$ac_header_preproc
15605 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15606 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15609 if test $ac_cv_header_tiffio_h = yes; then
15610 tifflibs="-lz -lm"
15611 # At least one tiff package requires the jpeg library.
15612 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15613 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15614 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15615 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15616 $as_echo_n "(cached) " >&6
15617 else
15618 ac_check_lib_save_LIBS=$LIBS
15619 LIBS="-ltiff $tifflibs $LIBS"
15620 cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h. */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15627 /* Override any GCC internal prototype to avoid an error.
15628 Use char because int might match the return type of a GCC
15629 builtin and then its argument prototype would still apply. */
15630 #ifdef __cplusplus
15631 extern "C"
15632 #endif
15633 char TIFFGetVersion ();
15635 main ()
15637 return TIFFGetVersion ();
15639 return 0;
15641 _ACEOF
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (ac_try="$ac_link"
15644 case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15647 esac
15648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15649 $as_echo "$ac_try_echo") >&5
15650 (eval "$ac_link") 2>conftest.er1
15651 ac_status=$?
15652 grep -v '^ *+' conftest.er1 >conftest.err
15653 rm -f conftest.er1
15654 cat conftest.err >&5
15655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } && {
15657 test -z "$ac_c_werror_flag" ||
15658 test ! -s conftest.err
15659 } && test -s conftest$ac_exeext && {
15660 test "$cross_compiling" = yes ||
15661 $as_test_x conftest$ac_exeext
15662 }; then
15663 ac_cv_lib_tiff_TIFFGetVersion=yes
15664 else
15665 $as_echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15668 ac_cv_lib_tiff_TIFFGetVersion=no
15671 rm -rf conftest.dSYM
15672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15673 conftest$ac_exeext conftest.$ac_ext
15674 LIBS=$ac_check_lib_save_LIBS
15676 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15677 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15678 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15679 HAVE_TIFF=yes
15687 if test "${HAVE_TIFF}" = "yes"; then
15689 cat >>confdefs.h <<\_ACEOF
15690 #define HAVE_TIFF 1
15691 _ACEOF
15693 LIBTIFF=-ltiff
15698 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15699 HAVE_GIF=no
15700 LIBGIF=
15701 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15702 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15703 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15704 $as_echo_n "checking for gif_lib.h... " >&6; }
15705 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15706 $as_echo_n "(cached) " >&6
15708 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15709 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15710 else
15711 # Is the header compilable?
15712 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15713 $as_echo_n "checking gif_lib.h usability... " >&6; }
15714 cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h. */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 $ac_includes_default
15721 #include <gif_lib.h>
15722 _ACEOF
15723 rm -f conftest.$ac_objext
15724 if { (ac_try="$ac_compile"
15725 case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15728 esac
15729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15730 $as_echo "$ac_try_echo") >&5
15731 (eval "$ac_compile") 2>conftest.er1
15732 ac_status=$?
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
15736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } && {
15738 test -z "$ac_c_werror_flag" ||
15739 test ! -s conftest.err
15740 } && test -s conftest.$ac_objext; then
15741 ac_header_compiler=yes
15742 else
15743 $as_echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15746 ac_header_compiler=no
15749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15750 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15751 $as_echo "$ac_header_compiler" >&6; }
15753 # Is the header present?
15754 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15755 $as_echo_n "checking gif_lib.h presence... " >&6; }
15756 cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h. */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 #include <gif_lib.h>
15763 _ACEOF
15764 if { (ac_try="$ac_cpp conftest.$ac_ext"
15765 case "(($ac_try" in
15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15768 esac
15769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15770 $as_echo "$ac_try_echo") >&5
15771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15772 ac_status=$?
15773 grep -v '^ *+' conftest.er1 >conftest.err
15774 rm -f conftest.er1
15775 cat conftest.err >&5
15776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } >/dev/null && {
15778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15779 test ! -s conftest.err
15780 }; then
15781 ac_header_preproc=yes
15782 else
15783 $as_echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15786 ac_header_preproc=no
15789 rm -f conftest.err conftest.$ac_ext
15790 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15791 $as_echo "$ac_header_preproc" >&6; }
15793 # So? What about this header?
15794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15795 yes:no: )
15796 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15797 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15798 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15799 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15800 ac_header_preproc=yes
15802 no:yes:* )
15803 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15804 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15805 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15806 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15807 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15808 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15809 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15810 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15811 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15812 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15813 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15814 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15817 esac
15818 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15819 $as_echo_n "checking for gif_lib.h... " >&6; }
15820 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15821 $as_echo_n "(cached) " >&6
15822 else
15823 ac_cv_header_gif_lib_h=$ac_header_preproc
15825 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15826 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15829 if test $ac_cv_header_gif_lib_h = yes; then
15830 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15831 # Earlier versions can crash Emacs.
15832 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15833 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15834 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15835 $as_echo_n "(cached) " >&6
15836 else
15837 ac_check_lib_save_LIBS=$LIBS
15838 LIBS="-lgif $LIBS"
15839 cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h. */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15846 /* Override any GCC internal prototype to avoid an error.
15847 Use char because int might match the return type of a GCC
15848 builtin and then its argument prototype would still apply. */
15849 #ifdef __cplusplus
15850 extern "C"
15851 #endif
15852 char EGifPutExtensionLast ();
15854 main ()
15856 return EGifPutExtensionLast ();
15858 return 0;
15860 _ACEOF
15861 rm -f conftest.$ac_objext conftest$ac_exeext
15862 if { (ac_try="$ac_link"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15866 esac
15867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15868 $as_echo "$ac_try_echo") >&5
15869 (eval "$ac_link") 2>conftest.er1
15870 ac_status=$?
15871 grep -v '^ *+' conftest.er1 >conftest.err
15872 rm -f conftest.er1
15873 cat conftest.err >&5
15874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } && {
15876 test -z "$ac_c_werror_flag" ||
15877 test ! -s conftest.err
15878 } && test -s conftest$ac_exeext && {
15879 test "$cross_compiling" = yes ||
15880 $as_test_x conftest$ac_exeext
15881 }; then
15882 ac_cv_lib_gif_EGifPutExtensionLast=yes
15883 else
15884 $as_echo "$as_me: failed program was:" >&5
15885 sed 's/^/| /' conftest.$ac_ext >&5
15887 ac_cv_lib_gif_EGifPutExtensionLast=no
15890 rm -rf conftest.dSYM
15891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15892 conftest$ac_exeext conftest.$ac_ext
15893 LIBS=$ac_check_lib_save_LIBS
15895 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15896 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15897 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15898 HAVE_GIF=yes
15899 else
15900 HAVE_GIF=maybe
15907 if test "$HAVE_GIF" = yes; then
15908 LIBGIF=-lgif
15909 elif test "$HAVE_GIF" = maybe; then
15910 # If gif_lib.h but no libgif, try libungif.
15911 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15912 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15913 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15914 $as_echo_n "(cached) " >&6
15915 else
15916 ac_check_lib_save_LIBS=$LIBS
15917 LIBS="-lungif $LIBS"
15918 cat >conftest.$ac_ext <<_ACEOF
15919 /* confdefs.h. */
15920 _ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15925 /* Override any GCC internal prototype to avoid an error.
15926 Use char because int might match the return type of a GCC
15927 builtin and then its argument prototype would still apply. */
15928 #ifdef __cplusplus
15929 extern "C"
15930 #endif
15931 char EGifPutExtensionLast ();
15933 main ()
15935 return EGifPutExtensionLast ();
15937 return 0;
15939 _ACEOF
15940 rm -f conftest.$ac_objext conftest$ac_exeext
15941 if { (ac_try="$ac_link"
15942 case "(($ac_try" in
15943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15944 *) ac_try_echo=$ac_try;;
15945 esac
15946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15947 $as_echo "$ac_try_echo") >&5
15948 (eval "$ac_link") 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } && {
15955 test -z "$ac_c_werror_flag" ||
15956 test ! -s conftest.err
15957 } && test -s conftest$ac_exeext && {
15958 test "$cross_compiling" = yes ||
15959 $as_test_x conftest$ac_exeext
15960 }; then
15961 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15962 else
15963 $as_echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15966 ac_cv_lib_ungif_EGifPutExtensionLast=no
15969 rm -rf conftest.dSYM
15970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15971 conftest$ac_exeext conftest.$ac_ext
15972 LIBS=$ac_check_lib_save_LIBS
15974 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15975 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15976 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15977 HAVE_GIF=yes
15978 else
15979 HAVE_GIF=no
15982 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15985 if test "${HAVE_GIF}" = "yes"; then
15987 cat >>confdefs.h <<\_ACEOF
15988 #define HAVE_GIF 1
15989 _ACEOF
15995 if test "${HAVE_X11}" = "yes"; then
15996 MISSING=""
15997 WITH_NO=""
15998 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15999 MISSING="libXpm" && WITH_NO="--with-xpm=no"
16000 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
16001 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
16002 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
16003 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
16004 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
16005 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
16006 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
16007 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
16009 if test "X${MISSING}" != X; then
16010 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
16011 $MISSING
16012 Maybe some development libraries/packages are missing?
16013 If you don't want to link with them give
16014 $WITH_NO
16015 as options to configure" >&5
16016 $as_echo "$as_me: error: The following required libraries were not found:
16017 $MISSING
16018 Maybe some development libraries/packages are missing?
16019 If you don't want to link with them give
16020 $WITH_NO
16021 as options to configure" >&2;}
16022 { (exit 1); exit 1; }; }
16026 ### Use -lgpm if available, unless `--with-gpm=no'.
16027 HAVE_GPM=no
16028 LIBGPM=
16029 MOUSE_SUPPORT=
16030 if test "${with_gpm}" != "no"; then
16031 if test "${ac_cv_header_gpm_h+set}" = set; then
16032 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16033 $as_echo_n "checking for gpm.h... " >&6; }
16034 if test "${ac_cv_header_gpm_h+set}" = set; then
16035 $as_echo_n "(cached) " >&6
16037 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16038 $as_echo "$ac_cv_header_gpm_h" >&6; }
16039 else
16040 # Is the header compilable?
16041 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16042 $as_echo_n "checking gpm.h usability... " >&6; }
16043 cat >conftest.$ac_ext <<_ACEOF
16044 /* confdefs.h. */
16045 _ACEOF
16046 cat confdefs.h >>conftest.$ac_ext
16047 cat >>conftest.$ac_ext <<_ACEOF
16048 /* end confdefs.h. */
16049 $ac_includes_default
16050 #include <gpm.h>
16051 _ACEOF
16052 rm -f conftest.$ac_objext
16053 if { (ac_try="$ac_compile"
16054 case "(($ac_try" in
16055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16056 *) ac_try_echo=$ac_try;;
16057 esac
16058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16059 $as_echo "$ac_try_echo") >&5
16060 (eval "$ac_compile") 2>conftest.er1
16061 ac_status=$?
16062 grep -v '^ *+' conftest.er1 >conftest.err
16063 rm -f conftest.er1
16064 cat conftest.err >&5
16065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } && {
16067 test -z "$ac_c_werror_flag" ||
16068 test ! -s conftest.err
16069 } && test -s conftest.$ac_objext; then
16070 ac_header_compiler=yes
16071 else
16072 $as_echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16075 ac_header_compiler=no
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16080 $as_echo "$ac_header_compiler" >&6; }
16082 # Is the header present?
16083 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16084 $as_echo_n "checking gpm.h presence... " >&6; }
16085 cat >conftest.$ac_ext <<_ACEOF
16086 /* confdefs.h. */
16087 _ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16091 #include <gpm.h>
16092 _ACEOF
16093 if { (ac_try="$ac_cpp conftest.$ac_ext"
16094 case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16097 esac
16098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16099 $as_echo "$ac_try_echo") >&5
16100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16101 ac_status=$?
16102 grep -v '^ *+' conftest.er1 >conftest.err
16103 rm -f conftest.er1
16104 cat conftest.err >&5
16105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } >/dev/null && {
16107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16108 test ! -s conftest.err
16109 }; then
16110 ac_header_preproc=yes
16111 else
16112 $as_echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 ac_header_preproc=no
16118 rm -f conftest.err conftest.$ac_ext
16119 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16120 $as_echo "$ac_header_preproc" >&6; }
16122 # So? What about this header?
16123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16124 yes:no: )
16125 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16126 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16127 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16128 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16129 ac_header_preproc=yes
16131 no:yes:* )
16132 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16133 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16134 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16135 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16136 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16137 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16138 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16139 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16140 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16141 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16142 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16143 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16146 esac
16147 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16148 $as_echo_n "checking for gpm.h... " >&6; }
16149 if test "${ac_cv_header_gpm_h+set}" = set; then
16150 $as_echo_n "(cached) " >&6
16151 else
16152 ac_cv_header_gpm_h=$ac_header_preproc
16154 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16155 $as_echo "$ac_cv_header_gpm_h" >&6; }
16158 if test $ac_cv_header_gpm_h = yes; then
16159 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16160 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16161 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16162 $as_echo_n "(cached) " >&6
16163 else
16164 ac_check_lib_save_LIBS=$LIBS
16165 LIBS="-lgpm $LIBS"
16166 cat >conftest.$ac_ext <<_ACEOF
16167 /* confdefs.h. */
16168 _ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16173 /* Override any GCC internal prototype to avoid an error.
16174 Use char because int might match the return type of a GCC
16175 builtin and then its argument prototype would still apply. */
16176 #ifdef __cplusplus
16177 extern "C"
16178 #endif
16179 char Gpm_Open ();
16181 main ()
16183 return Gpm_Open ();
16185 return 0;
16187 _ACEOF
16188 rm -f conftest.$ac_objext conftest$ac_exeext
16189 if { (ac_try="$ac_link"
16190 case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16193 esac
16194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16195 $as_echo "$ac_try_echo") >&5
16196 (eval "$ac_link") 2>conftest.er1
16197 ac_status=$?
16198 grep -v '^ *+' conftest.er1 >conftest.err
16199 rm -f conftest.er1
16200 cat conftest.err >&5
16201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } && {
16203 test -z "$ac_c_werror_flag" ||
16204 test ! -s conftest.err
16205 } && test -s conftest$ac_exeext && {
16206 test "$cross_compiling" = yes ||
16207 $as_test_x conftest$ac_exeext
16208 }; then
16209 ac_cv_lib_gpm_Gpm_Open=yes
16210 else
16211 $as_echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 ac_cv_lib_gpm_Gpm_Open=no
16217 rm -rf conftest.dSYM
16218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16219 conftest$ac_exeext conftest.$ac_ext
16220 LIBS=$ac_check_lib_save_LIBS
16222 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16223 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16224 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16225 HAVE_GPM=yes
16232 if test "${HAVE_GPM}" = "yes"; then
16234 cat >>confdefs.h <<\_ACEOF
16235 #define HAVE_GPM 1
16236 _ACEOF
16238 LIBGPM=-lgpm
16239 ## May be reset below.
16240 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
16245 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16246 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16247 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16248 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16249 $as_echo_n "(cached) " >&6
16251 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16252 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16253 else
16254 # Is the header compilable?
16255 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16256 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16257 cat >conftest.$ac_ext <<_ACEOF
16258 /* confdefs.h. */
16259 _ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16263 $ac_includes_default
16264 #include <malloc/malloc.h>
16265 _ACEOF
16266 rm -f conftest.$ac_objext
16267 if { (ac_try="$ac_compile"
16268 case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16271 esac
16272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16273 $as_echo "$ac_try_echo") >&5
16274 (eval "$ac_compile") 2>conftest.er1
16275 ac_status=$?
16276 grep -v '^ *+' conftest.er1 >conftest.err
16277 rm -f conftest.er1
16278 cat conftest.err >&5
16279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } && {
16281 test -z "$ac_c_werror_flag" ||
16282 test ! -s conftest.err
16283 } && test -s conftest.$ac_objext; then
16284 ac_header_compiler=yes
16285 else
16286 $as_echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16289 ac_header_compiler=no
16292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16293 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16294 $as_echo "$ac_header_compiler" >&6; }
16296 # Is the header present?
16297 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16298 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16299 cat >conftest.$ac_ext <<_ACEOF
16300 /* confdefs.h. */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 #include <malloc/malloc.h>
16306 _ACEOF
16307 if { (ac_try="$ac_cpp conftest.$ac_ext"
16308 case "(($ac_try" in
16309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16311 esac
16312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16313 $as_echo "$ac_try_echo") >&5
16314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16315 ac_status=$?
16316 grep -v '^ *+' conftest.er1 >conftest.err
16317 rm -f conftest.er1
16318 cat conftest.err >&5
16319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } >/dev/null && {
16321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16322 test ! -s conftest.err
16323 }; then
16324 ac_header_preproc=yes
16325 else
16326 $as_echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16329 ac_header_preproc=no
16332 rm -f conftest.err conftest.$ac_ext
16333 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16334 $as_echo "$ac_header_preproc" >&6; }
16336 # So? What about this header?
16337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16338 yes:no: )
16339 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16340 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16341 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16342 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16343 ac_header_preproc=yes
16345 no:yes:* )
16346 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16347 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16348 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16349 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16350 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16351 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16352 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16353 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16354 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16355 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16356 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16357 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16360 esac
16361 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16362 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16363 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16364 $as_echo_n "(cached) " >&6
16365 else
16366 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16368 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16369 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16372 if test $ac_cv_header_malloc_malloc_h = yes; then
16374 cat >>confdefs.h <<\_ACEOF
16375 #define HAVE_MALLOC_MALLOC_H 1
16376 _ACEOF
16382 C_SWITCH_X_SYSTEM=
16383 ### Use NeXTstep API to implement GUI.
16384 if test "${HAVE_NS}" = "yes"; then
16386 cat >>confdefs.h <<\_ACEOF
16387 #define HAVE_NS 1
16388 _ACEOF
16390 if test "${NS_IMPL_COCOA}" = "yes"; then
16392 cat >>confdefs.h <<\_ACEOF
16393 #define NS_IMPL_COCOA 1
16394 _ACEOF
16396 GNU_OBJC_CFLAGS=
16398 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16400 cat >>confdefs.h <<\_ACEOF
16401 #define NS_IMPL_GNUSTEP 1
16402 _ACEOF
16404 # See also .m.o rule in Makefile.in */
16405 # FIXME: are all these flags really needed? Document here why. */
16406 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16407 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16409 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16411 cat >>confdefs.h <<\_ACEOF
16412 #define NS_HAVE_NSINTEGER 1
16413 _ACEOF
16416 # We also have mouse menus.
16417 HAVE_MENUS=yes
16418 OTHER_FILES=ns-app
16422 ### Use session management (-lSM -lICE) if available
16423 HAVE_X_SM=no
16424 LIBXSM=
16425 if test "${HAVE_X11}" = "yes"; then
16426 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16427 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16428 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16429 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16430 $as_echo_n "(cached) " >&6
16432 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16433 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16434 else
16435 # Is the header compilable?
16436 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16437 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16438 cat >conftest.$ac_ext <<_ACEOF
16439 /* confdefs.h. */
16440 _ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h. */
16444 $ac_includes_default
16445 #include <X11/SM/SMlib.h>
16446 _ACEOF
16447 rm -f conftest.$ac_objext
16448 if { (ac_try="$ac_compile"
16449 case "(($ac_try" in
16450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451 *) ac_try_echo=$ac_try;;
16452 esac
16453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16454 $as_echo "$ac_try_echo") >&5
16455 (eval "$ac_compile") 2>conftest.er1
16456 ac_status=$?
16457 grep -v '^ *+' conftest.er1 >conftest.err
16458 rm -f conftest.er1
16459 cat conftest.err >&5
16460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } && {
16462 test -z "$ac_c_werror_flag" ||
16463 test ! -s conftest.err
16464 } && test -s conftest.$ac_objext; then
16465 ac_header_compiler=yes
16466 else
16467 $as_echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16470 ac_header_compiler=no
16473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16474 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16475 $as_echo "$ac_header_compiler" >&6; }
16477 # Is the header present?
16478 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16479 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16480 cat >conftest.$ac_ext <<_ACEOF
16481 /* confdefs.h. */
16482 _ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h. */
16486 #include <X11/SM/SMlib.h>
16487 _ACEOF
16488 if { (ac_try="$ac_cpp conftest.$ac_ext"
16489 case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16492 esac
16493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16494 $as_echo "$ac_try_echo") >&5
16495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16496 ac_status=$?
16497 grep -v '^ *+' conftest.er1 >conftest.err
16498 rm -f conftest.er1
16499 cat conftest.err >&5
16500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } >/dev/null && {
16502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16503 test ! -s conftest.err
16504 }; then
16505 ac_header_preproc=yes
16506 else
16507 $as_echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16510 ac_header_preproc=no
16513 rm -f conftest.err conftest.$ac_ext
16514 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16515 $as_echo "$ac_header_preproc" >&6; }
16517 # So? What about this header?
16518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16519 yes:no: )
16520 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16521 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16522 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16523 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16524 ac_header_preproc=yes
16526 no:yes:* )
16527 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16528 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16529 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16530 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16531 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16532 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16533 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16534 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16535 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16536 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16537 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16538 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16541 esac
16542 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16543 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16544 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16545 $as_echo_n "(cached) " >&6
16546 else
16547 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16549 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16550 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16553 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16554 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16555 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16556 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16557 $as_echo_n "(cached) " >&6
16558 else
16559 ac_check_lib_save_LIBS=$LIBS
16560 LIBS="-lSM -lICE $LIBS"
16561 cat >conftest.$ac_ext <<_ACEOF
16562 /* confdefs.h. */
16563 _ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16568 /* Override any GCC internal prototype to avoid an error.
16569 Use char because int might match the return type of a GCC
16570 builtin and then its argument prototype would still apply. */
16571 #ifdef __cplusplus
16572 extern "C"
16573 #endif
16574 char SmcOpenConnection ();
16576 main ()
16578 return SmcOpenConnection ();
16580 return 0;
16582 _ACEOF
16583 rm -f conftest.$ac_objext conftest$ac_exeext
16584 if { (ac_try="$ac_link"
16585 case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16588 esac
16589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16590 $as_echo "$ac_try_echo") >&5
16591 (eval "$ac_link") 2>conftest.er1
16592 ac_status=$?
16593 grep -v '^ *+' conftest.er1 >conftest.err
16594 rm -f conftest.er1
16595 cat conftest.err >&5
16596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); } && {
16598 test -z "$ac_c_werror_flag" ||
16599 test ! -s conftest.err
16600 } && test -s conftest$ac_exeext && {
16601 test "$cross_compiling" = yes ||
16602 $as_test_x conftest$ac_exeext
16603 }; then
16604 ac_cv_lib_SM_SmcOpenConnection=yes
16605 else
16606 $as_echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16609 ac_cv_lib_SM_SmcOpenConnection=no
16612 rm -rf conftest.dSYM
16613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16614 conftest$ac_exeext conftest.$ac_ext
16615 LIBS=$ac_check_lib_save_LIBS
16617 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16618 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16619 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16620 HAVE_X_SM=yes
16627 if test "${HAVE_X_SM}" = "yes"; then
16629 cat >>confdefs.h <<\_ACEOF
16630 #define HAVE_X_SM 1
16631 _ACEOF
16633 LIBXSM="-lSM -lICE"
16634 case "$LIBS" in
16635 *-lSM*) ;;
16636 *) LIBS="$LIBXSM $LIBS" ;;
16637 esac
16642 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16643 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16644 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16645 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16646 $as_echo_n "(cached) " >&6
16647 else
16648 cat >conftest.$ac_ext <<_ACEOF
16649 /* confdefs.h. */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16654 #include <netdb.h>
16656 main ()
16658 return h_errno;
16660 return 0;
16662 _ACEOF
16663 rm -f conftest.$ac_objext conftest$ac_exeext
16664 if { (ac_try="$ac_link"
16665 case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16668 esac
16669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16670 $as_echo "$ac_try_echo") >&5
16671 (eval "$ac_link") 2>conftest.er1
16672 ac_status=$?
16673 grep -v '^ *+' conftest.er1 >conftest.err
16674 rm -f conftest.er1
16675 cat conftest.err >&5
16676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } && {
16678 test -z "$ac_c_werror_flag" ||
16679 test ! -s conftest.err
16680 } && test -s conftest$ac_exeext && {
16681 test "$cross_compiling" = yes ||
16682 $as_test_x conftest$ac_exeext
16683 }; then
16684 emacs_cv_netdb_declares_h_errno=yes
16685 else
16686 $as_echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 emacs_cv_netdb_declares_h_errno=no
16692 rm -rf conftest.dSYM
16693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16694 conftest$ac_exeext conftest.$ac_ext
16696 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16697 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16698 if test $emacs_cv_netdb_declares_h_errno = yes; then
16700 cat >>confdefs.h <<\_ACEOF
16701 #define HAVE_H_ERRNO 1
16702 _ACEOF
16706 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16707 # for constant arguments. Useless!
16708 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16709 $as_echo_n "checking for working alloca.h... " >&6; }
16710 if test "${ac_cv_working_alloca_h+set}" = set; then
16711 $as_echo_n "(cached) " >&6
16712 else
16713 cat >conftest.$ac_ext <<_ACEOF
16714 /* confdefs.h. */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16719 #include <alloca.h>
16721 main ()
16723 char *p = (char *) alloca (2 * sizeof (int));
16724 if (p) return 0;
16726 return 0;
16728 _ACEOF
16729 rm -f conftest.$ac_objext conftest$ac_exeext
16730 if { (ac_try="$ac_link"
16731 case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16734 esac
16735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16736 $as_echo "$ac_try_echo") >&5
16737 (eval "$ac_link") 2>conftest.er1
16738 ac_status=$?
16739 grep -v '^ *+' conftest.er1 >conftest.err
16740 rm -f conftest.er1
16741 cat conftest.err >&5
16742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } && {
16744 test -z "$ac_c_werror_flag" ||
16745 test ! -s conftest.err
16746 } && test -s conftest$ac_exeext && {
16747 test "$cross_compiling" = yes ||
16748 $as_test_x conftest$ac_exeext
16749 }; then
16750 ac_cv_working_alloca_h=yes
16751 else
16752 $as_echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16755 ac_cv_working_alloca_h=no
16758 rm -rf conftest.dSYM
16759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16760 conftest$ac_exeext conftest.$ac_ext
16762 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16763 $as_echo "$ac_cv_working_alloca_h" >&6; }
16764 if test $ac_cv_working_alloca_h = yes; then
16766 cat >>confdefs.h <<\_ACEOF
16767 #define HAVE_ALLOCA_H 1
16768 _ACEOF
16772 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16773 $as_echo_n "checking for alloca... " >&6; }
16774 if test "${ac_cv_func_alloca_works+set}" = set; then
16775 $as_echo_n "(cached) " >&6
16776 else
16777 cat >conftest.$ac_ext <<_ACEOF
16778 /* confdefs.h. */
16779 _ACEOF
16780 cat confdefs.h >>conftest.$ac_ext
16781 cat >>conftest.$ac_ext <<_ACEOF
16782 /* end confdefs.h. */
16783 #ifdef __GNUC__
16784 # define alloca __builtin_alloca
16785 #else
16786 # ifdef _MSC_VER
16787 # include <malloc.h>
16788 # define alloca _alloca
16789 # else
16790 # ifdef HAVE_ALLOCA_H
16791 # include <alloca.h>
16792 # else
16793 # ifdef _AIX
16794 #pragma alloca
16795 # else
16796 # ifndef alloca /* predefined by HP cc +Olibcalls */
16797 char *alloca ();
16798 # endif
16799 # endif
16800 # endif
16801 # endif
16802 #endif
16805 main ()
16807 char *p = (char *) alloca (1);
16808 if (p) return 0;
16810 return 0;
16812 _ACEOF
16813 rm -f conftest.$ac_objext conftest$ac_exeext
16814 if { (ac_try="$ac_link"
16815 case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16818 esac
16819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16820 $as_echo "$ac_try_echo") >&5
16821 (eval "$ac_link") 2>conftest.er1
16822 ac_status=$?
16823 grep -v '^ *+' conftest.er1 >conftest.err
16824 rm -f conftest.er1
16825 cat conftest.err >&5
16826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } && {
16828 test -z "$ac_c_werror_flag" ||
16829 test ! -s conftest.err
16830 } && test -s conftest$ac_exeext && {
16831 test "$cross_compiling" = yes ||
16832 $as_test_x conftest$ac_exeext
16833 }; then
16834 ac_cv_func_alloca_works=yes
16835 else
16836 $as_echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ac_cv_func_alloca_works=no
16842 rm -rf conftest.dSYM
16843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16844 conftest$ac_exeext conftest.$ac_ext
16846 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16847 $as_echo "$ac_cv_func_alloca_works" >&6; }
16849 if test $ac_cv_func_alloca_works = yes; then
16851 cat >>confdefs.h <<\_ACEOF
16852 #define HAVE_ALLOCA 1
16853 _ACEOF
16855 else
16856 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16857 # that cause trouble. Some versions do not even contain alloca or
16858 # contain a buggy version. If you still want to use their alloca,
16859 # use ar to extract alloca.o from them instead of compiling alloca.c.
16861 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16863 cat >>confdefs.h <<\_ACEOF
16864 #define C_ALLOCA 1
16865 _ACEOF
16868 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16869 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16870 if test "${ac_cv_os_cray+set}" = set; then
16871 $as_echo_n "(cached) " >&6
16872 else
16873 cat >conftest.$ac_ext <<_ACEOF
16874 /* confdefs.h. */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 #if defined CRAY && ! defined CRAY2
16880 webecray
16881 #else
16882 wenotbecray
16883 #endif
16885 _ACEOF
16886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16887 $EGREP "webecray" >/dev/null 2>&1; then
16888 ac_cv_os_cray=yes
16889 else
16890 ac_cv_os_cray=no
16892 rm -f conftest*
16895 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16896 $as_echo "$ac_cv_os_cray" >&6; }
16897 if test $ac_cv_os_cray = yes; then
16898 for ac_func in _getb67 GETB67 getb67; do
16899 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16900 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16901 $as_echo_n "checking for $ac_func... " >&6; }
16902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16903 $as_echo_n "(cached) " >&6
16904 else
16905 cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h. */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16913 #define $ac_func innocuous_$ac_func
16915 /* System header to define __stub macros and hopefully few prototypes,
16916 which can conflict with char $ac_func (); below.
16917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16918 <limits.h> exists even on freestanding compilers. */
16920 #ifdef __STDC__
16921 # include <limits.h>
16922 #else
16923 # include <assert.h>
16924 #endif
16926 #undef $ac_func
16928 /* Override any GCC internal prototype to avoid an error.
16929 Use char because int might match the return type of a GCC
16930 builtin and then its argument prototype would still apply. */
16931 #ifdef __cplusplus
16932 extern "C"
16933 #endif
16934 char $ac_func ();
16935 /* The GNU C library defines this for functions which it implements
16936 to always fail with ENOSYS. Some functions are actually named
16937 something starting with __ and the normal name is an alias. */
16938 #if defined __stub_$ac_func || defined __stub___$ac_func
16939 choke me
16940 #endif
16943 main ()
16945 return $ac_func ();
16947 return 0;
16949 _ACEOF
16950 rm -f conftest.$ac_objext conftest$ac_exeext
16951 if { (ac_try="$ac_link"
16952 case "(($ac_try" in
16953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954 *) ac_try_echo=$ac_try;;
16955 esac
16956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16957 $as_echo "$ac_try_echo") >&5
16958 (eval "$ac_link") 2>conftest.er1
16959 ac_status=$?
16960 grep -v '^ *+' conftest.er1 >conftest.err
16961 rm -f conftest.er1
16962 cat conftest.err >&5
16963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } && {
16965 test -z "$ac_c_werror_flag" ||
16966 test ! -s conftest.err
16967 } && test -s conftest$ac_exeext && {
16968 test "$cross_compiling" = yes ||
16969 $as_test_x conftest$ac_exeext
16970 }; then
16971 eval "$as_ac_var=yes"
16972 else
16973 $as_echo "$as_me: failed program was:" >&5
16974 sed 's/^/| /' conftest.$ac_ext >&5
16976 eval "$as_ac_var=no"
16979 rm -rf conftest.dSYM
16980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16981 conftest$ac_exeext conftest.$ac_ext
16983 ac_res=`eval 'as_val=${'$as_ac_var'}
16984 $as_echo "$as_val"'`
16985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16986 $as_echo "$ac_res" >&6; }
16987 if test `eval 'as_val=${'$as_ac_var'}
16988 $as_echo "$as_val"'` = yes; then
16990 cat >>confdefs.h <<_ACEOF
16991 #define CRAY_STACKSEG_END $ac_func
16992 _ACEOF
16994 break
16997 done
17000 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17001 $as_echo_n "checking stack direction for C alloca... " >&6; }
17002 if test "${ac_cv_c_stack_direction+set}" = set; then
17003 $as_echo_n "(cached) " >&6
17004 else
17005 if test "$cross_compiling" = yes; then
17006 ac_cv_c_stack_direction=0
17007 else
17008 cat >conftest.$ac_ext <<_ACEOF
17009 /* confdefs.h. */
17010 _ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014 $ac_includes_default
17016 find_stack_direction ()
17018 static char *addr = 0;
17019 auto char dummy;
17020 if (addr == 0)
17022 addr = &dummy;
17023 return find_stack_direction ();
17025 else
17026 return (&dummy > addr) ? 1 : -1;
17030 main ()
17032 return find_stack_direction () < 0;
17034 _ACEOF
17035 rm -f conftest$ac_exeext
17036 if { (ac_try="$ac_link"
17037 case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17040 esac
17041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17042 $as_echo "$ac_try_echo") >&5
17043 (eval "$ac_link") 2>&5
17044 ac_status=$?
17045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17047 { (case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17050 esac
17051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17052 $as_echo "$ac_try_echo") >&5
17053 (eval "$ac_try") 2>&5
17054 ac_status=$?
17055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 ac_cv_c_stack_direction=1
17058 else
17059 $as_echo "$as_me: program exited with status $ac_status" >&5
17060 $as_echo "$as_me: failed program was:" >&5
17061 sed 's/^/| /' conftest.$ac_ext >&5
17063 ( exit $ac_status )
17064 ac_cv_c_stack_direction=-1
17066 rm -rf conftest.dSYM
17067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17072 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17073 $as_echo "$ac_cv_c_stack_direction" >&6; }
17075 cat >>confdefs.h <<_ACEOF
17076 #define STACK_DIRECTION $ac_cv_c_stack_direction
17077 _ACEOF
17083 if test x"$ac_cv_func_alloca_works" != xyes; then
17084 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
17085 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
17086 { (exit 1); exit 1; }; }
17089 # fmod, logb, and frexp are found in -lm on most systems.
17090 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17092 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
17093 $as_echo_n "checking for sqrt in -lm... " >&6; }
17094 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17095 $as_echo_n "(cached) " >&6
17096 else
17097 ac_check_lib_save_LIBS=$LIBS
17098 LIBS="-lm $LIBS"
17099 cat >conftest.$ac_ext <<_ACEOF
17100 /* confdefs.h. */
17101 _ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17106 /* Override any GCC internal prototype to avoid an error.
17107 Use char because int might match the return type of a GCC
17108 builtin and then its argument prototype would still apply. */
17109 #ifdef __cplusplus
17110 extern "C"
17111 #endif
17112 char sqrt ();
17114 main ()
17116 return sqrt ();
17118 return 0;
17120 _ACEOF
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (ac_try="$ac_link"
17123 case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17126 esac
17127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17128 $as_echo "$ac_try_echo") >&5
17129 (eval "$ac_link") 2>conftest.er1
17130 ac_status=$?
17131 grep -v '^ *+' conftest.er1 >conftest.err
17132 rm -f conftest.er1
17133 cat conftest.err >&5
17134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } && {
17136 test -z "$ac_c_werror_flag" ||
17137 test ! -s conftest.err
17138 } && test -s conftest$ac_exeext && {
17139 test "$cross_compiling" = yes ||
17140 $as_test_x conftest$ac_exeext
17141 }; then
17142 ac_cv_lib_m_sqrt=yes
17143 else
17144 $as_echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17147 ac_cv_lib_m_sqrt=no
17150 rm -rf conftest.dSYM
17151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17152 conftest$ac_exeext conftest.$ac_ext
17153 LIBS=$ac_check_lib_save_LIBS
17155 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
17156 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17157 if test $ac_cv_lib_m_sqrt = yes; then
17158 cat >>confdefs.h <<_ACEOF
17159 #define HAVE_LIBM 1
17160 _ACEOF
17162 LIBS="-lm $LIBS"
17167 # Check for mail-locking functions in a "mail" library. Probably this should
17168 # have the same check as for liblockfile below.
17169 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
17170 $as_echo_n "checking for maillock in -lmail... " >&6; }
17171 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17172 $as_echo_n "(cached) " >&6
17173 else
17174 ac_check_lib_save_LIBS=$LIBS
17175 LIBS="-lmail $LIBS"
17176 cat >conftest.$ac_ext <<_ACEOF
17177 /* confdefs.h. */
17178 _ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h. */
17183 /* Override any GCC internal prototype to avoid an error.
17184 Use char because int might match the return type of a GCC
17185 builtin and then its argument prototype would still apply. */
17186 #ifdef __cplusplus
17187 extern "C"
17188 #endif
17189 char maillock ();
17191 main ()
17193 return maillock ();
17195 return 0;
17197 _ACEOF
17198 rm -f conftest.$ac_objext conftest$ac_exeext
17199 if { (ac_try="$ac_link"
17200 case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17203 esac
17204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17205 $as_echo "$ac_try_echo") >&5
17206 (eval "$ac_link") 2>conftest.er1
17207 ac_status=$?
17208 grep -v '^ *+' conftest.er1 >conftest.err
17209 rm -f conftest.er1
17210 cat conftest.err >&5
17211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } && {
17213 test -z "$ac_c_werror_flag" ||
17214 test ! -s conftest.err
17215 } && test -s conftest$ac_exeext && {
17216 test "$cross_compiling" = yes ||
17217 $as_test_x conftest$ac_exeext
17218 }; then
17219 ac_cv_lib_mail_maillock=yes
17220 else
17221 $as_echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17224 ac_cv_lib_mail_maillock=no
17227 rm -rf conftest.dSYM
17228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17229 conftest$ac_exeext conftest.$ac_ext
17230 LIBS=$ac_check_lib_save_LIBS
17232 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17233 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17234 if test $ac_cv_lib_mail_maillock = yes; then
17235 have_mail=yes
17236 else
17237 have_mail=no
17240 if test $have_mail = yes; then
17241 LIBS_MAIL=-lmail
17242 LIBS="$LIBS_MAIL $LIBS"
17244 cat >>confdefs.h <<\_ACEOF
17245 #define HAVE_LIBMAIL 1
17246 _ACEOF
17248 else
17249 LIBS_MAIL=
17251 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17252 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17253 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17254 $as_echo_n "(cached) " >&6
17255 else
17256 ac_check_lib_save_LIBS=$LIBS
17257 LIBS="-llockfile $LIBS"
17258 cat >conftest.$ac_ext <<_ACEOF
17259 /* confdefs.h. */
17260 _ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h. */
17265 /* Override any GCC internal prototype to avoid an error.
17266 Use char because int might match the return type of a GCC
17267 builtin and then its argument prototype would still apply. */
17268 #ifdef __cplusplus
17269 extern "C"
17270 #endif
17271 char maillock ();
17273 main ()
17275 return maillock ();
17277 return 0;
17279 _ACEOF
17280 rm -f conftest.$ac_objext conftest$ac_exeext
17281 if { (ac_try="$ac_link"
17282 case "(($ac_try" in
17283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284 *) ac_try_echo=$ac_try;;
17285 esac
17286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17287 $as_echo "$ac_try_echo") >&5
17288 (eval "$ac_link") 2>conftest.er1
17289 ac_status=$?
17290 grep -v '^ *+' conftest.er1 >conftest.err
17291 rm -f conftest.er1
17292 cat conftest.err >&5
17293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); } && {
17295 test -z "$ac_c_werror_flag" ||
17296 test ! -s conftest.err
17297 } && test -s conftest$ac_exeext && {
17298 test "$cross_compiling" = yes ||
17299 $as_test_x conftest$ac_exeext
17300 }; then
17301 ac_cv_lib_lockfile_maillock=yes
17302 else
17303 $as_echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 ac_cv_lib_lockfile_maillock=no
17309 rm -rf conftest.dSYM
17310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17311 conftest$ac_exeext conftest.$ac_ext
17312 LIBS=$ac_check_lib_save_LIBS
17314 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17315 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17316 if test $ac_cv_lib_lockfile_maillock = yes; then
17317 have_lockfile=yes
17318 else
17319 have_lockfile=no
17322 if test $have_lockfile = yes; then
17323 LIBS_MAIL=-llockfile
17324 LIBS="$LIBS_MAIL $LIBS"
17326 cat >>confdefs.h <<\_ACEOF
17327 #define HAVE_LIBLOCKFILE 1
17328 _ACEOF
17330 else
17331 # If we have the shared liblockfile, assume we must use it for mail
17332 # locking (e.g. Debian). If we couldn't link against liblockfile
17333 # (no liblockfile.a installed), ensure that we don't need to.
17334 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17335 set dummy liblockfile.so; ac_word=$2
17336 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17337 $as_echo_n "checking for $ac_word... " >&6; }
17338 if test "${ac_cv_prog_liblockfile+set}" = set; then
17339 $as_echo_n "(cached) " >&6
17340 else
17341 if test -n "$liblockfile"; then
17342 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17343 else
17344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17345 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17346 for as_dir in $as_dummy
17348 IFS=$as_save_IFS
17349 test -z "$as_dir" && as_dir=.
17350 for ac_exec_ext in '' $ac_executable_extensions; do
17351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17352 ac_cv_prog_liblockfile="yes"
17353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17354 break 2
17356 done
17357 done
17358 IFS=$as_save_IFS
17360 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17363 liblockfile=$ac_cv_prog_liblockfile
17364 if test -n "$liblockfile"; then
17365 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17366 $as_echo "$liblockfile" >&6; }
17367 else
17368 { $as_echo "$as_me:$LINENO: result: no" >&5
17369 $as_echo "no" >&6; }
17373 if test $ac_cv_prog_liblockfile = yes; then
17374 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17375 This probably means that movemail could lose mail.
17376 There may be a \`development' package to install containing liblockfile." >&5
17377 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17378 This probably means that movemail could lose mail.
17379 There may be a \`development' package to install containing liblockfile." >&2;}
17380 { (exit 1); exit 1; }; }
17384 for ac_func in touchlock
17386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17387 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17388 $as_echo_n "checking for $ac_func... " >&6; }
17389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17390 $as_echo_n "(cached) " >&6
17391 else
17392 cat >conftest.$ac_ext <<_ACEOF
17393 /* confdefs.h. */
17394 _ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17400 #define $ac_func innocuous_$ac_func
17402 /* System header to define __stub macros and hopefully few prototypes,
17403 which can conflict with char $ac_func (); below.
17404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17405 <limits.h> exists even on freestanding compilers. */
17407 #ifdef __STDC__
17408 # include <limits.h>
17409 #else
17410 # include <assert.h>
17411 #endif
17413 #undef $ac_func
17415 /* Override any GCC internal prototype to avoid an error.
17416 Use char because int might match the return type of a GCC
17417 builtin and then its argument prototype would still apply. */
17418 #ifdef __cplusplus
17419 extern "C"
17420 #endif
17421 char $ac_func ();
17422 /* The GNU C library defines this for functions which it implements
17423 to always fail with ENOSYS. Some functions are actually named
17424 something starting with __ and the normal name is an alias. */
17425 #if defined __stub_$ac_func || defined __stub___$ac_func
17426 choke me
17427 #endif
17430 main ()
17432 return $ac_func ();
17434 return 0;
17436 _ACEOF
17437 rm -f conftest.$ac_objext conftest$ac_exeext
17438 if { (ac_try="$ac_link"
17439 case "(($ac_try" in
17440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441 *) ac_try_echo=$ac_try;;
17442 esac
17443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17444 $as_echo "$ac_try_echo") >&5
17445 (eval "$ac_link") 2>conftest.er1
17446 ac_status=$?
17447 grep -v '^ *+' conftest.er1 >conftest.err
17448 rm -f conftest.er1
17449 cat conftest.err >&5
17450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } && {
17452 test -z "$ac_c_werror_flag" ||
17453 test ! -s conftest.err
17454 } && test -s conftest$ac_exeext && {
17455 test "$cross_compiling" = yes ||
17456 $as_test_x conftest$ac_exeext
17457 }; then
17458 eval "$as_ac_var=yes"
17459 else
17460 $as_echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17463 eval "$as_ac_var=no"
17466 rm -rf conftest.dSYM
17467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17468 conftest$ac_exeext conftest.$ac_ext
17470 ac_res=`eval 'as_val=${'$as_ac_var'}
17471 $as_echo "$as_val"'`
17472 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17473 $as_echo "$ac_res" >&6; }
17474 if test `eval 'as_val=${'$as_ac_var'}
17475 $as_echo "$as_val"'` = yes; then
17476 cat >>confdefs.h <<_ACEOF
17477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17478 _ACEOF
17481 done
17484 for ac_header in maillock.h
17486 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17488 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17489 $as_echo_n "checking for $ac_header... " >&6; }
17490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17491 $as_echo_n "(cached) " >&6
17493 ac_res=`eval 'as_val=${'$as_ac_Header'}
17494 $as_echo "$as_val"'`
17495 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17496 $as_echo "$ac_res" >&6; }
17497 else
17498 # Is the header compilable?
17499 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17500 $as_echo_n "checking $ac_header usability... " >&6; }
17501 cat >conftest.$ac_ext <<_ACEOF
17502 /* confdefs.h. */
17503 _ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17507 $ac_includes_default
17508 #include <$ac_header>
17509 _ACEOF
17510 rm -f conftest.$ac_objext
17511 if { (ac_try="$ac_compile"
17512 case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17515 esac
17516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17517 $as_echo "$ac_try_echo") >&5
17518 (eval "$ac_compile") 2>conftest.er1
17519 ac_status=$?
17520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
17523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } && {
17525 test -z "$ac_c_werror_flag" ||
17526 test ! -s conftest.err
17527 } && test -s conftest.$ac_objext; then
17528 ac_header_compiler=yes
17529 else
17530 $as_echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17533 ac_header_compiler=no
17536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17537 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17538 $as_echo "$ac_header_compiler" >&6; }
17540 # Is the header present?
17541 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17542 $as_echo_n "checking $ac_header presence... " >&6; }
17543 cat >conftest.$ac_ext <<_ACEOF
17544 /* confdefs.h. */
17545 _ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h. */
17549 #include <$ac_header>
17550 _ACEOF
17551 if { (ac_try="$ac_cpp conftest.$ac_ext"
17552 case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17555 esac
17556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17557 $as_echo "$ac_try_echo") >&5
17558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17559 ac_status=$?
17560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
17563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } >/dev/null && {
17565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17566 test ! -s conftest.err
17567 }; then
17568 ac_header_preproc=yes
17569 else
17570 $as_echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17573 ac_header_preproc=no
17576 rm -f conftest.err conftest.$ac_ext
17577 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17578 $as_echo "$ac_header_preproc" >&6; }
17580 # So? What about this header?
17581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17582 yes:no: )
17583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17584 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17586 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17587 ac_header_preproc=yes
17589 no:yes:* )
17590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17591 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17593 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17595 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17597 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17599 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17601 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17604 esac
17605 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17606 $as_echo_n "checking for $ac_header... " >&6; }
17607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17608 $as_echo_n "(cached) " >&6
17609 else
17610 eval "$as_ac_Header=\$ac_header_preproc"
17612 ac_res=`eval 'as_val=${'$as_ac_Header'}
17613 $as_echo "$as_val"'`
17614 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17615 $as_echo "$ac_res" >&6; }
17618 if test `eval 'as_val=${'$as_ac_Header'}
17619 $as_echo "$as_val"'` = yes; then
17620 cat >>confdefs.h <<_ACEOF
17621 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17622 _ACEOF
17626 done
17630 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17631 ## interlock access to the mail spool. The alternative is a lock file named
17632 ## /usr/spool/mail/$USER.lock.
17633 mail_lock=no
17634 case "$opsys" in
17635 aix4-2) mail_lock="lockf" ;;
17637 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
17639 ## On GNU/Linux systems, both methods are used by various mail programs.
17640 ## I assume most people are using newer mailers that have heard of flock.
17641 ## Change this if you need to.
17642 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17643 ## configure gets the right answers, and that means *NOT* using flock.
17644 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17645 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17646 ## Debian maintainer hasn't provided a clean fix for Emacs.
17647 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17648 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17649 ## correct logic. -- fx
17650 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17651 ## liblockfile is a Free Software replacement for libmail, used on
17652 ## Debian systems and elsewhere. -rfr.
17653 gnu-*)
17654 mail_lock="flock"
17655 if test $have_mail = yes || test $have_lockfile = yes; then
17656 test $ac_cv_header_maillock_h = yes && mail_lock=no
17659 esac
17661 BLESSMAIL_TARGET=
17662 case "$mail_lock" in
17663 flock)
17664 cat >>confdefs.h <<\_ACEOF
17665 #define MAIL_USE_FLOCK 1
17666 _ACEOF
17669 lockf)
17670 cat >>confdefs.h <<\_ACEOF
17671 #define MAIL_USE_LOCKF 1
17672 _ACEOF
17675 *) BLESSMAIL_TARGET="need-blessmail" ;;
17676 esac
17753 for ac_func in gethostname getdomainname dup2 \
17754 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17755 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17756 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17757 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17758 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17759 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17760 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17761 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17762 cfmakeraw cfsetspeed isnan copysign
17764 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17765 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17766 $as_echo_n "checking for $ac_func... " >&6; }
17767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17768 $as_echo_n "(cached) " >&6
17769 else
17770 cat >conftest.$ac_ext <<_ACEOF
17771 /* confdefs.h. */
17772 _ACEOF
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h. */
17776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17778 #define $ac_func innocuous_$ac_func
17780 /* System header to define __stub macros and hopefully few prototypes,
17781 which can conflict with char $ac_func (); below.
17782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17783 <limits.h> exists even on freestanding compilers. */
17785 #ifdef __STDC__
17786 # include <limits.h>
17787 #else
17788 # include <assert.h>
17789 #endif
17791 #undef $ac_func
17793 /* Override any GCC internal prototype to avoid an error.
17794 Use char because int might match the return type of a GCC
17795 builtin and then its argument prototype would still apply. */
17796 #ifdef __cplusplus
17797 extern "C"
17798 #endif
17799 char $ac_func ();
17800 /* The GNU C library defines this for functions which it implements
17801 to always fail with ENOSYS. Some functions are actually named
17802 something starting with __ and the normal name is an alias. */
17803 #if defined __stub_$ac_func || defined __stub___$ac_func
17804 choke me
17805 #endif
17808 main ()
17810 return $ac_func ();
17812 return 0;
17814 _ACEOF
17815 rm -f conftest.$ac_objext conftest$ac_exeext
17816 if { (ac_try="$ac_link"
17817 case "(($ac_try" in
17818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17820 esac
17821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17822 $as_echo "$ac_try_echo") >&5
17823 (eval "$ac_link") 2>conftest.er1
17824 ac_status=$?
17825 grep -v '^ *+' conftest.er1 >conftest.err
17826 rm -f conftest.er1
17827 cat conftest.err >&5
17828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } && {
17830 test -z "$ac_c_werror_flag" ||
17831 test ! -s conftest.err
17832 } && test -s conftest$ac_exeext && {
17833 test "$cross_compiling" = yes ||
17834 $as_test_x conftest$ac_exeext
17835 }; then
17836 eval "$as_ac_var=yes"
17837 else
17838 $as_echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17841 eval "$as_ac_var=no"
17844 rm -rf conftest.dSYM
17845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17846 conftest$ac_exeext conftest.$ac_ext
17848 ac_res=`eval 'as_val=${'$as_ac_var'}
17849 $as_echo "$as_val"'`
17850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17851 $as_echo "$ac_res" >&6; }
17852 if test `eval 'as_val=${'$as_ac_var'}
17853 $as_echo "$as_val"'` = yes; then
17854 cat >>confdefs.h <<_ACEOF
17855 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17856 _ACEOF
17859 done
17863 for ac_header in sys/un.h
17865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17867 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17868 $as_echo_n "checking for $ac_header... " >&6; }
17869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17870 $as_echo_n "(cached) " >&6
17872 ac_res=`eval 'as_val=${'$as_ac_Header'}
17873 $as_echo "$as_val"'`
17874 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17875 $as_echo "$ac_res" >&6; }
17876 else
17877 # Is the header compilable?
17878 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17879 $as_echo_n "checking $ac_header usability... " >&6; }
17880 cat >conftest.$ac_ext <<_ACEOF
17881 /* confdefs.h. */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 $ac_includes_default
17887 #include <$ac_header>
17888 _ACEOF
17889 rm -f conftest.$ac_objext
17890 if { (ac_try="$ac_compile"
17891 case "(($ac_try" in
17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17894 esac
17895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17896 $as_echo "$ac_try_echo") >&5
17897 (eval "$ac_compile") 2>conftest.er1
17898 ac_status=$?
17899 grep -v '^ *+' conftest.er1 >conftest.err
17900 rm -f conftest.er1
17901 cat conftest.err >&5
17902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } && {
17904 test -z "$ac_c_werror_flag" ||
17905 test ! -s conftest.err
17906 } && test -s conftest.$ac_objext; then
17907 ac_header_compiler=yes
17908 else
17909 $as_echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17912 ac_header_compiler=no
17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17917 $as_echo "$ac_header_compiler" >&6; }
17919 # Is the header present?
17920 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17921 $as_echo_n "checking $ac_header presence... " >&6; }
17922 cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h. */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17928 #include <$ac_header>
17929 _ACEOF
17930 if { (ac_try="$ac_cpp conftest.$ac_ext"
17931 case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17934 esac
17935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17936 $as_echo "$ac_try_echo") >&5
17937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17938 ac_status=$?
17939 grep -v '^ *+' conftest.er1 >conftest.err
17940 rm -f conftest.er1
17941 cat conftest.err >&5
17942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } >/dev/null && {
17944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17945 test ! -s conftest.err
17946 }; then
17947 ac_header_preproc=yes
17948 else
17949 $as_echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17952 ac_header_preproc=no
17955 rm -f conftest.err conftest.$ac_ext
17956 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17957 $as_echo "$ac_header_preproc" >&6; }
17959 # So? What about this header?
17960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17961 yes:no: )
17962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17963 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17965 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17966 ac_header_preproc=yes
17968 no:yes:* )
17969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17970 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17972 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17974 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17976 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17978 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17980 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17983 esac
17984 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17985 $as_echo_n "checking for $ac_header... " >&6; }
17986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17987 $as_echo_n "(cached) " >&6
17988 else
17989 eval "$as_ac_Header=\$ac_header_preproc"
17991 ac_res=`eval 'as_val=${'$as_ac_Header'}
17992 $as_echo "$as_val"'`
17993 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17994 $as_echo "$ac_res" >&6; }
17997 if test `eval 'as_val=${'$as_ac_Header'}
17998 $as_echo "$as_val"'` = yes; then
17999 cat >>confdefs.h <<_ACEOF
18000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18001 _ACEOF
18005 done
18012 for ac_header in $ac_header_list
18014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18016 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18017 $as_echo_n "checking for $ac_header... " >&6; }
18018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18019 $as_echo_n "(cached) " >&6
18021 ac_res=`eval 'as_val=${'$as_ac_Header'}
18022 $as_echo "$as_val"'`
18023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18024 $as_echo "$ac_res" >&6; }
18025 else
18026 # Is the header compilable?
18027 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18028 $as_echo_n "checking $ac_header usability... " >&6; }
18029 cat >conftest.$ac_ext <<_ACEOF
18030 /* confdefs.h. */
18031 _ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18035 $ac_includes_default
18036 #include <$ac_header>
18037 _ACEOF
18038 rm -f conftest.$ac_objext
18039 if { (ac_try="$ac_compile"
18040 case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18043 esac
18044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18045 $as_echo "$ac_try_echo") >&5
18046 (eval "$ac_compile") 2>conftest.er1
18047 ac_status=$?
18048 grep -v '^ *+' conftest.er1 >conftest.err
18049 rm -f conftest.er1
18050 cat conftest.err >&5
18051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } && {
18053 test -z "$ac_c_werror_flag" ||
18054 test ! -s conftest.err
18055 } && test -s conftest.$ac_objext; then
18056 ac_header_compiler=yes
18057 else
18058 $as_echo "$as_me: failed program was:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18061 ac_header_compiler=no
18064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18065 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18066 $as_echo "$ac_header_compiler" >&6; }
18068 # Is the header present?
18069 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18070 $as_echo_n "checking $ac_header presence... " >&6; }
18071 cat >conftest.$ac_ext <<_ACEOF
18072 /* confdefs.h. */
18073 _ACEOF
18074 cat confdefs.h >>conftest.$ac_ext
18075 cat >>conftest.$ac_ext <<_ACEOF
18076 /* end confdefs.h. */
18077 #include <$ac_header>
18078 _ACEOF
18079 if { (ac_try="$ac_cpp conftest.$ac_ext"
18080 case "(($ac_try" in
18081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18082 *) ac_try_echo=$ac_try;;
18083 esac
18084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18085 $as_echo "$ac_try_echo") >&5
18086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18087 ac_status=$?
18088 grep -v '^ *+' conftest.er1 >conftest.err
18089 rm -f conftest.er1
18090 cat conftest.err >&5
18091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } >/dev/null && {
18093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18094 test ! -s conftest.err
18095 }; then
18096 ac_header_preproc=yes
18097 else
18098 $as_echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18101 ac_header_preproc=no
18104 rm -f conftest.err conftest.$ac_ext
18105 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18106 $as_echo "$ac_header_preproc" >&6; }
18108 # So? What about this header?
18109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18110 yes:no: )
18111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18112 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18114 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18115 ac_header_preproc=yes
18117 no:yes:* )
18118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18119 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18121 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18123 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18125 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18127 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18129 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18132 esac
18133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18134 $as_echo_n "checking for $ac_header... " >&6; }
18135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18136 $as_echo_n "(cached) " >&6
18137 else
18138 eval "$as_ac_Header=\$ac_header_preproc"
18140 ac_res=`eval 'as_val=${'$as_ac_Header'}
18141 $as_echo "$as_val"'`
18142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18143 $as_echo "$ac_res" >&6; }
18146 if test `eval 'as_val=${'$as_ac_Header'}
18147 $as_echo "$as_val"'` = yes; then
18148 cat >>confdefs.h <<_ACEOF
18149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18150 _ACEOF
18154 done
18164 for ac_func in $ac_func_list
18166 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18167 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18168 $as_echo_n "checking for $ac_func... " >&6; }
18169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18170 $as_echo_n "(cached) " >&6
18171 else
18172 cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h. */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18180 #define $ac_func innocuous_$ac_func
18182 /* System header to define __stub macros and hopefully few prototypes,
18183 which can conflict with char $ac_func (); below.
18184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18185 <limits.h> exists even on freestanding compilers. */
18187 #ifdef __STDC__
18188 # include <limits.h>
18189 #else
18190 # include <assert.h>
18191 #endif
18193 #undef $ac_func
18195 /* Override any GCC internal prototype to avoid an error.
18196 Use char because int might match the return type of a GCC
18197 builtin and then its argument prototype would still apply. */
18198 #ifdef __cplusplus
18199 extern "C"
18200 #endif
18201 char $ac_func ();
18202 /* The GNU C library defines this for functions which it implements
18203 to always fail with ENOSYS. Some functions are actually named
18204 something starting with __ and the normal name is an alias. */
18205 #if defined __stub_$ac_func || defined __stub___$ac_func
18206 choke me
18207 #endif
18210 main ()
18212 return $ac_func ();
18214 return 0;
18216 _ACEOF
18217 rm -f conftest.$ac_objext conftest$ac_exeext
18218 if { (ac_try="$ac_link"
18219 case "(($ac_try" in
18220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221 *) ac_try_echo=$ac_try;;
18222 esac
18223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18224 $as_echo "$ac_try_echo") >&5
18225 (eval "$ac_link") 2>conftest.er1
18226 ac_status=$?
18227 grep -v '^ *+' conftest.er1 >conftest.err
18228 rm -f conftest.er1
18229 cat conftest.err >&5
18230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); } && {
18232 test -z "$ac_c_werror_flag" ||
18233 test ! -s conftest.err
18234 } && test -s conftest$ac_exeext && {
18235 test "$cross_compiling" = yes ||
18236 $as_test_x conftest$ac_exeext
18237 }; then
18238 eval "$as_ac_var=yes"
18239 else
18240 $as_echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18243 eval "$as_ac_var=no"
18246 rm -rf conftest.dSYM
18247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18248 conftest$ac_exeext conftest.$ac_ext
18250 ac_res=`eval 'as_val=${'$as_ac_var'}
18251 $as_echo "$as_val"'`
18252 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18253 $as_echo "$ac_res" >&6; }
18254 if test `eval 'as_val=${'$as_ac_var'}
18255 $as_echo "$as_val"'` = yes; then
18256 cat >>confdefs.h <<_ACEOF
18257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18258 _ACEOF
18261 done
18279 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18280 $as_echo_n "checking for working mktime... " >&6; }
18281 if test "${ac_cv_func_working_mktime+set}" = set; then
18282 $as_echo_n "(cached) " >&6
18283 else
18284 if test "$cross_compiling" = yes; then
18285 ac_cv_func_working_mktime=no
18286 else
18287 cat >conftest.$ac_ext <<_ACEOF
18288 /* confdefs.h. */
18289 _ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h. */
18293 /* Test program from Paul Eggert and Tony Leneis. */
18294 #ifdef TIME_WITH_SYS_TIME
18295 # include <sys/time.h>
18296 # include <time.h>
18297 #else
18298 # ifdef HAVE_SYS_TIME_H
18299 # include <sys/time.h>
18300 # else
18301 # include <time.h>
18302 # endif
18303 #endif
18305 #include <limits.h>
18306 #include <stdlib.h>
18308 #ifdef HAVE_UNISTD_H
18309 # include <unistd.h>
18310 #endif
18312 #ifndef HAVE_ALARM
18313 # define alarm(X) /* empty */
18314 #endif
18316 /* Work around redefinition to rpl_putenv by other config tests. */
18317 #undef putenv
18319 static time_t time_t_max;
18320 static time_t time_t_min;
18322 /* Values we'll use to set the TZ environment variable. */
18323 static char *tz_strings[] = {
18324 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18325 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18327 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18329 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18330 Based on a problem report from Andreas Jaeger. */
18331 static int
18332 spring_forward_gap ()
18334 /* glibc (up to about 1998-10-07) failed this test. */
18335 struct tm tm;
18337 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18338 instead of "TZ=America/Vancouver" in order to detect the bug even
18339 on systems that don't support the Olson extension, or don't have the
18340 full zoneinfo tables installed. */
18341 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18343 tm.tm_year = 98;
18344 tm.tm_mon = 3;
18345 tm.tm_mday = 5;
18346 tm.tm_hour = 2;
18347 tm.tm_min = 0;
18348 tm.tm_sec = 0;
18349 tm.tm_isdst = -1;
18350 return mktime (&tm) != (time_t) -1;
18353 static int
18354 mktime_test1 (now)
18355 time_t now;
18357 struct tm *lt;
18358 return ! (lt = localtime (&now)) || mktime (lt) == now;
18361 static int
18362 mktime_test (now)
18363 time_t now;
18365 return (mktime_test1 (now)
18366 && mktime_test1 ((time_t) (time_t_max - now))
18367 && mktime_test1 ((time_t) (time_t_min + now)));
18370 static int
18371 irix_6_4_bug ()
18373 /* Based on code from Ariel Faigon. */
18374 struct tm tm;
18375 tm.tm_year = 96;
18376 tm.tm_mon = 3;
18377 tm.tm_mday = 0;
18378 tm.tm_hour = 0;
18379 tm.tm_min = 0;
18380 tm.tm_sec = 0;
18381 tm.tm_isdst = -1;
18382 mktime (&tm);
18383 return tm.tm_mon == 2 && tm.tm_mday == 31;
18386 static int
18387 bigtime_test (j)
18388 int j;
18390 struct tm tm;
18391 time_t now;
18392 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18393 now = mktime (&tm);
18394 if (now != (time_t) -1)
18396 struct tm *lt = localtime (&now);
18397 if (! (lt
18398 && lt->tm_year == tm.tm_year
18399 && lt->tm_mon == tm.tm_mon
18400 && lt->tm_mday == tm.tm_mday
18401 && lt->tm_hour == tm.tm_hour
18402 && lt->tm_min == tm.tm_min
18403 && lt->tm_sec == tm.tm_sec
18404 && lt->tm_yday == tm.tm_yday
18405 && lt->tm_wday == tm.tm_wday
18406 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18407 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18408 return 0;
18410 return 1;
18413 static int
18414 year_2050_test ()
18416 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18417 ignoring leap seconds. */
18418 unsigned long int answer = 2527315200UL;
18420 struct tm tm;
18421 time_t t;
18422 tm.tm_year = 2050 - 1900;
18423 tm.tm_mon = 2 - 1;
18424 tm.tm_mday = 1;
18425 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18426 tm.tm_isdst = -1;
18428 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18429 instead of "TZ=America/Vancouver" in order to detect the bug even
18430 on systems that don't support the Olson extension, or don't have the
18431 full zoneinfo tables installed. */
18432 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18434 t = mktime (&tm);
18436 /* Check that the result is either a failure, or close enough
18437 to the correct answer that we can assume the discrepancy is
18438 due to leap seconds. */
18439 return (t == (time_t) -1
18440 || (0 < t && answer - 120 <= t && t <= answer + 120));
18444 main ()
18446 time_t t, delta;
18447 int i, j;
18449 /* This test makes some buggy mktime implementations loop.
18450 Give up after 60 seconds; a mktime slower than that
18451 isn't worth using anyway. */
18452 alarm (60);
18454 for (;;)
18456 t = (time_t_max << 1) + 1;
18457 if (t <= time_t_max)
18458 break;
18459 time_t_max = t;
18461 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18463 delta = time_t_max / 997; /* a suitable prime number */
18464 for (i = 0; i < N_STRINGS; i++)
18466 if (tz_strings[i])
18467 putenv (tz_strings[i]);
18469 for (t = 0; t <= time_t_max - delta; t += delta)
18470 if (! mktime_test (t))
18471 return 1;
18472 if (! (mktime_test ((time_t) 1)
18473 && mktime_test ((time_t) (60 * 60))
18474 && mktime_test ((time_t) (60 * 60 * 24))))
18475 return 1;
18477 for (j = 1; ; j <<= 1)
18478 if (! bigtime_test (j))
18479 return 1;
18480 else if (INT_MAX / 2 < j)
18481 break;
18482 if (! bigtime_test (INT_MAX))
18483 return 1;
18485 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18487 _ACEOF
18488 rm -f conftest$ac_exeext
18489 if { (ac_try="$ac_link"
18490 case "(($ac_try" in
18491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492 *) ac_try_echo=$ac_try;;
18493 esac
18494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18495 $as_echo "$ac_try_echo") >&5
18496 (eval "$ac_link") 2>&5
18497 ac_status=$?
18498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18500 { (case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18503 esac
18504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18505 $as_echo "$ac_try_echo") >&5
18506 (eval "$ac_try") 2>&5
18507 ac_status=$?
18508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; }; then
18510 ac_cv_func_working_mktime=yes
18511 else
18512 $as_echo "$as_me: program exited with status $ac_status" >&5
18513 $as_echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18516 ( exit $ac_status )
18517 ac_cv_func_working_mktime=no
18519 rm -rf conftest.dSYM
18520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18525 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18526 $as_echo "$ac_cv_func_working_mktime" >&6; }
18527 if test $ac_cv_func_working_mktime = no; then
18528 case " $LIBOBJS " in
18529 *" mktime.$ac_objext "* ) ;;
18530 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18532 esac
18536 if test "$ac_cv_func_working_mktime" = no; then
18538 cat >>confdefs.h <<\_ACEOF
18539 #define BROKEN_MKTIME 1
18540 _ACEOF
18544 ac_have_func=no # yes means we've found a way to get the load average.
18546 # Make sure getloadavg.c is where it belongs, at configure-time.
18547 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18548 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18549 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18550 { (exit 1); exit 1; }; }
18552 ac_save_LIBS=$LIBS
18554 # Check for getloadavg, but be sure not to touch the cache variable.
18555 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18556 $as_echo_n "checking for getloadavg... " >&6; }
18557 if test "${ac_cv_func_getloadavg+set}" = set; then
18558 $as_echo_n "(cached) " >&6
18559 else
18560 cat >conftest.$ac_ext <<_ACEOF
18561 /* confdefs.h. */
18562 _ACEOF
18563 cat confdefs.h >>conftest.$ac_ext
18564 cat >>conftest.$ac_ext <<_ACEOF
18565 /* end confdefs.h. */
18566 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18568 #define getloadavg innocuous_getloadavg
18570 /* System header to define __stub macros and hopefully few prototypes,
18571 which can conflict with char getloadavg (); below.
18572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18573 <limits.h> exists even on freestanding compilers. */
18575 #ifdef __STDC__
18576 # include <limits.h>
18577 #else
18578 # include <assert.h>
18579 #endif
18581 #undef getloadavg
18583 /* Override any GCC internal prototype to avoid an error.
18584 Use char because int might match the return type of a GCC
18585 builtin and then its argument prototype would still apply. */
18586 #ifdef __cplusplus
18587 extern "C"
18588 #endif
18589 char getloadavg ();
18590 /* The GNU C library defines this for functions which it implements
18591 to always fail with ENOSYS. Some functions are actually named
18592 something starting with __ and the normal name is an alias. */
18593 #if defined __stub_getloadavg || defined __stub___getloadavg
18594 choke me
18595 #endif
18598 main ()
18600 return getloadavg ();
18602 return 0;
18604 _ACEOF
18605 rm -f conftest.$ac_objext conftest$ac_exeext
18606 if { (ac_try="$ac_link"
18607 case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18610 esac
18611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18612 $as_echo "$ac_try_echo") >&5
18613 (eval "$ac_link") 2>conftest.er1
18614 ac_status=$?
18615 grep -v '^ *+' conftest.er1 >conftest.err
18616 rm -f conftest.er1
18617 cat conftest.err >&5
18618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } && {
18620 test -z "$ac_c_werror_flag" ||
18621 test ! -s conftest.err
18622 } && test -s conftest$ac_exeext && {
18623 test "$cross_compiling" = yes ||
18624 $as_test_x conftest$ac_exeext
18625 }; then
18626 ac_cv_func_getloadavg=yes
18627 else
18628 $as_echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18631 ac_cv_func_getloadavg=no
18634 rm -rf conftest.dSYM
18635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18636 conftest$ac_exeext conftest.$ac_ext
18638 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18639 $as_echo "$ac_cv_func_getloadavg" >&6; }
18640 if test $ac_cv_func_getloadavg = yes; then
18641 exit 0
18642 else
18643 exit 1
18645 ) && ac_have_func=yes
18647 # On HPUX9, an unprivileged user can get load averages through this function.
18649 for ac_func in pstat_getdynamic
18651 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18652 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18653 $as_echo_n "checking for $ac_func... " >&6; }
18654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18655 $as_echo_n "(cached) " >&6
18656 else
18657 cat >conftest.$ac_ext <<_ACEOF
18658 /* confdefs.h. */
18659 _ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18665 #define $ac_func innocuous_$ac_func
18667 /* System header to define __stub macros and hopefully few prototypes,
18668 which can conflict with char $ac_func (); below.
18669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18670 <limits.h> exists even on freestanding compilers. */
18672 #ifdef __STDC__
18673 # include <limits.h>
18674 #else
18675 # include <assert.h>
18676 #endif
18678 #undef $ac_func
18680 /* Override any GCC internal prototype to avoid an error.
18681 Use char because int might match the return type of a GCC
18682 builtin and then its argument prototype would still apply. */
18683 #ifdef __cplusplus
18684 extern "C"
18685 #endif
18686 char $ac_func ();
18687 /* The GNU C library defines this for functions which it implements
18688 to always fail with ENOSYS. Some functions are actually named
18689 something starting with __ and the normal name is an alias. */
18690 #if defined __stub_$ac_func || defined __stub___$ac_func
18691 choke me
18692 #endif
18695 main ()
18697 return $ac_func ();
18699 return 0;
18701 _ACEOF
18702 rm -f conftest.$ac_objext conftest$ac_exeext
18703 if { (ac_try="$ac_link"
18704 case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18707 esac
18708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18709 $as_echo "$ac_try_echo") >&5
18710 (eval "$ac_link") 2>conftest.er1
18711 ac_status=$?
18712 grep -v '^ *+' conftest.er1 >conftest.err
18713 rm -f conftest.er1
18714 cat conftest.err >&5
18715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); } && {
18717 test -z "$ac_c_werror_flag" ||
18718 test ! -s conftest.err
18719 } && test -s conftest$ac_exeext && {
18720 test "$cross_compiling" = yes ||
18721 $as_test_x conftest$ac_exeext
18722 }; then
18723 eval "$as_ac_var=yes"
18724 else
18725 $as_echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18728 eval "$as_ac_var=no"
18731 rm -rf conftest.dSYM
18732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18733 conftest$ac_exeext conftest.$ac_ext
18735 ac_res=`eval 'as_val=${'$as_ac_var'}
18736 $as_echo "$as_val"'`
18737 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18738 $as_echo "$ac_res" >&6; }
18739 if test `eval 'as_val=${'$as_ac_var'}
18740 $as_echo "$as_val"'` = yes; then
18741 cat >>confdefs.h <<_ACEOF
18742 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18743 _ACEOF
18746 done
18749 # Solaris has libkstat which does not require root.
18751 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18752 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18753 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18754 $as_echo_n "(cached) " >&6
18755 else
18756 ac_check_lib_save_LIBS=$LIBS
18757 LIBS="-lkstat $LIBS"
18758 cat >conftest.$ac_ext <<_ACEOF
18759 /* confdefs.h. */
18760 _ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18765 /* Override any GCC internal prototype to avoid an error.
18766 Use char because int might match the return type of a GCC
18767 builtin and then its argument prototype would still apply. */
18768 #ifdef __cplusplus
18769 extern "C"
18770 #endif
18771 char kstat_open ();
18773 main ()
18775 return kstat_open ();
18777 return 0;
18779 _ACEOF
18780 rm -f conftest.$ac_objext conftest$ac_exeext
18781 if { (ac_try="$ac_link"
18782 case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18785 esac
18786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18787 $as_echo "$ac_try_echo") >&5
18788 (eval "$ac_link") 2>conftest.er1
18789 ac_status=$?
18790 grep -v '^ *+' conftest.er1 >conftest.err
18791 rm -f conftest.er1
18792 cat conftest.err >&5
18793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } && {
18795 test -z "$ac_c_werror_flag" ||
18796 test ! -s conftest.err
18797 } && test -s conftest$ac_exeext && {
18798 test "$cross_compiling" = yes ||
18799 $as_test_x conftest$ac_exeext
18800 }; then
18801 ac_cv_lib_kstat_kstat_open=yes
18802 else
18803 $as_echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_cv_lib_kstat_kstat_open=no
18809 rm -rf conftest.dSYM
18810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18811 conftest$ac_exeext conftest.$ac_ext
18812 LIBS=$ac_check_lib_save_LIBS
18814 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18815 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18816 if test $ac_cv_lib_kstat_kstat_open = yes; then
18817 cat >>confdefs.h <<_ACEOF
18818 #define HAVE_LIBKSTAT 1
18819 _ACEOF
18821 LIBS="-lkstat $LIBS"
18825 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18827 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18828 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18829 # to get the right answer into the cache.
18830 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18831 if test $ac_have_func = no; then
18832 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18833 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18834 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18835 $as_echo_n "(cached) " >&6
18836 else
18837 ac_check_lib_save_LIBS=$LIBS
18838 LIBS="-lelf $LIBS"
18839 cat >conftest.$ac_ext <<_ACEOF
18840 /* confdefs.h. */
18841 _ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h. */
18846 /* Override any GCC internal prototype to avoid an error.
18847 Use char because int might match the return type of a GCC
18848 builtin and then its argument prototype would still apply. */
18849 #ifdef __cplusplus
18850 extern "C"
18851 #endif
18852 char elf_begin ();
18854 main ()
18856 return elf_begin ();
18858 return 0;
18860 _ACEOF
18861 rm -f conftest.$ac_objext conftest$ac_exeext
18862 if { (ac_try="$ac_link"
18863 case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18866 esac
18867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18868 $as_echo "$ac_try_echo") >&5
18869 (eval "$ac_link") 2>conftest.er1
18870 ac_status=$?
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
18874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } && {
18876 test -z "$ac_c_werror_flag" ||
18877 test ! -s conftest.err
18878 } && test -s conftest$ac_exeext && {
18879 test "$cross_compiling" = yes ||
18880 $as_test_x conftest$ac_exeext
18881 }; then
18882 ac_cv_lib_elf_elf_begin=yes
18883 else
18884 $as_echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 ac_cv_lib_elf_elf_begin=no
18890 rm -rf conftest.dSYM
18891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18892 conftest$ac_exeext conftest.$ac_ext
18893 LIBS=$ac_check_lib_save_LIBS
18895 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18896 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18897 if test $ac_cv_lib_elf_elf_begin = yes; then
18898 LIBS="-lelf $LIBS"
18902 if test $ac_have_func = no; then
18903 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18904 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18905 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18906 $as_echo_n "(cached) " >&6
18907 else
18908 ac_check_lib_save_LIBS=$LIBS
18909 LIBS="-lkvm $LIBS"
18910 cat >conftest.$ac_ext <<_ACEOF
18911 /* confdefs.h. */
18912 _ACEOF
18913 cat confdefs.h >>conftest.$ac_ext
18914 cat >>conftest.$ac_ext <<_ACEOF
18915 /* end confdefs.h. */
18917 /* Override any GCC internal prototype to avoid an error.
18918 Use char because int might match the return type of a GCC
18919 builtin and then its argument prototype would still apply. */
18920 #ifdef __cplusplus
18921 extern "C"
18922 #endif
18923 char kvm_open ();
18925 main ()
18927 return kvm_open ();
18929 return 0;
18931 _ACEOF
18932 rm -f conftest.$ac_objext conftest$ac_exeext
18933 if { (ac_try="$ac_link"
18934 case "(($ac_try" in
18935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936 *) ac_try_echo=$ac_try;;
18937 esac
18938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18939 $as_echo "$ac_try_echo") >&5
18940 (eval "$ac_link") 2>conftest.er1
18941 ac_status=$?
18942 grep -v '^ *+' conftest.er1 >conftest.err
18943 rm -f conftest.er1
18944 cat conftest.err >&5
18945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } && {
18947 test -z "$ac_c_werror_flag" ||
18948 test ! -s conftest.err
18949 } && test -s conftest$ac_exeext && {
18950 test "$cross_compiling" = yes ||
18951 $as_test_x conftest$ac_exeext
18952 }; then
18953 ac_cv_lib_kvm_kvm_open=yes
18954 else
18955 $as_echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18958 ac_cv_lib_kvm_kvm_open=no
18961 rm -rf conftest.dSYM
18962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18963 conftest$ac_exeext conftest.$ac_ext
18964 LIBS=$ac_check_lib_save_LIBS
18966 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18967 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18968 if test $ac_cv_lib_kvm_kvm_open = yes; then
18969 LIBS="-lkvm $LIBS"
18972 # Check for the 4.4BSD definition of getloadavg.
18973 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18974 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18975 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18976 $as_echo_n "(cached) " >&6
18977 else
18978 ac_check_lib_save_LIBS=$LIBS
18979 LIBS="-lutil $LIBS"
18980 cat >conftest.$ac_ext <<_ACEOF
18981 /* confdefs.h. */
18982 _ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h. */
18987 /* Override any GCC internal prototype to avoid an error.
18988 Use char because int might match the return type of a GCC
18989 builtin and then its argument prototype would still apply. */
18990 #ifdef __cplusplus
18991 extern "C"
18992 #endif
18993 char getloadavg ();
18995 main ()
18997 return getloadavg ();
18999 return 0;
19001 _ACEOF
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (ac_try="$ac_link"
19004 case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19007 esac
19008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19009 $as_echo "$ac_try_echo") >&5
19010 (eval "$ac_link") 2>conftest.er1
19011 ac_status=$?
19012 grep -v '^ *+' conftest.er1 >conftest.err
19013 rm -f conftest.er1
19014 cat conftest.err >&5
19015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } && {
19017 test -z "$ac_c_werror_flag" ||
19018 test ! -s conftest.err
19019 } && test -s conftest$ac_exeext && {
19020 test "$cross_compiling" = yes ||
19021 $as_test_x conftest$ac_exeext
19022 }; then
19023 ac_cv_lib_util_getloadavg=yes
19024 else
19025 $as_echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19028 ac_cv_lib_util_getloadavg=no
19031 rm -rf conftest.dSYM
19032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19033 conftest$ac_exeext conftest.$ac_ext
19034 LIBS=$ac_check_lib_save_LIBS
19036 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
19037 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19038 if test $ac_cv_lib_util_getloadavg = yes; then
19039 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19044 if test $ac_have_func = no; then
19045 # There is a commonly available library for RS/6000 AIX.
19046 # Since it is not a standard part of AIX, it might be installed locally.
19047 ac_getloadavg_LIBS=$LIBS
19048 LIBS="-L/usr/local/lib $LIBS"
19049 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
19050 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19051 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19052 $as_echo_n "(cached) " >&6
19053 else
19054 ac_check_lib_save_LIBS=$LIBS
19055 LIBS="-lgetloadavg $LIBS"
19056 cat >conftest.$ac_ext <<_ACEOF
19057 /* confdefs.h. */
19058 _ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19063 /* Override any GCC internal prototype to avoid an error.
19064 Use char because int might match the return type of a GCC
19065 builtin and then its argument prototype would still apply. */
19066 #ifdef __cplusplus
19067 extern "C"
19068 #endif
19069 char getloadavg ();
19071 main ()
19073 return getloadavg ();
19075 return 0;
19077 _ACEOF
19078 rm -f conftest.$ac_objext conftest$ac_exeext
19079 if { (ac_try="$ac_link"
19080 case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19083 esac
19084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19085 $as_echo "$ac_try_echo") >&5
19086 (eval "$ac_link") 2>conftest.er1
19087 ac_status=$?
19088 grep -v '^ *+' conftest.er1 >conftest.err
19089 rm -f conftest.er1
19090 cat conftest.err >&5
19091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } && {
19093 test -z "$ac_c_werror_flag" ||
19094 test ! -s conftest.err
19095 } && test -s conftest$ac_exeext && {
19096 test "$cross_compiling" = yes ||
19097 $as_test_x conftest$ac_exeext
19098 }; then
19099 ac_cv_lib_getloadavg_getloadavg=yes
19100 else
19101 $as_echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19104 ac_cv_lib_getloadavg_getloadavg=no
19107 rm -rf conftest.dSYM
19108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19109 conftest$ac_exeext conftest.$ac_ext
19110 LIBS=$ac_check_lib_save_LIBS
19112 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19113 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19114 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19115 LIBS="-lgetloadavg $LIBS"
19116 else
19117 LIBS=$ac_getloadavg_LIBS
19122 # Make sure it is really in the library, if we think we found it,
19123 # otherwise set up the replacement function.
19125 for ac_func in getloadavg
19127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19128 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19129 $as_echo_n "checking for $ac_func... " >&6; }
19130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19131 $as_echo_n "(cached) " >&6
19132 else
19133 cat >conftest.$ac_ext <<_ACEOF
19134 /* confdefs.h. */
19135 _ACEOF
19136 cat confdefs.h >>conftest.$ac_ext
19137 cat >>conftest.$ac_ext <<_ACEOF
19138 /* end confdefs.h. */
19139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19141 #define $ac_func innocuous_$ac_func
19143 /* System header to define __stub macros and hopefully few prototypes,
19144 which can conflict with char $ac_func (); below.
19145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19146 <limits.h> exists even on freestanding compilers. */
19148 #ifdef __STDC__
19149 # include <limits.h>
19150 #else
19151 # include <assert.h>
19152 #endif
19154 #undef $ac_func
19156 /* Override any GCC internal prototype to avoid an error.
19157 Use char because int might match the return type of a GCC
19158 builtin and then its argument prototype would still apply. */
19159 #ifdef __cplusplus
19160 extern "C"
19161 #endif
19162 char $ac_func ();
19163 /* The GNU C library defines this for functions which it implements
19164 to always fail with ENOSYS. Some functions are actually named
19165 something starting with __ and the normal name is an alias. */
19166 #if defined __stub_$ac_func || defined __stub___$ac_func
19167 choke me
19168 #endif
19171 main ()
19173 return $ac_func ();
19175 return 0;
19177 _ACEOF
19178 rm -f conftest.$ac_objext conftest$ac_exeext
19179 if { (ac_try="$ac_link"
19180 case "(($ac_try" in
19181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19182 *) ac_try_echo=$ac_try;;
19183 esac
19184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19185 $as_echo "$ac_try_echo") >&5
19186 (eval "$ac_link") 2>conftest.er1
19187 ac_status=$?
19188 grep -v '^ *+' conftest.er1 >conftest.err
19189 rm -f conftest.er1
19190 cat conftest.err >&5
19191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } && {
19193 test -z "$ac_c_werror_flag" ||
19194 test ! -s conftest.err
19195 } && test -s conftest$ac_exeext && {
19196 test "$cross_compiling" = yes ||
19197 $as_test_x conftest$ac_exeext
19198 }; then
19199 eval "$as_ac_var=yes"
19200 else
19201 $as_echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19204 eval "$as_ac_var=no"
19207 rm -rf conftest.dSYM
19208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19209 conftest$ac_exeext conftest.$ac_ext
19211 ac_res=`eval 'as_val=${'$as_ac_var'}
19212 $as_echo "$as_val"'`
19213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19214 $as_echo "$ac_res" >&6; }
19215 if test `eval 'as_val=${'$as_ac_var'}
19216 $as_echo "$as_val"'` = yes; then
19217 cat >>confdefs.h <<_ACEOF
19218 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19219 _ACEOF
19221 else
19222 case " $LIBOBJS " in
19223 *" getloadavg.$ac_objext "* ) ;;
19224 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
19226 esac
19229 cat >>confdefs.h <<\_ACEOF
19230 #define C_GETLOADAVG 1
19231 _ACEOF
19233 # Figure out what our getloadavg.c needs.
19234 ac_have_func=no
19235 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19236 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19237 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19238 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19239 $as_echo_n "(cached) " >&6
19241 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19242 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19243 else
19244 # Is the header compilable?
19245 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19246 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19247 cat >conftest.$ac_ext <<_ACEOF
19248 /* confdefs.h. */
19249 _ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19253 $ac_includes_default
19254 #include <sys/dg_sys_info.h>
19255 _ACEOF
19256 rm -f conftest.$ac_objext
19257 if { (ac_try="$ac_compile"
19258 case "(($ac_try" in
19259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260 *) ac_try_echo=$ac_try;;
19261 esac
19262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19263 $as_echo "$ac_try_echo") >&5
19264 (eval "$ac_compile") 2>conftest.er1
19265 ac_status=$?
19266 grep -v '^ *+' conftest.er1 >conftest.err
19267 rm -f conftest.er1
19268 cat conftest.err >&5
19269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); } && {
19271 test -z "$ac_c_werror_flag" ||
19272 test ! -s conftest.err
19273 } && test -s conftest.$ac_objext; then
19274 ac_header_compiler=yes
19275 else
19276 $as_echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19279 ac_header_compiler=no
19282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19283 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19284 $as_echo "$ac_header_compiler" >&6; }
19286 # Is the header present?
19287 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19288 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19289 cat >conftest.$ac_ext <<_ACEOF
19290 /* confdefs.h. */
19291 _ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19295 #include <sys/dg_sys_info.h>
19296 _ACEOF
19297 if { (ac_try="$ac_cpp conftest.$ac_ext"
19298 case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19301 esac
19302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19303 $as_echo "$ac_try_echo") >&5
19304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19305 ac_status=$?
19306 grep -v '^ *+' conftest.er1 >conftest.err
19307 rm -f conftest.er1
19308 cat conftest.err >&5
19309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } >/dev/null && {
19311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19312 test ! -s conftest.err
19313 }; then
19314 ac_header_preproc=yes
19315 else
19316 $as_echo "$as_me: failed program was:" >&5
19317 sed 's/^/| /' conftest.$ac_ext >&5
19319 ac_header_preproc=no
19322 rm -f conftest.err conftest.$ac_ext
19323 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19324 $as_echo "$ac_header_preproc" >&6; }
19326 # So? What about this header?
19327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19328 yes:no: )
19329 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19330 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19331 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19332 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19333 ac_header_preproc=yes
19335 no:yes:* )
19336 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19337 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19338 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19339 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19340 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19341 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19342 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19343 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19344 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19345 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19346 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19347 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19350 esac
19351 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19352 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19353 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19354 $as_echo_n "(cached) " >&6
19355 else
19356 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19358 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19359 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19362 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19363 ac_have_func=yes
19365 cat >>confdefs.h <<\_ACEOF
19366 #define DGUX 1
19367 _ACEOF
19370 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19371 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19372 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19373 $as_echo_n "(cached) " >&6
19374 else
19375 ac_check_lib_save_LIBS=$LIBS
19376 LIBS="-ldgc $LIBS"
19377 cat >conftest.$ac_ext <<_ACEOF
19378 /* confdefs.h. */
19379 _ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h. */
19384 /* Override any GCC internal prototype to avoid an error.
19385 Use char because int might match the return type of a GCC
19386 builtin and then its argument prototype would still apply. */
19387 #ifdef __cplusplus
19388 extern "C"
19389 #endif
19390 char dg_sys_info ();
19392 main ()
19394 return dg_sys_info ();
19396 return 0;
19398 _ACEOF
19399 rm -f conftest.$ac_objext conftest$ac_exeext
19400 if { (ac_try="$ac_link"
19401 case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19404 esac
19405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19406 $as_echo "$ac_try_echo") >&5
19407 (eval "$ac_link") 2>conftest.er1
19408 ac_status=$?
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
19412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_c_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest$ac_exeext && {
19417 test "$cross_compiling" = yes ||
19418 $as_test_x conftest$ac_exeext
19419 }; then
19420 ac_cv_lib_dgc_dg_sys_info=yes
19421 else
19422 $as_echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19425 ac_cv_lib_dgc_dg_sys_info=no
19428 rm -rf conftest.dSYM
19429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19430 conftest$ac_exeext conftest.$ac_ext
19431 LIBS=$ac_check_lib_save_LIBS
19433 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19434 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19435 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19436 cat >>confdefs.h <<_ACEOF
19437 #define HAVE_LIBDGC 1
19438 _ACEOF
19440 LIBS="-ldgc $LIBS"
19448 if test "${ac_cv_header_locale_h+set}" = set; then
19449 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19450 $as_echo_n "checking for locale.h... " >&6; }
19451 if test "${ac_cv_header_locale_h+set}" = set; then
19452 $as_echo_n "(cached) " >&6
19454 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19455 $as_echo "$ac_cv_header_locale_h" >&6; }
19456 else
19457 # Is the header compilable?
19458 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19459 $as_echo_n "checking locale.h usability... " >&6; }
19460 cat >conftest.$ac_ext <<_ACEOF
19461 /* confdefs.h. */
19462 _ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19466 $ac_includes_default
19467 #include <locale.h>
19468 _ACEOF
19469 rm -f conftest.$ac_objext
19470 if { (ac_try="$ac_compile"
19471 case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19474 esac
19475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19476 $as_echo "$ac_try_echo") >&5
19477 (eval "$ac_compile") 2>conftest.er1
19478 ac_status=$?
19479 grep -v '^ *+' conftest.er1 >conftest.err
19480 rm -f conftest.er1
19481 cat conftest.err >&5
19482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } && {
19484 test -z "$ac_c_werror_flag" ||
19485 test ! -s conftest.err
19486 } && test -s conftest.$ac_objext; then
19487 ac_header_compiler=yes
19488 else
19489 $as_echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19492 ac_header_compiler=no
19495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19496 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19497 $as_echo "$ac_header_compiler" >&6; }
19499 # Is the header present?
19500 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19501 $as_echo_n "checking locale.h presence... " >&6; }
19502 cat >conftest.$ac_ext <<_ACEOF
19503 /* confdefs.h. */
19504 _ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h. */
19508 #include <locale.h>
19509 _ACEOF
19510 if { (ac_try="$ac_cpp conftest.$ac_ext"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19514 esac
19515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19516 $as_echo "$ac_try_echo") >&5
19517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19518 ac_status=$?
19519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
19522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } >/dev/null && {
19524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19525 test ! -s conftest.err
19526 }; then
19527 ac_header_preproc=yes
19528 else
19529 $as_echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19532 ac_header_preproc=no
19535 rm -f conftest.err conftest.$ac_ext
19536 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19537 $as_echo "$ac_header_preproc" >&6; }
19539 # So? What about this header?
19540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19541 yes:no: )
19542 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19543 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19544 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19545 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19546 ac_header_preproc=yes
19548 no:yes:* )
19549 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19550 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19551 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19552 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19553 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19554 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19555 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19556 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19557 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19558 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19559 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19560 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19563 esac
19564 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19565 $as_echo_n "checking for locale.h... " >&6; }
19566 if test "${ac_cv_header_locale_h+set}" = set; then
19567 $as_echo_n "(cached) " >&6
19568 else
19569 ac_cv_header_locale_h=$ac_header_preproc
19571 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19572 $as_echo "$ac_cv_header_locale_h" >&6; }
19578 for ac_func in setlocale
19580 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19581 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19582 $as_echo_n "checking for $ac_func... " >&6; }
19583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19584 $as_echo_n "(cached) " >&6
19585 else
19586 cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h. */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19594 #define $ac_func innocuous_$ac_func
19596 /* System header to define __stub macros and hopefully few prototypes,
19597 which can conflict with char $ac_func (); below.
19598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19599 <limits.h> exists even on freestanding compilers. */
19601 #ifdef __STDC__
19602 # include <limits.h>
19603 #else
19604 # include <assert.h>
19605 #endif
19607 #undef $ac_func
19609 /* Override any GCC internal prototype to avoid an error.
19610 Use char because int might match the return type of a GCC
19611 builtin and then its argument prototype would still apply. */
19612 #ifdef __cplusplus
19613 extern "C"
19614 #endif
19615 char $ac_func ();
19616 /* The GNU C library defines this for functions which it implements
19617 to always fail with ENOSYS. Some functions are actually named
19618 something starting with __ and the normal name is an alias. */
19619 #if defined __stub_$ac_func || defined __stub___$ac_func
19620 choke me
19621 #endif
19624 main ()
19626 return $ac_func ();
19628 return 0;
19630 _ACEOF
19631 rm -f conftest.$ac_objext conftest$ac_exeext
19632 if { (ac_try="$ac_link"
19633 case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19636 esac
19637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19638 $as_echo "$ac_try_echo") >&5
19639 (eval "$ac_link") 2>conftest.er1
19640 ac_status=$?
19641 grep -v '^ *+' conftest.er1 >conftest.err
19642 rm -f conftest.er1
19643 cat conftest.err >&5
19644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } && {
19646 test -z "$ac_c_werror_flag" ||
19647 test ! -s conftest.err
19648 } && test -s conftest$ac_exeext && {
19649 test "$cross_compiling" = yes ||
19650 $as_test_x conftest$ac_exeext
19651 }; then
19652 eval "$as_ac_var=yes"
19653 else
19654 $as_echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19657 eval "$as_ac_var=no"
19660 rm -rf conftest.dSYM
19661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19662 conftest$ac_exeext conftest.$ac_ext
19664 ac_res=`eval 'as_val=${'$as_ac_var'}
19665 $as_echo "$as_val"'`
19666 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19667 $as_echo "$ac_res" >&6; }
19668 if test `eval 'as_val=${'$as_ac_var'}
19669 $as_echo "$as_val"'` = yes; then
19670 cat >>confdefs.h <<_ACEOF
19671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19672 _ACEOF
19675 done
19678 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19679 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19680 # Irix 4.0.5F has the header but not the library.
19681 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19682 ac_have_func=yes
19684 cat >>confdefs.h <<\_ACEOF
19685 #define SVR4 1
19686 _ACEOF
19690 if test $ac_have_func = no; then
19691 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19692 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19693 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19694 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19695 $as_echo_n "(cached) " >&6
19697 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19698 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19699 else
19700 # Is the header compilable?
19701 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19702 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19703 cat >conftest.$ac_ext <<_ACEOF
19704 /* confdefs.h. */
19705 _ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h. */
19709 $ac_includes_default
19710 #include <inq_stats/cpustats.h>
19711 _ACEOF
19712 rm -f conftest.$ac_objext
19713 if { (ac_try="$ac_compile"
19714 case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19717 esac
19718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19719 $as_echo "$ac_try_echo") >&5
19720 (eval "$ac_compile") 2>conftest.er1
19721 ac_status=$?
19722 grep -v '^ *+' conftest.er1 >conftest.err
19723 rm -f conftest.er1
19724 cat conftest.err >&5
19725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } && {
19727 test -z "$ac_c_werror_flag" ||
19728 test ! -s conftest.err
19729 } && test -s conftest.$ac_objext; then
19730 ac_header_compiler=yes
19731 else
19732 $as_echo "$as_me: failed program was:" >&5
19733 sed 's/^/| /' conftest.$ac_ext >&5
19735 ac_header_compiler=no
19738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19739 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19740 $as_echo "$ac_header_compiler" >&6; }
19742 # Is the header present?
19743 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19744 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19745 cat >conftest.$ac_ext <<_ACEOF
19746 /* confdefs.h. */
19747 _ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h. */
19751 #include <inq_stats/cpustats.h>
19752 _ACEOF
19753 if { (ac_try="$ac_cpp conftest.$ac_ext"
19754 case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19757 esac
19758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19759 $as_echo "$ac_try_echo") >&5
19760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19761 ac_status=$?
19762 grep -v '^ *+' conftest.er1 >conftest.err
19763 rm -f conftest.er1
19764 cat conftest.err >&5
19765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } >/dev/null && {
19767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19768 test ! -s conftest.err
19769 }; then
19770 ac_header_preproc=yes
19771 else
19772 $as_echo "$as_me: failed program was:" >&5
19773 sed 's/^/| /' conftest.$ac_ext >&5
19775 ac_header_preproc=no
19778 rm -f conftest.err conftest.$ac_ext
19779 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19780 $as_echo "$ac_header_preproc" >&6; }
19782 # So? What about this header?
19783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19784 yes:no: )
19785 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19786 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19787 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19788 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19789 ac_header_preproc=yes
19791 no:yes:* )
19792 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19793 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19794 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19795 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19796 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19797 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19798 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19799 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19800 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19801 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19802 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19803 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19806 esac
19807 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19808 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19809 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19810 $as_echo_n "(cached) " >&6
19811 else
19812 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19814 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19815 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19818 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19819 ac_have_func=yes
19821 cat >>confdefs.h <<\_ACEOF
19822 #define UMAX 1
19823 _ACEOF
19826 cat >>confdefs.h <<\_ACEOF
19827 #define UMAX4_3 1
19828 _ACEOF
19835 if test $ac_have_func = no; then
19836 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19837 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19838 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19839 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19840 $as_echo_n "(cached) " >&6
19842 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19843 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19844 else
19845 # Is the header compilable?
19846 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19847 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19848 cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h. */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854 $ac_includes_default
19855 #include <sys/cpustats.h>
19856 _ACEOF
19857 rm -f conftest.$ac_objext
19858 if { (ac_try="$ac_compile"
19859 case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19862 esac
19863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19864 $as_echo "$ac_try_echo") >&5
19865 (eval "$ac_compile") 2>conftest.er1
19866 ac_status=$?
19867 grep -v '^ *+' conftest.er1 >conftest.err
19868 rm -f conftest.er1
19869 cat conftest.err >&5
19870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } && {
19872 test -z "$ac_c_werror_flag" ||
19873 test ! -s conftest.err
19874 } && test -s conftest.$ac_objext; then
19875 ac_header_compiler=yes
19876 else
19877 $as_echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19880 ac_header_compiler=no
19883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19884 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19885 $as_echo "$ac_header_compiler" >&6; }
19887 # Is the header present?
19888 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19889 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19890 cat >conftest.$ac_ext <<_ACEOF
19891 /* confdefs.h. */
19892 _ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19896 #include <sys/cpustats.h>
19897 _ACEOF
19898 if { (ac_try="$ac_cpp conftest.$ac_ext"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19902 esac
19903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19904 $as_echo "$ac_try_echo") >&5
19905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19906 ac_status=$?
19907 grep -v '^ *+' conftest.er1 >conftest.err
19908 rm -f conftest.er1
19909 cat conftest.err >&5
19910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } >/dev/null && {
19912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19913 test ! -s conftest.err
19914 }; then
19915 ac_header_preproc=yes
19916 else
19917 $as_echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19920 ac_header_preproc=no
19923 rm -f conftest.err conftest.$ac_ext
19924 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19925 $as_echo "$ac_header_preproc" >&6; }
19927 # So? What about this header?
19928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19929 yes:no: )
19930 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19931 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19932 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19933 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19934 ac_header_preproc=yes
19936 no:yes:* )
19937 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19938 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19939 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19940 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19941 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19942 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19943 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19944 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19945 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19946 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19947 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19948 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19951 esac
19952 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19953 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19954 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19955 $as_echo_n "(cached) " >&6
19956 else
19957 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19959 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19960 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19963 if test $ac_cv_header_sys_cpustats_h = yes; then
19964 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19965 #define UMAX 1
19966 _ACEOF
19973 if test $ac_have_func = no; then
19975 for ac_header in mach/mach.h
19977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19979 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19980 $as_echo_n "checking for $ac_header... " >&6; }
19981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19982 $as_echo_n "(cached) " >&6
19984 ac_res=`eval 'as_val=${'$as_ac_Header'}
19985 $as_echo "$as_val"'`
19986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19987 $as_echo "$ac_res" >&6; }
19988 else
19989 # Is the header compilable?
19990 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19991 $as_echo_n "checking $ac_header usability... " >&6; }
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h. */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 $ac_includes_default
19999 #include <$ac_header>
20000 _ACEOF
20001 rm -f conftest.$ac_objext
20002 if { (ac_try="$ac_compile"
20003 case "(($ac_try" in
20004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20005 *) ac_try_echo=$ac_try;;
20006 esac
20007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20008 $as_echo "$ac_try_echo") >&5
20009 (eval "$ac_compile") 2>conftest.er1
20010 ac_status=$?
20011 grep -v '^ *+' conftest.er1 >conftest.err
20012 rm -f conftest.er1
20013 cat conftest.err >&5
20014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } && {
20016 test -z "$ac_c_werror_flag" ||
20017 test ! -s conftest.err
20018 } && test -s conftest.$ac_objext; then
20019 ac_header_compiler=yes
20020 else
20021 $as_echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20024 ac_header_compiler=no
20027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20028 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20029 $as_echo "$ac_header_compiler" >&6; }
20031 # Is the header present?
20032 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20033 $as_echo_n "checking $ac_header presence... " >&6; }
20034 cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h. */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 #include <$ac_header>
20041 _ACEOF
20042 if { (ac_try="$ac_cpp conftest.$ac_ext"
20043 case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20046 esac
20047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20048 $as_echo "$ac_try_echo") >&5
20049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20050 ac_status=$?
20051 grep -v '^ *+' conftest.er1 >conftest.err
20052 rm -f conftest.er1
20053 cat conftest.err >&5
20054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); } >/dev/null && {
20056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20057 test ! -s conftest.err
20058 }; then
20059 ac_header_preproc=yes
20060 else
20061 $as_echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 ac_header_preproc=no
20067 rm -f conftest.err conftest.$ac_ext
20068 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20069 $as_echo "$ac_header_preproc" >&6; }
20071 # So? What about this header?
20072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20073 yes:no: )
20074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20075 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20077 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20078 ac_header_preproc=yes
20080 no:yes:* )
20081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20082 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20084 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20086 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20088 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20090 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20092 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20095 esac
20096 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20097 $as_echo_n "checking for $ac_header... " >&6; }
20098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20099 $as_echo_n "(cached) " >&6
20100 else
20101 eval "$as_ac_Header=\$ac_header_preproc"
20103 ac_res=`eval 'as_val=${'$as_ac_Header'}
20104 $as_echo "$as_val"'`
20105 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20106 $as_echo "$ac_res" >&6; }
20109 if test `eval 'as_val=${'$as_ac_Header'}
20110 $as_echo "$as_val"'` = yes; then
20111 cat >>confdefs.h <<_ACEOF
20112 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20113 _ACEOF
20117 done
20122 for ac_header in nlist.h
20124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20126 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20127 $as_echo_n "checking for $ac_header... " >&6; }
20128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20129 $as_echo_n "(cached) " >&6
20131 ac_res=`eval 'as_val=${'$as_ac_Header'}
20132 $as_echo "$as_val"'`
20133 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20134 $as_echo "$ac_res" >&6; }
20135 else
20136 # Is the header compilable?
20137 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20138 $as_echo_n "checking $ac_header usability... " >&6; }
20139 cat >conftest.$ac_ext <<_ACEOF
20140 /* confdefs.h. */
20141 _ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h. */
20145 $ac_includes_default
20146 #include <$ac_header>
20147 _ACEOF
20148 rm -f conftest.$ac_objext
20149 if { (ac_try="$ac_compile"
20150 case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20153 esac
20154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20155 $as_echo "$ac_try_echo") >&5
20156 (eval "$ac_compile") 2>conftest.er1
20157 ac_status=$?
20158 grep -v '^ *+' conftest.er1 >conftest.err
20159 rm -f conftest.er1
20160 cat conftest.err >&5
20161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } && {
20163 test -z "$ac_c_werror_flag" ||
20164 test ! -s conftest.err
20165 } && test -s conftest.$ac_objext; then
20166 ac_header_compiler=yes
20167 else
20168 $as_echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20171 ac_header_compiler=no
20174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20175 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20176 $as_echo "$ac_header_compiler" >&6; }
20178 # Is the header present?
20179 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20180 $as_echo_n "checking $ac_header presence... " >&6; }
20181 cat >conftest.$ac_ext <<_ACEOF
20182 /* confdefs.h. */
20183 _ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 #include <$ac_header>
20188 _ACEOF
20189 if { (ac_try="$ac_cpp conftest.$ac_ext"
20190 case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20193 esac
20194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20195 $as_echo "$ac_try_echo") >&5
20196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20197 ac_status=$?
20198 grep -v '^ *+' conftest.er1 >conftest.err
20199 rm -f conftest.er1
20200 cat conftest.err >&5
20201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); } >/dev/null && {
20203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20204 test ! -s conftest.err
20205 }; then
20206 ac_header_preproc=yes
20207 else
20208 $as_echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20211 ac_header_preproc=no
20214 rm -f conftest.err conftest.$ac_ext
20215 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20216 $as_echo "$ac_header_preproc" >&6; }
20218 # So? What about this header?
20219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20220 yes:no: )
20221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20222 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20224 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20225 ac_header_preproc=yes
20227 no:yes:* )
20228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20229 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20231 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20233 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20235 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20237 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20239 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20242 esac
20243 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20244 $as_echo_n "checking for $ac_header... " >&6; }
20245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20246 $as_echo_n "(cached) " >&6
20247 else
20248 eval "$as_ac_Header=\$ac_header_preproc"
20250 ac_res=`eval 'as_val=${'$as_ac_Header'}
20251 $as_echo "$as_val"'`
20252 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20253 $as_echo "$ac_res" >&6; }
20256 if test `eval 'as_val=${'$as_ac_Header'}
20257 $as_echo "$as_val"'` = yes; then
20258 cat >>confdefs.h <<_ACEOF
20259 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20260 _ACEOF
20261 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20262 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20263 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20264 $as_echo_n "(cached) " >&6
20265 else
20266 cat >conftest.$ac_ext <<_ACEOF
20267 /* confdefs.h. */
20268 _ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
20272 #include <nlist.h>
20275 main ()
20277 static struct nlist ac_aggr;
20278 if (ac_aggr.n_un.n_name)
20279 return 0;
20281 return 0;
20283 _ACEOF
20284 rm -f conftest.$ac_objext
20285 if { (ac_try="$ac_compile"
20286 case "(($ac_try" in
20287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20288 *) ac_try_echo=$ac_try;;
20289 esac
20290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20291 $as_echo "$ac_try_echo") >&5
20292 (eval "$ac_compile") 2>conftest.er1
20293 ac_status=$?
20294 grep -v '^ *+' conftest.er1 >conftest.err
20295 rm -f conftest.er1
20296 cat conftest.err >&5
20297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } && {
20299 test -z "$ac_c_werror_flag" ||
20300 test ! -s conftest.err
20301 } && test -s conftest.$ac_objext; then
20302 ac_cv_member_struct_nlist_n_un_n_name=yes
20303 else
20304 $as_echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20307 cat >conftest.$ac_ext <<_ACEOF
20308 /* confdefs.h. */
20309 _ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20313 #include <nlist.h>
20316 main ()
20318 static struct nlist ac_aggr;
20319 if (sizeof ac_aggr.n_un.n_name)
20320 return 0;
20322 return 0;
20324 _ACEOF
20325 rm -f conftest.$ac_objext
20326 if { (ac_try="$ac_compile"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20330 esac
20331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20332 $as_echo "$ac_try_echo") >&5
20333 (eval "$ac_compile") 2>conftest.er1
20334 ac_status=$?
20335 grep -v '^ *+' conftest.er1 >conftest.err
20336 rm -f conftest.er1
20337 cat conftest.err >&5
20338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } && {
20340 test -z "$ac_c_werror_flag" ||
20341 test ! -s conftest.err
20342 } && test -s conftest.$ac_objext; then
20343 ac_cv_member_struct_nlist_n_un_n_name=yes
20344 else
20345 $as_echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ac_cv_member_struct_nlist_n_un_n_name=no
20351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20357 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20358 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20360 cat >>confdefs.h <<_ACEOF
20361 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20362 _ACEOF
20365 cat >>confdefs.h <<\_ACEOF
20366 #define NLIST_NAME_UNION 1
20367 _ACEOF
20374 done
20377 done
20380 # Some definitions of getloadavg require that the program be installed setgid.
20381 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20382 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20383 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20384 $as_echo_n "(cached) " >&6
20385 else
20386 cat >conftest.$ac_ext <<_ACEOF
20387 /* confdefs.h. */
20388 _ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20392 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20393 #ifdef LDAV_PRIVILEGED
20394 Yowza Am I SETGID yet
20395 #endif
20396 _ACEOF
20397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20398 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20399 ac_cv_func_getloadavg_setgid=yes
20400 else
20401 ac_cv_func_getloadavg_setgid=no
20403 rm -f conftest*
20406 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20407 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20408 if test $ac_cv_func_getloadavg_setgid = yes; then
20409 NEED_SETGID=true
20411 cat >>confdefs.h <<\_ACEOF
20412 #define GETLOADAVG_PRIVILEGED 1
20413 _ACEOF
20415 else
20416 NEED_SETGID=false
20419 if test $ac_cv_func_getloadavg_setgid = yes; then
20420 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20421 $as_echo_n "checking group of /dev/kmem... " >&6; }
20422 if test "${ac_cv_group_kmem+set}" = set; then
20423 $as_echo_n "(cached) " >&6
20424 else
20425 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20426 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20427 # If we got an error (system does not support symlinks), try without -L.
20428 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20429 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20430 | sed -ne 's/[ ][ ]*/ /g;
20431 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20432 / /s/.* //;p;'`
20435 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20436 $as_echo "$ac_cv_group_kmem" >&6; }
20437 KMEM_GROUP=$ac_cv_group_kmem
20439 if test "x$ac_save_LIBS" = x; then
20440 GETLOADAVG_LIBS=$LIBS
20441 else
20442 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20444 LIBS=$ac_save_LIBS
20448 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20449 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20450 if test "${ac_cv_sys_largefile_source+set}" = set; then
20451 $as_echo_n "(cached) " >&6
20452 else
20453 while :; do
20454 cat >conftest.$ac_ext <<_ACEOF
20455 /* confdefs.h. */
20456 _ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460 #include <sys/types.h> /* for off_t */
20461 #include <stdio.h>
20463 main ()
20465 int (*fp) (FILE *, off_t, int) = fseeko;
20466 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20468 return 0;
20470 _ACEOF
20471 rm -f conftest.$ac_objext conftest$ac_exeext
20472 if { (ac_try="$ac_link"
20473 case "(($ac_try" in
20474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475 *) ac_try_echo=$ac_try;;
20476 esac
20477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20478 $as_echo "$ac_try_echo") >&5
20479 (eval "$ac_link") 2>conftest.er1
20480 ac_status=$?
20481 grep -v '^ *+' conftest.er1 >conftest.err
20482 rm -f conftest.er1
20483 cat conftest.err >&5
20484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } && {
20486 test -z "$ac_c_werror_flag" ||
20487 test ! -s conftest.err
20488 } && test -s conftest$ac_exeext && {
20489 test "$cross_compiling" = yes ||
20490 $as_test_x conftest$ac_exeext
20491 }; then
20492 ac_cv_sys_largefile_source=no; break
20493 else
20494 $as_echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20500 rm -rf conftest.dSYM
20501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20502 conftest$ac_exeext conftest.$ac_ext
20503 cat >conftest.$ac_ext <<_ACEOF
20504 /* confdefs.h. */
20505 _ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20509 #define _LARGEFILE_SOURCE 1
20510 #include <sys/types.h> /* for off_t */
20511 #include <stdio.h>
20513 main ()
20515 int (*fp) (FILE *, off_t, int) = fseeko;
20516 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20518 return 0;
20520 _ACEOF
20521 rm -f conftest.$ac_objext conftest$ac_exeext
20522 if { (ac_try="$ac_link"
20523 case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20526 esac
20527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20528 $as_echo "$ac_try_echo") >&5
20529 (eval "$ac_link") 2>conftest.er1
20530 ac_status=$?
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
20534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } && {
20536 test -z "$ac_c_werror_flag" ||
20537 test ! -s conftest.err
20538 } && test -s conftest$ac_exeext && {
20539 test "$cross_compiling" = yes ||
20540 $as_test_x conftest$ac_exeext
20541 }; then
20542 ac_cv_sys_largefile_source=1; break
20543 else
20544 $as_echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20550 rm -rf conftest.dSYM
20551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20552 conftest$ac_exeext conftest.$ac_ext
20553 ac_cv_sys_largefile_source=unknown
20554 break
20555 done
20557 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20558 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20559 case $ac_cv_sys_largefile_source in #(
20560 no | unknown) ;;
20562 cat >>confdefs.h <<_ACEOF
20563 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20564 _ACEOF
20566 esac
20567 rm -rf conftest*
20569 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20570 # in glibc 2.1.3, but that breaks too many other things.
20571 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20572 if test $ac_cv_sys_largefile_source != unknown; then
20574 cat >>confdefs.h <<\_ACEOF
20575 #define HAVE_FSEEKO 1
20576 _ACEOF
20581 # Configure getopt.
20582 # getopt.m4 serial 10
20584 # The getopt module assume you want GNU getopt, with getopt_long etc,
20585 # rather than vanilla POSIX getopt. This means your your code should
20586 # always include <getopt.h> for the getopt prototypes.
20598 # Prerequisites of lib/getopt*.
20603 GETOPT_H=
20605 for ac_header in getopt.h
20607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20609 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20610 $as_echo_n "checking for $ac_header... " >&6; }
20611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20612 $as_echo_n "(cached) " >&6
20614 ac_res=`eval 'as_val=${'$as_ac_Header'}
20615 $as_echo "$as_val"'`
20616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20617 $as_echo "$ac_res" >&6; }
20618 else
20619 # Is the header compilable?
20620 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20621 $as_echo_n "checking $ac_header usability... " >&6; }
20622 cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h. */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20628 $ac_includes_default
20629 #include <$ac_header>
20630 _ACEOF
20631 rm -f conftest.$ac_objext
20632 if { (ac_try="$ac_compile"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20636 esac
20637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20638 $as_echo "$ac_try_echo") >&5
20639 (eval "$ac_compile") 2>conftest.er1
20640 ac_status=$?
20641 grep -v '^ *+' conftest.er1 >conftest.err
20642 rm -f conftest.er1
20643 cat conftest.err >&5
20644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } && {
20646 test -z "$ac_c_werror_flag" ||
20647 test ! -s conftest.err
20648 } && test -s conftest.$ac_objext; then
20649 ac_header_compiler=yes
20650 else
20651 $as_echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 ac_header_compiler=no
20657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20658 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20659 $as_echo "$ac_header_compiler" >&6; }
20661 # Is the header present?
20662 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20663 $as_echo_n "checking $ac_header presence... " >&6; }
20664 cat >conftest.$ac_ext <<_ACEOF
20665 /* confdefs.h. */
20666 _ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h. */
20670 #include <$ac_header>
20671 _ACEOF
20672 if { (ac_try="$ac_cpp conftest.$ac_ext"
20673 case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20676 esac
20677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20678 $as_echo "$ac_try_echo") >&5
20679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20680 ac_status=$?
20681 grep -v '^ *+' conftest.er1 >conftest.err
20682 rm -f conftest.er1
20683 cat conftest.err >&5
20684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } >/dev/null && {
20686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20687 test ! -s conftest.err
20688 }; then
20689 ac_header_preproc=yes
20690 else
20691 $as_echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20694 ac_header_preproc=no
20697 rm -f conftest.err conftest.$ac_ext
20698 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20699 $as_echo "$ac_header_preproc" >&6; }
20701 # So? What about this header?
20702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20703 yes:no: )
20704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20705 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20708 ac_header_preproc=yes
20710 no:yes:* )
20711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20712 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20714 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20716 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20718 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20720 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20722 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20725 esac
20726 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20727 $as_echo_n "checking for $ac_header... " >&6; }
20728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20729 $as_echo_n "(cached) " >&6
20730 else
20731 eval "$as_ac_Header=\$ac_header_preproc"
20733 ac_res=`eval 'as_val=${'$as_ac_Header'}
20734 $as_echo "$as_val"'`
20735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20736 $as_echo "$ac_res" >&6; }
20739 if test `eval 'as_val=${'$as_ac_Header'}
20740 $as_echo "$as_val"'` = yes; then
20741 cat >>confdefs.h <<_ACEOF
20742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20743 _ACEOF
20745 else
20746 GETOPT_H=getopt.h
20749 done
20751 if test -z "$GETOPT_H"; then
20753 for ac_func in getopt_long_only
20755 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20756 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20757 $as_echo_n "checking for $ac_func... " >&6; }
20758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20759 $as_echo_n "(cached) " >&6
20760 else
20761 cat >conftest.$ac_ext <<_ACEOF
20762 /* confdefs.h. */
20763 _ACEOF
20764 cat confdefs.h >>conftest.$ac_ext
20765 cat >>conftest.$ac_ext <<_ACEOF
20766 /* end confdefs.h. */
20767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20769 #define $ac_func innocuous_$ac_func
20771 /* System header to define __stub macros and hopefully few prototypes,
20772 which can conflict with char $ac_func (); below.
20773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20774 <limits.h> exists even on freestanding compilers. */
20776 #ifdef __STDC__
20777 # include <limits.h>
20778 #else
20779 # include <assert.h>
20780 #endif
20782 #undef $ac_func
20784 /* Override any GCC internal prototype to avoid an error.
20785 Use char because int might match the return type of a GCC
20786 builtin and then its argument prototype would still apply. */
20787 #ifdef __cplusplus
20788 extern "C"
20789 #endif
20790 char $ac_func ();
20791 /* The GNU C library defines this for functions which it implements
20792 to always fail with ENOSYS. Some functions are actually named
20793 something starting with __ and the normal name is an alias. */
20794 #if defined __stub_$ac_func || defined __stub___$ac_func
20795 choke me
20796 #endif
20799 main ()
20801 return $ac_func ();
20803 return 0;
20805 _ACEOF
20806 rm -f conftest.$ac_objext conftest$ac_exeext
20807 if { (ac_try="$ac_link"
20808 case "(($ac_try" in
20809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810 *) ac_try_echo=$ac_try;;
20811 esac
20812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20813 $as_echo "$ac_try_echo") >&5
20814 (eval "$ac_link") 2>conftest.er1
20815 ac_status=$?
20816 grep -v '^ *+' conftest.er1 >conftest.err
20817 rm -f conftest.er1
20818 cat conftest.err >&5
20819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } && {
20821 test -z "$ac_c_werror_flag" ||
20822 test ! -s conftest.err
20823 } && test -s conftest$ac_exeext && {
20824 test "$cross_compiling" = yes ||
20825 $as_test_x conftest$ac_exeext
20826 }; then
20827 eval "$as_ac_var=yes"
20828 else
20829 $as_echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20832 eval "$as_ac_var=no"
20835 rm -rf conftest.dSYM
20836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20837 conftest$ac_exeext conftest.$ac_ext
20839 ac_res=`eval 'as_val=${'$as_ac_var'}
20840 $as_echo "$as_val"'`
20841 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20842 $as_echo "$ac_res" >&6; }
20843 if test `eval 'as_val=${'$as_ac_var'}
20844 $as_echo "$as_val"'` = yes; then
20845 cat >>confdefs.h <<_ACEOF
20846 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20847 _ACEOF
20849 else
20850 GETOPT_H=getopt.h
20852 done
20856 if test -z "$GETOPT_H"; then
20857 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20858 $as_echo_n "checking whether optreset is declared... " >&6; }
20859 if test "${ac_cv_have_decl_optreset+set}" = set; then
20860 $as_echo_n "(cached) " >&6
20861 else
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h. */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 #include <getopt.h>
20871 main ()
20873 #ifndef optreset
20874 (void) optreset;
20875 #endif
20878 return 0;
20880 _ACEOF
20881 rm -f conftest.$ac_objext
20882 if { (ac_try="$ac_compile"
20883 case "(($ac_try" in
20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885 *) ac_try_echo=$ac_try;;
20886 esac
20887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20888 $as_echo "$ac_try_echo") >&5
20889 (eval "$ac_compile") 2>conftest.er1
20890 ac_status=$?
20891 grep -v '^ *+' conftest.er1 >conftest.err
20892 rm -f conftest.er1
20893 cat conftest.err >&5
20894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); } && {
20896 test -z "$ac_c_werror_flag" ||
20897 test ! -s conftest.err
20898 } && test -s conftest.$ac_objext; then
20899 ac_cv_have_decl_optreset=yes
20900 else
20901 $as_echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20904 ac_cv_have_decl_optreset=no
20907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20909 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20910 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20911 if test $ac_cv_have_decl_optreset = yes; then
20912 GETOPT_H=getopt.h
20917 if test -z "$GETOPT_H"; then
20918 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20919 $as_echo_n "checking for working GNU getopt function... " >&6; }
20920 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20921 $as_echo_n "(cached) " >&6
20922 else
20923 if test "$cross_compiling" = yes; then
20924 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20925 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20926 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20927 $as_echo_n "(cached) " >&6
20928 else
20929 cat >conftest.$ac_ext <<_ACEOF
20930 /* confdefs.h. */
20931 _ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20935 #include <getopt.h>
20938 main ()
20940 #ifndef getopt_clip
20941 (void) getopt_clip;
20942 #endif
20945 return 0;
20947 _ACEOF
20948 rm -f conftest.$ac_objext
20949 if { (ac_try="$ac_compile"
20950 case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20953 esac
20954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20955 $as_echo "$ac_try_echo") >&5
20956 (eval "$ac_compile") 2>conftest.er1
20957 ac_status=$?
20958 grep -v '^ *+' conftest.er1 >conftest.err
20959 rm -f conftest.er1
20960 cat conftest.err >&5
20961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } && {
20963 test -z "$ac_c_werror_flag" ||
20964 test ! -s conftest.err
20965 } && test -s conftest.$ac_objext; then
20966 ac_cv_have_decl_getopt_clip=yes
20967 else
20968 $as_echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20971 ac_cv_have_decl_getopt_clip=no
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20976 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20977 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20978 if test $ac_cv_have_decl_getopt_clip = yes; then
20979 gl_cv_func_gnu_getopt=no
20980 else
20981 gl_cv_func_gnu_getopt=yes
20984 else
20985 cat >conftest.$ac_ext <<_ACEOF
20986 /* confdefs.h. */
20987 _ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h. */
20991 #include <getopt.h>
20993 main ()
20996 char *myargv[3];
20997 myargv[0] = "conftest";
20998 myargv[1] = "-+";
20999 myargv[2] = 0;
21000 return getopt (2, myargv, "+a") != '?';
21003 return 0;
21005 _ACEOF
21006 rm -f conftest$ac_exeext
21007 if { (ac_try="$ac_link"
21008 case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21011 esac
21012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21013 $as_echo "$ac_try_echo") >&5
21014 (eval "$ac_link") 2>&5
21015 ac_status=$?
21016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21018 { (case "(($ac_try" in
21019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020 *) ac_try_echo=$ac_try;;
21021 esac
21022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21023 $as_echo "$ac_try_echo") >&5
21024 (eval "$ac_try") 2>&5
21025 ac_status=$?
21026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; }; then
21028 gl_cv_func_gnu_getopt=yes
21029 else
21030 $as_echo "$as_me: program exited with status $ac_status" >&5
21031 $as_echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 ( exit $ac_status )
21035 gl_cv_func_gnu_getopt=no
21037 rm -rf conftest.dSYM
21038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21043 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
21044 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21045 if test "$gl_cv_func_gnu_getopt" = "no"; then
21046 GETOPT_H=getopt.h
21052 if test -n "$GETOPT_H"; then
21055 GETOPT_H=getopt.h
21057 cat >>confdefs.h <<\_ACEOF
21058 #define __GETOPT_PREFIX rpl_
21059 _ACEOF
21064 GETOPTOBJS='getopt.o getopt1.o'
21071 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
21072 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21073 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21074 $as_echo_n "(cached) " >&6
21075 else
21076 # Use it with a single arg.
21077 cat >conftest.$ac_ext <<_ACEOF
21078 /* confdefs.h. */
21079 _ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21083 $ac_includes_default
21085 main ()
21087 getpgrp (0);
21089 return 0;
21091 _ACEOF
21092 rm -f conftest.$ac_objext
21093 if { (ac_try="$ac_compile"
21094 case "(($ac_try" in
21095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096 *) ac_try_echo=$ac_try;;
21097 esac
21098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21099 $as_echo "$ac_try_echo") >&5
21100 (eval "$ac_compile") 2>conftest.er1
21101 ac_status=$?
21102 grep -v '^ *+' conftest.er1 >conftest.err
21103 rm -f conftest.er1
21104 cat conftest.err >&5
21105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } && {
21107 test -z "$ac_c_werror_flag" ||
21108 test ! -s conftest.err
21109 } && test -s conftest.$ac_objext; then
21110 ac_cv_func_getpgrp_void=no
21111 else
21112 $as_echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21115 ac_cv_func_getpgrp_void=yes
21118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21121 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
21122 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21123 if test $ac_cv_func_getpgrp_void = yes; then
21125 cat >>confdefs.h <<\_ACEOF
21126 #define GETPGRP_VOID 1
21127 _ACEOF
21133 for ac_func in strftime
21135 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21136 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21137 $as_echo_n "checking for $ac_func... " >&6; }
21138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21139 $as_echo_n "(cached) " >&6
21140 else
21141 cat >conftest.$ac_ext <<_ACEOF
21142 /* confdefs.h. */
21143 _ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21149 #define $ac_func innocuous_$ac_func
21151 /* System header to define __stub macros and hopefully few prototypes,
21152 which can conflict with char $ac_func (); below.
21153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21154 <limits.h> exists even on freestanding compilers. */
21156 #ifdef __STDC__
21157 # include <limits.h>
21158 #else
21159 # include <assert.h>
21160 #endif
21162 #undef $ac_func
21164 /* Override any GCC internal prototype to avoid an error.
21165 Use char because int might match the return type of a GCC
21166 builtin and then its argument prototype would still apply. */
21167 #ifdef __cplusplus
21168 extern "C"
21169 #endif
21170 char $ac_func ();
21171 /* The GNU C library defines this for functions which it implements
21172 to always fail with ENOSYS. Some functions are actually named
21173 something starting with __ and the normal name is an alias. */
21174 #if defined __stub_$ac_func || defined __stub___$ac_func
21175 choke me
21176 #endif
21179 main ()
21181 return $ac_func ();
21183 return 0;
21185 _ACEOF
21186 rm -f conftest.$ac_objext conftest$ac_exeext
21187 if { (ac_try="$ac_link"
21188 case "(($ac_try" in
21189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190 *) ac_try_echo=$ac_try;;
21191 esac
21192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21193 $as_echo "$ac_try_echo") >&5
21194 (eval "$ac_link") 2>conftest.er1
21195 ac_status=$?
21196 grep -v '^ *+' conftest.er1 >conftest.err
21197 rm -f conftest.er1
21198 cat conftest.err >&5
21199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } && {
21201 test -z "$ac_c_werror_flag" ||
21202 test ! -s conftest.err
21203 } && test -s conftest$ac_exeext && {
21204 test "$cross_compiling" = yes ||
21205 $as_test_x conftest$ac_exeext
21206 }; then
21207 eval "$as_ac_var=yes"
21208 else
21209 $as_echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21212 eval "$as_ac_var=no"
21215 rm -rf conftest.dSYM
21216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21217 conftest$ac_exeext conftest.$ac_ext
21219 ac_res=`eval 'as_val=${'$as_ac_var'}
21220 $as_echo "$as_val"'`
21221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21222 $as_echo "$ac_res" >&6; }
21223 if test `eval 'as_val=${'$as_ac_var'}
21224 $as_echo "$as_val"'` = yes; then
21225 cat >>confdefs.h <<_ACEOF
21226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21227 _ACEOF
21229 else
21230 # strftime is in -lintl on SCO UNIX.
21231 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21232 $as_echo_n "checking for strftime in -lintl... " >&6; }
21233 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21234 $as_echo_n "(cached) " >&6
21235 else
21236 ac_check_lib_save_LIBS=$LIBS
21237 LIBS="-lintl $LIBS"
21238 cat >conftest.$ac_ext <<_ACEOF
21239 /* confdefs.h. */
21240 _ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21245 /* Override any GCC internal prototype to avoid an error.
21246 Use char because int might match the return type of a GCC
21247 builtin and then its argument prototype would still apply. */
21248 #ifdef __cplusplus
21249 extern "C"
21250 #endif
21251 char strftime ();
21253 main ()
21255 return strftime ();
21257 return 0;
21259 _ACEOF
21260 rm -f conftest.$ac_objext conftest$ac_exeext
21261 if { (ac_try="$ac_link"
21262 case "(($ac_try" in
21263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264 *) ac_try_echo=$ac_try;;
21265 esac
21266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21267 $as_echo "$ac_try_echo") >&5
21268 (eval "$ac_link") 2>conftest.er1
21269 ac_status=$?
21270 grep -v '^ *+' conftest.er1 >conftest.err
21271 rm -f conftest.er1
21272 cat conftest.err >&5
21273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); } && {
21275 test -z "$ac_c_werror_flag" ||
21276 test ! -s conftest.err
21277 } && test -s conftest$ac_exeext && {
21278 test "$cross_compiling" = yes ||
21279 $as_test_x conftest$ac_exeext
21280 }; then
21281 ac_cv_lib_intl_strftime=yes
21282 else
21283 $as_echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ac_cv_lib_intl_strftime=no
21289 rm -rf conftest.dSYM
21290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21291 conftest$ac_exeext conftest.$ac_ext
21292 LIBS=$ac_check_lib_save_LIBS
21294 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21295 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21296 if test $ac_cv_lib_intl_strftime = yes; then
21297 cat >>confdefs.h <<\_ACEOF
21298 #define HAVE_STRFTIME 1
21299 _ACEOF
21301 LIBS="-lintl $LIBS"
21305 done
21308 # UNIX98 PTYs.
21310 for ac_func in grantpt
21312 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21313 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21314 $as_echo_n "checking for $ac_func... " >&6; }
21315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21316 $as_echo_n "(cached) " >&6
21317 else
21318 cat >conftest.$ac_ext <<_ACEOF
21319 /* confdefs.h. */
21320 _ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21326 #define $ac_func innocuous_$ac_func
21328 /* System header to define __stub macros and hopefully few prototypes,
21329 which can conflict with char $ac_func (); below.
21330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21331 <limits.h> exists even on freestanding compilers. */
21333 #ifdef __STDC__
21334 # include <limits.h>
21335 #else
21336 # include <assert.h>
21337 #endif
21339 #undef $ac_func
21341 /* Override any GCC internal prototype to avoid an error.
21342 Use char because int might match the return type of a GCC
21343 builtin and then its argument prototype would still apply. */
21344 #ifdef __cplusplus
21345 extern "C"
21346 #endif
21347 char $ac_func ();
21348 /* The GNU C library defines this for functions which it implements
21349 to always fail with ENOSYS. Some functions are actually named
21350 something starting with __ and the normal name is an alias. */
21351 #if defined __stub_$ac_func || defined __stub___$ac_func
21352 choke me
21353 #endif
21356 main ()
21358 return $ac_func ();
21360 return 0;
21362 _ACEOF
21363 rm -f conftest.$ac_objext conftest$ac_exeext
21364 if { (ac_try="$ac_link"
21365 case "(($ac_try" in
21366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21367 *) ac_try_echo=$ac_try;;
21368 esac
21369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21370 $as_echo "$ac_try_echo") >&5
21371 (eval "$ac_link") 2>conftest.er1
21372 ac_status=$?
21373 grep -v '^ *+' conftest.er1 >conftest.err
21374 rm -f conftest.er1
21375 cat conftest.err >&5
21376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); } && {
21378 test -z "$ac_c_werror_flag" ||
21379 test ! -s conftest.err
21380 } && test -s conftest$ac_exeext && {
21381 test "$cross_compiling" = yes ||
21382 $as_test_x conftest$ac_exeext
21383 }; then
21384 eval "$as_ac_var=yes"
21385 else
21386 $as_echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21389 eval "$as_ac_var=no"
21392 rm -rf conftest.dSYM
21393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21394 conftest$ac_exeext conftest.$ac_ext
21396 ac_res=`eval 'as_val=${'$as_ac_var'}
21397 $as_echo "$as_val"'`
21398 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21399 $as_echo "$ac_res" >&6; }
21400 if test `eval 'as_val=${'$as_ac_var'}
21401 $as_echo "$as_val"'` = yes; then
21402 cat >>confdefs.h <<_ACEOF
21403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21404 _ACEOF
21407 done
21410 # PTY-related GNU extensions.
21412 for ac_func in getpt
21414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21415 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21416 $as_echo_n "checking for $ac_func... " >&6; }
21417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21418 $as_echo_n "(cached) " >&6
21419 else
21420 cat >conftest.$ac_ext <<_ACEOF
21421 /* confdefs.h. */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21428 #define $ac_func innocuous_$ac_func
21430 /* System header to define __stub macros and hopefully few prototypes,
21431 which can conflict with char $ac_func (); below.
21432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21433 <limits.h> exists even on freestanding compilers. */
21435 #ifdef __STDC__
21436 # include <limits.h>
21437 #else
21438 # include <assert.h>
21439 #endif
21441 #undef $ac_func
21443 /* Override any GCC internal prototype to avoid an error.
21444 Use char because int might match the return type of a GCC
21445 builtin and then its argument prototype would still apply. */
21446 #ifdef __cplusplus
21447 extern "C"
21448 #endif
21449 char $ac_func ();
21450 /* The GNU C library defines this for functions which it implements
21451 to always fail with ENOSYS. Some functions are actually named
21452 something starting with __ and the normal name is an alias. */
21453 #if defined __stub_$ac_func || defined __stub___$ac_func
21454 choke me
21455 #endif
21458 main ()
21460 return $ac_func ();
21462 return 0;
21464 _ACEOF
21465 rm -f conftest.$ac_objext conftest$ac_exeext
21466 if { (ac_try="$ac_link"
21467 case "(($ac_try" in
21468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469 *) ac_try_echo=$ac_try;;
21470 esac
21471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21472 $as_echo "$ac_try_echo") >&5
21473 (eval "$ac_link") 2>conftest.er1
21474 ac_status=$?
21475 grep -v '^ *+' conftest.er1 >conftest.err
21476 rm -f conftest.er1
21477 cat conftest.err >&5
21478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } && {
21480 test -z "$ac_c_werror_flag" ||
21481 test ! -s conftest.err
21482 } && test -s conftest$ac_exeext && {
21483 test "$cross_compiling" = yes ||
21484 $as_test_x conftest$ac_exeext
21485 }; then
21486 eval "$as_ac_var=yes"
21487 else
21488 $as_echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 eval "$as_ac_var=no"
21494 rm -rf conftest.dSYM
21495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21496 conftest$ac_exeext conftest.$ac_ext
21498 ac_res=`eval 'as_val=${'$as_ac_var'}
21499 $as_echo "$as_val"'`
21500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21501 $as_echo "$ac_res" >&6; }
21502 if test `eval 'as_val=${'$as_ac_var'}
21503 $as_echo "$as_val"'` = yes; then
21504 cat >>confdefs.h <<_ACEOF
21505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21506 _ACEOF
21509 done
21512 # Check this now, so that we will NOT find the above functions in ncurses.
21513 # That is because we have not set up to link ncurses in lib-src.
21514 # It's better to believe a function is not available
21515 # than to expect to find it in ncurses.
21516 # Also we need tputs and friends to be able to build at all.
21517 have_tputs_et_al=true
21518 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21519 $as_echo_n "checking for library containing tputs... " >&6; }
21520 if test "${ac_cv_search_tputs+set}" = set; then
21521 $as_echo_n "(cached) " >&6
21522 else
21523 ac_func_search_save_LIBS=$LIBS
21524 cat >conftest.$ac_ext <<_ACEOF
21525 /* confdefs.h. */
21526 _ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h. */
21531 /* Override any GCC internal prototype to avoid an error.
21532 Use char because int might match the return type of a GCC
21533 builtin and then its argument prototype would still apply. */
21534 #ifdef __cplusplus
21535 extern "C"
21536 #endif
21537 char tputs ();
21539 main ()
21541 return tputs ();
21543 return 0;
21545 _ACEOF
21546 for ac_lib in '' ncurses terminfo termcap; do
21547 if test -z "$ac_lib"; then
21548 ac_res="none required"
21549 else
21550 ac_res=-l$ac_lib
21551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21553 rm -f conftest.$ac_objext conftest$ac_exeext
21554 if { (ac_try="$ac_link"
21555 case "(($ac_try" in
21556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557 *) ac_try_echo=$ac_try;;
21558 esac
21559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21560 $as_echo "$ac_try_echo") >&5
21561 (eval "$ac_link") 2>conftest.er1
21562 ac_status=$?
21563 grep -v '^ *+' conftest.er1 >conftest.err
21564 rm -f conftest.er1
21565 cat conftest.err >&5
21566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); } && {
21568 test -z "$ac_c_werror_flag" ||
21569 test ! -s conftest.err
21570 } && test -s conftest$ac_exeext && {
21571 test "$cross_compiling" = yes ||
21572 $as_test_x conftest$ac_exeext
21573 }; then
21574 ac_cv_search_tputs=$ac_res
21575 else
21576 $as_echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21582 rm -rf conftest.dSYM
21583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21584 conftest$ac_exeext
21585 if test "${ac_cv_search_tputs+set}" = set; then
21586 break
21588 done
21589 if test "${ac_cv_search_tputs+set}" = set; then
21591 else
21592 ac_cv_search_tputs=no
21594 rm conftest.$ac_ext
21595 LIBS=$ac_func_search_save_LIBS
21597 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21598 $as_echo "$ac_cv_search_tputs" >&6; }
21599 ac_res=$ac_cv_search_tputs
21600 if test "$ac_res" != no; then
21601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21603 else
21604 have_tputs_et_al=false
21607 if test "$have_tputs_et_al" != true; then
21608 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21609 Maybe some development libraries/packages are missing? Try installing
21610 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21611 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21612 Maybe some development libraries/packages are missing? Try installing
21613 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21614 { (exit 1); exit 1; }; }
21616 # Must define this when any termcap library is found.
21618 cat >>confdefs.h <<\_ACEOF
21619 #define HAVE_LIBNCURSES 1
21620 _ACEOF
21622 ## FIXME This was the cpp logic, but I am not sure it is right.
21623 ## The above test has not necessarily found libncurses.
21624 HAVE_LIBNCURSES=yes
21626 ## Use terminfo instead of termcap?
21627 ## Note only system files NOT using terminfo are:
21628 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
21629 ## darwin|gnu without ncurses.
21630 TERMINFO=no
21631 LIBS_TERMCAP=
21632 case "$opsys" in
21633 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21634 ## hpux10-20: Use the system provided termcap(3) library.
21635 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21636 ## is necessary. Otherwise Emacs dumps core when run -nw.
21637 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
21639 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21640 ## The ncurses library has been moved out of the System framework in
21641 ## Mac OS X 10.2. So if configure detects it, set the command-line
21642 ## option to use it.
21643 darwin|gnu*)
21644 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21645 if test "x$HAVE_LIBNCURSES" = "xyes"; then
21646 TERMINFO=yes
21647 LIBS_TERMCAP="-lncurses"
21651 freebsd)
21652 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo" >&5
21653 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21654 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21655 $as_echo_n "(cached) " >&6
21656 else
21657 cat >conftest.$ac_ext <<_ACEOF
21658 /* confdefs.h. */
21659 _ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21663 #include <osreldate.h>
21665 main ()
21667 #if __FreeBSD_version < 400000
21668 fail;
21669 #endif
21672 return 0;
21674 _ACEOF
21675 rm -f conftest.$ac_objext conftest$ac_exeext
21676 if { (ac_try="$ac_link"
21677 case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21680 esac
21681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21682 $as_echo "$ac_try_echo") >&5
21683 (eval "$ac_link") 2>conftest.er1
21684 ac_status=$?
21685 grep -v '^ *+' conftest.er1 >conftest.err
21686 rm -f conftest.er1
21687 cat conftest.err >&5
21688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } && {
21690 test -z "$ac_c_werror_flag" ||
21691 test ! -s conftest.err
21692 } && test -s conftest$ac_exeext && {
21693 test "$cross_compiling" = yes ||
21694 $as_test_x conftest$ac_exeext
21695 }; then
21696 emacs_cv_freebsd_terminfo=yes
21697 else
21698 $as_echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21701 emacs_cv_freebsd_terminfo=no
21704 rm -rf conftest.dSYM
21705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21706 conftest$ac_exeext conftest.$ac_ext
21710 { $as_echo "$as_me:$LINENO: result: $emacs_cv_freebsd_terminfo" >&5
21711 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21713 if test $emacs_cv_freebsd_terminfo = yes; then
21714 TERMINFO=yes
21715 LIBS_TERMCAP="-lncurses"
21716 else
21717 LIBS_TERMCAP="-ltermcap"
21721 netbsd)
21722 if test $ac_cv_search_tputs = -lterminfo; then
21723 TERMINFO=yes
21724 LIBS_TERMCAP="-lterminfo"
21725 else
21726 LIBS_TERMCAP="-ltermcap"
21730 esac
21732 case "$opsys" in
21733 ## hpux: Make sure we get select from libc rather than from libcurses
21734 ## because libcurses on HPUX 10.10 has a broken version of select.
21735 ## We used to use -lc -lcurses, but this may be cleaner.
21736 hpux*) LIBS_TERMCAP="-ltermcap" ;;
21738 openbsd) LIBS_TERMCAP="-lncurses" ;;
21740 ## Must use system termcap, if we use any termcap. It does special things.
21741 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21742 esac
21744 TERMCAP_OBJ=tparam.o
21745 if test $TERMINFO = yes; then
21747 cat >>confdefs.h <<\_ACEOF
21748 #define TERMINFO 1
21749 _ACEOF
21752 ## Default used to be -ltermcap. Add a case above if need something else.
21753 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
21755 TERMCAP_OBJ=terminfo.o
21761 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21762 resolv=no
21763 cat >conftest.$ac_ext <<_ACEOF
21764 /* confdefs.h. */
21765 _ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h. */
21769 #include <netinet/in.h>
21770 #include <arpa/nameser.h>
21771 #include <resolv.h>
21773 main ()
21775 return res_init();
21777 return 0;
21779 _ACEOF
21780 rm -f conftest.$ac_objext conftest$ac_exeext
21781 if { (ac_try="$ac_link"
21782 case "(($ac_try" in
21783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784 *) ac_try_echo=$ac_try;;
21785 esac
21786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21787 $as_echo "$ac_try_echo") >&5
21788 (eval "$ac_link") 2>conftest.er1
21789 ac_status=$?
21790 grep -v '^ *+' conftest.er1 >conftest.err
21791 rm -f conftest.er1
21792 cat conftest.err >&5
21793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } && {
21795 test -z "$ac_c_werror_flag" ||
21796 test ! -s conftest.err
21797 } && test -s conftest$ac_exeext && {
21798 test "$cross_compiling" = yes ||
21799 $as_test_x conftest$ac_exeext
21800 }; then
21801 have_res_init=yes
21802 else
21803 $as_echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21806 have_res_init=no
21809 rm -rf conftest.dSYM
21810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21811 conftest$ac_exeext conftest.$ac_ext
21812 if test "$have_res_init" = no; then
21813 OLIBS="$LIBS"
21814 LIBS="$LIBS -lresolv"
21815 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21816 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21817 cat >conftest.$ac_ext <<_ACEOF
21818 /* confdefs.h. */
21819 _ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h. */
21823 #include <netinet/in.h>
21824 #include <arpa/nameser.h>
21825 #include <resolv.h>
21827 main ()
21829 return res_init();
21831 return 0;
21833 _ACEOF
21834 rm -f conftest.$ac_objext conftest$ac_exeext
21835 if { (ac_try="$ac_link"
21836 case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21839 esac
21840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21841 $as_echo "$ac_try_echo") >&5
21842 (eval "$ac_link") 2>conftest.er1
21843 ac_status=$?
21844 grep -v '^ *+' conftest.er1 >conftest.err
21845 rm -f conftest.er1
21846 cat conftest.err >&5
21847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); } && {
21849 test -z "$ac_c_werror_flag" ||
21850 test ! -s conftest.err
21851 } && test -s conftest$ac_exeext && {
21852 test "$cross_compiling" = yes ||
21853 $as_test_x conftest$ac_exeext
21854 }; then
21855 have_res_init=yes
21856 else
21857 $as_echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21860 have_res_init=no
21863 rm -rf conftest.dSYM
21864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21865 conftest$ac_exeext conftest.$ac_ext
21866 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21867 $as_echo "$have_res_init" >&6; }
21868 if test "$have_res_init" = yes ; then
21869 resolv=yes
21871 LIBS="$OLIBS"
21874 if test "$have_res_init" = yes; then
21876 cat >>confdefs.h <<\_ACEOF
21877 #define HAVE_RES_INIT 1
21878 _ACEOF
21882 # Do we need the Hesiod library to provide the support routines?
21883 LIBHESIOD=
21884 if test "$with_hesiod" != no ; then
21885 # Don't set $LIBS here -- see comments above. FIXME which comments?
21886 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21887 $as_echo_n "checking for res_send... " >&6; }
21888 if test "${ac_cv_func_res_send+set}" = set; then
21889 $as_echo_n "(cached) " >&6
21890 else
21891 cat >conftest.$ac_ext <<_ACEOF
21892 /* confdefs.h. */
21893 _ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21897 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21899 #define res_send innocuous_res_send
21901 /* System header to define __stub macros and hopefully few prototypes,
21902 which can conflict with char res_send (); below.
21903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21904 <limits.h> exists even on freestanding compilers. */
21906 #ifdef __STDC__
21907 # include <limits.h>
21908 #else
21909 # include <assert.h>
21910 #endif
21912 #undef res_send
21914 /* Override any GCC internal prototype to avoid an error.
21915 Use char because int might match the return type of a GCC
21916 builtin and then its argument prototype would still apply. */
21917 #ifdef __cplusplus
21918 extern "C"
21919 #endif
21920 char res_send ();
21921 /* The GNU C library defines this for functions which it implements
21922 to always fail with ENOSYS. Some functions are actually named
21923 something starting with __ and the normal name is an alias. */
21924 #if defined __stub_res_send || defined __stub___res_send
21925 choke me
21926 #endif
21929 main ()
21931 return res_send ();
21933 return 0;
21935 _ACEOF
21936 rm -f conftest.$ac_objext conftest$ac_exeext
21937 if { (ac_try="$ac_link"
21938 case "(($ac_try" in
21939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940 *) ac_try_echo=$ac_try;;
21941 esac
21942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21943 $as_echo "$ac_try_echo") >&5
21944 (eval "$ac_link") 2>conftest.er1
21945 ac_status=$?
21946 grep -v '^ *+' conftest.er1 >conftest.err
21947 rm -f conftest.er1
21948 cat conftest.err >&5
21949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } && {
21951 test -z "$ac_c_werror_flag" ||
21952 test ! -s conftest.err
21953 } && test -s conftest$ac_exeext && {
21954 test "$cross_compiling" = yes ||
21955 $as_test_x conftest$ac_exeext
21956 }; then
21957 ac_cv_func_res_send=yes
21958 else
21959 $as_echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21962 ac_cv_func_res_send=no
21965 rm -rf conftest.dSYM
21966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21967 conftest$ac_exeext conftest.$ac_ext
21969 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21970 $as_echo "$ac_cv_func_res_send" >&6; }
21971 if test $ac_cv_func_res_send = yes; then
21973 else
21974 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21975 $as_echo_n "checking for __res_send... " >&6; }
21976 if test "${ac_cv_func___res_send+set}" = set; then
21977 $as_echo_n "(cached) " >&6
21978 else
21979 cat >conftest.$ac_ext <<_ACEOF
21980 /* confdefs.h. */
21981 _ACEOF
21982 cat confdefs.h >>conftest.$ac_ext
21983 cat >>conftest.$ac_ext <<_ACEOF
21984 /* end confdefs.h. */
21985 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21987 #define __res_send innocuous___res_send
21989 /* System header to define __stub macros and hopefully few prototypes,
21990 which can conflict with char __res_send (); below.
21991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21992 <limits.h> exists even on freestanding compilers. */
21994 #ifdef __STDC__
21995 # include <limits.h>
21996 #else
21997 # include <assert.h>
21998 #endif
22000 #undef __res_send
22002 /* Override any GCC internal prototype to avoid an error.
22003 Use char because int might match the return type of a GCC
22004 builtin and then its argument prototype would still apply. */
22005 #ifdef __cplusplus
22006 extern "C"
22007 #endif
22008 char __res_send ();
22009 /* The GNU C library defines this for functions which it implements
22010 to always fail with ENOSYS. Some functions are actually named
22011 something starting with __ and the normal name is an alias. */
22012 #if defined __stub___res_send || defined __stub_____res_send
22013 choke me
22014 #endif
22017 main ()
22019 return __res_send ();
22021 return 0;
22023 _ACEOF
22024 rm -f conftest.$ac_objext conftest$ac_exeext
22025 if { (ac_try="$ac_link"
22026 case "(($ac_try" in
22027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028 *) ac_try_echo=$ac_try;;
22029 esac
22030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22031 $as_echo "$ac_try_echo") >&5
22032 (eval "$ac_link") 2>conftest.er1
22033 ac_status=$?
22034 grep -v '^ *+' conftest.er1 >conftest.err
22035 rm -f conftest.er1
22036 cat conftest.err >&5
22037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); } && {
22039 test -z "$ac_c_werror_flag" ||
22040 test ! -s conftest.err
22041 } && test -s conftest$ac_exeext && {
22042 test "$cross_compiling" = yes ||
22043 $as_test_x conftest$ac_exeext
22044 }; then
22045 ac_cv_func___res_send=yes
22046 else
22047 $as_echo "$as_me: failed program was:" >&5
22048 sed 's/^/| /' conftest.$ac_ext >&5
22050 ac_cv_func___res_send=no
22053 rm -rf conftest.dSYM
22054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22055 conftest$ac_exeext conftest.$ac_ext
22057 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
22058 $as_echo "$ac_cv_func___res_send" >&6; }
22059 if test $ac_cv_func___res_send = yes; then
22061 else
22062 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
22063 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22064 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22065 $as_echo_n "(cached) " >&6
22066 else
22067 ac_check_lib_save_LIBS=$LIBS
22068 LIBS="-lresolv $LIBS"
22069 cat >conftest.$ac_ext <<_ACEOF
22070 /* confdefs.h. */
22071 _ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h. */
22076 /* Override any GCC internal prototype to avoid an error.
22077 Use char because int might match the return type of a GCC
22078 builtin and then its argument prototype would still apply. */
22079 #ifdef __cplusplus
22080 extern "C"
22081 #endif
22082 char res_send ();
22084 main ()
22086 return res_send ();
22088 return 0;
22090 _ACEOF
22091 rm -f conftest.$ac_objext conftest$ac_exeext
22092 if { (ac_try="$ac_link"
22093 case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22096 esac
22097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22098 $as_echo "$ac_try_echo") >&5
22099 (eval "$ac_link") 2>conftest.er1
22100 ac_status=$?
22101 grep -v '^ *+' conftest.er1 >conftest.err
22102 rm -f conftest.er1
22103 cat conftest.err >&5
22104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } && {
22106 test -z "$ac_c_werror_flag" ||
22107 test ! -s conftest.err
22108 } && test -s conftest$ac_exeext && {
22109 test "$cross_compiling" = yes ||
22110 $as_test_x conftest$ac_exeext
22111 }; then
22112 ac_cv_lib_resolv_res_send=yes
22113 else
22114 $as_echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22117 ac_cv_lib_resolv_res_send=no
22120 rm -rf conftest.dSYM
22121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22122 conftest$ac_exeext conftest.$ac_ext
22123 LIBS=$ac_check_lib_save_LIBS
22125 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
22126 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22127 if test $ac_cv_lib_resolv_res_send = yes; then
22128 resolv=yes
22129 else
22130 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
22131 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22132 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22133 $as_echo_n "(cached) " >&6
22134 else
22135 ac_check_lib_save_LIBS=$LIBS
22136 LIBS="-lresolv $LIBS"
22137 cat >conftest.$ac_ext <<_ACEOF
22138 /* confdefs.h. */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22144 /* Override any GCC internal prototype to avoid an error.
22145 Use char because int might match the return type of a GCC
22146 builtin and then its argument prototype would still apply. */
22147 #ifdef __cplusplus
22148 extern "C"
22149 #endif
22150 char __res_send ();
22152 main ()
22154 return __res_send ();
22156 return 0;
22158 _ACEOF
22159 rm -f conftest.$ac_objext conftest$ac_exeext
22160 if { (ac_try="$ac_link"
22161 case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22164 esac
22165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22166 $as_echo "$ac_try_echo") >&5
22167 (eval "$ac_link") 2>conftest.er1
22168 ac_status=$?
22169 grep -v '^ *+' conftest.er1 >conftest.err
22170 rm -f conftest.er1
22171 cat conftest.err >&5
22172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); } && {
22174 test -z "$ac_c_werror_flag" ||
22175 test ! -s conftest.err
22176 } && test -s conftest$ac_exeext && {
22177 test "$cross_compiling" = yes ||
22178 $as_test_x conftest$ac_exeext
22179 }; then
22180 ac_cv_lib_resolv___res_send=yes
22181 else
22182 $as_echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22185 ac_cv_lib_resolv___res_send=no
22188 rm -rf conftest.dSYM
22189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22190 conftest$ac_exeext conftest.$ac_ext
22191 LIBS=$ac_check_lib_save_LIBS
22193 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
22194 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22195 if test $ac_cv_lib_resolv___res_send = yes; then
22196 resolv=yes
22205 if test "$resolv" = yes ; then
22206 RESOLVLIB=-lresolv
22207 else
22208 RESOLVLIB=
22210 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
22211 $as_echo_n "checking for hes_getmailhost... " >&6; }
22212 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22213 $as_echo_n "(cached) " >&6
22214 else
22215 cat >conftest.$ac_ext <<_ACEOF
22216 /* confdefs.h. */
22217 _ACEOF
22218 cat confdefs.h >>conftest.$ac_ext
22219 cat >>conftest.$ac_ext <<_ACEOF
22220 /* end confdefs.h. */
22221 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22223 #define hes_getmailhost innocuous_hes_getmailhost
22225 /* System header to define __stub macros and hopefully few prototypes,
22226 which can conflict with char hes_getmailhost (); below.
22227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22228 <limits.h> exists even on freestanding compilers. */
22230 #ifdef __STDC__
22231 # include <limits.h>
22232 #else
22233 # include <assert.h>
22234 #endif
22236 #undef hes_getmailhost
22238 /* Override any GCC internal prototype to avoid an error.
22239 Use char because int might match the return type of a GCC
22240 builtin and then its argument prototype would still apply. */
22241 #ifdef __cplusplus
22242 extern "C"
22243 #endif
22244 char hes_getmailhost ();
22245 /* The GNU C library defines this for functions which it implements
22246 to always fail with ENOSYS. Some functions are actually named
22247 something starting with __ and the normal name is an alias. */
22248 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22249 choke me
22250 #endif
22253 main ()
22255 return hes_getmailhost ();
22257 return 0;
22259 _ACEOF
22260 rm -f conftest.$ac_objext conftest$ac_exeext
22261 if { (ac_try="$ac_link"
22262 case "(($ac_try" in
22263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 *) ac_try_echo=$ac_try;;
22265 esac
22266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22267 $as_echo "$ac_try_echo") >&5
22268 (eval "$ac_link") 2>conftest.er1
22269 ac_status=$?
22270 grep -v '^ *+' conftest.er1 >conftest.err
22271 rm -f conftest.er1
22272 cat conftest.err >&5
22273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); } && {
22275 test -z "$ac_c_werror_flag" ||
22276 test ! -s conftest.err
22277 } && test -s conftest$ac_exeext && {
22278 test "$cross_compiling" = yes ||
22279 $as_test_x conftest$ac_exeext
22280 }; then
22281 ac_cv_func_hes_getmailhost=yes
22282 else
22283 $as_echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.$ac_ext >&5
22286 ac_cv_func_hes_getmailhost=no
22289 rm -rf conftest.dSYM
22290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22291 conftest$ac_exeext conftest.$ac_ext
22293 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
22294 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22295 if test $ac_cv_func_hes_getmailhost = yes; then
22297 else
22298 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
22299 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22300 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22301 $as_echo_n "(cached) " >&6
22302 else
22303 ac_check_lib_save_LIBS=$LIBS
22304 LIBS="-lhesiod $RESOLVLIB $LIBS"
22305 cat >conftest.$ac_ext <<_ACEOF
22306 /* confdefs.h. */
22307 _ACEOF
22308 cat confdefs.h >>conftest.$ac_ext
22309 cat >>conftest.$ac_ext <<_ACEOF
22310 /* end confdefs.h. */
22312 /* Override any GCC internal prototype to avoid an error.
22313 Use char because int might match the return type of a GCC
22314 builtin and then its argument prototype would still apply. */
22315 #ifdef __cplusplus
22316 extern "C"
22317 #endif
22318 char hes_getmailhost ();
22320 main ()
22322 return hes_getmailhost ();
22324 return 0;
22326 _ACEOF
22327 rm -f conftest.$ac_objext conftest$ac_exeext
22328 if { (ac_try="$ac_link"
22329 case "(($ac_try" in
22330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22331 *) ac_try_echo=$ac_try;;
22332 esac
22333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22334 $as_echo "$ac_try_echo") >&5
22335 (eval "$ac_link") 2>conftest.er1
22336 ac_status=$?
22337 grep -v '^ *+' conftest.er1 >conftest.err
22338 rm -f conftest.er1
22339 cat conftest.err >&5
22340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); } && {
22342 test -z "$ac_c_werror_flag" ||
22343 test ! -s conftest.err
22344 } && test -s conftest$ac_exeext && {
22345 test "$cross_compiling" = yes ||
22346 $as_test_x conftest$ac_exeext
22347 }; then
22348 ac_cv_lib_hesiod_hes_getmailhost=yes
22349 else
22350 $as_echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ac_cv_lib_hesiod_hes_getmailhost=no
22356 rm -rf conftest.dSYM
22357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22358 conftest$ac_exeext conftest.$ac_ext
22359 LIBS=$ac_check_lib_save_LIBS
22361 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22362 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22363 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22364 hesiod=yes
22365 else
22372 if test x"$hesiod" = xyes; then
22374 cat >>confdefs.h <<\_ACEOF
22375 #define HAVE_LIBHESIOD 1
22376 _ACEOF
22378 LIBHESIOD=-lhesiod
22383 # Do we need libresolv (due to res_init or Hesiod)?
22384 if test "$resolv" = yes ; then
22386 cat >>confdefs.h <<\_ACEOF
22387 #define HAVE_LIBRESOLV 1
22388 _ACEOF
22390 LIBRESOLV=-lresolv
22391 else
22392 LIBRESOLV=
22396 # These tell us which Kerberos-related libraries to use.
22397 COM_ERRLIB=
22398 CRYPTOLIB=
22399 KRB5LIB=
22400 DESLIB=
22401 KRB4LIB=
22403 if test "${with_kerberos}" != no; then
22404 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22405 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22406 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22407 $as_echo_n "(cached) " >&6
22408 else
22409 ac_check_lib_save_LIBS=$LIBS
22410 LIBS="-lcom_err $LIBS"
22411 cat >conftest.$ac_ext <<_ACEOF
22412 /* confdefs.h. */
22413 _ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22418 /* Override any GCC internal prototype to avoid an error.
22419 Use char because int might match the return type of a GCC
22420 builtin and then its argument prototype would still apply. */
22421 #ifdef __cplusplus
22422 extern "C"
22423 #endif
22424 char com_err ();
22426 main ()
22428 return com_err ();
22430 return 0;
22432 _ACEOF
22433 rm -f conftest.$ac_objext conftest$ac_exeext
22434 if { (ac_try="$ac_link"
22435 case "(($ac_try" in
22436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437 *) ac_try_echo=$ac_try;;
22438 esac
22439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22440 $as_echo "$ac_try_echo") >&5
22441 (eval "$ac_link") 2>conftest.er1
22442 ac_status=$?
22443 grep -v '^ *+' conftest.er1 >conftest.err
22444 rm -f conftest.er1
22445 cat conftest.err >&5
22446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); } && {
22448 test -z "$ac_c_werror_flag" ||
22449 test ! -s conftest.err
22450 } && test -s conftest$ac_exeext && {
22451 test "$cross_compiling" = yes ||
22452 $as_test_x conftest$ac_exeext
22453 }; then
22454 ac_cv_lib_com_err_com_err=yes
22455 else
22456 $as_echo "$as_me: failed program was:" >&5
22457 sed 's/^/| /' conftest.$ac_ext >&5
22459 ac_cv_lib_com_err_com_err=no
22462 rm -rf conftest.dSYM
22463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22464 conftest$ac_exeext conftest.$ac_ext
22465 LIBS=$ac_check_lib_save_LIBS
22467 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22468 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22469 if test $ac_cv_lib_com_err_com_err = yes; then
22470 have_com_err=yes
22471 else
22472 have_com_err=no
22475 if test $have_com_err = yes; then
22476 COM_ERRLIB=-lcom_err
22477 LIBS="$COM_ERRLIB $LIBS"
22479 cat >>confdefs.h <<\_ACEOF
22480 #define HAVE_LIBCOM_ERR 1
22481 _ACEOF
22484 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22485 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22486 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22487 $as_echo_n "(cached) " >&6
22488 else
22489 ac_check_lib_save_LIBS=$LIBS
22490 LIBS="-lcrypto $LIBS"
22491 cat >conftest.$ac_ext <<_ACEOF
22492 /* confdefs.h. */
22493 _ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h. */
22498 /* Override any GCC internal prototype to avoid an error.
22499 Use char because int might match the return type of a GCC
22500 builtin and then its argument prototype would still apply. */
22501 #ifdef __cplusplus
22502 extern "C"
22503 #endif
22504 char mit_des_cbc_encrypt ();
22506 main ()
22508 return mit_des_cbc_encrypt ();
22510 return 0;
22512 _ACEOF
22513 rm -f conftest.$ac_objext conftest$ac_exeext
22514 if { (ac_try="$ac_link"
22515 case "(($ac_try" in
22516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517 *) ac_try_echo=$ac_try;;
22518 esac
22519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22520 $as_echo "$ac_try_echo") >&5
22521 (eval "$ac_link") 2>conftest.er1
22522 ac_status=$?
22523 grep -v '^ *+' conftest.er1 >conftest.err
22524 rm -f conftest.er1
22525 cat conftest.err >&5
22526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); } && {
22528 test -z "$ac_c_werror_flag" ||
22529 test ! -s conftest.err
22530 } && test -s conftest$ac_exeext && {
22531 test "$cross_compiling" = yes ||
22532 $as_test_x conftest$ac_exeext
22533 }; then
22534 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22535 else
22536 $as_echo "$as_me: failed program was:" >&5
22537 sed 's/^/| /' conftest.$ac_ext >&5
22539 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22542 rm -rf conftest.dSYM
22543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22544 conftest$ac_exeext conftest.$ac_ext
22545 LIBS=$ac_check_lib_save_LIBS
22547 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22548 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22549 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22550 have_crypto=yes
22551 else
22552 have_crypto=no
22555 if test $have_crypto = yes; then
22556 CRYPTOLIB=-lcrypto
22557 LIBS="$CRYPTOLIB $LIBS"
22559 cat >>confdefs.h <<\_ACEOF
22560 #define HAVE_LIBCRYPTO 1
22561 _ACEOF
22564 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22565 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22566 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22567 $as_echo_n "(cached) " >&6
22568 else
22569 ac_check_lib_save_LIBS=$LIBS
22570 LIBS="-lk5crypto $LIBS"
22571 cat >conftest.$ac_ext <<_ACEOF
22572 /* confdefs.h. */
22573 _ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22578 /* Override any GCC internal prototype to avoid an error.
22579 Use char because int might match the return type of a GCC
22580 builtin and then its argument prototype would still apply. */
22581 #ifdef __cplusplus
22582 extern "C"
22583 #endif
22584 char mit_des_cbc_encrypt ();
22586 main ()
22588 return mit_des_cbc_encrypt ();
22590 return 0;
22592 _ACEOF
22593 rm -f conftest.$ac_objext conftest$ac_exeext
22594 if { (ac_try="$ac_link"
22595 case "(($ac_try" in
22596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22598 esac
22599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22600 $as_echo "$ac_try_echo") >&5
22601 (eval "$ac_link") 2>conftest.er1
22602 ac_status=$?
22603 grep -v '^ *+' conftest.er1 >conftest.err
22604 rm -f conftest.er1
22605 cat conftest.err >&5
22606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); } && {
22608 test -z "$ac_c_werror_flag" ||
22609 test ! -s conftest.err
22610 } && test -s conftest$ac_exeext && {
22611 test "$cross_compiling" = yes ||
22612 $as_test_x conftest$ac_exeext
22613 }; then
22614 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22615 else
22616 $as_echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22619 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22622 rm -rf conftest.dSYM
22623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22624 conftest$ac_exeext conftest.$ac_ext
22625 LIBS=$ac_check_lib_save_LIBS
22627 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22628 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22629 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22630 have_k5crypto=yes
22631 else
22632 have_k5crypto=no
22635 if test $have_k5crypto = yes; then
22636 CRYPTOLIB=-lk5crypto
22637 LIBS="$CRYPTOLIB $LIBS"
22639 cat >>confdefs.h <<\_ACEOF
22640 #define HAVE_LIBK5CRYPTO 1
22641 _ACEOF
22644 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22645 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22646 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22647 $as_echo_n "(cached) " >&6
22648 else
22649 ac_check_lib_save_LIBS=$LIBS
22650 LIBS="-lkrb5 $LIBS"
22651 cat >conftest.$ac_ext <<_ACEOF
22652 /* confdefs.h. */
22653 _ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h. */
22658 /* Override any GCC internal prototype to avoid an error.
22659 Use char because int might match the return type of a GCC
22660 builtin and then its argument prototype would still apply. */
22661 #ifdef __cplusplus
22662 extern "C"
22663 #endif
22664 char krb5_init_context ();
22666 main ()
22668 return krb5_init_context ();
22670 return 0;
22672 _ACEOF
22673 rm -f conftest.$ac_objext conftest$ac_exeext
22674 if { (ac_try="$ac_link"
22675 case "(($ac_try" in
22676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22677 *) ac_try_echo=$ac_try;;
22678 esac
22679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22680 $as_echo "$ac_try_echo") >&5
22681 (eval "$ac_link") 2>conftest.er1
22682 ac_status=$?
22683 grep -v '^ *+' conftest.er1 >conftest.err
22684 rm -f conftest.er1
22685 cat conftest.err >&5
22686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); } && {
22688 test -z "$ac_c_werror_flag" ||
22689 test ! -s conftest.err
22690 } && test -s conftest$ac_exeext && {
22691 test "$cross_compiling" = yes ||
22692 $as_test_x conftest$ac_exeext
22693 }; then
22694 ac_cv_lib_krb5_krb5_init_context=yes
22695 else
22696 $as_echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22699 ac_cv_lib_krb5_krb5_init_context=no
22702 rm -rf conftest.dSYM
22703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22704 conftest$ac_exeext conftest.$ac_ext
22705 LIBS=$ac_check_lib_save_LIBS
22707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22708 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22709 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22710 have_krb5=yes
22711 else
22712 have_krb5=no
22715 if test $have_krb5=yes; then
22716 KRB5LIB=-lkrb5
22717 LIBS="$KRB5LIB $LIBS"
22719 cat >>confdefs.h <<\_ACEOF
22720 #define HAVE_LIBKRB5 1
22721 _ACEOF
22724 if test "${with_kerberos5}" = no; then
22725 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22726 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22727 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22728 $as_echo_n "(cached) " >&6
22729 else
22730 ac_check_lib_save_LIBS=$LIBS
22731 LIBS="-ldes425 $LIBS"
22732 cat >conftest.$ac_ext <<_ACEOF
22733 /* confdefs.h. */
22734 _ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22739 /* Override any GCC internal prototype to avoid an error.
22740 Use char because int might match the return type of a GCC
22741 builtin and then its argument prototype would still apply. */
22742 #ifdef __cplusplus
22743 extern "C"
22744 #endif
22745 char des_cbc_encrypt ();
22747 main ()
22749 return des_cbc_encrypt ();
22751 return 0;
22753 _ACEOF
22754 rm -f conftest.$ac_objext conftest$ac_exeext
22755 if { (ac_try="$ac_link"
22756 case "(($ac_try" in
22757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22758 *) ac_try_echo=$ac_try;;
22759 esac
22760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22761 $as_echo "$ac_try_echo") >&5
22762 (eval "$ac_link") 2>conftest.er1
22763 ac_status=$?
22764 grep -v '^ *+' conftest.er1 >conftest.err
22765 rm -f conftest.er1
22766 cat conftest.err >&5
22767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); } && {
22769 test -z "$ac_c_werror_flag" ||
22770 test ! -s conftest.err
22771 } && test -s conftest$ac_exeext && {
22772 test "$cross_compiling" = yes ||
22773 $as_test_x conftest$ac_exeext
22774 }; then
22775 ac_cv_lib_des425_des_cbc_encrypt=yes
22776 else
22777 $as_echo "$as_me: failed program was:" >&5
22778 sed 's/^/| /' conftest.$ac_ext >&5
22780 ac_cv_lib_des425_des_cbc_encrypt=no
22783 rm -rf conftest.dSYM
22784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22785 conftest$ac_exeext conftest.$ac_ext
22786 LIBS=$ac_check_lib_save_LIBS
22788 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22789 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22790 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22791 have_des425=yes
22792 else
22793 have_des425=no
22796 if test $have_des425 = yes; then
22797 DESLIB=-ldes425
22798 LIBS="$DESLIB $LIBS"
22800 cat >>confdefs.h <<\_ACEOF
22801 #define HAVE_LIBDES425 1
22802 _ACEOF
22804 else
22805 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22806 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22807 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22808 $as_echo_n "(cached) " >&6
22809 else
22810 ac_check_lib_save_LIBS=$LIBS
22811 LIBS="-ldes $LIBS"
22812 cat >conftest.$ac_ext <<_ACEOF
22813 /* confdefs.h. */
22814 _ACEOF
22815 cat confdefs.h >>conftest.$ac_ext
22816 cat >>conftest.$ac_ext <<_ACEOF
22817 /* end confdefs.h. */
22819 /* Override any GCC internal prototype to avoid an error.
22820 Use char because int might match the return type of a GCC
22821 builtin and then its argument prototype would still apply. */
22822 #ifdef __cplusplus
22823 extern "C"
22824 #endif
22825 char des_cbc_encrypt ();
22827 main ()
22829 return des_cbc_encrypt ();
22831 return 0;
22833 _ACEOF
22834 rm -f conftest.$ac_objext conftest$ac_exeext
22835 if { (ac_try="$ac_link"
22836 case "(($ac_try" in
22837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22838 *) ac_try_echo=$ac_try;;
22839 esac
22840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22841 $as_echo "$ac_try_echo") >&5
22842 (eval "$ac_link") 2>conftest.er1
22843 ac_status=$?
22844 grep -v '^ *+' conftest.er1 >conftest.err
22845 rm -f conftest.er1
22846 cat conftest.err >&5
22847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); } && {
22849 test -z "$ac_c_werror_flag" ||
22850 test ! -s conftest.err
22851 } && test -s conftest$ac_exeext && {
22852 test "$cross_compiling" = yes ||
22853 $as_test_x conftest$ac_exeext
22854 }; then
22855 ac_cv_lib_des_des_cbc_encrypt=yes
22856 else
22857 $as_echo "$as_me: failed program was:" >&5
22858 sed 's/^/| /' conftest.$ac_ext >&5
22860 ac_cv_lib_des_des_cbc_encrypt=no
22863 rm -rf conftest.dSYM
22864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22865 conftest$ac_exeext conftest.$ac_ext
22866 LIBS=$ac_check_lib_save_LIBS
22868 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22869 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22870 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22871 have_des=yes
22872 else
22873 have_des=no
22876 if test $have_des = yes; then
22877 DESLIB=-ldes
22878 LIBS="$DESLIB $LIBS"
22880 cat >>confdefs.h <<\_ACEOF
22881 #define HAVE_LIBDES 1
22882 _ACEOF
22886 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22887 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22888 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22889 $as_echo_n "(cached) " >&6
22890 else
22891 ac_check_lib_save_LIBS=$LIBS
22892 LIBS="-lkrb4 $LIBS"
22893 cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h. */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22900 /* Override any GCC internal prototype to avoid an error.
22901 Use char because int might match the return type of a GCC
22902 builtin and then its argument prototype would still apply. */
22903 #ifdef __cplusplus
22904 extern "C"
22905 #endif
22906 char krb_get_cred ();
22908 main ()
22910 return krb_get_cred ();
22912 return 0;
22914 _ACEOF
22915 rm -f conftest.$ac_objext conftest$ac_exeext
22916 if { (ac_try="$ac_link"
22917 case "(($ac_try" in
22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919 *) ac_try_echo=$ac_try;;
22920 esac
22921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22922 $as_echo "$ac_try_echo") >&5
22923 (eval "$ac_link") 2>conftest.er1
22924 ac_status=$?
22925 grep -v '^ *+' conftest.er1 >conftest.err
22926 rm -f conftest.er1
22927 cat conftest.err >&5
22928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } && {
22930 test -z "$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 } && test -s conftest$ac_exeext && {
22933 test "$cross_compiling" = yes ||
22934 $as_test_x conftest$ac_exeext
22935 }; then
22936 ac_cv_lib_krb4_krb_get_cred=yes
22937 else
22938 $as_echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22941 ac_cv_lib_krb4_krb_get_cred=no
22944 rm -rf conftest.dSYM
22945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22946 conftest$ac_exeext conftest.$ac_ext
22947 LIBS=$ac_check_lib_save_LIBS
22949 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22950 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22951 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22952 have_krb4=yes
22953 else
22954 have_krb4=no
22957 if test $have_krb4 = yes; then
22958 KRB4LIB=-lkrb4
22959 LIBS="$KRB4LIB $LIBS"
22961 cat >>confdefs.h <<\_ACEOF
22962 #define HAVE_LIBKRB4 1
22963 _ACEOF
22965 else
22966 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22967 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22968 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22969 $as_echo_n "(cached) " >&6
22970 else
22971 ac_check_lib_save_LIBS=$LIBS
22972 LIBS="-lkrb $LIBS"
22973 cat >conftest.$ac_ext <<_ACEOF
22974 /* confdefs.h. */
22975 _ACEOF
22976 cat confdefs.h >>conftest.$ac_ext
22977 cat >>conftest.$ac_ext <<_ACEOF
22978 /* end confdefs.h. */
22980 /* Override any GCC internal prototype to avoid an error.
22981 Use char because int might match the return type of a GCC
22982 builtin and then its argument prototype would still apply. */
22983 #ifdef __cplusplus
22984 extern "C"
22985 #endif
22986 char krb_get_cred ();
22988 main ()
22990 return krb_get_cred ();
22992 return 0;
22994 _ACEOF
22995 rm -f conftest.$ac_objext conftest$ac_exeext
22996 if { (ac_try="$ac_link"
22997 case "(($ac_try" in
22998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999 *) ac_try_echo=$ac_try;;
23000 esac
23001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23002 $as_echo "$ac_try_echo") >&5
23003 (eval "$ac_link") 2>conftest.er1
23004 ac_status=$?
23005 grep -v '^ *+' conftest.er1 >conftest.err
23006 rm -f conftest.er1
23007 cat conftest.err >&5
23008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } && {
23010 test -z "$ac_c_werror_flag" ||
23011 test ! -s conftest.err
23012 } && test -s conftest$ac_exeext && {
23013 test "$cross_compiling" = yes ||
23014 $as_test_x conftest$ac_exeext
23015 }; then
23016 ac_cv_lib_krb_krb_get_cred=yes
23017 else
23018 $as_echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23021 ac_cv_lib_krb_krb_get_cred=no
23024 rm -rf conftest.dSYM
23025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23026 conftest$ac_exeext conftest.$ac_ext
23027 LIBS=$ac_check_lib_save_LIBS
23029 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
23030 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23031 if test $ac_cv_lib_krb_krb_get_cred = yes; then
23032 have_krb=yes
23033 else
23034 have_krb=no
23037 if test $have_krb = yes; then
23038 KRB4LIB=-lkrb
23039 LIBS="$KRB4LIB $LIBS"
23041 cat >>confdefs.h <<\_ACEOF
23042 #define HAVE_LIBKRB 1
23043 _ACEOF
23049 if test "${with_kerberos5}" != no; then
23051 for ac_header in krb5.h
23053 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23055 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23056 $as_echo_n "checking for $ac_header... " >&6; }
23057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23058 $as_echo_n "(cached) " >&6
23060 ac_res=`eval 'as_val=${'$as_ac_Header'}
23061 $as_echo "$as_val"'`
23062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23063 $as_echo "$ac_res" >&6; }
23064 else
23065 # Is the header compilable?
23066 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23067 $as_echo_n "checking $ac_header usability... " >&6; }
23068 cat >conftest.$ac_ext <<_ACEOF
23069 /* confdefs.h. */
23070 _ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h. */
23074 $ac_includes_default
23075 #include <$ac_header>
23076 _ACEOF
23077 rm -f conftest.$ac_objext
23078 if { (ac_try="$ac_compile"
23079 case "(($ac_try" in
23080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23081 *) ac_try_echo=$ac_try;;
23082 esac
23083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23084 $as_echo "$ac_try_echo") >&5
23085 (eval "$ac_compile") 2>conftest.er1
23086 ac_status=$?
23087 grep -v '^ *+' conftest.er1 >conftest.err
23088 rm -f conftest.er1
23089 cat conftest.err >&5
23090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } && {
23092 test -z "$ac_c_werror_flag" ||
23093 test ! -s conftest.err
23094 } && test -s conftest.$ac_objext; then
23095 ac_header_compiler=yes
23096 else
23097 $as_echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23100 ac_header_compiler=no
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23105 $as_echo "$ac_header_compiler" >&6; }
23107 # Is the header present?
23108 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23109 $as_echo_n "checking $ac_header presence... " >&6; }
23110 cat >conftest.$ac_ext <<_ACEOF
23111 /* confdefs.h. */
23112 _ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h. */
23116 #include <$ac_header>
23117 _ACEOF
23118 if { (ac_try="$ac_cpp conftest.$ac_ext"
23119 case "(($ac_try" in
23120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121 *) ac_try_echo=$ac_try;;
23122 esac
23123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23124 $as_echo "$ac_try_echo") >&5
23125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23126 ac_status=$?
23127 grep -v '^ *+' conftest.er1 >conftest.err
23128 rm -f conftest.er1
23129 cat conftest.err >&5
23130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } >/dev/null && {
23132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23133 test ! -s conftest.err
23134 }; then
23135 ac_header_preproc=yes
23136 else
23137 $as_echo "$as_me: failed program was:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23140 ac_header_preproc=no
23143 rm -f conftest.err conftest.$ac_ext
23144 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23145 $as_echo "$ac_header_preproc" >&6; }
23147 # So? What about this header?
23148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23149 yes:no: )
23150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23151 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23154 ac_header_preproc=yes
23156 no:yes:* )
23157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23158 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23160 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23162 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23164 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23166 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23168 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23171 esac
23172 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23173 $as_echo_n "checking for $ac_header... " >&6; }
23174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23175 $as_echo_n "(cached) " >&6
23176 else
23177 eval "$as_ac_Header=\$ac_header_preproc"
23179 ac_res=`eval 'as_val=${'$as_ac_Header'}
23180 $as_echo "$as_val"'`
23181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23182 $as_echo "$ac_res" >&6; }
23185 if test `eval 'as_val=${'$as_ac_Header'}
23186 $as_echo "$as_val"'` = yes; then
23187 cat >>confdefs.h <<_ACEOF
23188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23189 _ACEOF
23190 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
23191 $as_echo_n "checking for krb5_error.text... " >&6; }
23192 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23193 $as_echo_n "(cached) " >&6
23194 else
23195 cat >conftest.$ac_ext <<_ACEOF
23196 /* confdefs.h. */
23197 _ACEOF
23198 cat confdefs.h >>conftest.$ac_ext
23199 cat >>conftest.$ac_ext <<_ACEOF
23200 /* end confdefs.h. */
23201 #include <krb5.h>
23204 main ()
23206 static krb5_error ac_aggr;
23207 if (ac_aggr.text)
23208 return 0;
23210 return 0;
23212 _ACEOF
23213 rm -f conftest.$ac_objext
23214 if { (ac_try="$ac_compile"
23215 case "(($ac_try" in
23216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23218 esac
23219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23220 $as_echo "$ac_try_echo") >&5
23221 (eval "$ac_compile") 2>conftest.er1
23222 ac_status=$?
23223 grep -v '^ *+' conftest.er1 >conftest.err
23224 rm -f conftest.er1
23225 cat conftest.err >&5
23226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } && {
23228 test -z "$ac_c_werror_flag" ||
23229 test ! -s conftest.err
23230 } && test -s conftest.$ac_objext; then
23231 ac_cv_member_krb5_error_text=yes
23232 else
23233 $as_echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23236 cat >conftest.$ac_ext <<_ACEOF
23237 /* confdefs.h. */
23238 _ACEOF
23239 cat confdefs.h >>conftest.$ac_ext
23240 cat >>conftest.$ac_ext <<_ACEOF
23241 /* end confdefs.h. */
23242 #include <krb5.h>
23245 main ()
23247 static krb5_error ac_aggr;
23248 if (sizeof ac_aggr.text)
23249 return 0;
23251 return 0;
23253 _ACEOF
23254 rm -f conftest.$ac_objext
23255 if { (ac_try="$ac_compile"
23256 case "(($ac_try" in
23257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23258 *) ac_try_echo=$ac_try;;
23259 esac
23260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23261 $as_echo "$ac_try_echo") >&5
23262 (eval "$ac_compile") 2>conftest.er1
23263 ac_status=$?
23264 grep -v '^ *+' conftest.er1 >conftest.err
23265 rm -f conftest.er1
23266 cat conftest.err >&5
23267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } && {
23269 test -z "$ac_c_werror_flag" ||
23270 test ! -s conftest.err
23271 } && test -s conftest.$ac_objext; then
23272 ac_cv_member_krb5_error_text=yes
23273 else
23274 $as_echo "$as_me: failed program was:" >&5
23275 sed 's/^/| /' conftest.$ac_ext >&5
23277 ac_cv_member_krb5_error_text=no
23280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23285 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
23286 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23287 if test $ac_cv_member_krb5_error_text = yes; then
23289 cat >>confdefs.h <<_ACEOF
23290 #define HAVE_KRB5_ERROR_TEXT 1
23291 _ACEOF
23295 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
23296 $as_echo_n "checking for krb5_error.e_text... " >&6; }
23297 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23298 $as_echo_n "(cached) " >&6
23299 else
23300 cat >conftest.$ac_ext <<_ACEOF
23301 /* confdefs.h. */
23302 _ACEOF
23303 cat confdefs.h >>conftest.$ac_ext
23304 cat >>conftest.$ac_ext <<_ACEOF
23305 /* end confdefs.h. */
23306 #include <krb5.h>
23309 main ()
23311 static krb5_error ac_aggr;
23312 if (ac_aggr.e_text)
23313 return 0;
23315 return 0;
23317 _ACEOF
23318 rm -f conftest.$ac_objext
23319 if { (ac_try="$ac_compile"
23320 case "(($ac_try" in
23321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322 *) ac_try_echo=$ac_try;;
23323 esac
23324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23325 $as_echo "$ac_try_echo") >&5
23326 (eval "$ac_compile") 2>conftest.er1
23327 ac_status=$?
23328 grep -v '^ *+' conftest.er1 >conftest.err
23329 rm -f conftest.er1
23330 cat conftest.err >&5
23331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); } && {
23333 test -z "$ac_c_werror_flag" ||
23334 test ! -s conftest.err
23335 } && test -s conftest.$ac_objext; then
23336 ac_cv_member_krb5_error_e_text=yes
23337 else
23338 $as_echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23341 cat >conftest.$ac_ext <<_ACEOF
23342 /* confdefs.h. */
23343 _ACEOF
23344 cat confdefs.h >>conftest.$ac_ext
23345 cat >>conftest.$ac_ext <<_ACEOF
23346 /* end confdefs.h. */
23347 #include <krb5.h>
23350 main ()
23352 static krb5_error ac_aggr;
23353 if (sizeof ac_aggr.e_text)
23354 return 0;
23356 return 0;
23358 _ACEOF
23359 rm -f conftest.$ac_objext
23360 if { (ac_try="$ac_compile"
23361 case "(($ac_try" in
23362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23363 *) ac_try_echo=$ac_try;;
23364 esac
23365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23366 $as_echo "$ac_try_echo") >&5
23367 (eval "$ac_compile") 2>conftest.er1
23368 ac_status=$?
23369 grep -v '^ *+' conftest.er1 >conftest.err
23370 rm -f conftest.er1
23371 cat conftest.err >&5
23372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); } && {
23374 test -z "$ac_c_werror_flag" ||
23375 test ! -s conftest.err
23376 } && test -s conftest.$ac_objext; then
23377 ac_cv_member_krb5_error_e_text=yes
23378 else
23379 $as_echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23382 ac_cv_member_krb5_error_e_text=no
23385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23390 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23391 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23392 if test $ac_cv_member_krb5_error_e_text = yes; then
23394 cat >>confdefs.h <<_ACEOF
23395 #define HAVE_KRB5_ERROR_E_TEXT 1
23396 _ACEOF
23403 done
23405 else
23407 for ac_header in des.h
23409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23411 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23412 $as_echo_n "checking for $ac_header... " >&6; }
23413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23414 $as_echo_n "(cached) " >&6
23416 ac_res=`eval 'as_val=${'$as_ac_Header'}
23417 $as_echo "$as_val"'`
23418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23419 $as_echo "$ac_res" >&6; }
23420 else
23421 # Is the header compilable?
23422 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23423 $as_echo_n "checking $ac_header usability... " >&6; }
23424 cat >conftest.$ac_ext <<_ACEOF
23425 /* confdefs.h. */
23426 _ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h. */
23430 $ac_includes_default
23431 #include <$ac_header>
23432 _ACEOF
23433 rm -f conftest.$ac_objext
23434 if { (ac_try="$ac_compile"
23435 case "(($ac_try" in
23436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23437 *) ac_try_echo=$ac_try;;
23438 esac
23439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23440 $as_echo "$ac_try_echo") >&5
23441 (eval "$ac_compile") 2>conftest.er1
23442 ac_status=$?
23443 grep -v '^ *+' conftest.er1 >conftest.err
23444 rm -f conftest.er1
23445 cat conftest.err >&5
23446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } && {
23448 test -z "$ac_c_werror_flag" ||
23449 test ! -s conftest.err
23450 } && test -s conftest.$ac_objext; then
23451 ac_header_compiler=yes
23452 else
23453 $as_echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23456 ac_header_compiler=no
23459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23460 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23461 $as_echo "$ac_header_compiler" >&6; }
23463 # Is the header present?
23464 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23465 $as_echo_n "checking $ac_header presence... " >&6; }
23466 cat >conftest.$ac_ext <<_ACEOF
23467 /* confdefs.h. */
23468 _ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h. */
23472 #include <$ac_header>
23473 _ACEOF
23474 if { (ac_try="$ac_cpp conftest.$ac_ext"
23475 case "(($ac_try" in
23476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23477 *) ac_try_echo=$ac_try;;
23478 esac
23479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23480 $as_echo "$ac_try_echo") >&5
23481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23482 ac_status=$?
23483 grep -v '^ *+' conftest.er1 >conftest.err
23484 rm -f conftest.er1
23485 cat conftest.err >&5
23486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); } >/dev/null && {
23488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23489 test ! -s conftest.err
23490 }; then
23491 ac_header_preproc=yes
23492 else
23493 $as_echo "$as_me: failed program was:" >&5
23494 sed 's/^/| /' conftest.$ac_ext >&5
23496 ac_header_preproc=no
23499 rm -f conftest.err conftest.$ac_ext
23500 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23501 $as_echo "$ac_header_preproc" >&6; }
23503 # So? What about this header?
23504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23505 yes:no: )
23506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23507 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23510 ac_header_preproc=yes
23512 no:yes:* )
23513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23514 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23516 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23518 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23520 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23522 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23524 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23527 esac
23528 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23529 $as_echo_n "checking for $ac_header... " >&6; }
23530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23531 $as_echo_n "(cached) " >&6
23532 else
23533 eval "$as_ac_Header=\$ac_header_preproc"
23535 ac_res=`eval 'as_val=${'$as_ac_Header'}
23536 $as_echo "$as_val"'`
23537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23538 $as_echo "$ac_res" >&6; }
23541 if test `eval 'as_val=${'$as_ac_Header'}
23542 $as_echo "$as_val"'` = yes; then
23543 cat >>confdefs.h <<_ACEOF
23544 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23545 _ACEOF
23547 else
23549 for ac_header in kerberosIV/des.h
23551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23553 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23554 $as_echo_n "checking for $ac_header... " >&6; }
23555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23556 $as_echo_n "(cached) " >&6
23558 ac_res=`eval 'as_val=${'$as_ac_Header'}
23559 $as_echo "$as_val"'`
23560 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23561 $as_echo "$ac_res" >&6; }
23562 else
23563 # Is the header compilable?
23564 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23565 $as_echo_n "checking $ac_header usability... " >&6; }
23566 cat >conftest.$ac_ext <<_ACEOF
23567 /* confdefs.h. */
23568 _ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23572 $ac_includes_default
23573 #include <$ac_header>
23574 _ACEOF
23575 rm -f conftest.$ac_objext
23576 if { (ac_try="$ac_compile"
23577 case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23580 esac
23581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23582 $as_echo "$ac_try_echo") >&5
23583 (eval "$ac_compile") 2>conftest.er1
23584 ac_status=$?
23585 grep -v '^ *+' conftest.er1 >conftest.err
23586 rm -f conftest.er1
23587 cat conftest.err >&5
23588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); } && {
23590 test -z "$ac_c_werror_flag" ||
23591 test ! -s conftest.err
23592 } && test -s conftest.$ac_objext; then
23593 ac_header_compiler=yes
23594 else
23595 $as_echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23598 ac_header_compiler=no
23601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23602 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23603 $as_echo "$ac_header_compiler" >&6; }
23605 # Is the header present?
23606 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23607 $as_echo_n "checking $ac_header presence... " >&6; }
23608 cat >conftest.$ac_ext <<_ACEOF
23609 /* confdefs.h. */
23610 _ACEOF
23611 cat confdefs.h >>conftest.$ac_ext
23612 cat >>conftest.$ac_ext <<_ACEOF
23613 /* end confdefs.h. */
23614 #include <$ac_header>
23615 _ACEOF
23616 if { (ac_try="$ac_cpp conftest.$ac_ext"
23617 case "(($ac_try" in
23618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23619 *) ac_try_echo=$ac_try;;
23620 esac
23621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23622 $as_echo "$ac_try_echo") >&5
23623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23624 ac_status=$?
23625 grep -v '^ *+' conftest.er1 >conftest.err
23626 rm -f conftest.er1
23627 cat conftest.err >&5
23628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); } >/dev/null && {
23630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23631 test ! -s conftest.err
23632 }; then
23633 ac_header_preproc=yes
23634 else
23635 $as_echo "$as_me: failed program was:" >&5
23636 sed 's/^/| /' conftest.$ac_ext >&5
23638 ac_header_preproc=no
23641 rm -f conftest.err conftest.$ac_ext
23642 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23643 $as_echo "$ac_header_preproc" >&6; }
23645 # So? What about this header?
23646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23647 yes:no: )
23648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23649 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23651 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23652 ac_header_preproc=yes
23654 no:yes:* )
23655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23656 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23658 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23660 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23662 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23666 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23669 esac
23670 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23671 $as_echo_n "checking for $ac_header... " >&6; }
23672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23673 $as_echo_n "(cached) " >&6
23674 else
23675 eval "$as_ac_Header=\$ac_header_preproc"
23677 ac_res=`eval 'as_val=${'$as_ac_Header'}
23678 $as_echo "$as_val"'`
23679 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23680 $as_echo "$ac_res" >&6; }
23683 if test `eval 'as_val=${'$as_ac_Header'}
23684 $as_echo "$as_val"'` = yes; then
23685 cat >>confdefs.h <<_ACEOF
23686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23687 _ACEOF
23689 else
23691 for ac_header in kerberos/des.h
23693 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23695 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23696 $as_echo_n "checking for $ac_header... " >&6; }
23697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23698 $as_echo_n "(cached) " >&6
23700 ac_res=`eval 'as_val=${'$as_ac_Header'}
23701 $as_echo "$as_val"'`
23702 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23703 $as_echo "$ac_res" >&6; }
23704 else
23705 # Is the header compilable?
23706 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23707 $as_echo_n "checking $ac_header usability... " >&6; }
23708 cat >conftest.$ac_ext <<_ACEOF
23709 /* confdefs.h. */
23710 _ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h. */
23714 $ac_includes_default
23715 #include <$ac_header>
23716 _ACEOF
23717 rm -f conftest.$ac_objext
23718 if { (ac_try="$ac_compile"
23719 case "(($ac_try" in
23720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721 *) ac_try_echo=$ac_try;;
23722 esac
23723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23724 $as_echo "$ac_try_echo") >&5
23725 (eval "$ac_compile") 2>conftest.er1
23726 ac_status=$?
23727 grep -v '^ *+' conftest.er1 >conftest.err
23728 rm -f conftest.er1
23729 cat conftest.err >&5
23730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); } && {
23732 test -z "$ac_c_werror_flag" ||
23733 test ! -s conftest.err
23734 } && test -s conftest.$ac_objext; then
23735 ac_header_compiler=yes
23736 else
23737 $as_echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23740 ac_header_compiler=no
23743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23744 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23745 $as_echo "$ac_header_compiler" >&6; }
23747 # Is the header present?
23748 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23749 $as_echo_n "checking $ac_header presence... " >&6; }
23750 cat >conftest.$ac_ext <<_ACEOF
23751 /* confdefs.h. */
23752 _ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h. */
23756 #include <$ac_header>
23757 _ACEOF
23758 if { (ac_try="$ac_cpp conftest.$ac_ext"
23759 case "(($ac_try" in
23760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761 *) ac_try_echo=$ac_try;;
23762 esac
23763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23764 $as_echo "$ac_try_echo") >&5
23765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23766 ac_status=$?
23767 grep -v '^ *+' conftest.er1 >conftest.err
23768 rm -f conftest.er1
23769 cat conftest.err >&5
23770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); } >/dev/null && {
23772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23773 test ! -s conftest.err
23774 }; then
23775 ac_header_preproc=yes
23776 else
23777 $as_echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23780 ac_header_preproc=no
23783 rm -f conftest.err conftest.$ac_ext
23784 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23785 $as_echo "$ac_header_preproc" >&6; }
23787 # So? What about this header?
23788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23789 yes:no: )
23790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23791 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23793 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23794 ac_header_preproc=yes
23796 no:yes:* )
23797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23798 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23800 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23802 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23804 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23806 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23807 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23808 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23811 esac
23812 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23813 $as_echo_n "checking for $ac_header... " >&6; }
23814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23815 $as_echo_n "(cached) " >&6
23816 else
23817 eval "$as_ac_Header=\$ac_header_preproc"
23819 ac_res=`eval 'as_val=${'$as_ac_Header'}
23820 $as_echo "$as_val"'`
23821 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23822 $as_echo "$ac_res" >&6; }
23825 if test `eval 'as_val=${'$as_ac_Header'}
23826 $as_echo "$as_val"'` = yes; then
23827 cat >>confdefs.h <<_ACEOF
23828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23829 _ACEOF
23833 done
23837 done
23841 done
23844 for ac_header in krb.h
23846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23848 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23849 $as_echo_n "checking for $ac_header... " >&6; }
23850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23851 $as_echo_n "(cached) " >&6
23853 ac_res=`eval 'as_val=${'$as_ac_Header'}
23854 $as_echo "$as_val"'`
23855 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23856 $as_echo "$ac_res" >&6; }
23857 else
23858 # Is the header compilable?
23859 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23860 $as_echo_n "checking $ac_header usability... " >&6; }
23861 cat >conftest.$ac_ext <<_ACEOF
23862 /* confdefs.h. */
23863 _ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h. */
23867 $ac_includes_default
23868 #include <$ac_header>
23869 _ACEOF
23870 rm -f conftest.$ac_objext
23871 if { (ac_try="$ac_compile"
23872 case "(($ac_try" in
23873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874 *) ac_try_echo=$ac_try;;
23875 esac
23876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23877 $as_echo "$ac_try_echo") >&5
23878 (eval "$ac_compile") 2>conftest.er1
23879 ac_status=$?
23880 grep -v '^ *+' conftest.er1 >conftest.err
23881 rm -f conftest.er1
23882 cat conftest.err >&5
23883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } && {
23885 test -z "$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 } && test -s conftest.$ac_objext; then
23888 ac_header_compiler=yes
23889 else
23890 $as_echo "$as_me: failed program was:" >&5
23891 sed 's/^/| /' conftest.$ac_ext >&5
23893 ac_header_compiler=no
23896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23897 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23898 $as_echo "$ac_header_compiler" >&6; }
23900 # Is the header present?
23901 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23902 $as_echo_n "checking $ac_header presence... " >&6; }
23903 cat >conftest.$ac_ext <<_ACEOF
23904 /* confdefs.h. */
23905 _ACEOF
23906 cat confdefs.h >>conftest.$ac_ext
23907 cat >>conftest.$ac_ext <<_ACEOF
23908 /* end confdefs.h. */
23909 #include <$ac_header>
23910 _ACEOF
23911 if { (ac_try="$ac_cpp conftest.$ac_ext"
23912 case "(($ac_try" in
23913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23914 *) ac_try_echo=$ac_try;;
23915 esac
23916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23917 $as_echo "$ac_try_echo") >&5
23918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23919 ac_status=$?
23920 grep -v '^ *+' conftest.er1 >conftest.err
23921 rm -f conftest.er1
23922 cat conftest.err >&5
23923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); } >/dev/null && {
23925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23926 test ! -s conftest.err
23927 }; then
23928 ac_header_preproc=yes
23929 else
23930 $as_echo "$as_me: failed program was:" >&5
23931 sed 's/^/| /' conftest.$ac_ext >&5
23933 ac_header_preproc=no
23936 rm -f conftest.err conftest.$ac_ext
23937 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23938 $as_echo "$ac_header_preproc" >&6; }
23940 # So? What about this header?
23941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23942 yes:no: )
23943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23944 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23946 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23947 ac_header_preproc=yes
23949 no:yes:* )
23950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23951 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23953 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23955 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23957 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23959 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23961 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23964 esac
23965 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23966 $as_echo_n "checking for $ac_header... " >&6; }
23967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23968 $as_echo_n "(cached) " >&6
23969 else
23970 eval "$as_ac_Header=\$ac_header_preproc"
23972 ac_res=`eval 'as_val=${'$as_ac_Header'}
23973 $as_echo "$as_val"'`
23974 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23975 $as_echo "$ac_res" >&6; }
23978 if test `eval 'as_val=${'$as_ac_Header'}
23979 $as_echo "$as_val"'` = yes; then
23980 cat >>confdefs.h <<_ACEOF
23981 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23982 _ACEOF
23984 else
23986 for ac_header in kerberosIV/krb.h
23988 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23990 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23991 $as_echo_n "checking for $ac_header... " >&6; }
23992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23993 $as_echo_n "(cached) " >&6
23995 ac_res=`eval 'as_val=${'$as_ac_Header'}
23996 $as_echo "$as_val"'`
23997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23998 $as_echo "$ac_res" >&6; }
23999 else
24000 # Is the header compilable?
24001 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24002 $as_echo_n "checking $ac_header usability... " >&6; }
24003 cat >conftest.$ac_ext <<_ACEOF
24004 /* confdefs.h. */
24005 _ACEOF
24006 cat confdefs.h >>conftest.$ac_ext
24007 cat >>conftest.$ac_ext <<_ACEOF
24008 /* end confdefs.h. */
24009 $ac_includes_default
24010 #include <$ac_header>
24011 _ACEOF
24012 rm -f conftest.$ac_objext
24013 if { (ac_try="$ac_compile"
24014 case "(($ac_try" in
24015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24016 *) ac_try_echo=$ac_try;;
24017 esac
24018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24019 $as_echo "$ac_try_echo") >&5
24020 (eval "$ac_compile") 2>conftest.er1
24021 ac_status=$?
24022 grep -v '^ *+' conftest.er1 >conftest.err
24023 rm -f conftest.er1
24024 cat conftest.err >&5
24025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); } && {
24027 test -z "$ac_c_werror_flag" ||
24028 test ! -s conftest.err
24029 } && test -s conftest.$ac_objext; then
24030 ac_header_compiler=yes
24031 else
24032 $as_echo "$as_me: failed program was:" >&5
24033 sed 's/^/| /' conftest.$ac_ext >&5
24035 ac_header_compiler=no
24038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24039 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24040 $as_echo "$ac_header_compiler" >&6; }
24042 # Is the header present?
24043 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24044 $as_echo_n "checking $ac_header presence... " >&6; }
24045 cat >conftest.$ac_ext <<_ACEOF
24046 /* confdefs.h. */
24047 _ACEOF
24048 cat confdefs.h >>conftest.$ac_ext
24049 cat >>conftest.$ac_ext <<_ACEOF
24050 /* end confdefs.h. */
24051 #include <$ac_header>
24052 _ACEOF
24053 if { (ac_try="$ac_cpp conftest.$ac_ext"
24054 case "(($ac_try" in
24055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24056 *) ac_try_echo=$ac_try;;
24057 esac
24058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24059 $as_echo "$ac_try_echo") >&5
24060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24061 ac_status=$?
24062 grep -v '^ *+' conftest.er1 >conftest.err
24063 rm -f conftest.er1
24064 cat conftest.err >&5
24065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); } >/dev/null && {
24067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24068 test ! -s conftest.err
24069 }; then
24070 ac_header_preproc=yes
24071 else
24072 $as_echo "$as_me: failed program was:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24075 ac_header_preproc=no
24078 rm -f conftest.err conftest.$ac_ext
24079 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24080 $as_echo "$ac_header_preproc" >&6; }
24082 # So? What about this header?
24083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24084 yes:no: )
24085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24086 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24088 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24089 ac_header_preproc=yes
24091 no:yes:* )
24092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24093 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24095 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24097 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24099 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24101 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24103 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24106 esac
24107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24108 $as_echo_n "checking for $ac_header... " >&6; }
24109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24110 $as_echo_n "(cached) " >&6
24111 else
24112 eval "$as_ac_Header=\$ac_header_preproc"
24114 ac_res=`eval 'as_val=${'$as_ac_Header'}
24115 $as_echo "$as_val"'`
24116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24117 $as_echo "$ac_res" >&6; }
24120 if test `eval 'as_val=${'$as_ac_Header'}
24121 $as_echo "$as_val"'` = yes; then
24122 cat >>confdefs.h <<_ACEOF
24123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24124 _ACEOF
24126 else
24128 for ac_header in kerberos/krb.h
24130 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24132 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24133 $as_echo_n "checking for $ac_header... " >&6; }
24134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24135 $as_echo_n "(cached) " >&6
24137 ac_res=`eval 'as_val=${'$as_ac_Header'}
24138 $as_echo "$as_val"'`
24139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24140 $as_echo "$ac_res" >&6; }
24141 else
24142 # Is the header compilable?
24143 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24144 $as_echo_n "checking $ac_header usability... " >&6; }
24145 cat >conftest.$ac_ext <<_ACEOF
24146 /* confdefs.h. */
24147 _ACEOF
24148 cat confdefs.h >>conftest.$ac_ext
24149 cat >>conftest.$ac_ext <<_ACEOF
24150 /* end confdefs.h. */
24151 $ac_includes_default
24152 #include <$ac_header>
24153 _ACEOF
24154 rm -f conftest.$ac_objext
24155 if { (ac_try="$ac_compile"
24156 case "(($ac_try" in
24157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24158 *) ac_try_echo=$ac_try;;
24159 esac
24160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24161 $as_echo "$ac_try_echo") >&5
24162 (eval "$ac_compile") 2>conftest.er1
24163 ac_status=$?
24164 grep -v '^ *+' conftest.er1 >conftest.err
24165 rm -f conftest.er1
24166 cat conftest.err >&5
24167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); } && {
24169 test -z "$ac_c_werror_flag" ||
24170 test ! -s conftest.err
24171 } && test -s conftest.$ac_objext; then
24172 ac_header_compiler=yes
24173 else
24174 $as_echo "$as_me: failed program was:" >&5
24175 sed 's/^/| /' conftest.$ac_ext >&5
24177 ac_header_compiler=no
24180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24181 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24182 $as_echo "$ac_header_compiler" >&6; }
24184 # Is the header present?
24185 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24186 $as_echo_n "checking $ac_header presence... " >&6; }
24187 cat >conftest.$ac_ext <<_ACEOF
24188 /* confdefs.h. */
24189 _ACEOF
24190 cat confdefs.h >>conftest.$ac_ext
24191 cat >>conftest.$ac_ext <<_ACEOF
24192 /* end confdefs.h. */
24193 #include <$ac_header>
24194 _ACEOF
24195 if { (ac_try="$ac_cpp conftest.$ac_ext"
24196 case "(($ac_try" in
24197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24198 *) ac_try_echo=$ac_try;;
24199 esac
24200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24201 $as_echo "$ac_try_echo") >&5
24202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24203 ac_status=$?
24204 grep -v '^ *+' conftest.er1 >conftest.err
24205 rm -f conftest.er1
24206 cat conftest.err >&5
24207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); } >/dev/null && {
24209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24210 test ! -s conftest.err
24211 }; then
24212 ac_header_preproc=yes
24213 else
24214 $as_echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24217 ac_header_preproc=no
24220 rm -f conftest.err conftest.$ac_ext
24221 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24222 $as_echo "$ac_header_preproc" >&6; }
24224 # So? What about this header?
24225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24226 yes:no: )
24227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24228 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24230 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24231 ac_header_preproc=yes
24233 no:yes:* )
24234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24235 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24237 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24239 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24241 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24243 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24245 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24248 esac
24249 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24250 $as_echo_n "checking for $ac_header... " >&6; }
24251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24252 $as_echo_n "(cached) " >&6
24253 else
24254 eval "$as_ac_Header=\$ac_header_preproc"
24256 ac_res=`eval 'as_val=${'$as_ac_Header'}
24257 $as_echo "$as_val"'`
24258 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24259 $as_echo "$ac_res" >&6; }
24262 if test `eval 'as_val=${'$as_ac_Header'}
24263 $as_echo "$as_val"'` = yes; then
24264 cat >>confdefs.h <<_ACEOF
24265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24266 _ACEOF
24270 done
24274 done
24278 done
24282 for ac_header in com_err.h
24284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24286 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24287 $as_echo_n "checking for $ac_header... " >&6; }
24288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24289 $as_echo_n "(cached) " >&6
24291 ac_res=`eval 'as_val=${'$as_ac_Header'}
24292 $as_echo "$as_val"'`
24293 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24294 $as_echo "$ac_res" >&6; }
24295 else
24296 # Is the header compilable?
24297 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24298 $as_echo_n "checking $ac_header usability... " >&6; }
24299 cat >conftest.$ac_ext <<_ACEOF
24300 /* confdefs.h. */
24301 _ACEOF
24302 cat confdefs.h >>conftest.$ac_ext
24303 cat >>conftest.$ac_ext <<_ACEOF
24304 /* end confdefs.h. */
24305 $ac_includes_default
24306 #include <$ac_header>
24307 _ACEOF
24308 rm -f conftest.$ac_objext
24309 if { (ac_try="$ac_compile"
24310 case "(($ac_try" in
24311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312 *) ac_try_echo=$ac_try;;
24313 esac
24314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24315 $as_echo "$ac_try_echo") >&5
24316 (eval "$ac_compile") 2>conftest.er1
24317 ac_status=$?
24318 grep -v '^ *+' conftest.er1 >conftest.err
24319 rm -f conftest.er1
24320 cat conftest.err >&5
24321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); } && {
24323 test -z "$ac_c_werror_flag" ||
24324 test ! -s conftest.err
24325 } && test -s conftest.$ac_objext; then
24326 ac_header_compiler=yes
24327 else
24328 $as_echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24331 ac_header_compiler=no
24334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24335 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24336 $as_echo "$ac_header_compiler" >&6; }
24338 # Is the header present?
24339 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24340 $as_echo_n "checking $ac_header presence... " >&6; }
24341 cat >conftest.$ac_ext <<_ACEOF
24342 /* confdefs.h. */
24343 _ACEOF
24344 cat confdefs.h >>conftest.$ac_ext
24345 cat >>conftest.$ac_ext <<_ACEOF
24346 /* end confdefs.h. */
24347 #include <$ac_header>
24348 _ACEOF
24349 if { (ac_try="$ac_cpp conftest.$ac_ext"
24350 case "(($ac_try" in
24351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24352 *) ac_try_echo=$ac_try;;
24353 esac
24354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24355 $as_echo "$ac_try_echo") >&5
24356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24357 ac_status=$?
24358 grep -v '^ *+' conftest.er1 >conftest.err
24359 rm -f conftest.er1
24360 cat conftest.err >&5
24361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } >/dev/null && {
24363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24364 test ! -s conftest.err
24365 }; then
24366 ac_header_preproc=yes
24367 else
24368 $as_echo "$as_me: failed program was:" >&5
24369 sed 's/^/| /' conftest.$ac_ext >&5
24371 ac_header_preproc=no
24374 rm -f conftest.err conftest.$ac_ext
24375 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24376 $as_echo "$ac_header_preproc" >&6; }
24378 # So? What about this header?
24379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24380 yes:no: )
24381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24382 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24384 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24385 ac_header_preproc=yes
24387 no:yes:* )
24388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24389 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24391 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24393 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24395 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24399 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24402 esac
24403 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24404 $as_echo_n "checking for $ac_header... " >&6; }
24405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24406 $as_echo_n "(cached) " >&6
24407 else
24408 eval "$as_ac_Header=\$ac_header_preproc"
24410 ac_res=`eval 'as_val=${'$as_ac_Header'}
24411 $as_echo "$as_val"'`
24412 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24413 $as_echo "$ac_res" >&6; }
24416 if test `eval 'as_val=${'$as_ac_Header'}
24417 $as_echo "$as_val"'` = yes; then
24418 cat >>confdefs.h <<_ACEOF
24419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24420 _ACEOF
24424 done
24434 # Solaris requires -lintl if you want strerror (which calls dgettext)
24435 # to return localized messages.
24437 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24438 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24439 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24440 $as_echo_n "(cached) " >&6
24441 else
24442 ac_check_lib_save_LIBS=$LIBS
24443 LIBS="-lintl $LIBS"
24444 cat >conftest.$ac_ext <<_ACEOF
24445 /* confdefs.h. */
24446 _ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h. */
24451 /* Override any GCC internal prototype to avoid an error.
24452 Use char because int might match the return type of a GCC
24453 builtin and then its argument prototype would still apply. */
24454 #ifdef __cplusplus
24455 extern "C"
24456 #endif
24457 char dgettext ();
24459 main ()
24461 return dgettext ();
24463 return 0;
24465 _ACEOF
24466 rm -f conftest.$ac_objext conftest$ac_exeext
24467 if { (ac_try="$ac_link"
24468 case "(($ac_try" in
24469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470 *) ac_try_echo=$ac_try;;
24471 esac
24472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24473 $as_echo "$ac_try_echo") >&5
24474 (eval "$ac_link") 2>conftest.er1
24475 ac_status=$?
24476 grep -v '^ *+' conftest.er1 >conftest.err
24477 rm -f conftest.er1
24478 cat conftest.err >&5
24479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); } && {
24481 test -z "$ac_c_werror_flag" ||
24482 test ! -s conftest.err
24483 } && test -s conftest$ac_exeext && {
24484 test "$cross_compiling" = yes ||
24485 $as_test_x conftest$ac_exeext
24486 }; then
24487 ac_cv_lib_intl_dgettext=yes
24488 else
24489 $as_echo "$as_me: failed program was:" >&5
24490 sed 's/^/| /' conftest.$ac_ext >&5
24492 ac_cv_lib_intl_dgettext=no
24495 rm -rf conftest.dSYM
24496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24497 conftest$ac_exeext conftest.$ac_ext
24498 LIBS=$ac_check_lib_save_LIBS
24500 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24501 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24502 if test $ac_cv_lib_intl_dgettext = yes; then
24503 cat >>confdefs.h <<_ACEOF
24504 #define HAVE_LIBINTL 1
24505 _ACEOF
24507 LIBS="-lintl $LIBS"
24512 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24513 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24514 if test "${emacs_cv_localtime_cache+set}" = set; then
24515 $as_echo_n "(cached) " >&6
24516 else
24517 if test x$ac_cv_func_tzset = xyes; then
24518 if test "$cross_compiling" = yes; then
24519 # If we have tzset, assume the worst when cross-compiling.
24520 emacs_cv_localtime_cache=yes
24521 else
24522 cat >conftest.$ac_ext <<_ACEOF
24523 /* confdefs.h. */
24524 _ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h. */
24528 #include <time.h>
24529 extern char **environ;
24530 unset_TZ ()
24532 char **from, **to;
24533 for (to = from = environ; (*to = *from); from++)
24534 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24535 to++;
24537 char TZ_GMT0[] = "TZ=GMT0";
24538 char TZ_PST8[] = "TZ=PST8";
24539 main()
24541 time_t now = time ((time_t *) 0);
24542 int hour_GMT0, hour_unset;
24543 if (putenv (TZ_GMT0) != 0)
24544 exit (1);
24545 hour_GMT0 = localtime (&now)->tm_hour;
24546 unset_TZ ();
24547 hour_unset = localtime (&now)->tm_hour;
24548 if (putenv (TZ_PST8) != 0)
24549 exit (1);
24550 if (localtime (&now)->tm_hour == hour_GMT0)
24551 exit (1);
24552 unset_TZ ();
24553 if (localtime (&now)->tm_hour != hour_unset)
24554 exit (1);
24555 exit (0);
24557 _ACEOF
24558 rm -f conftest$ac_exeext
24559 if { (ac_try="$ac_link"
24560 case "(($ac_try" in
24561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24562 *) ac_try_echo=$ac_try;;
24563 esac
24564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24565 $as_echo "$ac_try_echo") >&5
24566 (eval "$ac_link") 2>&5
24567 ac_status=$?
24568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24570 { (case "(($ac_try" in
24571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572 *) ac_try_echo=$ac_try;;
24573 esac
24574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24575 $as_echo "$ac_try_echo") >&5
24576 (eval "$ac_try") 2>&5
24577 ac_status=$?
24578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579 (exit $ac_status); }; }; then
24580 emacs_cv_localtime_cache=no
24581 else
24582 $as_echo "$as_me: program exited with status $ac_status" >&5
24583 $as_echo "$as_me: failed program was:" >&5
24584 sed 's/^/| /' conftest.$ac_ext >&5
24586 ( exit $ac_status )
24587 emacs_cv_localtime_cache=yes
24589 rm -rf conftest.dSYM
24590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24594 else
24595 # If we lack tzset, report that localtime does not cache TZ,
24596 # since we can't invalidate the cache if we don't have tzset.
24597 emacs_cv_localtime_cache=no
24600 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24601 $as_echo "$emacs_cv_localtime_cache" >&6; }
24602 if test $emacs_cv_localtime_cache = yes; then
24604 cat >>confdefs.h <<\_ACEOF
24605 #define LOCALTIME_CACHE 1
24606 _ACEOF
24610 if test "x$HAVE_TIMEVAL" = xyes; then
24612 for ac_func in gettimeofday
24614 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24615 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24616 $as_echo_n "checking for $ac_func... " >&6; }
24617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24618 $as_echo_n "(cached) " >&6
24619 else
24620 cat >conftest.$ac_ext <<_ACEOF
24621 /* confdefs.h. */
24622 _ACEOF
24623 cat confdefs.h >>conftest.$ac_ext
24624 cat >>conftest.$ac_ext <<_ACEOF
24625 /* end confdefs.h. */
24626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24628 #define $ac_func innocuous_$ac_func
24630 /* System header to define __stub macros and hopefully few prototypes,
24631 which can conflict with char $ac_func (); below.
24632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24633 <limits.h> exists even on freestanding compilers. */
24635 #ifdef __STDC__
24636 # include <limits.h>
24637 #else
24638 # include <assert.h>
24639 #endif
24641 #undef $ac_func
24643 /* Override any GCC internal prototype to avoid an error.
24644 Use char because int might match the return type of a GCC
24645 builtin and then its argument prototype would still apply. */
24646 #ifdef __cplusplus
24647 extern "C"
24648 #endif
24649 char $ac_func ();
24650 /* The GNU C library defines this for functions which it implements
24651 to always fail with ENOSYS. Some functions are actually named
24652 something starting with __ and the normal name is an alias. */
24653 #if defined __stub_$ac_func || defined __stub___$ac_func
24654 choke me
24655 #endif
24658 main ()
24660 return $ac_func ();
24662 return 0;
24664 _ACEOF
24665 rm -f conftest.$ac_objext conftest$ac_exeext
24666 if { (ac_try="$ac_link"
24667 case "(($ac_try" in
24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24670 esac
24671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24672 $as_echo "$ac_try_echo") >&5
24673 (eval "$ac_link") 2>conftest.er1
24674 ac_status=$?
24675 grep -v '^ *+' conftest.er1 >conftest.err
24676 rm -f conftest.er1
24677 cat conftest.err >&5
24678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); } && {
24680 test -z "$ac_c_werror_flag" ||
24681 test ! -s conftest.err
24682 } && test -s conftest$ac_exeext && {
24683 test "$cross_compiling" = yes ||
24684 $as_test_x conftest$ac_exeext
24685 }; then
24686 eval "$as_ac_var=yes"
24687 else
24688 $as_echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24691 eval "$as_ac_var=no"
24694 rm -rf conftest.dSYM
24695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24696 conftest$ac_exeext conftest.$ac_ext
24698 ac_res=`eval 'as_val=${'$as_ac_var'}
24699 $as_echo "$as_val"'`
24700 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24701 $as_echo "$ac_res" >&6; }
24702 if test `eval 'as_val=${'$as_ac_var'}
24703 $as_echo "$as_val"'` = yes; then
24704 cat >>confdefs.h <<_ACEOF
24705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24706 _ACEOF
24709 done
24711 if test $ac_cv_func_gettimeofday = yes; then
24712 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24713 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24714 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24715 $as_echo_n "(cached) " >&6
24716 else
24717 cat >conftest.$ac_ext <<_ACEOF
24718 /* confdefs.h. */
24719 _ACEOF
24720 cat confdefs.h >>conftest.$ac_ext
24721 cat >>conftest.$ac_ext <<_ACEOF
24722 /* end confdefs.h. */
24724 #ifdef TIME_WITH_SYS_TIME
24725 #include <sys/time.h>
24726 #include <time.h>
24727 #else
24728 #ifdef HAVE_SYS_TIME_H
24729 #include <sys/time.h>
24730 #else
24731 #include <time.h>
24732 #endif
24733 #endif
24735 main ()
24737 struct timeval time;
24738 gettimeofday (&time, 0);
24740 return 0;
24742 _ACEOF
24743 rm -f conftest.$ac_objext
24744 if { (ac_try="$ac_compile"
24745 case "(($ac_try" in
24746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24747 *) ac_try_echo=$ac_try;;
24748 esac
24749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24750 $as_echo "$ac_try_echo") >&5
24751 (eval "$ac_compile") 2>conftest.er1
24752 ac_status=$?
24753 grep -v '^ *+' conftest.er1 >conftest.err
24754 rm -f conftest.er1
24755 cat conftest.err >&5
24756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); } && {
24758 test -z "$ac_c_werror_flag" ||
24759 test ! -s conftest.err
24760 } && test -s conftest.$ac_objext; then
24761 emacs_cv_gettimeofday_two_arguments=yes
24762 else
24763 $as_echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24766 emacs_cv_gettimeofday_two_arguments=no
24769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24771 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24772 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24773 if test $emacs_cv_gettimeofday_two_arguments = no; then
24775 cat >>confdefs.h <<\_ACEOF
24776 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24777 _ACEOF
24783 ok_so_far=yes
24784 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24785 $as_echo_n "checking for socket... " >&6; }
24786 if test "${ac_cv_func_socket+set}" = set; then
24787 $as_echo_n "(cached) " >&6
24788 else
24789 cat >conftest.$ac_ext <<_ACEOF
24790 /* confdefs.h. */
24791 _ACEOF
24792 cat confdefs.h >>conftest.$ac_ext
24793 cat >>conftest.$ac_ext <<_ACEOF
24794 /* end confdefs.h. */
24795 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24797 #define socket innocuous_socket
24799 /* System header to define __stub macros and hopefully few prototypes,
24800 which can conflict with char socket (); below.
24801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24802 <limits.h> exists even on freestanding compilers. */
24804 #ifdef __STDC__
24805 # include <limits.h>
24806 #else
24807 # include <assert.h>
24808 #endif
24810 #undef socket
24812 /* Override any GCC internal prototype to avoid an error.
24813 Use char because int might match the return type of a GCC
24814 builtin and then its argument prototype would still apply. */
24815 #ifdef __cplusplus
24816 extern "C"
24817 #endif
24818 char socket ();
24819 /* The GNU C library defines this for functions which it implements
24820 to always fail with ENOSYS. Some functions are actually named
24821 something starting with __ and the normal name is an alias. */
24822 #if defined __stub_socket || defined __stub___socket
24823 choke me
24824 #endif
24827 main ()
24829 return socket ();
24831 return 0;
24833 _ACEOF
24834 rm -f conftest.$ac_objext conftest$ac_exeext
24835 if { (ac_try="$ac_link"
24836 case "(($ac_try" in
24837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24838 *) ac_try_echo=$ac_try;;
24839 esac
24840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24841 $as_echo "$ac_try_echo") >&5
24842 (eval "$ac_link") 2>conftest.er1
24843 ac_status=$?
24844 grep -v '^ *+' conftest.er1 >conftest.err
24845 rm -f conftest.er1
24846 cat conftest.err >&5
24847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); } && {
24849 test -z "$ac_c_werror_flag" ||
24850 test ! -s conftest.err
24851 } && test -s conftest$ac_exeext && {
24852 test "$cross_compiling" = yes ||
24853 $as_test_x conftest$ac_exeext
24854 }; then
24855 ac_cv_func_socket=yes
24856 else
24857 $as_echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24860 ac_cv_func_socket=no
24863 rm -rf conftest.dSYM
24864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24865 conftest$ac_exeext conftest.$ac_ext
24867 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24868 $as_echo "$ac_cv_func_socket" >&6; }
24869 if test $ac_cv_func_socket = yes; then
24871 else
24872 ok_so_far=no
24875 if test $ok_so_far = yes; then
24876 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24877 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24878 $as_echo_n "checking for netinet/in.h... " >&6; }
24879 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24880 $as_echo_n "(cached) " >&6
24882 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24883 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24884 else
24885 # Is the header compilable?
24886 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24887 $as_echo_n "checking netinet/in.h usability... " >&6; }
24888 cat >conftest.$ac_ext <<_ACEOF
24889 /* confdefs.h. */
24890 _ACEOF
24891 cat confdefs.h >>conftest.$ac_ext
24892 cat >>conftest.$ac_ext <<_ACEOF
24893 /* end confdefs.h. */
24894 $ac_includes_default
24895 #include <netinet/in.h>
24896 _ACEOF
24897 rm -f conftest.$ac_objext
24898 if { (ac_try="$ac_compile"
24899 case "(($ac_try" in
24900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901 *) ac_try_echo=$ac_try;;
24902 esac
24903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24904 $as_echo "$ac_try_echo") >&5
24905 (eval "$ac_compile") 2>conftest.er1
24906 ac_status=$?
24907 grep -v '^ *+' conftest.er1 >conftest.err
24908 rm -f conftest.er1
24909 cat conftest.err >&5
24910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } && {
24912 test -z "$ac_c_werror_flag" ||
24913 test ! -s conftest.err
24914 } && test -s conftest.$ac_objext; then
24915 ac_header_compiler=yes
24916 else
24917 $as_echo "$as_me: failed program was:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24920 ac_header_compiler=no
24923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24924 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24925 $as_echo "$ac_header_compiler" >&6; }
24927 # Is the header present?
24928 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24929 $as_echo_n "checking netinet/in.h presence... " >&6; }
24930 cat >conftest.$ac_ext <<_ACEOF
24931 /* confdefs.h. */
24932 _ACEOF
24933 cat confdefs.h >>conftest.$ac_ext
24934 cat >>conftest.$ac_ext <<_ACEOF
24935 /* end confdefs.h. */
24936 #include <netinet/in.h>
24937 _ACEOF
24938 if { (ac_try="$ac_cpp conftest.$ac_ext"
24939 case "(($ac_try" in
24940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24941 *) ac_try_echo=$ac_try;;
24942 esac
24943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24944 $as_echo "$ac_try_echo") >&5
24945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24946 ac_status=$?
24947 grep -v '^ *+' conftest.er1 >conftest.err
24948 rm -f conftest.er1
24949 cat conftest.err >&5
24950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); } >/dev/null && {
24952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24953 test ! -s conftest.err
24954 }; then
24955 ac_header_preproc=yes
24956 else
24957 $as_echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24960 ac_header_preproc=no
24963 rm -f conftest.err conftest.$ac_ext
24964 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24965 $as_echo "$ac_header_preproc" >&6; }
24967 # So? What about this header?
24968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24969 yes:no: )
24970 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24971 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24972 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24973 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24974 ac_header_preproc=yes
24976 no:yes:* )
24977 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24978 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24979 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24980 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24981 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24982 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24983 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24984 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24985 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24986 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24987 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24988 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24991 esac
24992 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24993 $as_echo_n "checking for netinet/in.h... " >&6; }
24994 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24995 $as_echo_n "(cached) " >&6
24996 else
24997 ac_cv_header_netinet_in_h=$ac_header_preproc
24999 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
25000 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
25003 if test $ac_cv_header_netinet_in_h = yes; then
25005 else
25006 ok_so_far=no
25011 if test $ok_so_far = yes; then
25012 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25013 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25014 $as_echo_n "checking for arpa/inet.h... " >&6; }
25015 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25016 $as_echo_n "(cached) " >&6
25018 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25019 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25020 else
25021 # Is the header compilable?
25022 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
25023 $as_echo_n "checking arpa/inet.h usability... " >&6; }
25024 cat >conftest.$ac_ext <<_ACEOF
25025 /* confdefs.h. */
25026 _ACEOF
25027 cat confdefs.h >>conftest.$ac_ext
25028 cat >>conftest.$ac_ext <<_ACEOF
25029 /* end confdefs.h. */
25030 $ac_includes_default
25031 #include <arpa/inet.h>
25032 _ACEOF
25033 rm -f conftest.$ac_objext
25034 if { (ac_try="$ac_compile"
25035 case "(($ac_try" in
25036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037 *) ac_try_echo=$ac_try;;
25038 esac
25039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25040 $as_echo "$ac_try_echo") >&5
25041 (eval "$ac_compile") 2>conftest.er1
25042 ac_status=$?
25043 grep -v '^ *+' conftest.er1 >conftest.err
25044 rm -f conftest.er1
25045 cat conftest.err >&5
25046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); } && {
25048 test -z "$ac_c_werror_flag" ||
25049 test ! -s conftest.err
25050 } && test -s conftest.$ac_objext; then
25051 ac_header_compiler=yes
25052 else
25053 $as_echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25056 ac_header_compiler=no
25059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25060 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25061 $as_echo "$ac_header_compiler" >&6; }
25063 # Is the header present?
25064 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
25065 $as_echo_n "checking arpa/inet.h presence... " >&6; }
25066 cat >conftest.$ac_ext <<_ACEOF
25067 /* confdefs.h. */
25068 _ACEOF
25069 cat confdefs.h >>conftest.$ac_ext
25070 cat >>conftest.$ac_ext <<_ACEOF
25071 /* end confdefs.h. */
25072 #include <arpa/inet.h>
25073 _ACEOF
25074 if { (ac_try="$ac_cpp conftest.$ac_ext"
25075 case "(($ac_try" in
25076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25077 *) ac_try_echo=$ac_try;;
25078 esac
25079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25080 $as_echo "$ac_try_echo") >&5
25081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25082 ac_status=$?
25083 grep -v '^ *+' conftest.er1 >conftest.err
25084 rm -f conftest.er1
25085 cat conftest.err >&5
25086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } >/dev/null && {
25088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25089 test ! -s conftest.err
25090 }; then
25091 ac_header_preproc=yes
25092 else
25093 $as_echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25096 ac_header_preproc=no
25099 rm -f conftest.err conftest.$ac_ext
25100 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25101 $as_echo "$ac_header_preproc" >&6; }
25103 # So? What about this header?
25104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25105 yes:no: )
25106 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
25107 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25108 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
25109 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
25110 ac_header_preproc=yes
25112 no:yes:* )
25113 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
25114 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
25115 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
25116 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
25117 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
25118 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
25119 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
25120 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
25121 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
25122 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
25123 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
25124 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
25127 esac
25128 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25129 $as_echo_n "checking for arpa/inet.h... " >&6; }
25130 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25131 $as_echo_n "(cached) " >&6
25132 else
25133 ac_cv_header_arpa_inet_h=$ac_header_preproc
25135 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25136 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25139 if test $ac_cv_header_arpa_inet_h = yes; then
25141 else
25142 ok_so_far=no
25147 if test $ok_so_far = yes; then
25149 cat >>confdefs.h <<\_ACEOF
25150 #define HAVE_INET_SOCKETS 1
25151 _ACEOF
25156 for ac_header in sys/ioctl.h
25158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25160 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25161 $as_echo_n "checking for $ac_header... " >&6; }
25162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25163 $as_echo_n "(cached) " >&6
25165 ac_res=`eval 'as_val=${'$as_ac_Header'}
25166 $as_echo "$as_val"'`
25167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25168 $as_echo "$ac_res" >&6; }
25169 else
25170 # Is the header compilable?
25171 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25172 $as_echo_n "checking $ac_header usability... " >&6; }
25173 cat >conftest.$ac_ext <<_ACEOF
25174 /* confdefs.h. */
25175 _ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h. */
25179 $ac_includes_default
25180 #include <$ac_header>
25181 _ACEOF
25182 rm -f conftest.$ac_objext
25183 if { (ac_try="$ac_compile"
25184 case "(($ac_try" in
25185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25186 *) ac_try_echo=$ac_try;;
25187 esac
25188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25189 $as_echo "$ac_try_echo") >&5
25190 (eval "$ac_compile") 2>conftest.er1
25191 ac_status=$?
25192 grep -v '^ *+' conftest.er1 >conftest.err
25193 rm -f conftest.er1
25194 cat conftest.err >&5
25195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); } && {
25197 test -z "$ac_c_werror_flag" ||
25198 test ! -s conftest.err
25199 } && test -s conftest.$ac_objext; then
25200 ac_header_compiler=yes
25201 else
25202 $as_echo "$as_me: failed program was:" >&5
25203 sed 's/^/| /' conftest.$ac_ext >&5
25205 ac_header_compiler=no
25208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25209 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25210 $as_echo "$ac_header_compiler" >&6; }
25212 # Is the header present?
25213 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25214 $as_echo_n "checking $ac_header presence... " >&6; }
25215 cat >conftest.$ac_ext <<_ACEOF
25216 /* confdefs.h. */
25217 _ACEOF
25218 cat confdefs.h >>conftest.$ac_ext
25219 cat >>conftest.$ac_ext <<_ACEOF
25220 /* end confdefs.h. */
25221 #include <$ac_header>
25222 _ACEOF
25223 if { (ac_try="$ac_cpp conftest.$ac_ext"
25224 case "(($ac_try" in
25225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25226 *) ac_try_echo=$ac_try;;
25227 esac
25228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25229 $as_echo "$ac_try_echo") >&5
25230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25231 ac_status=$?
25232 grep -v '^ *+' conftest.er1 >conftest.err
25233 rm -f conftest.er1
25234 cat conftest.err >&5
25235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } >/dev/null && {
25237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25238 test ! -s conftest.err
25239 }; then
25240 ac_header_preproc=yes
25241 else
25242 $as_echo "$as_me: failed program was:" >&5
25243 sed 's/^/| /' conftest.$ac_ext >&5
25245 ac_header_preproc=no
25248 rm -f conftest.err conftest.$ac_ext
25249 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25250 $as_echo "$ac_header_preproc" >&6; }
25252 # So? What about this header?
25253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25254 yes:no: )
25255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25256 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25258 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25259 ac_header_preproc=yes
25261 no:yes:* )
25262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25263 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25265 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25267 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25269 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25273 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25276 esac
25277 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25278 $as_echo_n "checking for $ac_header... " >&6; }
25279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25280 $as_echo_n "(cached) " >&6
25281 else
25282 eval "$as_ac_Header=\$ac_header_preproc"
25284 ac_res=`eval 'as_val=${'$as_ac_Header'}
25285 $as_echo "$as_val"'`
25286 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25287 $as_echo "$ac_res" >&6; }
25290 if test `eval 'as_val=${'$as_ac_Header'}
25291 $as_echo "$as_val"'` = yes; then
25292 cat >>confdefs.h <<_ACEOF
25293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25294 _ACEOF
25298 done
25301 if test -f /usr/lpp/X11/bin/smt.exp; then
25303 cat >>confdefs.h <<\_ACEOF
25304 #define HAVE_AIX_SMT_EXP 1
25305 _ACEOF
25309 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
25310 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
25311 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25312 { $as_echo "$as_me:$LINENO: result: yes" >&5
25313 $as_echo "yes" >&6; }
25315 cat >>confdefs.h <<\_ACEOF
25316 #define HAVE_DEV_PTMX 1
25317 _ACEOF
25319 else
25320 { $as_echo "$as_me:$LINENO: result: no" >&5
25321 $as_echo "no" >&6; }
25324 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
25325 $as_echo_n "checking for pid_t... " >&6; }
25326 if test "${ac_cv_type_pid_t+set}" = set; then
25327 $as_echo_n "(cached) " >&6
25328 else
25329 ac_cv_type_pid_t=no
25330 cat >conftest.$ac_ext <<_ACEOF
25331 /* confdefs.h. */
25332 _ACEOF
25333 cat confdefs.h >>conftest.$ac_ext
25334 cat >>conftest.$ac_ext <<_ACEOF
25335 /* end confdefs.h. */
25336 $ac_includes_default
25338 main ()
25340 if (sizeof (pid_t))
25341 return 0;
25343 return 0;
25345 _ACEOF
25346 rm -f conftest.$ac_objext
25347 if { (ac_try="$ac_compile"
25348 case "(($ac_try" in
25349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25350 *) ac_try_echo=$ac_try;;
25351 esac
25352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25353 $as_echo "$ac_try_echo") >&5
25354 (eval "$ac_compile") 2>conftest.er1
25355 ac_status=$?
25356 grep -v '^ *+' conftest.er1 >conftest.err
25357 rm -f conftest.er1
25358 cat conftest.err >&5
25359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360 (exit $ac_status); } && {
25361 test -z "$ac_c_werror_flag" ||
25362 test ! -s conftest.err
25363 } && test -s conftest.$ac_objext; then
25364 cat >conftest.$ac_ext <<_ACEOF
25365 /* confdefs.h. */
25366 _ACEOF
25367 cat confdefs.h >>conftest.$ac_ext
25368 cat >>conftest.$ac_ext <<_ACEOF
25369 /* end confdefs.h. */
25370 $ac_includes_default
25372 main ()
25374 if (sizeof ((pid_t)))
25375 return 0;
25377 return 0;
25379 _ACEOF
25380 rm -f conftest.$ac_objext
25381 if { (ac_try="$ac_compile"
25382 case "(($ac_try" in
25383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25384 *) ac_try_echo=$ac_try;;
25385 esac
25386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25387 $as_echo "$ac_try_echo") >&5
25388 (eval "$ac_compile") 2>conftest.er1
25389 ac_status=$?
25390 grep -v '^ *+' conftest.er1 >conftest.err
25391 rm -f conftest.er1
25392 cat conftest.err >&5
25393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); } && {
25395 test -z "$ac_c_werror_flag" ||
25396 test ! -s conftest.err
25397 } && test -s conftest.$ac_objext; then
25399 else
25400 $as_echo "$as_me: failed program was:" >&5
25401 sed 's/^/| /' conftest.$ac_ext >&5
25403 ac_cv_type_pid_t=yes
25406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25407 else
25408 $as_echo "$as_me: failed program was:" >&5
25409 sed 's/^/| /' conftest.$ac_ext >&5
25414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25416 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25417 $as_echo "$ac_cv_type_pid_t" >&6; }
25418 if test $ac_cv_type_pid_t = yes; then
25420 else
25422 cat >>confdefs.h <<_ACEOF
25423 #define pid_t int
25424 _ACEOF
25429 for ac_header in vfork.h
25431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25433 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25434 $as_echo_n "checking for $ac_header... " >&6; }
25435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25436 $as_echo_n "(cached) " >&6
25438 ac_res=`eval 'as_val=${'$as_ac_Header'}
25439 $as_echo "$as_val"'`
25440 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25441 $as_echo "$ac_res" >&6; }
25442 else
25443 # Is the header compilable?
25444 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25445 $as_echo_n "checking $ac_header usability... " >&6; }
25446 cat >conftest.$ac_ext <<_ACEOF
25447 /* confdefs.h. */
25448 _ACEOF
25449 cat confdefs.h >>conftest.$ac_ext
25450 cat >>conftest.$ac_ext <<_ACEOF
25451 /* end confdefs.h. */
25452 $ac_includes_default
25453 #include <$ac_header>
25454 _ACEOF
25455 rm -f conftest.$ac_objext
25456 if { (ac_try="$ac_compile"
25457 case "(($ac_try" in
25458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459 *) ac_try_echo=$ac_try;;
25460 esac
25461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25462 $as_echo "$ac_try_echo") >&5
25463 (eval "$ac_compile") 2>conftest.er1
25464 ac_status=$?
25465 grep -v '^ *+' conftest.er1 >conftest.err
25466 rm -f conftest.er1
25467 cat conftest.err >&5
25468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); } && {
25470 test -z "$ac_c_werror_flag" ||
25471 test ! -s conftest.err
25472 } && test -s conftest.$ac_objext; then
25473 ac_header_compiler=yes
25474 else
25475 $as_echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25478 ac_header_compiler=no
25481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25482 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25483 $as_echo "$ac_header_compiler" >&6; }
25485 # Is the header present?
25486 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25487 $as_echo_n "checking $ac_header presence... " >&6; }
25488 cat >conftest.$ac_ext <<_ACEOF
25489 /* confdefs.h. */
25490 _ACEOF
25491 cat confdefs.h >>conftest.$ac_ext
25492 cat >>conftest.$ac_ext <<_ACEOF
25493 /* end confdefs.h. */
25494 #include <$ac_header>
25495 _ACEOF
25496 if { (ac_try="$ac_cpp conftest.$ac_ext"
25497 case "(($ac_try" in
25498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25499 *) ac_try_echo=$ac_try;;
25500 esac
25501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25502 $as_echo "$ac_try_echo") >&5
25503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25504 ac_status=$?
25505 grep -v '^ *+' conftest.er1 >conftest.err
25506 rm -f conftest.er1
25507 cat conftest.err >&5
25508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); } >/dev/null && {
25510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25511 test ! -s conftest.err
25512 }; then
25513 ac_header_preproc=yes
25514 else
25515 $as_echo "$as_me: failed program was:" >&5
25516 sed 's/^/| /' conftest.$ac_ext >&5
25518 ac_header_preproc=no
25521 rm -f conftest.err conftest.$ac_ext
25522 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25523 $as_echo "$ac_header_preproc" >&6; }
25525 # So? What about this header?
25526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25527 yes:no: )
25528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25529 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25531 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25532 ac_header_preproc=yes
25534 no:yes:* )
25535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25536 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25538 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25540 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25542 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25544 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25546 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25549 esac
25550 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25551 $as_echo_n "checking for $ac_header... " >&6; }
25552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25553 $as_echo_n "(cached) " >&6
25554 else
25555 eval "$as_ac_Header=\$ac_header_preproc"
25557 ac_res=`eval 'as_val=${'$as_ac_Header'}
25558 $as_echo "$as_val"'`
25559 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25560 $as_echo "$ac_res" >&6; }
25563 if test `eval 'as_val=${'$as_ac_Header'}
25564 $as_echo "$as_val"'` = yes; then
25565 cat >>confdefs.h <<_ACEOF
25566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25567 _ACEOF
25571 done
25575 for ac_func in fork vfork
25577 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25578 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25579 $as_echo_n "checking for $ac_func... " >&6; }
25580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25581 $as_echo_n "(cached) " >&6
25582 else
25583 cat >conftest.$ac_ext <<_ACEOF
25584 /* confdefs.h. */
25585 _ACEOF
25586 cat confdefs.h >>conftest.$ac_ext
25587 cat >>conftest.$ac_ext <<_ACEOF
25588 /* end confdefs.h. */
25589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25591 #define $ac_func innocuous_$ac_func
25593 /* System header to define __stub macros and hopefully few prototypes,
25594 which can conflict with char $ac_func (); below.
25595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25596 <limits.h> exists even on freestanding compilers. */
25598 #ifdef __STDC__
25599 # include <limits.h>
25600 #else
25601 # include <assert.h>
25602 #endif
25604 #undef $ac_func
25606 /* Override any GCC internal prototype to avoid an error.
25607 Use char because int might match the return type of a GCC
25608 builtin and then its argument prototype would still apply. */
25609 #ifdef __cplusplus
25610 extern "C"
25611 #endif
25612 char $ac_func ();
25613 /* The GNU C library defines this for functions which it implements
25614 to always fail with ENOSYS. Some functions are actually named
25615 something starting with __ and the normal name is an alias. */
25616 #if defined __stub_$ac_func || defined __stub___$ac_func
25617 choke me
25618 #endif
25621 main ()
25623 return $ac_func ();
25625 return 0;
25627 _ACEOF
25628 rm -f conftest.$ac_objext conftest$ac_exeext
25629 if { (ac_try="$ac_link"
25630 case "(($ac_try" in
25631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632 *) ac_try_echo=$ac_try;;
25633 esac
25634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25635 $as_echo "$ac_try_echo") >&5
25636 (eval "$ac_link") 2>conftest.er1
25637 ac_status=$?
25638 grep -v '^ *+' conftest.er1 >conftest.err
25639 rm -f conftest.er1
25640 cat conftest.err >&5
25641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } && {
25643 test -z "$ac_c_werror_flag" ||
25644 test ! -s conftest.err
25645 } && test -s conftest$ac_exeext && {
25646 test "$cross_compiling" = yes ||
25647 $as_test_x conftest$ac_exeext
25648 }; then
25649 eval "$as_ac_var=yes"
25650 else
25651 $as_echo "$as_me: failed program was:" >&5
25652 sed 's/^/| /' conftest.$ac_ext >&5
25654 eval "$as_ac_var=no"
25657 rm -rf conftest.dSYM
25658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25659 conftest$ac_exeext conftest.$ac_ext
25661 ac_res=`eval 'as_val=${'$as_ac_var'}
25662 $as_echo "$as_val"'`
25663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25664 $as_echo "$ac_res" >&6; }
25665 if test `eval 'as_val=${'$as_ac_var'}
25666 $as_echo "$as_val"'` = yes; then
25667 cat >>confdefs.h <<_ACEOF
25668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25669 _ACEOF
25672 done
25674 if test "x$ac_cv_func_fork" = xyes; then
25675 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25676 $as_echo_n "checking for working fork... " >&6; }
25677 if test "${ac_cv_func_fork_works+set}" = set; then
25678 $as_echo_n "(cached) " >&6
25679 else
25680 if test "$cross_compiling" = yes; then
25681 ac_cv_func_fork_works=cross
25682 else
25683 cat >conftest.$ac_ext <<_ACEOF
25684 /* confdefs.h. */
25685 _ACEOF
25686 cat confdefs.h >>conftest.$ac_ext
25687 cat >>conftest.$ac_ext <<_ACEOF
25688 /* end confdefs.h. */
25689 $ac_includes_default
25691 main ()
25694 /* By Ruediger Kuhlmann. */
25695 return fork () < 0;
25698 return 0;
25700 _ACEOF
25701 rm -f conftest$ac_exeext
25702 if { (ac_try="$ac_link"
25703 case "(($ac_try" in
25704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25705 *) ac_try_echo=$ac_try;;
25706 esac
25707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25708 $as_echo "$ac_try_echo") >&5
25709 (eval "$ac_link") 2>&5
25710 ac_status=$?
25711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25713 { (case "(($ac_try" in
25714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25715 *) ac_try_echo=$ac_try;;
25716 esac
25717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25718 $as_echo "$ac_try_echo") >&5
25719 (eval "$ac_try") 2>&5
25720 ac_status=$?
25721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); }; }; then
25723 ac_cv_func_fork_works=yes
25724 else
25725 $as_echo "$as_me: program exited with status $ac_status" >&5
25726 $as_echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25729 ( exit $ac_status )
25730 ac_cv_func_fork_works=no
25732 rm -rf conftest.dSYM
25733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25738 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25739 $as_echo "$ac_cv_func_fork_works" >&6; }
25741 else
25742 ac_cv_func_fork_works=$ac_cv_func_fork
25744 if test "x$ac_cv_func_fork_works" = xcross; then
25745 case $host in
25746 *-*-amigaos* | *-*-msdosdjgpp*)
25747 # Override, as these systems have only a dummy fork() stub
25748 ac_cv_func_fork_works=no
25751 ac_cv_func_fork_works=yes
25753 esac
25754 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25755 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25757 ac_cv_func_vfork_works=$ac_cv_func_vfork
25758 if test "x$ac_cv_func_vfork" = xyes; then
25759 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25760 $as_echo_n "checking for working vfork... " >&6; }
25761 if test "${ac_cv_func_vfork_works+set}" = set; then
25762 $as_echo_n "(cached) " >&6
25763 else
25764 if test "$cross_compiling" = yes; then
25765 ac_cv_func_vfork_works=cross
25766 else
25767 cat >conftest.$ac_ext <<_ACEOF
25768 /* confdefs.h. */
25769 _ACEOF
25770 cat confdefs.h >>conftest.$ac_ext
25771 cat >>conftest.$ac_ext <<_ACEOF
25772 /* end confdefs.h. */
25773 /* Thanks to Paul Eggert for this test. */
25774 $ac_includes_default
25775 #include <sys/wait.h>
25776 #ifdef HAVE_VFORK_H
25777 # include <vfork.h>
25778 #endif
25779 /* On some sparc systems, changes by the child to local and incoming
25780 argument registers are propagated back to the parent. The compiler
25781 is told about this with #include <vfork.h>, but some compilers
25782 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25783 static variable whose address is put into a register that is
25784 clobbered by the vfork. */
25785 static void
25786 #ifdef __cplusplus
25787 sparc_address_test (int arg)
25788 # else
25789 sparc_address_test (arg) int arg;
25790 #endif
25792 static pid_t child;
25793 if (!child) {
25794 child = vfork ();
25795 if (child < 0) {
25796 perror ("vfork");
25797 _exit(2);
25799 if (!child) {
25800 arg = getpid();
25801 write(-1, "", 0);
25802 _exit (arg);
25808 main ()
25810 pid_t parent = getpid ();
25811 pid_t child;
25813 sparc_address_test (0);
25815 child = vfork ();
25817 if (child == 0) {
25818 /* Here is another test for sparc vfork register problems. This
25819 test uses lots of local variables, at least as many local
25820 variables as main has allocated so far including compiler
25821 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25822 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25823 reuse the register of parent for one of the local variables,
25824 since it will think that parent can't possibly be used any more
25825 in this routine. Assigning to the local variable will thus
25826 munge parent in the parent process. */
25827 pid_t
25828 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25829 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25830 /* Convince the compiler that p..p7 are live; otherwise, it might
25831 use the same hardware register for all 8 local variables. */
25832 if (p != p1 || p != p2 || p != p3 || p != p4
25833 || p != p5 || p != p6 || p != p7)
25834 _exit(1);
25836 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25837 from child file descriptors. If the child closes a descriptor
25838 before it execs or exits, this munges the parent's descriptor
25839 as well. Test for this by closing stdout in the child. */
25840 _exit(close(fileno(stdout)) != 0);
25841 } else {
25842 int status;
25843 struct stat st;
25845 while (wait(&status) != child)
25847 return (
25848 /* Was there some problem with vforking? */
25849 child < 0
25851 /* Did the child fail? (This shouldn't happen.) */
25852 || status
25854 /* Did the vfork/compiler bug occur? */
25855 || parent != getpid()
25857 /* Did the file descriptor bug occur? */
25858 || fstat(fileno(stdout), &st) != 0
25862 _ACEOF
25863 rm -f conftest$ac_exeext
25864 if { (ac_try="$ac_link"
25865 case "(($ac_try" in
25866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25867 *) ac_try_echo=$ac_try;;
25868 esac
25869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25870 $as_echo "$ac_try_echo") >&5
25871 (eval "$ac_link") 2>&5
25872 ac_status=$?
25873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25875 { (case "(($ac_try" in
25876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25877 *) ac_try_echo=$ac_try;;
25878 esac
25879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25880 $as_echo "$ac_try_echo") >&5
25881 (eval "$ac_try") 2>&5
25882 ac_status=$?
25883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884 (exit $ac_status); }; }; then
25885 ac_cv_func_vfork_works=yes
25886 else
25887 $as_echo "$as_me: program exited with status $ac_status" >&5
25888 $as_echo "$as_me: failed program was:" >&5
25889 sed 's/^/| /' conftest.$ac_ext >&5
25891 ( exit $ac_status )
25892 ac_cv_func_vfork_works=no
25894 rm -rf conftest.dSYM
25895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25900 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25901 $as_echo "$ac_cv_func_vfork_works" >&6; }
25904 if test "x$ac_cv_func_fork_works" = xcross; then
25905 ac_cv_func_vfork_works=$ac_cv_func_vfork
25906 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25907 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25910 if test "x$ac_cv_func_vfork_works" = xyes; then
25912 cat >>confdefs.h <<\_ACEOF
25913 #define HAVE_WORKING_VFORK 1
25914 _ACEOF
25916 else
25918 cat >>confdefs.h <<\_ACEOF
25919 #define vfork fork
25920 _ACEOF
25923 if test "x$ac_cv_func_fork_works" = xyes; then
25925 cat >>confdefs.h <<\_ACEOF
25926 #define HAVE_WORKING_FORK 1
25927 _ACEOF
25932 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25933 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25934 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25935 $as_echo_n "(cached) " >&6
25936 else
25937 cat >conftest.$ac_ext <<_ACEOF
25938 /* confdefs.h. */
25939 _ACEOF
25940 cat confdefs.h >>conftest.$ac_ext
25941 cat >>conftest.$ac_ext <<_ACEOF
25942 /* end confdefs.h. */
25943 #include <langinfo.h>
25945 main ()
25947 char* cs = nl_langinfo(CODESET);
25949 return 0;
25951 _ACEOF
25952 rm -f conftest.$ac_objext conftest$ac_exeext
25953 if { (ac_try="$ac_link"
25954 case "(($ac_try" in
25955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956 *) ac_try_echo=$ac_try;;
25957 esac
25958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25959 $as_echo "$ac_try_echo") >&5
25960 (eval "$ac_link") 2>conftest.er1
25961 ac_status=$?
25962 grep -v '^ *+' conftest.er1 >conftest.err
25963 rm -f conftest.er1
25964 cat conftest.err >&5
25965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); } && {
25967 test -z "$ac_c_werror_flag" ||
25968 test ! -s conftest.err
25969 } && test -s conftest$ac_exeext && {
25970 test "$cross_compiling" = yes ||
25971 $as_test_x conftest$ac_exeext
25972 }; then
25973 emacs_cv_langinfo_codeset=yes
25974 else
25975 $as_echo "$as_me: failed program was:" >&5
25976 sed 's/^/| /' conftest.$ac_ext >&5
25978 emacs_cv_langinfo_codeset=no
25981 rm -rf conftest.dSYM
25982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25983 conftest$ac_exeext conftest.$ac_ext
25986 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25987 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25988 if test $emacs_cv_langinfo_codeset = yes; then
25990 cat >>confdefs.h <<\_ACEOF
25991 #define HAVE_LANGINFO_CODESET 1
25992 _ACEOF
25996 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25997 $as_echo_n "checking for size_t... " >&6; }
25998 if test "${ac_cv_type_size_t+set}" = set; then
25999 $as_echo_n "(cached) " >&6
26000 else
26001 ac_cv_type_size_t=no
26002 cat >conftest.$ac_ext <<_ACEOF
26003 /* confdefs.h. */
26004 _ACEOF
26005 cat confdefs.h >>conftest.$ac_ext
26006 cat >>conftest.$ac_ext <<_ACEOF
26007 /* end confdefs.h. */
26008 $ac_includes_default
26010 main ()
26012 if (sizeof (size_t))
26013 return 0;
26015 return 0;
26017 _ACEOF
26018 rm -f conftest.$ac_objext
26019 if { (ac_try="$ac_compile"
26020 case "(($ac_try" in
26021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26022 *) ac_try_echo=$ac_try;;
26023 esac
26024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26025 $as_echo "$ac_try_echo") >&5
26026 (eval "$ac_compile") 2>conftest.er1
26027 ac_status=$?
26028 grep -v '^ *+' conftest.er1 >conftest.err
26029 rm -f conftest.er1
26030 cat conftest.err >&5
26031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); } && {
26033 test -z "$ac_c_werror_flag" ||
26034 test ! -s conftest.err
26035 } && test -s conftest.$ac_objext; then
26036 cat >conftest.$ac_ext <<_ACEOF
26037 /* confdefs.h. */
26038 _ACEOF
26039 cat confdefs.h >>conftest.$ac_ext
26040 cat >>conftest.$ac_ext <<_ACEOF
26041 /* end confdefs.h. */
26042 $ac_includes_default
26044 main ()
26046 if (sizeof ((size_t)))
26047 return 0;
26049 return 0;
26051 _ACEOF
26052 rm -f conftest.$ac_objext
26053 if { (ac_try="$ac_compile"
26054 case "(($ac_try" in
26055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26056 *) ac_try_echo=$ac_try;;
26057 esac
26058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26059 $as_echo "$ac_try_echo") >&5
26060 (eval "$ac_compile") 2>conftest.er1
26061 ac_status=$?
26062 grep -v '^ *+' conftest.er1 >conftest.err
26063 rm -f conftest.er1
26064 cat conftest.err >&5
26065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); } && {
26067 test -z "$ac_c_werror_flag" ||
26068 test ! -s conftest.err
26069 } && test -s conftest.$ac_objext; then
26071 else
26072 $as_echo "$as_me: failed program was:" >&5
26073 sed 's/^/| /' conftest.$ac_ext >&5
26075 ac_cv_type_size_t=yes
26078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26079 else
26080 $as_echo "$as_me: failed program was:" >&5
26081 sed 's/^/| /' conftest.$ac_ext >&5
26086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26088 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26089 $as_echo "$ac_cv_type_size_t" >&6; }
26090 if test $ac_cv_type_size_t = yes; then
26092 cat >>confdefs.h <<_ACEOF
26093 #define HAVE_SIZE_T 1
26094 _ACEOF
26100 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
26101 $as_echo_n "checking for mbstate_t... " >&6; }
26102 if test "${ac_cv_type_mbstate_t+set}" = set; then
26103 $as_echo_n "(cached) " >&6
26104 else
26105 cat >conftest.$ac_ext <<_ACEOF
26106 /* confdefs.h. */
26107 _ACEOF
26108 cat confdefs.h >>conftest.$ac_ext
26109 cat >>conftest.$ac_ext <<_ACEOF
26110 /* end confdefs.h. */
26111 $ac_includes_default
26112 # include <wchar.h>
26114 main ()
26116 mbstate_t x; return sizeof x;
26118 return 0;
26120 _ACEOF
26121 rm -f conftest.$ac_objext
26122 if { (ac_try="$ac_compile"
26123 case "(($ac_try" in
26124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26125 *) ac_try_echo=$ac_try;;
26126 esac
26127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26128 $as_echo "$ac_try_echo") >&5
26129 (eval "$ac_compile") 2>conftest.er1
26130 ac_status=$?
26131 grep -v '^ *+' conftest.er1 >conftest.err
26132 rm -f conftest.er1
26133 cat conftest.err >&5
26134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135 (exit $ac_status); } && {
26136 test -z "$ac_c_werror_flag" ||
26137 test ! -s conftest.err
26138 } && test -s conftest.$ac_objext; then
26139 ac_cv_type_mbstate_t=yes
26140 else
26141 $as_echo "$as_me: failed program was:" >&5
26142 sed 's/^/| /' conftest.$ac_ext >&5
26144 ac_cv_type_mbstate_t=no
26147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26149 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
26150 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26151 if test $ac_cv_type_mbstate_t = yes; then
26153 cat >>confdefs.h <<\_ACEOF
26154 #define HAVE_MBSTATE_T 1
26155 _ACEOF
26157 else
26159 cat >>confdefs.h <<\_ACEOF
26160 #define mbstate_t int
26161 _ACEOF
26165 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
26166 $as_echo_n "checking for C restrict keyword... " >&6; }
26167 if test "${emacs_cv_c_restrict+set}" = set; then
26168 $as_echo_n "(cached) " >&6
26169 else
26170 cat >conftest.$ac_ext <<_ACEOF
26171 /* confdefs.h. */
26172 _ACEOF
26173 cat confdefs.h >>conftest.$ac_ext
26174 cat >>conftest.$ac_ext <<_ACEOF
26175 /* end confdefs.h. */
26176 void fred (int *restrict x);
26178 main ()
26182 return 0;
26184 _ACEOF
26185 rm -f conftest.$ac_objext
26186 if { (ac_try="$ac_compile"
26187 case "(($ac_try" in
26188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26189 *) ac_try_echo=$ac_try;;
26190 esac
26191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26192 $as_echo "$ac_try_echo") >&5
26193 (eval "$ac_compile") 2>conftest.er1
26194 ac_status=$?
26195 grep -v '^ *+' conftest.er1 >conftest.err
26196 rm -f conftest.er1
26197 cat conftest.err >&5
26198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); } && {
26200 test -z "$ac_c_werror_flag" ||
26201 test ! -s conftest.err
26202 } && test -s conftest.$ac_objext; then
26203 emacs_cv_c_restrict=yes
26204 else
26205 $as_echo "$as_me: failed program was:" >&5
26206 sed 's/^/| /' conftest.$ac_ext >&5
26208 cat >conftest.$ac_ext <<_ACEOF
26209 /* confdefs.h. */
26210 _ACEOF
26211 cat confdefs.h >>conftest.$ac_ext
26212 cat >>conftest.$ac_ext <<_ACEOF
26213 /* end confdefs.h. */
26214 void fred (int *__restrict x);
26216 main ()
26220 return 0;
26222 _ACEOF
26223 rm -f conftest.$ac_objext
26224 if { (ac_try="$ac_compile"
26225 case "(($ac_try" in
26226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26227 *) ac_try_echo=$ac_try;;
26228 esac
26229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26230 $as_echo "$ac_try_echo") >&5
26231 (eval "$ac_compile") 2>conftest.er1
26232 ac_status=$?
26233 grep -v '^ *+' conftest.er1 >conftest.err
26234 rm -f conftest.er1
26235 cat conftest.err >&5
26236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); } && {
26238 test -z "$ac_c_werror_flag" ||
26239 test ! -s conftest.err
26240 } && test -s conftest.$ac_objext; then
26241 emacs_cv_c_restrict=__restrict
26242 else
26243 $as_echo "$as_me: failed program was:" >&5
26244 sed 's/^/| /' conftest.$ac_ext >&5
26246 emacs_cv_c_restrict=no
26249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26254 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
26255 $as_echo "$emacs_cv_c_restrict" >&6; }
26256 case "$emacs_cv_c_restrict" in
26257 yes) emacs_restrict=restrict;;
26258 no) emacs_restrict="";;
26259 *) emacs_restrict="$emacs_cv_c_restrict";;
26260 esac
26261 if test "$emacs_restrict" != __restrict; then
26263 cat >>confdefs.h <<_ACEOF
26264 #define __restrict $emacs_restrict
26265 _ACEOF
26269 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
26270 $as_echo_n "checking for C restricted array declarations... " >&6; }
26271 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26272 $as_echo_n "(cached) " >&6
26273 else
26274 cat >conftest.$ac_ext <<_ACEOF
26275 /* confdefs.h. */
26276 _ACEOF
26277 cat confdefs.h >>conftest.$ac_ext
26278 cat >>conftest.$ac_ext <<_ACEOF
26279 /* end confdefs.h. */
26280 void fred (int x[__restrict]);
26282 main ()
26286 return 0;
26288 _ACEOF
26289 rm -f conftest.$ac_objext
26290 if { (ac_try="$ac_compile"
26291 case "(($ac_try" in
26292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26293 *) ac_try_echo=$ac_try;;
26294 esac
26295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26296 $as_echo "$ac_try_echo") >&5
26297 (eval "$ac_compile") 2>conftest.er1
26298 ac_status=$?
26299 grep -v '^ *+' conftest.er1 >conftest.err
26300 rm -f conftest.er1
26301 cat conftest.err >&5
26302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); } && {
26304 test -z "$ac_c_werror_flag" ||
26305 test ! -s conftest.err
26306 } && test -s conftest.$ac_objext; then
26307 emacs_cv_c_restrict_arr=yes
26308 else
26309 $as_echo "$as_me: failed program was:" >&5
26310 sed 's/^/| /' conftest.$ac_ext >&5
26312 emacs_cv_c_restrict_arr=no
26315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26317 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
26318 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26319 if test "$emacs_cv_c_restrict_arr" = yes; then
26321 cat >>confdefs.h <<\_ACEOF
26322 #define __restrict_arr __restrict
26323 _ACEOF
26329 # Set up the CFLAGS for real compilation, so we can substitute it.
26330 CFLAGS="$REAL_CFLAGS"
26331 CPPFLAGS="$REAL_CPPFLAGS"
26333 ## Hack to detect a buggy GCC version.
26334 if test "x$GCC" = xyes \
26335 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26336 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26337 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26338 { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5
26339 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;}
26340 { (exit 1); exit 1; }; }
26343 #### Find out which version of Emacs this is.
26344 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
26345 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
26346 if test x"${version}" = x; then
26347 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&5
26348 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&2;}
26349 { (exit 1); exit 1; }; }
26351 if test x"${version}" != x"$PACKAGE_VERSION"; then
26352 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
26353 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
26356 ### Specify what sort of things we'll be editing into Makefile and config.h.
26357 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26360 ## Unused?
26382 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
26383 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
26384 ## end of LIBX_BASE, but nothing ever set it.
26389 ## Used in lwlib/Makefile.in.
26402 cat >>confdefs.h <<_ACEOF
26403 #define EMACS_CONFIGURATION "${canonical}"
26404 _ACEOF
26407 cat >>confdefs.h <<_ACEOF
26408 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26409 _ACEOF
26412 cat >>confdefs.h <<_ACEOF
26413 #define config_machfile "${machfile}"
26414 _ACEOF
26417 cat >>confdefs.h <<_ACEOF
26418 #define config_opsysfile "${opsysfile}"
26419 _ACEOF
26422 XMENU_OBJ=
26423 XOBJ=
26424 FONT_OBJ=
26425 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26427 cat >>confdefs.h <<\_ACEOF
26428 #define HAVE_X_WINDOWS 1
26429 _ACEOF
26431 XMENU_OBJ=xmenu.o
26432 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26433 FONT_OBJ=xfont.o
26434 if test "$HAVE_XFT" = "yes"; then
26435 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
26436 elif test "$HAVE_FREETYPE" = "yes"; then
26437 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
26445 WIDGET_OBJ=
26446 MOTIF_LIBW=
26447 if test "${USE_X_TOOLKIT}" != "none" ; then
26448 WIDGET_OBJ=widget.o
26450 cat >>confdefs.h <<\_ACEOF
26451 #define USE_X_TOOLKIT 1
26452 _ACEOF
26454 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26456 cat >>confdefs.h <<\_ACEOF
26457 #define USE_LUCID 1
26458 _ACEOF
26460 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26462 cat >>confdefs.h <<\_ACEOF
26463 #define USE_MOTIF 1
26464 _ACEOF
26466 MOTIF_LIBW=-lXm
26467 case "$opsys" in
26468 gnu-linux)
26469 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26470 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26473 unixware)
26474 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26475 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26476 MOTIF_LIBW="MOTIF_LIBW -lXimp"
26479 aix4-2)
26480 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26481 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26483 esac
26484 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26489 TOOLKIT_LIBW=
26490 case "$USE_X_TOOLKIT" in
26491 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26492 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26493 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26494 esac
26497 if test "$USE_X_TOOLKIT" = "none"; then
26498 LIBXT_OTHER="\$(LIBXSM)"
26499 OLDXMENU_TARGET="really-oldXMenu"
26500 else
26501 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26502 OLDXMENU_TARGET="really-lwlib"
26506 ## The X Menu stuff is present in the X10 distribution, but missing
26507 ## from X11. If we have X10, just use the installed library;
26508 ## otherwise, use our own copy.
26509 if test "${HAVE_X11}" = "yes" ; then
26511 cat >>confdefs.h <<\_ACEOF
26512 #define HAVE_X11 1
26513 _ACEOF
26516 if test "$USE_X_TOOLKIT" = "none"; then
26517 OLDXMENU="\${oldXMenudir}libXMenu11.a"
26518 else
26519 OLDXMENU="\${lwlibdir}liblw.a"
26521 LIBXMENU="\$(OLDXMENU)"
26522 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
26523 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
26524 else
26525 ## For a syntactically valid Makefile; not actually used for anything.
26526 ## See comments in src/Makefile.in.
26527 OLDXMENU=nothing
26528 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
26529 if test "${HAVE_X_WINDOWS}" = "yes"; then
26530 LIBXMENU="-lXMenu"
26531 else
26532 LIBXMENU=
26534 LIBX_OTHER=
26535 OLDXMENU_DEPS=
26538 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
26539 OLDXMENU_TARGET=
26540 OLDXMENU=nothing
26541 LIBXMENU=
26542 OLDXMENU_DEPS=
26551 if test "${HAVE_MENUS}" = "yes" ; then
26553 cat >>confdefs.h <<\_ACEOF
26554 #define HAVE_MENUS 1
26555 _ACEOF
26559 if test "${GNU_MALLOC}" = "yes" ; then
26561 cat >>confdefs.h <<\_ACEOF
26562 #define GNU_MALLOC 1
26563 _ACEOF
26567 RALLOC_OBJ=
26568 if test "${REL_ALLOC}" = "yes" ; then
26570 cat >>confdefs.h <<\_ACEOF
26571 #define REL_ALLOC 1
26572 _ACEOF
26575 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
26579 if test "$opsys" = "cygwin"; then
26580 CYGWIN_OBJ="sheap.o"
26581 ## Cygwin differs because of its unexec().
26582 PRE_ALLOC_OBJ=
26583 POST_ALLOC_OBJ=lastfile.o
26584 else
26585 CYGWIN_OBJ=
26586 PRE_ALLOC_OBJ=lastfile.o
26587 POST_ALLOC_OBJ=
26594 case "$opsys" in
26595 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26597 darwin)
26598 ## The -headerpad option tells ld (see man page) to leave room at the
26599 ## end of the header for adding load commands. Needed for dumping.
26600 ## 0x690 is the total size of 30 segment load commands (at 56
26601 ## each); under Cocoa 31 commands are required.
26602 if test "$HAVE_NS" = "yes"; then
26603 libs_nsgui="-framework AppKit"
26604 headerpad_extra=6C8
26605 else
26606 libs_nsgui=
26607 headerpad_extra=690
26609 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26612 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26613 esac
26617 ## This exists because src/Makefile.in did some extra fiddling around
26618 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26619 ## #ifndef LD_SWITCH_SYSTEM
26620 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26621 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26622 ## not using gcc, darwin system not on an alpha (ie darwin, since
26623 ## darwin + alpha does not occur).
26624 ## Note that unlike L_S_S, this is not used in ac_link.
26625 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26626 test "$opsys" = "darwin"; then
26627 LD_SWITCH_SYSTEM_EXTRA="-X"
26628 else
26629 LD_SWITCH_SYSTEM_EXTRA=
26634 LINKER=
26635 ORDINARY_LINK=
26636 case "$opsys" in
26637 ## gnu: GNU needs its own crt0.
26638 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
26640 cygwin) LINKER="\$(CC)" ;;
26642 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
26643 ## library search parth, i.e. it won't search /usr/lib for libc and
26644 ## friends. Using -nostartfiles instead avoids this problem, and
26645 ## will also work on earlier NetBSD releases.
26646 netbsd|openbsd) LINKER="\$(CC) -nostartfiles" ;;
26648 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
26649 ## MkLinux/LinuxPPC needs this.
26650 ## ibms390x only supports opsys = gnu-linux so it can be added here.
26651 gnu-*)
26652 case "$machine" in
26653 macppc|ibms390x) LINKER="\$(CC) -nostdlib" ;;
26654 esac
26656 esac
26658 ## A macro which other sections of Makefile can redefine to munge the
26659 ## flags before they are passed to LD. This is helpful if you have
26660 ## redefined LD to something odd, like "gcc".
26661 ## (The YMF prefix is a holdover from the old name "ymakefile".)
26662 YMF_PASS_LDFLAGS=flags
26663 if test "x$ORDINARY_LINK" = "xyes"; then
26665 LINKER="\$(CC)"
26667 cat >>confdefs.h <<\_ACEOF
26668 #define ORDINARY_LINK 1
26669 _ACEOF
26672 ## The system files defining neither ORDINARY_LINK nor LINKER are:
26673 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
26674 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
26676 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
26677 ## places that are difficult to figure out at make time. Fortunately,
26678 ## these same versions allow you to pass arbitrary flags on to the
26679 ## linker, so there is no reason not to use it as a linker.
26681 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
26682 ## searching for libraries in its internal directories, so we have to
26683 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
26684 LINKER="\$(CC) -nostdlib"
26685 ## GCC passes any argument prefixed with -Xlinker directly to the linker.
26686 ## See prefix-args.c for an explanation of why we do not do this with the
26687 ## shell''s ``for'' construct. Note that sane people do not have '.' in
26688 ## their paths, so we must use ./prefix-args.
26689 ## TODO either make prefix-args check ORDINARY_LINK internally,
26690 ## or remove it altogether (bug#6184), removing the need for this macro.
26691 YMF_PASS_LDFLAGS='`./prefix-args -Xlinker flags`'
26695 test "x$LINKER" = "x" && LINKER=ld
26696 ## FIXME? What setting of YMF_PASS_LDFLAGS should this have?
26697 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic"
26702 ## FIXME? The logic here is not precisely the same as that above
26703 ## setting YMF_PASS_LDFLAGS. There is no check here for a pre-defined
26704 ## LINKER. Should we only be setting LIB_GCC if LD ~ -nostdlib?
26705 LIB_GCC=
26706 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26708 case "$opsys" in
26709 ## cygwin: don't link against static libgcc.
26710 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
26712 gnu-*)
26713 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26714 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26715 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26716 if test "$machine" = "arm"; then
26717 LIB_GCC="-lgcc_s"
26718 else
26719 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26720 ## immediately undefine it again and redefine it to empty.
26721 ## Was the C_SWITCH_X_SITE part really necessary?
26722 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26723 LIB_GCC=
26727 ## Ask GCC where to find libgcc.a.
26728 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26729 esac
26733 TOOLTIP_SUPPORT=
26734 WINDOW_SUPPORT=
26735 ## If we're using X11/GNUstep, define some consequences.
26736 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
26738 cat >>confdefs.h <<\_ACEOF
26739 #define HAVE_WINDOW_SYSTEM 1
26740 _ACEOF
26743 cat >>confdefs.h <<\_ACEOF
26744 #define HAVE_MOUSE 1
26745 _ACEOF
26747 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
26748 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
26750 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
26751 test "$HAVE_X_WINDOWS" = "yes" && \
26752 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
26764 #### Report on what we decided to do.
26765 #### Report GTK as a toolkit, even if it doesn't use Xt.
26766 #### It makes printing result more understandable as using GTK sets
26767 #### toolkit_scroll_bars to yes by default.
26768 if test "${HAVE_GTK}" = "yes"; then
26769 USE_X_TOOLKIT=GTK
26772 echo "
26773 Configured for \`${canonical}'.
26775 Where should the build process find the source code? ${srcdir}
26776 What operating system and machine description files should Emacs use?
26777 \`${opsysfile}' and \`${machfile}'
26778 What compiler should emacs be built with? ${CC} ${CFLAGS}
26779 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26780 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26781 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26782 What window system should Emacs use? ${window_system}
26783 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26785 if test -n "${x_includes}"; then
26786 echo " Where do we find X Windows header files? ${x_includes}"
26787 else
26788 echo " Where do we find X Windows header files? Standard dirs"
26790 if test -n "${x_libraries}"; then
26791 echo " Where do we find X Windows libraries? ${x_libraries}"
26792 else
26793 echo " Where do we find X Windows libraries? Standard dirs"
26796 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26797 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26798 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26799 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26800 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26801 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26802 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26803 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26804 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26805 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26806 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26808 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26809 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26810 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26811 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26813 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26814 echo
26816 if test $USE_XASSERTS = yes; then
26817 echo " Compiling with asserts turned on."
26818 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26821 echo
26823 if test "$HAVE_NS" = "yes"; then
26824 echo
26825 echo "You must run \"make install\" in order to test the built application.
26826 The installed application will go to nextstep/Emacs.app and can be
26827 run or moved from there."
26828 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26829 echo "The application will be fully self-contained."
26830 else
26831 echo "The lisp resources for the application will be installed under ${prefix}.
26832 You may need to run \"make install\" with sudo. The application will fail
26833 to run if these resources are not installed."
26835 echo
26838 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26839 echo "D-Bus integration has been tested for GNU/Linux only."
26840 echo
26844 # Remove any trailing slashes in these variables.
26845 test "${prefix}" != NONE &&
26846 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26847 test "${exec_prefix}" != NONE &&
26848 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26850 # Now get this: Some word that is part of the ${srcdir} directory name
26851 # or the ${configuration} value might, just might, happen to be an
26852 # identifier like `sun4' or `i386' or something, and be predefined by
26853 # the C preprocessor to some helpful value like 1, or maybe the empty
26854 # string. Needless to say consequent macro substitutions are less
26855 # than conducive to the makefile finding the correct directory.
26856 # src/Makefile.in used to treat X11 as equivalent to HAVE_X11.
26857 # But nothing in Emacs defines X11, and everywhere else uses HAVE_X11,
26858 # so that cannot have been doing anything.
26859 cpp_undefs="`echo $srcdir $configuration $canonical unix mktime register X11 |
26860 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26861 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26863 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26864 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26865 ## from Makefile.c can correctly provide the arg `-traditional' to the
26866 ## C preprocessor.
26868 cat >conftest.$ac_ext <<_ACEOF
26869 /* confdefs.h. */
26870 _ACEOF
26871 cat confdefs.h >>conftest.$ac_ext
26872 cat >>conftest.$ac_ext <<_ACEOF
26873 /* end confdefs.h. */
26874 yes..yes
26875 _ACEOF
26876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26877 $EGREP "yes..yes" >/dev/null 2>&1; then
26878 CPP_NEED_TRADITIONAL=no
26879 else
26880 CPP_NEED_TRADITIONAL=yes
26882 rm -f conftest*
26885 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.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
26887 ac_config_commands="$ac_config_commands default"
26889 cat >confcache <<\_ACEOF
26890 # This file is a shell script that caches the results of configure
26891 # tests run on this system so they can be shared between configure
26892 # scripts and configure runs, see configure's option --config-cache.
26893 # It is not useful on other systems. If it contains results you don't
26894 # want to keep, you may remove or edit it.
26896 # config.status only pays attention to the cache file if you give it
26897 # the --recheck option to rerun configure.
26899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26901 # following values.
26903 _ACEOF
26905 # The following way of writing the cache mishandles newlines in values,
26906 # but we know of no workaround that is simple, portable, and efficient.
26907 # So, we kill variables containing newlines.
26908 # Ultrix sh set writes to stderr and can't be redirected directly,
26909 # and sets the high bit in the cache file unless we assign to the vars.
26911 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26912 eval ac_val=\$$ac_var
26913 case $ac_val in #(
26914 *${as_nl}*)
26915 case $ac_var in #(
26916 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26917 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26918 esac
26919 case $ac_var in #(
26920 _ | IFS | as_nl) ;; #(
26921 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26922 *) $as_unset $ac_var ;;
26923 esac ;;
26924 esac
26925 done
26927 (set) 2>&1 |
26928 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26929 *${as_nl}ac_space=\ *)
26930 # `set' does not quote correctly, so add quotes (double-quote
26931 # substitution turns \\\\ into \\, and sed turns \\ into \).
26932 sed -n \
26933 "s/'/'\\\\''/g;
26934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26935 ;; #(
26937 # `set' quotes correctly as required by POSIX, so do not add quotes.
26938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26940 esac |
26941 sort
26943 sed '
26944 /^ac_cv_env_/b end
26945 t clear
26946 :clear
26947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26948 t end
26949 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26950 :end' >>confcache
26951 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26952 if test -w "$cache_file"; then
26953 test "x$cache_file" != "x/dev/null" &&
26954 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26955 $as_echo "$as_me: updating cache $cache_file" >&6;}
26956 cat confcache >$cache_file
26957 else
26958 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26959 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26962 rm -f confcache
26964 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26965 # Let make expand exec_prefix.
26966 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26968 DEFS=-DHAVE_CONFIG_H
26970 ac_libobjs=
26971 ac_ltlibobjs=
26972 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26973 # 1. Remove the extension, and $U if already installed.
26974 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26975 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26976 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26977 # will be set to the directory where LIBOBJS objects are built.
26978 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26979 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26980 done
26981 LIBOBJS=$ac_libobjs
26983 LTLIBOBJS=$ac_ltlibobjs
26987 : ${CONFIG_STATUS=./config.status}
26988 ac_write_fail=0
26989 ac_clean_files_save=$ac_clean_files
26990 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26991 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26992 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26993 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26994 #! $SHELL
26995 # Generated by $as_me.
26996 # Run this file to recreate the current configuration.
26997 # Compiler output produced by configure, useful for debugging
26998 # configure, is in config.log if it exists.
27000 debug=false
27001 ac_cs_recheck=false
27002 ac_cs_silent=false
27003 SHELL=\${CONFIG_SHELL-$SHELL}
27004 _ACEOF
27006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27007 ## --------------------- ##
27008 ## M4sh Initialization. ##
27009 ## --------------------- ##
27011 # Be more Bourne compatible
27012 DUALCASE=1; export DUALCASE # for MKS sh
27013 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27014 emulate sh
27015 NULLCMD=:
27016 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27017 # is contrary to our usage. Disable this feature.
27018 alias -g '${1+"$@"}'='"$@"'
27019 setopt NO_GLOB_SUBST
27020 else
27021 case `(set -o) 2>/dev/null` in
27022 *posix*) set -o posix ;;
27023 esac
27030 # PATH needs CR
27031 # Avoid depending upon Character Ranges.
27032 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27033 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27034 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27035 as_cr_digits='0123456789'
27036 as_cr_alnum=$as_cr_Letters$as_cr_digits
27038 as_nl='
27040 export as_nl
27041 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27042 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27043 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27044 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27045 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27046 as_echo='printf %s\n'
27047 as_echo_n='printf %s'
27048 else
27049 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27050 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27051 as_echo_n='/usr/ucb/echo -n'
27052 else
27053 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27054 as_echo_n_body='eval
27055 arg=$1;
27056 case $arg in
27057 *"$as_nl"*)
27058 expr "X$arg" : "X\\(.*\\)$as_nl";
27059 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27060 esac;
27061 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27063 export as_echo_n_body
27064 as_echo_n='sh -c $as_echo_n_body as_echo'
27066 export as_echo_body
27067 as_echo='sh -c $as_echo_body as_echo'
27070 # The user is always right.
27071 if test "${PATH_SEPARATOR+set}" != set; then
27072 PATH_SEPARATOR=:
27073 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27074 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27075 PATH_SEPARATOR=';'
27079 # Support unset when possible.
27080 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27081 as_unset=unset
27082 else
27083 as_unset=false
27087 # IFS
27088 # We need space, tab and new line, in precisely that order. Quoting is
27089 # there to prevent editors from complaining about space-tab.
27090 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27091 # splitting by setting IFS to empty value.)
27092 IFS=" "" $as_nl"
27094 # Find who we are. Look in the path if we contain no directory separator.
27095 case $0 in
27096 *[\\/]* ) as_myself=$0 ;;
27097 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27098 for as_dir in $PATH
27100 IFS=$as_save_IFS
27101 test -z "$as_dir" && as_dir=.
27102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27103 done
27104 IFS=$as_save_IFS
27107 esac
27108 # We did not find ourselves, most probably we were run as `sh COMMAND'
27109 # in which case we are not to be found in the path.
27110 if test "x$as_myself" = x; then
27111 as_myself=$0
27113 if test ! -f "$as_myself"; then
27114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27115 { (exit 1); exit 1; }
27118 # Work around bugs in pre-3.0 UWIN ksh.
27119 for as_var in ENV MAIL MAILPATH
27120 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27121 done
27122 PS1='$ '
27123 PS2='> '
27124 PS4='+ '
27126 # NLS nuisances.
27127 LC_ALL=C
27128 export LC_ALL
27129 LANGUAGE=C
27130 export LANGUAGE
27132 # Required to use basename.
27133 if expr a : '\(a\)' >/dev/null 2>&1 &&
27134 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27135 as_expr=expr
27136 else
27137 as_expr=false
27140 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27141 as_basename=basename
27142 else
27143 as_basename=false
27147 # Name of the executable.
27148 as_me=`$as_basename -- "$0" ||
27149 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27150 X"$0" : 'X\(//\)$' \| \
27151 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27152 $as_echo X/"$0" |
27153 sed '/^.*\/\([^/][^/]*\)\/*$/{
27154 s//\1/
27157 /^X\/\(\/\/\)$/{
27158 s//\1/
27161 /^X\/\(\/\).*/{
27162 s//\1/
27165 s/.*/./; q'`
27167 # CDPATH.
27168 $as_unset CDPATH
27172 as_lineno_1=$LINENO
27173 as_lineno_2=$LINENO
27174 test "x$as_lineno_1" != "x$as_lineno_2" &&
27175 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27177 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27178 # uniformly replaced by the line number. The first 'sed' inserts a
27179 # line-number line after each line using $LINENO; the second 'sed'
27180 # does the real work. The second script uses 'N' to pair each
27181 # line-number line with the line containing $LINENO, and appends
27182 # trailing '-' during substitution so that $LINENO is not a special
27183 # case at line end.
27184 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27185 # scripts with optimization help from Paolo Bonzini. Blame Lee
27186 # E. McMahon (1931-1989) for sed's syntax. :-)
27187 sed -n '
27189 /[$]LINENO/=
27190 ' <$as_myself |
27191 sed '
27192 s/[$]LINENO.*/&-/
27193 t lineno
27195 :lineno
27197 :loop
27198 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27199 t loop
27200 s/-\n.*//
27201 ' >$as_me.lineno &&
27202 chmod +x "$as_me.lineno" ||
27203 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27204 { (exit 1); exit 1; }; }
27206 # Don't try to exec as it changes $[0], causing all sort of problems
27207 # (the dirname of $[0] is not the place where we might find the
27208 # original and so on. Autoconf is especially sensitive to this).
27209 . "./$as_me.lineno"
27210 # Exit status is that of the last command.
27211 exit
27215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27216 as_dirname=dirname
27217 else
27218 as_dirname=false
27221 ECHO_C= ECHO_N= ECHO_T=
27222 case `echo -n x` in
27223 -n*)
27224 case `echo 'x\c'` in
27225 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27226 *) ECHO_C='\c';;
27227 esac;;
27229 ECHO_N='-n';;
27230 esac
27231 if expr a : '\(a\)' >/dev/null 2>&1 &&
27232 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27233 as_expr=expr
27234 else
27235 as_expr=false
27238 rm -f conf$$ conf$$.exe conf$$.file
27239 if test -d conf$$.dir; then
27240 rm -f conf$$.dir/conf$$.file
27241 else
27242 rm -f conf$$.dir
27243 mkdir conf$$.dir 2>/dev/null
27245 if (echo >conf$$.file) 2>/dev/null; then
27246 if ln -s conf$$.file conf$$ 2>/dev/null; then
27247 as_ln_s='ln -s'
27248 # ... but there are two gotchas:
27249 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27250 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27251 # In both cases, we have to default to `cp -p'.
27252 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27253 as_ln_s='cp -p'
27254 elif ln conf$$.file conf$$ 2>/dev/null; then
27255 as_ln_s=ln
27256 else
27257 as_ln_s='cp -p'
27259 else
27260 as_ln_s='cp -p'
27262 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27263 rmdir conf$$.dir 2>/dev/null
27265 if mkdir -p . 2>/dev/null; then
27266 as_mkdir_p=:
27267 else
27268 test -d ./-p && rmdir ./-p
27269 as_mkdir_p=false
27272 if test -x / >/dev/null 2>&1; then
27273 as_test_x='test -x'
27274 else
27275 if ls -dL / >/dev/null 2>&1; then
27276 as_ls_L_option=L
27277 else
27278 as_ls_L_option=
27280 as_test_x='
27281 eval sh -c '\''
27282 if test -d "$1"; then
27283 test -d "$1/.";
27284 else
27285 case $1 in
27286 -*)set "./$1";;
27287 esac;
27288 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27289 ???[sx]*):;;*)false;;esac;fi
27290 '\'' sh
27293 as_executable_p=$as_test_x
27295 # Sed expression to map a string onto a valid CPP name.
27296 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27298 # Sed expression to map a string onto a valid variable name.
27299 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27302 exec 6>&1
27304 # Save the log message, to keep $[0] and so on meaningful, and to
27305 # report actual input values of CONFIG_FILES etc. instead of their
27306 # values after options handling.
27307 ac_log="
27308 This file was extended by emacs $as_me 24.0.50, which was
27309 generated by GNU Autoconf 2.62. Invocation command line was
27311 CONFIG_FILES = $CONFIG_FILES
27312 CONFIG_HEADERS = $CONFIG_HEADERS
27313 CONFIG_LINKS = $CONFIG_LINKS
27314 CONFIG_COMMANDS = $CONFIG_COMMANDS
27315 $ $0 $@
27317 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27320 _ACEOF
27322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27323 # Files that config.status was made for.
27324 config_files="$ac_config_files"
27325 config_headers="$ac_config_headers"
27326 config_commands="$ac_config_commands"
27328 _ACEOF
27330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27331 ac_cs_usage="\
27332 \`$as_me' instantiates files from templates according to the
27333 current configuration.
27335 Usage: $0 [OPTIONS] [FILE]...
27337 -h, --help print this help, then exit
27338 -V, --version print version number and configuration settings, then exit
27339 -q, --quiet do not print progress messages
27340 -d, --debug don't remove temporary files
27341 --recheck update $as_me by reconfiguring in the same conditions
27342 --file=FILE[:TEMPLATE]
27343 instantiate the configuration file FILE
27344 --header=FILE[:TEMPLATE]
27345 instantiate the configuration header FILE
27347 Configuration files:
27348 $config_files
27350 Configuration headers:
27351 $config_headers
27353 Configuration commands:
27354 $config_commands
27356 Report bugs to <bug-autoconf@gnu.org>."
27358 _ACEOF
27359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27360 ac_cs_version="\\
27361 emacs config.status 24.0.50
27362 configured by $0, generated by GNU Autoconf 2.62,
27363 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27365 Copyright (C) 2008 Free Software Foundation, Inc.
27366 This config.status script is free software; the Free Software Foundation
27367 gives unlimited permission to copy, distribute and modify it."
27369 ac_pwd='$ac_pwd'
27370 srcdir='$srcdir'
27371 INSTALL='$INSTALL'
27372 test -n "\$AWK" || AWK=awk
27373 _ACEOF
27375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27376 # The default lists apply if the user does not specify any file.
27377 ac_need_defaults=:
27378 while test $# != 0
27380 case $1 in
27381 --*=*)
27382 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27383 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27384 ac_shift=:
27387 ac_option=$1
27388 ac_optarg=$2
27389 ac_shift=shift
27391 esac
27393 case $ac_option in
27394 # Handling of the options.
27395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27396 ac_cs_recheck=: ;;
27397 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27398 $as_echo "$ac_cs_version"; exit ;;
27399 --debug | --debu | --deb | --de | --d | -d )
27400 debug=: ;;
27401 --file | --fil | --fi | --f )
27402 $ac_shift
27403 case $ac_optarg in
27404 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27405 esac
27406 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
27407 ac_need_defaults=false;;
27408 --header | --heade | --head | --hea )
27409 $ac_shift
27410 case $ac_optarg in
27411 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27412 esac
27413 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
27414 ac_need_defaults=false;;
27415 --he | --h)
27416 # Conflict between --help and --header
27417 { $as_echo "$as_me: error: ambiguous option: $1
27418 Try \`$0 --help' for more information." >&2
27419 { (exit 1); exit 1; }; };;
27420 --help | --hel | -h )
27421 $as_echo "$ac_cs_usage"; exit ;;
27422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27423 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27424 ac_cs_silent=: ;;
27426 # This is an error.
27427 -*) { $as_echo "$as_me: error: unrecognized option: $1
27428 Try \`$0 --help' for more information." >&2
27429 { (exit 1); exit 1; }; } ;;
27431 *) ac_config_targets="$ac_config_targets $1"
27432 ac_need_defaults=false ;;
27434 esac
27435 shift
27436 done
27438 ac_configure_extra_args=
27440 if $ac_cs_silent; then
27441 exec 6>/dev/null
27442 ac_configure_extra_args="$ac_configure_extra_args --silent"
27445 _ACEOF
27446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27447 if \$ac_cs_recheck; then
27448 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27449 shift
27450 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27451 CONFIG_SHELL='$SHELL'
27452 export CONFIG_SHELL
27453 exec "\$@"
27456 _ACEOF
27457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27458 exec 5>>config.log
27460 echo
27461 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27462 ## Running $as_me. ##
27463 _ASBOX
27464 $as_echo "$ac_log"
27465 } >&5
27467 _ACEOF
27468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27470 # INIT-COMMANDS
27472 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27474 _ACEOF
27476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27478 # Handling of arguments.
27479 for ac_config_target in $ac_config_targets
27481 case $ac_config_target in
27482 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27483 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27484 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27485 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27486 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27487 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27488 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27489 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27490 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27491 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27492 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27493 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27494 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27496 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27497 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27498 { (exit 1); exit 1; }; };;
27499 esac
27500 done
27503 # If the user did not use the arguments to specify the items to instantiate,
27504 # then the envvar interface is used. Set only those that are not.
27505 # We use the long form for the default assignment because of an extremely
27506 # bizarre bug on SunOS 4.1.3.
27507 if $ac_need_defaults; then
27508 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27509 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27510 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27513 # Have a temporary directory for convenience. Make it in the build tree
27514 # simply because there is no reason against having it here, and in addition,
27515 # creating and moving files from /tmp can sometimes cause problems.
27516 # Hook for its removal unless debugging.
27517 # Note that there is a small window in which the directory will not be cleaned:
27518 # after its creation but before its name has been assigned to `$tmp'.
27519 $debug ||
27521 tmp=
27522 trap 'exit_status=$?
27523 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27525 trap '{ (exit 1); exit 1; }' 1 2 13 15
27527 # Create a (secure) tmp directory for tmp files.
27530 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27531 test -n "$tmp" && test -d "$tmp"
27532 } ||
27534 tmp=./conf$$-$RANDOM
27535 (umask 077 && mkdir "$tmp")
27536 } ||
27538 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27539 { (exit 1); exit 1; }
27542 # Set up the scripts for CONFIG_FILES section.
27543 # No need to generate them if there are no CONFIG_FILES.
27544 # This happens for instance with `./config.status config.h'.
27545 if test -n "$CONFIG_FILES"; then
27547 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27548 ac_cs_awk_getline=:
27549 ac_cs_awk_pipe_init=
27550 ac_cs_awk_read_file='
27551 while ((getline aline < (F[key])) > 0)
27552 print(aline)
27553 close(F[key])'
27554 ac_cs_awk_pipe_fini=
27555 else
27556 ac_cs_awk_getline=false
27557 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27558 ac_cs_awk_read_file='
27559 print "|#_!!_#|"
27560 print "cat " F[key] " &&"
27561 '$ac_cs_awk_pipe_init
27562 # The final `:' finishes the AND list.
27563 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27565 ac_cr=' '
27566 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27567 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27568 ac_cs_awk_cr='\\r'
27569 else
27570 ac_cs_awk_cr=$ac_cr
27573 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27574 _ACEOF
27576 # Create commands to substitute file output variables.
27578 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27579 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27580 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27581 echo "_ACAWK" &&
27582 echo "_ACEOF"
27583 } >conf$$files.sh &&
27584 . ./conf$$files.sh ||
27585 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27586 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27587 { (exit 1); exit 1; }; }
27588 rm -f conf$$files.sh
27591 echo "cat >conf$$subs.awk <<_ACEOF" &&
27592 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27593 echo "_ACEOF"
27594 } >conf$$subs.sh ||
27595 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27596 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27597 { (exit 1); exit 1; }; }
27598 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27599 ac_delim='%!_!# '
27600 for ac_last_try in false false false false false :; do
27601 . ./conf$$subs.sh ||
27602 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27603 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27604 { (exit 1); exit 1; }; }
27606 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27607 break
27608 elif $ac_last_try; then
27609 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27610 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27611 { (exit 1); exit 1; }; }
27612 else
27613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27615 done
27616 rm -f conf$$subs.sh
27618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27619 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27620 _ACEOF
27621 sed -n '
27623 s/^/S["/; s/!.*/"]=/
27626 s/^[^!]*!//
27627 :repl
27628 t repl
27629 s/'"$ac_delim"'$//
27630 t delim
27633 s/\(.\{148\}\).*/\1/
27634 t more1
27635 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27638 b repl
27639 :more1
27640 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27643 s/.\{148\}//
27644 t nl
27645 :delim
27647 s/\(.\{148\}\).*/\1/
27648 t more2
27649 s/["\\]/\\&/g; s/^/"/; s/$/"/
27652 :more2
27653 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27656 s/.\{148\}//
27657 t delim
27658 ' <conf$$subs.awk | sed '
27659 /^[^""]/{
27661 s/\n//
27663 ' >>$CONFIG_STATUS || ac_write_fail=1
27664 rm -f conf$$subs.awk
27665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27666 _ACAWK
27667 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27668 for (key in S) S_is_set[key] = 1
27669 FS = "\a"
27670 \$ac_cs_awk_pipe_init
27673 line = $ 0
27674 nfields = split(line, field, "@")
27675 substed = 0
27676 len = length(field[1])
27677 for (i = 2; i < nfields; i++) {
27678 key = field[i]
27679 keylen = length(key)
27680 if (S_is_set[key]) {
27681 value = S[key]
27682 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27683 len += length(value) + length(field[++i])
27684 substed = 1
27685 } else
27686 len += 1 + keylen
27688 if (nfields == 3 && !substed) {
27689 key = field[2]
27690 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27691 \$ac_cs_awk_read_file
27692 next
27695 print line
27697 \$ac_cs_awk_pipe_fini
27698 _ACAWK
27699 _ACEOF
27700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27701 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27702 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27703 else
27705 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27706 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27707 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27708 { (exit 1); exit 1; }; }
27709 _ACEOF
27711 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27712 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27713 # trailing colons and then remove the whole line if VPATH becomes empty
27714 # (actually we leave an empty line to preserve line numbers).
27715 if test "x$srcdir" = x.; then
27716 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27717 s/:*\$(srcdir):*/:/
27718 s/:*\${srcdir}:*/:/
27719 s/:*@srcdir@:*/:/
27720 s/^\([^=]*=[ ]*\):*/\1/
27721 s/:*$//
27722 s/^[^=]*=[ ]*$//
27726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27727 fi # test -n "$CONFIG_FILES"
27729 # Set up the scripts for CONFIG_HEADERS section.
27730 # No need to generate them if there are no CONFIG_HEADERS.
27731 # This happens for instance with `./config.status Makefile'.
27732 if test -n "$CONFIG_HEADERS"; then
27733 cat >"$tmp/defines.awk" <<\_ACAWK ||
27734 BEGIN {
27735 _ACEOF
27737 # Transform confdefs.h into an awk script `defines.awk', embedded as
27738 # here-document in config.status, that substitutes the proper values into
27739 # config.h.in to produce config.h.
27741 # Create a delimiter string that does not exist in confdefs.h, to ease
27742 # handling of long lines.
27743 ac_delim='%!_!# '
27744 for ac_last_try in false false :; do
27745 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27746 if test -z "$ac_t"; then
27747 break
27748 elif $ac_last_try; then
27749 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27750 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27751 { (exit 1); exit 1; }; }
27752 else
27753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27755 done
27757 # For the awk script, D is an array of macro values keyed by name,
27758 # likewise P contains macro parameters if any. Preserve backslash
27759 # newline sequences.
27761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27762 sed -n '
27763 s/.\{148\}/&'"$ac_delim"'/g
27764 t rset
27765 :rset
27766 s/^[ ]*#[ ]*define[ ][ ]*/ /
27767 t def
27769 :def
27770 s/\\$//
27771 t bsnl
27772 s/["\\]/\\&/g
27773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27774 D["\1"]=" \3"/p
27775 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27777 :bsnl
27778 s/["\\]/\\&/g
27779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27780 D["\1"]=" \3\\\\\\n"\\/p
27781 t cont
27782 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27783 t cont
27785 :cont
27787 s/.\{148\}/&'"$ac_delim"'/g
27788 t clear
27789 :clear
27790 s/\\$//
27791 t bsnlc
27792 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27794 :bsnlc
27795 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27796 b cont
27797 ' <confdefs.h | sed '
27798 s/'"$ac_delim"'/"\\\
27799 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27802 for (key in D) D_is_set[key] = 1
27803 FS = "\a"
27805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27806 line = \$ 0
27807 split(line, arg, " ")
27808 if (arg[1] == "#") {
27809 defundef = arg[2]
27810 mac1 = arg[3]
27811 } else {
27812 defundef = substr(arg[1], 2)
27813 mac1 = arg[2]
27815 split(mac1, mac2, "(") #)
27816 macro = mac2[1]
27817 if (D_is_set[macro]) {
27818 # Preserve the white space surrounding the "#".
27819 prefix = substr(line, 1, index(line, defundef) - 1)
27820 print prefix "define", macro P[macro] D[macro]
27821 next
27822 } else {
27823 # Replace #undef with comments. This is necessary, for example,
27824 # in the case of _POSIX_SOURCE, which is predefined and required
27825 # on some systems where configure will not decide to define it.
27826 if (defundef == "undef") {
27827 print "/*", line, "*/"
27828 next
27832 { print }
27833 _ACAWK
27834 _ACEOF
27835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27836 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27837 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27838 { (exit 1); exit 1; }; }
27839 fi # test -n "$CONFIG_HEADERS"
27842 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27843 shift
27844 for ac_tag
27846 case $ac_tag in
27847 :[FHLC]) ac_mode=$ac_tag; continue;;
27848 esac
27849 case $ac_mode$ac_tag in
27850 :[FHL]*:*);;
27851 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27852 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27853 { (exit 1); exit 1; }; };;
27854 :[FH]-) ac_tag=-:-;;
27855 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27856 esac
27857 ac_save_IFS=$IFS
27858 IFS=:
27859 set x $ac_tag
27860 IFS=$ac_save_IFS
27861 shift
27862 ac_file=$1
27863 shift
27865 case $ac_mode in
27866 :L) ac_source=$1;;
27867 :[FH])
27868 ac_file_inputs=
27869 for ac_f
27871 case $ac_f in
27872 -) ac_f="$tmp/stdin";;
27873 *) # Look for the file first in the build tree, then in the source tree
27874 # (if the path is not absolute). The absolute path cannot be DOS-style,
27875 # because $ac_f cannot contain `:'.
27876 test -f "$ac_f" ||
27877 case $ac_f in
27878 [\\/$]*) false;;
27879 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27880 esac ||
27881 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27882 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27883 { (exit 1); exit 1; }; };;
27884 esac
27885 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27886 ac_file_inputs="$ac_file_inputs '$ac_f'"
27887 done
27889 # Let's still pretend it is `configure' which instantiates (i.e., don't
27890 # use $as_me), people would be surprised to read:
27891 # /* config.h. Generated by config.status. */
27892 configure_input='Generated from '`
27893 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27894 `' by configure.'
27895 if test x"$ac_file" != x-; then
27896 configure_input="$ac_file. $configure_input"
27897 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27898 $as_echo "$as_me: creating $ac_file" >&6;}
27900 # Neutralize special characters interpreted by sed in replacement strings.
27901 case $configure_input in #(
27902 *\&* | *\|* | *\\* )
27903 ac_sed_conf_input=`$as_echo "$configure_input" |
27904 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27905 *) ac_sed_conf_input=$configure_input;;
27906 esac
27908 case $ac_tag in
27909 *:-:* | *:-) cat >"$tmp/stdin" \
27910 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27911 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27912 { (exit 1); exit 1; }; } ;;
27913 esac
27915 esac
27917 ac_dir=`$as_dirname -- "$ac_file" ||
27918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27919 X"$ac_file" : 'X\(//\)[^/]' \| \
27920 X"$ac_file" : 'X\(//\)$' \| \
27921 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27922 $as_echo X"$ac_file" |
27923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27924 s//\1/
27927 /^X\(\/\/\)[^/].*/{
27928 s//\1/
27931 /^X\(\/\/\)$/{
27932 s//\1/
27935 /^X\(\/\).*/{
27936 s//\1/
27939 s/.*/./; q'`
27940 { as_dir="$ac_dir"
27941 case $as_dir in #(
27942 -*) as_dir=./$as_dir;;
27943 esac
27944 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27945 as_dirs=
27946 while :; do
27947 case $as_dir in #(
27948 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27949 *) as_qdir=$as_dir;;
27950 esac
27951 as_dirs="'$as_qdir' $as_dirs"
27952 as_dir=`$as_dirname -- "$as_dir" ||
27953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27954 X"$as_dir" : 'X\(//\)[^/]' \| \
27955 X"$as_dir" : 'X\(//\)$' \| \
27956 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27957 $as_echo X"$as_dir" |
27958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27959 s//\1/
27962 /^X\(\/\/\)[^/].*/{
27963 s//\1/
27966 /^X\(\/\/\)$/{
27967 s//\1/
27970 /^X\(\/\).*/{
27971 s//\1/
27974 s/.*/./; q'`
27975 test -d "$as_dir" && break
27976 done
27977 test -z "$as_dirs" || eval "mkdir $as_dirs"
27978 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27979 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27980 { (exit 1); exit 1; }; }; }
27981 ac_builddir=.
27983 case "$ac_dir" in
27984 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27986 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27987 # A ".." for each directory in $ac_dir_suffix.
27988 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27989 case $ac_top_builddir_sub in
27990 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27991 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27992 esac ;;
27993 esac
27994 ac_abs_top_builddir=$ac_pwd
27995 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27996 # for backward compatibility:
27997 ac_top_builddir=$ac_top_build_prefix
27999 case $srcdir in
28000 .) # We are building in place.
28001 ac_srcdir=.
28002 ac_top_srcdir=$ac_top_builddir_sub
28003 ac_abs_top_srcdir=$ac_pwd ;;
28004 [\\/]* | ?:[\\/]* ) # Absolute name.
28005 ac_srcdir=$srcdir$ac_dir_suffix;
28006 ac_top_srcdir=$srcdir
28007 ac_abs_top_srcdir=$srcdir ;;
28008 *) # Relative name.
28009 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28010 ac_top_srcdir=$ac_top_build_prefix$srcdir
28011 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28012 esac
28013 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28016 case $ac_mode in
28019 # CONFIG_FILE
28022 case $INSTALL in
28023 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28024 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28025 esac
28026 _ACEOF
28028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28029 # If the template does not know about datarootdir, expand it.
28030 # FIXME: This hack should be removed a few years after 2.60.
28031 ac_datarootdir_hack=; ac_datarootdir_seen=
28033 ac_sed_dataroot='
28034 /datarootdir/ {
28038 /@datadir@/p
28039 /@docdir@/p
28040 /@infodir@/p
28041 /@localedir@/p
28042 /@mandir@/p
28044 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28045 *datarootdir*) ac_datarootdir_seen=yes;;
28046 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28047 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28048 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28049 _ACEOF
28050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28051 ac_datarootdir_hack='
28052 s&@datadir@&$datadir&g
28053 s&@docdir@&$docdir&g
28054 s&@infodir@&$infodir&g
28055 s&@localedir@&$localedir&g
28056 s&@mandir@&$mandir&g
28057 s&\\\${datarootdir}&$datarootdir&g' ;;
28058 esac
28059 _ACEOF
28061 # Neutralize VPATH when `$srcdir' = `.'.
28062 # Shell code in configure.ac might set extrasub.
28063 # FIXME: do we really want to maintain this feature?
28064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28065 ac_sed_extra="$ac_vpsub
28066 $extrasub
28067 _ACEOF
28068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28071 s|@configure_input@|$ac_sed_conf_input|;t t
28072 s&@top_builddir@&$ac_top_builddir_sub&;t t
28073 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28074 s&@srcdir@&$ac_srcdir&;t t
28075 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28076 s&@top_srcdir@&$ac_top_srcdir&;t t
28077 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28078 s&@builddir@&$ac_builddir&;t t
28079 s&@abs_builddir@&$ac_abs_builddir&;t t
28080 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28081 s&@INSTALL@&$ac_INSTALL&;t t
28082 $ac_datarootdir_hack
28084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28085 if $ac_cs_awk_getline; then
28086 $AWK -f "$tmp/subs.awk"
28087 else
28088 $AWK -f "$tmp/subs.awk" | $SHELL
28089 fi >$tmp/out \
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 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28095 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28096 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28097 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28098 which seems to be undefined. Please make sure it is defined." >&5
28099 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28100 which seems to be undefined. Please make sure it is defined." >&2;}
28102 rm -f "$tmp/stdin"
28103 case $ac_file in
28104 -) cat "$tmp/out" && rm -f "$tmp/out";;
28105 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28106 esac \
28107 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28108 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28109 { (exit 1); exit 1; }; }
28113 # CONFIG_HEADER
28115 if test x"$ac_file" != x-; then
28117 $as_echo "/* $configure_input */" \
28118 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28119 } >"$tmp/config.h" \
28120 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28121 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28122 { (exit 1); exit 1; }; }
28123 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28124 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28125 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28126 else
28127 rm -f "$ac_file"
28128 mv "$tmp/config.h" "$ac_file" \
28129 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28130 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28131 { (exit 1); exit 1; }; }
28133 else
28134 $as_echo "/* $configure_input */" \
28135 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28136 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28137 $as_echo "$as_me: error: could not create -" >&2;}
28138 { (exit 1); exit 1; }; }
28142 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
28143 $as_echo "$as_me: executing $ac_file commands" >&6;}
28145 esac
28148 case $ac_file$ac_mode in
28149 "default":C)
28151 ### Make the necessary directories, if they don't exist.
28152 for dir in etc lisp ; do
28153 test -d ${dir} || mkdir ${dir}
28154 done
28156 # Build src/Makefile from ${srcdir}/src/Makefile.c
28157 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
28158 # This must be done after src/config.h is built, since we rely on that file.
28160 echo creating src/epaths.h
28161 ${MAKE-make} epaths-force
28163 # As of 2000-11-19, newest development versions of GNU cpp preprocess
28164 # `..' to `. .' unless invoked with -traditional
28166 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
28167 CPPFLAGS="$CPPFLAGS -traditional"
28170 echo creating src/Makefile
28171 ( cd src
28172 rm -f junk.c junk1.c junk2.c
28173 sed -e '/start of cpp stuff/q' \
28174 < Makefile.c > junk1.c
28175 sed -e '1,/start of cpp stuff/d'\
28176 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28177 < Makefile.c > junk.c
28178 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
28179 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28180 cat junk1.c junk2.c > Makefile.new
28181 rm -f junk.c junk1.c junk2.c
28182 chmod 444 Makefile.new
28183 mv -f Makefile.new Makefile
28186 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
28187 echo creating src/.gdbinit
28188 echo source $srcdir/src/.gdbinit > src/.gdbinit
28193 esac
28194 done # for ac_tag
28197 { (exit 0); exit 0; }
28198 _ACEOF
28199 chmod +x $CONFIG_STATUS
28200 ac_clean_files=$ac_clean_files_save
28202 test $ac_write_fail = 0 ||
28203 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28204 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28205 { (exit 1); exit 1; }; }
28208 # configure is writing to config.log, and then calls config.status.
28209 # config.status does its own redirection, appending to config.log.
28210 # Unfortunately, on DOS this fails, as config.log is still kept open
28211 # by configure, so config.status won't be able to write to it; its
28212 # output is simply discarded. So we exec the FD to /dev/null,
28213 # effectively closing config.log, so it can be properly (re)opened and
28214 # appended to by config.status. When coming back to configure, we
28215 # need to make the FD available again.
28216 if test "$no_create" != yes; then
28217 ac_cs_success=:
28218 ac_config_status_args=
28219 test "$silent" = yes &&
28220 ac_config_status_args="$ac_config_status_args --quiet"
28221 exec 5>/dev/null
28222 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28223 exec 5>>config.log
28224 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28225 # would make configure fail if this is the last instruction.
28226 $ac_cs_success || { (exit 1); exit 1; }
28228 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28229 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
28230 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}