(bug-reference-url-format): Mark as `safe-local-variable' if the value
[emacs.git] / configure
blobe261cd0e83602cb3b510d5cc899e63467b9fc7be
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='24.0.50'
598 PACKAGE_STRING='emacs 24.0.50'
599 PACKAGE_BUGREPORT=''
601 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_config_libobj_dir=src
639 ac_header_list=
640 ac_func_list=
641 ac_subst_vars='SHELL
642 PATH_SEPARATOR
643 PACKAGE_NAME
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
695 GREP
696 EGREP
697 LN_S
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 RANLIB
702 INSTALL_INFO
703 GZIP_PROG
704 MAKEINFO
705 LIB_MATH
706 CRT_DIR
707 LIBSOUND
708 PKG_CONFIG
709 ALSA_CFLAGS
710 ALSA_LIBS
711 CFLAGS_SOUND
712 SET_MAKE
713 XMKMF
714 NS_OBJ
715 NS_SUPPORT
716 HAVE_XSERVER
717 RSVG_CFLAGS
718 RSVG_LIBS
719 GTK_CFLAGS
720 GTK_LIBS
721 GTK_OBJ
722 DBUS_CFLAGS
723 DBUS_LIBS
724 DBUS_OBJ
725 GCONF_CFLAGS
726 GCONF_LIBS
727 LIBSELINUX_LIBS
728 LIBXTR6
729 LIBXMU
730 FONTCONFIG_CFLAGS
731 FONTCONFIG_LIBS
732 XFT_CFLAGS
733 XFT_LIBS
734 LIBOTF_CFLAGS
735 LIBOTF_LIBS
736 M17N_FLT_CFLAGS
737 M17N_FLT_LIBS
738 FONT_OBJ
739 FREETYPE_CFLAGS
740 FREETYPE_LIBS
741 LIBXPM
742 LIBJPEG
743 LIBPNG
744 LIBTIFF
745 LIBGIF
746 LIBGPM
747 GPM_MOUSE_SUPPORT
748 LIBXSM
749 ALLOCA
750 liblockfile
751 LIBS_MAIL
752 LIBOBJS
753 NEED_SETGID
754 KMEM_GROUP
755 GETLOADAVG_LIBS
756 GETOPT_H
757 GETOPTOBJS
758 LIBHESIOD
759 LIBRESOLV
760 COM_ERRLIB
761 CRYPTOLIB
762 KRB5LIB
763 DESLIB
764 KRB4LIB
765 version
766 configuration
767 canonical
768 srcdir
769 lispdir
770 locallisppath
771 lisppath
772 x_default_search_path
773 etcdir
774 archlibdir
775 bitmapdir
776 gamedir
777 gameuser
778 c_switch_system
779 c_switch_machine
780 unexec
781 LD_SWITCH_X_SITE
782 LD_SWITCH_X_SITE_AUX
783 C_SWITCH_X_SITE
784 C_SWITCH_X_SYSTEM
785 X_TOOLKIT_TYPE
786 machfile
787 opsysfile
788 ns_appdir
789 ns_appbindir
790 ns_appresdir
791 ns_appsrc
792 GNUSTEP_MAKEFILES
793 GNUSTEP_SYSTEM_HEADERS
794 GNUSTEP_SYSTEM_LIBRARIES
795 GNU_OBJC_CFLAGS
796 LIB_SRC_EXTRA_INSTALLABLES
797 OTHER_FILES
798 XMENU_OBJ
799 XOBJ
800 WIDGET_OBJ
801 TOOLKIT_LIBW
802 CYGWIN_OBJ
803 LTLIBOBJS'
804 ac_subst_files=''
805 ac_user_opts='
806 enable_option_checking
807 with_pop
808 with_kerberos
809 with_kerberos5
810 with_hesiod
811 with_mmdf
812 with_mail_unlink
813 with_mailhost
814 with_sound
815 with_sync_input
816 with_x_toolkit
817 with_xpm
818 with_jpeg
819 with_tiff
820 with_gif
821 with_png
822 with_rsvg
823 with_xft
824 with_libotf
825 with_m17n_flt
826 with_toolkit_scroll_bars
827 with_xaw3d
828 with_xim
829 with_ns
830 with_gpm
831 with_dbus
832 with_gconf
833 with_selinux
834 with_makeinfo
835 with_gtk
836 with_gcc
837 with_pkg_config_prog
838 with_crt_dir
839 with_gnustep_conf
840 enable_ns_self_contained
841 enable_asserts
842 enable_maintainer_mode
843 enable_locallisppath
844 enable_checking
845 enable_profiling
846 enable_autodepend
847 enable_largefile
848 with_x
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
859 XMKMF'
862 # Initialize some variables set by options.
863 ac_init_help=
864 ac_init_version=false
865 ac_unrecognized_opts=
866 ac_unrecognized_sep=
867 # The variables have the same names as the options, with
868 # dashes changed to underlines.
869 cache_file=/dev/null
870 exec_prefix=NONE
871 no_create=
872 no_recursion=
873 prefix=NONE
874 program_prefix=NONE
875 program_suffix=NONE
876 program_transform_name=s,x,x,
877 silent=
878 site=
879 srcdir=
880 verbose=
881 x_includes=NONE
882 x_libraries=NONE
884 # Installation directory options.
885 # These are left unexpanded so users can "make install exec_prefix=/foo"
886 # and all the variables that are supposed to be based on exec_prefix
887 # by default will actually change.
888 # Use braces instead of parens because sh, perl, etc. also accept them.
889 # (The list follows the same order as the GNU Coding Standards.)
890 bindir='${exec_prefix}/bin'
891 sbindir='${exec_prefix}/sbin'
892 libexecdir='${exec_prefix}/libexec'
893 datarootdir='${prefix}/share'
894 datadir='${datarootdir}'
895 sysconfdir='${prefix}/etc'
896 sharedstatedir='${prefix}/com'
897 localstatedir='${prefix}/var'
898 includedir='${prefix}/include'
899 oldincludedir='/usr/include'
900 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901 infodir='${datarootdir}/info'
902 htmldir='${docdir}'
903 dvidir='${docdir}'
904 pdfdir='${docdir}'
905 psdir='${docdir}'
906 libdir='${exec_prefix}/lib'
907 localedir='${datarootdir}/locale'
908 mandir='${datarootdir}/man'
910 ac_prev=
911 ac_dashdash=
912 for ac_option
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
916 eval $ac_prev=\$ac_option
917 ac_prev=
918 continue
921 case $ac_option in
922 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 *) ac_optarg=yes ;;
924 esac
926 # Accept the important Cygnus configure options, so we can diagnose typos.
928 case $ac_dashdash$ac_option in
930 ac_dashdash=yes ;;
932 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 ac_prev=bindir ;;
934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935 bindir=$ac_optarg ;;
937 -build | --build | --buil | --bui | --bu)
938 ac_prev=build_alias ;;
939 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940 build_alias=$ac_optarg ;;
942 -cache-file | --cache-file | --cache-fil | --cache-fi \
943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944 ac_prev=cache_file ;;
945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947 cache_file=$ac_optarg ;;
949 --config-cache | -C)
950 cache_file=config.cache ;;
952 -datadir | --datadir | --datadi | --datad)
953 ac_prev=datadir ;;
954 -datadir=* | --datadir=* | --datadi=* | --datad=*)
955 datadir=$ac_optarg ;;
957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958 | --dataroo | --dataro | --datar)
959 ac_prev=datarootdir ;;
960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962 datarootdir=$ac_optarg ;;
964 -disable-* | --disable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
969 { (exit 1); exit 1; }; }
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=no ;;
981 -docdir | --docdir | --docdi | --doc | --do)
982 ac_prev=docdir ;;
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 docdir=$ac_optarg ;;
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 ac_prev=dvidir ;;
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 dvidir=$ac_optarg ;;
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
996 { (exit 1); exit 1; }; }
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=\$ac_optarg ;;
1008 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010 | --exec | --exe | --ex)
1011 ac_prev=exec_prefix ;;
1012 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014 | --exec=* | --exe=* | --ex=*)
1015 exec_prefix=$ac_optarg ;;
1017 -gas | --gas | --ga | --g)
1018 # Obsolete; use --with-gas.
1019 with_gas=yes ;;
1021 -help | --help | --hel | --he | -h)
1022 ac_init_help=long ;;
1023 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024 ac_init_help=recursive ;;
1025 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026 ac_init_help=short ;;
1028 -host | --host | --hos | --ho)
1029 ac_prev=host_alias ;;
1030 -host=* | --host=* | --hos=* | --ho=*)
1031 host_alias=$ac_optarg ;;
1033 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034 ac_prev=htmldir ;;
1035 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036 | --ht=*)
1037 htmldir=$ac_optarg ;;
1039 -includedir | --includedir | --includedi | --included | --include \
1040 | --includ | --inclu | --incl | --inc)
1041 ac_prev=includedir ;;
1042 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043 | --includ=* | --inclu=* | --incl=* | --inc=*)
1044 includedir=$ac_optarg ;;
1046 -infodir | --infodir | --infodi | --infod | --info | --inf)
1047 ac_prev=infodir ;;
1048 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049 infodir=$ac_optarg ;;
1051 -libdir | --libdir | --libdi | --libd)
1052 ac_prev=libdir ;;
1053 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054 libdir=$ac_optarg ;;
1056 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057 | --libexe | --libex | --libe)
1058 ac_prev=libexecdir ;;
1059 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060 | --libexe=* | --libex=* | --libe=*)
1061 libexecdir=$ac_optarg ;;
1063 -localedir | --localedir | --localedi | --localed | --locale)
1064 ac_prev=localedir ;;
1065 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066 localedir=$ac_optarg ;;
1068 -localstatedir | --localstatedir | --localstatedi | --localstated \
1069 | --localstate | --localstat | --localsta | --localst | --locals)
1070 ac_prev=localstatedir ;;
1071 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073 localstatedir=$ac_optarg ;;
1075 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076 ac_prev=mandir ;;
1077 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078 mandir=$ac_optarg ;;
1080 -nfp | --nfp | --nf)
1081 # Obsolete; use --without-fp.
1082 with_fp=no ;;
1084 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085 | --no-cr | --no-c | -n)
1086 no_create=yes ;;
1088 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090 no_recursion=yes ;;
1092 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094 | --oldin | --oldi | --old | --ol | --o)
1095 ac_prev=oldincludedir ;;
1096 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099 oldincludedir=$ac_optarg ;;
1101 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102 ac_prev=prefix ;;
1103 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104 prefix=$ac_optarg ;;
1106 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107 | --program-pre | --program-pr | --program-p)
1108 ac_prev=program_prefix ;;
1109 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111 program_prefix=$ac_optarg ;;
1113 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114 | --program-suf | --program-su | --program-s)
1115 ac_prev=program_suffix ;;
1116 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118 program_suffix=$ac_optarg ;;
1120 -program-transform-name | --program-transform-name \
1121 | --program-transform-nam | --program-transform-na \
1122 | --program-transform-n | --program-transform- \
1123 | --program-transform | --program-transfor \
1124 | --program-transfo | --program-transf \
1125 | --program-trans | --program-tran \
1126 | --progr-tra | --program-tr | --program-t)
1127 ac_prev=program_transform_name ;;
1128 -program-transform-name=* | --program-transform-name=* \
1129 | --program-transform-nam=* | --program-transform-na=* \
1130 | --program-transform-n=* | --program-transform-=* \
1131 | --program-transform=* | --program-transfor=* \
1132 | --program-transfo=* | --program-transf=* \
1133 | --program-trans=* | --program-tran=* \
1134 | --progr-tra=* | --program-tr=* | --program-t=*)
1135 program_transform_name=$ac_optarg ;;
1137 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138 ac_prev=pdfdir ;;
1139 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140 pdfdir=$ac_optarg ;;
1142 -psdir | --psdir | --psdi | --psd | --ps)
1143 ac_prev=psdir ;;
1144 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145 psdir=$ac_optarg ;;
1147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148 | -silent | --silent | --silen | --sile | --sil)
1149 silent=yes ;;
1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152 ac_prev=sbindir ;;
1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154 | --sbi=* | --sb=*)
1155 sbindir=$ac_optarg ;;
1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159 | --sharedst | --shareds | --shared | --share | --shar \
1160 | --sha | --sh)
1161 ac_prev=sharedstatedir ;;
1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165 | --sha=* | --sh=*)
1166 sharedstatedir=$ac_optarg ;;
1168 -site | --site | --sit)
1169 ac_prev=site ;;
1170 -site=* | --site=* | --sit=*)
1171 site=$ac_optarg ;;
1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174 ac_prev=srcdir ;;
1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176 srcdir=$ac_optarg ;;
1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179 | --syscon | --sysco | --sysc | --sys | --sy)
1180 ac_prev=sysconfdir ;;
1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183 sysconfdir=$ac_optarg ;;
1185 -target | --target | --targe | --targ | --tar | --ta | --t)
1186 ac_prev=target_alias ;;
1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188 target_alias=$ac_optarg ;;
1190 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191 verbose=yes ;;
1193 -version | --version | --versio | --versi | --vers | -V)
1194 ac_init_version=: ;;
1196 -with-* | --with-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1201 { (exit 1); exit 1; }; }
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1218 { (exit 1); exit 1; }; }
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=no ;;
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1248 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1249 Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1263 # FIXME: should be removed in autoconf 3.0.
1264 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270 esac
1271 done
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
1279 if test -n "$ac_unrecognized_opts"; then
1280 case $enable_option_checking in
1281 no) ;;
1282 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1283 { (exit 1); exit 1; }; } ;;
1284 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 esac
1288 # Check all directory arguments for consistency.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
1306 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1307 { (exit 1); exit 1; }; }
1308 done
1310 # There might be people who depend on the old broken behavior: `$host'
1311 # used to hold the argument of --host etc.
1312 # FIXME: To remove some day.
1313 build=$build_alias
1314 host=$host_alias
1315 target=$target_alias
1317 # FIXME: To remove some day.
1318 if test "x$host_alias" != x; then
1319 if test "x$build_alias" = x; then
1320 cross_compiling=maybe
1321 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1322 If a cross compiler is detected then cross compile mode will be used." >&2
1323 elif test "x$build_alias" != "x$host_alias"; then
1324 cross_compiling=yes
1328 ac_tool_prefix=
1329 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331 test "$silent" = yes && exec 6>/dev/null
1334 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335 ac_ls_di=`ls -di .` &&
1336 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1338 { (exit 1); exit 1; }; }
1339 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1341 { (exit 1); exit 1; }; }
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 s//\1/
1358 /^X\(\/\/\)[^/].*/{
1359 s//\1/
1362 /^X\(\/\/\)$/{
1363 s//\1/
1366 /^X\(\/\).*/{
1367 s//\1/
1370 s/.*/./; q'`
1371 srcdir=$ac_confdir
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 srcdir=..
1375 else
1376 ac_srcdir_defaulted=no
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1381 { (exit 1); exit 1; }; }
1383 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 ac_abs_confdir=`(
1385 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1386 { (exit 1); exit 1; }; }
1387 pwd)`
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 srcdir=.
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1395 case $srcdir in
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 esac
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 done
1406 # Report the --help message.
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1411 cat <<_ACEOF
1412 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1419 Defaults for the options are specified in brackets.
1421 Configuration:
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436 [PREFIX]
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1443 For better control, use the options below.
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1465 _ACEOF
1467 cat <<\_ACEOF
1469 Program names:
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1474 X features:
1475 --x-includes=DIR X include files are in DIR
1476 --x-libraries=DIR X library files are in DIR
1478 System types:
1479 --build=BUILD configure for building on BUILD [guessed]
1480 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1481 _ACEOF
1484 if test -n "$ac_init_help"; then
1485 case $ac_init_help in
1486 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1487 esac
1488 cat <<\_ACEOF
1490 Optional Features:
1491 --disable-option-checking ignore unrecognized --enable/--with options
1492 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1493 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1494 --disable-ns-self-contained
1495 disable self contained build under NeXTstep
1496 --enable-asserts compile code with asserts enabled
1497 --enable-maintainer-mode
1498 enable make rules and dependencies not useful (and
1499 sometimes confusing) to the casual installer
1500 --enable-locallisppath=PATH
1501 directories Emacs should search for lisp files
1502 specific to this site
1503 --enable-checking[=LIST]
1504 enable expensive run-time checks. With LIST, enable
1505 only specific categories of checks. Categories are:
1506 all,yes,no. Flags are: stringbytes, stringoverrun,
1507 stringfreelist, xmallocoverrun, conslist
1508 --enable-profiling build emacs with profiling support. This might not
1509 work on all platforms
1510 --enable-autodepend automatically generate dependencies to .h-files.
1511 Requires GNU Make and Gcc. Enabled if GNU Make and
1512 Gcc is found
1513 --disable-largefile omit support for large files
1515 Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --without-pop don't support POP mail retrieval with movemail
1519 --with-kerberos support Kerberos-authenticated POP
1520 --with-kerberos5 support Kerberos version 5 authenticated POP
1521 --with-hesiod support Hesiod to get the POP server host
1522 --with-mmdf support MMDF mailboxes
1523 --with-mail-unlink unlink, rather than empty, mail spool after reading
1524 --with-mailhost=HOSTNAME
1525 string giving default POP mail host
1526 --without-sound don't compile with sound support
1527 --without-sync-input process async input synchronously
1528 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1529 athena, motif, no)
1530 --without-xpm don't compile with XPM image support
1531 --without-jpeg don't compile with JPEG image support
1532 --without-tiff don't compile with TIFF image support
1533 --without-gif don't compile with GIF image support
1534 --without-png don't compile with PNG image support
1535 --without-rsvg don't compile with SVG image support
1536 --without-xft don't use XFT for anti aliased fonts
1537 --without-libotf don't use libotf for OpenType font support
1538 --without-m17n-flt don't use m17n-flt for text shaping
1539 --without-toolkit-scroll-bars
1540 don't use Motif or Xaw3d scroll bars
1541 --without-xaw3d don't use Xaw3d
1542 --without-xim don't use X11 XIM
1543 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1544 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1545 console
1546 --without-dbus don't compile with D-Bus support
1547 --without-gconf don't compile with GConf support
1548 --without-selinux don't compile with SELinux support
1549 --without-makeinfo don't require makeinfo for building manuals
1551 --with-pkg-config-prog=PATH
1552 path to pkg-config for finding GTK and librsvg
1553 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1554 /usr/lib, or /usr/lib64 on some platforms.
1555 --with-gnustep-conf=PATH
1556 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1557 or /etc/GNUstep/GNUstep.conf
1558 --with-x use the X Window System
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1568 CPP C preprocessor
1569 XMKMF Path to xmkmf, Makefile generator for X Window System
1571 Use these variables to override the choices made by `configure' or to help
1572 it to find libraries and programs with nonstandard names/locations.
1574 _ACEOF
1575 ac_status=$?
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581 test -d "$ac_dir" ||
1582 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583 continue
1584 ac_builddir=.
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1602 case $srcdir in
1603 .) # We are building in place.
1604 ac_srcdir=.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1611 *) # Relative name.
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1624 echo &&
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1626 else
1627 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628 fi || ac_status=$?
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1630 done
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1635 cat <<\_ACEOF
1636 emacs configure 24.0.50
1637 generated by GNU Autoconf 2.62
1639 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1640 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1643 _ACEOF
1644 exit
1646 cat >config.log <<_ACEOF
1647 This file contains any messages produced by compilers while
1648 running configure, to aid debugging if configure makes a mistake.
1650 It was created by emacs $as_me 24.0.50, which was
1651 generated by GNU Autoconf 2.62. Invocation command line was
1653 $ $0 $@
1655 _ACEOF
1656 exec 5>>config.log
1658 cat <<_ASUNAME
1659 ## --------- ##
1660 ## Platform. ##
1661 ## --------- ##
1663 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1664 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1665 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1666 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1667 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1669 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1670 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1672 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1673 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1674 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1675 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1676 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1677 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1678 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1680 _ASUNAME
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 $as_echo "PATH: $as_dir"
1688 done
1689 IFS=$as_save_IFS
1691 } >&5
1693 cat >&5 <<_ACEOF
1696 ## ----------- ##
1697 ## Core tests. ##
1698 ## ----------- ##
1700 _ACEOF
1703 # Keep a trace of the command line.
1704 # Strip out --no-create and --no-recursion so they do not pile up.
1705 # Strip out --silent because we don't want to record it for future runs.
1706 # Also quote any args containing shell meta-characters.
1707 # Make two passes to allow for proper duplicate-argument suppression.
1708 ac_configure_args=
1709 ac_configure_args0=
1710 ac_configure_args1=
1711 ac_must_keep_next=false
1712 for ac_pass in 1 2
1714 for ac_arg
1716 case $ac_arg in
1717 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1718 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1719 | -silent | --silent | --silen | --sile | --sil)
1720 continue ;;
1721 *\'*)
1722 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 esac
1724 case $ac_pass in
1725 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1727 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1728 if test $ac_must_keep_next = true; then
1729 ac_must_keep_next=false # Got value, back to normal.
1730 else
1731 case $ac_arg in
1732 *=* | --config-cache | -C | -disable-* | --disable-* \
1733 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1734 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1735 | -with-* | --with-* | -without-* | --without-* | --x)
1736 case "$ac_configure_args0 " in
1737 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1738 esac
1740 -* ) ac_must_keep_next=true ;;
1741 esac
1743 ac_configure_args="$ac_configure_args '$ac_arg'"
1745 esac
1746 done
1747 done
1748 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1749 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1751 # When interrupted or exit'd, cleanup temporary files, and complete
1752 # config.log. We remove comments because anyway the quotes in there
1753 # would cause problems or look ugly.
1754 # WARNING: Use '\'' to represent an apostrophe within the trap.
1755 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1756 trap 'exit_status=$?
1757 # Save into config.log some information that might help in debugging.
1759 echo
1761 cat <<\_ASBOX
1762 ## ---------------- ##
1763 ## Cache variables. ##
1764 ## ---------------- ##
1765 _ASBOX
1766 echo
1767 # The following way of writing the cache mishandles newlines in values,
1769 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1770 eval ac_val=\$$ac_var
1771 case $ac_val in #(
1772 *${as_nl}*)
1773 case $ac_var in #(
1774 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1775 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1776 esac
1777 case $ac_var in #(
1778 _ | IFS | as_nl) ;; #(
1779 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1780 *) $as_unset $ac_var ;;
1781 esac ;;
1782 esac
1783 done
1784 (set) 2>&1 |
1785 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1786 *${as_nl}ac_space=\ *)
1787 sed -n \
1788 "s/'\''/'\''\\\\'\'''\''/g;
1789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1790 ;; #(
1792 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1794 esac |
1795 sort
1797 echo
1799 cat <<\_ASBOX
1800 ## ----------------- ##
1801 ## Output variables. ##
1802 ## ----------------- ##
1803 _ASBOX
1804 echo
1805 for ac_var in $ac_subst_vars
1807 eval ac_val=\$$ac_var
1808 case $ac_val in
1809 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1810 esac
1811 $as_echo "$ac_var='\''$ac_val'\''"
1812 done | sort
1813 echo
1815 if test -n "$ac_subst_files"; then
1816 cat <<\_ASBOX
1817 ## ------------------- ##
1818 ## File substitutions. ##
1819 ## ------------------- ##
1820 _ASBOX
1821 echo
1822 for ac_var in $ac_subst_files
1824 eval ac_val=\$$ac_var
1825 case $ac_val in
1826 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827 esac
1828 $as_echo "$ac_var='\''$ac_val'\''"
1829 done | sort
1830 echo
1833 if test -s confdefs.h; then
1834 cat <<\_ASBOX
1835 ## ----------- ##
1836 ## confdefs.h. ##
1837 ## ----------- ##
1838 _ASBOX
1839 echo
1840 cat confdefs.h
1841 echo
1843 test "$ac_signal" != 0 &&
1844 $as_echo "$as_me: caught signal $ac_signal"
1845 $as_echo "$as_me: exit $exit_status"
1846 } >&5
1847 rm -f core *.core core.conftest.* &&
1848 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1849 exit $exit_status
1851 for ac_signal in 1 2 13 15; do
1852 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1853 done
1854 ac_signal=0
1856 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1857 rm -f -r conftest* confdefs.h
1859 # Predefined preprocessor variables.
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_NAME "$PACKAGE_NAME"
1863 _ACEOF
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1868 _ACEOF
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1873 _ACEOF
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_STRING "$PACKAGE_STRING"
1878 _ACEOF
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1883 _ACEOF
1886 # Let the site file select an alternate cache file if it wants to.
1887 # Prefer an explicitly selected file to automatically selected ones.
1888 ac_site_file1=NONE
1889 ac_site_file2=NONE
1890 if test -n "$CONFIG_SITE"; then
1891 ac_site_file1=$CONFIG_SITE
1892 elif test "x$prefix" != xNONE; then
1893 ac_site_file1=$prefix/share/config.site
1894 ac_site_file2=$prefix/etc/config.site
1895 else
1896 ac_site_file1=$ac_default_prefix/share/config.site
1897 ac_site_file2=$ac_default_prefix/etc/config.site
1899 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1901 test "x$ac_site_file" = xNONE && continue
1902 if test -r "$ac_site_file"; then
1903 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1904 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1905 sed 's/^/| /' "$ac_site_file" >&5
1906 . "$ac_site_file"
1908 done
1910 if test -r "$cache_file"; then
1911 # Some versions of bash will fail to source /dev/null (special
1912 # files actually), so we avoid doing that.
1913 if test -f "$cache_file"; then
1914 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1915 $as_echo "$as_me: loading cache $cache_file" >&6;}
1916 case $cache_file in
1917 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1918 *) . "./$cache_file";;
1919 esac
1921 else
1922 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1923 $as_echo "$as_me: creating cache $cache_file" >&6;}
1924 >$cache_file
1927 ac_header_list="$ac_header_list sys/time.h"
1928 ac_header_list="$ac_header_list unistd.h"
1929 ac_func_list="$ac_func_list alarm"
1930 # Check that the precious variables saved in the cache have kept the same
1931 # value.
1932 ac_cache_corrupted=false
1933 for ac_var in $ac_precious_vars; do
1934 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1935 eval ac_new_set=\$ac_env_${ac_var}_set
1936 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1937 eval ac_new_val=\$ac_env_${ac_var}_value
1938 case $ac_old_set,$ac_new_set in
1939 set,)
1940 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1941 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1942 ac_cache_corrupted=: ;;
1943 ,set)
1944 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1945 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1946 ac_cache_corrupted=: ;;
1947 ,);;
1949 if test "x$ac_old_val" != "x$ac_new_val"; then
1950 # differences in whitespace do not lead to failure.
1951 ac_old_val_w=`echo x $ac_old_val`
1952 ac_new_val_w=`echo x $ac_new_val`
1953 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1954 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1955 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1956 ac_cache_corrupted=:
1957 else
1958 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1959 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1960 eval $ac_var=\$ac_old_val
1962 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1963 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1964 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1965 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1966 fi;;
1967 esac
1968 # Pass precious variables to config.status.
1969 if test "$ac_new_set" = set; then
1970 case $ac_new_val in
1971 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1972 *) ac_arg=$ac_var=$ac_new_val ;;
1973 esac
1974 case " $ac_configure_args " in
1975 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1976 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1977 esac
1979 done
1980 if $ac_cache_corrupted; then
1981 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1982 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1983 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1984 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1985 { (exit 1); exit 1; }; }
2012 ac_ext=c
2013 ac_cpp='$CPP $CPPFLAGS'
2014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2023 test "$program_prefix" != NONE &&
2024 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2025 # Use a double $ so make ignores it.
2026 test "$program_suffix" != NONE &&
2027 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2028 # Double any \ or $.
2029 # By default was `s,x,x', remove it if useless.
2030 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2031 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2034 lispdir='${datadir}/emacs/${version}/lisp'
2035 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2036 '${datadir}/emacs/site-lisp'
2037 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2038 etcdir='${datadir}/emacs/${version}/etc'
2039 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2040 docdir='${datadir}/emacs/${version}/etc'
2041 gamedir='${localstatedir}/games/emacs'
2043 gameuser=games
2048 # Check whether --with-pop was given.
2049 if test "${with_pop+set}" = set; then
2050 withval=$with_pop;
2051 else
2052 with_pop=yes
2055 if test "$with_pop" = yes; then
2056 cat >>confdefs.h <<\_ACEOF
2057 #define MAIL_USE_POP 1
2058 _ACEOF
2064 # Check whether --with-kerberos was given.
2065 if test "${with_kerberos+set}" = set; then
2066 withval=$with_kerberos;
2067 else
2068 with_kerberos=no
2071 if test "$with_kerberos" != no; then
2072 cat >>confdefs.h <<\_ACEOF
2073 #define KERBEROS 1
2074 _ACEOF
2080 # Check whether --with-kerberos5 was given.
2081 if test "${with_kerberos5+set}" = set; then
2082 withval=$with_kerberos5;
2083 else
2084 with_kerberos5=no
2087 if test "${with_kerberos5}" != no; then
2088 if test "${with_kerberos}" = no; then
2089 with_kerberos=yes
2090 cat >>confdefs.h <<\_ACEOF
2091 #define KERBEROS 1
2092 _ACEOF
2096 cat >>confdefs.h <<\_ACEOF
2097 #define KERBEROS5 1
2098 _ACEOF
2103 # Check whether --with-hesiod was given.
2104 if test "${with_hesiod+set}" = set; then
2105 withval=$with_hesiod;
2106 else
2107 with_hesiod=no
2110 if test "$with_hesiod" != no; then
2112 cat >>confdefs.h <<\_ACEOF
2113 #define HESIOD 1
2114 _ACEOF
2119 # Check whether --with-mmdf was given.
2120 if test "${with_mmdf+set}" = set; then
2121 withval=$with_mmdf;
2122 else
2123 with_mmdf=no
2126 if test "$with_mmdf" != no; then
2128 cat >>confdefs.h <<\_ACEOF
2129 #define MAIL_USE_MMDF 1
2130 _ACEOF
2135 # Check whether --with-mail-unlink was given.
2136 if test "${with_mail_unlink+set}" = set; then
2137 withval=$with_mail_unlink;
2138 else
2139 with_mail_unlink=no
2142 if test "$with_mail_unlink" != no; then
2144 cat >>confdefs.h <<\_ACEOF
2145 #define MAIL_UNLINK_SPOOL 1
2146 _ACEOF
2151 # Check whether --with-mailhost was given.
2152 if test "${with_mailhost+set}" = set; then
2153 withval=$with_mailhost;
2154 cat >>confdefs.h <<_ACEOF
2155 #define MAILHOST "$withval"
2156 _ACEOF
2162 # Check whether --with-sound was given.
2163 if test "${with_sound+set}" = set; then
2164 withval=$with_sound;
2165 else
2166 with_sound=yes
2171 # Check whether --with-sync-input was given.
2172 if test "${with_sync_input+set}" = set; then
2173 withval=$with_sync_input;
2174 else
2175 with_sync_input=yes
2178 if test "$with_sync_input" = yes; then
2180 cat >>confdefs.h <<\_ACEOF
2181 #define SYNC_INPUT 1
2182 _ACEOF
2187 # Check whether --with-x-toolkit was given.
2188 if test "${with_x_toolkit+set}" = set; then
2189 withval=$with_x_toolkit; case "${withval}" in
2190 y | ye | yes ) val=gtk ;;
2191 n | no ) val=no ;;
2192 l | lu | luc | luci | lucid ) val=lucid ;;
2193 a | at | ath | athe | athen | athena ) val=athena ;;
2194 m | mo | mot | moti | motif ) val=motif ;;
2195 g | gt | gtk ) val=gtk ;;
2197 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2198 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2199 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2200 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2201 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2202 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2203 { (exit 1); exit 1; }; }
2205 esac
2206 with_x_toolkit=$val
2212 # Check whether --with-xpm was given.
2213 if test "${with_xpm+set}" = set; then
2214 withval=$with_xpm;
2215 else
2216 with_xpm=yes
2220 # Check whether --with-jpeg was given.
2221 if test "${with_jpeg+set}" = set; then
2222 withval=$with_jpeg;
2223 else
2224 with_jpeg=yes
2228 # Check whether --with-tiff was given.
2229 if test "${with_tiff+set}" = set; then
2230 withval=$with_tiff;
2231 else
2232 with_tiff=yes
2236 # Check whether --with-gif was given.
2237 if test "${with_gif+set}" = set; then
2238 withval=$with_gif;
2239 else
2240 with_gif=yes
2244 # Check whether --with-png was given.
2245 if test "${with_png+set}" = set; then
2246 withval=$with_png;
2247 else
2248 with_png=yes
2252 # Check whether --with-rsvg was given.
2253 if test "${with_rsvg+set}" = set; then
2254 withval=$with_rsvg;
2255 else
2256 with_rsvg=yes
2261 # Check whether --with-xft was given.
2262 if test "${with_xft+set}" = set; then
2263 withval=$with_xft;
2264 else
2265 with_xft=yes
2269 # Check whether --with-libotf was given.
2270 if test "${with_libotf+set}" = set; then
2271 withval=$with_libotf;
2272 else
2273 with_libotf=yes
2277 # Check whether --with-m17n-flt was given.
2278 if test "${with_m17n_flt+set}" = set; then
2279 withval=$with_m17n_flt;
2280 else
2281 with_m17n_flt=yes
2286 # Check whether --with-toolkit-scroll-bars was given.
2287 if test "${with_toolkit_scroll_bars+set}" = set; then
2288 withval=$with_toolkit_scroll_bars;
2289 else
2290 with_toolkit_scroll_bars=yes
2294 # Check whether --with-xaw3d was given.
2295 if test "${with_xaw3d+set}" = set; then
2296 withval=$with_xaw3d;
2297 else
2298 with_xaw3d=yes
2302 # Check whether --with-xim was given.
2303 if test "${with_xim+set}" = set; then
2304 withval=$with_xim;
2305 else
2306 with_xim=yes
2310 # Check whether --with-ns was given.
2311 if test "${with_ns+set}" = set; then
2312 withval=$with_ns;
2313 else
2314 with_ns=no
2319 # Check whether --with-gpm was given.
2320 if test "${with_gpm+set}" = set; then
2321 withval=$with_gpm;
2322 else
2323 with_gpm=yes
2327 # Check whether --with-dbus was given.
2328 if test "${with_dbus+set}" = set; then
2329 withval=$with_dbus;
2330 else
2331 with_dbus=yes
2335 # Check whether --with-gconf was given.
2336 if test "${with_gconf+set}" = set; then
2337 withval=$with_gconf;
2338 else
2339 with_gconf=yes
2343 # Check whether --with-selinux was given.
2344 if test "${with_selinux+set}" = set; then
2345 withval=$with_selinux;
2346 else
2347 with_selinux=yes
2351 ## For the times when you want to build Emacs but don't have
2352 ## a suitable makeinfo, and can live without the manuals.
2354 # Check whether --with-makeinfo was given.
2355 if test "${with_makeinfo+set}" = set; then
2356 withval=$with_makeinfo;
2357 else
2358 with_makeinfo=yes
2363 # Check whether --with-gtk was given.
2364 if test "${with_gtk+set}" = set; then
2365 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2366 specify a toolkit." >&5
2367 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2368 specify a toolkit." >&2;}
2369 { (exit 1); exit 1; }; }
2374 # Check whether --with-gcc was given.
2375 if test "${with_gcc+set}" = set; then
2376 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2377 variable to specify a compiler." >&5
2378 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2379 variable to specify a compiler." >&2;}
2380 { (exit 1); exit 1; }; }
2385 # Check whether --with-pkg-config-prog was given.
2386 if test "${with_pkg_config_prog+set}" = set; then
2387 withval=$with_pkg_config_prog;
2390 if test "X${with_pkg_config_prog}" != X; then
2391 if test "${with_pkg_config_prog}" != yes; then
2392 PKG_CONFIG="${with_pkg_config_prog}"
2396 CRT_DIR=
2398 # Check whether --with-crt-dir was given.
2399 if test "${with_crt_dir+set}" = set; then
2400 withval=$with_crt_dir;
2403 CRT_DIR="${with_crt_dir}"
2406 # Check whether --with-gnustep-conf was given.
2407 if test "${with_gnustep_conf+set}" = set; then
2408 withval=$with_gnustep_conf;
2411 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2412 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2413 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2414 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2416 # Check whether --enable-ns-self-contained was given.
2417 if test "${enable_ns_self_contained+set}" = set; then
2418 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2419 else
2420 EN_NS_SELF_CONTAINED=yes
2424 # Check whether --enable-asserts was given.
2425 if test "${enable_asserts+set}" = set; then
2426 enableval=$enable_asserts; USE_XASSERTS=$enableval
2427 else
2428 USE_XASSERTS=no
2432 # Check whether --enable-maintainer-mode was given.
2433 if test "${enable_maintainer_mode+set}" = set; then
2434 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2435 else
2436 USE_MAINTAINER_MODE=no
2439 if test $USE_MAINTAINER_MODE = yes; then
2440 MAINT=
2441 else
2442 MAINT=#
2446 # Check whether --enable-locallisppath was given.
2447 if test "${enable_locallisppath+set}" = set; then
2448 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2449 locallisppath=
2450 elif test "${enableval}" != "yes"; then
2451 locallisppath=${enableval}
2456 # Check whether --enable-checking was given.
2457 if test "${enable_checking+set}" = set; then
2458 enableval=$enable_checking; ac_checking_flags="${enableval}"
2461 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2462 for check in $ac_checking_flags
2464 case $check in
2465 # these set all the flags to specific states
2466 yes) ac_enable_checking=1 ;;
2467 no) ac_enable_checking= ;
2468 ac_gc_check_stringbytes= ;
2469 ac_gc_check_string_overrun= ;
2470 ac_gc_check_string_free_list= ;
2471 ac_xmalloc_overrun= ;
2472 ac_gc_check_cons_list= ;;
2473 all) ac_enable_checking=1 ;
2474 ac_gc_check_stringbytes=1 ;
2475 ac_gc_check_string_overrun=1 ;
2476 ac_gc_check_string_free_list=1 ;
2477 ac_xmalloc_overrun=1 ;
2478 ac_gc_check_cons_list=1 ;;
2479 # these enable particular checks
2480 stringbytes) ac_gc_check_stringbytes=1 ;;
2481 stringoverrun) ac_gc_check_string_overrun=1 ;;
2482 stringfreelist) ac_gc_check_string_free_list=1 ;;
2483 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2484 conslist) ac_gc_check_cons_list=1 ;;
2485 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2486 $as_echo "$as_me: error: unknown check category $check" >&2;}
2487 { (exit 1); exit 1; }; } ;;
2488 esac
2489 done
2490 IFS="$ac_save_IFS"
2492 if test x$ac_enable_checking != x ; then
2494 cat >>confdefs.h <<\_ACEOF
2495 #define ENABLE_CHECKING 1
2496 _ACEOF
2499 if test x$ac_gc_check_stringbytes != x ; then
2501 cat >>confdefs.h <<\_ACEOF
2502 #define GC_CHECK_STRING_BYTES 1
2503 _ACEOF
2506 if test x$ac_gc_check_stringoverrun != x ; then
2508 cat >>confdefs.h <<\_ACEOF
2509 #define GC_CHECK_STRING_OVERRUN 1
2510 _ACEOF
2513 if test x$ac_gc_check_string_free_list != x ; then
2515 cat >>confdefs.h <<\_ACEOF
2516 #define GC_CHECK_STRING_FREE_LIST 1
2517 _ACEOF
2520 if test x$ac_xmalloc_overrun != x ; then
2522 cat >>confdefs.h <<\_ACEOF
2523 #define XMALLOC_OVERRUN_CHECK 1
2524 _ACEOF
2527 if test x$ac_gc_check_cons_list != x ; then
2529 cat >>confdefs.h <<\_ACEOF
2530 #define GC_CHECK_CONS_LIST 1
2531 _ACEOF
2535 # Check whether --enable-profiling was given.
2536 if test "${enable_profiling+set}" = set; then
2537 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2540 if test x$ac_enable_profiling != x ; then
2541 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2542 PROFILING_LDFLAGS="-pg"
2543 else
2544 PROFILING_CFLAGS=
2545 PROFILING_LDFLAGS=
2548 # Check whether --enable-autodepend was given.
2549 if test "${enable_autodepend+set}" = set; then
2550 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2551 else
2552 ac_enable_autodepend=yes
2556 #### Make srcdir absolute, if it isn't already. It's important to
2557 #### avoid running the path through pwd unnecessarily, since pwd can
2558 #### give you automounter prefixes, which can go away. We do all this
2559 #### so Emacs can find its files when run uninstalled.
2560 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2561 unset CDPATH
2562 case "${srcdir}" in
2563 /* ) ;;
2565 ## We may be able to use the $PWD environment variable to make this
2566 ## absolute. But sometimes PWD is inaccurate.
2567 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2568 ## but that tested only for a well-formed and valid PWD,
2569 ## it did not object when PWD was well-formed and valid but just wrong.
2570 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2571 then
2572 srcdir="$PWD"
2573 else
2574 srcdir="`(cd ${srcdir}; pwd)`"
2577 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2578 esac
2580 #### Check if the source directory already has a configured system in it.
2581 if test `pwd` != `(cd ${srcdir} && pwd)` \
2582 && test -f "${srcdir}/src/config.h" ; then
2583 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2584 as a build directory right now; it has been configured in its own
2585 right. To configure in another directory as well, you MUST
2586 use GNU make. If you do not have GNU make, then you must
2587 now do \`make distclean' in ${srcdir},
2588 and then run $0 again." >&5
2589 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2590 as a build directory right now; it has been configured in its own
2591 right. To configure in another directory as well, you MUST
2592 use GNU make. If you do not have GNU make, then you must
2593 now do \`make distclean' in ${srcdir},
2594 and then run $0 again." >&2;}
2597 #### Given the configuration name, set machfile and opsysfile to the
2598 #### names of the m/*.h and s/*.h files we should use.
2600 ### Canonicalize the configuration name.
2602 ac_aux_dir=
2603 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2604 if test -f "$ac_dir/install-sh"; then
2605 ac_aux_dir=$ac_dir
2606 ac_install_sh="$ac_aux_dir/install-sh -c"
2607 break
2608 elif test -f "$ac_dir/install.sh"; then
2609 ac_aux_dir=$ac_dir
2610 ac_install_sh="$ac_aux_dir/install.sh -c"
2611 break
2612 elif test -f "$ac_dir/shtool"; then
2613 ac_aux_dir=$ac_dir
2614 ac_install_sh="$ac_aux_dir/shtool install -c"
2615 break
2617 done
2618 if test -z "$ac_aux_dir"; then
2619 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2620 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2621 { (exit 1); exit 1; }; }
2624 # These three variables are undocumented and unsupported,
2625 # and are intended to be withdrawn in a future Autoconf release.
2626 # They can cause serious problems if a builder's source tree is in a directory
2627 # whose full name contains unusual characters.
2628 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2629 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2630 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2633 # Make sure we can run config.sub.
2634 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2635 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2636 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2637 { (exit 1); exit 1; }; }
2639 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2640 $as_echo_n "checking build system type... " >&6; }
2641 if test "${ac_cv_build+set}" = set; then
2642 $as_echo_n "(cached) " >&6
2643 else
2644 ac_build_alias=$build_alias
2645 test "x$ac_build_alias" = x &&
2646 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2647 test "x$ac_build_alias" = x &&
2648 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2649 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2650 { (exit 1); exit 1; }; }
2651 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2652 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2653 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2654 { (exit 1); exit 1; }; }
2657 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2658 $as_echo "$ac_cv_build" >&6; }
2659 case $ac_cv_build in
2660 *-*-*) ;;
2661 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2662 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2663 { (exit 1); exit 1; }; };;
2664 esac
2665 build=$ac_cv_build
2666 ac_save_IFS=$IFS; IFS='-'
2667 set x $ac_cv_build
2668 shift
2669 build_cpu=$1
2670 build_vendor=$2
2671 shift; shift
2672 # Remember, the first character of IFS is used to create $*,
2673 # except with old shells:
2674 build_os=$*
2675 IFS=$ac_save_IFS
2676 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2679 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2680 $as_echo_n "checking host system type... " >&6; }
2681 if test "${ac_cv_host+set}" = set; then
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if test "x$host_alias" = x; then
2685 ac_cv_host=$ac_cv_build
2686 else
2687 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2688 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2689 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2690 { (exit 1); exit 1; }; }
2694 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2695 $as_echo "$ac_cv_host" >&6; }
2696 case $ac_cv_host in
2697 *-*-*) ;;
2698 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2699 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2700 { (exit 1); exit 1; }; };;
2701 esac
2702 host=$ac_cv_host
2703 ac_save_IFS=$IFS; IFS='-'
2704 set x $ac_cv_host
2705 shift
2706 host_cpu=$1
2707 host_vendor=$2
2708 shift; shift
2709 # Remember, the first character of IFS is used to create $*,
2710 # except with old shells:
2711 host_os=$*
2712 IFS=$ac_save_IFS
2713 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2716 canonical=$host
2717 configuration=${host_alias-${build_alias-$host}}
2721 ### If you add support for a new configuration, add code to this
2722 ### switch statement to recognize your configuration name and select
2723 ### the appropriate operating system and machine description files.
2725 ### You would hope that you could choose an m/*.h file pretty much
2726 ### based on the machine portion of the configuration name, and an s-
2727 ### file based on the operating system portion. However, it turns out
2728 ### that each m/*.h file is pretty manufacturer-specific - for
2729 ### example mips.h is MIPS
2730 ### So we basically have to have a special case for each
2731 ### configuration name.
2733 ### As far as handling version numbers on operating systems is
2734 ### concerned, make sure things will fail in a fixable way. If
2735 ### /etc/MACHINES doesn't say anything about version numbers, be
2736 ### prepared to handle anything reasonably. If version numbers
2737 ### matter, be sure /etc/MACHINES says something about it.
2739 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2740 ### "System V Release 4"; he writes, "The old convention encouraged
2741 ### confusion between `system' and `release' levels'."
2743 machine='' opsys='' unported=no
2744 case "${canonical}" in
2746 ## FreeBSD ports
2747 *-*-freebsd* )
2748 opsys=freebsd
2749 case "${canonical}" in
2750 alpha*-*-freebsd*) machine=alpha ;;
2751 arm*-*-freebsd*) machine=arm ;;
2752 ia64-*-freebsd*) machine=ia64 ;;
2753 sparc-*-freebsd*) machine=sparc ;;
2754 sparc64-*-freebsd*) machine=sparc ;;
2755 powerpc-*-freebsd*) machine=macppc ;;
2756 i[3456]86-*-freebsd*) machine=intel386 ;;
2757 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2758 esac
2761 ## FreeBSD kernel + glibc based userland
2762 *-*-kfreebsd*gnu* )
2763 opsys=gnu-kfreebsd
2764 case "${canonical}" in
2765 alpha*-*-kfreebsd*) machine=alpha ;;
2766 ia64-*-kfreebsd*) machine=ia64 ;;
2767 sparc-*-kfreebsd*) machine=sparc ;;
2768 sparc64-*-kfreebsd*) machine=sparc ;;
2769 powerpc-*-kfreebsd*) machine=macppc ;;
2770 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2771 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2772 esac
2775 ## NetBSD ports
2776 *-*-netbsd* )
2777 opsys=netbsd
2778 if test -f /usr/lib/crti.o; then
2780 cat >>confdefs.h <<\_ACEOF
2781 #define HAVE_CRTIN /**/
2782 _ACEOF
2786 case "${canonical}" in
2787 alpha*-*-netbsd*) machine=alpha ;;
2788 i[3456]86-*-netbsd*) machine=intel386 ;;
2789 mips-*-netbsd*) machine=mips ;;
2790 mipsel-*-netbsd*) machine=mips ;;
2791 mipseb-*-netbsd*) machine=mips ;;
2792 powerpc-*-netbsd*) machine=macppc ;;
2793 sparc*-*-netbsd*) machine=sparc ;;
2794 vax-*-netbsd*) machine=vax ;;
2795 arm-*-netbsd*) machine=arm ;;
2796 x86_64-*-netbsd*) machine=amdx86-64 ;;
2797 hppa-*-netbsd*) machine=hp800 ;;
2798 m68k-*-netbsd*) machine=m68k ;;
2799 esac
2802 ## OpenBSD ports
2803 *-*-openbsd* )
2804 opsys=openbsd
2805 case "${canonical}" in
2806 alpha*-*-openbsd*) machine=alpha ;;
2807 arm-*-openbsd*) machine=arm ;;
2808 i386-*-openbsd*) machine=intel386 ;;
2809 powerpc-*-openbsd*) machine=macppc ;;
2810 sparc*-*-openbsd*) machine=sparc ;;
2811 vax-*-openbsd*) machine=vax ;;
2812 x86_64-*-openbsd*) machine=amdx86-64 ;;
2813 hppa-*-openbsd*) machine=hp800 ;;
2814 esac
2817 alpha*-*-linux-gnu* )
2818 machine=alpha opsys=gnu-linux
2821 arm*-*-linux-gnu* )
2822 machine=arm opsys=gnu-linux
2825 ## Apple Darwin / Mac OS X
2826 *-apple-darwin* )
2827 case "${canonical}" in
2828 i[3456]86-* ) machine=intel386 ;;
2829 powerpc-* ) machine=macppc ;;
2830 x86_64-* ) machine=amdx86-64 ;;
2831 * ) unported=yes ;;
2832 esac
2833 opsys=darwin
2834 # Define CPP as follows to make autoconf work correctly.
2835 CPP="${CC-cc} -E -no-cpp-precomp"
2836 # Use fink packages if available.
2837 if test -d /sw/include && test -d /sw/lib; then
2838 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2839 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2840 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2844 ## HP 9000 series 700 and 800, running HP/UX
2845 hppa*-hp-hpux10.2* )
2846 machine=hp800 opsys=hpux10-20
2848 hppa*-hp-hpux1[1-9]* )
2849 machine=hp800 opsys=hpux11
2850 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2853 hppa*-*-linux-gnu* )
2854 machine=hp800 opsys=gnu-linux
2857 ## IBM machines
2858 s390-*-linux-gnu* )
2859 machine=ibms390 opsys=gnu-linux
2861 s390x-*-linux-gnu* )
2862 machine=ibms390x opsys=gnu-linux
2864 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2865 machine=ibmrs6000 opsys=aix4-2
2867 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2868 machine=ibmrs6000 opsys=aix4-2
2870 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2871 machine=ibmrs6000 opsys=aix4-2
2873 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2874 machine=ibmrs6000 opsys=aix4-2
2877 ## Macintosh PowerPC
2878 powerpc*-*-linux-gnu* )
2879 machine=macppc opsys=gnu-linux
2882 ## Silicon Graphics machines
2883 ## Iris 4D
2884 mips-sgi-irix6.5 )
2885 machine=iris4d opsys=irix6-5
2886 # Without defining _LANGUAGE_C, things get masked out in the headers
2887 # so that, for instance, grepping for `free' in stdlib.h fails and
2888 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2889 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2890 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2893 ## Suns
2894 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2895 machine=sparc opsys=gnu-linux
2898 *-sun-solaris* \
2899 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2900 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2901 case "${canonical}" in
2902 i[3456]86-*-* ) machine=intel386 ;;
2903 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2904 sparc* ) machine=sparc ;;
2905 * ) unported=yes ;;
2906 esac
2907 case "${canonical}" in
2908 *-sunos5.6* | *-solaris2.6* )
2909 opsys=sol2-6
2910 NON_GNU_CPP=/usr/ccs/lib/cpp
2911 RANLIB="ar -ts"
2913 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2914 opsys=sol2-6
2915 emacs_check_sunpro_c=yes
2916 NON_GNU_CPP=/usr/ccs/lib/cpp
2918 *-sunos5* | *-solaris* )
2919 opsys=sol2-10
2920 emacs_check_sunpro_c=yes
2921 NON_GNU_CPP=/usr/ccs/lib/cpp
2923 esac
2924 ## Watch out for a compiler that we know will not work.
2925 case "${canonical}" in
2926 *-solaris* | *-sunos5* )
2927 if [ "x$CC" = x/usr/ucb/cc ]; then
2928 ## /usr/ucb/cc doesn't work;
2929 ## we should find some other compiler that does work.
2930 unset CC
2933 *) ;;
2934 esac
2937 ## IA-64
2938 ia64*-*-linux* )
2939 machine=ia64 opsys=gnu-linux
2942 ## Intel 386 machines where we don't care about the manufacturer
2943 i[3456]86-*-* )
2944 machine=intel386
2945 case "${canonical}" in
2946 *-cygwin ) opsys=cygwin ;;
2947 *-darwin* ) opsys=darwin
2948 CPP="${CC-cc} -E -no-cpp-precomp"
2950 *-linux-gnu* ) opsys=gnu-linux ;;
2951 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2952 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2953 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2954 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2955 esac
2958 ## m68k Linux-based GNU system
2959 m68k-*-linux-gnu* )
2960 machine=m68k opsys=gnu-linux
2963 ## Mips Linux-based GNU system
2964 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2965 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2966 machine=mips opsys=gnu-linux
2969 ## AMD x86-64 Linux-based GNU system
2970 x86_64-*-linux-gnu* )
2971 machine=amdx86-64 opsys=gnu-linux
2974 ## Tensilica Xtensa Linux-based GNU system
2975 xtensa*-*-linux-gnu* )
2976 machine=xtensa opsys=gnu-linux
2979 ## SuperH Linux-based GNU system
2980 sh[34]*-*-linux-gnu* )
2981 machine=sh3 opsys=gnu-linux
2985 unported=yes
2987 esac
2989 ### If the code above didn't choose an operating system, just choose
2990 ### an operating system based on the configuration name. You really
2991 ### only want to use this when you have no idea what the right
2992 ### operating system is; if you know what operating systems a machine
2993 ### runs, it's cleaner to make it explicit in the case statement
2994 ### above.
2995 if test x"${opsys}" = x; then
2996 case "${canonical}" in
2997 *-gnu* ) opsys=gnu ;;
2999 unported=yes
3001 esac
3006 if test $unported = yes; then
3007 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3008 Check \`etc/MACHINES' for recognized configuration names." >&5
3009 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3010 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3011 { (exit 1); exit 1; }; }
3014 machfile="m/${machine}.h"
3015 opsysfile="s/${opsys}.h"
3018 #### Choose a compiler.
3019 test -n "$CC" && cc_specified=yes
3021 # Save the value of CFLAGS that the user specified.
3022 SPECIFIED_CFLAGS="$CFLAGS"
3024 ac_ext=c
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3051 done
3052 done
3053 IFS=$as_save_IFS
3057 CC=$ac_cv_prog_CC
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3061 else
3062 { $as_echo "$as_me:$LINENO: result: no" >&5
3063 $as_echo "no" >&6; }
3068 if test -z "$ac_cv_prog_CC"; then
3069 ac_ct_CC=$CC
3070 # Extract the first word of "gcc", so it can be a program name with args.
3071 set dummy gcc; ac_word=$2
3072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3075 $as_echo_n "(cached) " >&6
3076 else
3077 if test -n "$ac_ct_CC"; then
3078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087 ac_cv_prog_ac_ct_CC="gcc"
3088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3091 done
3092 done
3093 IFS=$as_save_IFS
3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3100 $as_echo "$ac_ct_CC" >&6; }
3101 else
3102 { $as_echo "$as_me:$LINENO: result: no" >&5
3103 $as_echo "no" >&6; }
3106 if test "x$ac_ct_CC" = x; then
3107 CC=""
3108 else
3109 case $cross_compiling:$ac_tool_warned in
3110 yes:)
3111 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3112 whose name does not start with the host triplet. If you think this
3113 configuration is useful to you, please write to autoconf@gnu.org." >&5
3114 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3115 whose name does not start with the host triplet. If you think this
3116 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3117 ac_tool_warned=yes ;;
3118 esac
3119 CC=$ac_ct_CC
3121 else
3122 CC="$ac_cv_prog_CC"
3125 if test -z "$CC"; then
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3128 set dummy ${ac_tool_prefix}cc; ac_word=$2
3129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if test "${ac_cv_prog_CC+set}" = set; then
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test -n "$CC"; then
3135 ac_cv_prog_CC="$CC" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144 ac_cv_prog_CC="${ac_tool_prefix}cc"
3145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3148 done
3149 done
3150 IFS=$as_save_IFS
3154 CC=$ac_cv_prog_CC
3155 if test -n "$CC"; then
3156 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3157 $as_echo "$CC" >&6; }
3158 else
3159 { $as_echo "$as_me:$LINENO: result: no" >&5
3160 $as_echo "no" >&6; }
3166 if test -z "$CC"; then
3167 # Extract the first word of "cc", so it can be a program name with args.
3168 set dummy cc; ac_word=$2
3169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if test "${ac_cv_prog_CC+set}" = set; then
3172 $as_echo_n "(cached) " >&6
3173 else
3174 if test -n "$CC"; then
3175 ac_cv_prog_CC="$CC" # Let the user override the test.
3176 else
3177 ac_prog_rejected=no
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3186 ac_prog_rejected=yes
3187 continue
3189 ac_cv_prog_CC="cc"
3190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3193 done
3194 done
3195 IFS=$as_save_IFS
3197 if test $ac_prog_rejected = yes; then
3198 # We found a bogon in the path, so make sure we never use it.
3199 set dummy $ac_cv_prog_CC
3200 shift
3201 if test $# != 0; then
3202 # We chose a different compiler from the bogus one.
3203 # However, it has the same basename, so the bogon will be chosen
3204 # first if we set CC to just the basename; use the full file name.
3205 shift
3206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3211 CC=$ac_cv_prog_CC
3212 if test -n "$CC"; then
3213 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3214 $as_echo "$CC" >&6; }
3215 else
3216 { $as_echo "$as_me:$LINENO: result: no" >&5
3217 $as_echo "no" >&6; }
3222 if test -z "$CC"; then
3223 if test -n "$ac_tool_prefix"; then
3224 for ac_prog in cl.exe
3226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if test "${ac_cv_prog_CC+set}" = set; then
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3247 done
3248 done
3249 IFS=$as_save_IFS
3253 CC=$ac_cv_prog_CC
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3257 else
3258 { $as_echo "$as_me:$LINENO: result: no" >&5
3259 $as_echo "no" >&6; }
3263 test -n "$CC" && break
3264 done
3266 if test -z "$CC"; then
3267 ac_ct_CC=$CC
3268 for ac_prog in cl.exe
3270 # Extract the first word of "$ac_prog", so it can be a program name with args.
3271 set dummy $ac_prog; ac_word=$2
3272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3275 $as_echo_n "(cached) " >&6
3276 else
3277 if test -n "$ac_ct_CC"; then
3278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287 ac_cv_prog_ac_ct_CC="$ac_prog"
3288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 break 2
3291 done
3292 done
3293 IFS=$as_save_IFS
3297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3298 if test -n "$ac_ct_CC"; then
3299 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3300 $as_echo "$ac_ct_CC" >&6; }
3301 else
3302 { $as_echo "$as_me:$LINENO: result: no" >&5
3303 $as_echo "no" >&6; }
3307 test -n "$ac_ct_CC" && break
3308 done
3310 if test "x$ac_ct_CC" = x; then
3311 CC=""
3312 else
3313 case $cross_compiling:$ac_tool_warned in
3314 yes:)
3315 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3316 whose name does not start with the host triplet. If you think this
3317 configuration is useful to you, please write to autoconf@gnu.org." >&5
3318 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3319 whose name does not start with the host triplet. If you think this
3320 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3321 ac_tool_warned=yes ;;
3322 esac
3323 CC=$ac_ct_CC
3330 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3331 See \`config.log' for more details." >&5
3332 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3333 See \`config.log' for more details." >&2;}
3334 { (exit 1); exit 1; }; }
3336 # Provide some information about the compiler.
3337 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3338 set X $ac_compile
3339 ac_compiler=$2
3340 { (ac_try="$ac_compiler --version >&5"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346 $as_echo "$ac_try_echo") >&5
3347 (eval "$ac_compiler --version >&5") 2>&5
3348 ac_status=$?
3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }
3351 { (ac_try="$ac_compiler -v >&5"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3357 $as_echo "$ac_try_echo") >&5
3358 (eval "$ac_compiler -v >&5") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }
3362 { (ac_try="$ac_compiler -V >&5"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3368 $as_echo "$ac_try_echo") >&5
3369 (eval "$ac_compiler -V >&5") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }
3374 cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h. */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3382 main ()
3386 return 0;
3388 _ACEOF
3389 ac_clean_files_save=$ac_clean_files
3390 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3391 # Try to create an executable without -o first, disregard a.out.
3392 # It will help us diagnose broken compilers, and finding out an intuition
3393 # of exeext.
3394 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3395 $as_echo_n "checking for C compiler default output file name... " >&6; }
3396 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3398 # The possible output files:
3399 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3401 ac_rmfiles=
3402 for ac_file in $ac_files
3404 case $ac_file in
3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3407 esac
3408 done
3409 rm -f $ac_rmfiles
3411 if { (ac_try="$ac_link_default"
3412 case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3417 $as_echo "$ac_try_echo") >&5
3418 (eval "$ac_link_default") 2>&5
3419 ac_status=$?
3420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; then
3422 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3423 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3424 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3425 # so that the user can short-circuit this test for compilers unknown to
3426 # Autoconf.
3427 for ac_file in $ac_files ''
3429 test -f "$ac_file" || continue
3430 case $ac_file in
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3433 [ab].out )
3434 # We found the default executable, but exeext='' is most
3435 # certainly right.
3436 break;;
3437 *.* )
3438 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3439 then :; else
3440 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3442 # We set ac_cv_exeext here because the later test for it is not
3443 # safe: cross compilers may not add the suffix if given an `-o'
3444 # argument, so we may need to know it at that point already.
3445 # Even if this section looks crufty: it has the advantage of
3446 # actually working.
3447 break;;
3449 break;;
3450 esac
3451 done
3452 test "$ac_cv_exeext" = no && ac_cv_exeext=
3454 else
3455 ac_file=''
3458 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3459 $as_echo "$ac_file" >&6; }
3460 if test -z "$ac_file"; then
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3465 See \`config.log' for more details." >&5
3466 $as_echo "$as_me: error: C compiler cannot create executables
3467 See \`config.log' for more details." >&2;}
3468 { (exit 77); exit 77; }; }
3471 ac_exeext=$ac_cv_exeext
3473 # Check that the compiler produces executables we can run. If not, either
3474 # the compiler is broken, or we cross compile.
3475 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3476 $as_echo_n "checking whether the C compiler works... " >&6; }
3477 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3478 # If not cross compiling, check that we can run a simple program.
3479 if test "$cross_compiling" != yes; then
3480 if { ac_try='./$ac_file'
3481 { (case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486 $as_echo "$ac_try_echo") >&5
3487 (eval "$ac_try") 2>&5
3488 ac_status=$?
3489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; }; then
3491 cross_compiling=no
3492 else
3493 if test "$cross_compiling" = maybe; then
3494 cross_compiling=yes
3495 else
3496 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3497 If you meant to cross compile, use \`--host'.
3498 See \`config.log' for more details." >&5
3499 $as_echo "$as_me: error: cannot run C compiled programs.
3500 If you meant to cross compile, use \`--host'.
3501 See \`config.log' for more details." >&2;}
3502 { (exit 1); exit 1; }; }
3506 { $as_echo "$as_me:$LINENO: result: yes" >&5
3507 $as_echo "yes" >&6; }
3509 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3510 ac_clean_files=$ac_clean_files_save
3511 # Check that the compiler produces executables we can run. If not, either
3512 # the compiler is broken, or we cross compile.
3513 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3514 $as_echo_n "checking whether we are cross compiling... " >&6; }
3515 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3516 $as_echo "$cross_compiling" >&6; }
3518 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3519 $as_echo_n "checking for suffix of executables... " >&6; }
3520 if { (ac_try="$ac_link"
3521 case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524 esac
3525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3526 $as_echo "$ac_try_echo") >&5
3527 (eval "$ac_link") 2>&5
3528 ac_status=$?
3529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; then
3531 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3532 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3533 # work properly (i.e., refer to `conftest.exe'), while it won't with
3534 # `rm'.
3535 for ac_file in conftest.exe conftest conftest.*; do
3536 test -f "$ac_file" || continue
3537 case $ac_file in
3538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3539 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3540 break;;
3541 * ) break;;
3542 esac
3543 done
3544 else
3545 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3546 See \`config.log' for more details." >&5
3547 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3548 See \`config.log' for more details." >&2;}
3549 { (exit 1); exit 1; }; }
3552 rm -f conftest$ac_cv_exeext
3553 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3554 $as_echo "$ac_cv_exeext" >&6; }
3556 rm -f conftest.$ac_ext
3557 EXEEXT=$ac_cv_exeext
3558 ac_exeext=$EXEEXT
3559 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3560 $as_echo_n "checking for suffix of object files... " >&6; }
3561 if test "${ac_cv_objext+set}" = set; then
3562 $as_echo_n "(cached) " >&6
3563 else
3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h. */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3572 main ()
3576 return 0;
3578 _ACEOF
3579 rm -f conftest.o conftest.obj
3580 if { (ac_try="$ac_compile"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3586 $as_echo "$ac_try_echo") >&5
3587 (eval "$ac_compile") 2>&5
3588 ac_status=$?
3589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; then
3591 for ac_file in conftest.o conftest.obj conftest.*; do
3592 test -f "$ac_file" || continue;
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3596 break;;
3597 esac
3598 done
3599 else
3600 $as_echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3604 See \`config.log' for more details." >&5
3605 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3606 See \`config.log' for more details." >&2;}
3607 { (exit 1); exit 1; }; }
3610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3612 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3613 $as_echo "$ac_cv_objext" >&6; }
3614 OBJEXT=$ac_cv_objext
3615 ac_objext=$OBJEXT
3616 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3617 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3619 $as_echo_n "(cached) " >&6
3620 else
3621 cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h. */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3629 main ()
3631 #ifndef __GNUC__
3632 choke me
3633 #endif
3636 return 0;
3638 _ACEOF
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3646 $as_echo "$ac_try_echo") >&5
3647 (eval "$ac_compile") 2>conftest.er1
3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } && {
3654 test -z "$ac_c_werror_flag" ||
3655 test ! -s conftest.err
3656 } && test -s conftest.$ac_objext; then
3657 ac_compiler_gnu=yes
3658 else
3659 $as_echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 ac_compiler_gnu=no
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3669 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3670 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3671 if test $ac_compiler_gnu = yes; then
3672 GCC=yes
3673 else
3674 GCC=
3676 ac_test_CFLAGS=${CFLAGS+set}
3677 ac_save_CFLAGS=$CFLAGS
3678 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3679 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3680 if test "${ac_cv_prog_cc_g+set}" = set; then
3681 $as_echo_n "(cached) " >&6
3682 else
3683 ac_save_c_werror_flag=$ac_c_werror_flag
3684 ac_c_werror_flag=yes
3685 ac_cv_prog_cc_g=no
3686 CFLAGS="-g"
3687 cat >conftest.$ac_ext <<_ACEOF
3688 /* confdefs.h. */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3695 main ()
3699 return 0;
3701 _ACEOF
3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
3704 case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707 esac
3708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3709 $as_echo "$ac_try_echo") >&5
3710 (eval "$ac_compile") 2>conftest.er1
3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
3715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } && {
3717 test -z "$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3719 } && test -s conftest.$ac_objext; then
3720 ac_cv_prog_cc_g=yes
3721 else
3722 $as_echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3725 CFLAGS=""
3726 cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h. */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3734 main ()
3738 return 0;
3740 _ACEOF
3741 rm -f conftest.$ac_objext
3742 if { (ac_try="$ac_compile"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3748 $as_echo "$ac_try_echo") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3760 else
3761 $as_echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 ac_c_werror_flag=$ac_save_c_werror_flag
3765 CFLAGS="-g"
3766 cat >conftest.$ac_ext <<_ACEOF
3767 /* confdefs.h. */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3774 main ()
3778 return 0;
3780 _ACEOF
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788 $as_echo "$ac_try_echo") >&5
3789 (eval "$ac_compile") 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest.$ac_objext; then
3799 ac_cv_prog_cc_g=yes
3800 else
3801 $as_echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3816 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3817 $as_echo "$ac_cv_prog_cc_g" >&6; }
3818 if test "$ac_test_CFLAGS" = set; then
3819 CFLAGS=$ac_save_CFLAGS
3820 elif test $ac_cv_prog_cc_g = yes; then
3821 if test "$GCC" = yes; then
3822 CFLAGS="-g -O2"
3823 else
3824 CFLAGS="-g"
3826 else
3827 if test "$GCC" = yes; then
3828 CFLAGS="-O2"
3829 else
3830 CFLAGS=
3833 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3834 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3835 if test "${ac_cv_prog_cc_c89+set}" = set; then
3836 $as_echo_n "(cached) " >&6
3837 else
3838 ac_cv_prog_cc_c89=no
3839 ac_save_CC=$CC
3840 cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h. */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 #include <stdarg.h>
3847 #include <stdio.h>
3848 #include <sys/types.h>
3849 #include <sys/stat.h>
3850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3851 struct buf { int x; };
3852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3853 static char *e (p, i)
3854 char **p;
3855 int i;
3857 return p[i];
3859 static char *f (char * (*g) (char **, int), char **p, ...)
3861 char *s;
3862 va_list v;
3863 va_start (v,p);
3864 s = g (p, va_arg (v,int));
3865 va_end (v);
3866 return s;
3869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3870 function prototypes and stuff, but not '\xHH' hex character constants.
3871 These don't provoke an error unfortunately, instead are silently treated
3872 as 'x'. The following induces an error, until -std is added to get
3873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3874 array size at least. It's necessary to write '\x00'==0 to get something
3875 that's true only with -std. */
3876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3879 inside strings and character constants. */
3880 #define FOO(x) 'x'
3881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3883 int test (int i, double x);
3884 struct s1 {int (*f) (int a);};
3885 struct s2 {int (*f) (double a);};
3886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3887 int argc;
3888 char **argv;
3890 main ()
3892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3894 return 0;
3896 _ACEOF
3897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3900 CC="$ac_save_CC $ac_arg"
3901 rm -f conftest.$ac_objext
3902 if { (ac_try="$ac_compile"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909 (eval "$ac_compile") 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest.$ac_objext; then
3919 ac_cv_prog_cc_c89=$ac_arg
3920 else
3921 $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3927 rm -f core conftest.err conftest.$ac_objext
3928 test "x$ac_cv_prog_cc_c89" != "xno" && break
3929 done
3930 rm -f conftest.$ac_ext
3931 CC=$ac_save_CC
3934 # AC_CACHE_VAL
3935 case "x$ac_cv_prog_cc_c89" in
3937 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3938 $as_echo "none needed" >&6; } ;;
3939 xno)
3940 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3941 $as_echo "unsupported" >&6; } ;;
3943 CC="$CC $ac_cv_prog_cc_c89"
3944 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3945 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3946 esac
3949 ac_ext=c
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 # On Suns, sometimes $CPP names a directory.
3957 if test -n "$CPP" && test -d "$CPP"; then
3958 CPP=
3961 ## If not using gcc, and on Solaris, and no CPP specified, see if
3962 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3963 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3964 test x"$CPP" = x; then
3965 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3966 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3968 if test "${emacs_cv_sunpro_c+set}" = set; then
3969 $as_echo_n "(cached) " >&6
3970 else
3971 cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h. */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3979 main ()
3981 #ifndef __SUNPRO_C
3982 fail;
3983 #endif
3986 return 0;
3988 _ACEOF
3989 rm -f conftest.$ac_objext conftest$ac_exeext
3990 if { (ac_try="$ac_link"
3991 case "(($ac_try" in
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3994 esac
3995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3996 $as_echo "$ac_try_echo") >&5
3997 (eval "$ac_link") 2>conftest.er1
3998 ac_status=$?
3999 grep -v '^ *+' conftest.er1 >conftest.err
4000 rm -f conftest.er1
4001 cat conftest.err >&5
4002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } && {
4004 test -z "$ac_c_werror_flag" ||
4005 test ! -s conftest.err
4006 } && test -s conftest$ac_exeext && {
4007 test "$cross_compiling" = yes ||
4008 $as_test_x conftest$ac_exeext
4009 }; then
4010 emacs_cv_sunpro_c=yes
4011 else
4012 $as_echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4015 emacs_cv_sunpro_c=no
4018 rm -rf conftest.dSYM
4019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4020 conftest$ac_exeext conftest.$ac_ext
4023 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4024 $as_echo "$emacs_cv_sunpro_c" >&6; }
4026 if test x"$emacs_cv_sunpro_c" = xyes; then
4027 NON_GNU_CPP="$CC -E -Xs"
4031 #### Some systems specify a CPP to use unless we are using GCC.
4032 #### Now that we know whether we are using GCC, we can decide whether
4033 #### to use that one.
4034 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4035 then
4036 CPP="$NON_GNU_CPP"
4039 #### Some systems specify a CC to use unless we are using GCC.
4040 #### Now that we know whether we are using GCC, we can decide whether
4041 #### to use that one.
4042 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4043 test x$cc_specified != xyes
4044 then
4045 CC="$NON_GNU_CC"
4048 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4049 then
4050 CC="$CC $GCC_TEST_OPTIONS"
4053 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4054 then
4055 CC="$CC $NON_GCC_TEST_OPTIONS"
4058 ac_ext=c
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4064 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4065 # On Suns, sometimes $CPP names a directory.
4066 if test -n "$CPP" && test -d "$CPP"; then
4067 CPP=
4069 if test -z "$CPP"; then
4070 if test "${ac_cv_prog_CPP+set}" = set; then
4071 $as_echo_n "(cached) " >&6
4072 else
4073 # Double quotes because CPP needs to be expanded
4074 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4076 ac_preproc_ok=false
4077 for ac_c_preproc_warn_flag in '' yes
4079 # Use a header file that comes with gcc, so configuring glibc
4080 # with a fresh cross-compiler works.
4081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4082 # <limits.h> exists even on freestanding compilers.
4083 # On the NeXT, cc -E runs the code through the compiler's parser,
4084 # not just through cpp. "Syntax error" is here to catch this case.
4085 cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h. */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4091 #ifdef __STDC__
4092 # include <limits.h>
4093 #else
4094 # include <assert.h>
4095 #endif
4096 Syntax error
4097 _ACEOF
4098 if { (ac_try="$ac_cpp conftest.$ac_ext"
4099 case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4104 $as_echo "$ac_try_echo") >&5
4105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4106 ac_status=$?
4107 grep -v '^ *+' conftest.er1 >conftest.err
4108 rm -f conftest.er1
4109 cat conftest.err >&5
4110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } >/dev/null && {
4112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4113 test ! -s conftest.err
4114 }; then
4116 else
4117 $as_echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120 # Broken: fails on valid input.
4121 continue
4124 rm -f conftest.err conftest.$ac_ext
4126 # OK, works on sane cases. Now check whether nonexistent headers
4127 # can be detected and how.
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 #include <ac_nonexistent.h>
4135 _ACEOF
4136 if { (ac_try="$ac_cpp conftest.$ac_ext"
4137 case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140 esac
4141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4142 $as_echo "$ac_try_echo") >&5
4143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } >/dev/null && {
4150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4151 test ! -s conftest.err
4152 }; then
4153 # Broken: success on invalid input.
4154 continue
4155 else
4156 $as_echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 # Passes both tests.
4160 ac_preproc_ok=:
4161 break
4164 rm -f conftest.err conftest.$ac_ext
4166 done
4167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168 rm -f conftest.err conftest.$ac_ext
4169 if $ac_preproc_ok; then
4170 break
4173 done
4174 ac_cv_prog_CPP=$CPP
4177 CPP=$ac_cv_prog_CPP
4178 else
4179 ac_cv_prog_CPP=$CPP
4181 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4182 $as_echo "$CPP" >&6; }
4183 ac_preproc_ok=false
4184 for ac_c_preproc_warn_flag in '' yes
4186 # Use a header file that comes with gcc, so configuring glibc
4187 # with a fresh cross-compiler works.
4188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189 # <limits.h> exists even on freestanding compilers.
4190 # On the NeXT, cc -E runs the code through the compiler's parser,
4191 # not just through cpp. "Syntax error" is here to catch this case.
4192 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h. */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 #ifdef __STDC__
4199 # include <limits.h>
4200 #else
4201 # include <assert.h>
4202 #endif
4203 Syntax error
4204 _ACEOF
4205 if { (ac_try="$ac_cpp conftest.$ac_ext"
4206 case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209 esac
4210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4211 $as_echo "$ac_try_echo") >&5
4212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } >/dev/null && {
4219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4221 }; then
4223 else
4224 $as_echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 # Broken: fails on valid input.
4228 continue
4231 rm -f conftest.err conftest.$ac_ext
4233 # OK, works on sane cases. Now check whether nonexistent headers
4234 # can be detected and how.
4235 cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h. */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 #include <ac_nonexistent.h>
4242 _ACEOF
4243 if { (ac_try="$ac_cpp conftest.$ac_ext"
4244 case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247 esac
4248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4249 $as_echo "$ac_try_echo") >&5
4250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } >/dev/null && {
4257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4258 test ! -s conftest.err
4259 }; then
4260 # Broken: success on invalid input.
4261 continue
4262 else
4263 $as_echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 # Passes both tests.
4267 ac_preproc_ok=:
4268 break
4271 rm -f conftest.err conftest.$ac_ext
4273 done
4274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4275 rm -f conftest.err conftest.$ac_ext
4276 if $ac_preproc_ok; then
4278 else
4279 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4280 See \`config.log' for more details." >&5
4281 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4282 See \`config.log' for more details." >&2;}
4283 { (exit 1); exit 1; }; }
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4294 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4295 if test "${ac_cv_path_GREP+set}" = set; then
4296 $as_echo_n "(cached) " >&6
4297 else
4298 if test -z "$GREP"; then
4299 ac_path_GREP_found=false
4300 # Loop through the user's path and test for each of PROGNAME-LIST
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_prog in grep ggrep; do
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4309 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4310 # Check for GNU ac_path_GREP and select it if it is found.
4311 # Check for GNU $ac_path_GREP
4312 case `"$ac_path_GREP" --version 2>&1` in
4313 *GNU*)
4314 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4316 ac_count=0
4317 $as_echo_n 0123456789 >"conftest.in"
4318 while :
4320 cat "conftest.in" "conftest.in" >"conftest.tmp"
4321 mv "conftest.tmp" "conftest.in"
4322 cp "conftest.in" "conftest.nl"
4323 $as_echo 'GREP' >> "conftest.nl"
4324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4326 ac_count=`expr $ac_count + 1`
4327 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4328 # Best one so far, save it but keep looking for a better one
4329 ac_cv_path_GREP="$ac_path_GREP"
4330 ac_path_GREP_max=$ac_count
4332 # 10*(2^10) chars as input seems more than enough
4333 test $ac_count -gt 10 && break
4334 done
4335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4336 esac
4338 $ac_path_GREP_found && break 3
4339 done
4340 done
4341 done
4342 IFS=$as_save_IFS
4343 if test -z "$ac_cv_path_GREP"; then
4344 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4345 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4346 { (exit 1); exit 1; }; }
4348 else
4349 ac_cv_path_GREP=$GREP
4353 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4354 $as_echo "$ac_cv_path_GREP" >&6; }
4355 GREP="$ac_cv_path_GREP"
4358 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4359 $as_echo_n "checking for egrep... " >&6; }
4360 if test "${ac_cv_path_EGREP+set}" = set; then
4361 $as_echo_n "(cached) " >&6
4362 else
4363 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4364 then ac_cv_path_EGREP="$GREP -E"
4365 else
4366 if test -z "$EGREP"; then
4367 ac_path_EGREP_found=false
4368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_prog in egrep; do
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4377 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4378 # Check for GNU ac_path_EGREP and select it if it is found.
4379 # Check for GNU $ac_path_EGREP
4380 case `"$ac_path_EGREP" --version 2>&1` in
4381 *GNU*)
4382 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4384 ac_count=0
4385 $as_echo_n 0123456789 >"conftest.in"
4386 while :
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
4391 $as_echo 'EGREP' >> "conftest.nl"
4392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394 ac_count=`expr $ac_count + 1`
4395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_EGREP="$ac_path_EGREP"
4398 ac_path_EGREP_max=$ac_count
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4402 done
4403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4404 esac
4406 $ac_path_EGREP_found && break 3
4407 done
4408 done
4409 done
4410 IFS=$as_save_IFS
4411 if test -z "$ac_cv_path_EGREP"; then
4412 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4413 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4414 { (exit 1); exit 1; }; }
4416 else
4417 ac_cv_path_EGREP=$EGREP
4422 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4423 $as_echo "$ac_cv_path_EGREP" >&6; }
4424 EGREP="$ac_cv_path_EGREP"
4427 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4428 $as_echo_n "checking for ANSI C header files... " >&6; }
4429 if test "${ac_cv_header_stdc+set}" = set; then
4430 $as_echo_n "(cached) " >&6
4431 else
4432 cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h. */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 #include <stdlib.h>
4439 #include <stdarg.h>
4440 #include <string.h>
4441 #include <float.h>
4444 main ()
4448 return 0;
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (ac_try="$ac_compile"
4453 case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456 esac
4457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4458 $as_echo "$ac_try_echo") >&5
4459 (eval "$ac_compile") 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest.$ac_objext; then
4469 ac_cv_header_stdc=yes
4470 else
4471 $as_echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 ac_cv_header_stdc=no
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 if test $ac_cv_header_stdc = yes; then
4480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4481 cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h. */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 #include <string.h>
4489 _ACEOF
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "memchr" >/dev/null 2>&1; then
4493 else
4494 ac_cv_header_stdc=no
4496 rm -f conftest*
4500 if test $ac_cv_header_stdc = yes; then
4501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4502 cat >conftest.$ac_ext <<_ACEOF
4503 /* confdefs.h. */
4504 _ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508 #include <stdlib.h>
4510 _ACEOF
4511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4512 $EGREP "free" >/dev/null 2>&1; then
4514 else
4515 ac_cv_header_stdc=no
4517 rm -f conftest*
4521 if test $ac_cv_header_stdc = yes; then
4522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4523 if test "$cross_compiling" = yes; then
4525 else
4526 cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h. */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4532 #include <ctype.h>
4533 #include <stdlib.h>
4534 #if ((' ' & 0x0FF) == 0x020)
4535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4536 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4537 #else
4538 # define ISLOWER(c) \
4539 (('a' <= (c) && (c) <= 'i') \
4540 || ('j' <= (c) && (c) <= 'r') \
4541 || ('s' <= (c) && (c) <= 'z'))
4542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4543 #endif
4545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4547 main ()
4549 int i;
4550 for (i = 0; i < 256; i++)
4551 if (XOR (islower (i), ISLOWER (i))
4552 || toupper (i) != TOUPPER (i))
4553 return 2;
4554 return 0;
4556 _ACEOF
4557 rm -f conftest$ac_exeext
4558 if { (ac_try="$ac_link"
4559 case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4562 esac
4563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4564 $as_echo "$ac_try_echo") >&5
4565 (eval "$ac_link") 2>&5
4566 ac_status=$?
4567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4569 { (case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572 esac
4573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575 (eval "$ac_try") 2>&5
4576 ac_status=$?
4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4580 else
4581 $as_echo "$as_me: program exited with status $ac_status" >&5
4582 $as_echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4585 ( exit $ac_status )
4586 ac_cv_header_stdc=no
4588 rm -rf conftest.dSYM
4589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4595 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4596 $as_echo "$ac_cv_header_stdc" >&6; }
4597 if test $ac_cv_header_stdc = yes; then
4599 cat >>confdefs.h <<\_ACEOF
4600 #define STDC_HEADERS 1
4601 _ACEOF
4605 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4615 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4616 inttypes.h stdint.h unistd.h
4618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4619 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4620 $as_echo_n "checking for $ac_header... " >&6; }
4621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4622 $as_echo_n "(cached) " >&6
4623 else
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 $ac_includes_default
4632 #include <$ac_header>
4633 _ACEOF
4634 rm -f conftest.$ac_objext
4635 if { (ac_try="$ac_compile"
4636 case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639 esac
4640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4641 $as_echo "$ac_try_echo") >&5
4642 (eval "$ac_compile") 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_c_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest.$ac_objext; then
4652 eval "$as_ac_Header=yes"
4653 else
4654 $as_echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4657 eval "$as_ac_Header=no"
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 ac_res=`eval 'as_val=${'$as_ac_Header'}
4663 $as_echo "$as_val"'`
4664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4665 $as_echo "$ac_res" >&6; }
4666 if test `eval 'as_val=${'$as_ac_Header'}
4667 $as_echo "$as_val"'` = yes; then
4668 cat >>confdefs.h <<_ACEOF
4669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4670 _ACEOF
4674 done
4678 if test "${ac_cv_header_minix_config_h+set}" = set; then
4679 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4680 $as_echo_n "checking for minix/config.h... " >&6; }
4681 if test "${ac_cv_header_minix_config_h+set}" = set; then
4682 $as_echo_n "(cached) " >&6
4684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4685 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4686 else
4687 # Is the header compilable?
4688 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4689 $as_echo_n "checking minix/config.h usability... " >&6; }
4690 cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h. */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 $ac_includes_default
4697 #include <minix/config.h>
4698 _ACEOF
4699 rm -f conftest.$ac_objext
4700 if { (ac_try="$ac_compile"
4701 case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704 esac
4705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706 $as_echo "$ac_try_echo") >&5
4707 (eval "$ac_compile") 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && {
4714 test -z "$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 } && test -s conftest.$ac_objext; then
4717 ac_header_compiler=yes
4718 else
4719 $as_echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 ac_header_compiler=no
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4727 $as_echo "$ac_header_compiler" >&6; }
4729 # Is the header present?
4730 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4731 $as_echo_n "checking minix/config.h presence... " >&6; }
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #include <minix/config.h>
4739 _ACEOF
4740 if { (ac_try="$ac_cpp conftest.$ac_ext"
4741 case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744 esac
4745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4746 $as_echo "$ac_try_echo") >&5
4747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4748 ac_status=$?
4749 grep -v '^ *+' conftest.er1 >conftest.err
4750 rm -f conftest.er1
4751 cat conftest.err >&5
4752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } >/dev/null && {
4754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4755 test ! -s conftest.err
4756 }; then
4757 ac_header_preproc=yes
4758 else
4759 $as_echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4762 ac_header_preproc=no
4765 rm -f conftest.err conftest.$ac_ext
4766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4767 $as_echo "$ac_header_preproc" >&6; }
4769 # So? What about this header?
4770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4771 yes:no: )
4772 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4773 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4774 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4775 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4776 ac_header_preproc=yes
4778 no:yes:* )
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4780 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4782 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4784 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4786 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4788 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4790 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4793 esac
4794 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4795 $as_echo_n "checking for minix/config.h... " >&6; }
4796 if test "${ac_cv_header_minix_config_h+set}" = set; then
4797 $as_echo_n "(cached) " >&6
4798 else
4799 ac_cv_header_minix_config_h=$ac_header_preproc
4801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4802 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4805 if test $ac_cv_header_minix_config_h = yes; then
4806 MINIX=yes
4807 else
4808 MINIX=
4812 if test "$MINIX" = yes; then
4814 cat >>confdefs.h <<\_ACEOF
4815 #define _POSIX_SOURCE 1
4816 _ACEOF
4819 cat >>confdefs.h <<\_ACEOF
4820 #define _POSIX_1_SOURCE 2
4821 _ACEOF
4824 cat >>confdefs.h <<\_ACEOF
4825 #define _MINIX 1
4826 _ACEOF
4832 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4833 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4834 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4835 $as_echo_n "(cached) " >&6
4836 else
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 # define __EXTENSIONS__ 1
4845 $ac_includes_default
4847 main ()
4851 return 0;
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (ac_try="$ac_compile"
4856 case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859 esac
4860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861 $as_echo "$ac_try_echo") >&5
4862 (eval "$ac_compile") 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest.$ac_objext; then
4872 ac_cv_safe_to_define___extensions__=yes
4873 else
4874 $as_echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 ac_cv_safe_to_define___extensions__=no
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4883 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4884 test $ac_cv_safe_to_define___extensions__ = yes &&
4885 cat >>confdefs.h <<\_ACEOF
4886 #define __EXTENSIONS__ 1
4887 _ACEOF
4889 cat >>confdefs.h <<\_ACEOF
4890 #define _ALL_SOURCE 1
4891 _ACEOF
4893 cat >>confdefs.h <<\_ACEOF
4894 #define _GNU_SOURCE 1
4895 _ACEOF
4897 cat >>confdefs.h <<\_ACEOF
4898 #define _POSIX_PTHREAD_SEMANTICS 1
4899 _ACEOF
4901 cat >>confdefs.h <<\_ACEOF
4902 #define _TANDEM_SOURCE 1
4903 _ACEOF
4907 ### Use -Wno-pointer-sign if the compiler supports it
4908 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4909 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4910 SAVE_CFLAGS="$CFLAGS"
4911 CFLAGS="$CFLAGS -Wno-pointer-sign"
4912 cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h. */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4920 main ()
4924 return 0;
4926 _ACEOF
4927 rm -f conftest.$ac_objext
4928 if { (ac_try="$ac_compile"
4929 case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932 esac
4933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4934 $as_echo "$ac_try_echo") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.$ac_objext; then
4945 has_option=yes
4946 else
4947 $as_echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4950 has_option=no
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 if test $has_option = yes; then
4955 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4957 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4958 $as_echo "$has_option" >&6; }
4959 CFLAGS="$SAVE_CFLAGS"
4960 unset has_option
4961 unset SAVE_CFLAGS
4963 ### Use -Wdeclaration-after-statement if the compiler supports it
4964 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4965 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4966 SAVE_CFLAGS="$CFLAGS"
4967 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4968 cat >conftest.$ac_ext <<_ACEOF
4969 /* confdefs.h. */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4976 main ()
4980 return 0;
4982 _ACEOF
4983 rm -f conftest.$ac_objext
4984 if { (ac_try="$ac_compile"
4985 case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988 esac
4989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990 $as_echo "$ac_try_echo") >&5
4991 (eval "$ac_compile") 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } && {
4998 test -z "$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 } && test -s conftest.$ac_objext; then
5001 has_option=yes
5002 else
5003 $as_echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5006 has_option=no
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 if test $has_option = yes; then
5011 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5013 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5014 $as_echo "$has_option" >&6; }
5015 CFLAGS="$SAVE_CFLAGS"
5016 unset has_option
5017 unset SAVE_CFLAGS
5019 #### Some other nice autoconf tests.
5021 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5022 $as_echo_n "checking whether ln -s works... " >&6; }
5023 LN_S=$as_ln_s
5024 if test "$LN_S" = "ln -s"; then
5025 { $as_echo "$as_me:$LINENO: result: yes" >&5
5026 $as_echo "yes" >&6; }
5027 else
5028 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5029 $as_echo "no, using $LN_S" >&6; }
5032 ac_ext=c
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5038 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5039 # On Suns, sometimes $CPP names a directory.
5040 if test -n "$CPP" && test -d "$CPP"; then
5041 CPP=
5043 if test -z "$CPP"; then
5044 if test "${ac_cv_prog_CPP+set}" = set; then
5045 $as_echo_n "(cached) " >&6
5046 else
5047 # Double quotes because CPP needs to be expanded
5048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5050 ac_preproc_ok=false
5051 for ac_c_preproc_warn_flag in '' yes
5053 # Use a header file that comes with gcc, so configuring glibc
5054 # with a fresh cross-compiler works.
5055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056 # <limits.h> exists even on freestanding compilers.
5057 # On the NeXT, cc -E runs the code through the compiler's parser,
5058 # not just through cpp. "Syntax error" is here to catch this case.
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 #ifdef __STDC__
5066 # include <limits.h>
5067 #else
5068 # include <assert.h>
5069 #endif
5070 Syntax error
5071 _ACEOF
5072 if { (ac_try="$ac_cpp conftest.$ac_ext"
5073 case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076 esac
5077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5078 $as_echo "$ac_try_echo") >&5
5079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev/null && {
5086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5087 test ! -s conftest.err
5088 }; then
5090 else
5091 $as_echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5094 # Broken: fails on valid input.
5095 continue
5098 rm -f conftest.err conftest.$ac_ext
5100 # OK, works on sane cases. Now check whether nonexistent headers
5101 # can be detected and how.
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #include <ac_nonexistent.h>
5109 _ACEOF
5110 if { (ac_try="$ac_cpp conftest.$ac_ext"
5111 case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5116 $as_echo "$ac_try_echo") >&5
5117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null && {
5124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5126 }; then
5127 # Broken: success on invalid input.
5128 continue
5129 else
5130 $as_echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 # Passes both tests.
5134 ac_preproc_ok=:
5135 break
5138 rm -f conftest.err conftest.$ac_ext
5140 done
5141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5142 rm -f conftest.err conftest.$ac_ext
5143 if $ac_preproc_ok; then
5144 break
5147 done
5148 ac_cv_prog_CPP=$CPP
5151 CPP=$ac_cv_prog_CPP
5152 else
5153 ac_cv_prog_CPP=$CPP
5155 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5156 $as_echo "$CPP" >&6; }
5157 ac_preproc_ok=false
5158 for ac_c_preproc_warn_flag in '' yes
5160 # Use a header file that comes with gcc, so configuring glibc
5161 # with a fresh cross-compiler works.
5162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5163 # <limits.h> exists even on freestanding compilers.
5164 # On the NeXT, cc -E runs the code through the compiler's parser,
5165 # not just through cpp. "Syntax error" is here to catch this case.
5166 cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h. */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 #ifdef __STDC__
5173 # include <limits.h>
5174 #else
5175 # include <assert.h>
5176 #endif
5177 Syntax error
5178 _ACEOF
5179 if { (ac_try="$ac_cpp conftest.$ac_ext"
5180 case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183 esac
5184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5185 $as_echo "$ac_try_echo") >&5
5186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } >/dev/null && {
5193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5195 }; then
5197 else
5198 $as_echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5201 # Broken: fails on valid input.
5202 continue
5205 rm -f conftest.err conftest.$ac_ext
5207 # OK, works on sane cases. Now check whether nonexistent headers
5208 # can be detected and how.
5209 cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h. */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 #include <ac_nonexistent.h>
5216 _ACEOF
5217 if { (ac_try="$ac_cpp conftest.$ac_ext"
5218 case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221 esac
5222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5223 $as_echo "$ac_try_echo") >&5
5224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5225 ac_status=$?
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
5229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev/null && {
5231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5232 test ! -s conftest.err
5233 }; then
5234 # Broken: success on invalid input.
5235 continue
5236 else
5237 $as_echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 # Passes both tests.
5241 ac_preproc_ok=:
5242 break
5245 rm -f conftest.err conftest.$ac_ext
5247 done
5248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5249 rm -f conftest.err conftest.$ac_ext
5250 if $ac_preproc_ok; then
5252 else
5253 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5254 See \`config.log' for more details." >&5
5255 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5256 See \`config.log' for more details." >&2;}
5257 { (exit 1); exit 1; }; }
5260 ac_ext=c
5261 ac_cpp='$CPP $CPPFLAGS'
5262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5266 # Find a good install program. We prefer a C program (faster),
5267 # so one script is as good as another. But avoid the broken or
5268 # incompatible versions:
5269 # SysV /etc/install, /usr/sbin/install
5270 # SunOS /usr/etc/install
5271 # IRIX /sbin/install
5272 # AIX /bin/install
5273 # AmigaOS /C/install, which installs bootblocks on floppy discs
5274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5277 # OS/2's system install, which has a completely different semantic
5278 # ./install, which can be erroneously created by make from ./install.sh.
5279 # Reject install programs that cannot install multiple files.
5280 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5281 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5282 if test -z "$INSTALL"; then
5283 if test "${ac_cv_path_install+set}" = set; then
5284 $as_echo_n "(cached) " >&6
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 # Account for people who put trailing slashes in PATH elements.
5292 case $as_dir/ in
5293 ./ | .// | /cC/* | \
5294 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5295 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5296 /usr/ucb/* ) ;;
5298 # OSF1 and SCO ODT 3.0 have their own names for install.
5299 # Don't use installbsd from OSF since it installs stuff as root
5300 # by default.
5301 for ac_prog in ginstall scoinst install; do
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5304 if test $ac_prog = install &&
5305 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5306 # AIX install. It has an incompatible calling convention.
5308 elif test $ac_prog = install &&
5309 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5310 # program-specific install script used by HP pwplus--don't use.
5312 else
5313 rm -rf conftest.one conftest.two conftest.dir
5314 echo one > conftest.one
5315 echo two > conftest.two
5316 mkdir conftest.dir
5317 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5318 test -s conftest.one && test -s conftest.two &&
5319 test -s conftest.dir/conftest.one &&
5320 test -s conftest.dir/conftest.two
5321 then
5322 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5323 break 3
5327 done
5328 done
5330 esac
5332 done
5333 IFS=$as_save_IFS
5335 rm -rf conftest.one conftest.two conftest.dir
5338 if test "${ac_cv_path_install+set}" = set; then
5339 INSTALL=$ac_cv_path_install
5340 else
5341 # As a last resort, use the slow shell script. Don't cache a
5342 # value for INSTALL within a source directory, because that will
5343 # break other packages using the cache if that directory is
5344 # removed, or if the value is a relative name.
5345 INSTALL=$ac_install_sh
5348 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5349 $as_echo "$INSTALL" >&6; }
5351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5352 # It thinks the first close brace ends the variable substitution.
5353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5357 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5359 if test "x$RANLIB" = x; then
5360 if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5362 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if test "${ac_cv_prog_RANLIB+set}" = set; then
5366 $as_echo_n "(cached) " >&6
5367 else
5368 if test -n "$RANLIB"; then
5369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5382 done
5383 done
5384 IFS=$as_save_IFS
5388 RANLIB=$ac_cv_prog_RANLIB
5389 if test -n "$RANLIB"; then
5390 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5391 $as_echo "$RANLIB" >&6; }
5392 else
5393 { $as_echo "$as_me:$LINENO: result: no" >&5
5394 $as_echo "no" >&6; }
5399 if test -z "$ac_cv_prog_RANLIB"; then
5400 ac_ct_RANLIB=$RANLIB
5401 # Extract the first word of "ranlib", so it can be a program name with args.
5402 set dummy ranlib; ac_word=$2
5403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5406 $as_echo_n "(cached) " >&6
5407 else
5408 if test -n "$ac_ct_RANLIB"; then
5409 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_ac_ct_RANLIB="ranlib"
5419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5422 done
5423 done
5424 IFS=$as_save_IFS
5428 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5429 if test -n "$ac_ct_RANLIB"; then
5430 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5431 $as_echo "$ac_ct_RANLIB" >&6; }
5432 else
5433 { $as_echo "$as_me:$LINENO: result: no" >&5
5434 $as_echo "no" >&6; }
5437 if test "x$ac_ct_RANLIB" = x; then
5438 RANLIB=":"
5439 else
5440 case $cross_compiling:$ac_tool_warned in
5441 yes:)
5442 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5443 whose name does not start with the host triplet. If you think this
5444 configuration is useful to you, please write to autoconf@gnu.org." >&5
5445 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5446 whose name does not start with the host triplet. If you think this
5447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5448 ac_tool_warned=yes ;;
5449 esac
5450 RANLIB=$ac_ct_RANLIB
5452 else
5453 RANLIB="$ac_cv_prog_RANLIB"
5458 ## Although we're running on an amd64 kernel, we're actually compiling for
5459 ## the x86 architecture. The user should probably have provided an
5460 ## explicit --build to `configure', but if everything else than the kernel
5461 ## is running in i386 mode, we can help them out.
5462 if test "$machine" = "amdx86-64"; then
5463 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5464 $as_echo_n "checking whether i386 is declared... " >&6; }
5465 if test "${ac_cv_have_decl_i386+set}" = set; then
5466 $as_echo_n "(cached) " >&6
5467 else
5468 cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h. */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 $ac_includes_default
5476 main ()
5478 #ifndef i386
5479 (void) i386;
5480 #endif
5483 return 0;
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (ac_try="$ac_compile"
5488 case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491 esac
5492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5493 $as_echo "$ac_try_echo") >&5
5494 (eval "$ac_compile") 2>conftest.er1
5495 ac_status=$?
5496 grep -v '^ *+' conftest.er1 >conftest.err
5497 rm -f conftest.er1
5498 cat conftest.err >&5
5499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } && {
5501 test -z "$ac_c_werror_flag" ||
5502 test ! -s conftest.err
5503 } && test -s conftest.$ac_objext; then
5504 ac_cv_have_decl_i386=yes
5505 else
5506 $as_echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5509 ac_cv_have_decl_i386=no
5512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5515 $as_echo "$ac_cv_have_decl_i386" >&6; }
5517 if test "$ac_cv_have_decl_i386" = "yes"; then
5518 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5519 machine=intel386
5520 machfile="m/${machine}.h"
5524 # Extract the first word of "install-info", so it can be a program name with args.
5525 set dummy install-info; ac_word=$2
5526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5529 $as_echo_n "(cached) " >&6
5530 else
5531 case $INSTALL_INFO in
5532 [\\/]* | ?:[\\/]*)
5533 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 break 2
5547 done
5548 done
5549 IFS=$as_save_IFS
5552 esac
5554 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5555 if test -n "$INSTALL_INFO"; then
5556 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5557 $as_echo "$INSTALL_INFO" >&6; }
5558 else
5559 { $as_echo "$as_me:$LINENO: result: no" >&5
5560 $as_echo "no" >&6; }
5564 # Extract the first word of "install-info", so it can be a program name with args.
5565 set dummy install-info; ac_word=$2
5566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5569 $as_echo_n "(cached) " >&6
5570 else
5571 case $INSTALL_INFO in
5572 [\\/]* | ?:[\\/]*)
5573 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in /usr/sbin
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5584 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5587 done
5588 done
5589 IFS=$as_save_IFS
5592 esac
5594 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5595 if test -n "$INSTALL_INFO"; then
5596 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5597 $as_echo "$INSTALL_INFO" >&6; }
5598 else
5599 { $as_echo "$as_me:$LINENO: result: no" >&5
5600 $as_echo "no" >&6; }
5604 # Extract the first word of "install-info", so it can be a program name with args.
5605 set dummy install-info; ac_word=$2
5606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5609 $as_echo_n "(cached) " >&6
5610 else
5611 case $INSTALL_INFO in
5612 [\\/]* | ?:[\\/]*)
5613 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in /sbin
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5624 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 break 2
5627 done
5628 done
5629 IFS=$as_save_IFS
5631 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5633 esac
5635 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5636 if test -n "$INSTALL_INFO"; then
5637 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5638 $as_echo "$INSTALL_INFO" >&6; }
5639 else
5640 { $as_echo "$as_me:$LINENO: result: no" >&5
5641 $as_echo "no" >&6; }
5645 # Extract the first word of "gzip", so it can be a program name with args.
5646 set dummy gzip; ac_word=$2
5647 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5650 $as_echo_n "(cached) " >&6
5651 else
5652 case $GZIP_PROG in
5653 [\\/]* | ?:[\\/]*)
5654 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5668 done
5669 done
5670 IFS=$as_save_IFS
5673 esac
5675 GZIP_PROG=$ac_cv_path_GZIP_PROG
5676 if test -n "$GZIP_PROG"; then
5677 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5678 $as_echo "$GZIP_PROG" >&6; }
5679 else
5680 { $as_echo "$as_me:$LINENO: result: no" >&5
5681 $as_echo "no" >&6; }
5687 ## Need makeinfo >= 4.6 (?) to build the manuals.
5688 # Extract the first word of "makeinfo", so it can be a program name with args.
5689 set dummy makeinfo; ac_word=$2
5690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5693 $as_echo_n "(cached) " >&6
5694 else
5695 case $MAKEINFO in
5696 [\\/]* | ?:[\\/]*)
5697 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 break 2
5711 done
5712 done
5713 IFS=$as_save_IFS
5715 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5717 esac
5719 MAKEINFO=$ac_cv_path_MAKEINFO
5720 if test -n "$MAKEINFO"; then
5721 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5722 $as_echo "$MAKEINFO" >&6; }
5723 else
5724 { $as_echo "$as_me:$LINENO: result: no" >&5
5725 $as_echo "no" >&6; }
5729 if test "$MAKEINFO" != "no" && \
5730 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
5731 MAKEINFO=no
5734 ## Makeinfo is unusual. For a released Emacs, the manuals are
5735 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5736 ## therefore in the category of "special tools" not normally required, which
5737 ## configure does not have to check for (eg autoconf itself).
5738 ## In a Bazaar checkout on the other hand, the manuals are not included.
5739 ## So makeinfo is a requirement to build from Bazaar, and configure
5740 ## should test for it as it does for any other build requirement.
5741 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5742 ## with pre-built manuals, from a Bazaar checkout.
5743 if test "$MAKEINFO" = "no"; then
5744 if test "x${with_makeinfo}" = "xno"; then
5745 MAKEINFO=off
5746 elif test ! -e $srcdir/info/emacs; then
5747 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5748 source tree does not seem to have pre-built manuals in the \`info' directory.
5749 Either install a suitable version of makeinfo, or re-run configure
5750 with the \`--without-makeinfo' option to build without the manuals. " >&5
5751 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5752 source tree does not seem to have pre-built manuals in the \`info' directory.
5753 Either install a suitable version of makeinfo, or re-run configure
5754 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5755 { (exit 1); exit 1; }; }
5760 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5761 then
5762 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5765 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5766 then
5767 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5771 late_LDFLAGS=$LDFLAGS
5772 if test "$GCC" = yes; then
5773 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5774 else
5775 LDFLAGS="$LDFLAGS -znocombreloc"
5778 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5779 $as_echo_n "checking for -znocombreloc... " >&6; }
5780 cat >conftest.$ac_ext <<_ACEOF
5781 main(){return 0;}
5782 _ACEOF
5783 rm -f conftest.$ac_objext conftest$ac_exeext
5784 if { (ac_try="$ac_link"
5785 case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788 esac
5789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5790 $as_echo "$ac_try_echo") >&5
5791 (eval "$ac_link") 2>conftest.er1
5792 ac_status=$?
5793 grep -v '^ *+' conftest.er1 >conftest.err
5794 rm -f conftest.er1
5795 cat conftest.err >&5
5796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } && {
5798 test -z "$ac_c_werror_flag" ||
5799 test ! -s conftest.err
5800 } && test -s conftest$ac_exeext && {
5801 test "$cross_compiling" = yes ||
5802 $as_test_x conftest$ac_exeext
5803 }; then
5804 { $as_echo "$as_me:$LINENO: result: yes" >&5
5805 $as_echo "yes" >&6; }
5806 else
5807 $as_echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5810 LDFLAGS=$late_LDFLAGS
5811 { $as_echo "$as_me:$LINENO: result: no" >&5
5812 $as_echo "no" >&6; }
5815 rm -rf conftest.dSYM
5816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5817 conftest$ac_exeext conftest.$ac_ext
5819 LIB_MATH=-lm
5821 case $opsys in
5822 cygwin )
5823 LIB_MATH=
5825 darwin )
5826 ## Adding -lm confuses the dynamic linker, so omit it.
5827 LIB_MATH=
5829 esac
5833 #### Extract some information from the operating system and machine files.
5835 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5836 - which libraries the lib-src programs will want, and
5837 - whether the GNU malloc routines are usable..." >&5
5838 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5839 - which libraries the lib-src programs will want, and
5840 - whether the GNU malloc routines are usable..." >&6;}
5842 ### First figure out CFLAGS (which we use for running the compiler here)
5843 ### and REAL_CFLAGS (which we use for real compilation).
5844 ### The two are the same except on a few systems, where they are made
5845 ### different to work around various lossages. For example,
5846 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5847 ### as implying static linking.
5849 ### If the CFLAGS env var is specified, we use that value
5850 ### instead of the default.
5852 ### It's not important that this name contain the PID; you can't run
5853 ### two configures in the same directory and have anything work
5854 ### anyway.
5855 tempcname="conftest.c"
5857 echo '
5858 #include "'${srcdir}'/src/'${opsysfile}'"
5859 #include "'${srcdir}'/src/'${machfile}'"
5860 #ifndef LIBS_SYSTEM
5861 #define LIBS_SYSTEM
5862 #endif
5863 #ifndef C_SWITCH_SYSTEM
5864 #define C_SWITCH_SYSTEM
5865 #endif
5866 #ifndef C_SWITCH_MACHINE
5867 #define C_SWITCH_MACHINE
5868 #endif
5869 configure___ libsrc_libs=LIBS_SYSTEM
5870 configure___ c_switch_system=C_SWITCH_SYSTEM
5871 configure___ c_switch_machine=C_SWITCH_MACHINE
5873 configure___ LIBX=-lX11
5875 configure___ unexec=UNEXEC
5877 #ifdef SYSTEM_MALLOC
5878 configure___ system_malloc=yes
5879 #else
5880 configure___ system_malloc=no
5881 #endif
5883 #ifdef USE_MMAP_FOR_BUFFERS
5884 configure___ use_mmap_for_buffers=yes
5885 #else
5886 configure___ use_mmap_for_buffers=no
5887 #endif
5889 #ifndef C_OPTIMIZE_SWITCH
5890 #ifdef __GNUC__
5891 #define C_OPTIMIZE_SWITCH -O2
5892 #else
5893 #define C_OPTIMIZE_SWITCH -O
5894 #endif
5895 #endif
5897 #ifndef C_WARNINGS_SWITCH
5898 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5899 #endif
5901 #ifndef LD_SWITCH_MACHINE
5902 #define LD_SWITCH_MACHINE
5903 #endif
5905 #ifndef LD_SWITCH_SYSTEM
5906 #define LD_SWITCH_SYSTEM
5907 #endif
5909 #ifndef LD_SWITCH_X_SITE_AUX
5910 #define LD_SWITCH_X_SITE_AUX
5911 #endif
5913 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5914 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5916 #ifdef THIS_IS_CONFIGURE
5918 /* Get the CFLAGS for tests in configure. */
5919 #ifdef __GNUC__
5920 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5921 #else
5922 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5923 #endif
5925 #else /* not THIS_IS_CONFIGURE */
5927 /* Get the CFLAGS for real compilation. */
5928 #ifdef __GNUC__
5929 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5930 #else
5931 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5932 #endif
5934 #endif /* not THIS_IS_CONFIGURE */
5935 ' > ${tempcname}
5937 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5939 # The value of CPP is a quoted variable reference, so we need to do this
5940 # to get its actual value...
5941 CPP=`eval "echo $CPP"`
5942 eval `${CPP} -Isrc ${tempcname} \
5943 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5944 if test "x$SPECIFIED_CFLAGS" = x; then
5945 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5946 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5947 else
5948 REAL_CFLAGS="$CFLAGS"
5950 rm ${tempcname}
5952 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5954 ### Make sure subsequent tests use flags consistent with the build flags.
5956 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5957 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5958 else
5959 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5964 # Check whether --enable-largefile was given.
5965 if test "${enable_largefile+set}" = set; then
5966 enableval=$enable_largefile;
5969 if test "$enable_largefile" != no; then
5971 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5972 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5973 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5974 $as_echo_n "(cached) " >&6
5975 else
5976 ac_cv_sys_largefile_CC=no
5977 if test "$GCC" != yes; then
5978 ac_save_CC=$CC
5979 while :; do
5980 # IRIX 6.2 and later do not support large files by default,
5981 # so use the C compiler's -n32 option if that helps.
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 #include <sys/types.h>
5989 /* Check that off_t can represent 2**63 - 1 correctly.
5990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5991 since some C++ compilers masquerading as C compilers
5992 incorrectly reject 9223372036854775807. */
5993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5995 && LARGE_OFF_T % 2147483647 == 1)
5996 ? 1 : -1];
5998 main ()
6002 return 0;
6004 _ACEOF
6005 rm -f conftest.$ac_objext
6006 if { (ac_try="$ac_compile"
6007 case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010 esac
6011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6012 $as_echo "$ac_try_echo") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } && {
6020 test -z "$ac_c_werror_flag" ||
6021 test ! -s conftest.err
6022 } && test -s conftest.$ac_objext; then
6023 break
6024 else
6025 $as_echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6031 rm -f core conftest.err conftest.$ac_objext
6032 CC="$CC -n32"
6033 rm -f conftest.$ac_objext
6034 if { (ac_try="$ac_compile"
6035 case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038 esac
6039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6040 $as_echo "$ac_try_echo") >&5
6041 (eval "$ac_compile") 2>conftest.er1
6042 ac_status=$?
6043 grep -v '^ *+' conftest.er1 >conftest.err
6044 rm -f conftest.er1
6045 cat conftest.err >&5
6046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } && {
6048 test -z "$ac_c_werror_flag" ||
6049 test ! -s conftest.err
6050 } && test -s conftest.$ac_objext; then
6051 ac_cv_sys_largefile_CC=' -n32'; break
6052 else
6053 $as_echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6059 rm -f core conftest.err conftest.$ac_objext
6060 break
6061 done
6062 CC=$ac_save_CC
6063 rm -f conftest.$ac_ext
6066 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6067 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6068 if test "$ac_cv_sys_largefile_CC" != no; then
6069 CC=$CC$ac_cv_sys_largefile_CC
6072 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6073 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6074 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6075 $as_echo_n "(cached) " >&6
6076 else
6077 while :; do
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h. */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6084 #include <sys/types.h>
6085 /* Check that off_t can represent 2**63 - 1 correctly.
6086 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6087 since some C++ compilers masquerading as C compilers
6088 incorrectly reject 9223372036854775807. */
6089 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6091 && LARGE_OFF_T % 2147483647 == 1)
6092 ? 1 : -1];
6094 main ()
6098 return 0;
6100 _ACEOF
6101 rm -f conftest.$ac_objext
6102 if { (ac_try="$ac_compile"
6103 case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106 esac
6107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6108 $as_echo "$ac_try_echo") >&5
6109 (eval "$ac_compile") 2>conftest.er1
6110 ac_status=$?
6111 grep -v '^ *+' conftest.er1 >conftest.err
6112 rm -f conftest.er1
6113 cat conftest.err >&5
6114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } && {
6116 test -z "$ac_c_werror_flag" ||
6117 test ! -s conftest.err
6118 } && test -s conftest.$ac_objext; then
6119 ac_cv_sys_file_offset_bits=no; break
6120 else
6121 $as_echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128 cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h. */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 #define _FILE_OFFSET_BITS 64
6135 #include <sys/types.h>
6136 /* Check that off_t can represent 2**63 - 1 correctly.
6137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6138 since some C++ compilers masquerading as C compilers
6139 incorrectly reject 9223372036854775807. */
6140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6142 && LARGE_OFF_T % 2147483647 == 1)
6143 ? 1 : -1];
6145 main ()
6149 return 0;
6151 _ACEOF
6152 rm -f conftest.$ac_objext
6153 if { (ac_try="$ac_compile"
6154 case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157 esac
6158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6159 $as_echo "$ac_try_echo") >&5
6160 (eval "$ac_compile") 2>conftest.er1
6161 ac_status=$?
6162 grep -v '^ *+' conftest.er1 >conftest.err
6163 rm -f conftest.er1
6164 cat conftest.err >&5
6165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } && {
6167 test -z "$ac_c_werror_flag" ||
6168 test ! -s conftest.err
6169 } && test -s conftest.$ac_objext; then
6170 ac_cv_sys_file_offset_bits=64; break
6171 else
6172 $as_echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 ac_cv_sys_file_offset_bits=unknown
6180 break
6181 done
6183 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6184 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6185 case $ac_cv_sys_file_offset_bits in #(
6186 no | unknown) ;;
6188 cat >>confdefs.h <<_ACEOF
6189 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6190 _ACEOF
6192 esac
6193 rm -rf conftest*
6194 if test $ac_cv_sys_file_offset_bits = unknown; then
6195 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6196 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6197 if test "${ac_cv_sys_large_files+set}" = set; then
6198 $as_echo_n "(cached) " >&6
6199 else
6200 while :; do
6201 cat >conftest.$ac_ext <<_ACEOF
6202 /* confdefs.h. */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6207 #include <sys/types.h>
6208 /* Check that off_t can represent 2**63 - 1 correctly.
6209 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6210 since some C++ compilers masquerading as C compilers
6211 incorrectly reject 9223372036854775807. */
6212 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6213 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6214 && LARGE_OFF_T % 2147483647 == 1)
6215 ? 1 : -1];
6217 main ()
6221 return 0;
6223 _ACEOF
6224 rm -f conftest.$ac_objext
6225 if { (ac_try="$ac_compile"
6226 case "(($ac_try" in
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6229 esac
6230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6231 $as_echo "$ac_try_echo") >&5
6232 (eval "$ac_compile") 2>conftest.er1
6233 ac_status=$?
6234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
6237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } && {
6239 test -z "$ac_c_werror_flag" ||
6240 test ! -s conftest.err
6241 } && test -s conftest.$ac_objext; then
6242 ac_cv_sys_large_files=no; break
6243 else
6244 $as_echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251 cat >conftest.$ac_ext <<_ACEOF
6252 /* confdefs.h. */
6253 _ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 #define _LARGE_FILES 1
6258 #include <sys/types.h>
6259 /* Check that off_t can represent 2**63 - 1 correctly.
6260 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6261 since some C++ compilers masquerading as C compilers
6262 incorrectly reject 9223372036854775807. */
6263 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6264 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6265 && LARGE_OFF_T % 2147483647 == 1)
6266 ? 1 : -1];
6268 main ()
6272 return 0;
6274 _ACEOF
6275 rm -f conftest.$ac_objext
6276 if { (ac_try="$ac_compile"
6277 case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280 esac
6281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6282 $as_echo "$ac_try_echo") >&5
6283 (eval "$ac_compile") 2>conftest.er1
6284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } && {
6290 test -z "$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 } && test -s conftest.$ac_objext; then
6293 ac_cv_sys_large_files=1; break
6294 else
6295 $as_echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302 ac_cv_sys_large_files=unknown
6303 break
6304 done
6306 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6307 $as_echo "$ac_cv_sys_large_files" >&6; }
6308 case $ac_cv_sys_large_files in #(
6309 no | unknown) ;;
6311 cat >>confdefs.h <<_ACEOF
6312 #define _LARGE_FILES $ac_cv_sys_large_files
6313 _ACEOF
6315 esac
6316 rm -rf conftest*
6322 ## If user specified a crt-dir, use that unconditionally.
6323 if test "X$CRT_DIR" = "X"; then
6325 case "$canonical" in
6326 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6327 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6328 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6329 ## For anything else (eg /usr/lib32), it is up the user to specify
6330 ## the location (bug#5655).
6331 ## Test for crtn.o, not just the directory, because sometimes the
6332 ## directory exists but does not have the relevant files (bug#1287).
6333 ## FIXME better to test for binary compatibility somehow.
6334 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6337 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6338 esac
6340 case "$opsys" in
6341 hpux10-20) CRT_DIR=/lib ;;
6342 esac
6344 ## Default is /usr/lib.
6345 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6347 else
6349 ## Some platforms don't use any of these files, so it is not
6350 ## appropriate to put this test outside the if block.
6351 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6352 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6353 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6354 { (exit 1); exit 1; }; }
6364 if test "${with_sound}" != "no"; then
6365 # Sound support for GNU/Linux and the free BSDs.
6369 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6373 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6374 $as_echo_n "checking for $ac_header... " >&6; }
6375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6376 $as_echo_n "(cached) " >&6
6378 ac_res=`eval 'as_val=${'$as_ac_Header'}
6379 $as_echo "$as_val"'`
6380 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6381 $as_echo "$ac_res" >&6; }
6382 else
6383 # Is the header compilable?
6384 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6385 $as_echo_n "checking $ac_header usability... " >&6; }
6386 cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h. */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 $ac_includes_default
6393 #include <$ac_header>
6394 _ACEOF
6395 rm -f conftest.$ac_objext
6396 if { (ac_try="$ac_compile"
6397 case "(($ac_try" in
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6400 esac
6401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6402 $as_echo "$ac_try_echo") >&5
6403 (eval "$ac_compile") 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } && {
6410 test -z "$ac_c_werror_flag" ||
6411 test ! -s conftest.err
6412 } && test -s conftest.$ac_objext; then
6413 ac_header_compiler=yes
6414 else
6415 $as_echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6418 ac_header_compiler=no
6421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6423 $as_echo "$ac_header_compiler" >&6; }
6425 # Is the header present?
6426 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6427 $as_echo_n "checking $ac_header presence... " >&6; }
6428 cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h. */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 #include <$ac_header>
6435 _ACEOF
6436 if { (ac_try="$ac_cpp conftest.$ac_ext"
6437 case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440 esac
6441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6442 $as_echo "$ac_try_echo") >&5
6443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } >/dev/null && {
6450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6451 test ! -s conftest.err
6452 }; then
6453 ac_header_preproc=yes
6454 else
6455 $as_echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6458 ac_header_preproc=no
6461 rm -f conftest.err conftest.$ac_ext
6462 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6463 $as_echo "$ac_header_preproc" >&6; }
6465 # So? What about this header?
6466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6467 yes:no: )
6468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6469 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6471 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6472 ac_header_preproc=yes
6474 no:yes:* )
6475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6476 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6478 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6480 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6482 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6484 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6486 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6489 esac
6490 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6491 $as_echo_n "checking for $ac_header... " >&6; }
6492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6493 $as_echo_n "(cached) " >&6
6494 else
6495 eval "$as_ac_Header=\$ac_header_preproc"
6497 ac_res=`eval 'as_val=${'$as_ac_Header'}
6498 $as_echo "$as_val"'`
6499 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6500 $as_echo "$ac_res" >&6; }
6503 if test `eval 'as_val=${'$as_ac_Header'}
6504 $as_echo "$as_val"'` = yes; then
6505 cat >>confdefs.h <<_ACEOF
6506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6507 _ACEOF
6511 done
6513 # Emulation library used on NetBSD.
6514 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6515 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6516 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6517 $as_echo_n "(cached) " >&6
6518 else
6519 ac_check_lib_save_LIBS=$LIBS
6520 LIBS="-lossaudio $LIBS"
6521 cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h. */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6528 /* Override any GCC internal prototype to avoid an error.
6529 Use char because int might match the return type of a GCC
6530 builtin and then its argument prototype would still apply. */
6531 #ifdef __cplusplus
6532 extern "C"
6533 #endif
6534 char _oss_ioctl ();
6536 main ()
6538 return _oss_ioctl ();
6540 return 0;
6542 _ACEOF
6543 rm -f conftest.$ac_objext conftest$ac_exeext
6544 if { (ac_try="$ac_link"
6545 case "(($ac_try" in
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6548 esac
6549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6550 $as_echo "$ac_try_echo") >&5
6551 (eval "$ac_link") 2>conftest.er1
6552 ac_status=$?
6553 grep -v '^ *+' conftest.er1 >conftest.err
6554 rm -f conftest.er1
6555 cat conftest.err >&5
6556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } && {
6558 test -z "$ac_c_werror_flag" ||
6559 test ! -s conftest.err
6560 } && test -s conftest$ac_exeext && {
6561 test "$cross_compiling" = yes ||
6562 $as_test_x conftest$ac_exeext
6563 }; then
6564 ac_cv_lib_ossaudio__oss_ioctl=yes
6565 else
6566 $as_echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6569 ac_cv_lib_ossaudio__oss_ioctl=no
6572 rm -rf conftest.dSYM
6573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6574 conftest$ac_exeext conftest.$ac_ext
6575 LIBS=$ac_check_lib_save_LIBS
6577 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6578 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6579 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6580 LIBSOUND=-lossaudio
6581 else
6582 LIBSOUND=
6587 ALSA_REQUIRED=1.0.0
6588 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6590 succeeded=no
6592 # Extract the first word of "pkg-config", so it can be a program name with args.
6593 set dummy pkg-config; ac_word=$2
6594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 $as_echo_n "checking for $ac_word... " >&6; }
6596 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6597 $as_echo_n "(cached) " >&6
6598 else
6599 case $PKG_CONFIG in
6600 [\\/]* | ?:[\\/]*)
6601 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6612 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6615 done
6616 done
6617 IFS=$as_save_IFS
6619 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6621 esac
6623 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6624 if test -n "$PKG_CONFIG"; then
6625 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6626 $as_echo "$PKG_CONFIG" >&6; }
6627 else
6628 { $as_echo "$as_me:$LINENO: result: no" >&5
6629 $as_echo "no" >&6; }
6634 if test "$PKG_CONFIG" = "no" ; then
6635 HAVE_ALSA=no
6636 else
6637 PKG_CONFIG_MIN_VERSION=0.9.0
6638 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6639 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6640 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6642 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6643 { $as_echo "$as_me:$LINENO: result: yes" >&5
6644 $as_echo "yes" >&6; }
6645 succeeded=yes
6647 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6648 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6649 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6650 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6651 $as_echo "$ALSA_CFLAGS" >&6; }
6653 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6654 $as_echo_n "checking ALSA_LIBS... " >&6; }
6655 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6656 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6657 $as_echo "$ALSA_LIBS" >&6; }
6658 else
6659 { $as_echo "$as_me:$LINENO: result: no" >&5
6660 $as_echo "no" >&6; }
6661 ALSA_CFLAGS=""
6662 ALSA_LIBS=""
6663 ## If we have a custom action on failure, don't print errors, but
6664 ## do set a variable so people can do so.
6665 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6671 else
6672 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6673 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6677 if test $succeeded = yes; then
6678 HAVE_ALSA=yes
6679 else
6680 HAVE_ALSA=no
6683 if test $HAVE_ALSA = yes; then
6684 SAVE_CFLAGS="$CFLAGS"
6685 SAVE_LDFLAGS="$LDFLAGS"
6686 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6687 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6688 cat >conftest.$ac_ext <<_ACEOF
6689 /* confdefs.h. */
6690 _ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6694 #include <asoundlib.h>
6696 main ()
6698 snd_lib_error_set_handler (0);
6700 return 0;
6702 _ACEOF
6703 rm -f conftest.$ac_objext
6704 if { (ac_try="$ac_compile"
6705 case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6708 esac
6709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6710 $as_echo "$ac_try_echo") >&5
6711 (eval "$ac_compile") 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
6716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } && {
6718 test -z "$ac_c_werror_flag" ||
6719 test ! -s conftest.err
6720 } && test -s conftest.$ac_objext; then
6721 emacs_alsa_normal=yes
6722 else
6723 $as_echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 emacs_alsa_normal=no
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 if test "$emacs_alsa_normal" != yes; then
6731 cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h. */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 #include <alsa/asoundlib.h>
6739 main ()
6741 snd_lib_error_set_handler (0);
6743 return 0;
6745 _ACEOF
6746 rm -f conftest.$ac_objext
6747 if { (ac_try="$ac_compile"
6748 case "(($ac_try" in
6749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6750 *) ac_try_echo=$ac_try;;
6751 esac
6752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6753 $as_echo "$ac_try_echo") >&5
6754 (eval "$ac_compile") 2>conftest.er1
6755 ac_status=$?
6756 grep -v '^ *+' conftest.er1 >conftest.err
6757 rm -f conftest.er1
6758 cat conftest.err >&5
6759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } && {
6761 test -z "$ac_c_werror_flag" ||
6762 test ! -s conftest.err
6763 } && test -s conftest.$ac_objext; then
6764 emacs_alsa_subdir=yes
6765 else
6766 $as_echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6769 emacs_alsa_subdir=no
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 if test "$emacs_alsa_subdir" != yes; then
6774 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6775 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6776 { (exit 1); exit 1; }; }
6778 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6781 CFLAGS="$SAVE_CFLAGS"
6782 LDFLAGS="$SAVE_LDFLAGS"
6783 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6784 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6786 cat >>confdefs.h <<\_ACEOF
6787 #define HAVE_ALSA 1
6788 _ACEOF
6819 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6820 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6821 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6822 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6823 sys/utsname.h pwd.h utmp.h
6825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6827 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6828 $as_echo_n "checking for $ac_header... " >&6; }
6829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6830 $as_echo_n "(cached) " >&6
6832 ac_res=`eval 'as_val=${'$as_ac_Header'}
6833 $as_echo "$as_val"'`
6834 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6835 $as_echo "$ac_res" >&6; }
6836 else
6837 # Is the header compilable?
6838 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6839 $as_echo_n "checking $ac_header usability... " >&6; }
6840 cat >conftest.$ac_ext <<_ACEOF
6841 /* confdefs.h. */
6842 _ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6846 $ac_includes_default
6847 #include <$ac_header>
6848 _ACEOF
6849 rm -f conftest.$ac_objext
6850 if { (ac_try="$ac_compile"
6851 case "(($ac_try" in
6852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6853 *) ac_try_echo=$ac_try;;
6854 esac
6855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6856 $as_echo "$ac_try_echo") >&5
6857 (eval "$ac_compile") 2>conftest.er1
6858 ac_status=$?
6859 grep -v '^ *+' conftest.er1 >conftest.err
6860 rm -f conftest.er1
6861 cat conftest.err >&5
6862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } && {
6864 test -z "$ac_c_werror_flag" ||
6865 test ! -s conftest.err
6866 } && test -s conftest.$ac_objext; then
6867 ac_header_compiler=yes
6868 else
6869 $as_echo "$as_me: failed program was:" >&5
6870 sed 's/^/| /' conftest.$ac_ext >&5
6872 ac_header_compiler=no
6875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6876 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6877 $as_echo "$ac_header_compiler" >&6; }
6879 # Is the header present?
6880 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6881 $as_echo_n "checking $ac_header presence... " >&6; }
6882 cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h. */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6888 #include <$ac_header>
6889 _ACEOF
6890 if { (ac_try="$ac_cpp conftest.$ac_ext"
6891 case "(($ac_try" in
6892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6893 *) ac_try_echo=$ac_try;;
6894 esac
6895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6896 $as_echo "$ac_try_echo") >&5
6897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6898 ac_status=$?
6899 grep -v '^ *+' conftest.er1 >conftest.err
6900 rm -f conftest.er1
6901 cat conftest.err >&5
6902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } >/dev/null && {
6904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6905 test ! -s conftest.err
6906 }; then
6907 ac_header_preproc=yes
6908 else
6909 $as_echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6912 ac_header_preproc=no
6915 rm -f conftest.err conftest.$ac_ext
6916 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6917 $as_echo "$ac_header_preproc" >&6; }
6919 # So? What about this header?
6920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6921 yes:no: )
6922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6923 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6925 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6926 ac_header_preproc=yes
6928 no:yes:* )
6929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6930 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6932 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6934 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6936 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6938 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6940 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6943 esac
6944 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6945 $as_echo_n "checking for $ac_header... " >&6; }
6946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6947 $as_echo_n "(cached) " >&6
6948 else
6949 eval "$as_ac_Header=\$ac_header_preproc"
6951 ac_res=`eval 'as_val=${'$as_ac_Header'}
6952 $as_echo "$as_val"'`
6953 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6954 $as_echo "$ac_res" >&6; }
6957 if test `eval 'as_val=${'$as_ac_Header'}
6958 $as_echo "$as_val"'` = yes; then
6959 cat >>confdefs.h <<_ACEOF
6960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6961 _ACEOF
6965 done
6968 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6969 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6970 cat >conftest.$ac_ext <<_ACEOF
6971 /* confdefs.h. */
6972 _ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 #include <sys/personality.h>
6978 main ()
6980 personality (PER_LINUX32)
6982 return 0;
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 emacs_cv_personality_linux32=yes
7004 else
7005 $as_echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7008 emacs_cv_personality_linux32=no
7011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7013 $as_echo "$emacs_cv_personality_linux32" >&6; }
7015 if test $emacs_cv_personality_linux32 = yes; then
7017 cat >>confdefs.h <<\_ACEOF
7018 #define HAVE_PERSONALITY_LINUX32 1
7019 _ACEOF
7024 for ac_header in term.h
7026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7028 $as_echo_n "checking for $ac_header... " >&6; }
7029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7030 $as_echo_n "(cached) " >&6
7031 else
7032 cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h. */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 #include <$ac_header>
7039 _ACEOF
7040 if { (ac_try="$ac_cpp conftest.$ac_ext"
7041 case "(($ac_try" in
7042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7044 esac
7045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7046 $as_echo "$ac_try_echo") >&5
7047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } >/dev/null && {
7054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7056 }; then
7057 eval "$as_ac_Header=yes"
7058 else
7059 $as_echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7062 eval "$as_ac_Header=no"
7065 rm -f conftest.err conftest.$ac_ext
7067 ac_res=`eval 'as_val=${'$as_ac_Header'}
7068 $as_echo "$as_val"'`
7069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7070 $as_echo "$ac_res" >&6; }
7071 if test `eval 'as_val=${'$as_ac_Header'}
7072 $as_echo "$as_val"'` = yes; then
7073 cat >>confdefs.h <<_ACEOF
7074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7075 _ACEOF
7079 done
7081 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7082 $as_echo_n "checking for ANSI C header files... " >&6; }
7083 if test "${ac_cv_header_stdc+set}" = set; then
7084 $as_echo_n "(cached) " >&6
7085 else
7086 cat >conftest.$ac_ext <<_ACEOF
7087 /* confdefs.h. */
7088 _ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 #include <stdlib.h>
7093 #include <stdarg.h>
7094 #include <string.h>
7095 #include <float.h>
7098 main ()
7102 return 0;
7104 _ACEOF
7105 rm -f conftest.$ac_objext
7106 if { (ac_try="$ac_compile"
7107 case "(($ac_try" in
7108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7109 *) ac_try_echo=$ac_try;;
7110 esac
7111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7112 $as_echo "$ac_try_echo") >&5
7113 (eval "$ac_compile") 2>conftest.er1
7114 ac_status=$?
7115 grep -v '^ *+' conftest.er1 >conftest.err
7116 rm -f conftest.er1
7117 cat conftest.err >&5
7118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } && {
7120 test -z "$ac_c_werror_flag" ||
7121 test ! -s conftest.err
7122 } && test -s conftest.$ac_objext; then
7123 ac_cv_header_stdc=yes
7124 else
7125 $as_echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.$ac_ext >&5
7128 ac_cv_header_stdc=no
7131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 if test $ac_cv_header_stdc = yes; then
7134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7135 cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h. */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7141 #include <string.h>
7143 _ACEOF
7144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7145 $EGREP "memchr" >/dev/null 2>&1; then
7147 else
7148 ac_cv_header_stdc=no
7150 rm -f conftest*
7154 if test $ac_cv_header_stdc = yes; then
7155 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7156 cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 #include <stdlib.h>
7164 _ACEOF
7165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7166 $EGREP "free" >/dev/null 2>&1; then
7168 else
7169 ac_cv_header_stdc=no
7171 rm -f conftest*
7175 if test $ac_cv_header_stdc = yes; then
7176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7177 if test "$cross_compiling" = yes; then
7179 else
7180 cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h. */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 #include <ctype.h>
7187 #include <stdlib.h>
7188 #if ((' ' & 0x0FF) == 0x020)
7189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7191 #else
7192 # define ISLOWER(c) \
7193 (('a' <= (c) && (c) <= 'i') \
7194 || ('j' <= (c) && (c) <= 'r') \
7195 || ('s' <= (c) && (c) <= 'z'))
7196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7197 #endif
7199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7201 main ()
7203 int i;
7204 for (i = 0; i < 256; i++)
7205 if (XOR (islower (i), ISLOWER (i))
7206 || toupper (i) != TOUPPER (i))
7207 return 2;
7208 return 0;
7210 _ACEOF
7211 rm -f conftest$ac_exeext
7212 if { (ac_try="$ac_link"
7213 case "(($ac_try" in
7214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7215 *) ac_try_echo=$ac_try;;
7216 esac
7217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7218 $as_echo "$ac_try_echo") >&5
7219 (eval "$ac_link") 2>&5
7220 ac_status=$?
7221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7223 { (case "(($ac_try" in
7224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7226 esac
7227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7228 $as_echo "$ac_try_echo") >&5
7229 (eval "$ac_try") 2>&5
7230 ac_status=$?
7231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7234 else
7235 $as_echo "$as_me: program exited with status $ac_status" >&5
7236 $as_echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7239 ( exit $ac_status )
7240 ac_cv_header_stdc=no
7242 rm -rf conftest.dSYM
7243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7249 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7250 $as_echo "$ac_cv_header_stdc" >&6; }
7251 if test $ac_cv_header_stdc = yes; then
7253 cat >>confdefs.h <<\_ACEOF
7254 #define STDC_HEADERS 1
7255 _ACEOF
7259 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7260 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7261 if test "${ac_cv_header_time+set}" = set; then
7262 $as_echo_n "(cached) " >&6
7263 else
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h. */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 #include <sys/types.h>
7271 #include <sys/time.h>
7272 #include <time.h>
7275 main ()
7277 if ((struct tm *) 0)
7278 return 0;
7280 return 0;
7282 _ACEOF
7283 rm -f conftest.$ac_objext
7284 if { (ac_try="$ac_compile"
7285 case "(($ac_try" in
7286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287 *) ac_try_echo=$ac_try;;
7288 esac
7289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7290 $as_echo "$ac_try_echo") >&5
7291 (eval "$ac_compile") 2>conftest.er1
7292 ac_status=$?
7293 grep -v '^ *+' conftest.er1 >conftest.err
7294 rm -f conftest.er1
7295 cat conftest.err >&5
7296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } && {
7298 test -z "$ac_c_werror_flag" ||
7299 test ! -s conftest.err
7300 } && test -s conftest.$ac_objext; then
7301 ac_cv_header_time=yes
7302 else
7303 $as_echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7306 ac_cv_header_time=no
7309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7312 $as_echo "$ac_cv_header_time" >&6; }
7313 if test $ac_cv_header_time = yes; then
7315 cat >>confdefs.h <<\_ACEOF
7316 #define TIME_WITH_SYS_TIME 1
7317 _ACEOF
7321 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7322 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7323 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7324 $as_echo_n "(cached) " >&6
7325 else
7326 cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h. */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7332 $ac_includes_default
7334 main ()
7336 #ifndef sys_siglist
7337 (void) sys_siglist;
7338 #endif
7341 return 0;
7343 _ACEOF
7344 rm -f conftest.$ac_objext
7345 if { (ac_try="$ac_compile"
7346 case "(($ac_try" in
7347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348 *) ac_try_echo=$ac_try;;
7349 esac
7350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7351 $as_echo "$ac_try_echo") >&5
7352 (eval "$ac_compile") 2>conftest.er1
7353 ac_status=$?
7354 grep -v '^ *+' conftest.er1 >conftest.err
7355 rm -f conftest.er1
7356 cat conftest.err >&5
7357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && {
7359 test -z "$ac_c_werror_flag" ||
7360 test ! -s conftest.err
7361 } && test -s conftest.$ac_objext; then
7362 ac_cv_have_decl_sys_siglist=yes
7363 else
7364 $as_echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.$ac_ext >&5
7367 ac_cv_have_decl_sys_siglist=no
7370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7373 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7374 if test $ac_cv_have_decl_sys_siglist = yes; then
7376 cat >>confdefs.h <<_ACEOF
7377 #define HAVE_DECL_SYS_SIGLIST 1
7378 _ACEOF
7381 else
7382 cat >>confdefs.h <<_ACEOF
7383 #define HAVE_DECL_SYS_SIGLIST 0
7384 _ACEOF
7390 if test $ac_cv_have_decl_sys_siglist != yes; then
7391 # For Tru64, at least:
7392 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7393 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7394 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7395 $as_echo_n "(cached) " >&6
7396 else
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7405 main ()
7407 #ifndef __sys_siglist
7408 (void) __sys_siglist;
7409 #endif
7412 return 0;
7414 _ACEOF
7415 rm -f conftest.$ac_objext
7416 if { (ac_try="$ac_compile"
7417 case "(($ac_try" in
7418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419 *) ac_try_echo=$ac_try;;
7420 esac
7421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7422 $as_echo "$ac_try_echo") >&5
7423 (eval "$ac_compile") 2>conftest.er1
7424 ac_status=$?
7425 grep -v '^ *+' conftest.er1 >conftest.err
7426 rm -f conftest.er1
7427 cat conftest.err >&5
7428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } && {
7430 test -z "$ac_c_werror_flag" ||
7431 test ! -s conftest.err
7432 } && test -s conftest.$ac_objext; then
7433 ac_cv_have_decl___sys_siglist=yes
7434 else
7435 $as_echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7438 ac_cv_have_decl___sys_siglist=no
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7444 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7445 if test $ac_cv_have_decl___sys_siglist = yes; then
7447 cat >>confdefs.h <<_ACEOF
7448 #define HAVE_DECL___SYS_SIGLIST 1
7449 _ACEOF
7452 else
7453 cat >>confdefs.h <<_ACEOF
7454 #define HAVE_DECL___SYS_SIGLIST 0
7455 _ACEOF
7461 if test $ac_cv_have_decl___sys_siglist = yes; then
7463 cat >>confdefs.h <<\_ACEOF
7464 #define sys_siglist __sys_siglist
7465 _ACEOF
7469 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7470 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7471 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7472 $as_echo_n "(cached) " >&6
7473 else
7474 cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h. */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7480 #include <sys/types.h>
7481 #include <sys/wait.h>
7482 #ifndef WEXITSTATUS
7483 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7484 #endif
7485 #ifndef WIFEXITED
7486 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7487 #endif
7490 main ()
7492 int s;
7493 wait (&s);
7494 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7496 return 0;
7498 _ACEOF
7499 rm -f conftest.$ac_objext
7500 if { (ac_try="$ac_compile"
7501 case "(($ac_try" in
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7504 esac
7505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7506 $as_echo "$ac_try_echo") >&5
7507 (eval "$ac_compile") 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest.$ac_objext; then
7517 ac_cv_header_sys_wait_h=yes
7518 else
7519 $as_echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7522 ac_cv_header_sys_wait_h=no
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7528 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7529 if test $ac_cv_header_sys_wait_h = yes; then
7531 cat >>confdefs.h <<\_ACEOF
7532 #define HAVE_SYS_WAIT_H 1
7533 _ACEOF
7538 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7539 $as_echo_n "checking for struct utimbuf... " >&6; }
7540 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7541 $as_echo_n "(cached) " >&6
7542 else
7543 cat >conftest.$ac_ext <<_ACEOF
7544 /* confdefs.h. */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7549 #ifdef TIME_WITH_SYS_TIME
7550 #include <sys/time.h>
7551 #include <time.h>
7552 #else
7553 #ifdef HAVE_SYS_TIME_H
7554 #include <sys/time.h>
7555 #else
7556 #include <time.h>
7557 #endif
7558 #endif
7559 #ifdef HAVE_UTIME_H
7560 #include <utime.h>
7561 #endif
7563 main ()
7565 static struct utimbuf x; x.actime = x.modtime;
7567 return 0;
7569 _ACEOF
7570 rm -f conftest.$ac_objext
7571 if { (ac_try="$ac_compile"
7572 case "(($ac_try" in
7573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7575 esac
7576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7577 $as_echo "$ac_try_echo") >&5
7578 (eval "$ac_compile") 2>conftest.er1
7579 ac_status=$?
7580 grep -v '^ *+' conftest.er1 >conftest.err
7581 rm -f conftest.er1
7582 cat conftest.err >&5
7583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } && {
7585 test -z "$ac_c_werror_flag" ||
7586 test ! -s conftest.err
7587 } && test -s conftest.$ac_objext; then
7588 emacs_cv_struct_utimbuf=yes
7589 else
7590 $as_echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7593 emacs_cv_struct_utimbuf=no
7596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7599 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7600 if test $emacs_cv_struct_utimbuf = yes; then
7602 cat >>confdefs.h <<\_ACEOF
7603 #define HAVE_STRUCT_UTIMBUF 1
7604 _ACEOF
7608 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7609 $as_echo_n "checking return type of signal handlers... " >&6; }
7610 if test "${ac_cv_type_signal+set}" = set; then
7611 $as_echo_n "(cached) " >&6
7612 else
7613 cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h. */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7619 #include <sys/types.h>
7620 #include <signal.h>
7623 main ()
7625 return *(signal (0, 0)) (0) == 1;
7627 return 0;
7629 _ACEOF
7630 rm -f conftest.$ac_objext
7631 if { (ac_try="$ac_compile"
7632 case "(($ac_try" in
7633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634 *) ac_try_echo=$ac_try;;
7635 esac
7636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7637 $as_echo "$ac_try_echo") >&5
7638 (eval "$ac_compile") 2>conftest.er1
7639 ac_status=$?
7640 grep -v '^ *+' conftest.er1 >conftest.err
7641 rm -f conftest.er1
7642 cat conftest.err >&5
7643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } && {
7645 test -z "$ac_c_werror_flag" ||
7646 test ! -s conftest.err
7647 } && test -s conftest.$ac_objext; then
7648 ac_cv_type_signal=int
7649 else
7650 $as_echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7653 ac_cv_type_signal=void
7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7658 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7659 $as_echo "$ac_cv_type_signal" >&6; }
7661 cat >>confdefs.h <<_ACEOF
7662 #define RETSIGTYPE $ac_cv_type_signal
7663 _ACEOF
7667 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7668 $as_echo_n "checking for speed_t... " >&6; }
7669 if test "${emacs_cv_speed_t+set}" = set; then
7670 $as_echo_n "(cached) " >&6
7671 else
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 #include <termios.h>
7680 main ()
7682 speed_t x = 1;
7684 return 0;
7686 _ACEOF
7687 rm -f conftest.$ac_objext
7688 if { (ac_try="$ac_compile"
7689 case "(($ac_try" in
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7692 esac
7693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7694 $as_echo "$ac_try_echo") >&5
7695 (eval "$ac_compile") 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } && {
7702 test -z "$ac_c_werror_flag" ||
7703 test ! -s conftest.err
7704 } && test -s conftest.$ac_objext; then
7705 emacs_cv_speed_t=yes
7706 else
7707 $as_echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 emacs_cv_speed_t=no
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7716 $as_echo "$emacs_cv_speed_t" >&6; }
7717 if test $emacs_cv_speed_t = yes; then
7719 cat >>confdefs.h <<\_ACEOF
7720 #define HAVE_SPEED_T 1
7721 _ACEOF
7725 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7726 $as_echo_n "checking for struct timeval... " >&6; }
7727 if test "${emacs_cv_struct_timeval+set}" = set; then
7728 $as_echo_n "(cached) " >&6
7729 else
7730 cat >conftest.$ac_ext <<_ACEOF
7731 /* confdefs.h. */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736 #ifdef TIME_WITH_SYS_TIME
7737 #include <sys/time.h>
7738 #include <time.h>
7739 #else
7740 #ifdef HAVE_SYS_TIME_H
7741 #include <sys/time.h>
7742 #else
7743 #include <time.h>
7744 #endif
7745 #endif
7747 main ()
7749 static struct timeval x; x.tv_sec = x.tv_usec;
7751 return 0;
7753 _ACEOF
7754 rm -f conftest.$ac_objext
7755 if { (ac_try="$ac_compile"
7756 case "(($ac_try" in
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7759 esac
7760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7761 $as_echo "$ac_try_echo") >&5
7762 (eval "$ac_compile") 2>conftest.er1
7763 ac_status=$?
7764 grep -v '^ *+' conftest.er1 >conftest.err
7765 rm -f conftest.er1
7766 cat conftest.err >&5
7767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } && {
7769 test -z "$ac_c_werror_flag" ||
7770 test ! -s conftest.err
7771 } && test -s conftest.$ac_objext; then
7772 emacs_cv_struct_timeval=yes
7773 else
7774 $as_echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7777 emacs_cv_struct_timeval=no
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7783 $as_echo "$emacs_cv_struct_timeval" >&6; }
7784 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7785 if test $emacs_cv_struct_timeval = yes; then
7787 cat >>confdefs.h <<\_ACEOF
7788 #define HAVE_TIMEVAL 1
7789 _ACEOF
7793 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7794 $as_echo_n "checking for struct exception... " >&6; }
7795 if test "${emacs_cv_struct_exception+set}" = set; then
7796 $as_echo_n "(cached) " >&6
7797 else
7798 cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h. */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7804 #include <math.h>
7806 main ()
7808 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7810 return 0;
7812 _ACEOF
7813 rm -f conftest.$ac_objext
7814 if { (ac_try="$ac_compile"
7815 case "(($ac_try" in
7816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7817 *) ac_try_echo=$ac_try;;
7818 esac
7819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7820 $as_echo "$ac_try_echo") >&5
7821 (eval "$ac_compile") 2>conftest.er1
7822 ac_status=$?
7823 grep -v '^ *+' conftest.er1 >conftest.err
7824 rm -f conftest.er1
7825 cat conftest.err >&5
7826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } && {
7828 test -z "$ac_c_werror_flag" ||
7829 test ! -s conftest.err
7830 } && test -s conftest.$ac_objext; then
7831 emacs_cv_struct_exception=yes
7832 else
7833 $as_echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7836 emacs_cv_struct_exception=no
7839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7842 $as_echo "$emacs_cv_struct_exception" >&6; }
7843 HAVE_EXCEPTION=$emacs_cv_struct_exception
7844 if test $emacs_cv_struct_exception != yes; then
7846 cat >>confdefs.h <<\_ACEOF
7847 #define NO_MATHERR 1
7848 _ACEOF
7853 for ac_header in sys/socket.h
7855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7857 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7858 $as_echo_n "checking for $ac_header... " >&6; }
7859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7860 $as_echo_n "(cached) " >&6
7862 ac_res=`eval 'as_val=${'$as_ac_Header'}
7863 $as_echo "$as_val"'`
7864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7865 $as_echo "$ac_res" >&6; }
7866 else
7867 # Is the header compilable?
7868 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7869 $as_echo_n "checking $ac_header usability... " >&6; }
7870 cat >conftest.$ac_ext <<_ACEOF
7871 /* confdefs.h. */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7876 $ac_includes_default
7877 #include <$ac_header>
7878 _ACEOF
7879 rm -f conftest.$ac_objext
7880 if { (ac_try="$ac_compile"
7881 case "(($ac_try" in
7882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883 *) ac_try_echo=$ac_try;;
7884 esac
7885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7886 $as_echo "$ac_try_echo") >&5
7887 (eval "$ac_compile") 2>conftest.er1
7888 ac_status=$?
7889 grep -v '^ *+' conftest.er1 >conftest.err
7890 rm -f conftest.er1
7891 cat conftest.err >&5
7892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && {
7894 test -z "$ac_c_werror_flag" ||
7895 test ! -s conftest.err
7896 } && test -s conftest.$ac_objext; then
7897 ac_header_compiler=yes
7898 else
7899 $as_echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 ac_header_compiler=no
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7907 $as_echo "$ac_header_compiler" >&6; }
7909 # Is the header present?
7910 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7911 $as_echo_n "checking $ac_header presence... " >&6; }
7912 cat >conftest.$ac_ext <<_ACEOF
7913 /* confdefs.h. */
7914 _ACEOF
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h. */
7918 #include <$ac_header>
7919 _ACEOF
7920 if { (ac_try="$ac_cpp conftest.$ac_ext"
7921 case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924 esac
7925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7926 $as_echo "$ac_try_echo") >&5
7927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
7932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } >/dev/null && {
7934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7935 test ! -s conftest.err
7936 }; then
7937 ac_header_preproc=yes
7938 else
7939 $as_echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7942 ac_header_preproc=no
7945 rm -f conftest.err conftest.$ac_ext
7946 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7947 $as_echo "$ac_header_preproc" >&6; }
7949 # So? What about this header?
7950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7951 yes:no: )
7952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7953 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7955 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7956 ac_header_preproc=yes
7958 no:yes:* )
7959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7960 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7962 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7964 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7966 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7968 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7970 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7973 esac
7974 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7975 $as_echo_n "checking for $ac_header... " >&6; }
7976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7977 $as_echo_n "(cached) " >&6
7978 else
7979 eval "$as_ac_Header=\$ac_header_preproc"
7981 ac_res=`eval 'as_val=${'$as_ac_Header'}
7982 $as_echo "$as_val"'`
7983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7984 $as_echo "$ac_res" >&6; }
7987 if test `eval 'as_val=${'$as_ac_Header'}
7988 $as_echo "$as_val"'` = yes; then
7989 cat >>confdefs.h <<_ACEOF
7990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7991 _ACEOF
7995 done
7998 for ac_header in net/if.h
8000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8001 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8002 $as_echo_n "checking for $ac_header... " >&6; }
8003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8004 $as_echo_n "(cached) " >&6
8005 else
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 #if HAVE_SYS_SOCKET_H
8014 #include <sys/socket.h>
8015 #endif
8017 #include <$ac_header>
8018 _ACEOF
8019 rm -f conftest.$ac_objext
8020 if { (ac_try="$ac_compile"
8021 case "(($ac_try" in
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8024 esac
8025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8026 $as_echo "$ac_try_echo") >&5
8027 (eval "$ac_compile") 2>conftest.er1
8028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest.$ac_objext; then
8037 eval "$as_ac_Header=yes"
8038 else
8039 $as_echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8042 eval "$as_ac_Header=no"
8045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047 ac_res=`eval 'as_val=${'$as_ac_Header'}
8048 $as_echo "$as_val"'`
8049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8050 $as_echo "$ac_res" >&6; }
8051 if test `eval 'as_val=${'$as_ac_Header'}
8052 $as_echo "$as_val"'` = yes; then
8053 cat >>confdefs.h <<_ACEOF
8054 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8055 _ACEOF
8059 done
8062 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8063 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8064 if test "${ac_cv_struct_tm+set}" = set; then
8065 $as_echo_n "(cached) " >&6
8066 else
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h. */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 #include <sys/types.h>
8074 #include <time.h>
8077 main ()
8079 struct tm tm;
8080 int *p = &tm.tm_sec;
8081 return !p;
8083 return 0;
8085 _ACEOF
8086 rm -f conftest.$ac_objext
8087 if { (ac_try="$ac_compile"
8088 case "(($ac_try" in
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8091 esac
8092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8093 $as_echo "$ac_try_echo") >&5
8094 (eval "$ac_compile") 2>conftest.er1
8095 ac_status=$?
8096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
8099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } && {
8101 test -z "$ac_c_werror_flag" ||
8102 test ! -s conftest.err
8103 } && test -s conftest.$ac_objext; then
8104 ac_cv_struct_tm=time.h
8105 else
8106 $as_echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8109 ac_cv_struct_tm=sys/time.h
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8115 $as_echo "$ac_cv_struct_tm" >&6; }
8116 if test $ac_cv_struct_tm = sys/time.h; then
8118 cat >>confdefs.h <<\_ACEOF
8119 #define TM_IN_SYS_TIME 1
8120 _ACEOF
8124 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8125 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8126 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8127 $as_echo_n "(cached) " >&6
8128 else
8129 cat >conftest.$ac_ext <<_ACEOF
8130 /* confdefs.h. */
8131 _ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8135 #include <sys/types.h>
8136 #include <$ac_cv_struct_tm>
8140 main ()
8142 static struct tm ac_aggr;
8143 if (ac_aggr.tm_zone)
8144 return 0;
8146 return 0;
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (ac_try="$ac_compile"
8151 case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154 esac
8155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8156 $as_echo "$ac_try_echo") >&5
8157 (eval "$ac_compile") 2>conftest.er1
8158 ac_status=$?
8159 grep -v '^ *+' conftest.er1 >conftest.err
8160 rm -f conftest.er1
8161 cat conftest.err >&5
8162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } && {
8164 test -z "$ac_c_werror_flag" ||
8165 test ! -s conftest.err
8166 } && test -s conftest.$ac_objext; then
8167 ac_cv_member_struct_tm_tm_zone=yes
8168 else
8169 $as_echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8172 cat >conftest.$ac_ext <<_ACEOF
8173 /* confdefs.h. */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8178 #include <sys/types.h>
8179 #include <$ac_cv_struct_tm>
8183 main ()
8185 static struct tm ac_aggr;
8186 if (sizeof ac_aggr.tm_zone)
8187 return 0;
8189 return 0;
8191 _ACEOF
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8194 case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197 esac
8198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8199 $as_echo "$ac_try_echo") >&5
8200 (eval "$ac_compile") 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest.$ac_objext; then
8210 ac_cv_member_struct_tm_tm_zone=yes
8211 else
8212 $as_echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_cv_member_struct_tm_tm_zone=no
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8224 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8225 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8227 cat >>confdefs.h <<_ACEOF
8228 #define HAVE_STRUCT_TM_TM_ZONE 1
8229 _ACEOF
8234 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8236 cat >>confdefs.h <<\_ACEOF
8237 #define HAVE_TM_ZONE 1
8238 _ACEOF
8240 else
8241 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8242 $as_echo_n "checking whether tzname is declared... " >&6; }
8243 if test "${ac_cv_have_decl_tzname+set}" = set; then
8244 $as_echo_n "(cached) " >&6
8245 else
8246 cat >conftest.$ac_ext <<_ACEOF
8247 /* confdefs.h. */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8252 #include <time.h>
8255 main ()
8257 #ifndef tzname
8258 (void) tzname;
8259 #endif
8262 return 0;
8264 _ACEOF
8265 rm -f conftest.$ac_objext
8266 if { (ac_try="$ac_compile"
8267 case "(($ac_try" in
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8270 esac
8271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8272 $as_echo "$ac_try_echo") >&5
8273 (eval "$ac_compile") 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
8282 } && test -s conftest.$ac_objext; then
8283 ac_cv_have_decl_tzname=yes
8284 else
8285 $as_echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 ac_cv_have_decl_tzname=no
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8294 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8295 if test $ac_cv_have_decl_tzname = yes; then
8297 cat >>confdefs.h <<_ACEOF
8298 #define HAVE_DECL_TZNAME 1
8299 _ACEOF
8302 else
8303 cat >>confdefs.h <<_ACEOF
8304 #define HAVE_DECL_TZNAME 0
8305 _ACEOF
8311 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8312 $as_echo_n "checking for tzname... " >&6; }
8313 if test "${ac_cv_var_tzname+set}" = set; then
8314 $as_echo_n "(cached) " >&6
8315 else
8316 cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h. */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 #include <time.h>
8323 #if !HAVE_DECL_TZNAME
8324 extern char *tzname[];
8325 #endif
8328 main ()
8330 return tzname[0][0];
8332 return 0;
8334 _ACEOF
8335 rm -f conftest.$ac_objext conftest$ac_exeext
8336 if { (ac_try="$ac_link"
8337 case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340 esac
8341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8342 $as_echo "$ac_try_echo") >&5
8343 (eval "$ac_link") 2>conftest.er1
8344 ac_status=$?
8345 grep -v '^ *+' conftest.er1 >conftest.err
8346 rm -f conftest.er1
8347 cat conftest.err >&5
8348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } && {
8350 test -z "$ac_c_werror_flag" ||
8351 test ! -s conftest.err
8352 } && test -s conftest$ac_exeext && {
8353 test "$cross_compiling" = yes ||
8354 $as_test_x conftest$ac_exeext
8355 }; then
8356 ac_cv_var_tzname=yes
8357 else
8358 $as_echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8361 ac_cv_var_tzname=no
8364 rm -rf conftest.dSYM
8365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8366 conftest$ac_exeext conftest.$ac_ext
8368 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8369 $as_echo "$ac_cv_var_tzname" >&6; }
8370 if test $ac_cv_var_tzname = yes; then
8372 cat >>confdefs.h <<\_ACEOF
8373 #define HAVE_TZNAME 1
8374 _ACEOF
8379 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8380 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8381 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8382 $as_echo_n "(cached) " >&6
8383 else
8384 cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h. */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8390 #include <time.h>
8393 main ()
8395 static struct tm ac_aggr;
8396 if (ac_aggr.tm_gmtoff)
8397 return 0;
8399 return 0;
8401 _ACEOF
8402 rm -f conftest.$ac_objext
8403 if { (ac_try="$ac_compile"
8404 case "(($ac_try" in
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8407 esac
8408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8409 $as_echo "$ac_try_echo") >&5
8410 (eval "$ac_compile") 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } && {
8417 test -z "$ac_c_werror_flag" ||
8418 test ! -s conftest.err
8419 } && test -s conftest.$ac_objext; then
8420 ac_cv_member_struct_tm_tm_gmtoff=yes
8421 else
8422 $as_echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h. */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8431 #include <time.h>
8434 main ()
8436 static struct tm ac_aggr;
8437 if (sizeof ac_aggr.tm_gmtoff)
8438 return 0;
8440 return 0;
8442 _ACEOF
8443 rm -f conftest.$ac_objext
8444 if { (ac_try="$ac_compile"
8445 case "(($ac_try" in
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8448 esac
8449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8450 $as_echo "$ac_try_echo") >&5
8451 (eval "$ac_compile") 2>conftest.er1
8452 ac_status=$?
8453 grep -v '^ *+' conftest.er1 >conftest.err
8454 rm -f conftest.er1
8455 cat conftest.err >&5
8456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } && {
8458 test -z "$ac_c_werror_flag" ||
8459 test ! -s conftest.err
8460 } && test -s conftest.$ac_objext; then
8461 ac_cv_member_struct_tm_tm_gmtoff=yes
8462 else
8463 $as_echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8466 ac_cv_member_struct_tm_tm_gmtoff=no
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8475 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8476 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8478 cat >>confdefs.h <<\_ACEOF
8479 #define HAVE_TM_GMTOFF 1
8480 _ACEOF
8484 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8485 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8486 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8487 $as_echo_n "(cached) " >&6
8488 else
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h. */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 $ac_includes_default
8496 #if HAVE_SYS_SOCKET_H
8497 #include <sys/socket.h>
8498 #endif
8499 #if HAVE_NET_IF_H
8500 #include <net/if.h>
8501 #endif
8504 main ()
8506 static struct ifreq ac_aggr;
8507 if (ac_aggr.ifr_flags)
8508 return 0;
8510 return 0;
8512 _ACEOF
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8515 case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518 esac
8519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8520 $as_echo "$ac_try_echo") >&5
8521 (eval "$ac_compile") 2>conftest.er1
8522 ac_status=$?
8523 grep -v '^ *+' conftest.er1 >conftest.err
8524 rm -f conftest.er1
8525 cat conftest.err >&5
8526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } && {
8528 test -z "$ac_c_werror_flag" ||
8529 test ! -s conftest.err
8530 } && test -s conftest.$ac_objext; then
8531 ac_cv_member_struct_ifreq_ifr_flags=yes
8532 else
8533 $as_echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8536 cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h. */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8542 $ac_includes_default
8543 #if HAVE_SYS_SOCKET_H
8544 #include <sys/socket.h>
8545 #endif
8546 #if HAVE_NET_IF_H
8547 #include <net/if.h>
8548 #endif
8551 main ()
8553 static struct ifreq ac_aggr;
8554 if (sizeof ac_aggr.ifr_flags)
8555 return 0;
8557 return 0;
8559 _ACEOF
8560 rm -f conftest.$ac_objext
8561 if { (ac_try="$ac_compile"
8562 case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8565 esac
8566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8567 $as_echo "$ac_try_echo") >&5
8568 (eval "$ac_compile") 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && {
8575 test -z "$ac_c_werror_flag" ||
8576 test ! -s conftest.err
8577 } && test -s conftest.$ac_objext; then
8578 ac_cv_member_struct_ifreq_ifr_flags=yes
8579 else
8580 $as_echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8583 ac_cv_member_struct_ifreq_ifr_flags=no
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8591 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8592 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8593 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8595 cat >>confdefs.h <<_ACEOF
8596 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8597 _ACEOF
8601 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8602 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8603 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8604 $as_echo_n "(cached) " >&6
8605 else
8606 cat >conftest.$ac_ext <<_ACEOF
8607 /* confdefs.h. */
8608 _ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8612 $ac_includes_default
8613 #if HAVE_SYS_SOCKET_H
8614 #include <sys/socket.h>
8615 #endif
8616 #if HAVE_NET_IF_H
8617 #include <net/if.h>
8618 #endif
8621 main ()
8623 static struct ifreq ac_aggr;
8624 if (ac_aggr.ifr_hwaddr)
8625 return 0;
8627 return 0;
8629 _ACEOF
8630 rm -f conftest.$ac_objext
8631 if { (ac_try="$ac_compile"
8632 case "(($ac_try" in
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8635 esac
8636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8637 $as_echo "$ac_try_echo") >&5
8638 (eval "$ac_compile") 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } && {
8645 test -z "$ac_c_werror_flag" ||
8646 test ! -s conftest.err
8647 } && test -s conftest.$ac_objext; then
8648 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8649 else
8650 $as_echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h. */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659 $ac_includes_default
8660 #if HAVE_SYS_SOCKET_H
8661 #include <sys/socket.h>
8662 #endif
8663 #if HAVE_NET_IF_H
8664 #include <net/if.h>
8665 #endif
8668 main ()
8670 static struct ifreq ac_aggr;
8671 if (sizeof ac_aggr.ifr_hwaddr)
8672 return 0;
8674 return 0;
8676 _ACEOF
8677 rm -f conftest.$ac_objext
8678 if { (ac_try="$ac_compile"
8679 case "(($ac_try" in
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8682 esac
8683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8684 $as_echo "$ac_try_echo") >&5
8685 (eval "$ac_compile") 2>conftest.er1
8686 ac_status=$?
8687 grep -v '^ *+' conftest.er1 >conftest.err
8688 rm -f conftest.er1
8689 cat conftest.err >&5
8690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } && {
8692 test -z "$ac_c_werror_flag" ||
8693 test ! -s conftest.err
8694 } && test -s conftest.$ac_objext; then
8695 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8696 else
8697 $as_echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8700 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8709 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8710 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8712 cat >>confdefs.h <<_ACEOF
8713 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8714 _ACEOF
8718 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8719 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8720 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8721 $as_echo_n "(cached) " >&6
8722 else
8723 cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h. */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8729 $ac_includes_default
8730 #if HAVE_SYS_SOCKET_H
8731 #include <sys/socket.h>
8732 #endif
8733 #if HAVE_NET_IF_H
8734 #include <net/if.h>
8735 #endif
8738 main ()
8740 static struct ifreq ac_aggr;
8741 if (ac_aggr.ifr_netmask)
8742 return 0;
8744 return 0;
8746 _ACEOF
8747 rm -f conftest.$ac_objext
8748 if { (ac_try="$ac_compile"
8749 case "(($ac_try" in
8750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751 *) ac_try_echo=$ac_try;;
8752 esac
8753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8754 $as_echo "$ac_try_echo") >&5
8755 (eval "$ac_compile") 2>conftest.er1
8756 ac_status=$?
8757 grep -v '^ *+' conftest.er1 >conftest.err
8758 rm -f conftest.er1
8759 cat conftest.err >&5
8760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } && {
8762 test -z "$ac_c_werror_flag" ||
8763 test ! -s conftest.err
8764 } && test -s conftest.$ac_objext; then
8765 ac_cv_member_struct_ifreq_ifr_netmask=yes
8766 else
8767 $as_echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8770 cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h. */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 $ac_includes_default
8777 #if HAVE_SYS_SOCKET_H
8778 #include <sys/socket.h>
8779 #endif
8780 #if HAVE_NET_IF_H
8781 #include <net/if.h>
8782 #endif
8785 main ()
8787 static struct ifreq ac_aggr;
8788 if (sizeof ac_aggr.ifr_netmask)
8789 return 0;
8791 return 0;
8793 _ACEOF
8794 rm -f conftest.$ac_objext
8795 if { (ac_try="$ac_compile"
8796 case "(($ac_try" in
8797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8799 esac
8800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8801 $as_echo "$ac_try_echo") >&5
8802 (eval "$ac_compile") 2>conftest.er1
8803 ac_status=$?
8804 grep -v '^ *+' conftest.er1 >conftest.err
8805 rm -f conftest.er1
8806 cat conftest.err >&5
8807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && {
8809 test -z "$ac_c_werror_flag" ||
8810 test ! -s conftest.err
8811 } && test -s conftest.$ac_objext; then
8812 ac_cv_member_struct_ifreq_ifr_netmask=yes
8813 else
8814 $as_echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8817 ac_cv_member_struct_ifreq_ifr_netmask=no
8820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8826 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8827 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8829 cat >>confdefs.h <<_ACEOF
8830 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8831 _ACEOF
8835 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8836 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8837 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8838 $as_echo_n "(cached) " >&6
8839 else
8840 cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h. */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 $ac_includes_default
8847 #if HAVE_SYS_SOCKET_H
8848 #include <sys/socket.h>
8849 #endif
8850 #if HAVE_NET_IF_H
8851 #include <net/if.h>
8852 #endif
8855 main ()
8857 static struct ifreq ac_aggr;
8858 if (ac_aggr.ifr_broadaddr)
8859 return 0;
8861 return 0;
8863 _ACEOF
8864 rm -f conftest.$ac_objext
8865 if { (ac_try="$ac_compile"
8866 case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8869 esac
8870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8871 $as_echo "$ac_try_echo") >&5
8872 (eval "$ac_compile") 2>conftest.er1
8873 ac_status=$?
8874 grep -v '^ *+' conftest.er1 >conftest.err
8875 rm -f conftest.er1
8876 cat conftest.err >&5
8877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } && {
8879 test -z "$ac_c_werror_flag" ||
8880 test ! -s conftest.err
8881 } && test -s conftest.$ac_objext; then
8882 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8883 else
8884 $as_echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8887 cat >conftest.$ac_ext <<_ACEOF
8888 /* confdefs.h. */
8889 _ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8893 $ac_includes_default
8894 #if HAVE_SYS_SOCKET_H
8895 #include <sys/socket.h>
8896 #endif
8897 #if HAVE_NET_IF_H
8898 #include <net/if.h>
8899 #endif
8902 main ()
8904 static struct ifreq ac_aggr;
8905 if (sizeof ac_aggr.ifr_broadaddr)
8906 return 0;
8908 return 0;
8910 _ACEOF
8911 rm -f conftest.$ac_objext
8912 if { (ac_try="$ac_compile"
8913 case "(($ac_try" in
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8916 esac
8917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8918 $as_echo "$ac_try_echo") >&5
8919 (eval "$ac_compile") 2>conftest.er1
8920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
8924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } && {
8926 test -z "$ac_c_werror_flag" ||
8927 test ! -s conftest.err
8928 } && test -s conftest.$ac_objext; then
8929 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8930 else
8931 $as_echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8943 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8944 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8946 cat >>confdefs.h <<_ACEOF
8947 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8948 _ACEOF
8952 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8953 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8954 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8955 $as_echo_n "(cached) " >&6
8956 else
8957 cat >conftest.$ac_ext <<_ACEOF
8958 /* confdefs.h. */
8959 _ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8963 $ac_includes_default
8964 #if HAVE_SYS_SOCKET_H
8965 #include <sys/socket.h>
8966 #endif
8967 #if HAVE_NET_IF_H
8968 #include <net/if.h>
8969 #endif
8972 main ()
8974 static struct ifreq ac_aggr;
8975 if (ac_aggr.ifr_addr)
8976 return 0;
8978 return 0;
8980 _ACEOF
8981 rm -f conftest.$ac_objext
8982 if { (ac_try="$ac_compile"
8983 case "(($ac_try" in
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8986 esac
8987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8988 $as_echo "$ac_try_echo") >&5
8989 (eval "$ac_compile") 2>conftest.er1
8990 ac_status=$?
8991 grep -v '^ *+' conftest.er1 >conftest.err
8992 rm -f conftest.er1
8993 cat conftest.err >&5
8994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); } && {
8996 test -z "$ac_c_werror_flag" ||
8997 test ! -s conftest.err
8998 } && test -s conftest.$ac_objext; then
8999 ac_cv_member_struct_ifreq_ifr_addr=yes
9000 else
9001 $as_echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 cat >conftest.$ac_ext <<_ACEOF
9005 /* confdefs.h. */
9006 _ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9010 $ac_includes_default
9011 #if HAVE_SYS_SOCKET_H
9012 #include <sys/socket.h>
9013 #endif
9014 #if HAVE_NET_IF_H
9015 #include <net/if.h>
9016 #endif
9019 main ()
9021 static struct ifreq ac_aggr;
9022 if (sizeof ac_aggr.ifr_addr)
9023 return 0;
9025 return 0;
9027 _ACEOF
9028 rm -f conftest.$ac_objext
9029 if { (ac_try="$ac_compile"
9030 case "(($ac_try" in
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9033 esac
9034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9035 $as_echo "$ac_try_echo") >&5
9036 (eval "$ac_compile") 2>conftest.er1
9037 ac_status=$?
9038 grep -v '^ *+' conftest.er1 >conftest.err
9039 rm -f conftest.er1
9040 cat conftest.err >&5
9041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } && {
9043 test -z "$ac_c_werror_flag" ||
9044 test ! -s conftest.err
9045 } && test -s conftest.$ac_objext; then
9046 ac_cv_member_struct_ifreq_ifr_addr=yes
9047 else
9048 $as_echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9051 ac_cv_member_struct_ifreq_ifr_addr=no
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9060 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9061 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9063 cat >>confdefs.h <<_ACEOF
9064 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9065 _ACEOF
9072 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9073 $as_echo_n "checking for function prototypes... " >&6; }
9074 if test "$ac_cv_prog_cc_c89" != no; then
9075 { $as_echo "$as_me:$LINENO: result: yes" >&5
9076 $as_echo "yes" >&6; }
9078 cat >>confdefs.h <<\_ACEOF
9079 #define PROTOTYPES 1
9080 _ACEOF
9083 cat >>confdefs.h <<\_ACEOF
9084 #define __PROTOTYPES 1
9085 _ACEOF
9087 else
9088 { $as_echo "$as_me:$LINENO: result: no" >&5
9089 $as_echo "no" >&6; }
9092 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9093 $as_echo_n "checking for working volatile... " >&6; }
9094 if test "${ac_cv_c_volatile+set}" = set; then
9095 $as_echo_n "(cached) " >&6
9096 else
9097 cat >conftest.$ac_ext <<_ACEOF
9098 /* confdefs.h. */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9105 main ()
9108 volatile int x;
9109 int * volatile y = (int *) 0;
9110 return !x && !y;
9112 return 0;
9114 _ACEOF
9115 rm -f conftest.$ac_objext
9116 if { (ac_try="$ac_compile"
9117 case "(($ac_try" in
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9120 esac
9121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9122 $as_echo "$ac_try_echo") >&5
9123 (eval "$ac_compile") 2>conftest.er1
9124 ac_status=$?
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
9128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest.$ac_objext; then
9133 ac_cv_c_volatile=yes
9134 else
9135 $as_echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ac_cv_c_volatile=no
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9143 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9144 $as_echo "$ac_cv_c_volatile" >&6; }
9145 if test $ac_cv_c_volatile = no; then
9147 cat >>confdefs.h <<\_ACEOF
9148 #define volatile /**/
9149 _ACEOF
9153 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9154 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9155 if test "${ac_cv_c_const+set}" = set; then
9156 $as_echo_n "(cached) " >&6
9157 else
9158 cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h. */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9166 main ()
9168 /* FIXME: Include the comments suggested by Paul. */
9169 #ifndef __cplusplus
9170 /* Ultrix mips cc rejects this. */
9171 typedef int charset[2];
9172 const charset cs;
9173 /* SunOS 4.1.1 cc rejects this. */
9174 char const *const *pcpcc;
9175 char **ppc;
9176 /* NEC SVR4.0.2 mips cc rejects this. */
9177 struct point {int x, y;};
9178 static struct point const zero = {0,0};
9179 /* AIX XL C 1.02.0.0 rejects this.
9180 It does not let you subtract one const X* pointer from another in
9181 an arm of an if-expression whose if-part is not a constant
9182 expression */
9183 const char *g = "string";
9184 pcpcc = &g + (g ? g-g : 0);
9185 /* HPUX 7.0 cc rejects these. */
9186 ++pcpcc;
9187 ppc = (char**) pcpcc;
9188 pcpcc = (char const *const *) ppc;
9189 { /* SCO 3.2v4 cc rejects this. */
9190 char *t;
9191 char const *s = 0 ? (char *) 0 : (char const *) 0;
9193 *t++ = 0;
9194 if (s) return 0;
9196 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9197 int x[] = {25, 17};
9198 const int *foo = &x[0];
9199 ++foo;
9201 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9202 typedef const int *iptr;
9203 iptr p = 0;
9204 ++p;
9206 { /* AIX XL C 1.02.0.0 rejects this saying
9207 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9208 struct s { int j; const int *ap[3]; };
9209 struct s *b; b->j = 5;
9211 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9212 const int foo = 10;
9213 if (!foo) return 0;
9215 return !cs[0] && !zero.x;
9216 #endif
9219 return 0;
9221 _ACEOF
9222 rm -f conftest.$ac_objext
9223 if { (ac_try="$ac_compile"
9224 case "(($ac_try" in
9225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9226 *) ac_try_echo=$ac_try;;
9227 esac
9228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9229 $as_echo "$ac_try_echo") >&5
9230 (eval "$ac_compile") 2>conftest.er1
9231 ac_status=$?
9232 grep -v '^ *+' conftest.er1 >conftest.err
9233 rm -f conftest.er1
9234 cat conftest.err >&5
9235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } && {
9237 test -z "$ac_c_werror_flag" ||
9238 test ! -s conftest.err
9239 } && test -s conftest.$ac_objext; then
9240 ac_cv_c_const=yes
9241 else
9242 $as_echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9245 ac_cv_c_const=no
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9250 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9251 $as_echo "$ac_cv_c_const" >&6; }
9252 if test $ac_cv_c_const = no; then
9254 cat >>confdefs.h <<\_ACEOF
9255 #define const /**/
9256 _ACEOF
9260 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9261 $as_echo_n "checking for void * support... " >&6; }
9262 if test "${emacs_cv_void_star+set}" = set; then
9263 $as_echo_n "(cached) " >&6
9264 else
9265 cat >conftest.$ac_ext <<_ACEOF
9266 /* confdefs.h. */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9273 main ()
9275 void * foo;
9277 return 0;
9279 _ACEOF
9280 rm -f conftest.$ac_objext
9281 if { (ac_try="$ac_compile"
9282 case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9285 esac
9286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9287 $as_echo "$ac_try_echo") >&5
9288 (eval "$ac_compile") 2>conftest.er1
9289 ac_status=$?
9290 grep -v '^ *+' conftest.er1 >conftest.err
9291 rm -f conftest.er1
9292 cat conftest.err >&5
9293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } && {
9295 test -z "$ac_c_werror_flag" ||
9296 test ! -s conftest.err
9297 } && test -s conftest.$ac_objext; then
9298 emacs_cv_void_star=yes
9299 else
9300 $as_echo "$as_me: failed program was:" >&5
9301 sed 's/^/| /' conftest.$ac_ext >&5
9303 emacs_cv_void_star=no
9306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9308 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9309 $as_echo "$emacs_cv_void_star" >&6; }
9310 if test $emacs_cv_void_star = yes; then
9311 cat >>confdefs.h <<\_ACEOF
9312 #define POINTER_TYPE void
9313 _ACEOF
9315 else
9316 cat >>confdefs.h <<\_ACEOF
9317 #define POINTER_TYPE char
9318 _ACEOF
9326 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9327 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9328 set x ${MAKE-make}
9329 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9330 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9331 $as_echo_n "(cached) " >&6
9332 else
9333 cat >conftest.make <<\_ACEOF
9334 SHELL = /bin/sh
9335 all:
9336 @echo '@@@%%%=$(MAKE)=@@@%%%'
9337 _ACEOF
9338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9339 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9340 *@@@%%%=?*=@@@%%%*)
9341 eval ac_cv_prog_make_${ac_make}_set=yes;;
9343 eval ac_cv_prog_make_${ac_make}_set=no;;
9344 esac
9345 rm -f conftest.make
9347 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9348 { $as_echo "$as_me:$LINENO: result: yes" >&5
9349 $as_echo "yes" >&6; }
9350 SET_MAKE=
9351 else
9352 { $as_echo "$as_me:$LINENO: result: no" >&5
9353 $as_echo "no" >&6; }
9354 SET_MAKE="MAKE=${MAKE-make}"
9358 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9359 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9360 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9361 HAVE_GNU_MAKE=no
9362 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9363 if test "x$testval" != x; then
9364 HAVE_GNU_MAKE=yes
9365 else
9366 ac_enable_autodepend=no
9368 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9369 $as_echo "$HAVE_GNU_MAKE" >&6; }
9370 if test $HAVE_GNU_MAKE = yes; then
9371 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9372 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9373 SAVE_CFLAGS="$CFLAGS"
9374 CFLAGS="$CFLAGS -MMD -MF deps.d"
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h. */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9383 main ()
9387 return 0;
9389 _ACEOF
9390 rm -f conftest.$ac_objext
9391 if { (ac_try="$ac_compile"
9392 case "(($ac_try" in
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9395 esac
9396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9397 $as_echo "$ac_try_echo") >&5
9398 (eval "$ac_compile") 2>conftest.er1
9399 ac_status=$?
9400 grep -v '^ *+' conftest.er1 >conftest.err
9401 rm -f conftest.er1
9402 cat conftest.err >&5
9403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest.$ac_objext; then
9409 else
9410 $as_echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ac_enable_autodepend=no
9416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9417 CFLAGS="$SAVE_CFLAGS"
9418 test -f deps.d || ac_enable_autodepend=no
9419 rm -rf deps.d
9420 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9421 $as_echo "$ac_enable_autodepend" >&6; }
9423 if test $ac_enable_autodepend = yes; then
9425 cat >>confdefs.h <<\_ACEOF
9426 #define AUTO_DEPEND 1
9427 _ACEOF
9432 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9433 $as_echo_n "checking for long file names... " >&6; }
9434 if test "${ac_cv_sys_long_file_names+set}" = set; then
9435 $as_echo_n "(cached) " >&6
9436 else
9437 ac_cv_sys_long_file_names=yes
9438 # Test for long file names in all the places we know might matter:
9439 # . the current directory, where building will happen
9440 # $prefix/lib where we will be installing things
9441 # $exec_prefix/lib likewise
9442 # $TMPDIR if set, where it might want to write temporary files
9443 # /tmp where it might want to write temporary files
9444 # /var/tmp likewise
9445 # /usr/tmp likewise
9446 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9447 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9448 # in the usual case where exec_prefix is '${prefix}'.
9449 case $ac_dir in #(
9450 . | /* | ?:[\\/]*) ;; #(
9451 *) continue;;
9452 esac
9453 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9454 ac_xdir=$ac_dir/cf$$
9455 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9456 ac_tf1=$ac_xdir/conftest9012345
9457 ac_tf2=$ac_xdir/conftest9012346
9458 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9459 ac_cv_sys_long_file_names=no
9460 rm -f -r "$ac_xdir" 2>/dev/null
9461 test $ac_cv_sys_long_file_names = no && break
9462 done
9464 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9465 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9466 if test $ac_cv_sys_long_file_names = yes; then
9468 cat >>confdefs.h <<\_ACEOF
9469 #define HAVE_LONG_FILE_NAMES 1
9470 _ACEOF
9475 #### Choose a window system.
9477 { $as_echo "$as_me:$LINENO: checking for X" >&5
9478 $as_echo_n "checking for X... " >&6; }
9481 # Check whether --with-x was given.
9482 if test "${with_x+set}" = set; then
9483 withval=$with_x;
9486 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9487 if test "x$with_x" = xno; then
9488 # The user explicitly disabled X.
9489 have_x=disabled
9490 else
9491 case $x_includes,$x_libraries in #(
9492 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9493 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9494 { (exit 1); exit 1; }; };; #(
9495 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9496 $as_echo_n "(cached) " >&6
9497 else
9498 # One or both of the vars are not set, and there is no cached value.
9499 ac_x_includes=no ac_x_libraries=no
9500 rm -f -r conftest.dir
9501 if mkdir conftest.dir; then
9502 cd conftest.dir
9503 cat >Imakefile <<'_ACEOF'
9504 incroot:
9505 @echo incroot='${INCROOT}'
9506 usrlibdir:
9507 @echo usrlibdir='${USRLIBDIR}'
9508 libdir:
9509 @echo libdir='${LIBDIR}'
9510 _ACEOF
9511 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9512 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9513 for ac_var in incroot usrlibdir libdir; do
9514 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9515 done
9516 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9517 for ac_extension in a so sl dylib la dll; do
9518 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9519 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9520 ac_im_usrlibdir=$ac_im_libdir; break
9522 done
9523 # Screen out bogus values from the imake configuration. They are
9524 # bogus both because they are the default anyway, and because
9525 # using them would break gcc on systems where it needs fixed includes.
9526 case $ac_im_incroot in
9527 /usr/include) ac_x_includes= ;;
9528 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9529 esac
9530 case $ac_im_usrlibdir in
9531 /usr/lib | /lib) ;;
9532 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9533 esac
9535 cd ..
9536 rm -f -r conftest.dir
9539 # Standard set of common directories for X headers.
9540 # Check X11 before X11Rn because it is often a symlink to the current release.
9541 ac_x_header_dirs='
9542 /usr/X11/include
9543 /usr/X11R6/include
9544 /usr/X11R5/include
9545 /usr/X11R4/include
9547 /usr/include/X11
9548 /usr/include/X11R6
9549 /usr/include/X11R5
9550 /usr/include/X11R4
9552 /usr/local/X11/include
9553 /usr/local/X11R6/include
9554 /usr/local/X11R5/include
9555 /usr/local/X11R4/include
9557 /usr/local/include/X11
9558 /usr/local/include/X11R6
9559 /usr/local/include/X11R5
9560 /usr/local/include/X11R4
9562 /usr/X386/include
9563 /usr/x386/include
9564 /usr/XFree86/include/X11
9566 /usr/include
9567 /usr/local/include
9568 /usr/unsupported/include
9569 /usr/athena/include
9570 /usr/local/x11r5/include
9571 /usr/lpp/Xamples/include
9573 /usr/openwin/include
9574 /usr/openwin/share/include'
9576 if test "$ac_x_includes" = no; then
9577 # Guess where to find include files, by looking for Xlib.h.
9578 # First, try using that file with no special directory specified.
9579 cat >conftest.$ac_ext <<_ACEOF
9580 /* confdefs.h. */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 #include <X11/Xlib.h>
9586 _ACEOF
9587 if { (ac_try="$ac_cpp conftest.$ac_ext"
9588 case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9591 esac
9592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9593 $as_echo "$ac_try_echo") >&5
9594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9595 ac_status=$?
9596 grep -v '^ *+' conftest.er1 >conftest.err
9597 rm -f conftest.er1
9598 cat conftest.err >&5
9599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } >/dev/null && {
9601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9602 test ! -s conftest.err
9603 }; then
9604 # We can compile using X headers with no special include directory.
9605 ac_x_includes=
9606 else
9607 $as_echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9610 for ac_dir in $ac_x_header_dirs; do
9611 if test -r "$ac_dir/X11/Xlib.h"; then
9612 ac_x_includes=$ac_dir
9613 break
9615 done
9618 rm -f conftest.err conftest.$ac_ext
9619 fi # $ac_x_includes = no
9621 if test "$ac_x_libraries" = no; then
9622 # Check for the libraries.
9623 # See if we find them without any special options.
9624 # Don't add to $LIBS permanently.
9625 ac_save_LIBS=$LIBS
9626 LIBS="-lX11 $LIBS"
9627 cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h. */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633 #include <X11/Xlib.h>
9635 main ()
9637 XrmInitialize ()
9639 return 0;
9641 _ACEOF
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643 if { (ac_try="$ac_link"
9644 case "(($ac_try" in
9645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9647 esac
9648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9649 $as_echo "$ac_try_echo") >&5
9650 (eval "$ac_link") 2>conftest.er1
9651 ac_status=$?
9652 grep -v '^ *+' conftest.er1 >conftest.err
9653 rm -f conftest.er1
9654 cat conftest.err >&5
9655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } && {
9657 test -z "$ac_c_werror_flag" ||
9658 test ! -s conftest.err
9659 } && test -s conftest$ac_exeext && {
9660 test "$cross_compiling" = yes ||
9661 $as_test_x conftest$ac_exeext
9662 }; then
9663 LIBS=$ac_save_LIBS
9664 # We can link X programs with no special library path.
9665 ac_x_libraries=
9666 else
9667 $as_echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9670 LIBS=$ac_save_LIBS
9671 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9673 # Don't even attempt the hair of trying to link an X program!
9674 for ac_extension in a so sl dylib la dll; do
9675 if test -r "$ac_dir/libX11.$ac_extension"; then
9676 ac_x_libraries=$ac_dir
9677 break 2
9679 done
9680 done
9683 rm -rf conftest.dSYM
9684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9685 conftest$ac_exeext conftest.$ac_ext
9686 fi # $ac_x_libraries = no
9688 case $ac_x_includes,$ac_x_libraries in #(
9689 no,* | *,no | *\'*)
9690 # Didn't find X, or a directory has "'" in its name.
9691 ac_cv_have_x="have_x=no";; #(
9693 # Record where we found X for the cache.
9694 ac_cv_have_x="have_x=yes\
9695 ac_x_includes='$ac_x_includes'\
9696 ac_x_libraries='$ac_x_libraries'"
9697 esac
9699 ;; #(
9700 *) have_x=yes;;
9701 esac
9702 eval "$ac_cv_have_x"
9703 fi # $with_x != no
9705 if test "$have_x" != yes; then
9706 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9707 $as_echo "$have_x" >&6; }
9708 no_x=yes
9709 else
9710 # If each of the values was on the command line, it overrides each guess.
9711 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9712 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9713 # Update the cache value to reflect the command line values.
9714 ac_cv_have_x="have_x=yes\
9715 ac_x_includes='$x_includes'\
9716 ac_x_libraries='$x_libraries'"
9717 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9718 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9721 if test "$no_x" = yes; then
9722 window_system=none
9723 else
9724 window_system=x11
9727 ## Workaround for bug in autoconf <= 2.62.
9728 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9729 ## No need to do anything special for these standard directories.
9730 ## This is an experiment, take it out if it causes problems.
9731 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9733 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9737 if test "${x_libraries}" != NONE; then
9738 if test -n "${x_libraries}"; then
9739 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9740 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9742 x_default_search_path=""
9743 x_search_path=${x_libraries}
9744 if test -z "${x_search_path}"; then
9745 x_search_path=/usr/lib
9747 for x_library in `echo ${x_search_path}: | \
9748 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9749 x_search_path="\
9750 ${x_library}/X11/%L/%T/%N%C%S:\
9751 ${x_library}/X11/%l/%T/%N%C%S:\
9752 ${x_library}/X11/%T/%N%C%S:\
9753 ${x_library}/X11/%L/%T/%N%S:\
9754 ${x_library}/X11/%l/%T/%N%S:\
9755 ${x_library}/X11/%T/%N%S"
9756 if test x"${x_default_search_path}" = x; then
9757 x_default_search_path=${x_search_path}
9758 else
9759 x_default_search_path="${x_search_path}:${x_default_search_path}"
9761 done
9763 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9764 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9767 if test x"${x_includes}" = x; then
9768 bitmapdir=/usr/include/X11/bitmaps
9769 else
9770 # accumulate include directories that have X11 bitmap subdirectories
9771 bmd_acc="dummyval"
9772 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9773 if test -d "${bmd}/X11/bitmaps"; then
9774 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9776 if test -d "${bmd}/bitmaps"; then
9777 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9779 done
9780 if test ${bmd_acc} != "dummyval"; then
9781 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9785 HAVE_NS=no
9786 NS_IMPL_COCOA=no
9787 NS_IMPL_GNUSTEP=no
9788 tmp_CPPFLAGS="$CPPFLAGS"
9789 tmp_CFLAGS="$CFLAGS"
9790 CPPFLAGS="$CPPFLAGS -x objective-c"
9791 CFLAGS="$CFLAGS -x objective-c"
9792 if test "${with_ns}" != no; then
9793 if test "${opsys}" = darwin; then
9794 NS_IMPL_COCOA=yes
9795 ns_appdir=`pwd`/nextstep/Emacs.app
9796 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9797 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9798 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9799 elif test -f $GNUSTEP_CONFIG_FILE; then
9800 NS_IMPL_GNUSTEP=yes
9801 ns_appdir=`pwd`/nextstep/Emacs.app
9802 ns_appbindir=`pwd`/nextstep/Emacs.app
9803 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9804 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9805 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9806 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9807 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9808 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9809 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9810 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9811 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9813 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9814 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9815 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9816 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9817 $as_echo_n "(cached) " >&6
9819 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9820 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9821 else
9822 # Is the header compilable?
9823 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9824 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 $ac_includes_default
9832 #include <AppKit/AppKit.h>
9833 _ACEOF
9834 rm -f conftest.$ac_objext
9835 if { (ac_try="$ac_compile"
9836 case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9839 esac
9840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9841 $as_echo "$ac_try_echo") >&5
9842 (eval "$ac_compile") 2>conftest.er1
9843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest.$ac_objext; then
9852 ac_header_compiler=yes
9853 else
9854 $as_echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_header_compiler=no
9860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9862 $as_echo "$ac_header_compiler" >&6; }
9864 # Is the header present?
9865 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9866 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h. */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 #include <AppKit/AppKit.h>
9874 _ACEOF
9875 if { (ac_try="$ac_cpp conftest.$ac_ext"
9876 case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879 esac
9880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9881 $as_echo "$ac_try_echo") >&5
9882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } >/dev/null && {
9889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 }; then
9892 ac_header_preproc=yes
9893 else
9894 $as_echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9897 ac_header_preproc=no
9900 rm -f conftest.err conftest.$ac_ext
9901 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9902 $as_echo "$ac_header_preproc" >&6; }
9904 # So? What about this header?
9905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9906 yes:no: )
9907 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9908 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9909 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9910 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9911 ac_header_preproc=yes
9913 no:yes:* )
9914 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9915 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9916 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9917 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9918 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9919 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9920 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9921 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9922 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9923 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9924 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9925 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9928 esac
9929 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9930 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9931 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9932 $as_echo_n "(cached) " >&6
9933 else
9934 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9936 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9937 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9940 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9941 HAVE_NS=yes
9942 else
9943 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9944 files are missing or cannot be compiled." >&5
9945 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9946 files are missing or cannot be compiled." >&2;}
9947 { (exit 1); exit 1; }; }
9951 NS_HAVE_NSINTEGER=yes
9952 cat >conftest.$ac_ext <<_ACEOF
9953 /* confdefs.h. */
9954 _ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9958 #include <Foundation/NSObjCRuntime.h>
9960 main ()
9962 NSInteger i;
9964 return 0;
9966 _ACEOF
9967 rm -f conftest.$ac_objext
9968 if { (ac_try="$ac_compile"
9969 case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9972 esac
9973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9974 $as_echo "$ac_try_echo") >&5
9975 (eval "$ac_compile") 2>conftest.er1
9976 ac_status=$?
9977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
9980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } && {
9982 test -z "$ac_c_werror_flag" ||
9983 test ! -s conftest.err
9984 } && test -s conftest.$ac_objext; then
9985 ns_have_nsinteger=yes
9986 else
9987 $as_echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9990 ns_have_nsinteger=no
9993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994 if test $ns_have_nsinteger = no; then
9995 NS_HAVE_NSINTEGER=no
9999 NS_OBJ=
10000 NS_SUPPORT=
10001 if test "${HAVE_NS}" = yes; then
10002 window_system=nextstep
10003 with_xft=no
10004 # set up packaging dirs
10005 exec_prefix=${ns_appbindir}
10006 libexecdir=${ns_appbindir}/libexec
10007 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10008 prefix=${ns_appresdir}
10010 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10011 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10013 CFLAGS="$tmp_CFLAGS"
10014 CPPFLAGS="$tmp_CPPFLAGS"
10018 case "${window_system}" in
10019 x11 )
10020 HAVE_X_WINDOWS=yes
10021 HAVE_X11=yes
10022 case "${with_x_toolkit}" in
10023 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10024 motif ) USE_X_TOOLKIT=MOTIF ;;
10025 gtk ) with_gtk=yes
10026 USE_X_TOOLKIT=none ;;
10027 no ) USE_X_TOOLKIT=none ;;
10028 * ) USE_X_TOOLKIT=maybe ;;
10029 esac
10031 nextstep | none )
10032 HAVE_X_WINDOWS=no
10033 HAVE_X11=no
10034 USE_X_TOOLKIT=none
10036 esac
10038 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10039 # Extract the first word of "X", so it can be a program name with args.
10040 set dummy X; ac_word=$2
10041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10042 $as_echo_n "checking for $ac_word... " >&6; }
10043 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10044 $as_echo_n "(cached) " >&6
10045 else
10046 if test -n "$HAVE_XSERVER"; then
10047 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10048 else
10049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050 for as_dir in $PATH
10052 IFS=$as_save_IFS
10053 test -z "$as_dir" && as_dir=.
10054 for ac_exec_ext in '' $ac_executable_extensions; do
10055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10056 ac_cv_prog_HAVE_XSERVER="true"
10057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10058 break 2
10060 done
10061 done
10062 IFS=$as_save_IFS
10064 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10067 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10068 if test -n "$HAVE_XSERVER"; then
10069 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10070 $as_echo "$HAVE_XSERVER" >&6; }
10071 else
10072 { $as_echo "$as_me:$LINENO: result: no" >&5
10073 $as_echo "no" >&6; }
10077 if test "$HAVE_XSERVER" = true ||
10078 test -n "$DISPLAY" ||
10079 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10080 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10081 were found. You should install the relevant development files for X
10082 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10083 sure you have development files for image handling, i.e.
10084 tiff, gif, jpeg, png and xpm.
10085 If you are sure you want Emacs compiled without X window support, pass
10086 --without-x
10087 to configure." >&5
10088 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10089 were found. You should install the relevant development files for X
10090 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10091 sure you have development files for image handling, i.e.
10092 tiff, gif, jpeg, png and xpm.
10093 If you are sure you want Emacs compiled without X window support, pass
10094 --without-x
10095 to configure." >&2;}
10096 { (exit 1); exit 1; }; }
10100 ### If we're using X11, we should use the X menu package.
10101 HAVE_MENUS=no
10102 case ${HAVE_X11} in
10103 yes ) HAVE_MENUS=yes ;;
10104 esac
10106 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10107 # Assume not, until told otherwise.
10108 GNU_MALLOC=yes
10109 doug_lea_malloc=yes
10110 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10111 $as_echo_n "checking for malloc_get_state... " >&6; }
10112 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10113 $as_echo_n "(cached) " >&6
10114 else
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h. */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10123 #define malloc_get_state innocuous_malloc_get_state
10125 /* System header to define __stub macros and hopefully few prototypes,
10126 which can conflict with char malloc_get_state (); below.
10127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10128 <limits.h> exists even on freestanding compilers. */
10130 #ifdef __STDC__
10131 # include <limits.h>
10132 #else
10133 # include <assert.h>
10134 #endif
10136 #undef malloc_get_state
10138 /* Override any GCC internal prototype to avoid an error.
10139 Use char because int might match the return type of a GCC
10140 builtin and then its argument prototype would still apply. */
10141 #ifdef __cplusplus
10142 extern "C"
10143 #endif
10144 char malloc_get_state ();
10145 /* The GNU C library defines this for functions which it implements
10146 to always fail with ENOSYS. Some functions are actually named
10147 something starting with __ and the normal name is an alias. */
10148 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10149 choke me
10150 #endif
10153 main ()
10155 return malloc_get_state ();
10157 return 0;
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165 esac
10166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10167 $as_echo "$ac_try_echo") >&5
10168 (eval "$ac_link") 2>conftest.er1
10169 ac_status=$?
10170 grep -v '^ *+' conftest.er1 >conftest.err
10171 rm -f conftest.er1
10172 cat conftest.err >&5
10173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } && {
10175 test -z "$ac_c_werror_flag" ||
10176 test ! -s conftest.err
10177 } && test -s conftest$ac_exeext && {
10178 test "$cross_compiling" = yes ||
10179 $as_test_x conftest$ac_exeext
10180 }; then
10181 ac_cv_func_malloc_get_state=yes
10182 else
10183 $as_echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10186 ac_cv_func_malloc_get_state=no
10189 rm -rf conftest.dSYM
10190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10191 conftest$ac_exeext conftest.$ac_ext
10193 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10194 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10195 if test $ac_cv_func_malloc_get_state = yes; then
10197 else
10198 doug_lea_malloc=no
10201 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10202 $as_echo_n "checking for malloc_set_state... " >&6; }
10203 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10204 $as_echo_n "(cached) " >&6
10205 else
10206 cat >conftest.$ac_ext <<_ACEOF
10207 /* confdefs.h. */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10212 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10214 #define malloc_set_state innocuous_malloc_set_state
10216 /* System header to define __stub macros and hopefully few prototypes,
10217 which can conflict with char malloc_set_state (); below.
10218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10219 <limits.h> exists even on freestanding compilers. */
10221 #ifdef __STDC__
10222 # include <limits.h>
10223 #else
10224 # include <assert.h>
10225 #endif
10227 #undef malloc_set_state
10229 /* Override any GCC internal prototype to avoid an error.
10230 Use char because int might match the return type of a GCC
10231 builtin and then its argument prototype would still apply. */
10232 #ifdef __cplusplus
10233 extern "C"
10234 #endif
10235 char malloc_set_state ();
10236 /* The GNU C library defines this for functions which it implements
10237 to always fail with ENOSYS. Some functions are actually named
10238 something starting with __ and the normal name is an alias. */
10239 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10240 choke me
10241 #endif
10244 main ()
10246 return malloc_set_state ();
10248 return 0;
10250 _ACEOF
10251 rm -f conftest.$ac_objext conftest$ac_exeext
10252 if { (ac_try="$ac_link"
10253 case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10256 esac
10257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10258 $as_echo "$ac_try_echo") >&5
10259 (eval "$ac_link") 2>conftest.er1
10260 ac_status=$?
10261 grep -v '^ *+' conftest.er1 >conftest.err
10262 rm -f conftest.er1
10263 cat conftest.err >&5
10264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } && {
10266 test -z "$ac_c_werror_flag" ||
10267 test ! -s conftest.err
10268 } && test -s conftest$ac_exeext && {
10269 test "$cross_compiling" = yes ||
10270 $as_test_x conftest$ac_exeext
10271 }; then
10272 ac_cv_func_malloc_set_state=yes
10273 else
10274 $as_echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ac_cv_func_malloc_set_state=no
10280 rm -rf conftest.dSYM
10281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10282 conftest$ac_exeext conftest.$ac_ext
10284 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10285 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10286 if test $ac_cv_func_malloc_set_state = yes; then
10288 else
10289 doug_lea_malloc=no
10292 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10293 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10294 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10295 $as_echo_n "(cached) " >&6
10296 else
10297 cat >conftest.$ac_ext <<_ACEOF
10298 /* confdefs.h. */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10303 extern void (* __after_morecore_hook)();
10305 main ()
10307 __after_morecore_hook = 0
10309 return 0;
10311 _ACEOF
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (ac_try="$ac_link"
10314 case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10317 esac
10318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10319 $as_echo "$ac_try_echo") >&5
10320 (eval "$ac_link") 2>conftest.er1
10321 ac_status=$?
10322 grep -v '^ *+' conftest.er1 >conftest.err
10323 rm -f conftest.er1
10324 cat conftest.err >&5
10325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } && {
10327 test -z "$ac_c_werror_flag" ||
10328 test ! -s conftest.err
10329 } && test -s conftest$ac_exeext && {
10330 test "$cross_compiling" = yes ||
10331 $as_test_x conftest$ac_exeext
10332 }; then
10333 emacs_cv_var___after_morecore_hook=yes
10334 else
10335 $as_echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10338 emacs_cv_var___after_morecore_hook=no
10341 rm -rf conftest.dSYM
10342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10343 conftest$ac_exeext conftest.$ac_ext
10345 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10346 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10347 if test $emacs_cv_var___after_morecore_hook = no; then
10348 doug_lea_malloc=no
10350 if test "${system_malloc}" = "yes"; then
10351 GNU_MALLOC=no
10352 GNU_MALLOC_reason="
10353 (The GNU allocators don't work with this system configuration.)"
10355 if test "$doug_lea_malloc" = "yes" ; then
10356 if test "$GNU_MALLOC" = yes ; then
10357 GNU_MALLOC_reason="
10358 (Using Doug Lea's new malloc from the GNU C Library.)"
10361 cat >>confdefs.h <<\_ACEOF
10362 #define DOUG_LEA_MALLOC 1
10363 _ACEOF
10367 if test x"${REL_ALLOC}" = x; then
10368 REL_ALLOC=${GNU_MALLOC}
10374 for ac_header in stdlib.h unistd.h
10376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10379 $as_echo_n "checking for $ac_header... " >&6; }
10380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10381 $as_echo_n "(cached) " >&6
10383 ac_res=`eval 'as_val=${'$as_ac_Header'}
10384 $as_echo "$as_val"'`
10385 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10386 $as_echo "$ac_res" >&6; }
10387 else
10388 # Is the header compilable?
10389 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10390 $as_echo_n "checking $ac_header usability... " >&6; }
10391 cat >conftest.$ac_ext <<_ACEOF
10392 /* confdefs.h. */
10393 _ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10397 $ac_includes_default
10398 #include <$ac_header>
10399 _ACEOF
10400 rm -f conftest.$ac_objext
10401 if { (ac_try="$ac_compile"
10402 case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10405 esac
10406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10407 $as_echo "$ac_try_echo") >&5
10408 (eval "$ac_compile") 2>conftest.er1
10409 ac_status=$?
10410 grep -v '^ *+' conftest.er1 >conftest.err
10411 rm -f conftest.er1
10412 cat conftest.err >&5
10413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } && {
10415 test -z "$ac_c_werror_flag" ||
10416 test ! -s conftest.err
10417 } && test -s conftest.$ac_objext; then
10418 ac_header_compiler=yes
10419 else
10420 $as_echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 ac_header_compiler=no
10426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10428 $as_echo "$ac_header_compiler" >&6; }
10430 # Is the header present?
10431 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10432 $as_echo_n "checking $ac_header presence... " >&6; }
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 #include <$ac_header>
10440 _ACEOF
10441 if { (ac_try="$ac_cpp conftest.$ac_ext"
10442 case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10445 esac
10446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10447 $as_echo "$ac_try_echo") >&5
10448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10449 ac_status=$?
10450 grep -v '^ *+' conftest.er1 >conftest.err
10451 rm -f conftest.er1
10452 cat conftest.err >&5
10453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); } >/dev/null && {
10455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10456 test ! -s conftest.err
10457 }; then
10458 ac_header_preproc=yes
10459 else
10460 $as_echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10463 ac_header_preproc=no
10466 rm -f conftest.err conftest.$ac_ext
10467 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10468 $as_echo "$ac_header_preproc" >&6; }
10470 # So? What about this header?
10471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10472 yes:no: )
10473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10474 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10476 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10477 ac_header_preproc=yes
10479 no:yes:* )
10480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10481 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10483 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10485 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10487 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10489 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10491 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10494 esac
10495 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10496 $as_echo_n "checking for $ac_header... " >&6; }
10497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10498 $as_echo_n "(cached) " >&6
10499 else
10500 eval "$as_ac_Header=\$ac_header_preproc"
10502 ac_res=`eval 'as_val=${'$as_ac_Header'}
10503 $as_echo "$as_val"'`
10504 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10505 $as_echo "$ac_res" >&6; }
10508 if test `eval 'as_val=${'$as_ac_Header'}
10509 $as_echo "$as_val"'` = yes; then
10510 cat >>confdefs.h <<_ACEOF
10511 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10512 _ACEOF
10516 done
10519 for ac_func in getpagesize
10521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10522 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10523 $as_echo_n "checking for $ac_func... " >&6; }
10524 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10525 $as_echo_n "(cached) " >&6
10526 else
10527 cat >conftest.$ac_ext <<_ACEOF
10528 /* confdefs.h. */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10535 #define $ac_func innocuous_$ac_func
10537 /* System header to define __stub macros and hopefully few prototypes,
10538 which can conflict with char $ac_func (); below.
10539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10540 <limits.h> exists even on freestanding compilers. */
10542 #ifdef __STDC__
10543 # include <limits.h>
10544 #else
10545 # include <assert.h>
10546 #endif
10548 #undef $ac_func
10550 /* Override any GCC internal prototype to avoid an error.
10551 Use char because int might match the return type of a GCC
10552 builtin and then its argument prototype would still apply. */
10553 #ifdef __cplusplus
10554 extern "C"
10555 #endif
10556 char $ac_func ();
10557 /* The GNU C library defines this for functions which it implements
10558 to always fail with ENOSYS. Some functions are actually named
10559 something starting with __ and the normal name is an alias. */
10560 #if defined __stub_$ac_func || defined __stub___$ac_func
10561 choke me
10562 #endif
10565 main ()
10567 return $ac_func ();
10569 return 0;
10571 _ACEOF
10572 rm -f conftest.$ac_objext conftest$ac_exeext
10573 if { (ac_try="$ac_link"
10574 case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577 esac
10578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10579 $as_echo "$ac_try_echo") >&5
10580 (eval "$ac_link") 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest$ac_exeext && {
10590 test "$cross_compiling" = yes ||
10591 $as_test_x conftest$ac_exeext
10592 }; then
10593 eval "$as_ac_var=yes"
10594 else
10595 $as_echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 eval "$as_ac_var=no"
10601 rm -rf conftest.dSYM
10602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10603 conftest$ac_exeext conftest.$ac_ext
10605 ac_res=`eval 'as_val=${'$as_ac_var'}
10606 $as_echo "$as_val"'`
10607 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10608 $as_echo "$ac_res" >&6; }
10609 if test `eval 'as_val=${'$as_ac_var'}
10610 $as_echo "$as_val"'` = yes; then
10611 cat >>confdefs.h <<_ACEOF
10612 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10613 _ACEOF
10616 done
10618 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10619 $as_echo_n "checking for working mmap... " >&6; }
10620 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10621 $as_echo_n "(cached) " >&6
10622 else
10623 if test "$cross_compiling" = yes; then
10624 ac_cv_func_mmap_fixed_mapped=no
10625 else
10626 cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h. */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 $ac_includes_default
10633 /* malloc might have been renamed as rpl_malloc. */
10634 #undef malloc
10636 /* Thanks to Mike Haertel and Jim Avera for this test.
10637 Here is a matrix of mmap possibilities:
10638 mmap private not fixed
10639 mmap private fixed at somewhere currently unmapped
10640 mmap private fixed at somewhere already mapped
10641 mmap shared not fixed
10642 mmap shared fixed at somewhere currently unmapped
10643 mmap shared fixed at somewhere already mapped
10644 For private mappings, we should verify that changes cannot be read()
10645 back from the file, nor mmap's back from the file at a different
10646 address. (There have been systems where private was not correctly
10647 implemented like the infamous i386 svr4.0, and systems where the
10648 VM page cache was not coherent with the file system buffer cache
10649 like early versions of FreeBSD and possibly contemporary NetBSD.)
10650 For shared mappings, we should conversely verify that changes get
10651 propagated back to all the places they're supposed to be.
10653 Grep wants private fixed already mapped.
10654 The main things grep needs to know about mmap are:
10655 * does it exist and is it safe to write into the mmap'd area
10656 * how to use it (BSD variants) */
10658 #include <fcntl.h>
10659 #include <sys/mman.h>
10661 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10662 char *malloc ();
10663 #endif
10665 /* This mess was copied from the GNU getpagesize.h. */
10666 #ifndef HAVE_GETPAGESIZE
10667 /* Assume that all systems that can run configure have sys/param.h. */
10668 # ifndef HAVE_SYS_PARAM_H
10669 # define HAVE_SYS_PARAM_H 1
10670 # endif
10672 # ifdef _SC_PAGESIZE
10673 # define getpagesize() sysconf(_SC_PAGESIZE)
10674 # else /* no _SC_PAGESIZE */
10675 # ifdef HAVE_SYS_PARAM_H
10676 # include <sys/param.h>
10677 # ifdef EXEC_PAGESIZE
10678 # define getpagesize() EXEC_PAGESIZE
10679 # else /* no EXEC_PAGESIZE */
10680 # ifdef NBPG
10681 # define getpagesize() NBPG * CLSIZE
10682 # ifndef CLSIZE
10683 # define CLSIZE 1
10684 # endif /* no CLSIZE */
10685 # else /* no NBPG */
10686 # ifdef NBPC
10687 # define getpagesize() NBPC
10688 # else /* no NBPC */
10689 # ifdef PAGESIZE
10690 # define getpagesize() PAGESIZE
10691 # endif /* PAGESIZE */
10692 # endif /* no NBPC */
10693 # endif /* no NBPG */
10694 # endif /* no EXEC_PAGESIZE */
10695 # else /* no HAVE_SYS_PARAM_H */
10696 # define getpagesize() 8192 /* punt totally */
10697 # endif /* no HAVE_SYS_PARAM_H */
10698 # endif /* no _SC_PAGESIZE */
10700 #endif /* no HAVE_GETPAGESIZE */
10703 main ()
10705 char *data, *data2, *data3;
10706 int i, pagesize;
10707 int fd;
10709 pagesize = getpagesize ();
10711 /* First, make a file with some known garbage in it. */
10712 data = (char *) malloc (pagesize);
10713 if (!data)
10714 return 1;
10715 for (i = 0; i < pagesize; ++i)
10716 *(data + i) = rand ();
10717 umask (0);
10718 fd = creat ("conftest.mmap", 0600);
10719 if (fd < 0)
10720 return 1;
10721 if (write (fd, data, pagesize) != pagesize)
10722 return 1;
10723 close (fd);
10725 /* Next, try to mmap the file at a fixed address which already has
10726 something else allocated at it. If we can, also make sure that
10727 we see the same garbage. */
10728 fd = open ("conftest.mmap", O_RDWR);
10729 if (fd < 0)
10730 return 1;
10731 data2 = (char *) malloc (2 * pagesize);
10732 if (!data2)
10733 return 1;
10734 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10735 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10736 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10737 return 1;
10738 for (i = 0; i < pagesize; ++i)
10739 if (*(data + i) != *(data2 + i))
10740 return 1;
10742 /* Finally, make sure that changes to the mapped area do not
10743 percolate back to the file as seen by read(). (This is a bug on
10744 some variants of i386 svr4.0.) */
10745 for (i = 0; i < pagesize; ++i)
10746 *(data2 + i) = *(data2 + i) + 1;
10747 data3 = (char *) malloc (pagesize);
10748 if (!data3)
10749 return 1;
10750 if (read (fd, data3, pagesize) != pagesize)
10751 return 1;
10752 for (i = 0; i < pagesize; ++i)
10753 if (*(data + i) != *(data3 + i))
10754 return 1;
10755 close (fd);
10756 return 0;
10758 _ACEOF
10759 rm -f conftest$ac_exeext
10760 if { (ac_try="$ac_link"
10761 case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10764 esac
10765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10766 $as_echo "$ac_try_echo") >&5
10767 (eval "$ac_link") 2>&5
10768 ac_status=$?
10769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10771 { (case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774 esac
10775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10776 $as_echo "$ac_try_echo") >&5
10777 (eval "$ac_try") 2>&5
10778 ac_status=$?
10779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; }; then
10781 ac_cv_func_mmap_fixed_mapped=yes
10782 else
10783 $as_echo "$as_me: program exited with status $ac_status" >&5
10784 $as_echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 ( exit $ac_status )
10788 ac_cv_func_mmap_fixed_mapped=no
10790 rm -rf conftest.dSYM
10791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10796 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10797 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10798 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10800 cat >>confdefs.h <<\_ACEOF
10801 #define HAVE_MMAP 1
10802 _ACEOF
10805 rm -f conftest.mmap
10807 if test $use_mmap_for_buffers = yes; then
10808 REL_ALLOC=no
10811 LIBS="$libsrc_libs $LIBS"
10814 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10815 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10816 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10817 $as_echo_n "(cached) " >&6
10818 else
10819 ac_check_lib_save_LIBS=$LIBS
10820 LIBS="-ldnet $LIBS"
10821 cat >conftest.$ac_ext <<_ACEOF
10822 /* confdefs.h. */
10823 _ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10828 /* Override any GCC internal prototype to avoid an error.
10829 Use char because int might match the return type of a GCC
10830 builtin and then its argument prototype would still apply. */
10831 #ifdef __cplusplus
10832 extern "C"
10833 #endif
10834 char dnet_ntoa ();
10836 main ()
10838 return dnet_ntoa ();
10840 return 0;
10842 _ACEOF
10843 rm -f conftest.$ac_objext conftest$ac_exeext
10844 if { (ac_try="$ac_link"
10845 case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10848 esac
10849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10850 $as_echo "$ac_try_echo") >&5
10851 (eval "$ac_link") 2>conftest.er1
10852 ac_status=$?
10853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
10856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } && {
10858 test -z "$ac_c_werror_flag" ||
10859 test ! -s conftest.err
10860 } && test -s conftest$ac_exeext && {
10861 test "$cross_compiling" = yes ||
10862 $as_test_x conftest$ac_exeext
10863 }; then
10864 ac_cv_lib_dnet_dnet_ntoa=yes
10865 else
10866 $as_echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10869 ac_cv_lib_dnet_dnet_ntoa=no
10872 rm -rf conftest.dSYM
10873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10874 conftest$ac_exeext conftest.$ac_ext
10875 LIBS=$ac_check_lib_save_LIBS
10877 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10878 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10879 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10880 cat >>confdefs.h <<_ACEOF
10881 #define HAVE_LIBDNET 1
10882 _ACEOF
10884 LIBS="-ldnet $LIBS"
10889 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10890 $as_echo_n "checking for main in -lXbsd... " >&6; }
10891 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10892 $as_echo_n "(cached) " >&6
10893 else
10894 ac_check_lib_save_LIBS=$LIBS
10895 LIBS="-lXbsd $LIBS"
10896 cat >conftest.$ac_ext <<_ACEOF
10897 /* confdefs.h. */
10898 _ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10905 main ()
10907 return main ();
10909 return 0;
10911 _ACEOF
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (ac_try="$ac_link"
10914 case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10917 esac
10918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10919 $as_echo "$ac_try_echo") >&5
10920 (eval "$ac_link") 2>conftest.er1
10921 ac_status=$?
10922 grep -v '^ *+' conftest.er1 >conftest.err
10923 rm -f conftest.er1
10924 cat conftest.err >&5
10925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } && {
10927 test -z "$ac_c_werror_flag" ||
10928 test ! -s conftest.err
10929 } && test -s conftest$ac_exeext && {
10930 test "$cross_compiling" = yes ||
10931 $as_test_x conftest$ac_exeext
10932 }; then
10933 ac_cv_lib_Xbsd_main=yes
10934 else
10935 $as_echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10938 ac_cv_lib_Xbsd_main=no
10941 rm -rf conftest.dSYM
10942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10943 conftest$ac_exeext conftest.$ac_ext
10944 LIBS=$ac_check_lib_save_LIBS
10946 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10947 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10948 if test $ac_cv_lib_Xbsd_main = yes; then
10949 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10954 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10955 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10956 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10957 $as_echo_n "(cached) " >&6
10958 else
10959 ac_check_lib_save_LIBS=$LIBS
10960 LIBS="-lpthreads $LIBS"
10961 cat >conftest.$ac_ext <<_ACEOF
10962 /* confdefs.h. */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10968 /* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
10971 #ifdef __cplusplus
10972 extern "C"
10973 #endif
10974 char cma_open ();
10976 main ()
10978 return cma_open ();
10980 return 0;
10982 _ACEOF
10983 rm -f conftest.$ac_objext conftest$ac_exeext
10984 if { (ac_try="$ac_link"
10985 case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10988 esac
10989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10990 $as_echo "$ac_try_echo") >&5
10991 (eval "$ac_link") 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } && {
10998 test -z "$ac_c_werror_flag" ||
10999 test ! -s conftest.err
11000 } && test -s conftest$ac_exeext && {
11001 test "$cross_compiling" = yes ||
11002 $as_test_x conftest$ac_exeext
11003 }; then
11004 ac_cv_lib_pthreads_cma_open=yes
11005 else
11006 $as_echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 ac_cv_lib_pthreads_cma_open=no
11012 rm -rf conftest.dSYM
11013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11017 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11018 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11019 if test $ac_cv_lib_pthreads_cma_open = yes; then
11020 cat >>confdefs.h <<_ACEOF
11021 #define HAVE_LIBPTHREADS 1
11022 _ACEOF
11024 LIBS="-lpthreads $LIBS"
11030 case ${host_os} in
11031 aix*)
11032 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11033 $as_echo_n "checking for -bbigtoc option... " >&6; }
11034 if test "${gdb_cv_bigtoc+set}" = set; then
11035 $as_echo_n "(cached) " >&6
11036 else
11038 case $GCC in
11039 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11040 *) gdb_cv_bigtoc=-bbigtoc ;;
11041 esac
11043 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11044 cat >conftest.$ac_ext <<_ACEOF
11045 /* confdefs.h. */
11046 _ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11052 main ()
11054 int i;
11056 return 0;
11058 _ACEOF
11059 rm -f conftest.$ac_objext conftest$ac_exeext
11060 if { (ac_try="$ac_link"
11061 case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11064 esac
11065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11066 $as_echo "$ac_try_echo") >&5
11067 (eval "$ac_link") 2>conftest.er1
11068 ac_status=$?
11069 grep -v '^ *+' conftest.er1 >conftest.err
11070 rm -f conftest.er1
11071 cat conftest.err >&5
11072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && {
11074 test -z "$ac_c_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest$ac_exeext && {
11077 test "$cross_compiling" = yes ||
11078 $as_test_x conftest$ac_exeext
11079 }; then
11081 else
11082 $as_echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 gdb_cv_bigtoc=
11088 rm -rf conftest.dSYM
11089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11090 conftest$ac_exeext conftest.$ac_ext
11093 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11094 $as_echo "$gdb_cv_bigtoc" >&6; }
11096 esac
11098 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11099 # used for the tests that follow. We set them back to REAL_CFLAGS and
11100 # REAL_CPPFLAGS later on.
11102 REAL_CPPFLAGS="$CPPFLAGS"
11104 if test "${HAVE_X11}" = "yes"; then
11105 DEFS="$C_SWITCH_X_SITE $DEFS"
11106 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11107 LIBS="$LIBX $LIBS"
11108 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11109 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11111 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11112 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11113 # but it's more convenient here to set LD_RUN_PATH
11114 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11115 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11116 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11117 export LD_RUN_PATH
11120 if test "${opsys}" = "gnu-linux"; then
11121 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11122 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11123 cat >conftest.$ac_ext <<_ACEOF
11124 /* confdefs.h. */
11125 _ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11131 main ()
11133 XOpenDisplay ("foo");
11135 return 0;
11137 _ACEOF
11138 rm -f conftest.$ac_objext conftest$ac_exeext
11139 if { (ac_try="$ac_link"
11140 case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11143 esac
11144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11145 $as_echo "$ac_try_echo") >&5
11146 (eval "$ac_link") 2>conftest.er1
11147 ac_status=$?
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
11151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } && {
11153 test -z "$ac_c_werror_flag" ||
11154 test ! -s conftest.err
11155 } && test -s conftest$ac_exeext && {
11156 test "$cross_compiling" = yes ||
11157 $as_test_x conftest$ac_exeext
11158 }; then
11159 xlinux_first_failure=no
11160 else
11161 $as_echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11164 xlinux_first_failure=yes
11167 rm -rf conftest.dSYM
11168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11169 conftest$ac_exeext conftest.$ac_ext
11170 if test "${xlinux_first_failure}" = "yes"; then
11171 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11172 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11173 OLD_CPPFLAGS="$CPPFLAGS"
11174 OLD_LIBS="$LIBS"
11175 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11176 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11177 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11178 LIBS="$LIBS -b i486-linuxaout"
11179 cat >conftest.$ac_ext <<_ACEOF
11180 /* confdefs.h. */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11187 main ()
11189 XOpenDisplay ("foo");
11191 return 0;
11193 _ACEOF
11194 rm -f conftest.$ac_objext conftest$ac_exeext
11195 if { (ac_try="$ac_link"
11196 case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11199 esac
11200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11201 $as_echo "$ac_try_echo") >&5
11202 (eval "$ac_link") 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } && {
11209 test -z "$ac_c_werror_flag" ||
11210 test ! -s conftest.err
11211 } && test -s conftest$ac_exeext && {
11212 test "$cross_compiling" = yes ||
11213 $as_test_x conftest$ac_exeext
11214 }; then
11215 xlinux_second_failure=no
11216 else
11217 $as_echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11220 xlinux_second_failure=yes
11223 rm -rf conftest.dSYM
11224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11225 conftest$ac_exeext conftest.$ac_ext
11226 if test "${xlinux_second_failure}" = "yes"; then
11227 # If we get the same failure with -b, there is no use adding -b.
11228 # So take it out. This plays safe.
11229 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11230 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11231 CPPFLAGS="$OLD_CPPFLAGS"
11232 LIBS="$OLD_LIBS"
11233 { $as_echo "$as_me:$LINENO: result: no" >&5
11234 $as_echo "no" >&6; }
11235 else
11236 { $as_echo "$as_me:$LINENO: result: yes" >&5
11237 $as_echo "yes" >&6; }
11239 else
11240 { $as_echo "$as_me:$LINENO: result: no" >&5
11241 $as_echo "no" >&6; }
11245 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11246 # header files included from there.
11247 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11248 $as_echo_n "checking for Xkb... " >&6; }
11249 cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h. */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #include <X11/Xlib.h>
11256 #include <X11/XKBlib.h>
11258 main ()
11260 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11262 return 0;
11264 _ACEOF
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (ac_try="$ac_link"
11267 case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270 esac
11271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11272 $as_echo "$ac_try_echo") >&5
11273 (eval "$ac_link") 2>conftest.er1
11274 ac_status=$?
11275 grep -v '^ *+' conftest.er1 >conftest.err
11276 rm -f conftest.er1
11277 cat conftest.err >&5
11278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } && {
11280 test -z "$ac_c_werror_flag" ||
11281 test ! -s conftest.err
11282 } && test -s conftest$ac_exeext && {
11283 test "$cross_compiling" = yes ||
11284 $as_test_x conftest$ac_exeext
11285 }; then
11286 emacs_xkb=yes
11287 else
11288 $as_echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 emacs_xkb=no
11294 rm -rf conftest.dSYM
11295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11296 conftest$ac_exeext conftest.$ac_ext
11297 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11298 $as_echo "$emacs_xkb" >&6; }
11299 if test $emacs_xkb = yes; then
11301 cat >>confdefs.h <<\_ACEOF
11302 #define HAVE_XKBGETKEYBOARD 1
11303 _ACEOF
11311 for ac_func in XrmSetDatabase XScreenResourceString \
11312 XScreenNumberOfScreen XSetWMProtocols
11314 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11315 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11316 $as_echo_n "checking for $ac_func... " >&6; }
11317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11318 $as_echo_n "(cached) " >&6
11319 else
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h. */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11328 #define $ac_func innocuous_$ac_func
11330 /* System header to define __stub macros and hopefully few prototypes,
11331 which can conflict with char $ac_func (); below.
11332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11333 <limits.h> exists even on freestanding compilers. */
11335 #ifdef __STDC__
11336 # include <limits.h>
11337 #else
11338 # include <assert.h>
11339 #endif
11341 #undef $ac_func
11343 /* Override any GCC internal prototype to avoid an error.
11344 Use char because int might match the return type of a GCC
11345 builtin and then its argument prototype would still apply. */
11346 #ifdef __cplusplus
11347 extern "C"
11348 #endif
11349 char $ac_func ();
11350 /* The GNU C library defines this for functions which it implements
11351 to always fail with ENOSYS. Some functions are actually named
11352 something starting with __ and the normal name is an alias. */
11353 #if defined __stub_$ac_func || defined __stub___$ac_func
11354 choke me
11355 #endif
11358 main ()
11360 return $ac_func ();
11362 return 0;
11364 _ACEOF
11365 rm -f conftest.$ac_objext conftest$ac_exeext
11366 if { (ac_try="$ac_link"
11367 case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11370 esac
11371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11372 $as_echo "$ac_try_echo") >&5
11373 (eval "$ac_link") 2>conftest.er1
11374 ac_status=$?
11375 grep -v '^ *+' conftest.er1 >conftest.err
11376 rm -f conftest.er1
11377 cat conftest.err >&5
11378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } && {
11380 test -z "$ac_c_werror_flag" ||
11381 test ! -s conftest.err
11382 } && test -s conftest$ac_exeext && {
11383 test "$cross_compiling" = yes ||
11384 $as_test_x conftest$ac_exeext
11385 }; then
11386 eval "$as_ac_var=yes"
11387 else
11388 $as_echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11391 eval "$as_ac_var=no"
11394 rm -rf conftest.dSYM
11395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11396 conftest$ac_exeext conftest.$ac_ext
11398 ac_res=`eval 'as_val=${'$as_ac_var'}
11399 $as_echo "$as_val"'`
11400 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11401 $as_echo "$ac_res" >&6; }
11402 if test `eval 'as_val=${'$as_ac_var'}
11403 $as_echo "$as_val"'` = yes; then
11404 cat >>confdefs.h <<_ACEOF
11405 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11406 _ACEOF
11409 done
11413 if test "${window_system}" = "x11"; then
11414 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11415 $as_echo_n "checking X11 version 6... " >&6; }
11416 if test "${emacs_cv_x11_version_6+set}" = set; then
11417 $as_echo_n "(cached) " >&6
11418 else
11419 cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h. */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 #include <X11/Xlib.h>
11427 main ()
11429 #if XlibSpecificationRelease < 6
11430 fail;
11431 #endif
11434 return 0;
11436 _ACEOF
11437 rm -f conftest.$ac_objext conftest$ac_exeext
11438 if { (ac_try="$ac_link"
11439 case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11442 esac
11443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11444 $as_echo "$ac_try_echo") >&5
11445 (eval "$ac_link") 2>conftest.er1
11446 ac_status=$?
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
11450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } && {
11452 test -z "$ac_c_werror_flag" ||
11453 test ! -s conftest.err
11454 } && test -s conftest$ac_exeext && {
11455 test "$cross_compiling" = yes ||
11456 $as_test_x conftest$ac_exeext
11457 }; then
11458 emacs_cv_x11_version_6=yes
11459 else
11460 $as_echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11463 emacs_cv_x11_version_6=no
11466 rm -rf conftest.dSYM
11467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11468 conftest$ac_exeext conftest.$ac_ext
11471 if test $emacs_cv_x11_version_6 = yes; then
11472 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11473 $as_echo "6 or newer" >&6; }
11475 cat >>confdefs.h <<\_ACEOF
11476 #define HAVE_X11R6 1
11477 _ACEOF
11479 else
11480 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11481 $as_echo "before 6" >&6; }
11486 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11487 HAVE_RSVG=no
11488 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11489 if test "${with_rsvg}" != "no"; then
11490 RSVG_REQUIRED=2.11.0
11491 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11494 succeeded=no
11496 # Extract the first word of "pkg-config", so it can be a program name with args.
11497 set dummy pkg-config; ac_word=$2
11498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11501 $as_echo_n "(cached) " >&6
11502 else
11503 case $PKG_CONFIG in
11504 [\\/]* | ?:[\\/]*)
11505 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509 for as_dir in $PATH
11511 IFS=$as_save_IFS
11512 test -z "$as_dir" && as_dir=.
11513 for ac_exec_ext in '' $ac_executable_extensions; do
11514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11515 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11516 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 break 2
11519 done
11520 done
11521 IFS=$as_save_IFS
11523 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11525 esac
11527 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11528 if test -n "$PKG_CONFIG"; then
11529 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11530 $as_echo "$PKG_CONFIG" >&6; }
11531 else
11532 { $as_echo "$as_me:$LINENO: result: no" >&5
11533 $as_echo "no" >&6; }
11538 if test "$PKG_CONFIG" = "no" ; then
11540 else
11541 PKG_CONFIG_MIN_VERSION=0.9.0
11542 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11543 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11544 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11546 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11547 { $as_echo "$as_me:$LINENO: result: yes" >&5
11548 $as_echo "yes" >&6; }
11549 succeeded=yes
11551 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11552 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11553 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11554 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11555 $as_echo "$RSVG_CFLAGS" >&6; }
11557 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11558 $as_echo_n "checking RSVG_LIBS... " >&6; }
11559 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11560 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11561 $as_echo "$RSVG_LIBS" >&6; }
11562 else
11563 { $as_echo "$as_me:$LINENO: result: no" >&5
11564 $as_echo "no" >&6; }
11565 RSVG_CFLAGS=""
11566 RSVG_LIBS=""
11567 ## If we have a custom action on failure, don't print errors, but
11568 ## do set a variable so people can do so.
11569 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11575 else
11576 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11577 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11581 if test $succeeded = yes; then
11583 else
11590 if test ".${RSVG_CFLAGS}" != "."; then
11591 HAVE_RSVG=yes
11593 cat >>confdefs.h <<\_ACEOF
11594 #define HAVE_RSVG 1
11595 _ACEOF
11597 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11598 LIBS="$RSVG_LIBS $LIBS"
11604 HAVE_GTK=no
11605 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11606 GLIB_REQUIRED=2.6
11607 GTK_REQUIRED=2.6
11608 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11611 succeeded=no
11613 # Extract the first word of "pkg-config", so it can be a program name with args.
11614 set dummy pkg-config; ac_word=$2
11615 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11616 $as_echo_n "checking for $ac_word... " >&6; }
11617 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11618 $as_echo_n "(cached) " >&6
11619 else
11620 case $PKG_CONFIG in
11621 [\\/]* | ?:[\\/]*)
11622 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626 for as_dir in $PATH
11628 IFS=$as_save_IFS
11629 test -z "$as_dir" && as_dir=.
11630 for ac_exec_ext in '' $ac_executable_extensions; do
11631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11632 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11633 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11634 break 2
11636 done
11637 done
11638 IFS=$as_save_IFS
11640 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11642 esac
11644 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11645 if test -n "$PKG_CONFIG"; then
11646 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11647 $as_echo "$PKG_CONFIG" >&6; }
11648 else
11649 { $as_echo "$as_me:$LINENO: result: no" >&5
11650 $as_echo "no" >&6; }
11655 if test "$PKG_CONFIG" = "no" ; then
11656 pkg_check_gtk=no
11657 else
11658 PKG_CONFIG_MIN_VERSION=0.9.0
11659 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11660 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11661 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11663 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11664 { $as_echo "$as_me:$LINENO: result: yes" >&5
11665 $as_echo "yes" >&6; }
11666 succeeded=yes
11668 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11669 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11670 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11671 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11672 $as_echo "$GTK_CFLAGS" >&6; }
11674 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11675 $as_echo_n "checking GTK_LIBS... " >&6; }
11676 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11677 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11678 $as_echo "$GTK_LIBS" >&6; }
11679 else
11680 { $as_echo "$as_me:$LINENO: result: no" >&5
11681 $as_echo "no" >&6; }
11682 GTK_CFLAGS=""
11683 GTK_LIBS=""
11684 ## If we have a custom action on failure, don't print errors, but
11685 ## do set a variable so people can do so.
11686 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11692 else
11693 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11694 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11698 if test $succeeded = yes; then
11699 pkg_check_gtk=yes
11700 else
11701 pkg_check_gtk=no
11704 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11705 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11706 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11707 { (exit 1); exit 1; }; }
11712 GTK_OBJ=
11713 if test x"$pkg_check_gtk" = xyes; then
11717 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11718 CFLAGS="$CFLAGS $GTK_CFLAGS"
11719 LIBS="$GTK_LIBS $LIBS"
11720 GTK_COMPILES=no
11722 for ac_func in gtk_main
11724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11725 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11726 $as_echo_n "checking for $ac_func... " >&6; }
11727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11728 $as_echo_n "(cached) " >&6
11729 else
11730 cat >conftest.$ac_ext <<_ACEOF
11731 /* confdefs.h. */
11732 _ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11738 #define $ac_func innocuous_$ac_func
11740 /* System header to define __stub macros and hopefully few prototypes,
11741 which can conflict with char $ac_func (); below.
11742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11743 <limits.h> exists even on freestanding compilers. */
11745 #ifdef __STDC__
11746 # include <limits.h>
11747 #else
11748 # include <assert.h>
11749 #endif
11751 #undef $ac_func
11753 /* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11756 #ifdef __cplusplus
11757 extern "C"
11758 #endif
11759 char $ac_func ();
11760 /* The GNU C library defines this for functions which it implements
11761 to always fail with ENOSYS. Some functions are actually named
11762 something starting with __ and the normal name is an alias. */
11763 #if defined __stub_$ac_func || defined __stub___$ac_func
11764 choke me
11765 #endif
11768 main ()
11770 return $ac_func ();
11772 return 0;
11774 _ACEOF
11775 rm -f conftest.$ac_objext conftest$ac_exeext
11776 if { (ac_try="$ac_link"
11777 case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11780 esac
11781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11782 $as_echo "$ac_try_echo") >&5
11783 (eval "$ac_link") 2>conftest.er1
11784 ac_status=$?
11785 grep -v '^ *+' conftest.er1 >conftest.err
11786 rm -f conftest.er1
11787 cat conftest.err >&5
11788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } && {
11790 test -z "$ac_c_werror_flag" ||
11791 test ! -s conftest.err
11792 } && test -s conftest$ac_exeext && {
11793 test "$cross_compiling" = yes ||
11794 $as_test_x conftest$ac_exeext
11795 }; then
11796 eval "$as_ac_var=yes"
11797 else
11798 $as_echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 eval "$as_ac_var=no"
11804 rm -rf conftest.dSYM
11805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11806 conftest$ac_exeext conftest.$ac_ext
11808 ac_res=`eval 'as_val=${'$as_ac_var'}
11809 $as_echo "$as_val"'`
11810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11811 $as_echo "$ac_res" >&6; }
11812 if test `eval 'as_val=${'$as_ac_var'}
11813 $as_echo "$as_val"'` = yes; then
11814 cat >>confdefs.h <<_ACEOF
11815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11816 _ACEOF
11817 GTK_COMPILES=yes
11819 done
11821 if test "${GTK_COMPILES}" != "yes"; then
11822 if test "$USE_X_TOOLKIT" != "maybe"; then
11823 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11824 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11825 { (exit 1); exit 1; }; };
11827 else
11828 HAVE_GTK=yes
11830 cat >>confdefs.h <<\_ACEOF
11831 #define USE_GTK 1
11832 _ACEOF
11834 GTK_OBJ=gtkutil.o
11835 USE_X_TOOLKIT=none
11836 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11838 else
11839 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11840 closing open displays. This is no problem if you just use
11841 one display, but if you use more than one and close one of them
11842 Emacs may crash." >&5
11843 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11844 closing open displays. This is no problem if you just use
11845 one display, but if you use more than one and close one of them
11846 Emacs may crash." >&2;}
11847 sleep 3
11855 if test "${HAVE_GTK}" = "yes"; then
11857 if test "$with_toolkit_scroll_bars" != no; then
11858 with_toolkit_scroll_bars=yes
11861 HAVE_GTK_MULTIDISPLAY=no
11863 for ac_func in gdk_display_open
11865 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11866 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11867 $as_echo_n "checking for $ac_func... " >&6; }
11868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11869 $as_echo_n "(cached) " >&6
11870 else
11871 cat >conftest.$ac_ext <<_ACEOF
11872 /* confdefs.h. */
11873 _ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11879 #define $ac_func innocuous_$ac_func
11881 /* System header to define __stub macros and hopefully few prototypes,
11882 which can conflict with char $ac_func (); below.
11883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11884 <limits.h> exists even on freestanding compilers. */
11886 #ifdef __STDC__
11887 # include <limits.h>
11888 #else
11889 # include <assert.h>
11890 #endif
11892 #undef $ac_func
11894 /* Override any GCC internal prototype to avoid an error.
11895 Use char because int might match the return type of a GCC
11896 builtin and then its argument prototype would still apply. */
11897 #ifdef __cplusplus
11898 extern "C"
11899 #endif
11900 char $ac_func ();
11901 /* The GNU C library defines this for functions which it implements
11902 to always fail with ENOSYS. Some functions are actually named
11903 something starting with __ and the normal name is an alias. */
11904 #if defined __stub_$ac_func || defined __stub___$ac_func
11905 choke me
11906 #endif
11909 main ()
11911 return $ac_func ();
11913 return 0;
11915 _ACEOF
11916 rm -f conftest.$ac_objext conftest$ac_exeext
11917 if { (ac_try="$ac_link"
11918 case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921 esac
11922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923 $as_echo "$ac_try_echo") >&5
11924 (eval "$ac_link") 2>conftest.er1
11925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
11929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest$ac_exeext && {
11934 test "$cross_compiling" = yes ||
11935 $as_test_x conftest$ac_exeext
11936 }; then
11937 eval "$as_ac_var=yes"
11938 else
11939 $as_echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11942 eval "$as_ac_var=no"
11945 rm -rf conftest.dSYM
11946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11947 conftest$ac_exeext conftest.$ac_ext
11949 ac_res=`eval 'as_val=${'$as_ac_var'}
11950 $as_echo "$as_val"'`
11951 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11952 $as_echo "$ac_res" >&6; }
11953 if test `eval 'as_val=${'$as_ac_var'}
11954 $as_echo "$as_val"'` = yes; then
11955 cat >>confdefs.h <<_ACEOF
11956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11957 _ACEOF
11958 HAVE_GTK_MULTIDISPLAY=yes
11960 done
11962 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11964 cat >>confdefs.h <<\_ACEOF
11965 #define HAVE_GTK_MULTIDISPLAY 1
11966 _ACEOF
11970 HAVE_GTK_FILE_SELECTION=no
11971 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11972 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11973 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11974 $as_echo_n "(cached) " >&6
11975 else
11976 cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h. */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 $ac_includes_default
11983 #include <gtk/gtk.h>
11986 main ()
11988 #ifndef GTK_TYPE_FILE_SELECTION
11989 (void) GTK_TYPE_FILE_SELECTION;
11990 #endif
11993 return 0;
11995 _ACEOF
11996 rm -f conftest.$ac_objext
11997 if { (ac_try="$ac_compile"
11998 case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12001 esac
12002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12003 $as_echo "$ac_try_echo") >&5
12004 (eval "$ac_compile") 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest.$ac_objext; then
12014 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12015 else
12016 $as_echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12025 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12026 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12027 HAVE_GTK_FILE_SELECTION=yes
12028 else
12029 HAVE_GTK_FILE_SELECTION=no
12032 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12034 for ac_func in gtk_file_selection_new
12036 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12037 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12038 $as_echo_n "checking for $ac_func... " >&6; }
12039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12040 $as_echo_n "(cached) " >&6
12041 else
12042 cat >conftest.$ac_ext <<_ACEOF
12043 /* confdefs.h. */
12044 _ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12050 #define $ac_func innocuous_$ac_func
12052 /* System header to define __stub macros and hopefully few prototypes,
12053 which can conflict with char $ac_func (); below.
12054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12055 <limits.h> exists even on freestanding compilers. */
12057 #ifdef __STDC__
12058 # include <limits.h>
12059 #else
12060 # include <assert.h>
12061 #endif
12063 #undef $ac_func
12065 /* Override any GCC internal prototype to avoid an error.
12066 Use char because int might match the return type of a GCC
12067 builtin and then its argument prototype would still apply. */
12068 #ifdef __cplusplus
12069 extern "C"
12070 #endif
12071 char $ac_func ();
12072 /* The GNU C library defines this for functions which it implements
12073 to always fail with ENOSYS. Some functions are actually named
12074 something starting with __ and the normal name is an alias. */
12075 #if defined __stub_$ac_func || defined __stub___$ac_func
12076 choke me
12077 #endif
12080 main ()
12082 return $ac_func ();
12084 return 0;
12086 _ACEOF
12087 rm -f conftest.$ac_objext conftest$ac_exeext
12088 if { (ac_try="$ac_link"
12089 case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12092 esac
12093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12094 $as_echo "$ac_try_echo") >&5
12095 (eval "$ac_link") 2>conftest.er1
12096 ac_status=$?
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
12100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } && {
12102 test -z "$ac_c_werror_flag" ||
12103 test ! -s conftest.err
12104 } && test -s conftest$ac_exeext && {
12105 test "$cross_compiling" = yes ||
12106 $as_test_x conftest$ac_exeext
12107 }; then
12108 eval "$as_ac_var=yes"
12109 else
12110 $as_echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 eval "$as_ac_var=no"
12116 rm -rf conftest.dSYM
12117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12118 conftest$ac_exeext conftest.$ac_ext
12120 ac_res=`eval 'as_val=${'$as_ac_var'}
12121 $as_echo "$as_val"'`
12122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12123 $as_echo "$ac_res" >&6; }
12124 if test `eval 'as_val=${'$as_ac_var'}
12125 $as_echo "$as_val"'` = yes; then
12126 cat >>confdefs.h <<_ACEOF
12127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12128 _ACEOF
12129 HAVE_GTK_FILE_SELECTION=yes
12130 else
12131 HAVE_GTK_FILE_SELECTION=no
12133 done
12137 HAVE_GTK_FILE_CHOOSER=no
12138 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12139 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12140 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12141 $as_echo_n "(cached) " >&6
12142 else
12143 cat >conftest.$ac_ext <<_ACEOF
12144 /* confdefs.h. */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12149 $ac_includes_default
12150 #include <gtk/gtk.h>
12153 main ()
12155 #ifndef GTK_TYPE_FILE_CHOOSER
12156 (void) GTK_TYPE_FILE_CHOOSER;
12157 #endif
12160 return 0;
12162 _ACEOF
12163 rm -f conftest.$ac_objext
12164 if { (ac_try="$ac_compile"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168 esac
12169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12170 $as_echo "$ac_try_echo") >&5
12171 (eval "$ac_compile") 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest.$ac_objext; then
12181 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12182 else
12183 $as_echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12192 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12193 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12194 HAVE_GTK_FILE_CHOOSER=yes
12195 else
12196 HAVE_GTK_FILE_CHOOSER=no
12199 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12201 for ac_func in gtk_file_chooser_dialog_new
12203 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12204 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12205 $as_echo_n "checking for $ac_func... " >&6; }
12206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12207 $as_echo_n "(cached) " >&6
12208 else
12209 cat >conftest.$ac_ext <<_ACEOF
12210 /* confdefs.h. */
12211 _ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12217 #define $ac_func innocuous_$ac_func
12219 /* System header to define __stub macros and hopefully few prototypes,
12220 which can conflict with char $ac_func (); below.
12221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12222 <limits.h> exists even on freestanding compilers. */
12224 #ifdef __STDC__
12225 # include <limits.h>
12226 #else
12227 # include <assert.h>
12228 #endif
12230 #undef $ac_func
12232 /* Override any GCC internal prototype to avoid an error.
12233 Use char because int might match the return type of a GCC
12234 builtin and then its argument prototype would still apply. */
12235 #ifdef __cplusplus
12236 extern "C"
12237 #endif
12238 char $ac_func ();
12239 /* The GNU C library defines this for functions which it implements
12240 to always fail with ENOSYS. Some functions are actually named
12241 something starting with __ and the normal name is an alias. */
12242 #if defined __stub_$ac_func || defined __stub___$ac_func
12243 choke me
12244 #endif
12247 main ()
12249 return $ac_func ();
12251 return 0;
12253 _ACEOF
12254 rm -f conftest.$ac_objext conftest$ac_exeext
12255 if { (ac_try="$ac_link"
12256 case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259 esac
12260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12261 $as_echo "$ac_try_echo") >&5
12262 (eval "$ac_link") 2>conftest.er1
12263 ac_status=$?
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
12267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } && {
12269 test -z "$ac_c_werror_flag" ||
12270 test ! -s conftest.err
12271 } && test -s conftest$ac_exeext && {
12272 test "$cross_compiling" = yes ||
12273 $as_test_x conftest$ac_exeext
12274 }; then
12275 eval "$as_ac_var=yes"
12276 else
12277 $as_echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 eval "$as_ac_var=no"
12283 rm -rf conftest.dSYM
12284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12285 conftest$ac_exeext conftest.$ac_ext
12287 ac_res=`eval 'as_val=${'$as_ac_var'}
12288 $as_echo "$as_val"'`
12289 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12290 $as_echo "$ac_res" >&6; }
12291 if test `eval 'as_val=${'$as_ac_var'}
12292 $as_echo "$as_val"'` = yes; then
12293 cat >>confdefs.h <<_ACEOF
12294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12295 _ACEOF
12296 HAVE_GTK_FILE_CHOOSER=yes
12297 else
12298 HAVE_GTK_FILE_CHOOSER=no
12300 done
12304 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12305 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12307 cat >>confdefs.h <<\_ACEOF
12308 #define HAVE_GTK_FILE_BOTH 1
12309 _ACEOF
12313 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12314 HAVE_GTK_AND_PTHREAD=no
12316 for ac_header in pthread.h
12318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12320 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12321 $as_echo_n "checking for $ac_header... " >&6; }
12322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12323 $as_echo_n "(cached) " >&6
12325 ac_res=`eval 'as_val=${'$as_ac_Header'}
12326 $as_echo "$as_val"'`
12327 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12328 $as_echo "$ac_res" >&6; }
12329 else
12330 # Is the header compilable?
12331 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12332 $as_echo_n "checking $ac_header usability... " >&6; }
12333 cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h. */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12339 $ac_includes_default
12340 #include <$ac_header>
12341 _ACEOF
12342 rm -f conftest.$ac_objext
12343 if { (ac_try="$ac_compile"
12344 case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12347 esac
12348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12349 $as_echo "$ac_try_echo") >&5
12350 (eval "$ac_compile") 2>conftest.er1
12351 ac_status=$?
12352 grep -v '^ *+' conftest.er1 >conftest.err
12353 rm -f conftest.er1
12354 cat conftest.err >&5
12355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } && {
12357 test -z "$ac_c_werror_flag" ||
12358 test ! -s conftest.err
12359 } && test -s conftest.$ac_objext; then
12360 ac_header_compiler=yes
12361 else
12362 $as_echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_header_compiler=no
12368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12369 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12370 $as_echo "$ac_header_compiler" >&6; }
12372 # Is the header present?
12373 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12374 $as_echo_n "checking $ac_header presence... " >&6; }
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h. */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381 #include <$ac_header>
12382 _ACEOF
12383 if { (ac_try="$ac_cpp conftest.$ac_ext"
12384 case "(($ac_try" in
12385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386 *) ac_try_echo=$ac_try;;
12387 esac
12388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12389 $as_echo "$ac_try_echo") >&5
12390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12391 ac_status=$?
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
12395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } >/dev/null && {
12397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12398 test ! -s conftest.err
12399 }; then
12400 ac_header_preproc=yes
12401 else
12402 $as_echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12405 ac_header_preproc=no
12408 rm -f conftest.err conftest.$ac_ext
12409 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12410 $as_echo "$ac_header_preproc" >&6; }
12412 # So? What about this header?
12413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12414 yes:no: )
12415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12416 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12418 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12419 ac_header_preproc=yes
12421 no:yes:* )
12422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12423 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12425 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12427 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12429 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12431 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12433 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12436 esac
12437 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12438 $as_echo_n "checking for $ac_header... " >&6; }
12439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12440 $as_echo_n "(cached) " >&6
12441 else
12442 eval "$as_ac_Header=\$ac_header_preproc"
12444 ac_res=`eval 'as_val=${'$as_ac_Header'}
12445 $as_echo "$as_val"'`
12446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12447 $as_echo "$ac_res" >&6; }
12450 if test `eval 'as_val=${'$as_ac_Header'}
12451 $as_echo "$as_val"'` = yes; then
12452 cat >>confdefs.h <<_ACEOF
12453 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12454 _ACEOF
12458 done
12460 if test "$ac_cv_header_pthread_h"; then
12461 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12462 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12463 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12464 $as_echo_n "(cached) " >&6
12465 else
12466 ac_check_lib_save_LIBS=$LIBS
12467 LIBS="-lpthread $LIBS"
12468 cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h. */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12475 /* Override any GCC internal prototype to avoid an error.
12476 Use char because int might match the return type of a GCC
12477 builtin and then its argument prototype would still apply. */
12478 #ifdef __cplusplus
12479 extern "C"
12480 #endif
12481 char pthread_self ();
12483 main ()
12485 return pthread_self ();
12487 return 0;
12489 _ACEOF
12490 rm -f conftest.$ac_objext conftest$ac_exeext
12491 if { (ac_try="$ac_link"
12492 case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12495 esac
12496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12497 $as_echo "$ac_try_echo") >&5
12498 (eval "$ac_link") 2>conftest.er1
12499 ac_status=$?
12500 grep -v '^ *+' conftest.er1 >conftest.err
12501 rm -f conftest.er1
12502 cat conftest.err >&5
12503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } && {
12505 test -z "$ac_c_werror_flag" ||
12506 test ! -s conftest.err
12507 } && test -s conftest$ac_exeext && {
12508 test "$cross_compiling" = yes ||
12509 $as_test_x conftest$ac_exeext
12510 }; then
12511 ac_cv_lib_pthread_pthread_self=yes
12512 else
12513 $as_echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12516 ac_cv_lib_pthread_pthread_self=no
12519 rm -rf conftest.dSYM
12520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12521 conftest$ac_exeext conftest.$ac_ext
12522 LIBS=$ac_check_lib_save_LIBS
12524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12525 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12526 if test $ac_cv_lib_pthread_pthread_self = yes; then
12527 HAVE_GTK_AND_PTHREAD=yes
12531 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12532 case "${canonical}" in
12533 *-hpux*) ;;
12534 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12535 esac
12537 cat >>confdefs.h <<\_ACEOF
12538 #define HAVE_GTK_AND_PTHREAD 1
12539 _ACEOF
12545 HAVE_DBUS=no
12546 DBUS_OBJ=
12547 if test "${with_dbus}" = "yes"; then
12549 succeeded=no
12551 # Extract the first word of "pkg-config", so it can be a program name with args.
12552 set dummy pkg-config; ac_word=$2
12553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12554 $as_echo_n "checking for $ac_word... " >&6; }
12555 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12556 $as_echo_n "(cached) " >&6
12557 else
12558 case $PKG_CONFIG in
12559 [\\/]* | ?:[\\/]*)
12560 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564 for as_dir in $PATH
12566 IFS=$as_save_IFS
12567 test -z "$as_dir" && as_dir=.
12568 for ac_exec_ext in '' $ac_executable_extensions; do
12569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12570 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12572 break 2
12574 done
12575 done
12576 IFS=$as_save_IFS
12578 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12580 esac
12582 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12583 if test -n "$PKG_CONFIG"; then
12584 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12585 $as_echo "$PKG_CONFIG" >&6; }
12586 else
12587 { $as_echo "$as_me:$LINENO: result: no" >&5
12588 $as_echo "no" >&6; }
12593 if test "$PKG_CONFIG" = "no" ; then
12594 HAVE_DBUS=no
12595 else
12596 PKG_CONFIG_MIN_VERSION=0.9.0
12597 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12598 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12599 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12601 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12602 { $as_echo "$as_me:$LINENO: result: yes" >&5
12603 $as_echo "yes" >&6; }
12604 succeeded=yes
12606 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12607 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12608 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12609 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12610 $as_echo "$DBUS_CFLAGS" >&6; }
12612 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12613 $as_echo_n "checking DBUS_LIBS... " >&6; }
12614 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12615 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12616 $as_echo "$DBUS_LIBS" >&6; }
12617 else
12618 { $as_echo "$as_me:$LINENO: result: no" >&5
12619 $as_echo "no" >&6; }
12620 DBUS_CFLAGS=""
12621 DBUS_LIBS=""
12622 ## If we have a custom action on failure, don't print errors, but
12623 ## do set a variable so people can do so.
12624 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12630 else
12631 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12632 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12636 if test $succeeded = yes; then
12637 HAVE_DBUS=yes
12638 else
12639 HAVE_DBUS=no
12642 if test "$HAVE_DBUS" = yes; then
12643 LIBS="$LIBS $DBUS_LIBS"
12645 cat >>confdefs.h <<\_ACEOF
12646 #define HAVE_DBUS 1
12647 _ACEOF
12650 for ac_func in dbus_watch_get_unix_fd
12652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12653 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12654 $as_echo_n "checking for $ac_func... " >&6; }
12655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12656 $as_echo_n "(cached) " >&6
12657 else
12658 cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h. */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12666 #define $ac_func innocuous_$ac_func
12668 /* System header to define __stub macros and hopefully few prototypes,
12669 which can conflict with char $ac_func (); below.
12670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12671 <limits.h> exists even on freestanding compilers. */
12673 #ifdef __STDC__
12674 # include <limits.h>
12675 #else
12676 # include <assert.h>
12677 #endif
12679 #undef $ac_func
12681 /* Override any GCC internal prototype to avoid an error.
12682 Use char because int might match the return type of a GCC
12683 builtin and then its argument prototype would still apply. */
12684 #ifdef __cplusplus
12685 extern "C"
12686 #endif
12687 char $ac_func ();
12688 /* The GNU C library defines this for functions which it implements
12689 to always fail with ENOSYS. Some functions are actually named
12690 something starting with __ and the normal name is an alias. */
12691 #if defined __stub_$ac_func || defined __stub___$ac_func
12692 choke me
12693 #endif
12696 main ()
12698 return $ac_func ();
12700 return 0;
12702 _ACEOF
12703 rm -f conftest.$ac_objext conftest$ac_exeext
12704 if { (ac_try="$ac_link"
12705 case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12708 esac
12709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12710 $as_echo "$ac_try_echo") >&5
12711 (eval "$ac_link") 2>conftest.er1
12712 ac_status=$?
12713 grep -v '^ *+' conftest.er1 >conftest.err
12714 rm -f conftest.er1
12715 cat conftest.err >&5
12716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } && {
12718 test -z "$ac_c_werror_flag" ||
12719 test ! -s conftest.err
12720 } && test -s conftest$ac_exeext && {
12721 test "$cross_compiling" = yes ||
12722 $as_test_x conftest$ac_exeext
12723 }; then
12724 eval "$as_ac_var=yes"
12725 else
12726 $as_echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12729 eval "$as_ac_var=no"
12732 rm -rf conftest.dSYM
12733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12734 conftest$ac_exeext conftest.$ac_ext
12736 ac_res=`eval 'as_val=${'$as_ac_var'}
12737 $as_echo "$as_val"'`
12738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12739 $as_echo "$ac_res" >&6; }
12740 if test `eval 'as_val=${'$as_ac_var'}
12741 $as_echo "$as_val"'` = yes; then
12742 cat >>confdefs.h <<_ACEOF
12743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12744 _ACEOF
12747 done
12749 DBUS_OBJ=dbusbind.o
12754 HAVE_GCONF=no
12755 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12757 succeeded=no
12759 # Extract the first word of "pkg-config", so it can be a program name with args.
12760 set dummy pkg-config; ac_word=$2
12761 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12762 $as_echo_n "checking for $ac_word... " >&6; }
12763 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12764 $as_echo_n "(cached) " >&6
12765 else
12766 case $PKG_CONFIG in
12767 [\\/]* | ?:[\\/]*)
12768 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $PATH
12774 IFS=$as_save_IFS
12775 test -z "$as_dir" && as_dir=.
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12778 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12779 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12780 break 2
12782 done
12783 done
12784 IFS=$as_save_IFS
12786 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12788 esac
12790 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12791 if test -n "$PKG_CONFIG"; then
12792 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12793 $as_echo "$PKG_CONFIG" >&6; }
12794 else
12795 { $as_echo "$as_me:$LINENO: result: no" >&5
12796 $as_echo "no" >&6; }
12801 if test "$PKG_CONFIG" = "no" ; then
12802 HAVE_GCONF=no
12803 else
12804 PKG_CONFIG_MIN_VERSION=0.9.0
12805 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12806 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12807 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12809 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12810 { $as_echo "$as_me:$LINENO: result: yes" >&5
12811 $as_echo "yes" >&6; }
12812 succeeded=yes
12814 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12815 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12816 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12817 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12818 $as_echo "$GCONF_CFLAGS" >&6; }
12820 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12821 $as_echo_n "checking GCONF_LIBS... " >&6; }
12822 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12823 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12824 $as_echo "$GCONF_LIBS" >&6; }
12825 else
12826 { $as_echo "$as_me:$LINENO: result: no" >&5
12827 $as_echo "no" >&6; }
12828 GCONF_CFLAGS=""
12829 GCONF_LIBS=""
12830 ## If we have a custom action on failure, don't print errors, but
12831 ## do set a variable so people can do so.
12832 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12838 else
12839 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12840 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12844 if test $succeeded = yes; then
12845 HAVE_GCONF=yes
12846 else
12847 HAVE_GCONF=no
12850 if test "$HAVE_GCONF" = yes; then
12852 cat >>confdefs.h <<\_ACEOF
12853 #define HAVE_GCONF 1
12854 _ACEOF
12859 HAVE_LIBSELINUX=no
12860 LIBSELINUX_LIBS=
12861 if test "${with_selinux}" = "yes"; then
12862 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
12863 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12864 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
12865 $as_echo_n "(cached) " >&6
12866 else
12867 ac_check_lib_save_LIBS=$LIBS
12868 LIBS="-lselinux $LIBS"
12869 cat >conftest.$ac_ext <<_ACEOF
12870 /* confdefs.h. */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h. */
12876 /* Override any GCC internal prototype to avoid an error.
12877 Use char because int might match the return type of a GCC
12878 builtin and then its argument prototype would still apply. */
12879 #ifdef __cplusplus
12880 extern "C"
12881 #endif
12882 char lgetfilecon ();
12884 main ()
12886 return lgetfilecon ();
12888 return 0;
12890 _ACEOF
12891 rm -f conftest.$ac_objext conftest$ac_exeext
12892 if { (ac_try="$ac_link"
12893 case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12896 esac
12897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12898 $as_echo "$ac_try_echo") >&5
12899 (eval "$ac_link") 2>conftest.er1
12900 ac_status=$?
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
12904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } && {
12906 test -z "$ac_c_werror_flag" ||
12907 test ! -s conftest.err
12908 } && test -s conftest$ac_exeext && {
12909 test "$cross_compiling" = yes ||
12910 $as_test_x conftest$ac_exeext
12911 }; then
12912 ac_cv_lib_selinux_lgetfilecon=yes
12913 else
12914 $as_echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12917 ac_cv_lib_selinux_lgetfilecon=no
12920 rm -rf conftest.dSYM
12921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12922 conftest$ac_exeext conftest.$ac_ext
12923 LIBS=$ac_check_lib_save_LIBS
12925 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12926 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12927 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
12928 HAVE_LIBSELINUX=yes
12929 else
12930 HAVE_LIBSELINUX=no
12933 if test "$HAVE_LIBSELINUX" = yes; then
12935 cat >>confdefs.h <<\_ACEOF
12936 #define HAVE_LIBSELINUX 1
12937 _ACEOF
12939 LIBSELINUX_LIBS=-lselinux
12944 HAVE_XAW3D=no
12945 LUCID_LIBW=
12946 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12947 if test "$with_xaw3d" != no; then
12948 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12949 $as_echo_n "checking for xaw3d... " >&6; }
12950 if test "${emacs_cv_xaw3d+set}" = set; then
12951 $as_echo_n "(cached) " >&6
12952 else
12953 cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h. */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12960 #include <X11/Intrinsic.h>
12961 #include <X11/Xaw3d/Simple.h>
12963 main ()
12967 return 0;
12969 _ACEOF
12970 rm -f conftest.$ac_objext conftest$ac_exeext
12971 if { (ac_try="$ac_link"
12972 case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975 esac
12976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12977 $as_echo "$ac_try_echo") >&5
12978 (eval "$ac_link") 2>conftest.er1
12979 ac_status=$?
12980 grep -v '^ *+' conftest.er1 >conftest.err
12981 rm -f conftest.er1
12982 cat conftest.err >&5
12983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } && {
12985 test -z "$ac_c_werror_flag" ||
12986 test ! -s conftest.err
12987 } && test -s conftest$ac_exeext && {
12988 test "$cross_compiling" = yes ||
12989 $as_test_x conftest$ac_exeext
12990 }; then
12991 emacs_cv_xaw3d=yes
12992 else
12993 $as_echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12996 emacs_cv_xaw3d=no
12999 rm -rf conftest.dSYM
13000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13001 conftest$ac_exeext conftest.$ac_ext
13004 else
13005 emacs_cv_xaw3d=no
13007 if test $emacs_cv_xaw3d = yes; then
13008 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13009 $as_echo "yes; using Lucid toolkit" >&6; }
13010 USE_X_TOOLKIT=LUCID
13011 HAVE_XAW3D=yes
13012 LUCID_LIBW=-lXaw3d
13014 cat >>confdefs.h <<\_ACEOF
13015 #define HAVE_XAW3D 1
13016 _ACEOF
13018 else
13019 { $as_echo "$as_me:$LINENO: result: no" >&5
13020 $as_echo "no" >&6; }
13021 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13022 $as_echo_n "checking for libXaw... " >&6; }
13023 if test "${emacs_cv_xaw+set}" = set; then
13024 $as_echo_n "(cached) " >&6
13025 else
13026 cat >conftest.$ac_ext <<_ACEOF
13027 /* confdefs.h. */
13028 _ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13033 #include <X11/Intrinsic.h>
13034 #include <X11/Xaw/Simple.h>
13036 main ()
13040 return 0;
13042 _ACEOF
13043 rm -f conftest.$ac_objext conftest$ac_exeext
13044 if { (ac_try="$ac_link"
13045 case "(($ac_try" in
13046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047 *) ac_try_echo=$ac_try;;
13048 esac
13049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13050 $as_echo "$ac_try_echo") >&5
13051 (eval "$ac_link") 2>conftest.er1
13052 ac_status=$?
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } && {
13058 test -z "$ac_c_werror_flag" ||
13059 test ! -s conftest.err
13060 } && test -s conftest$ac_exeext && {
13061 test "$cross_compiling" = yes ||
13062 $as_test_x conftest$ac_exeext
13063 }; then
13064 emacs_cv_xaw=yes
13065 else
13066 $as_echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13069 emacs_cv_xaw=no
13072 rm -rf conftest.dSYM
13073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13074 conftest$ac_exeext conftest.$ac_ext
13077 if test $emacs_cv_xaw = yes; then
13078 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13079 $as_echo "yes; using Lucid toolkit" >&6; }
13080 USE_X_TOOLKIT=LUCID
13081 LUCID_LIBW=-lXaw
13082 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13083 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13084 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13085 { (exit 1); exit 1; }; }
13086 else
13087 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13088 $as_echo "no; do not use toolkit by default" >&6; }
13089 USE_X_TOOLKIT=none
13094 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13096 LIBXTR6=
13097 if test "${USE_X_TOOLKIT}" != "none"; then
13098 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13099 $as_echo_n "checking X11 toolkit version... " >&6; }
13100 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13101 $as_echo_n "(cached) " >&6
13102 else
13103 cat >conftest.$ac_ext <<_ACEOF
13104 /* confdefs.h. */
13105 _ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13109 #include <X11/Intrinsic.h>
13111 main ()
13113 #if XtSpecificationRelease < 6
13114 fail;
13115 #endif
13118 return 0;
13120 _ACEOF
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (ac_try="$ac_link"
13123 case "(($ac_try" in
13124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125 *) ac_try_echo=$ac_try;;
13126 esac
13127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13128 $as_echo "$ac_try_echo") >&5
13129 (eval "$ac_link") 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } && {
13136 test -z "$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13138 } && test -s conftest$ac_exeext && {
13139 test "$cross_compiling" = yes ||
13140 $as_test_x conftest$ac_exeext
13141 }; then
13142 emacs_cv_x11_toolkit_version_6=yes
13143 else
13144 $as_echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13147 emacs_cv_x11_toolkit_version_6=no
13150 rm -rf conftest.dSYM
13151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13152 conftest$ac_exeext conftest.$ac_ext
13155 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13156 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13157 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13158 $as_echo "6 or newer" >&6; }
13160 cat >>confdefs.h <<\_ACEOF
13161 #define HAVE_X11XTR6 1
13162 _ACEOF
13164 LIBXTR6="-lSM -lICE"
13165 case "$opsys" in
13166 ## Use libw.a along with X11R6 Xt.
13167 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13168 esac
13169 else
13170 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13171 $as_echo "before 6" >&6; }
13174 OLDLIBS="$LIBS"
13175 if test x$HAVE_X11XTR6 = xyes; then
13176 LIBS="-lXt -lSM -lICE $LIBS"
13177 else
13178 LIBS="-lXt $LIBS"
13181 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13182 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13183 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13184 $as_echo_n "(cached) " >&6
13185 else
13186 ac_check_lib_save_LIBS=$LIBS
13187 LIBS="-lXmu $LIBS"
13188 cat >conftest.$ac_ext <<_ACEOF
13189 /* confdefs.h. */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13195 /* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13198 #ifdef __cplusplus
13199 extern "C"
13200 #endif
13201 char XmuConvertStandardSelection ();
13203 main ()
13205 return XmuConvertStandardSelection ();
13207 return 0;
13209 _ACEOF
13210 rm -f conftest.$ac_objext conftest$ac_exeext
13211 if { (ac_try="$ac_link"
13212 case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13215 esac
13216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13217 $as_echo "$ac_try_echo") >&5
13218 (eval "$ac_link") 2>conftest.er1
13219 ac_status=$?
13220 grep -v '^ *+' conftest.er1 >conftest.err
13221 rm -f conftest.er1
13222 cat conftest.err >&5
13223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } && {
13225 test -z "$ac_c_werror_flag" ||
13226 test ! -s conftest.err
13227 } && test -s conftest$ac_exeext && {
13228 test "$cross_compiling" = yes ||
13229 $as_test_x conftest$ac_exeext
13230 }; then
13231 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13232 else
13233 $as_echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13236 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13239 rm -rf conftest.dSYM
13240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13241 conftest$ac_exeext conftest.$ac_ext
13242 LIBS=$ac_check_lib_save_LIBS
13244 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13245 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13246 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13247 cat >>confdefs.h <<_ACEOF
13248 #define HAVE_LIBXMU 1
13249 _ACEOF
13251 LIBS="-lXmu $LIBS"
13255 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13259 LIBXMU=-lXmu
13260 case "$machine" in
13261 ## These machines don't supply Xmu.
13262 hpux* | aix4-2 )
13263 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" = "Xno" && LIBXMU=
13265 esac
13268 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13269 if test "${HAVE_X11}" = "yes"; then
13270 if test "${USE_X_TOOLKIT}" != "none"; then
13272 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13273 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13274 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13275 $as_echo_n "(cached) " >&6
13276 else
13277 ac_check_lib_save_LIBS=$LIBS
13278 LIBS="-lXext $LIBS"
13279 cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h. */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13286 /* Override any GCC internal prototype to avoid an error.
13287 Use char because int might match the return type of a GCC
13288 builtin and then its argument prototype would still apply. */
13289 #ifdef __cplusplus
13290 extern "C"
13291 #endif
13292 char XShapeQueryExtension ();
13294 main ()
13296 return XShapeQueryExtension ();
13298 return 0;
13300 _ACEOF
13301 rm -f conftest.$ac_objext conftest$ac_exeext
13302 if { (ac_try="$ac_link"
13303 case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13306 esac
13307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13308 $as_echo "$ac_try_echo") >&5
13309 (eval "$ac_link") 2>conftest.er1
13310 ac_status=$?
13311 grep -v '^ *+' conftest.er1 >conftest.err
13312 rm -f conftest.er1
13313 cat conftest.err >&5
13314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } && {
13316 test -z "$ac_c_werror_flag" ||
13317 test ! -s conftest.err
13318 } && test -s conftest$ac_exeext && {
13319 test "$cross_compiling" = yes ||
13320 $as_test_x conftest$ac_exeext
13321 }; then
13322 ac_cv_lib_Xext_XShapeQueryExtension=yes
13323 else
13324 $as_echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13327 ac_cv_lib_Xext_XShapeQueryExtension=no
13330 rm -rf conftest.dSYM
13331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13332 conftest$ac_exeext conftest.$ac_ext
13333 LIBS=$ac_check_lib_save_LIBS
13335 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13336 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13337 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13338 cat >>confdefs.h <<_ACEOF
13339 #define HAVE_LIBXEXT 1
13340 _ACEOF
13342 LIBS="-lXext $LIBS"
13349 LIBXP=
13350 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13351 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13352 $as_echo_n "checking for Motif version 2.1... " >&6; }
13353 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13354 $as_echo_n "(cached) " >&6
13355 else
13356 cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h. */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 #include <Xm/Xm.h>
13364 main ()
13366 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13367 int x = 5;
13368 #else
13369 Motif version prior to 2.1.
13370 #endif
13372 return 0;
13374 _ACEOF
13375 rm -f conftest.$ac_objext
13376 if { (ac_try="$ac_compile"
13377 case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13380 esac
13381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13382 $as_echo "$ac_try_echo") >&5
13383 (eval "$ac_compile") 2>conftest.er1
13384 ac_status=$?
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
13388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } && {
13390 test -z "$ac_c_werror_flag" ||
13391 test ! -s conftest.err
13392 } && test -s conftest.$ac_objext; then
13393 emacs_cv_motif_version_2_1=yes
13394 else
13395 $as_echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13398 emacs_cv_motif_version_2_1=no
13401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13404 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13405 if test $emacs_cv_motif_version_2_1 = yes; then
13406 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13407 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13408 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13409 $as_echo_n "(cached) " >&6
13410 else
13411 ac_check_lib_save_LIBS=$LIBS
13412 LIBS="-lXp $LIBS"
13413 cat >conftest.$ac_ext <<_ACEOF
13414 /* confdefs.h. */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13420 /* Override any GCC internal prototype to avoid an error.
13421 Use char because int might match the return type of a GCC
13422 builtin and then its argument prototype would still apply. */
13423 #ifdef __cplusplus
13424 extern "C"
13425 #endif
13426 char XpCreateContext ();
13428 main ()
13430 return XpCreateContext ();
13432 return 0;
13434 _ACEOF
13435 rm -f conftest.$ac_objext conftest$ac_exeext
13436 if { (ac_try="$ac_link"
13437 case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440 esac
13441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13442 $as_echo "$ac_try_echo") >&5
13443 (eval "$ac_link") 2>conftest.er1
13444 ac_status=$?
13445 grep -v '^ *+' conftest.er1 >conftest.err
13446 rm -f conftest.er1
13447 cat conftest.err >&5
13448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } && {
13450 test -z "$ac_c_werror_flag" ||
13451 test ! -s conftest.err
13452 } && test -s conftest$ac_exeext && {
13453 test "$cross_compiling" = yes ||
13454 $as_test_x conftest$ac_exeext
13455 }; then
13456 ac_cv_lib_Xp_XpCreateContext=yes
13457 else
13458 $as_echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13461 ac_cv_lib_Xp_XpCreateContext=no
13464 rm -rf conftest.dSYM
13465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13466 conftest$ac_exeext conftest.$ac_ext
13467 LIBS=$ac_check_lib_save_LIBS
13469 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13470 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13471 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13472 LIBXP=-lXp
13475 else
13476 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13477 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13478 if test "${emacs_cv_lesstif+set}" = set; then
13479 $as_echo_n "(cached) " >&6
13480 else
13481 # We put this in CFLAGS temporarily to precede other -I options
13482 # that might be in CFLAGS temporarily.
13483 # We put this in CPPFLAGS where it precedes the other -I options.
13484 OLD_CPPFLAGS=$CPPFLAGS
13485 OLD_CFLAGS=$CFLAGS
13486 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13487 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13488 cat >conftest.$ac_ext <<_ACEOF
13489 /* confdefs.h. */
13490 _ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13494 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13496 main ()
13498 int x = 5;
13500 return 0;
13502 _ACEOF
13503 rm -f conftest.$ac_objext
13504 if { (ac_try="$ac_compile"
13505 case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13508 esac
13509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13510 $as_echo "$ac_try_echo") >&5
13511 (eval "$ac_compile") 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && {
13518 test -z "$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 } && test -s conftest.$ac_objext; then
13521 emacs_cv_lesstif=yes
13522 else
13523 $as_echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13526 emacs_cv_lesstif=no
13529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13531 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13532 $as_echo "$emacs_cv_lesstif" >&6; }
13533 if test $emacs_cv_lesstif = yes; then
13534 # Make sure this -I option remains in CPPFLAGS after it is set
13535 # back to REAL_CPPFLAGS.
13536 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13537 # have those other -I options anyway. Ultimately, having this
13538 # directory ultimately in CPPFLAGS will be enough.
13539 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13540 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13541 else
13542 CFLAGS=$OLD_CFLAGS
13543 CPPFLAGS=$OLD_CPPFLAGS
13550 USE_TOOLKIT_SCROLL_BARS=no
13551 if test "${with_toolkit_scroll_bars}" != "no"; then
13552 if test "${USE_X_TOOLKIT}" != "none"; then
13553 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13554 cat >>confdefs.h <<\_ACEOF
13555 #define USE_TOOLKIT_SCROLL_BARS 1
13556 _ACEOF
13558 HAVE_XAW3D=no
13559 USE_TOOLKIT_SCROLL_BARS=yes
13560 elif test "${HAVE_XAW3D}" = "yes"; then
13561 cat >>confdefs.h <<\_ACEOF
13562 #define USE_TOOLKIT_SCROLL_BARS 1
13563 _ACEOF
13565 USE_TOOLKIT_SCROLL_BARS=yes
13567 elif test "${HAVE_GTK}" = "yes"; then
13568 cat >>confdefs.h <<\_ACEOF
13569 #define USE_TOOLKIT_SCROLL_BARS 1
13570 _ACEOF
13572 USE_TOOLKIT_SCROLL_BARS=yes
13573 elif test "${HAVE_NS}" = "yes"; then
13574 cat >>confdefs.h <<\_ACEOF
13575 #define USE_TOOLKIT_SCROLL_BARS 1
13576 _ACEOF
13578 USE_TOOLKIT_SCROLL_BARS=yes
13582 cat >conftest.$ac_ext <<_ACEOF
13583 /* confdefs.h. */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13589 #include <X11/Xlib.h>
13590 #include <X11/Xresource.h>
13592 main ()
13594 XIMProc callback;
13596 return 0;
13598 _ACEOF
13599 rm -f conftest.$ac_objext
13600 if { (ac_try="$ac_compile"
13601 case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13604 esac
13605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13606 $as_echo "$ac_try_echo") >&5
13607 (eval "$ac_compile") 2>conftest.er1
13608 ac_status=$?
13609 grep -v '^ *+' conftest.er1 >conftest.err
13610 rm -f conftest.er1
13611 cat conftest.err >&5
13612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } && {
13614 test -z "$ac_c_werror_flag" ||
13615 test ! -s conftest.err
13616 } && test -s conftest.$ac_objext; then
13617 HAVE_XIM=yes
13619 cat >>confdefs.h <<\_ACEOF
13620 #define HAVE_XIM 1
13621 _ACEOF
13623 else
13624 $as_echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13627 HAVE_XIM=no
13630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13633 if test "${with_xim}" != "no"; then
13635 cat >>confdefs.h <<\_ACEOF
13636 #define USE_XIM 1
13637 _ACEOF
13642 if test "${HAVE_XIM}" != "no"; then
13643 late_CFLAGS=$CFLAGS
13644 if test "$GCC" = yes; then
13645 CFLAGS="$CFLAGS --pedantic-errors"
13647 cat >conftest.$ac_ext <<_ACEOF
13648 /* confdefs.h. */
13649 _ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h. */
13654 #include <X11/Xlib.h>
13655 #include <X11/Xresource.h>
13657 main ()
13659 Display *display;
13660 XrmDatabase db;
13661 char *res_name;
13662 char *res_class;
13663 XIMProc callback;
13664 XPointer *client_data;
13665 #ifndef __GNUC__
13666 /* If we're not using GCC, it's probably not XFree86, and this is
13667 probably right, but we can't use something like --pedantic-errors. */
13668 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13669 char*, XIMProc, XPointer*);
13670 #endif
13671 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13672 client_data);
13674 return 0;
13676 _ACEOF
13677 rm -f conftest.$ac_objext
13678 if { (ac_try="$ac_compile"
13679 case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13682 esac
13683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13684 $as_echo "$ac_try_echo") >&5
13685 (eval "$ac_compile") 2>conftest.er1
13686 ac_status=$?
13687 grep -v '^ *+' conftest.er1 >conftest.err
13688 rm -f conftest.er1
13689 cat conftest.err >&5
13690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } && {
13692 test -z "$ac_c_werror_flag" ||
13693 test ! -s conftest.err
13694 } && test -s conftest.$ac_objext; then
13695 emacs_cv_arg6_star=yes
13696 else
13697 $as_echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705 if test "$emacs_cv_arg6_star" = yes; then
13706 cat >>confdefs.h <<\_ACEOF
13707 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13708 _ACEOF
13710 else
13711 cat >>confdefs.h <<\_ACEOF
13712 #define XRegisterIMInstantiateCallback_arg6 XPointer
13713 _ACEOF
13716 CFLAGS=$late_CFLAGS
13719 ### Start of font-backend (under any platform) section.
13720 # (nothing here yet -- this is a placeholder)
13721 ### End of font-backend (under any platform) section.
13723 ### Start of font-backend (under X11) section.
13724 if test "${HAVE_X11}" = "yes"; then
13726 succeeded=no
13728 # Extract the first word of "pkg-config", so it can be a program name with args.
13729 set dummy pkg-config; ac_word=$2
13730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13731 $as_echo_n "checking for $ac_word... " >&6; }
13732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13733 $as_echo_n "(cached) " >&6
13734 else
13735 case $PKG_CONFIG in
13736 [\\/]* | ?:[\\/]*)
13737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13741 for as_dir in $PATH
13743 IFS=$as_save_IFS
13744 test -z "$as_dir" && as_dir=.
13745 for ac_exec_ext in '' $ac_executable_extensions; do
13746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13747 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13749 break 2
13751 done
13752 done
13753 IFS=$as_save_IFS
13755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13757 esac
13759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13760 if test -n "$PKG_CONFIG"; then
13761 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13762 $as_echo "$PKG_CONFIG" >&6; }
13763 else
13764 { $as_echo "$as_me:$LINENO: result: no" >&5
13765 $as_echo "no" >&6; }
13770 if test "$PKG_CONFIG" = "no" ; then
13771 HAVE_FC=no
13772 else
13773 PKG_CONFIG_MIN_VERSION=0.9.0
13774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13775 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13776 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13778 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13779 { $as_echo "$as_me:$LINENO: result: yes" >&5
13780 $as_echo "yes" >&6; }
13781 succeeded=yes
13783 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13784 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13785 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13786 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13787 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13789 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13790 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13791 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13792 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13793 $as_echo "$FONTCONFIG_LIBS" >&6; }
13794 else
13795 { $as_echo "$as_me:$LINENO: result: no" >&5
13796 $as_echo "no" >&6; }
13797 FONTCONFIG_CFLAGS=""
13798 FONTCONFIG_LIBS=""
13799 ## If we have a custom action on failure, don't print errors, but
13800 ## do set a variable so people can do so.
13801 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13807 else
13808 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13809 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13813 if test $succeeded = yes; then
13814 HAVE_FC=yes
13815 else
13816 HAVE_FC=no
13820 ## Use -lXft if available, unless `--with-xft=no'.
13821 HAVE_XFT=maybe
13822 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13823 with_xft="no";
13825 if test "x${with_xft}" != "xno"; then
13828 succeeded=no
13830 # Extract the first word of "pkg-config", so it can be a program name with args.
13831 set dummy pkg-config; ac_word=$2
13832 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13833 $as_echo_n "checking for $ac_word... " >&6; }
13834 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13835 $as_echo_n "(cached) " >&6
13836 else
13837 case $PKG_CONFIG in
13838 [\\/]* | ?:[\\/]*)
13839 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13843 for as_dir in $PATH
13845 IFS=$as_save_IFS
13846 test -z "$as_dir" && as_dir=.
13847 for ac_exec_ext in '' $ac_executable_extensions; do
13848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13849 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13851 break 2
13853 done
13854 done
13855 IFS=$as_save_IFS
13857 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13859 esac
13861 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13862 if test -n "$PKG_CONFIG"; then
13863 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13864 $as_echo "$PKG_CONFIG" >&6; }
13865 else
13866 { $as_echo "$as_me:$LINENO: result: no" >&5
13867 $as_echo "no" >&6; }
13872 if test "$PKG_CONFIG" = "no" ; then
13873 HAVE_XFT=no
13874 else
13875 PKG_CONFIG_MIN_VERSION=0.9.0
13876 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13877 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13878 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13880 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13881 { $as_echo "$as_me:$LINENO: result: yes" >&5
13882 $as_echo "yes" >&6; }
13883 succeeded=yes
13885 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13886 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13887 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13888 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13889 $as_echo "$XFT_CFLAGS" >&6; }
13891 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13892 $as_echo_n "checking XFT_LIBS... " >&6; }
13893 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13894 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13895 $as_echo "$XFT_LIBS" >&6; }
13896 else
13897 { $as_echo "$as_me:$LINENO: result: no" >&5
13898 $as_echo "no" >&6; }
13899 XFT_CFLAGS=""
13900 XFT_LIBS=""
13901 ## If we have a custom action on failure, don't print errors, but
13902 ## do set a variable so people can do so.
13903 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13909 else
13910 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13911 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13915 if test $succeeded = yes; then
13917 else
13918 HAVE_XFT=no
13921 ## Because xftfont.c uses XRenderQueryExtension, we also
13922 ## need to link to -lXrender.
13923 HAVE_XRENDER=no
13924 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13925 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13926 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13927 $as_echo_n "(cached) " >&6
13928 else
13929 ac_check_lib_save_LIBS=$LIBS
13930 LIBS="-lXrender $LIBS"
13931 cat >conftest.$ac_ext <<_ACEOF
13932 /* confdefs.h. */
13933 _ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13938 /* Override any GCC internal prototype to avoid an error.
13939 Use char because int might match the return type of a GCC
13940 builtin and then its argument prototype would still apply. */
13941 #ifdef __cplusplus
13942 extern "C"
13943 #endif
13944 char XRenderQueryExtension ();
13946 main ()
13948 return XRenderQueryExtension ();
13950 return 0;
13952 _ACEOF
13953 rm -f conftest.$ac_objext conftest$ac_exeext
13954 if { (ac_try="$ac_link"
13955 case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13958 esac
13959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13960 $as_echo "$ac_try_echo") >&5
13961 (eval "$ac_link") 2>conftest.er1
13962 ac_status=$?
13963 grep -v '^ *+' conftest.er1 >conftest.err
13964 rm -f conftest.er1
13965 cat conftest.err >&5
13966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } && {
13968 test -z "$ac_c_werror_flag" ||
13969 test ! -s conftest.err
13970 } && test -s conftest$ac_exeext && {
13971 test "$cross_compiling" = yes ||
13972 $as_test_x conftest$ac_exeext
13973 }; then
13974 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13975 else
13976 $as_echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_cv_lib_Xrender_XRenderQueryExtension=no
13982 rm -rf conftest.dSYM
13983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13984 conftest$ac_exeext conftest.$ac_ext
13985 LIBS=$ac_check_lib_save_LIBS
13987 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13988 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13989 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13990 HAVE_XRENDER=yes
13993 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13994 OLD_CPPFLAGS="$CPPFLAGS"
13995 OLD_CFLAGS="$CFLAGS"
13996 OLD_LIBS="$LIBS"
13997 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13998 CFLAGS="$CFLAGS $XFT_CFLAGS"
13999 XFT_LIBS="-lXrender $XFT_LIBS"
14000 LIBS="$XFT_LIBS $LIBS"
14001 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14002 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14003 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14004 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14005 $as_echo_n "(cached) " >&6
14007 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14008 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14009 else
14010 # Is the header compilable?
14011 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14012 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14013 cat >conftest.$ac_ext <<_ACEOF
14014 /* confdefs.h. */
14015 _ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14019 $ac_includes_default
14020 #include <X11/Xft/Xft.h>
14021 _ACEOF
14022 rm -f conftest.$ac_objext
14023 if { (ac_try="$ac_compile"
14024 case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14027 esac
14028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14029 $as_echo "$ac_try_echo") >&5
14030 (eval "$ac_compile") 2>conftest.er1
14031 ac_status=$?
14032 grep -v '^ *+' conftest.er1 >conftest.err
14033 rm -f conftest.er1
14034 cat conftest.err >&5
14035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } && {
14037 test -z "$ac_c_werror_flag" ||
14038 test ! -s conftest.err
14039 } && test -s conftest.$ac_objext; then
14040 ac_header_compiler=yes
14041 else
14042 $as_echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_header_compiler=no
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14050 $as_echo "$ac_header_compiler" >&6; }
14052 # Is the header present?
14053 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14054 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14055 cat >conftest.$ac_ext <<_ACEOF
14056 /* confdefs.h. */
14057 _ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h. */
14061 #include <X11/Xft/Xft.h>
14062 _ACEOF
14063 if { (ac_try="$ac_cpp conftest.$ac_ext"
14064 case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14067 esac
14068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14069 $as_echo "$ac_try_echo") >&5
14070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14071 ac_status=$?
14072 grep -v '^ *+' conftest.er1 >conftest.err
14073 rm -f conftest.er1
14074 cat conftest.err >&5
14075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } >/dev/null && {
14077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14078 test ! -s conftest.err
14079 }; then
14080 ac_header_preproc=yes
14081 else
14082 $as_echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14085 ac_header_preproc=no
14088 rm -f conftest.err conftest.$ac_ext
14089 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14090 $as_echo "$ac_header_preproc" >&6; }
14092 # So? What about this header?
14093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14094 yes:no: )
14095 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14096 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14097 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14098 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14099 ac_header_preproc=yes
14101 no:yes:* )
14102 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14103 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14104 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14105 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14106 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14107 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14108 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14109 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14110 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14111 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14112 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14113 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14116 esac
14117 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14118 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14119 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14120 $as_echo_n "(cached) " >&6
14121 else
14122 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14124 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14125 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14128 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14129 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14130 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14131 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14132 $as_echo_n "(cached) " >&6
14133 else
14134 ac_check_lib_save_LIBS=$LIBS
14135 LIBS="-lXft $XFT_LIBS $LIBS"
14136 cat >conftest.$ac_ext <<_ACEOF
14137 /* confdefs.h. */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14146 #ifdef __cplusplus
14147 extern "C"
14148 #endif
14149 char XftFontOpen ();
14151 main ()
14153 return XftFontOpen ();
14155 return 0;
14157 _ACEOF
14158 rm -f conftest.$ac_objext conftest$ac_exeext
14159 if { (ac_try="$ac_link"
14160 case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14163 esac
14164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14165 $as_echo "$ac_try_echo") >&5
14166 (eval "$ac_link") 2>conftest.er1
14167 ac_status=$?
14168 grep -v '^ *+' conftest.er1 >conftest.err
14169 rm -f conftest.er1
14170 cat conftest.err >&5
14171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } && {
14173 test -z "$ac_c_werror_flag" ||
14174 test ! -s conftest.err
14175 } && test -s conftest$ac_exeext && {
14176 test "$cross_compiling" = yes ||
14177 $as_test_x conftest$ac_exeext
14178 }; then
14179 ac_cv_lib_Xft_XftFontOpen=yes
14180 else
14181 $as_echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14184 ac_cv_lib_Xft_XftFontOpen=no
14187 rm -rf conftest.dSYM
14188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14189 conftest$ac_exeext conftest.$ac_ext
14190 LIBS=$ac_check_lib_save_LIBS
14192 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14193 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14194 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14195 HAVE_XFT=yes
14202 if test "${HAVE_XFT}" = "yes"; then
14204 cat >>confdefs.h <<\_ACEOF
14205 #define HAVE_XFT 1
14206 _ACEOF
14209 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14210 else
14211 CPPFLAGS="$OLD_CPPFLAGS"
14212 CFLAGS="$OLD_CFLAGS"
14213 LIBS="$OLD_LIBS"
14214 fi # "${HAVE_XFT}" = "yes"
14215 fi # "$HAVE_XFT" != no
14216 fi # "x${with_xft}" != "xno"
14218 if test "$HAVE_XFT" != "yes"; then
14219 HAVE_XFT=no
14223 HAVE_FREETYPE=no
14224 ## We used to allow building with FreeType and without Xft.
14225 ## However, the ftx font backend driver is not in good shape.
14226 if test "${HAVE_XFT}" = "yes"; then
14227 HAVE_FREETYPE=yes
14228 FONTCONFIG_CFLAGS=
14229 FONTCONFIG_LIBS=
14232 HAVE_LIBOTF=no
14233 if test "${HAVE_FREETYPE}" = "yes"; then
14235 cat >>confdefs.h <<\_ACEOF
14236 #define HAVE_FREETYPE 1
14237 _ACEOF
14239 if test "${with_libotf}" != "no"; then
14241 succeeded=no
14243 # Extract the first word of "pkg-config", so it can be a program name with args.
14244 set dummy pkg-config; ac_word=$2
14245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14246 $as_echo_n "checking for $ac_word... " >&6; }
14247 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14248 $as_echo_n "(cached) " >&6
14249 else
14250 case $PKG_CONFIG in
14251 [\\/]* | ?:[\\/]*)
14252 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14256 for as_dir in $PATH
14258 IFS=$as_save_IFS
14259 test -z "$as_dir" && as_dir=.
14260 for ac_exec_ext in '' $ac_executable_extensions; do
14261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14262 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14264 break 2
14266 done
14267 done
14268 IFS=$as_save_IFS
14270 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14272 esac
14274 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14275 if test -n "$PKG_CONFIG"; then
14276 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14277 $as_echo "$PKG_CONFIG" >&6; }
14278 else
14279 { $as_echo "$as_me:$LINENO: result: no" >&5
14280 $as_echo "no" >&6; }
14285 if test "$PKG_CONFIG" = "no" ; then
14286 HAVE_LIBOTF=no
14287 else
14288 PKG_CONFIG_MIN_VERSION=0.9.0
14289 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14290 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14291 $as_echo_n "checking for libotf... " >&6; }
14293 if $PKG_CONFIG --exists "libotf" 2>&5; then
14294 { $as_echo "$as_me:$LINENO: result: yes" >&5
14295 $as_echo "yes" >&6; }
14296 succeeded=yes
14298 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14299 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14300 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14301 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14302 $as_echo "$LIBOTF_CFLAGS" >&6; }
14304 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14305 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14306 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14307 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14308 $as_echo "$LIBOTF_LIBS" >&6; }
14309 else
14310 { $as_echo "$as_me:$LINENO: result: no" >&5
14311 $as_echo "no" >&6; }
14312 LIBOTF_CFLAGS=""
14313 LIBOTF_LIBS=""
14314 ## If we have a custom action on failure, don't print errors, but
14315 ## do set a variable so people can do so.
14316 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14322 else
14323 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14324 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14328 if test $succeeded = yes; then
14329 HAVE_LIBOTF=yes
14330 else
14331 HAVE_LIBOTF=no
14334 if test "$HAVE_LIBOTF" = "yes"; then
14336 cat >>confdefs.h <<\_ACEOF
14337 #define HAVE_LIBOTF 1
14338 _ACEOF
14340 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14341 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14342 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14343 $as_echo_n "(cached) " >&6
14344 else
14345 ac_check_lib_save_LIBS=$LIBS
14346 LIBS="-lotf $LIBS"
14347 cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h. */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14354 /* Override any GCC internal prototype to avoid an error.
14355 Use char because int might match the return type of a GCC
14356 builtin and then its argument prototype would still apply. */
14357 #ifdef __cplusplus
14358 extern "C"
14359 #endif
14360 char OTF_get_variation_glyphs ();
14362 main ()
14364 return OTF_get_variation_glyphs ();
14366 return 0;
14368 _ACEOF
14369 rm -f conftest.$ac_objext conftest$ac_exeext
14370 if { (ac_try="$ac_link"
14371 case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374 esac
14375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14376 $as_echo "$ac_try_echo") >&5
14377 (eval "$ac_link") 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } && {
14384 test -z "$ac_c_werror_flag" ||
14385 test ! -s conftest.err
14386 } && test -s conftest$ac_exeext && {
14387 test "$cross_compiling" = yes ||
14388 $as_test_x conftest$ac_exeext
14389 }; then
14390 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14391 else
14392 $as_echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14395 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14398 rm -rf conftest.dSYM
14399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14400 conftest$ac_exeext conftest.$ac_ext
14401 LIBS=$ac_check_lib_save_LIBS
14403 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14404 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14405 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14406 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14407 else
14408 HAVE_OTF_GET_VARIATION_GLYPHS=no
14411 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14413 cat >>confdefs.h <<\_ACEOF
14414 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14415 _ACEOF
14422 HAVE_M17N_FLT=no
14423 if test "${HAVE_LIBOTF}" = yes; then
14424 if test "${with_m17n_flt}" != "no"; then
14426 succeeded=no
14428 # Extract the first word of "pkg-config", so it can be a program name with args.
14429 set dummy pkg-config; ac_word=$2
14430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14431 $as_echo_n "checking for $ac_word... " >&6; }
14432 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14433 $as_echo_n "(cached) " >&6
14434 else
14435 case $PKG_CONFIG in
14436 [\\/]* | ?:[\\/]*)
14437 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 for as_dir in $PATH
14443 IFS=$as_save_IFS
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
14446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14447 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14449 break 2
14451 done
14452 done
14453 IFS=$as_save_IFS
14455 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14457 esac
14459 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14460 if test -n "$PKG_CONFIG"; then
14461 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14462 $as_echo "$PKG_CONFIG" >&6; }
14463 else
14464 { $as_echo "$as_me:$LINENO: result: no" >&5
14465 $as_echo "no" >&6; }
14470 if test "$PKG_CONFIG" = "no" ; then
14471 HAVE_M17N_FLT=no
14472 else
14473 PKG_CONFIG_MIN_VERSION=0.9.0
14474 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14475 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14476 $as_echo_n "checking for m17n-flt... " >&6; }
14478 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14479 { $as_echo "$as_me:$LINENO: result: yes" >&5
14480 $as_echo "yes" >&6; }
14481 succeeded=yes
14483 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14484 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14485 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14486 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14487 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14489 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14490 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14491 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14492 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14493 $as_echo "$M17N_FLT_LIBS" >&6; }
14494 else
14495 { $as_echo "$as_me:$LINENO: result: no" >&5
14496 $as_echo "no" >&6; }
14497 M17N_FLT_CFLAGS=""
14498 M17N_FLT_LIBS=""
14499 ## If we have a custom action on failure, don't print errors, but
14500 ## do set a variable so people can do so.
14501 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14507 else
14508 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14509 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14513 if test $succeeded = yes; then
14514 HAVE_M17N_FLT=yes
14515 else
14516 HAVE_M17N_FLT=no
14519 if test "$HAVE_M17N_FLT" = "yes"; then
14521 cat >>confdefs.h <<\_ACEOF
14522 #define HAVE_M17N_FLT 1
14523 _ACEOF
14528 else
14529 HAVE_XFT=no
14530 HAVE_FREETYPE=no
14531 HAVE_LIBOTF=no
14532 HAVE_M17N_FLT=no
14535 FONT_OBJ=xfont.o
14536 if test "$HAVE_XFT" = "yes"; then
14537 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14538 elif test "$HAVE_FREETYPE" = "yes"; then
14539 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14543 ### End of font-backend (under X11) section.
14554 ### Use -lXpm if available, unless `--with-xpm=no'.
14555 HAVE_XPM=no
14556 LIBXPM=
14557 if test "${HAVE_X11}" = "yes"; then
14558 if test "${with_xpm}" != "no"; then
14559 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14560 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14561 $as_echo_n "checking for X11/xpm.h... " >&6; }
14562 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14563 $as_echo_n "(cached) " >&6
14565 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14566 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14567 else
14568 # Is the header compilable?
14569 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14570 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14571 cat >conftest.$ac_ext <<_ACEOF
14572 /* confdefs.h. */
14573 _ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 $ac_includes_default
14578 #include <X11/xpm.h>
14579 _ACEOF
14580 rm -f conftest.$ac_objext
14581 if { (ac_try="$ac_compile"
14582 case "(($ac_try" in
14583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14584 *) ac_try_echo=$ac_try;;
14585 esac
14586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14587 $as_echo "$ac_try_echo") >&5
14588 (eval "$ac_compile") 2>conftest.er1
14589 ac_status=$?
14590 grep -v '^ *+' conftest.er1 >conftest.err
14591 rm -f conftest.er1
14592 cat conftest.err >&5
14593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); } && {
14595 test -z "$ac_c_werror_flag" ||
14596 test ! -s conftest.err
14597 } && test -s conftest.$ac_objext; then
14598 ac_header_compiler=yes
14599 else
14600 $as_echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14603 ac_header_compiler=no
14606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14607 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14608 $as_echo "$ac_header_compiler" >&6; }
14610 # Is the header present?
14611 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14612 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14613 cat >conftest.$ac_ext <<_ACEOF
14614 /* confdefs.h. */
14615 _ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14619 #include <X11/xpm.h>
14620 _ACEOF
14621 if { (ac_try="$ac_cpp conftest.$ac_ext"
14622 case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14625 esac
14626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14627 $as_echo "$ac_try_echo") >&5
14628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14629 ac_status=$?
14630 grep -v '^ *+' conftest.er1 >conftest.err
14631 rm -f conftest.er1
14632 cat conftest.err >&5
14633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } >/dev/null && {
14635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14636 test ! -s conftest.err
14637 }; then
14638 ac_header_preproc=yes
14639 else
14640 $as_echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ac_header_preproc=no
14646 rm -f conftest.err conftest.$ac_ext
14647 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14648 $as_echo "$ac_header_preproc" >&6; }
14650 # So? What about this header?
14651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14652 yes:no: )
14653 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14654 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14655 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14656 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14657 ac_header_preproc=yes
14659 no:yes:* )
14660 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14661 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14662 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14663 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14664 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14665 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14666 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14667 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14668 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14669 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14670 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14671 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14674 esac
14675 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14676 $as_echo_n "checking for X11/xpm.h... " >&6; }
14677 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14678 $as_echo_n "(cached) " >&6
14679 else
14680 ac_cv_header_X11_xpm_h=$ac_header_preproc
14682 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14683 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14686 if test $ac_cv_header_X11_xpm_h = yes; then
14687 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14688 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14689 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14690 $as_echo_n "(cached) " >&6
14691 else
14692 ac_check_lib_save_LIBS=$LIBS
14693 LIBS="-lXpm -lX11 $LIBS"
14694 cat >conftest.$ac_ext <<_ACEOF
14695 /* confdefs.h. */
14696 _ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14701 /* Override any GCC internal prototype to avoid an error.
14702 Use char because int might match the return type of a GCC
14703 builtin and then its argument prototype would still apply. */
14704 #ifdef __cplusplus
14705 extern "C"
14706 #endif
14707 char XpmReadFileToPixmap ();
14709 main ()
14711 return XpmReadFileToPixmap ();
14713 return 0;
14715 _ACEOF
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (ac_try="$ac_link"
14718 case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14721 esac
14722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14723 $as_echo "$ac_try_echo") >&5
14724 (eval "$ac_link") 2>conftest.er1
14725 ac_status=$?
14726 grep -v '^ *+' conftest.er1 >conftest.err
14727 rm -f conftest.er1
14728 cat conftest.err >&5
14729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } && {
14731 test -z "$ac_c_werror_flag" ||
14732 test ! -s conftest.err
14733 } && test -s conftest$ac_exeext && {
14734 test "$cross_compiling" = yes ||
14735 $as_test_x conftest$ac_exeext
14736 }; then
14737 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14738 else
14739 $as_echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14742 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14745 rm -rf conftest.dSYM
14746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14747 conftest$ac_exeext conftest.$ac_ext
14748 LIBS=$ac_check_lib_save_LIBS
14750 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14751 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14752 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14753 HAVE_XPM=yes
14759 if test "${HAVE_XPM}" = "yes"; then
14760 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14761 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14762 cat >conftest.$ac_ext <<_ACEOF
14763 /* confdefs.h. */
14764 _ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 #include "X11/xpm.h"
14769 #ifndef XpmReturnAllocPixels
14770 no_return_alloc_pixels
14771 #endif
14773 _ACEOF
14774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14775 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14776 HAVE_XPM=no
14777 else
14778 HAVE_XPM=yes
14780 rm -f conftest*
14783 if test "${HAVE_XPM}" = "yes"; then
14784 { $as_echo "$as_me:$LINENO: result: yes" >&5
14785 $as_echo "yes" >&6; }
14786 else
14787 { $as_echo "$as_me:$LINENO: result: no" >&5
14788 $as_echo "no" >&6; }
14793 if test "${HAVE_XPM}" = "yes"; then
14795 cat >>confdefs.h <<\_ACEOF
14796 #define HAVE_XPM 1
14797 _ACEOF
14799 LIBXPM=-lXpm
14804 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14805 HAVE_JPEG=no
14806 LIBJPEG=
14807 if test "${HAVE_X11}" = "yes"; then
14808 if test "${with_jpeg}" != "no"; then
14809 if test "${ac_cv_header_jerror_h+set}" = set; then
14810 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14811 $as_echo_n "checking for jerror.h... " >&6; }
14812 if test "${ac_cv_header_jerror_h+set}" = set; then
14813 $as_echo_n "(cached) " >&6
14815 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14816 $as_echo "$ac_cv_header_jerror_h" >&6; }
14817 else
14818 # Is the header compilable?
14819 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14820 $as_echo_n "checking jerror.h usability... " >&6; }
14821 cat >conftest.$ac_ext <<_ACEOF
14822 /* confdefs.h. */
14823 _ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h. */
14827 $ac_includes_default
14828 #include <jerror.h>
14829 _ACEOF
14830 rm -f conftest.$ac_objext
14831 if { (ac_try="$ac_compile"
14832 case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14835 esac
14836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14837 $as_echo "$ac_try_echo") >&5
14838 (eval "$ac_compile") 2>conftest.er1
14839 ac_status=$?
14840 grep -v '^ *+' conftest.er1 >conftest.err
14841 rm -f conftest.er1
14842 cat conftest.err >&5
14843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } && {
14845 test -z "$ac_c_werror_flag" ||
14846 test ! -s conftest.err
14847 } && test -s conftest.$ac_objext; then
14848 ac_header_compiler=yes
14849 else
14850 $as_echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14853 ac_header_compiler=no
14856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14858 $as_echo "$ac_header_compiler" >&6; }
14860 # Is the header present?
14861 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14862 $as_echo_n "checking jerror.h presence... " >&6; }
14863 cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h. */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 #include <jerror.h>
14870 _ACEOF
14871 if { (ac_try="$ac_cpp conftest.$ac_ext"
14872 case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14875 esac
14876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14877 $as_echo "$ac_try_echo") >&5
14878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14879 ac_status=$?
14880 grep -v '^ *+' conftest.er1 >conftest.err
14881 rm -f conftest.er1
14882 cat conftest.err >&5
14883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } >/dev/null && {
14885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 }; then
14888 ac_header_preproc=yes
14889 else
14890 $as_echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_header_preproc=no
14896 rm -f conftest.err conftest.$ac_ext
14897 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14898 $as_echo "$ac_header_preproc" >&6; }
14900 # So? What about this header?
14901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14902 yes:no: )
14903 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14904 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14905 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14906 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14907 ac_header_preproc=yes
14909 no:yes:* )
14910 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14911 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14912 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14913 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14914 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14915 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14916 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14917 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14918 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14919 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14920 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14921 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14924 esac
14925 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14926 $as_echo_n "checking for jerror.h... " >&6; }
14927 if test "${ac_cv_header_jerror_h+set}" = set; then
14928 $as_echo_n "(cached) " >&6
14929 else
14930 ac_cv_header_jerror_h=$ac_header_preproc
14932 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14933 $as_echo "$ac_cv_header_jerror_h" >&6; }
14936 if test $ac_cv_header_jerror_h = yes; then
14937 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14938 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14939 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14940 $as_echo_n "(cached) " >&6
14941 else
14942 ac_check_lib_save_LIBS=$LIBS
14943 LIBS="-ljpeg $LIBS"
14944 cat >conftest.$ac_ext <<_ACEOF
14945 /* confdefs.h. */
14946 _ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14951 /* Override any GCC internal prototype to avoid an error.
14952 Use char because int might match the return type of a GCC
14953 builtin and then its argument prototype would still apply. */
14954 #ifdef __cplusplus
14955 extern "C"
14956 #endif
14957 char jpeg_destroy_compress ();
14959 main ()
14961 return jpeg_destroy_compress ();
14963 return 0;
14965 _ACEOF
14966 rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (ac_try="$ac_link"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14971 esac
14972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14973 $as_echo "$ac_try_echo") >&5
14974 (eval "$ac_link") 2>conftest.er1
14975 ac_status=$?
14976 grep -v '^ *+' conftest.er1 >conftest.err
14977 rm -f conftest.er1
14978 cat conftest.err >&5
14979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } && {
14981 test -z "$ac_c_werror_flag" ||
14982 test ! -s conftest.err
14983 } && test -s conftest$ac_exeext && {
14984 test "$cross_compiling" = yes ||
14985 $as_test_x conftest$ac_exeext
14986 }; then
14987 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14988 else
14989 $as_echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14992 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14995 rm -rf conftest.dSYM
14996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14997 conftest$ac_exeext conftest.$ac_ext
14998 LIBS=$ac_check_lib_save_LIBS
15000 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15001 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15002 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15003 HAVE_JPEG=yes
15012 if test "${HAVE_JPEG}" = "yes"; then
15013 cat >>confdefs.h <<\_ACEOF
15014 #define HAVE_JPEG 1
15015 _ACEOF
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h. */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 #include <jpeglib.h>
15024 version=JPEG_LIB_VERSION
15026 _ACEOF
15027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15028 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15029 cat >>confdefs.h <<\_ACEOF
15030 #define HAVE_JPEG 1
15031 _ACEOF
15033 else
15034 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15035 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15036 HAVE_JPEG=no
15038 rm -f conftest*
15041 if test "${HAVE_JPEG}" = "yes"; then
15042 LIBJPEG=-ljpeg
15047 ### Use -lpng if available, unless `--with-png=no'.
15048 HAVE_PNG=no
15049 LIBPNG=
15050 if test "${HAVE_X11}" = "yes"; then
15051 if test "${with_png}" != "no"; then
15052 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15053 # in /usr/include/libpng.
15056 for ac_header in png.h libpng/png.h
15058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15060 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15061 $as_echo_n "checking for $ac_header... " >&6; }
15062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15063 $as_echo_n "(cached) " >&6
15065 ac_res=`eval 'as_val=${'$as_ac_Header'}
15066 $as_echo "$as_val"'`
15067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15068 $as_echo "$ac_res" >&6; }
15069 else
15070 # Is the header compilable?
15071 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15072 $as_echo_n "checking $ac_header usability... " >&6; }
15073 cat >conftest.$ac_ext <<_ACEOF
15074 /* confdefs.h. */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15079 $ac_includes_default
15080 #include <$ac_header>
15081 _ACEOF
15082 rm -f conftest.$ac_objext
15083 if { (ac_try="$ac_compile"
15084 case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15087 esac
15088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15089 $as_echo "$ac_try_echo") >&5
15090 (eval "$ac_compile") 2>conftest.er1
15091 ac_status=$?
15092 grep -v '^ *+' conftest.er1 >conftest.err
15093 rm -f conftest.er1
15094 cat conftest.err >&5
15095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } && {
15097 test -z "$ac_c_werror_flag" ||
15098 test ! -s conftest.err
15099 } && test -s conftest.$ac_objext; then
15100 ac_header_compiler=yes
15101 else
15102 $as_echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15105 ac_header_compiler=no
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15110 $as_echo "$ac_header_compiler" >&6; }
15112 # Is the header present?
15113 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15114 $as_echo_n "checking $ac_header presence... " >&6; }
15115 cat >conftest.$ac_ext <<_ACEOF
15116 /* confdefs.h. */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 #include <$ac_header>
15122 _ACEOF
15123 if { (ac_try="$ac_cpp conftest.$ac_ext"
15124 case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15127 esac
15128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15129 $as_echo "$ac_try_echo") >&5
15130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15131 ac_status=$?
15132 grep -v '^ *+' conftest.er1 >conftest.err
15133 rm -f conftest.er1
15134 cat conftest.err >&5
15135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } >/dev/null && {
15137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15138 test ! -s conftest.err
15139 }; then
15140 ac_header_preproc=yes
15141 else
15142 $as_echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 ac_header_preproc=no
15148 rm -f conftest.err conftest.$ac_ext
15149 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15150 $as_echo "$ac_header_preproc" >&6; }
15152 # So? What about this header?
15153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15154 yes:no: )
15155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15156 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15158 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15159 ac_header_preproc=yes
15161 no:yes:* )
15162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15163 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15165 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15167 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15169 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15173 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15176 esac
15177 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15178 $as_echo_n "checking for $ac_header... " >&6; }
15179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15180 $as_echo_n "(cached) " >&6
15181 else
15182 eval "$as_ac_Header=\$ac_header_preproc"
15184 ac_res=`eval 'as_val=${'$as_ac_Header'}
15185 $as_echo "$as_val"'`
15186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15187 $as_echo "$ac_res" >&6; }
15190 if test `eval 'as_val=${'$as_ac_Header'}
15191 $as_echo "$as_val"'` = yes; then
15192 cat >>confdefs.h <<_ACEOF
15193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15194 _ACEOF
15198 done
15200 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15201 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15202 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15203 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15204 $as_echo_n "(cached) " >&6
15205 else
15206 ac_check_lib_save_LIBS=$LIBS
15207 LIBS="-lpng -lz -lm $LIBS"
15208 cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h. */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15215 /* Override any GCC internal prototype to avoid an error.
15216 Use char because int might match the return type of a GCC
15217 builtin and then its argument prototype would still apply. */
15218 #ifdef __cplusplus
15219 extern "C"
15220 #endif
15221 char png_get_channels ();
15223 main ()
15225 return png_get_channels ();
15227 return 0;
15229 _ACEOF
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15235 esac
15236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15237 $as_echo "$ac_try_echo") >&5
15238 (eval "$ac_link") 2>conftest.er1
15239 ac_status=$?
15240 grep -v '^ *+' conftest.er1 >conftest.err
15241 rm -f conftest.er1
15242 cat conftest.err >&5
15243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } && {
15245 test -z "$ac_c_werror_flag" ||
15246 test ! -s conftest.err
15247 } && test -s conftest$ac_exeext && {
15248 test "$cross_compiling" = yes ||
15249 $as_test_x conftest$ac_exeext
15250 }; then
15251 ac_cv_lib_png_png_get_channels=yes
15252 else
15253 $as_echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15256 ac_cv_lib_png_png_get_channels=no
15259 rm -rf conftest.dSYM
15260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15261 conftest$ac_exeext conftest.$ac_ext
15262 LIBS=$ac_check_lib_save_LIBS
15264 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15265 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15266 if test $ac_cv_lib_png_png_get_channels = yes; then
15267 HAVE_PNG=yes
15273 if test "${HAVE_PNG}" = "yes"; then
15275 cat >>confdefs.h <<\_ACEOF
15276 #define HAVE_PNG 1
15277 _ACEOF
15279 LIBPNG="-lpng -lz -lm"
15284 ### Use -ltiff if available, unless `--with-tiff=no'.
15285 HAVE_TIFF=no
15286 LIBTIFF=
15287 if test "${HAVE_X11}" = "yes"; then
15288 if test "${with_tiff}" != "no"; then
15289 if test "${ac_cv_header_tiffio_h+set}" = set; then
15290 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15291 $as_echo_n "checking for tiffio.h... " >&6; }
15292 if test "${ac_cv_header_tiffio_h+set}" = set; then
15293 $as_echo_n "(cached) " >&6
15295 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15296 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15297 else
15298 # Is the header compilable?
15299 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15300 $as_echo_n "checking tiffio.h usability... " >&6; }
15301 cat >conftest.$ac_ext <<_ACEOF
15302 /* confdefs.h. */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 $ac_includes_default
15308 #include <tiffio.h>
15309 _ACEOF
15310 rm -f conftest.$ac_objext
15311 if { (ac_try="$ac_compile"
15312 case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15315 esac
15316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15317 $as_echo "$ac_try_echo") >&5
15318 (eval "$ac_compile") 2>conftest.er1
15319 ac_status=$?
15320 grep -v '^ *+' conftest.er1 >conftest.err
15321 rm -f conftest.er1
15322 cat conftest.err >&5
15323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } && {
15325 test -z "$ac_c_werror_flag" ||
15326 test ! -s conftest.err
15327 } && test -s conftest.$ac_objext; then
15328 ac_header_compiler=yes
15329 else
15330 $as_echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15333 ac_header_compiler=no
15336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15338 $as_echo "$ac_header_compiler" >&6; }
15340 # Is the header present?
15341 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15342 $as_echo_n "checking tiffio.h presence... " >&6; }
15343 cat >conftest.$ac_ext <<_ACEOF
15344 /* confdefs.h. */
15345 _ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15349 #include <tiffio.h>
15350 _ACEOF
15351 if { (ac_try="$ac_cpp conftest.$ac_ext"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355 esac
15356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15357 $as_echo "$ac_try_echo") >&5
15358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15359 ac_status=$?
15360 grep -v '^ *+' conftest.er1 >conftest.err
15361 rm -f conftest.er1
15362 cat conftest.err >&5
15363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } >/dev/null && {
15365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15366 test ! -s conftest.err
15367 }; then
15368 ac_header_preproc=yes
15369 else
15370 $as_echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15373 ac_header_preproc=no
15376 rm -f conftest.err conftest.$ac_ext
15377 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15378 $as_echo "$ac_header_preproc" >&6; }
15380 # So? What about this header?
15381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15382 yes:no: )
15383 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15384 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15385 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15386 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15387 ac_header_preproc=yes
15389 no:yes:* )
15390 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15391 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15392 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15393 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15394 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15395 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15396 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15397 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15398 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15399 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15400 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15401 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15404 esac
15405 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15406 $as_echo_n "checking for tiffio.h... " >&6; }
15407 if test "${ac_cv_header_tiffio_h+set}" = set; then
15408 $as_echo_n "(cached) " >&6
15409 else
15410 ac_cv_header_tiffio_h=$ac_header_preproc
15412 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15413 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15416 if test $ac_cv_header_tiffio_h = yes; then
15417 tifflibs="-lz -lm"
15418 # At least one tiff package requires the jpeg library.
15419 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15420 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15421 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15422 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15423 $as_echo_n "(cached) " >&6
15424 else
15425 ac_check_lib_save_LIBS=$LIBS
15426 LIBS="-ltiff $tifflibs $LIBS"
15427 cat >conftest.$ac_ext <<_ACEOF
15428 /* confdefs.h. */
15429 _ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15434 /* Override any GCC internal prototype to avoid an error.
15435 Use char because int might match the return type of a GCC
15436 builtin and then its argument prototype would still apply. */
15437 #ifdef __cplusplus
15438 extern "C"
15439 #endif
15440 char TIFFGetVersion ();
15442 main ()
15444 return TIFFGetVersion ();
15446 return 0;
15448 _ACEOF
15449 rm -f conftest.$ac_objext conftest$ac_exeext
15450 if { (ac_try="$ac_link"
15451 case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15454 esac
15455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15456 $as_echo "$ac_try_echo") >&5
15457 (eval "$ac_link") 2>conftest.er1
15458 ac_status=$?
15459 grep -v '^ *+' conftest.er1 >conftest.err
15460 rm -f conftest.er1
15461 cat conftest.err >&5
15462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } && {
15464 test -z "$ac_c_werror_flag" ||
15465 test ! -s conftest.err
15466 } && test -s conftest$ac_exeext && {
15467 test "$cross_compiling" = yes ||
15468 $as_test_x conftest$ac_exeext
15469 }; then
15470 ac_cv_lib_tiff_TIFFGetVersion=yes
15471 else
15472 $as_echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15475 ac_cv_lib_tiff_TIFFGetVersion=no
15478 rm -rf conftest.dSYM
15479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15480 conftest$ac_exeext conftest.$ac_ext
15481 LIBS=$ac_check_lib_save_LIBS
15483 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15484 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15485 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15486 HAVE_TIFF=yes
15494 if test "${HAVE_TIFF}" = "yes"; then
15496 cat >>confdefs.h <<\_ACEOF
15497 #define HAVE_TIFF 1
15498 _ACEOF
15500 LIBTIFF=-ltiff
15505 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15506 HAVE_GIF=no
15507 LIBGIF=
15508 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15509 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15510 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15511 $as_echo_n "checking for gif_lib.h... " >&6; }
15512 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15513 $as_echo_n "(cached) " >&6
15515 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15516 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15517 else
15518 # Is the header compilable?
15519 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15520 $as_echo_n "checking gif_lib.h usability... " >&6; }
15521 cat >conftest.$ac_ext <<_ACEOF
15522 /* confdefs.h. */
15523 _ACEOF
15524 cat confdefs.h >>conftest.$ac_ext
15525 cat >>conftest.$ac_ext <<_ACEOF
15526 /* end confdefs.h. */
15527 $ac_includes_default
15528 #include <gif_lib.h>
15529 _ACEOF
15530 rm -f conftest.$ac_objext
15531 if { (ac_try="$ac_compile"
15532 case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15535 esac
15536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15537 $as_echo "$ac_try_echo") >&5
15538 (eval "$ac_compile") 2>conftest.er1
15539 ac_status=$?
15540 grep -v '^ *+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
15543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } && {
15545 test -z "$ac_c_werror_flag" ||
15546 test ! -s conftest.err
15547 } && test -s conftest.$ac_objext; then
15548 ac_header_compiler=yes
15549 else
15550 $as_echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15553 ac_header_compiler=no
15556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15557 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15558 $as_echo "$ac_header_compiler" >&6; }
15560 # Is the header present?
15561 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15562 $as_echo_n "checking gif_lib.h presence... " >&6; }
15563 cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h. */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 #include <gif_lib.h>
15570 _ACEOF
15571 if { (ac_try="$ac_cpp conftest.$ac_ext"
15572 case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15575 esac
15576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15577 $as_echo "$ac_try_echo") >&5
15578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } >/dev/null && {
15585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15586 test ! -s conftest.err
15587 }; then
15588 ac_header_preproc=yes
15589 else
15590 $as_echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15593 ac_header_preproc=no
15596 rm -f conftest.err conftest.$ac_ext
15597 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15598 $as_echo "$ac_header_preproc" >&6; }
15600 # So? What about this header?
15601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15602 yes:no: )
15603 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15604 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15605 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15606 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15607 ac_header_preproc=yes
15609 no:yes:* )
15610 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15611 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15612 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15613 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15614 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15615 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15616 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15617 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15618 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15619 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15620 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15621 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15624 esac
15625 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15626 $as_echo_n "checking for gif_lib.h... " >&6; }
15627 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15628 $as_echo_n "(cached) " >&6
15629 else
15630 ac_cv_header_gif_lib_h=$ac_header_preproc
15632 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15633 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15636 if test $ac_cv_header_gif_lib_h = yes; then
15637 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15638 # Earlier versions can crash Emacs.
15639 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15640 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15641 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15642 $as_echo_n "(cached) " >&6
15643 else
15644 ac_check_lib_save_LIBS=$LIBS
15645 LIBS="-lgif $LIBS"
15646 cat >conftest.$ac_ext <<_ACEOF
15647 /* confdefs.h. */
15648 _ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15653 /* Override any GCC internal prototype to avoid an error.
15654 Use char because int might match the return type of a GCC
15655 builtin and then its argument prototype would still apply. */
15656 #ifdef __cplusplus
15657 extern "C"
15658 #endif
15659 char EGifPutExtensionLast ();
15661 main ()
15663 return EGifPutExtensionLast ();
15665 return 0;
15667 _ACEOF
15668 rm -f conftest.$ac_objext conftest$ac_exeext
15669 if { (ac_try="$ac_link"
15670 case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15673 esac
15674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15675 $as_echo "$ac_try_echo") >&5
15676 (eval "$ac_link") 2>conftest.er1
15677 ac_status=$?
15678 grep -v '^ *+' conftest.er1 >conftest.err
15679 rm -f conftest.er1
15680 cat conftest.err >&5
15681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); } && {
15683 test -z "$ac_c_werror_flag" ||
15684 test ! -s conftest.err
15685 } && test -s conftest$ac_exeext && {
15686 test "$cross_compiling" = yes ||
15687 $as_test_x conftest$ac_exeext
15688 }; then
15689 ac_cv_lib_gif_EGifPutExtensionLast=yes
15690 else
15691 $as_echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_cv_lib_gif_EGifPutExtensionLast=no
15697 rm -rf conftest.dSYM
15698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15699 conftest$ac_exeext conftest.$ac_ext
15700 LIBS=$ac_check_lib_save_LIBS
15702 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15703 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15704 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15705 HAVE_GIF=yes
15706 else
15707 HAVE_GIF=maybe
15714 if test "$HAVE_GIF" = yes; then
15715 LIBGIF=-lgif
15716 elif test "$HAVE_GIF" = maybe; then
15717 # If gif_lib.h but no libgif, try libungif.
15718 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15719 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15720 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15721 $as_echo_n "(cached) " >&6
15722 else
15723 ac_check_lib_save_LIBS=$LIBS
15724 LIBS="-lungif $LIBS"
15725 cat >conftest.$ac_ext <<_ACEOF
15726 /* confdefs.h. */
15727 _ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15732 /* Override any GCC internal prototype to avoid an error.
15733 Use char because int might match the return type of a GCC
15734 builtin and then its argument prototype would still apply. */
15735 #ifdef __cplusplus
15736 extern "C"
15737 #endif
15738 char EGifPutExtensionLast ();
15740 main ()
15742 return EGifPutExtensionLast ();
15744 return 0;
15746 _ACEOF
15747 rm -f conftest.$ac_objext conftest$ac_exeext
15748 if { (ac_try="$ac_link"
15749 case "(($ac_try" in
15750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751 *) ac_try_echo=$ac_try;;
15752 esac
15753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15754 $as_echo "$ac_try_echo") >&5
15755 (eval "$ac_link") 2>conftest.er1
15756 ac_status=$?
15757 grep -v '^ *+' conftest.er1 >conftest.err
15758 rm -f conftest.er1
15759 cat conftest.err >&5
15760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } && {
15762 test -z "$ac_c_werror_flag" ||
15763 test ! -s conftest.err
15764 } && test -s conftest$ac_exeext && {
15765 test "$cross_compiling" = yes ||
15766 $as_test_x conftest$ac_exeext
15767 }; then
15768 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15769 else
15770 $as_echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15773 ac_cv_lib_ungif_EGifPutExtensionLast=no
15776 rm -rf conftest.dSYM
15777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15778 conftest$ac_exeext conftest.$ac_ext
15779 LIBS=$ac_check_lib_save_LIBS
15781 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15782 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15783 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15784 HAVE_GIF=yes
15785 else
15786 HAVE_GIF=no
15789 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15792 if test "${HAVE_GIF}" = "yes"; then
15794 cat >>confdefs.h <<\_ACEOF
15795 #define HAVE_GIF 1
15796 _ACEOF
15802 if test "${HAVE_X11}" = "yes"; then
15803 MISSING=""
15804 WITH_NO=""
15805 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15806 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15807 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15808 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15809 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15810 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15811 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15812 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15813 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15814 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15816 if test "X${MISSING}" != X; then
15817 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15818 $MISSING
15819 Maybe some development libraries/packages are missing?
15820 If you don't want to link with them give
15821 $WITH_NO
15822 as options to configure" >&5
15823 $as_echo "$as_me: error: The following required libraries were not found:
15824 $MISSING
15825 Maybe some development libraries/packages are missing?
15826 If you don't want to link with them give
15827 $WITH_NO
15828 as options to configure" >&2;}
15829 { (exit 1); exit 1; }; }
15833 ### Use -lgpm if available, unless `--with-gpm=no'.
15834 HAVE_GPM=no
15835 LIBGPM=
15836 GPM_MOUSE_SUPPORT=
15837 if test "${with_gpm}" != "no"; then
15838 if test "${ac_cv_header_gpm_h+set}" = set; then
15839 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15840 $as_echo_n "checking for gpm.h... " >&6; }
15841 if test "${ac_cv_header_gpm_h+set}" = set; then
15842 $as_echo_n "(cached) " >&6
15844 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15845 $as_echo "$ac_cv_header_gpm_h" >&6; }
15846 else
15847 # Is the header compilable?
15848 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15849 $as_echo_n "checking gpm.h usability... " >&6; }
15850 cat >conftest.$ac_ext <<_ACEOF
15851 /* confdefs.h. */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 $ac_includes_default
15857 #include <gpm.h>
15858 _ACEOF
15859 rm -f conftest.$ac_objext
15860 if { (ac_try="$ac_compile"
15861 case "(($ac_try" in
15862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863 *) ac_try_echo=$ac_try;;
15864 esac
15865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15866 $as_echo "$ac_try_echo") >&5
15867 (eval "$ac_compile") 2>conftest.er1
15868 ac_status=$?
15869 grep -v '^ *+' conftest.er1 >conftest.err
15870 rm -f conftest.er1
15871 cat conftest.err >&5
15872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } && {
15874 test -z "$ac_c_werror_flag" ||
15875 test ! -s conftest.err
15876 } && test -s conftest.$ac_objext; then
15877 ac_header_compiler=yes
15878 else
15879 $as_echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 ac_header_compiler=no
15885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15886 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15887 $as_echo "$ac_header_compiler" >&6; }
15889 # Is the header present?
15890 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15891 $as_echo_n "checking gpm.h presence... " >&6; }
15892 cat >conftest.$ac_ext <<_ACEOF
15893 /* confdefs.h. */
15894 _ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15898 #include <gpm.h>
15899 _ACEOF
15900 if { (ac_try="$ac_cpp conftest.$ac_ext"
15901 case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15904 esac
15905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15906 $as_echo "$ac_try_echo") >&5
15907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15908 ac_status=$?
15909 grep -v '^ *+' conftest.er1 >conftest.err
15910 rm -f conftest.er1
15911 cat conftest.err >&5
15912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } >/dev/null && {
15914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15915 test ! -s conftest.err
15916 }; then
15917 ac_header_preproc=yes
15918 else
15919 $as_echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15922 ac_header_preproc=no
15925 rm -f conftest.err conftest.$ac_ext
15926 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15927 $as_echo "$ac_header_preproc" >&6; }
15929 # So? What about this header?
15930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15931 yes:no: )
15932 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15933 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15934 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15935 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15936 ac_header_preproc=yes
15938 no:yes:* )
15939 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15940 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15941 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15942 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15943 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15944 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15945 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15946 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15947 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15948 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15949 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15950 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15953 esac
15954 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15955 $as_echo_n "checking for gpm.h... " >&6; }
15956 if test "${ac_cv_header_gpm_h+set}" = set; then
15957 $as_echo_n "(cached) " >&6
15958 else
15959 ac_cv_header_gpm_h=$ac_header_preproc
15961 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15962 $as_echo "$ac_cv_header_gpm_h" >&6; }
15965 if test $ac_cv_header_gpm_h = yes; then
15966 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15967 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15968 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15969 $as_echo_n "(cached) " >&6
15970 else
15971 ac_check_lib_save_LIBS=$LIBS
15972 LIBS="-lgpm $LIBS"
15973 cat >conftest.$ac_ext <<_ACEOF
15974 /* confdefs.h. */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15980 /* Override any GCC internal prototype to avoid an error.
15981 Use char because int might match the return type of a GCC
15982 builtin and then its argument prototype would still apply. */
15983 #ifdef __cplusplus
15984 extern "C"
15985 #endif
15986 char Gpm_Open ();
15988 main ()
15990 return Gpm_Open ();
15992 return 0;
15994 _ACEOF
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (ac_try="$ac_link"
15997 case "(($ac_try" in
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16000 esac
16001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16002 $as_echo "$ac_try_echo") >&5
16003 (eval "$ac_link") 2>conftest.er1
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest$ac_exeext && {
16013 test "$cross_compiling" = yes ||
16014 $as_test_x conftest$ac_exeext
16015 }; then
16016 ac_cv_lib_gpm_Gpm_Open=yes
16017 else
16018 $as_echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16021 ac_cv_lib_gpm_Gpm_Open=no
16024 rm -rf conftest.dSYM
16025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16026 conftest$ac_exeext conftest.$ac_ext
16027 LIBS=$ac_check_lib_save_LIBS
16029 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16030 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16031 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16032 HAVE_GPM=yes
16039 if test "${HAVE_GPM}" = "yes"; then
16041 cat >>confdefs.h <<\_ACEOF
16042 #define HAVE_GPM 1
16043 _ACEOF
16045 LIBGPM=-lgpm
16046 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc"
16052 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16053 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16054 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16055 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16056 $as_echo_n "(cached) " >&6
16058 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16059 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16060 else
16061 # Is the header compilable?
16062 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16063 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16064 cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h. */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16070 $ac_includes_default
16071 #include <malloc/malloc.h>
16072 _ACEOF
16073 rm -f conftest.$ac_objext
16074 if { (ac_try="$ac_compile"
16075 case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16078 esac
16079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16080 $as_echo "$ac_try_echo") >&5
16081 (eval "$ac_compile") 2>conftest.er1
16082 ac_status=$?
16083 grep -v '^ *+' conftest.er1 >conftest.err
16084 rm -f conftest.er1
16085 cat conftest.err >&5
16086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } && {
16088 test -z "$ac_c_werror_flag" ||
16089 test ! -s conftest.err
16090 } && test -s conftest.$ac_objext; then
16091 ac_header_compiler=yes
16092 else
16093 $as_echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16096 ac_header_compiler=no
16099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16100 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16101 $as_echo "$ac_header_compiler" >&6; }
16103 # Is the header present?
16104 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16105 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h. */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 #include <malloc/malloc.h>
16113 _ACEOF
16114 if { (ac_try="$ac_cpp conftest.$ac_ext"
16115 case "(($ac_try" in
16116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117 *) ac_try_echo=$ac_try;;
16118 esac
16119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16120 $as_echo "$ac_try_echo") >&5
16121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16122 ac_status=$?
16123 grep -v '^ *+' conftest.er1 >conftest.err
16124 rm -f conftest.er1
16125 cat conftest.err >&5
16126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } >/dev/null && {
16128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16129 test ! -s conftest.err
16130 }; then
16131 ac_header_preproc=yes
16132 else
16133 $as_echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16136 ac_header_preproc=no
16139 rm -f conftest.err conftest.$ac_ext
16140 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16141 $as_echo "$ac_header_preproc" >&6; }
16143 # So? What about this header?
16144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16145 yes:no: )
16146 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16147 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16148 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16149 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16150 ac_header_preproc=yes
16152 no:yes:* )
16153 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16154 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16155 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16156 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16157 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16158 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16159 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16160 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16161 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16162 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16163 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16164 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16167 esac
16168 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16169 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16170 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16171 $as_echo_n "(cached) " >&6
16172 else
16173 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16175 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16176 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16179 if test $ac_cv_header_malloc_malloc_h = yes; then
16181 cat >>confdefs.h <<\_ACEOF
16182 #define HAVE_MALLOC_MALLOC_H 1
16183 _ACEOF
16189 C_SWITCH_X_SYSTEM=
16190 ### Use NeXTstep API to implement GUI.
16191 if test "${HAVE_NS}" = "yes"; then
16193 cat >>confdefs.h <<\_ACEOF
16194 #define HAVE_NS 1
16195 _ACEOF
16197 if test "${NS_IMPL_COCOA}" = "yes"; then
16199 cat >>confdefs.h <<\_ACEOF
16200 #define NS_IMPL_COCOA 1
16201 _ACEOF
16203 GNU_OBJC_CFLAGS=
16205 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16207 cat >>confdefs.h <<\_ACEOF
16208 #define NS_IMPL_GNUSTEP 1
16209 _ACEOF
16211 # See also .m.o rule in Makefile.in */
16212 # FIXME: are all these flags really needed? Document here why. */
16213 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16214 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16216 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16218 cat >>confdefs.h <<\_ACEOF
16219 #define NS_HAVE_NSINTEGER 1
16220 _ACEOF
16223 # We also have mouse menus.
16224 HAVE_MENUS=yes
16225 OTHER_FILES=ns-app
16229 ### Use session management (-lSM -lICE) if available
16230 HAVE_X_SM=no
16231 LIBXSM=
16232 if test "${HAVE_X11}" = "yes"; then
16233 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16234 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16235 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16236 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16237 $as_echo_n "(cached) " >&6
16239 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16240 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16241 else
16242 # Is the header compilable?
16243 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16244 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16245 cat >conftest.$ac_ext <<_ACEOF
16246 /* confdefs.h. */
16247 _ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251 $ac_includes_default
16252 #include <X11/SM/SMlib.h>
16253 _ACEOF
16254 rm -f conftest.$ac_objext
16255 if { (ac_try="$ac_compile"
16256 case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16259 esac
16260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16261 $as_echo "$ac_try_echo") >&5
16262 (eval "$ac_compile") 2>conftest.er1
16263 ac_status=$?
16264 grep -v '^ *+' conftest.er1 >conftest.err
16265 rm -f conftest.er1
16266 cat conftest.err >&5
16267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } && {
16269 test -z "$ac_c_werror_flag" ||
16270 test ! -s conftest.err
16271 } && test -s conftest.$ac_objext; then
16272 ac_header_compiler=yes
16273 else
16274 $as_echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 ac_header_compiler=no
16280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16281 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16282 $as_echo "$ac_header_compiler" >&6; }
16284 # Is the header present?
16285 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16286 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16287 cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h. */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 #include <X11/SM/SMlib.h>
16294 _ACEOF
16295 if { (ac_try="$ac_cpp conftest.$ac_ext"
16296 case "(($ac_try" in
16297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16298 *) ac_try_echo=$ac_try;;
16299 esac
16300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16301 $as_echo "$ac_try_echo") >&5
16302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } >/dev/null && {
16309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16310 test ! -s conftest.err
16311 }; then
16312 ac_header_preproc=yes
16313 else
16314 $as_echo "$as_me: failed program was:" >&5
16315 sed 's/^/| /' conftest.$ac_ext >&5
16317 ac_header_preproc=no
16320 rm -f conftest.err conftest.$ac_ext
16321 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16322 $as_echo "$ac_header_preproc" >&6; }
16324 # So? What about this header?
16325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16326 yes:no: )
16327 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16328 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16329 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16330 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16331 ac_header_preproc=yes
16333 no:yes:* )
16334 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16335 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16336 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16337 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16338 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16339 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16340 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16341 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16342 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16343 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16344 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16345 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16348 esac
16349 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16350 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16351 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16352 $as_echo_n "(cached) " >&6
16353 else
16354 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16356 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16357 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16360 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16361 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16362 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16363 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16364 $as_echo_n "(cached) " >&6
16365 else
16366 ac_check_lib_save_LIBS=$LIBS
16367 LIBS="-lSM -lICE $LIBS"
16368 cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h. */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16375 /* Override any GCC internal prototype to avoid an error.
16376 Use char because int might match the return type of a GCC
16377 builtin and then its argument prototype would still apply. */
16378 #ifdef __cplusplus
16379 extern "C"
16380 #endif
16381 char SmcOpenConnection ();
16383 main ()
16385 return SmcOpenConnection ();
16387 return 0;
16389 _ACEOF
16390 rm -f conftest.$ac_objext conftest$ac_exeext
16391 if { (ac_try="$ac_link"
16392 case "(($ac_try" in
16393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394 *) ac_try_echo=$ac_try;;
16395 esac
16396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16397 $as_echo "$ac_try_echo") >&5
16398 (eval "$ac_link") 2>conftest.er1
16399 ac_status=$?
16400 grep -v '^ *+' conftest.er1 >conftest.err
16401 rm -f conftest.er1
16402 cat conftest.err >&5
16403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } && {
16405 test -z "$ac_c_werror_flag" ||
16406 test ! -s conftest.err
16407 } && test -s conftest$ac_exeext && {
16408 test "$cross_compiling" = yes ||
16409 $as_test_x conftest$ac_exeext
16410 }; then
16411 ac_cv_lib_SM_SmcOpenConnection=yes
16412 else
16413 $as_echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16416 ac_cv_lib_SM_SmcOpenConnection=no
16419 rm -rf conftest.dSYM
16420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16421 conftest$ac_exeext conftest.$ac_ext
16422 LIBS=$ac_check_lib_save_LIBS
16424 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16425 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16426 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16427 HAVE_X_SM=yes
16434 if test "${HAVE_X_SM}" = "yes"; then
16436 cat >>confdefs.h <<\_ACEOF
16437 #define HAVE_X_SM 1
16438 _ACEOF
16440 LIBXSM="-lSM -lICE"
16441 case "$LIBS" in
16442 *-lSM*) ;;
16443 *) LIBS="$LIBXSM $LIBS" ;;
16444 esac
16449 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16450 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16451 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16452 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16453 $as_echo_n "(cached) " >&6
16454 else
16455 cat >conftest.$ac_ext <<_ACEOF
16456 /* confdefs.h. */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16461 #include <netdb.h>
16463 main ()
16465 return h_errno;
16467 return 0;
16469 _ACEOF
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (ac_try="$ac_link"
16472 case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16475 esac
16476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16477 $as_echo "$ac_try_echo") >&5
16478 (eval "$ac_link") 2>conftest.er1
16479 ac_status=$?
16480 grep -v '^ *+' conftest.er1 >conftest.err
16481 rm -f conftest.er1
16482 cat conftest.err >&5
16483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } && {
16485 test -z "$ac_c_werror_flag" ||
16486 test ! -s conftest.err
16487 } && test -s conftest$ac_exeext && {
16488 test "$cross_compiling" = yes ||
16489 $as_test_x conftest$ac_exeext
16490 }; then
16491 emacs_cv_netdb_declares_h_errno=yes
16492 else
16493 $as_echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16496 emacs_cv_netdb_declares_h_errno=no
16499 rm -rf conftest.dSYM
16500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16501 conftest$ac_exeext conftest.$ac_ext
16503 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16504 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16505 if test $emacs_cv_netdb_declares_h_errno = yes; then
16507 cat >>confdefs.h <<\_ACEOF
16508 #define HAVE_H_ERRNO 1
16509 _ACEOF
16513 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16514 # for constant arguments. Useless!
16515 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16516 $as_echo_n "checking for working alloca.h... " >&6; }
16517 if test "${ac_cv_working_alloca_h+set}" = set; then
16518 $as_echo_n "(cached) " >&6
16519 else
16520 cat >conftest.$ac_ext <<_ACEOF
16521 /* confdefs.h. */
16522 _ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16526 #include <alloca.h>
16528 main ()
16530 char *p = (char *) alloca (2 * sizeof (int));
16531 if (p) return 0;
16533 return 0;
16535 _ACEOF
16536 rm -f conftest.$ac_objext conftest$ac_exeext
16537 if { (ac_try="$ac_link"
16538 case "(($ac_try" in
16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16541 esac
16542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16543 $as_echo "$ac_try_echo") >&5
16544 (eval "$ac_link") 2>conftest.er1
16545 ac_status=$?
16546 grep -v '^ *+' conftest.er1 >conftest.err
16547 rm -f conftest.er1
16548 cat conftest.err >&5
16549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } && {
16551 test -z "$ac_c_werror_flag" ||
16552 test ! -s conftest.err
16553 } && test -s conftest$ac_exeext && {
16554 test "$cross_compiling" = yes ||
16555 $as_test_x conftest$ac_exeext
16556 }; then
16557 ac_cv_working_alloca_h=yes
16558 else
16559 $as_echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16562 ac_cv_working_alloca_h=no
16565 rm -rf conftest.dSYM
16566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16567 conftest$ac_exeext conftest.$ac_ext
16569 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16570 $as_echo "$ac_cv_working_alloca_h" >&6; }
16571 if test $ac_cv_working_alloca_h = yes; then
16573 cat >>confdefs.h <<\_ACEOF
16574 #define HAVE_ALLOCA_H 1
16575 _ACEOF
16579 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16580 $as_echo_n "checking for alloca... " >&6; }
16581 if test "${ac_cv_func_alloca_works+set}" = set; then
16582 $as_echo_n "(cached) " >&6
16583 else
16584 cat >conftest.$ac_ext <<_ACEOF
16585 /* confdefs.h. */
16586 _ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16590 #ifdef __GNUC__
16591 # define alloca __builtin_alloca
16592 #else
16593 # ifdef _MSC_VER
16594 # include <malloc.h>
16595 # define alloca _alloca
16596 # else
16597 # ifdef HAVE_ALLOCA_H
16598 # include <alloca.h>
16599 # else
16600 # ifdef _AIX
16601 #pragma alloca
16602 # else
16603 # ifndef alloca /* predefined by HP cc +Olibcalls */
16604 char *alloca ();
16605 # endif
16606 # endif
16607 # endif
16608 # endif
16609 #endif
16612 main ()
16614 char *p = (char *) alloca (1);
16615 if (p) return 0;
16617 return 0;
16619 _ACEOF
16620 rm -f conftest.$ac_objext conftest$ac_exeext
16621 if { (ac_try="$ac_link"
16622 case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16625 esac
16626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16627 $as_echo "$ac_try_echo") >&5
16628 (eval "$ac_link") 2>conftest.er1
16629 ac_status=$?
16630 grep -v '^ *+' conftest.er1 >conftest.err
16631 rm -f conftest.er1
16632 cat conftest.err >&5
16633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } && {
16635 test -z "$ac_c_werror_flag" ||
16636 test ! -s conftest.err
16637 } && test -s conftest$ac_exeext && {
16638 test "$cross_compiling" = yes ||
16639 $as_test_x conftest$ac_exeext
16640 }; then
16641 ac_cv_func_alloca_works=yes
16642 else
16643 $as_echo "$as_me: failed program was:" >&5
16644 sed 's/^/| /' conftest.$ac_ext >&5
16646 ac_cv_func_alloca_works=no
16649 rm -rf conftest.dSYM
16650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16651 conftest$ac_exeext conftest.$ac_ext
16653 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16654 $as_echo "$ac_cv_func_alloca_works" >&6; }
16656 if test $ac_cv_func_alloca_works = yes; then
16658 cat >>confdefs.h <<\_ACEOF
16659 #define HAVE_ALLOCA 1
16660 _ACEOF
16662 else
16663 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16664 # that cause trouble. Some versions do not even contain alloca or
16665 # contain a buggy version. If you still want to use their alloca,
16666 # use ar to extract alloca.o from them instead of compiling alloca.c.
16668 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16670 cat >>confdefs.h <<\_ACEOF
16671 #define C_ALLOCA 1
16672 _ACEOF
16675 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16676 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16677 if test "${ac_cv_os_cray+set}" = set; then
16678 $as_echo_n "(cached) " >&6
16679 else
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h. */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 #if defined CRAY && ! defined CRAY2
16687 webecray
16688 #else
16689 wenotbecray
16690 #endif
16692 _ACEOF
16693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16694 $EGREP "webecray" >/dev/null 2>&1; then
16695 ac_cv_os_cray=yes
16696 else
16697 ac_cv_os_cray=no
16699 rm -f conftest*
16702 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16703 $as_echo "$ac_cv_os_cray" >&6; }
16704 if test $ac_cv_os_cray = yes; then
16705 for ac_func in _getb67 GETB67 getb67; do
16706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16707 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16708 $as_echo_n "checking for $ac_func... " >&6; }
16709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16710 $as_echo_n "(cached) " >&6
16711 else
16712 cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h. */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16720 #define $ac_func innocuous_$ac_func
16722 /* System header to define __stub macros and hopefully few prototypes,
16723 which can conflict with char $ac_func (); below.
16724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16725 <limits.h> exists even on freestanding compilers. */
16727 #ifdef __STDC__
16728 # include <limits.h>
16729 #else
16730 # include <assert.h>
16731 #endif
16733 #undef $ac_func
16735 /* Override any GCC internal prototype to avoid an error.
16736 Use char because int might match the return type of a GCC
16737 builtin and then its argument prototype would still apply. */
16738 #ifdef __cplusplus
16739 extern "C"
16740 #endif
16741 char $ac_func ();
16742 /* The GNU C library defines this for functions which it implements
16743 to always fail with ENOSYS. Some functions are actually named
16744 something starting with __ and the normal name is an alias. */
16745 #if defined __stub_$ac_func || defined __stub___$ac_func
16746 choke me
16747 #endif
16750 main ()
16752 return $ac_func ();
16754 return 0;
16756 _ACEOF
16757 rm -f conftest.$ac_objext conftest$ac_exeext
16758 if { (ac_try="$ac_link"
16759 case "(($ac_try" in
16760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761 *) ac_try_echo=$ac_try;;
16762 esac
16763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16764 $as_echo "$ac_try_echo") >&5
16765 (eval "$ac_link") 2>conftest.er1
16766 ac_status=$?
16767 grep -v '^ *+' conftest.er1 >conftest.err
16768 rm -f conftest.er1
16769 cat conftest.err >&5
16770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } && {
16772 test -z "$ac_c_werror_flag" ||
16773 test ! -s conftest.err
16774 } && test -s conftest$ac_exeext && {
16775 test "$cross_compiling" = yes ||
16776 $as_test_x conftest$ac_exeext
16777 }; then
16778 eval "$as_ac_var=yes"
16779 else
16780 $as_echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16783 eval "$as_ac_var=no"
16786 rm -rf conftest.dSYM
16787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16788 conftest$ac_exeext conftest.$ac_ext
16790 ac_res=`eval 'as_val=${'$as_ac_var'}
16791 $as_echo "$as_val"'`
16792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16793 $as_echo "$ac_res" >&6; }
16794 if test `eval 'as_val=${'$as_ac_var'}
16795 $as_echo "$as_val"'` = yes; then
16797 cat >>confdefs.h <<_ACEOF
16798 #define CRAY_STACKSEG_END $ac_func
16799 _ACEOF
16801 break
16804 done
16807 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16808 $as_echo_n "checking stack direction for C alloca... " >&6; }
16809 if test "${ac_cv_c_stack_direction+set}" = set; then
16810 $as_echo_n "(cached) " >&6
16811 else
16812 if test "$cross_compiling" = yes; then
16813 ac_cv_c_stack_direction=0
16814 else
16815 cat >conftest.$ac_ext <<_ACEOF
16816 /* confdefs.h. */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 $ac_includes_default
16823 find_stack_direction ()
16825 static char *addr = 0;
16826 auto char dummy;
16827 if (addr == 0)
16829 addr = &dummy;
16830 return find_stack_direction ();
16832 else
16833 return (&dummy > addr) ? 1 : -1;
16837 main ()
16839 return find_stack_direction () < 0;
16841 _ACEOF
16842 rm -f conftest$ac_exeext
16843 if { (ac_try="$ac_link"
16844 case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16847 esac
16848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16849 $as_echo "$ac_try_echo") >&5
16850 (eval "$ac_link") 2>&5
16851 ac_status=$?
16852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16854 { (case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16857 esac
16858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16859 $as_echo "$ac_try_echo") >&5
16860 (eval "$ac_try") 2>&5
16861 ac_status=$?
16862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_cv_c_stack_direction=1
16865 else
16866 $as_echo "$as_me: program exited with status $ac_status" >&5
16867 $as_echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16870 ( exit $ac_status )
16871 ac_cv_c_stack_direction=-1
16873 rm -rf conftest.dSYM
16874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16879 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16880 $as_echo "$ac_cv_c_stack_direction" >&6; }
16882 cat >>confdefs.h <<_ACEOF
16883 #define STACK_DIRECTION $ac_cv_c_stack_direction
16884 _ACEOF
16890 if test x"$ac_cv_func_alloca_works" != xyes; then
16891 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16892 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16893 { (exit 1); exit 1; }; }
16896 # fmod, logb, and frexp are found in -lm on most systems.
16897 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16899 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16900 $as_echo_n "checking for sqrt in -lm... " >&6; }
16901 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16902 $as_echo_n "(cached) " >&6
16903 else
16904 ac_check_lib_save_LIBS=$LIBS
16905 LIBS="-lm $LIBS"
16906 cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h. */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16913 /* Override any GCC internal prototype to avoid an error.
16914 Use char because int might match the return type of a GCC
16915 builtin and then its argument prototype would still apply. */
16916 #ifdef __cplusplus
16917 extern "C"
16918 #endif
16919 char sqrt ();
16921 main ()
16923 return sqrt ();
16925 return 0;
16927 _ACEOF
16928 rm -f conftest.$ac_objext conftest$ac_exeext
16929 if { (ac_try="$ac_link"
16930 case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16933 esac
16934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16935 $as_echo "$ac_try_echo") >&5
16936 (eval "$ac_link") 2>conftest.er1
16937 ac_status=$?
16938 grep -v '^ *+' conftest.er1 >conftest.err
16939 rm -f conftest.er1
16940 cat conftest.err >&5
16941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } && {
16943 test -z "$ac_c_werror_flag" ||
16944 test ! -s conftest.err
16945 } && test -s conftest$ac_exeext && {
16946 test "$cross_compiling" = yes ||
16947 $as_test_x conftest$ac_exeext
16948 }; then
16949 ac_cv_lib_m_sqrt=yes
16950 else
16951 $as_echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16954 ac_cv_lib_m_sqrt=no
16957 rm -rf conftest.dSYM
16958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16959 conftest$ac_exeext conftest.$ac_ext
16960 LIBS=$ac_check_lib_save_LIBS
16962 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16963 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16964 if test $ac_cv_lib_m_sqrt = yes; then
16965 cat >>confdefs.h <<_ACEOF
16966 #define HAVE_LIBM 1
16967 _ACEOF
16969 LIBS="-lm $LIBS"
16974 # Check for mail-locking functions in a "mail" library. Probably this should
16975 # have the same check as for liblockfile below.
16976 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16977 $as_echo_n "checking for maillock in -lmail... " >&6; }
16978 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16979 $as_echo_n "(cached) " >&6
16980 else
16981 ac_check_lib_save_LIBS=$LIBS
16982 LIBS="-lmail $LIBS"
16983 cat >conftest.$ac_ext <<_ACEOF
16984 /* confdefs.h. */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16990 /* Override any GCC internal prototype to avoid an error.
16991 Use char because int might match the return type of a GCC
16992 builtin and then its argument prototype would still apply. */
16993 #ifdef __cplusplus
16994 extern "C"
16995 #endif
16996 char maillock ();
16998 main ()
17000 return maillock ();
17002 return 0;
17004 _ACEOF
17005 rm -f conftest.$ac_objext conftest$ac_exeext
17006 if { (ac_try="$ac_link"
17007 case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17010 esac
17011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17012 $as_echo "$ac_try_echo") >&5
17013 (eval "$ac_link") 2>conftest.er1
17014 ac_status=$?
17015 grep -v '^ *+' conftest.er1 >conftest.err
17016 rm -f conftest.er1
17017 cat conftest.err >&5
17018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } && {
17020 test -z "$ac_c_werror_flag" ||
17021 test ! -s conftest.err
17022 } && test -s conftest$ac_exeext && {
17023 test "$cross_compiling" = yes ||
17024 $as_test_x conftest$ac_exeext
17025 }; then
17026 ac_cv_lib_mail_maillock=yes
17027 else
17028 $as_echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17031 ac_cv_lib_mail_maillock=no
17034 rm -rf conftest.dSYM
17035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17036 conftest$ac_exeext conftest.$ac_ext
17037 LIBS=$ac_check_lib_save_LIBS
17039 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17040 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17041 if test $ac_cv_lib_mail_maillock = yes; then
17042 have_mail=yes
17043 else
17044 have_mail=no
17047 if test $have_mail = yes; then
17048 LIBS_MAIL=-lmail
17049 LIBS="$LIBS_MAIL $LIBS"
17051 cat >>confdefs.h <<\_ACEOF
17052 #define HAVE_LIBMAIL 1
17053 _ACEOF
17055 else
17056 LIBS_MAIL=
17058 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17059 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17060 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17061 $as_echo_n "(cached) " >&6
17062 else
17063 ac_check_lib_save_LIBS=$LIBS
17064 LIBS="-llockfile $LIBS"
17065 cat >conftest.$ac_ext <<_ACEOF
17066 /* confdefs.h. */
17067 _ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17072 /* Override any GCC internal prototype to avoid an error.
17073 Use char because int might match the return type of a GCC
17074 builtin and then its argument prototype would still apply. */
17075 #ifdef __cplusplus
17076 extern "C"
17077 #endif
17078 char maillock ();
17080 main ()
17082 return maillock ();
17084 return 0;
17086 _ACEOF
17087 rm -f conftest.$ac_objext conftest$ac_exeext
17088 if { (ac_try="$ac_link"
17089 case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092 esac
17093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17094 $as_echo "$ac_try_echo") >&5
17095 (eval "$ac_link") 2>conftest.er1
17096 ac_status=$?
17097 grep -v '^ *+' conftest.er1 >conftest.err
17098 rm -f conftest.er1
17099 cat conftest.err >&5
17100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } && {
17102 test -z "$ac_c_werror_flag" ||
17103 test ! -s conftest.err
17104 } && test -s conftest$ac_exeext && {
17105 test "$cross_compiling" = yes ||
17106 $as_test_x conftest$ac_exeext
17107 }; then
17108 ac_cv_lib_lockfile_maillock=yes
17109 else
17110 $as_echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17113 ac_cv_lib_lockfile_maillock=no
17116 rm -rf conftest.dSYM
17117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17118 conftest$ac_exeext conftest.$ac_ext
17119 LIBS=$ac_check_lib_save_LIBS
17121 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17122 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17123 if test $ac_cv_lib_lockfile_maillock = yes; then
17124 have_lockfile=yes
17125 else
17126 have_lockfile=no
17129 if test $have_lockfile = yes; then
17130 LIBS_MAIL=-llockfile
17131 LIBS="$LIBS_MAIL $LIBS"
17133 cat >>confdefs.h <<\_ACEOF
17134 #define HAVE_LIBLOCKFILE 1
17135 _ACEOF
17137 else
17138 # If we have the shared liblockfile, assume we must use it for mail
17139 # locking (e.g. Debian). If we couldn't link against liblockfile
17140 # (no liblockfile.a installed), ensure that we don't need to.
17141 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17142 set dummy liblockfile.so; ac_word=$2
17143 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17144 $as_echo_n "checking for $ac_word... " >&6; }
17145 if test "${ac_cv_prog_liblockfile+set}" = set; then
17146 $as_echo_n "(cached) " >&6
17147 else
17148 if test -n "$liblockfile"; then
17149 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17150 else
17151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17152 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17153 for as_dir in $as_dummy
17155 IFS=$as_save_IFS
17156 test -z "$as_dir" && as_dir=.
17157 for ac_exec_ext in '' $ac_executable_extensions; do
17158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17159 ac_cv_prog_liblockfile="yes"
17160 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17161 break 2
17163 done
17164 done
17165 IFS=$as_save_IFS
17167 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17170 liblockfile=$ac_cv_prog_liblockfile
17171 if test -n "$liblockfile"; then
17172 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17173 $as_echo "$liblockfile" >&6; }
17174 else
17175 { $as_echo "$as_me:$LINENO: result: no" >&5
17176 $as_echo "no" >&6; }
17180 if test $ac_cv_prog_liblockfile = yes; then
17181 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17182 This probably means that movemail could lose mail.
17183 There may be a \`development' package to install containing liblockfile." >&5
17184 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17185 This probably means that movemail could lose mail.
17186 There may be a \`development' package to install containing liblockfile." >&2;}
17187 { (exit 1); exit 1; }; }
17191 for ac_func in touchlock
17193 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17194 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17195 $as_echo_n "checking for $ac_func... " >&6; }
17196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17197 $as_echo_n "(cached) " >&6
17198 else
17199 cat >conftest.$ac_ext <<_ACEOF
17200 /* confdefs.h. */
17201 _ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17207 #define $ac_func innocuous_$ac_func
17209 /* System header to define __stub macros and hopefully few prototypes,
17210 which can conflict with char $ac_func (); below.
17211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17212 <limits.h> exists even on freestanding compilers. */
17214 #ifdef __STDC__
17215 # include <limits.h>
17216 #else
17217 # include <assert.h>
17218 #endif
17220 #undef $ac_func
17222 /* Override any GCC internal prototype to avoid an error.
17223 Use char because int might match the return type of a GCC
17224 builtin and then its argument prototype would still apply. */
17225 #ifdef __cplusplus
17226 extern "C"
17227 #endif
17228 char $ac_func ();
17229 /* The GNU C library defines this for functions which it implements
17230 to always fail with ENOSYS. Some functions are actually named
17231 something starting with __ and the normal name is an alias. */
17232 #if defined __stub_$ac_func || defined __stub___$ac_func
17233 choke me
17234 #endif
17237 main ()
17239 return $ac_func ();
17241 return 0;
17243 _ACEOF
17244 rm -f conftest.$ac_objext conftest$ac_exeext
17245 if { (ac_try="$ac_link"
17246 case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17249 esac
17250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17251 $as_echo "$ac_try_echo") >&5
17252 (eval "$ac_link") 2>conftest.er1
17253 ac_status=$?
17254 grep -v '^ *+' conftest.er1 >conftest.err
17255 rm -f conftest.er1
17256 cat conftest.err >&5
17257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } && {
17259 test -z "$ac_c_werror_flag" ||
17260 test ! -s conftest.err
17261 } && test -s conftest$ac_exeext && {
17262 test "$cross_compiling" = yes ||
17263 $as_test_x conftest$ac_exeext
17264 }; then
17265 eval "$as_ac_var=yes"
17266 else
17267 $as_echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17270 eval "$as_ac_var=no"
17273 rm -rf conftest.dSYM
17274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17275 conftest$ac_exeext conftest.$ac_ext
17277 ac_res=`eval 'as_val=${'$as_ac_var'}
17278 $as_echo "$as_val"'`
17279 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17280 $as_echo "$ac_res" >&6; }
17281 if test `eval 'as_val=${'$as_ac_var'}
17282 $as_echo "$as_val"'` = yes; then
17283 cat >>confdefs.h <<_ACEOF
17284 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17285 _ACEOF
17288 done
17291 for ac_header in maillock.h
17293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17295 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17296 $as_echo_n "checking for $ac_header... " >&6; }
17297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17298 $as_echo_n "(cached) " >&6
17300 ac_res=`eval 'as_val=${'$as_ac_Header'}
17301 $as_echo "$as_val"'`
17302 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17303 $as_echo "$ac_res" >&6; }
17304 else
17305 # Is the header compilable?
17306 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17307 $as_echo_n "checking $ac_header usability... " >&6; }
17308 cat >conftest.$ac_ext <<_ACEOF
17309 /* confdefs.h. */
17310 _ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17314 $ac_includes_default
17315 #include <$ac_header>
17316 _ACEOF
17317 rm -f conftest.$ac_objext
17318 if { (ac_try="$ac_compile"
17319 case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17322 esac
17323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17324 $as_echo "$ac_try_echo") >&5
17325 (eval "$ac_compile") 2>conftest.er1
17326 ac_status=$?
17327 grep -v '^ *+' conftest.er1 >conftest.err
17328 rm -f conftest.er1
17329 cat conftest.err >&5
17330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } && {
17332 test -z "$ac_c_werror_flag" ||
17333 test ! -s conftest.err
17334 } && test -s conftest.$ac_objext; then
17335 ac_header_compiler=yes
17336 else
17337 $as_echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 ac_header_compiler=no
17343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17344 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17345 $as_echo "$ac_header_compiler" >&6; }
17347 # Is the header present?
17348 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17349 $as_echo_n "checking $ac_header presence... " >&6; }
17350 cat >conftest.$ac_ext <<_ACEOF
17351 /* confdefs.h. */
17352 _ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h. */
17356 #include <$ac_header>
17357 _ACEOF
17358 if { (ac_try="$ac_cpp conftest.$ac_ext"
17359 case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17362 esac
17363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17364 $as_echo "$ac_try_echo") >&5
17365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17366 ac_status=$?
17367 grep -v '^ *+' conftest.er1 >conftest.err
17368 rm -f conftest.er1
17369 cat conftest.err >&5
17370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } >/dev/null && {
17372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17373 test ! -s conftest.err
17374 }; then
17375 ac_header_preproc=yes
17376 else
17377 $as_echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17380 ac_header_preproc=no
17383 rm -f conftest.err conftest.$ac_ext
17384 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17385 $as_echo "$ac_header_preproc" >&6; }
17387 # So? What about this header?
17388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17389 yes:no: )
17390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17391 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17393 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17394 ac_header_preproc=yes
17396 no:yes:* )
17397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17398 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17400 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17402 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17404 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17406 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17408 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17411 esac
17412 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17413 $as_echo_n "checking for $ac_header... " >&6; }
17414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17415 $as_echo_n "(cached) " >&6
17416 else
17417 eval "$as_ac_Header=\$ac_header_preproc"
17419 ac_res=`eval 'as_val=${'$as_ac_Header'}
17420 $as_echo "$as_val"'`
17421 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17422 $as_echo "$ac_res" >&6; }
17425 if test `eval 'as_val=${'$as_ac_Header'}
17426 $as_echo "$as_val"'` = yes; then
17427 cat >>confdefs.h <<_ACEOF
17428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17429 _ACEOF
17433 done
17508 for ac_func in gethostname getdomainname dup2 \
17509 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17510 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17511 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17512 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17513 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17514 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17515 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17516 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17517 cfmakeraw cfsetspeed
17519 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17520 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17521 $as_echo_n "checking for $ac_func... " >&6; }
17522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17523 $as_echo_n "(cached) " >&6
17524 else
17525 cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h. */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17533 #define $ac_func innocuous_$ac_func
17535 /* System header to define __stub macros and hopefully few prototypes,
17536 which can conflict with char $ac_func (); below.
17537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17538 <limits.h> exists even on freestanding compilers. */
17540 #ifdef __STDC__
17541 # include <limits.h>
17542 #else
17543 # include <assert.h>
17544 #endif
17546 #undef $ac_func
17548 /* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
17551 #ifdef __cplusplus
17552 extern "C"
17553 #endif
17554 char $ac_func ();
17555 /* The GNU C library defines this for functions which it implements
17556 to always fail with ENOSYS. Some functions are actually named
17557 something starting with __ and the normal name is an alias. */
17558 #if defined __stub_$ac_func || defined __stub___$ac_func
17559 choke me
17560 #endif
17563 main ()
17565 return $ac_func ();
17567 return 0;
17569 _ACEOF
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (ac_try="$ac_link"
17572 case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17575 esac
17576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17577 $as_echo "$ac_try_echo") >&5
17578 (eval "$ac_link") 2>conftest.er1
17579 ac_status=$?
17580 grep -v '^ *+' conftest.er1 >conftest.err
17581 rm -f conftest.er1
17582 cat conftest.err >&5
17583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } && {
17585 test -z "$ac_c_werror_flag" ||
17586 test ! -s conftest.err
17587 } && test -s conftest$ac_exeext && {
17588 test "$cross_compiling" = yes ||
17589 $as_test_x conftest$ac_exeext
17590 }; then
17591 eval "$as_ac_var=yes"
17592 else
17593 $as_echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17596 eval "$as_ac_var=no"
17599 rm -rf conftest.dSYM
17600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17601 conftest$ac_exeext conftest.$ac_ext
17603 ac_res=`eval 'as_val=${'$as_ac_var'}
17604 $as_echo "$as_val"'`
17605 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17606 $as_echo "$ac_res" >&6; }
17607 if test `eval 'as_val=${'$as_ac_var'}
17608 $as_echo "$as_val"'` = yes; then
17609 cat >>confdefs.h <<_ACEOF
17610 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17611 _ACEOF
17614 done
17618 for ac_header in sys/un.h
17620 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17622 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17623 $as_echo_n "checking for $ac_header... " >&6; }
17624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17625 $as_echo_n "(cached) " >&6
17627 ac_res=`eval 'as_val=${'$as_ac_Header'}
17628 $as_echo "$as_val"'`
17629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17630 $as_echo "$ac_res" >&6; }
17631 else
17632 # Is the header compilable?
17633 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17634 $as_echo_n "checking $ac_header usability... " >&6; }
17635 cat >conftest.$ac_ext <<_ACEOF
17636 /* confdefs.h. */
17637 _ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17641 $ac_includes_default
17642 #include <$ac_header>
17643 _ACEOF
17644 rm -f conftest.$ac_objext
17645 if { (ac_try="$ac_compile"
17646 case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649 esac
17650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17651 $as_echo "$ac_try_echo") >&5
17652 (eval "$ac_compile") 2>conftest.er1
17653 ac_status=$?
17654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
17657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } && {
17659 test -z "$ac_c_werror_flag" ||
17660 test ! -s conftest.err
17661 } && test -s conftest.$ac_objext; then
17662 ac_header_compiler=yes
17663 else
17664 $as_echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17667 ac_header_compiler=no
17670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17671 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17672 $as_echo "$ac_header_compiler" >&6; }
17674 # Is the header present?
17675 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17676 $as_echo_n "checking $ac_header presence... " >&6; }
17677 cat >conftest.$ac_ext <<_ACEOF
17678 /* confdefs.h. */
17679 _ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17683 #include <$ac_header>
17684 _ACEOF
17685 if { (ac_try="$ac_cpp conftest.$ac_ext"
17686 case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17689 esac
17690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17691 $as_echo "$ac_try_echo") >&5
17692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17693 ac_status=$?
17694 grep -v '^ *+' conftest.er1 >conftest.err
17695 rm -f conftest.er1
17696 cat conftest.err >&5
17697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } >/dev/null && {
17699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17700 test ! -s conftest.err
17701 }; then
17702 ac_header_preproc=yes
17703 else
17704 $as_echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17707 ac_header_preproc=no
17710 rm -f conftest.err conftest.$ac_ext
17711 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17712 $as_echo "$ac_header_preproc" >&6; }
17714 # So? What about this header?
17715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17716 yes:no: )
17717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17718 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17720 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17721 ac_header_preproc=yes
17723 no:yes:* )
17724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17725 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17727 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17729 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17731 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17733 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17735 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17738 esac
17739 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17740 $as_echo_n "checking for $ac_header... " >&6; }
17741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17742 $as_echo_n "(cached) " >&6
17743 else
17744 eval "$as_ac_Header=\$ac_header_preproc"
17746 ac_res=`eval 'as_val=${'$as_ac_Header'}
17747 $as_echo "$as_val"'`
17748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17749 $as_echo "$ac_res" >&6; }
17752 if test `eval 'as_val=${'$as_ac_Header'}
17753 $as_echo "$as_val"'` = yes; then
17754 cat >>confdefs.h <<_ACEOF
17755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17756 _ACEOF
17760 done
17767 for ac_header in $ac_header_list
17769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17772 $as_echo_n "checking for $ac_header... " >&6; }
17773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17774 $as_echo_n "(cached) " >&6
17776 ac_res=`eval 'as_val=${'$as_ac_Header'}
17777 $as_echo "$as_val"'`
17778 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17779 $as_echo "$ac_res" >&6; }
17780 else
17781 # Is the header compilable?
17782 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17783 $as_echo_n "checking $ac_header usability... " >&6; }
17784 cat >conftest.$ac_ext <<_ACEOF
17785 /* confdefs.h. */
17786 _ACEOF
17787 cat confdefs.h >>conftest.$ac_ext
17788 cat >>conftest.$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17790 $ac_includes_default
17791 #include <$ac_header>
17792 _ACEOF
17793 rm -f conftest.$ac_objext
17794 if { (ac_try="$ac_compile"
17795 case "(($ac_try" in
17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17798 esac
17799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17800 $as_echo "$ac_try_echo") >&5
17801 (eval "$ac_compile") 2>conftest.er1
17802 ac_status=$?
17803 grep -v '^ *+' conftest.er1 >conftest.err
17804 rm -f conftest.er1
17805 cat conftest.err >&5
17806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } && {
17808 test -z "$ac_c_werror_flag" ||
17809 test ! -s conftest.err
17810 } && test -s conftest.$ac_objext; then
17811 ac_header_compiler=yes
17812 else
17813 $as_echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17816 ac_header_compiler=no
17819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17820 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17821 $as_echo "$ac_header_compiler" >&6; }
17823 # Is the header present?
17824 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17825 $as_echo_n "checking $ac_header presence... " >&6; }
17826 cat >conftest.$ac_ext <<_ACEOF
17827 /* confdefs.h. */
17828 _ACEOF
17829 cat confdefs.h >>conftest.$ac_ext
17830 cat >>conftest.$ac_ext <<_ACEOF
17831 /* end confdefs.h. */
17832 #include <$ac_header>
17833 _ACEOF
17834 if { (ac_try="$ac_cpp conftest.$ac_ext"
17835 case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17838 esac
17839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17840 $as_echo "$ac_try_echo") >&5
17841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17842 ac_status=$?
17843 grep -v '^ *+' conftest.er1 >conftest.err
17844 rm -f conftest.er1
17845 cat conftest.err >&5
17846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } >/dev/null && {
17848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17849 test ! -s conftest.err
17850 }; then
17851 ac_header_preproc=yes
17852 else
17853 $as_echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17856 ac_header_preproc=no
17859 rm -f conftest.err conftest.$ac_ext
17860 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17861 $as_echo "$ac_header_preproc" >&6; }
17863 # So? What about this header?
17864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17865 yes:no: )
17866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17867 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17869 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17870 ac_header_preproc=yes
17872 no:yes:* )
17873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17874 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17876 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17878 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17880 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17882 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17884 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17887 esac
17888 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17889 $as_echo_n "checking for $ac_header... " >&6; }
17890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17891 $as_echo_n "(cached) " >&6
17892 else
17893 eval "$as_ac_Header=\$ac_header_preproc"
17895 ac_res=`eval 'as_val=${'$as_ac_Header'}
17896 $as_echo "$as_val"'`
17897 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17898 $as_echo "$ac_res" >&6; }
17901 if test `eval 'as_val=${'$as_ac_Header'}
17902 $as_echo "$as_val"'` = yes; then
17903 cat >>confdefs.h <<_ACEOF
17904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17905 _ACEOF
17909 done
17919 for ac_func in $ac_func_list
17921 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17922 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17923 $as_echo_n "checking for $ac_func... " >&6; }
17924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17925 $as_echo_n "(cached) " >&6
17926 else
17927 cat >conftest.$ac_ext <<_ACEOF
17928 /* confdefs.h. */
17929 _ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17935 #define $ac_func innocuous_$ac_func
17937 /* System header to define __stub macros and hopefully few prototypes,
17938 which can conflict with char $ac_func (); below.
17939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17940 <limits.h> exists even on freestanding compilers. */
17942 #ifdef __STDC__
17943 # include <limits.h>
17944 #else
17945 # include <assert.h>
17946 #endif
17948 #undef $ac_func
17950 /* Override any GCC internal prototype to avoid an error.
17951 Use char because int might match the return type of a GCC
17952 builtin and then its argument prototype would still apply. */
17953 #ifdef __cplusplus
17954 extern "C"
17955 #endif
17956 char $ac_func ();
17957 /* The GNU C library defines this for functions which it implements
17958 to always fail with ENOSYS. Some functions are actually named
17959 something starting with __ and the normal name is an alias. */
17960 #if defined __stub_$ac_func || defined __stub___$ac_func
17961 choke me
17962 #endif
17965 main ()
17967 return $ac_func ();
17969 return 0;
17971 _ACEOF
17972 rm -f conftest.$ac_objext conftest$ac_exeext
17973 if { (ac_try="$ac_link"
17974 case "(($ac_try" in
17975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17976 *) ac_try_echo=$ac_try;;
17977 esac
17978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17979 $as_echo "$ac_try_echo") >&5
17980 (eval "$ac_link") 2>conftest.er1
17981 ac_status=$?
17982 grep -v '^ *+' conftest.er1 >conftest.err
17983 rm -f conftest.er1
17984 cat conftest.err >&5
17985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } && {
17987 test -z "$ac_c_werror_flag" ||
17988 test ! -s conftest.err
17989 } && test -s conftest$ac_exeext && {
17990 test "$cross_compiling" = yes ||
17991 $as_test_x conftest$ac_exeext
17992 }; then
17993 eval "$as_ac_var=yes"
17994 else
17995 $as_echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17998 eval "$as_ac_var=no"
18001 rm -rf conftest.dSYM
18002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18003 conftest$ac_exeext conftest.$ac_ext
18005 ac_res=`eval 'as_val=${'$as_ac_var'}
18006 $as_echo "$as_val"'`
18007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18008 $as_echo "$ac_res" >&6; }
18009 if test `eval 'as_val=${'$as_ac_var'}
18010 $as_echo "$as_val"'` = yes; then
18011 cat >>confdefs.h <<_ACEOF
18012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18013 _ACEOF
18016 done
18034 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18035 $as_echo_n "checking for working mktime... " >&6; }
18036 if test "${ac_cv_func_working_mktime+set}" = set; then
18037 $as_echo_n "(cached) " >&6
18038 else
18039 if test "$cross_compiling" = yes; then
18040 ac_cv_func_working_mktime=no
18041 else
18042 cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h. */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 /* Test program from Paul Eggert and Tony Leneis. */
18049 #ifdef TIME_WITH_SYS_TIME
18050 # include <sys/time.h>
18051 # include <time.h>
18052 #else
18053 # ifdef HAVE_SYS_TIME_H
18054 # include <sys/time.h>
18055 # else
18056 # include <time.h>
18057 # endif
18058 #endif
18060 #include <limits.h>
18061 #include <stdlib.h>
18063 #ifdef HAVE_UNISTD_H
18064 # include <unistd.h>
18065 #endif
18067 #ifndef HAVE_ALARM
18068 # define alarm(X) /* empty */
18069 #endif
18071 /* Work around redefinition to rpl_putenv by other config tests. */
18072 #undef putenv
18074 static time_t time_t_max;
18075 static time_t time_t_min;
18077 /* Values we'll use to set the TZ environment variable. */
18078 static char *tz_strings[] = {
18079 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18080 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18082 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18084 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18085 Based on a problem report from Andreas Jaeger. */
18086 static int
18087 spring_forward_gap ()
18089 /* glibc (up to about 1998-10-07) failed this test. */
18090 struct tm tm;
18092 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18093 instead of "TZ=America/Vancouver" in order to detect the bug even
18094 on systems that don't support the Olson extension, or don't have the
18095 full zoneinfo tables installed. */
18096 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18098 tm.tm_year = 98;
18099 tm.tm_mon = 3;
18100 tm.tm_mday = 5;
18101 tm.tm_hour = 2;
18102 tm.tm_min = 0;
18103 tm.tm_sec = 0;
18104 tm.tm_isdst = -1;
18105 return mktime (&tm) != (time_t) -1;
18108 static int
18109 mktime_test1 (now)
18110 time_t now;
18112 struct tm *lt;
18113 return ! (lt = localtime (&now)) || mktime (lt) == now;
18116 static int
18117 mktime_test (now)
18118 time_t now;
18120 return (mktime_test1 (now)
18121 && mktime_test1 ((time_t) (time_t_max - now))
18122 && mktime_test1 ((time_t) (time_t_min + now)));
18125 static int
18126 irix_6_4_bug ()
18128 /* Based on code from Ariel Faigon. */
18129 struct tm tm;
18130 tm.tm_year = 96;
18131 tm.tm_mon = 3;
18132 tm.tm_mday = 0;
18133 tm.tm_hour = 0;
18134 tm.tm_min = 0;
18135 tm.tm_sec = 0;
18136 tm.tm_isdst = -1;
18137 mktime (&tm);
18138 return tm.tm_mon == 2 && tm.tm_mday == 31;
18141 static int
18142 bigtime_test (j)
18143 int j;
18145 struct tm tm;
18146 time_t now;
18147 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18148 now = mktime (&tm);
18149 if (now != (time_t) -1)
18151 struct tm *lt = localtime (&now);
18152 if (! (lt
18153 && lt->tm_year == tm.tm_year
18154 && lt->tm_mon == tm.tm_mon
18155 && lt->tm_mday == tm.tm_mday
18156 && lt->tm_hour == tm.tm_hour
18157 && lt->tm_min == tm.tm_min
18158 && lt->tm_sec == tm.tm_sec
18159 && lt->tm_yday == tm.tm_yday
18160 && lt->tm_wday == tm.tm_wday
18161 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18162 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18163 return 0;
18165 return 1;
18168 static int
18169 year_2050_test ()
18171 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18172 ignoring leap seconds. */
18173 unsigned long int answer = 2527315200UL;
18175 struct tm tm;
18176 time_t t;
18177 tm.tm_year = 2050 - 1900;
18178 tm.tm_mon = 2 - 1;
18179 tm.tm_mday = 1;
18180 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18181 tm.tm_isdst = -1;
18183 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18184 instead of "TZ=America/Vancouver" in order to detect the bug even
18185 on systems that don't support the Olson extension, or don't have the
18186 full zoneinfo tables installed. */
18187 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18189 t = mktime (&tm);
18191 /* Check that the result is either a failure, or close enough
18192 to the correct answer that we can assume the discrepancy is
18193 due to leap seconds. */
18194 return (t == (time_t) -1
18195 || (0 < t && answer - 120 <= t && t <= answer + 120));
18199 main ()
18201 time_t t, delta;
18202 int i, j;
18204 /* This test makes some buggy mktime implementations loop.
18205 Give up after 60 seconds; a mktime slower than that
18206 isn't worth using anyway. */
18207 alarm (60);
18209 for (;;)
18211 t = (time_t_max << 1) + 1;
18212 if (t <= time_t_max)
18213 break;
18214 time_t_max = t;
18216 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18218 delta = time_t_max / 997; /* a suitable prime number */
18219 for (i = 0; i < N_STRINGS; i++)
18221 if (tz_strings[i])
18222 putenv (tz_strings[i]);
18224 for (t = 0; t <= time_t_max - delta; t += delta)
18225 if (! mktime_test (t))
18226 return 1;
18227 if (! (mktime_test ((time_t) 1)
18228 && mktime_test ((time_t) (60 * 60))
18229 && mktime_test ((time_t) (60 * 60 * 24))))
18230 return 1;
18232 for (j = 1; ; j <<= 1)
18233 if (! bigtime_test (j))
18234 return 1;
18235 else if (INT_MAX / 2 < j)
18236 break;
18237 if (! bigtime_test (INT_MAX))
18238 return 1;
18240 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18242 _ACEOF
18243 rm -f conftest$ac_exeext
18244 if { (ac_try="$ac_link"
18245 case "(($ac_try" in
18246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247 *) ac_try_echo=$ac_try;;
18248 esac
18249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18250 $as_echo "$ac_try_echo") >&5
18251 (eval "$ac_link") 2>&5
18252 ac_status=$?
18253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18255 { (case "(($ac_try" in
18256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257 *) ac_try_echo=$ac_try;;
18258 esac
18259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18260 $as_echo "$ac_try_echo") >&5
18261 (eval "$ac_try") 2>&5
18262 ac_status=$?
18263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; }; then
18265 ac_cv_func_working_mktime=yes
18266 else
18267 $as_echo "$as_me: program exited with status $ac_status" >&5
18268 $as_echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18271 ( exit $ac_status )
18272 ac_cv_func_working_mktime=no
18274 rm -rf conftest.dSYM
18275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18280 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18281 $as_echo "$ac_cv_func_working_mktime" >&6; }
18282 if test $ac_cv_func_working_mktime = no; then
18283 case " $LIBOBJS " in
18284 *" mktime.$ac_objext "* ) ;;
18285 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18287 esac
18291 if test "$ac_cv_func_working_mktime" = no; then
18293 cat >>confdefs.h <<\_ACEOF
18294 #define BROKEN_MKTIME 1
18295 _ACEOF
18299 ac_have_func=no # yes means we've found a way to get the load average.
18301 # Make sure getloadavg.c is where it belongs, at configure-time.
18302 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18303 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18304 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18305 { (exit 1); exit 1; }; }
18307 ac_save_LIBS=$LIBS
18309 # Check for getloadavg, but be sure not to touch the cache variable.
18310 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18311 $as_echo_n "checking for getloadavg... " >&6; }
18312 if test "${ac_cv_func_getloadavg+set}" = set; then
18313 $as_echo_n "(cached) " >&6
18314 else
18315 cat >conftest.$ac_ext <<_ACEOF
18316 /* confdefs.h. */
18317 _ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h. */
18321 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18323 #define getloadavg innocuous_getloadavg
18325 /* System header to define __stub macros and hopefully few prototypes,
18326 which can conflict with char getloadavg (); below.
18327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18328 <limits.h> exists even on freestanding compilers. */
18330 #ifdef __STDC__
18331 # include <limits.h>
18332 #else
18333 # include <assert.h>
18334 #endif
18336 #undef getloadavg
18338 /* Override any GCC internal prototype to avoid an error.
18339 Use char because int might match the return type of a GCC
18340 builtin and then its argument prototype would still apply. */
18341 #ifdef __cplusplus
18342 extern "C"
18343 #endif
18344 char getloadavg ();
18345 /* The GNU C library defines this for functions which it implements
18346 to always fail with ENOSYS. Some functions are actually named
18347 something starting with __ and the normal name is an alias. */
18348 #if defined __stub_getloadavg || defined __stub___getloadavg
18349 choke me
18350 #endif
18353 main ()
18355 return getloadavg ();
18357 return 0;
18359 _ACEOF
18360 rm -f conftest.$ac_objext conftest$ac_exeext
18361 if { (ac_try="$ac_link"
18362 case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18365 esac
18366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18367 $as_echo "$ac_try_echo") >&5
18368 (eval "$ac_link") 2>conftest.er1
18369 ac_status=$?
18370 grep -v '^ *+' conftest.er1 >conftest.err
18371 rm -f conftest.er1
18372 cat conftest.err >&5
18373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } && {
18375 test -z "$ac_c_werror_flag" ||
18376 test ! -s conftest.err
18377 } && test -s conftest$ac_exeext && {
18378 test "$cross_compiling" = yes ||
18379 $as_test_x conftest$ac_exeext
18380 }; then
18381 ac_cv_func_getloadavg=yes
18382 else
18383 $as_echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18386 ac_cv_func_getloadavg=no
18389 rm -rf conftest.dSYM
18390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18391 conftest$ac_exeext conftest.$ac_ext
18393 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18394 $as_echo "$ac_cv_func_getloadavg" >&6; }
18395 if test $ac_cv_func_getloadavg = yes; then
18396 exit 0
18397 else
18398 exit 1
18400 ) && ac_have_func=yes
18402 # On HPUX9, an unprivileged user can get load averages through this function.
18404 for ac_func in pstat_getdynamic
18406 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18407 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18408 $as_echo_n "checking for $ac_func... " >&6; }
18409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18410 $as_echo_n "(cached) " >&6
18411 else
18412 cat >conftest.$ac_ext <<_ACEOF
18413 /* confdefs.h. */
18414 _ACEOF
18415 cat confdefs.h >>conftest.$ac_ext
18416 cat >>conftest.$ac_ext <<_ACEOF
18417 /* end confdefs.h. */
18418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18420 #define $ac_func innocuous_$ac_func
18422 /* System header to define __stub macros and hopefully few prototypes,
18423 which can conflict with char $ac_func (); below.
18424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18425 <limits.h> exists even on freestanding compilers. */
18427 #ifdef __STDC__
18428 # include <limits.h>
18429 #else
18430 # include <assert.h>
18431 #endif
18433 #undef $ac_func
18435 /* Override any GCC internal prototype to avoid an error.
18436 Use char because int might match the return type of a GCC
18437 builtin and then its argument prototype would still apply. */
18438 #ifdef __cplusplus
18439 extern "C"
18440 #endif
18441 char $ac_func ();
18442 /* The GNU C library defines this for functions which it implements
18443 to always fail with ENOSYS. Some functions are actually named
18444 something starting with __ and the normal name is an alias. */
18445 #if defined __stub_$ac_func || defined __stub___$ac_func
18446 choke me
18447 #endif
18450 main ()
18452 return $ac_func ();
18454 return 0;
18456 _ACEOF
18457 rm -f conftest.$ac_objext conftest$ac_exeext
18458 if { (ac_try="$ac_link"
18459 case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18462 esac
18463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18464 $as_echo "$ac_try_echo") >&5
18465 (eval "$ac_link") 2>conftest.er1
18466 ac_status=$?
18467 grep -v '^ *+' conftest.er1 >conftest.err
18468 rm -f conftest.er1
18469 cat conftest.err >&5
18470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); } && {
18472 test -z "$ac_c_werror_flag" ||
18473 test ! -s conftest.err
18474 } && test -s conftest$ac_exeext && {
18475 test "$cross_compiling" = yes ||
18476 $as_test_x conftest$ac_exeext
18477 }; then
18478 eval "$as_ac_var=yes"
18479 else
18480 $as_echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 eval "$as_ac_var=no"
18486 rm -rf conftest.dSYM
18487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18488 conftest$ac_exeext conftest.$ac_ext
18490 ac_res=`eval 'as_val=${'$as_ac_var'}
18491 $as_echo "$as_val"'`
18492 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18493 $as_echo "$ac_res" >&6; }
18494 if test `eval 'as_val=${'$as_ac_var'}
18495 $as_echo "$as_val"'` = yes; then
18496 cat >>confdefs.h <<_ACEOF
18497 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18498 _ACEOF
18501 done
18504 # Solaris has libkstat which does not require root.
18506 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18507 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18508 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18509 $as_echo_n "(cached) " >&6
18510 else
18511 ac_check_lib_save_LIBS=$LIBS
18512 LIBS="-lkstat $LIBS"
18513 cat >conftest.$ac_ext <<_ACEOF
18514 /* confdefs.h. */
18515 _ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h. */
18520 /* Override any GCC internal prototype to avoid an error.
18521 Use char because int might match the return type of a GCC
18522 builtin and then its argument prototype would still apply. */
18523 #ifdef __cplusplus
18524 extern "C"
18525 #endif
18526 char kstat_open ();
18528 main ()
18530 return kstat_open ();
18532 return 0;
18534 _ACEOF
18535 rm -f conftest.$ac_objext conftest$ac_exeext
18536 if { (ac_try="$ac_link"
18537 case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540 esac
18541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18542 $as_echo "$ac_try_echo") >&5
18543 (eval "$ac_link") 2>conftest.er1
18544 ac_status=$?
18545 grep -v '^ *+' conftest.er1 >conftest.err
18546 rm -f conftest.er1
18547 cat conftest.err >&5
18548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } && {
18550 test -z "$ac_c_werror_flag" ||
18551 test ! -s conftest.err
18552 } && test -s conftest$ac_exeext && {
18553 test "$cross_compiling" = yes ||
18554 $as_test_x conftest$ac_exeext
18555 }; then
18556 ac_cv_lib_kstat_kstat_open=yes
18557 else
18558 $as_echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18561 ac_cv_lib_kstat_kstat_open=no
18564 rm -rf conftest.dSYM
18565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18566 conftest$ac_exeext conftest.$ac_ext
18567 LIBS=$ac_check_lib_save_LIBS
18569 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18570 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18571 if test $ac_cv_lib_kstat_kstat_open = yes; then
18572 cat >>confdefs.h <<_ACEOF
18573 #define HAVE_LIBKSTAT 1
18574 _ACEOF
18576 LIBS="-lkstat $LIBS"
18580 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18582 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18583 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18584 # to get the right answer into the cache.
18585 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18586 if test $ac_have_func = no; then
18587 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18588 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18589 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18590 $as_echo_n "(cached) " >&6
18591 else
18592 ac_check_lib_save_LIBS=$LIBS
18593 LIBS="-lelf $LIBS"
18594 cat >conftest.$ac_ext <<_ACEOF
18595 /* confdefs.h. */
18596 _ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18601 /* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18604 #ifdef __cplusplus
18605 extern "C"
18606 #endif
18607 char elf_begin ();
18609 main ()
18611 return elf_begin ();
18613 return 0;
18615 _ACEOF
18616 rm -f conftest.$ac_objext conftest$ac_exeext
18617 if { (ac_try="$ac_link"
18618 case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18621 esac
18622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18623 $as_echo "$ac_try_echo") >&5
18624 (eval "$ac_link") 2>conftest.er1
18625 ac_status=$?
18626 grep -v '^ *+' conftest.er1 >conftest.err
18627 rm -f conftest.er1
18628 cat conftest.err >&5
18629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } && {
18631 test -z "$ac_c_werror_flag" ||
18632 test ! -s conftest.err
18633 } && test -s conftest$ac_exeext && {
18634 test "$cross_compiling" = yes ||
18635 $as_test_x conftest$ac_exeext
18636 }; then
18637 ac_cv_lib_elf_elf_begin=yes
18638 else
18639 $as_echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18642 ac_cv_lib_elf_elf_begin=no
18645 rm -rf conftest.dSYM
18646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18647 conftest$ac_exeext conftest.$ac_ext
18648 LIBS=$ac_check_lib_save_LIBS
18650 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18651 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18652 if test $ac_cv_lib_elf_elf_begin = yes; then
18653 LIBS="-lelf $LIBS"
18657 if test $ac_have_func = no; then
18658 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18659 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18660 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18661 $as_echo_n "(cached) " >&6
18662 else
18663 ac_check_lib_save_LIBS=$LIBS
18664 LIBS="-lkvm $LIBS"
18665 cat >conftest.$ac_ext <<_ACEOF
18666 /* confdefs.h. */
18667 _ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h. */
18672 /* Override any GCC internal prototype to avoid an error.
18673 Use char because int might match the return type of a GCC
18674 builtin and then its argument prototype would still apply. */
18675 #ifdef __cplusplus
18676 extern "C"
18677 #endif
18678 char kvm_open ();
18680 main ()
18682 return kvm_open ();
18684 return 0;
18686 _ACEOF
18687 rm -f conftest.$ac_objext conftest$ac_exeext
18688 if { (ac_try="$ac_link"
18689 case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18692 esac
18693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18694 $as_echo "$ac_try_echo") >&5
18695 (eval "$ac_link") 2>conftest.er1
18696 ac_status=$?
18697 grep -v '^ *+' conftest.er1 >conftest.err
18698 rm -f conftest.er1
18699 cat conftest.err >&5
18700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } && {
18702 test -z "$ac_c_werror_flag" ||
18703 test ! -s conftest.err
18704 } && test -s conftest$ac_exeext && {
18705 test "$cross_compiling" = yes ||
18706 $as_test_x conftest$ac_exeext
18707 }; then
18708 ac_cv_lib_kvm_kvm_open=yes
18709 else
18710 $as_echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18713 ac_cv_lib_kvm_kvm_open=no
18716 rm -rf conftest.dSYM
18717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18718 conftest$ac_exeext conftest.$ac_ext
18719 LIBS=$ac_check_lib_save_LIBS
18721 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18722 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18723 if test $ac_cv_lib_kvm_kvm_open = yes; then
18724 LIBS="-lkvm $LIBS"
18727 # Check for the 4.4BSD definition of getloadavg.
18728 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18729 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18730 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18731 $as_echo_n "(cached) " >&6
18732 else
18733 ac_check_lib_save_LIBS=$LIBS
18734 LIBS="-lutil $LIBS"
18735 cat >conftest.$ac_ext <<_ACEOF
18736 /* confdefs.h. */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18742 /* Override any GCC internal prototype to avoid an error.
18743 Use char because int might match the return type of a GCC
18744 builtin and then its argument prototype would still apply. */
18745 #ifdef __cplusplus
18746 extern "C"
18747 #endif
18748 char getloadavg ();
18750 main ()
18752 return getloadavg ();
18754 return 0;
18756 _ACEOF
18757 rm -f conftest.$ac_objext conftest$ac_exeext
18758 if { (ac_try="$ac_link"
18759 case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18762 esac
18763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18764 $as_echo "$ac_try_echo") >&5
18765 (eval "$ac_link") 2>conftest.er1
18766 ac_status=$?
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
18770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } && {
18772 test -z "$ac_c_werror_flag" ||
18773 test ! -s conftest.err
18774 } && test -s conftest$ac_exeext && {
18775 test "$cross_compiling" = yes ||
18776 $as_test_x conftest$ac_exeext
18777 }; then
18778 ac_cv_lib_util_getloadavg=yes
18779 else
18780 $as_echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18783 ac_cv_lib_util_getloadavg=no
18786 rm -rf conftest.dSYM
18787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18788 conftest$ac_exeext conftest.$ac_ext
18789 LIBS=$ac_check_lib_save_LIBS
18791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18792 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18793 if test $ac_cv_lib_util_getloadavg = yes; then
18794 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18799 if test $ac_have_func = no; then
18800 # There is a commonly available library for RS/6000 AIX.
18801 # Since it is not a standard part of AIX, it might be installed locally.
18802 ac_getloadavg_LIBS=$LIBS
18803 LIBS="-L/usr/local/lib $LIBS"
18804 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18805 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18806 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18807 $as_echo_n "(cached) " >&6
18808 else
18809 ac_check_lib_save_LIBS=$LIBS
18810 LIBS="-lgetloadavg $LIBS"
18811 cat >conftest.$ac_ext <<_ACEOF
18812 /* confdefs.h. */
18813 _ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18818 /* Override any GCC internal prototype to avoid an error.
18819 Use char because int might match the return type of a GCC
18820 builtin and then its argument prototype would still apply. */
18821 #ifdef __cplusplus
18822 extern "C"
18823 #endif
18824 char getloadavg ();
18826 main ()
18828 return getloadavg ();
18830 return 0;
18832 _ACEOF
18833 rm -f conftest.$ac_objext conftest$ac_exeext
18834 if { (ac_try="$ac_link"
18835 case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18838 esac
18839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18840 $as_echo "$ac_try_echo") >&5
18841 (eval "$ac_link") 2>conftest.er1
18842 ac_status=$?
18843 grep -v '^ *+' conftest.er1 >conftest.err
18844 rm -f conftest.er1
18845 cat conftest.err >&5
18846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } && {
18848 test -z "$ac_c_werror_flag" ||
18849 test ! -s conftest.err
18850 } && test -s conftest$ac_exeext && {
18851 test "$cross_compiling" = yes ||
18852 $as_test_x conftest$ac_exeext
18853 }; then
18854 ac_cv_lib_getloadavg_getloadavg=yes
18855 else
18856 $as_echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18859 ac_cv_lib_getloadavg_getloadavg=no
18862 rm -rf conftest.dSYM
18863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18864 conftest$ac_exeext conftest.$ac_ext
18865 LIBS=$ac_check_lib_save_LIBS
18867 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18868 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18869 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18870 LIBS="-lgetloadavg $LIBS"
18871 else
18872 LIBS=$ac_getloadavg_LIBS
18877 # Make sure it is really in the library, if we think we found it,
18878 # otherwise set up the replacement function.
18880 for ac_func in getloadavg
18882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18883 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18884 $as_echo_n "checking for $ac_func... " >&6; }
18885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18886 $as_echo_n "(cached) " >&6
18887 else
18888 cat >conftest.$ac_ext <<_ACEOF
18889 /* confdefs.h. */
18890 _ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h. */
18894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18896 #define $ac_func innocuous_$ac_func
18898 /* System header to define __stub macros and hopefully few prototypes,
18899 which can conflict with char $ac_func (); below.
18900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18901 <limits.h> exists even on freestanding compilers. */
18903 #ifdef __STDC__
18904 # include <limits.h>
18905 #else
18906 # include <assert.h>
18907 #endif
18909 #undef $ac_func
18911 /* Override any GCC internal prototype to avoid an error.
18912 Use char because int might match the return type of a GCC
18913 builtin and then its argument prototype would still apply. */
18914 #ifdef __cplusplus
18915 extern "C"
18916 #endif
18917 char $ac_func ();
18918 /* The GNU C library defines this for functions which it implements
18919 to always fail with ENOSYS. Some functions are actually named
18920 something starting with __ and the normal name is an alias. */
18921 #if defined __stub_$ac_func || defined __stub___$ac_func
18922 choke me
18923 #endif
18926 main ()
18928 return $ac_func ();
18930 return 0;
18932 _ACEOF
18933 rm -f conftest.$ac_objext conftest$ac_exeext
18934 if { (ac_try="$ac_link"
18935 case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18938 esac
18939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18940 $as_echo "$ac_try_echo") >&5
18941 (eval "$ac_link") 2>conftest.er1
18942 ac_status=$?
18943 grep -v '^ *+' conftest.er1 >conftest.err
18944 rm -f conftest.er1
18945 cat conftest.err >&5
18946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } && {
18948 test -z "$ac_c_werror_flag" ||
18949 test ! -s conftest.err
18950 } && test -s conftest$ac_exeext && {
18951 test "$cross_compiling" = yes ||
18952 $as_test_x conftest$ac_exeext
18953 }; then
18954 eval "$as_ac_var=yes"
18955 else
18956 $as_echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18959 eval "$as_ac_var=no"
18962 rm -rf conftest.dSYM
18963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18964 conftest$ac_exeext conftest.$ac_ext
18966 ac_res=`eval 'as_val=${'$as_ac_var'}
18967 $as_echo "$as_val"'`
18968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18969 $as_echo "$ac_res" >&6; }
18970 if test `eval 'as_val=${'$as_ac_var'}
18971 $as_echo "$as_val"'` = yes; then
18972 cat >>confdefs.h <<_ACEOF
18973 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18974 _ACEOF
18976 else
18977 case " $LIBOBJS " in
18978 *" getloadavg.$ac_objext "* ) ;;
18979 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18981 esac
18984 cat >>confdefs.h <<\_ACEOF
18985 #define C_GETLOADAVG 1
18986 _ACEOF
18988 # Figure out what our getloadavg.c needs.
18989 ac_have_func=no
18990 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18991 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18992 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18993 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18994 $as_echo_n "(cached) " >&6
18996 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18997 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18998 else
18999 # Is the header compilable?
19000 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19001 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19002 cat >conftest.$ac_ext <<_ACEOF
19003 /* confdefs.h. */
19004 _ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19008 $ac_includes_default
19009 #include <sys/dg_sys_info.h>
19010 _ACEOF
19011 rm -f conftest.$ac_objext
19012 if { (ac_try="$ac_compile"
19013 case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19016 esac
19017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19018 $as_echo "$ac_try_echo") >&5
19019 (eval "$ac_compile") 2>conftest.er1
19020 ac_status=$?
19021 grep -v '^ *+' conftest.er1 >conftest.err
19022 rm -f conftest.er1
19023 cat conftest.err >&5
19024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } && {
19026 test -z "$ac_c_werror_flag" ||
19027 test ! -s conftest.err
19028 } && test -s conftest.$ac_objext; then
19029 ac_header_compiler=yes
19030 else
19031 $as_echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19034 ac_header_compiler=no
19037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19038 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19039 $as_echo "$ac_header_compiler" >&6; }
19041 # Is the header present?
19042 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19043 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19044 cat >conftest.$ac_ext <<_ACEOF
19045 /* confdefs.h. */
19046 _ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050 #include <sys/dg_sys_info.h>
19051 _ACEOF
19052 if { (ac_try="$ac_cpp conftest.$ac_ext"
19053 case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19056 esac
19057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19058 $as_echo "$ac_try_echo") >&5
19059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19060 ac_status=$?
19061 grep -v '^ *+' conftest.er1 >conftest.err
19062 rm -f conftest.er1
19063 cat conftest.err >&5
19064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } >/dev/null && {
19066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19067 test ! -s conftest.err
19068 }; then
19069 ac_header_preproc=yes
19070 else
19071 $as_echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19074 ac_header_preproc=no
19077 rm -f conftest.err conftest.$ac_ext
19078 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19079 $as_echo "$ac_header_preproc" >&6; }
19081 # So? What about this header?
19082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19083 yes:no: )
19084 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19085 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19086 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19087 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19088 ac_header_preproc=yes
19090 no:yes:* )
19091 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19092 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19093 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19094 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19095 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19096 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19097 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19098 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19099 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19100 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19101 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19102 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19105 esac
19106 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19107 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19108 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19109 $as_echo_n "(cached) " >&6
19110 else
19111 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19113 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19114 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19117 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19118 ac_have_func=yes
19120 cat >>confdefs.h <<\_ACEOF
19121 #define DGUX 1
19122 _ACEOF
19125 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19126 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19127 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19128 $as_echo_n "(cached) " >&6
19129 else
19130 ac_check_lib_save_LIBS=$LIBS
19131 LIBS="-ldgc $LIBS"
19132 cat >conftest.$ac_ext <<_ACEOF
19133 /* confdefs.h. */
19134 _ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19139 /* Override any GCC internal prototype to avoid an error.
19140 Use char because int might match the return type of a GCC
19141 builtin and then its argument prototype would still apply. */
19142 #ifdef __cplusplus
19143 extern "C"
19144 #endif
19145 char dg_sys_info ();
19147 main ()
19149 return dg_sys_info ();
19151 return 0;
19153 _ACEOF
19154 rm -f conftest.$ac_objext conftest$ac_exeext
19155 if { (ac_try="$ac_link"
19156 case "(($ac_try" in
19157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158 *) ac_try_echo=$ac_try;;
19159 esac
19160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19161 $as_echo "$ac_try_echo") >&5
19162 (eval "$ac_link") 2>conftest.er1
19163 ac_status=$?
19164 grep -v '^ *+' conftest.er1 >conftest.err
19165 rm -f conftest.er1
19166 cat conftest.err >&5
19167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } && {
19169 test -z "$ac_c_werror_flag" ||
19170 test ! -s conftest.err
19171 } && test -s conftest$ac_exeext && {
19172 test "$cross_compiling" = yes ||
19173 $as_test_x conftest$ac_exeext
19174 }; then
19175 ac_cv_lib_dgc_dg_sys_info=yes
19176 else
19177 $as_echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19180 ac_cv_lib_dgc_dg_sys_info=no
19183 rm -rf conftest.dSYM
19184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19185 conftest$ac_exeext conftest.$ac_ext
19186 LIBS=$ac_check_lib_save_LIBS
19188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19189 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19190 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19191 cat >>confdefs.h <<_ACEOF
19192 #define HAVE_LIBDGC 1
19193 _ACEOF
19195 LIBS="-ldgc $LIBS"
19203 if test "${ac_cv_header_locale_h+set}" = set; then
19204 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19205 $as_echo_n "checking for locale.h... " >&6; }
19206 if test "${ac_cv_header_locale_h+set}" = set; then
19207 $as_echo_n "(cached) " >&6
19209 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19210 $as_echo "$ac_cv_header_locale_h" >&6; }
19211 else
19212 # Is the header compilable?
19213 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19214 $as_echo_n "checking locale.h usability... " >&6; }
19215 cat >conftest.$ac_ext <<_ACEOF
19216 /* confdefs.h. */
19217 _ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19221 $ac_includes_default
19222 #include <locale.h>
19223 _ACEOF
19224 rm -f conftest.$ac_objext
19225 if { (ac_try="$ac_compile"
19226 case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19229 esac
19230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19231 $as_echo "$ac_try_echo") >&5
19232 (eval "$ac_compile") 2>conftest.er1
19233 ac_status=$?
19234 grep -v '^ *+' conftest.er1 >conftest.err
19235 rm -f conftest.er1
19236 cat conftest.err >&5
19237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } && {
19239 test -z "$ac_c_werror_flag" ||
19240 test ! -s conftest.err
19241 } && test -s conftest.$ac_objext; then
19242 ac_header_compiler=yes
19243 else
19244 $as_echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 ac_header_compiler=no
19250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19251 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19252 $as_echo "$ac_header_compiler" >&6; }
19254 # Is the header present?
19255 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19256 $as_echo_n "checking locale.h presence... " >&6; }
19257 cat >conftest.$ac_ext <<_ACEOF
19258 /* confdefs.h. */
19259 _ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19263 #include <locale.h>
19264 _ACEOF
19265 if { (ac_try="$ac_cpp conftest.$ac_ext"
19266 case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19269 esac
19270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19271 $as_echo "$ac_try_echo") >&5
19272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19273 ac_status=$?
19274 grep -v '^ *+' conftest.er1 >conftest.err
19275 rm -f conftest.er1
19276 cat conftest.err >&5
19277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } >/dev/null && {
19279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19280 test ! -s conftest.err
19281 }; then
19282 ac_header_preproc=yes
19283 else
19284 $as_echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19287 ac_header_preproc=no
19290 rm -f conftest.err conftest.$ac_ext
19291 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19292 $as_echo "$ac_header_preproc" >&6; }
19294 # So? What about this header?
19295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19296 yes:no: )
19297 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19298 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19299 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19300 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19301 ac_header_preproc=yes
19303 no:yes:* )
19304 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19305 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19306 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19307 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19308 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19309 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19310 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19311 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19312 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19313 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19314 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19315 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19318 esac
19319 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19320 $as_echo_n "checking for locale.h... " >&6; }
19321 if test "${ac_cv_header_locale_h+set}" = set; then
19322 $as_echo_n "(cached) " >&6
19323 else
19324 ac_cv_header_locale_h=$ac_header_preproc
19326 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19327 $as_echo "$ac_cv_header_locale_h" >&6; }
19333 for ac_func in setlocale
19335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19336 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19337 $as_echo_n "checking for $ac_func... " >&6; }
19338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19339 $as_echo_n "(cached) " >&6
19340 else
19341 cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h. */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19349 #define $ac_func innocuous_$ac_func
19351 /* System header to define __stub macros and hopefully few prototypes,
19352 which can conflict with char $ac_func (); below.
19353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19354 <limits.h> exists even on freestanding compilers. */
19356 #ifdef __STDC__
19357 # include <limits.h>
19358 #else
19359 # include <assert.h>
19360 #endif
19362 #undef $ac_func
19364 /* Override any GCC internal prototype to avoid an error.
19365 Use char because int might match the return type of a GCC
19366 builtin and then its argument prototype would still apply. */
19367 #ifdef __cplusplus
19368 extern "C"
19369 #endif
19370 char $ac_func ();
19371 /* The GNU C library defines this for functions which it implements
19372 to always fail with ENOSYS. Some functions are actually named
19373 something starting with __ and the normal name is an alias. */
19374 #if defined __stub_$ac_func || defined __stub___$ac_func
19375 choke me
19376 #endif
19379 main ()
19381 return $ac_func ();
19383 return 0;
19385 _ACEOF
19386 rm -f conftest.$ac_objext conftest$ac_exeext
19387 if { (ac_try="$ac_link"
19388 case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19391 esac
19392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19393 $as_echo "$ac_try_echo") >&5
19394 (eval "$ac_link") 2>conftest.er1
19395 ac_status=$?
19396 grep -v '^ *+' conftest.er1 >conftest.err
19397 rm -f conftest.er1
19398 cat conftest.err >&5
19399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } && {
19401 test -z "$ac_c_werror_flag" ||
19402 test ! -s conftest.err
19403 } && test -s conftest$ac_exeext && {
19404 test "$cross_compiling" = yes ||
19405 $as_test_x conftest$ac_exeext
19406 }; then
19407 eval "$as_ac_var=yes"
19408 else
19409 $as_echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412 eval "$as_ac_var=no"
19415 rm -rf conftest.dSYM
19416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19417 conftest$ac_exeext conftest.$ac_ext
19419 ac_res=`eval 'as_val=${'$as_ac_var'}
19420 $as_echo "$as_val"'`
19421 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19422 $as_echo "$ac_res" >&6; }
19423 if test `eval 'as_val=${'$as_ac_var'}
19424 $as_echo "$as_val"'` = yes; then
19425 cat >>confdefs.h <<_ACEOF
19426 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19427 _ACEOF
19430 done
19433 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19434 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19435 # Irix 4.0.5F has the header but not the library.
19436 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19437 ac_have_func=yes
19439 cat >>confdefs.h <<\_ACEOF
19440 #define SVR4 1
19441 _ACEOF
19445 if test $ac_have_func = no; then
19446 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19447 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19448 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19449 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19450 $as_echo_n "(cached) " >&6
19452 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19453 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19454 else
19455 # Is the header compilable?
19456 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19457 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19458 cat >conftest.$ac_ext <<_ACEOF
19459 /* confdefs.h. */
19460 _ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19464 $ac_includes_default
19465 #include <inq_stats/cpustats.h>
19466 _ACEOF
19467 rm -f conftest.$ac_objext
19468 if { (ac_try="$ac_compile"
19469 case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19472 esac
19473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19474 $as_echo "$ac_try_echo") >&5
19475 (eval "$ac_compile") 2>conftest.er1
19476 ac_status=$?
19477 grep -v '^ *+' conftest.er1 >conftest.err
19478 rm -f conftest.er1
19479 cat conftest.err >&5
19480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } && {
19482 test -z "$ac_c_werror_flag" ||
19483 test ! -s conftest.err
19484 } && test -s conftest.$ac_objext; then
19485 ac_header_compiler=yes
19486 else
19487 $as_echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19490 ac_header_compiler=no
19493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19494 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19495 $as_echo "$ac_header_compiler" >&6; }
19497 # Is the header present?
19498 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19499 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19500 cat >conftest.$ac_ext <<_ACEOF
19501 /* confdefs.h. */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19506 #include <inq_stats/cpustats.h>
19507 _ACEOF
19508 if { (ac_try="$ac_cpp conftest.$ac_ext"
19509 case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512 esac
19513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19514 $as_echo "$ac_try_echo") >&5
19515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19516 ac_status=$?
19517 grep -v '^ *+' conftest.er1 >conftest.err
19518 rm -f conftest.er1
19519 cat conftest.err >&5
19520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } >/dev/null && {
19522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19523 test ! -s conftest.err
19524 }; then
19525 ac_header_preproc=yes
19526 else
19527 $as_echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ac_header_preproc=no
19533 rm -f conftest.err conftest.$ac_ext
19534 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19535 $as_echo "$ac_header_preproc" >&6; }
19537 # So? What about this header?
19538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19539 yes:no: )
19540 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19541 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19542 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19543 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19544 ac_header_preproc=yes
19546 no:yes:* )
19547 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19548 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19549 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19550 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19551 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19552 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19553 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19554 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19555 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19556 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19557 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19558 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19561 esac
19562 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19563 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19564 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19565 $as_echo_n "(cached) " >&6
19566 else
19567 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19569 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19570 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19573 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19574 ac_have_func=yes
19576 cat >>confdefs.h <<\_ACEOF
19577 #define UMAX 1
19578 _ACEOF
19581 cat >>confdefs.h <<\_ACEOF
19582 #define UMAX4_3 1
19583 _ACEOF
19590 if test $ac_have_func = no; then
19591 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19592 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19593 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19594 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19595 $as_echo_n "(cached) " >&6
19597 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19598 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19599 else
19600 # Is the header compilable?
19601 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19602 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19603 cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h. */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19609 $ac_includes_default
19610 #include <sys/cpustats.h>
19611 _ACEOF
19612 rm -f conftest.$ac_objext
19613 if { (ac_try="$ac_compile"
19614 case "(($ac_try" in
19615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19616 *) ac_try_echo=$ac_try;;
19617 esac
19618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19619 $as_echo "$ac_try_echo") >&5
19620 (eval "$ac_compile") 2>conftest.er1
19621 ac_status=$?
19622 grep -v '^ *+' conftest.er1 >conftest.err
19623 rm -f conftest.er1
19624 cat conftest.err >&5
19625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } && {
19627 test -z "$ac_c_werror_flag" ||
19628 test ! -s conftest.err
19629 } && test -s conftest.$ac_objext; then
19630 ac_header_compiler=yes
19631 else
19632 $as_echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19635 ac_header_compiler=no
19638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19639 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19640 $as_echo "$ac_header_compiler" >&6; }
19642 # Is the header present?
19643 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19644 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19645 cat >conftest.$ac_ext <<_ACEOF
19646 /* confdefs.h. */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19651 #include <sys/cpustats.h>
19652 _ACEOF
19653 if { (ac_try="$ac_cpp conftest.$ac_ext"
19654 case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19657 esac
19658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19659 $as_echo "$ac_try_echo") >&5
19660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19661 ac_status=$?
19662 grep -v '^ *+' conftest.er1 >conftest.err
19663 rm -f conftest.er1
19664 cat conftest.err >&5
19665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } >/dev/null && {
19667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19668 test ! -s conftest.err
19669 }; then
19670 ac_header_preproc=yes
19671 else
19672 $as_echo "$as_me: failed program was:" >&5
19673 sed 's/^/| /' conftest.$ac_ext >&5
19675 ac_header_preproc=no
19678 rm -f conftest.err conftest.$ac_ext
19679 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19680 $as_echo "$ac_header_preproc" >&6; }
19682 # So? What about this header?
19683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19684 yes:no: )
19685 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19686 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19687 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19688 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19689 ac_header_preproc=yes
19691 no:yes:* )
19692 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19693 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19694 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19695 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19696 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19697 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19698 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19699 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19700 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19701 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19702 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19703 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19706 esac
19707 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19708 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19709 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19710 $as_echo_n "(cached) " >&6
19711 else
19712 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19714 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19715 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19718 if test $ac_cv_header_sys_cpustats_h = yes; then
19719 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19720 #define UMAX 1
19721 _ACEOF
19728 if test $ac_have_func = no; then
19730 for ac_header in mach/mach.h
19732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19734 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19735 $as_echo_n "checking for $ac_header... " >&6; }
19736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19737 $as_echo_n "(cached) " >&6
19739 ac_res=`eval 'as_val=${'$as_ac_Header'}
19740 $as_echo "$as_val"'`
19741 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19742 $as_echo "$ac_res" >&6; }
19743 else
19744 # Is the header compilable?
19745 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19746 $as_echo_n "checking $ac_header usability... " >&6; }
19747 cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h. */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19753 $ac_includes_default
19754 #include <$ac_header>
19755 _ACEOF
19756 rm -f conftest.$ac_objext
19757 if { (ac_try="$ac_compile"
19758 case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19761 esac
19762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19763 $as_echo "$ac_try_echo") >&5
19764 (eval "$ac_compile") 2>conftest.er1
19765 ac_status=$?
19766 grep -v '^ *+' conftest.er1 >conftest.err
19767 rm -f conftest.er1
19768 cat conftest.err >&5
19769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } && {
19771 test -z "$ac_c_werror_flag" ||
19772 test ! -s conftest.err
19773 } && test -s conftest.$ac_objext; then
19774 ac_header_compiler=yes
19775 else
19776 $as_echo "$as_me: failed program was:" >&5
19777 sed 's/^/| /' conftest.$ac_ext >&5
19779 ac_header_compiler=no
19782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19783 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19784 $as_echo "$ac_header_compiler" >&6; }
19786 # Is the header present?
19787 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19788 $as_echo_n "checking $ac_header presence... " >&6; }
19789 cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h. */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19795 #include <$ac_header>
19796 _ACEOF
19797 if { (ac_try="$ac_cpp conftest.$ac_ext"
19798 case "(($ac_try" in
19799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800 *) ac_try_echo=$ac_try;;
19801 esac
19802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19803 $as_echo "$ac_try_echo") >&5
19804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
19809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } >/dev/null && {
19811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19812 test ! -s conftest.err
19813 }; then
19814 ac_header_preproc=yes
19815 else
19816 $as_echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19819 ac_header_preproc=no
19822 rm -f conftest.err conftest.$ac_ext
19823 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19824 $as_echo "$ac_header_preproc" >&6; }
19826 # So? What about this header?
19827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19828 yes:no: )
19829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19830 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19832 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19833 ac_header_preproc=yes
19835 no:yes:* )
19836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19837 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19839 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19841 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19843 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19845 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19847 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19850 esac
19851 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19852 $as_echo_n "checking for $ac_header... " >&6; }
19853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19854 $as_echo_n "(cached) " >&6
19855 else
19856 eval "$as_ac_Header=\$ac_header_preproc"
19858 ac_res=`eval 'as_val=${'$as_ac_Header'}
19859 $as_echo "$as_val"'`
19860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19861 $as_echo "$ac_res" >&6; }
19864 if test `eval 'as_val=${'$as_ac_Header'}
19865 $as_echo "$as_val"'` = yes; then
19866 cat >>confdefs.h <<_ACEOF
19867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19868 _ACEOF
19872 done
19877 for ac_header in nlist.h
19879 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19881 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19882 $as_echo_n "checking for $ac_header... " >&6; }
19883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19884 $as_echo_n "(cached) " >&6
19886 ac_res=`eval 'as_val=${'$as_ac_Header'}
19887 $as_echo "$as_val"'`
19888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19889 $as_echo "$ac_res" >&6; }
19890 else
19891 # Is the header compilable?
19892 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19893 $as_echo_n "checking $ac_header usability... " >&6; }
19894 cat >conftest.$ac_ext <<_ACEOF
19895 /* confdefs.h. */
19896 _ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h. */
19900 $ac_includes_default
19901 #include <$ac_header>
19902 _ACEOF
19903 rm -f conftest.$ac_objext
19904 if { (ac_try="$ac_compile"
19905 case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19908 esac
19909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19910 $as_echo "$ac_try_echo") >&5
19911 (eval "$ac_compile") 2>conftest.er1
19912 ac_status=$?
19913 grep -v '^ *+' conftest.er1 >conftest.err
19914 rm -f conftest.er1
19915 cat conftest.err >&5
19916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } && {
19918 test -z "$ac_c_werror_flag" ||
19919 test ! -s conftest.err
19920 } && test -s conftest.$ac_objext; then
19921 ac_header_compiler=yes
19922 else
19923 $as_echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 ac_header_compiler=no
19929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19930 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19931 $as_echo "$ac_header_compiler" >&6; }
19933 # Is the header present?
19934 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19935 $as_echo_n "checking $ac_header presence... " >&6; }
19936 cat >conftest.$ac_ext <<_ACEOF
19937 /* confdefs.h. */
19938 _ACEOF
19939 cat confdefs.h >>conftest.$ac_ext
19940 cat >>conftest.$ac_ext <<_ACEOF
19941 /* end confdefs.h. */
19942 #include <$ac_header>
19943 _ACEOF
19944 if { (ac_try="$ac_cpp conftest.$ac_ext"
19945 case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19948 esac
19949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19950 $as_echo "$ac_try_echo") >&5
19951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19952 ac_status=$?
19953 grep -v '^ *+' conftest.er1 >conftest.err
19954 rm -f conftest.er1
19955 cat conftest.err >&5
19956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); } >/dev/null && {
19958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19959 test ! -s conftest.err
19960 }; then
19961 ac_header_preproc=yes
19962 else
19963 $as_echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.$ac_ext >&5
19966 ac_header_preproc=no
19969 rm -f conftest.err conftest.$ac_ext
19970 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19971 $as_echo "$ac_header_preproc" >&6; }
19973 # So? What about this header?
19974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19975 yes:no: )
19976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19977 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19979 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19980 ac_header_preproc=yes
19982 no:yes:* )
19983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19984 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19986 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19988 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19990 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19992 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19994 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19997 esac
19998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19999 $as_echo_n "checking for $ac_header... " >&6; }
20000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20001 $as_echo_n "(cached) " >&6
20002 else
20003 eval "$as_ac_Header=\$ac_header_preproc"
20005 ac_res=`eval 'as_val=${'$as_ac_Header'}
20006 $as_echo "$as_val"'`
20007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20008 $as_echo "$ac_res" >&6; }
20011 if test `eval 'as_val=${'$as_ac_Header'}
20012 $as_echo "$as_val"'` = yes; then
20013 cat >>confdefs.h <<_ACEOF
20014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20015 _ACEOF
20016 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20017 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20018 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20019 $as_echo_n "(cached) " >&6
20020 else
20021 cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h. */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20027 #include <nlist.h>
20030 main ()
20032 static struct nlist ac_aggr;
20033 if (ac_aggr.n_un.n_name)
20034 return 0;
20036 return 0;
20038 _ACEOF
20039 rm -f conftest.$ac_objext
20040 if { (ac_try="$ac_compile"
20041 case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20044 esac
20045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20046 $as_echo "$ac_try_echo") >&5
20047 (eval "$ac_compile") 2>conftest.er1
20048 ac_status=$?
20049 grep -v '^ *+' conftest.er1 >conftest.err
20050 rm -f conftest.er1
20051 cat conftest.err >&5
20052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } && {
20054 test -z "$ac_c_werror_flag" ||
20055 test ! -s conftest.err
20056 } && test -s conftest.$ac_objext; then
20057 ac_cv_member_struct_nlist_n_un_n_name=yes
20058 else
20059 $as_echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20062 cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h. */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 #include <nlist.h>
20071 main ()
20073 static struct nlist ac_aggr;
20074 if (sizeof ac_aggr.n_un.n_name)
20075 return 0;
20077 return 0;
20079 _ACEOF
20080 rm -f conftest.$ac_objext
20081 if { (ac_try="$ac_compile"
20082 case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20085 esac
20086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20087 $as_echo "$ac_try_echo") >&5
20088 (eval "$ac_compile") 2>conftest.er1
20089 ac_status=$?
20090 grep -v '^ *+' conftest.er1 >conftest.err
20091 rm -f conftest.er1
20092 cat conftest.err >&5
20093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } && {
20095 test -z "$ac_c_werror_flag" ||
20096 test ! -s conftest.err
20097 } && test -s conftest.$ac_objext; then
20098 ac_cv_member_struct_nlist_n_un_n_name=yes
20099 else
20100 $as_echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20103 ac_cv_member_struct_nlist_n_un_n_name=no
20106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20111 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20112 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20113 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20115 cat >>confdefs.h <<_ACEOF
20116 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20117 _ACEOF
20120 cat >>confdefs.h <<\_ACEOF
20121 #define NLIST_NAME_UNION 1
20122 _ACEOF
20129 done
20132 done
20135 # Some definitions of getloadavg require that the program be installed setgid.
20136 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20137 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20138 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20139 $as_echo_n "(cached) " >&6
20140 else
20141 cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h. */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20148 #ifdef LDAV_PRIVILEGED
20149 Yowza Am I SETGID yet
20150 #endif
20151 _ACEOF
20152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20153 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20154 ac_cv_func_getloadavg_setgid=yes
20155 else
20156 ac_cv_func_getloadavg_setgid=no
20158 rm -f conftest*
20161 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20162 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20163 if test $ac_cv_func_getloadavg_setgid = yes; then
20164 NEED_SETGID=true
20166 cat >>confdefs.h <<\_ACEOF
20167 #define GETLOADAVG_PRIVILEGED 1
20168 _ACEOF
20170 else
20171 NEED_SETGID=false
20174 if test $ac_cv_func_getloadavg_setgid = yes; then
20175 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20176 $as_echo_n "checking group of /dev/kmem... " >&6; }
20177 if test "${ac_cv_group_kmem+set}" = set; then
20178 $as_echo_n "(cached) " >&6
20179 else
20180 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20181 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20182 # If we got an error (system does not support symlinks), try without -L.
20183 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20184 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20185 | sed -ne 's/[ ][ ]*/ /g;
20186 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20187 / /s/.* //;p;'`
20190 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20191 $as_echo "$ac_cv_group_kmem" >&6; }
20192 KMEM_GROUP=$ac_cv_group_kmem
20194 if test "x$ac_save_LIBS" = x; then
20195 GETLOADAVG_LIBS=$LIBS
20196 else
20197 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20199 LIBS=$ac_save_LIBS
20203 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20204 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20205 if test "${ac_cv_sys_largefile_source+set}" = set; then
20206 $as_echo_n "(cached) " >&6
20207 else
20208 while :; do
20209 cat >conftest.$ac_ext <<_ACEOF
20210 /* confdefs.h. */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 #include <sys/types.h> /* for off_t */
20216 #include <stdio.h>
20218 main ()
20220 int (*fp) (FILE *, off_t, int) = fseeko;
20221 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20223 return 0;
20225 _ACEOF
20226 rm -f conftest.$ac_objext conftest$ac_exeext
20227 if { (ac_try="$ac_link"
20228 case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20231 esac
20232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20233 $as_echo "$ac_try_echo") >&5
20234 (eval "$ac_link") 2>conftest.er1
20235 ac_status=$?
20236 grep -v '^ *+' conftest.er1 >conftest.err
20237 rm -f conftest.er1
20238 cat conftest.err >&5
20239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } && {
20241 test -z "$ac_c_werror_flag" ||
20242 test ! -s conftest.err
20243 } && test -s conftest$ac_exeext && {
20244 test "$cross_compiling" = yes ||
20245 $as_test_x conftest$ac_exeext
20246 }; then
20247 ac_cv_sys_largefile_source=no; break
20248 else
20249 $as_echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20255 rm -rf conftest.dSYM
20256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20257 conftest$ac_exeext conftest.$ac_ext
20258 cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h. */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 #define _LARGEFILE_SOURCE 1
20265 #include <sys/types.h> /* for off_t */
20266 #include <stdio.h>
20268 main ()
20270 int (*fp) (FILE *, off_t, int) = fseeko;
20271 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20273 return 0;
20275 _ACEOF
20276 rm -f conftest.$ac_objext conftest$ac_exeext
20277 if { (ac_try="$ac_link"
20278 case "(($ac_try" in
20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280 *) ac_try_echo=$ac_try;;
20281 esac
20282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20283 $as_echo "$ac_try_echo") >&5
20284 (eval "$ac_link") 2>conftest.er1
20285 ac_status=$?
20286 grep -v '^ *+' conftest.er1 >conftest.err
20287 rm -f conftest.er1
20288 cat conftest.err >&5
20289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } && {
20291 test -z "$ac_c_werror_flag" ||
20292 test ! -s conftest.err
20293 } && test -s conftest$ac_exeext && {
20294 test "$cross_compiling" = yes ||
20295 $as_test_x conftest$ac_exeext
20296 }; then
20297 ac_cv_sys_largefile_source=1; break
20298 else
20299 $as_echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20305 rm -rf conftest.dSYM
20306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20307 conftest$ac_exeext conftest.$ac_ext
20308 ac_cv_sys_largefile_source=unknown
20309 break
20310 done
20312 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20313 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20314 case $ac_cv_sys_largefile_source in #(
20315 no | unknown) ;;
20317 cat >>confdefs.h <<_ACEOF
20318 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20319 _ACEOF
20321 esac
20322 rm -rf conftest*
20324 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20325 # in glibc 2.1.3, but that breaks too many other things.
20326 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20327 if test $ac_cv_sys_largefile_source != unknown; then
20329 cat >>confdefs.h <<\_ACEOF
20330 #define HAVE_FSEEKO 1
20331 _ACEOF
20336 # Configure getopt.
20337 # getopt.m4 serial 10
20339 # The getopt module assume you want GNU getopt, with getopt_long etc,
20340 # rather than vanilla POSIX getopt. This means your your code should
20341 # always include <getopt.h> for the getopt prototypes.
20353 # Prerequisites of lib/getopt*.
20358 GETOPT_H=
20360 for ac_header in getopt.h
20362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20365 $as_echo_n "checking for $ac_header... " >&6; }
20366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20367 $as_echo_n "(cached) " >&6
20369 ac_res=`eval 'as_val=${'$as_ac_Header'}
20370 $as_echo "$as_val"'`
20371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20372 $as_echo "$ac_res" >&6; }
20373 else
20374 # Is the header compilable?
20375 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20376 $as_echo_n "checking $ac_header usability... " >&6; }
20377 cat >conftest.$ac_ext <<_ACEOF
20378 /* confdefs.h. */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h. */
20383 $ac_includes_default
20384 #include <$ac_header>
20385 _ACEOF
20386 rm -f conftest.$ac_objext
20387 if { (ac_try="$ac_compile"
20388 case "(($ac_try" in
20389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390 *) ac_try_echo=$ac_try;;
20391 esac
20392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20393 $as_echo "$ac_try_echo") >&5
20394 (eval "$ac_compile") 2>conftest.er1
20395 ac_status=$?
20396 grep -v '^ *+' conftest.er1 >conftest.err
20397 rm -f conftest.er1
20398 cat conftest.err >&5
20399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_c_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest.$ac_objext; then
20404 ac_header_compiler=yes
20405 else
20406 $as_echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20409 ac_header_compiler=no
20412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20413 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20414 $as_echo "$ac_header_compiler" >&6; }
20416 # Is the header present?
20417 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20418 $as_echo_n "checking $ac_header presence... " >&6; }
20419 cat >conftest.$ac_ext <<_ACEOF
20420 /* confdefs.h. */
20421 _ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20425 #include <$ac_header>
20426 _ACEOF
20427 if { (ac_try="$ac_cpp conftest.$ac_ext"
20428 case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20431 esac
20432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20433 $as_echo "$ac_try_echo") >&5
20434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20435 ac_status=$?
20436 grep -v '^ *+' conftest.er1 >conftest.err
20437 rm -f conftest.er1
20438 cat conftest.err >&5
20439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } >/dev/null && {
20441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20442 test ! -s conftest.err
20443 }; then
20444 ac_header_preproc=yes
20445 else
20446 $as_echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 ac_header_preproc=no
20452 rm -f conftest.err conftest.$ac_ext
20453 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20454 $as_echo "$ac_header_preproc" >&6; }
20456 # So? What about this header?
20457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20458 yes:no: )
20459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20460 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20462 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20463 ac_header_preproc=yes
20465 no:yes:* )
20466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20467 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20469 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20471 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20473 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20477 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20480 esac
20481 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20482 $as_echo_n "checking for $ac_header... " >&6; }
20483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20484 $as_echo_n "(cached) " >&6
20485 else
20486 eval "$as_ac_Header=\$ac_header_preproc"
20488 ac_res=`eval 'as_val=${'$as_ac_Header'}
20489 $as_echo "$as_val"'`
20490 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20491 $as_echo "$ac_res" >&6; }
20494 if test `eval 'as_val=${'$as_ac_Header'}
20495 $as_echo "$as_val"'` = yes; then
20496 cat >>confdefs.h <<_ACEOF
20497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20498 _ACEOF
20500 else
20501 GETOPT_H=getopt.h
20504 done
20506 if test -z "$GETOPT_H"; then
20508 for ac_func in getopt_long_only
20510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20511 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20512 $as_echo_n "checking for $ac_func... " >&6; }
20513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20514 $as_echo_n "(cached) " >&6
20515 else
20516 cat >conftest.$ac_ext <<_ACEOF
20517 /* confdefs.h. */
20518 _ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20524 #define $ac_func innocuous_$ac_func
20526 /* System header to define __stub macros and hopefully few prototypes,
20527 which can conflict with char $ac_func (); below.
20528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20529 <limits.h> exists even on freestanding compilers. */
20531 #ifdef __STDC__
20532 # include <limits.h>
20533 #else
20534 # include <assert.h>
20535 #endif
20537 #undef $ac_func
20539 /* Override any GCC internal prototype to avoid an error.
20540 Use char because int might match the return type of a GCC
20541 builtin and then its argument prototype would still apply. */
20542 #ifdef __cplusplus
20543 extern "C"
20544 #endif
20545 char $ac_func ();
20546 /* The GNU C library defines this for functions which it implements
20547 to always fail with ENOSYS. Some functions are actually named
20548 something starting with __ and the normal name is an alias. */
20549 #if defined __stub_$ac_func || defined __stub___$ac_func
20550 choke me
20551 #endif
20554 main ()
20556 return $ac_func ();
20558 return 0;
20560 _ACEOF
20561 rm -f conftest.$ac_objext conftest$ac_exeext
20562 if { (ac_try="$ac_link"
20563 case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20566 esac
20567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20568 $as_echo "$ac_try_echo") >&5
20569 (eval "$ac_link") 2>conftest.er1
20570 ac_status=$?
20571 grep -v '^ *+' conftest.er1 >conftest.err
20572 rm -f conftest.er1
20573 cat conftest.err >&5
20574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); } && {
20576 test -z "$ac_c_werror_flag" ||
20577 test ! -s conftest.err
20578 } && test -s conftest$ac_exeext && {
20579 test "$cross_compiling" = yes ||
20580 $as_test_x conftest$ac_exeext
20581 }; then
20582 eval "$as_ac_var=yes"
20583 else
20584 $as_echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.$ac_ext >&5
20587 eval "$as_ac_var=no"
20590 rm -rf conftest.dSYM
20591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20592 conftest$ac_exeext conftest.$ac_ext
20594 ac_res=`eval 'as_val=${'$as_ac_var'}
20595 $as_echo "$as_val"'`
20596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20597 $as_echo "$ac_res" >&6; }
20598 if test `eval 'as_val=${'$as_ac_var'}
20599 $as_echo "$as_val"'` = yes; then
20600 cat >>confdefs.h <<_ACEOF
20601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20602 _ACEOF
20604 else
20605 GETOPT_H=getopt.h
20607 done
20611 if test -z "$GETOPT_H"; then
20612 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20613 $as_echo_n "checking whether optreset is declared... " >&6; }
20614 if test "${ac_cv_have_decl_optreset+set}" = set; then
20615 $as_echo_n "(cached) " >&6
20616 else
20617 cat >conftest.$ac_ext <<_ACEOF
20618 /* confdefs.h. */
20619 _ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20623 #include <getopt.h>
20626 main ()
20628 #ifndef optreset
20629 (void) optreset;
20630 #endif
20633 return 0;
20635 _ACEOF
20636 rm -f conftest.$ac_objext
20637 if { (ac_try="$ac_compile"
20638 case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20641 esac
20642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20643 $as_echo "$ac_try_echo") >&5
20644 (eval "$ac_compile") 2>conftest.er1
20645 ac_status=$?
20646 grep -v '^ *+' conftest.er1 >conftest.err
20647 rm -f conftest.er1
20648 cat conftest.err >&5
20649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && {
20651 test -z "$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 } && test -s conftest.$ac_objext; then
20654 ac_cv_have_decl_optreset=yes
20655 else
20656 $as_echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 ac_cv_have_decl_optreset=no
20662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20664 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20665 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20666 if test $ac_cv_have_decl_optreset = yes; then
20667 GETOPT_H=getopt.h
20672 if test -z "$GETOPT_H"; then
20673 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20674 $as_echo_n "checking for working GNU getopt function... " >&6; }
20675 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20676 $as_echo_n "(cached) " >&6
20677 else
20678 if test "$cross_compiling" = yes; then
20679 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20680 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20681 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20682 $as_echo_n "(cached) " >&6
20683 else
20684 cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h. */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 #include <getopt.h>
20693 main ()
20695 #ifndef getopt_clip
20696 (void) getopt_clip;
20697 #endif
20700 return 0;
20702 _ACEOF
20703 rm -f conftest.$ac_objext
20704 if { (ac_try="$ac_compile"
20705 case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20708 esac
20709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20710 $as_echo "$ac_try_echo") >&5
20711 (eval "$ac_compile") 2>conftest.er1
20712 ac_status=$?
20713 grep -v '^ *+' conftest.er1 >conftest.err
20714 rm -f conftest.er1
20715 cat conftest.err >&5
20716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } && {
20718 test -z "$ac_c_werror_flag" ||
20719 test ! -s conftest.err
20720 } && test -s conftest.$ac_objext; then
20721 ac_cv_have_decl_getopt_clip=yes
20722 else
20723 $as_echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20726 ac_cv_have_decl_getopt_clip=no
20729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20731 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20732 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20733 if test $ac_cv_have_decl_getopt_clip = yes; then
20734 gl_cv_func_gnu_getopt=no
20735 else
20736 gl_cv_func_gnu_getopt=yes
20739 else
20740 cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h. */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20746 #include <getopt.h>
20748 main ()
20751 char *myargv[3];
20752 myargv[0] = "conftest";
20753 myargv[1] = "-+";
20754 myargv[2] = 0;
20755 return getopt (2, myargv, "+a") != '?';
20758 return 0;
20760 _ACEOF
20761 rm -f conftest$ac_exeext
20762 if { (ac_try="$ac_link"
20763 case "(($ac_try" in
20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765 *) ac_try_echo=$ac_try;;
20766 esac
20767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20768 $as_echo "$ac_try_echo") >&5
20769 (eval "$ac_link") 2>&5
20770 ac_status=$?
20771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20773 { (case "(($ac_try" in
20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20776 esac
20777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20778 $as_echo "$ac_try_echo") >&5
20779 (eval "$ac_try") 2>&5
20780 ac_status=$?
20781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; }; then
20783 gl_cv_func_gnu_getopt=yes
20784 else
20785 $as_echo "$as_me: program exited with status $ac_status" >&5
20786 $as_echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20789 ( exit $ac_status )
20790 gl_cv_func_gnu_getopt=no
20792 rm -rf conftest.dSYM
20793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20798 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20799 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20800 if test "$gl_cv_func_gnu_getopt" = "no"; then
20801 GETOPT_H=getopt.h
20807 if test -n "$GETOPT_H"; then
20810 GETOPT_H=getopt.h
20812 cat >>confdefs.h <<\_ACEOF
20813 #define __GETOPT_PREFIX rpl_
20814 _ACEOF
20819 GETOPTOBJS='getopt.o getopt1.o'
20826 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20827 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20828 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20829 $as_echo_n "(cached) " >&6
20830 else
20831 # Use it with a single arg.
20832 cat >conftest.$ac_ext <<_ACEOF
20833 /* confdefs.h. */
20834 _ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20838 $ac_includes_default
20840 main ()
20842 getpgrp (0);
20844 return 0;
20846 _ACEOF
20847 rm -f conftest.$ac_objext
20848 if { (ac_try="$ac_compile"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20852 esac
20853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20854 $as_echo "$ac_try_echo") >&5
20855 (eval "$ac_compile") 2>conftest.er1
20856 ac_status=$?
20857 grep -v '^ *+' conftest.er1 >conftest.err
20858 rm -f conftest.er1
20859 cat conftest.err >&5
20860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } && {
20862 test -z "$ac_c_werror_flag" ||
20863 test ! -s conftest.err
20864 } && test -s conftest.$ac_objext; then
20865 ac_cv_func_getpgrp_void=no
20866 else
20867 $as_echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20870 ac_cv_func_getpgrp_void=yes
20873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20877 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20878 if test $ac_cv_func_getpgrp_void = yes; then
20880 cat >>confdefs.h <<\_ACEOF
20881 #define GETPGRP_VOID 1
20882 _ACEOF
20888 for ac_func in strftime
20890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20891 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20892 $as_echo_n "checking for $ac_func... " >&6; }
20893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20894 $as_echo_n "(cached) " >&6
20895 else
20896 cat >conftest.$ac_ext <<_ACEOF
20897 /* confdefs.h. */
20898 _ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20904 #define $ac_func innocuous_$ac_func
20906 /* System header to define __stub macros and hopefully few prototypes,
20907 which can conflict with char $ac_func (); below.
20908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20909 <limits.h> exists even on freestanding compilers. */
20911 #ifdef __STDC__
20912 # include <limits.h>
20913 #else
20914 # include <assert.h>
20915 #endif
20917 #undef $ac_func
20919 /* Override any GCC internal prototype to avoid an error.
20920 Use char because int might match the return type of a GCC
20921 builtin and then its argument prototype would still apply. */
20922 #ifdef __cplusplus
20923 extern "C"
20924 #endif
20925 char $ac_func ();
20926 /* The GNU C library defines this for functions which it implements
20927 to always fail with ENOSYS. Some functions are actually named
20928 something starting with __ and the normal name is an alias. */
20929 #if defined __stub_$ac_func || defined __stub___$ac_func
20930 choke me
20931 #endif
20934 main ()
20936 return $ac_func ();
20938 return 0;
20940 _ACEOF
20941 rm -f conftest.$ac_objext conftest$ac_exeext
20942 if { (ac_try="$ac_link"
20943 case "(($ac_try" in
20944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945 *) ac_try_echo=$ac_try;;
20946 esac
20947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20948 $as_echo "$ac_try_echo") >&5
20949 (eval "$ac_link") 2>conftest.er1
20950 ac_status=$?
20951 grep -v '^ *+' conftest.er1 >conftest.err
20952 rm -f conftest.er1
20953 cat conftest.err >&5
20954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); } && {
20956 test -z "$ac_c_werror_flag" ||
20957 test ! -s conftest.err
20958 } && test -s conftest$ac_exeext && {
20959 test "$cross_compiling" = yes ||
20960 $as_test_x conftest$ac_exeext
20961 }; then
20962 eval "$as_ac_var=yes"
20963 else
20964 $as_echo "$as_me: failed program was:" >&5
20965 sed 's/^/| /' conftest.$ac_ext >&5
20967 eval "$as_ac_var=no"
20970 rm -rf conftest.dSYM
20971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20972 conftest$ac_exeext conftest.$ac_ext
20974 ac_res=`eval 'as_val=${'$as_ac_var'}
20975 $as_echo "$as_val"'`
20976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20977 $as_echo "$ac_res" >&6; }
20978 if test `eval 'as_val=${'$as_ac_var'}
20979 $as_echo "$as_val"'` = yes; then
20980 cat >>confdefs.h <<_ACEOF
20981 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20982 _ACEOF
20984 else
20985 # strftime is in -lintl on SCO UNIX.
20986 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20987 $as_echo_n "checking for strftime in -lintl... " >&6; }
20988 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20989 $as_echo_n "(cached) " >&6
20990 else
20991 ac_check_lib_save_LIBS=$LIBS
20992 LIBS="-lintl $LIBS"
20993 cat >conftest.$ac_ext <<_ACEOF
20994 /* confdefs.h. */
20995 _ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h. */
21000 /* Override any GCC internal prototype to avoid an error.
21001 Use char because int might match the return type of a GCC
21002 builtin and then its argument prototype would still apply. */
21003 #ifdef __cplusplus
21004 extern "C"
21005 #endif
21006 char strftime ();
21008 main ()
21010 return strftime ();
21012 return 0;
21014 _ACEOF
21015 rm -f conftest.$ac_objext conftest$ac_exeext
21016 if { (ac_try="$ac_link"
21017 case "(($ac_try" in
21018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019 *) ac_try_echo=$ac_try;;
21020 esac
21021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21022 $as_echo "$ac_try_echo") >&5
21023 (eval "$ac_link") 2>conftest.er1
21024 ac_status=$?
21025 grep -v '^ *+' conftest.er1 >conftest.err
21026 rm -f conftest.er1
21027 cat conftest.err >&5
21028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } && {
21030 test -z "$ac_c_werror_flag" ||
21031 test ! -s conftest.err
21032 } && test -s conftest$ac_exeext && {
21033 test "$cross_compiling" = yes ||
21034 $as_test_x conftest$ac_exeext
21035 }; then
21036 ac_cv_lib_intl_strftime=yes
21037 else
21038 $as_echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21041 ac_cv_lib_intl_strftime=no
21044 rm -rf conftest.dSYM
21045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21046 conftest$ac_exeext conftest.$ac_ext
21047 LIBS=$ac_check_lib_save_LIBS
21049 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21050 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21051 if test $ac_cv_lib_intl_strftime = yes; then
21052 cat >>confdefs.h <<\_ACEOF
21053 #define HAVE_STRFTIME 1
21054 _ACEOF
21056 LIBS="-lintl $LIBS"
21060 done
21063 # UNIX98 PTYs.
21065 for ac_func in grantpt
21067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21068 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21069 $as_echo_n "checking for $ac_func... " >&6; }
21070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21071 $as_echo_n "(cached) " >&6
21072 else
21073 cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h. */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21081 #define $ac_func innocuous_$ac_func
21083 /* System header to define __stub macros and hopefully few prototypes,
21084 which can conflict with char $ac_func (); below.
21085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21086 <limits.h> exists even on freestanding compilers. */
21088 #ifdef __STDC__
21089 # include <limits.h>
21090 #else
21091 # include <assert.h>
21092 #endif
21094 #undef $ac_func
21096 /* Override any GCC internal prototype to avoid an error.
21097 Use char because int might match the return type of a GCC
21098 builtin and then its argument prototype would still apply. */
21099 #ifdef __cplusplus
21100 extern "C"
21101 #endif
21102 char $ac_func ();
21103 /* The GNU C library defines this for functions which it implements
21104 to always fail with ENOSYS. Some functions are actually named
21105 something starting with __ and the normal name is an alias. */
21106 #if defined __stub_$ac_func || defined __stub___$ac_func
21107 choke me
21108 #endif
21111 main ()
21113 return $ac_func ();
21115 return 0;
21117 _ACEOF
21118 rm -f conftest.$ac_objext conftest$ac_exeext
21119 if { (ac_try="$ac_link"
21120 case "(($ac_try" in
21121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122 *) ac_try_echo=$ac_try;;
21123 esac
21124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21125 $as_echo "$ac_try_echo") >&5
21126 (eval "$ac_link") 2>conftest.er1
21127 ac_status=$?
21128 grep -v '^ *+' conftest.er1 >conftest.err
21129 rm -f conftest.er1
21130 cat conftest.err >&5
21131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } && {
21133 test -z "$ac_c_werror_flag" ||
21134 test ! -s conftest.err
21135 } && test -s conftest$ac_exeext && {
21136 test "$cross_compiling" = yes ||
21137 $as_test_x conftest$ac_exeext
21138 }; then
21139 eval "$as_ac_var=yes"
21140 else
21141 $as_echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21144 eval "$as_ac_var=no"
21147 rm -rf conftest.dSYM
21148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21149 conftest$ac_exeext conftest.$ac_ext
21151 ac_res=`eval 'as_val=${'$as_ac_var'}
21152 $as_echo "$as_val"'`
21153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21154 $as_echo "$ac_res" >&6; }
21155 if test `eval 'as_val=${'$as_ac_var'}
21156 $as_echo "$as_val"'` = yes; then
21157 cat >>confdefs.h <<_ACEOF
21158 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21159 _ACEOF
21162 done
21165 # PTY-related GNU extensions.
21167 for ac_func in getpt
21169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21170 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21171 $as_echo_n "checking for $ac_func... " >&6; }
21172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21173 $as_echo_n "(cached) " >&6
21174 else
21175 cat >conftest.$ac_ext <<_ACEOF
21176 /* confdefs.h. */
21177 _ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21183 #define $ac_func innocuous_$ac_func
21185 /* System header to define __stub macros and hopefully few prototypes,
21186 which can conflict with char $ac_func (); below.
21187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21188 <limits.h> exists even on freestanding compilers. */
21190 #ifdef __STDC__
21191 # include <limits.h>
21192 #else
21193 # include <assert.h>
21194 #endif
21196 #undef $ac_func
21198 /* Override any GCC internal prototype to avoid an error.
21199 Use char because int might match the return type of a GCC
21200 builtin and then its argument prototype would still apply. */
21201 #ifdef __cplusplus
21202 extern "C"
21203 #endif
21204 char $ac_func ();
21205 /* The GNU C library defines this for functions which it implements
21206 to always fail with ENOSYS. Some functions are actually named
21207 something starting with __ and the normal name is an alias. */
21208 #if defined __stub_$ac_func || defined __stub___$ac_func
21209 choke me
21210 #endif
21213 main ()
21215 return $ac_func ();
21217 return 0;
21219 _ACEOF
21220 rm -f conftest.$ac_objext conftest$ac_exeext
21221 if { (ac_try="$ac_link"
21222 case "(($ac_try" in
21223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21225 esac
21226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21227 $as_echo "$ac_try_echo") >&5
21228 (eval "$ac_link") 2>conftest.er1
21229 ac_status=$?
21230 grep -v '^ *+' conftest.er1 >conftest.err
21231 rm -f conftest.er1
21232 cat conftest.err >&5
21233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } && {
21235 test -z "$ac_c_werror_flag" ||
21236 test ! -s conftest.err
21237 } && test -s conftest$ac_exeext && {
21238 test "$cross_compiling" = yes ||
21239 $as_test_x conftest$ac_exeext
21240 }; then
21241 eval "$as_ac_var=yes"
21242 else
21243 $as_echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21246 eval "$as_ac_var=no"
21249 rm -rf conftest.dSYM
21250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21251 conftest$ac_exeext conftest.$ac_ext
21253 ac_res=`eval 'as_val=${'$as_ac_var'}
21254 $as_echo "$as_val"'`
21255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21256 $as_echo "$ac_res" >&6; }
21257 if test `eval 'as_val=${'$as_ac_var'}
21258 $as_echo "$as_val"'` = yes; then
21259 cat >>confdefs.h <<_ACEOF
21260 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21261 _ACEOF
21264 done
21267 # Check this now, so that we will NOT find the above functions in ncurses.
21268 # That is because we have not set up to link ncurses in lib-src.
21269 # It's better to believe a function is not available
21270 # than to expect to find it in ncurses.
21271 # Also we need tputs and frieds to be able to build at all.
21272 have_tputs_et_al=true
21273 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21274 $as_echo_n "checking for library containing tputs... " >&6; }
21275 if test "${ac_cv_search_tputs+set}" = set; then
21276 $as_echo_n "(cached) " >&6
21277 else
21278 ac_func_search_save_LIBS=$LIBS
21279 cat >conftest.$ac_ext <<_ACEOF
21280 /* confdefs.h. */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21286 /* Override any GCC internal prototype to avoid an error.
21287 Use char because int might match the return type of a GCC
21288 builtin and then its argument prototype would still apply. */
21289 #ifdef __cplusplus
21290 extern "C"
21291 #endif
21292 char tputs ();
21294 main ()
21296 return tputs ();
21298 return 0;
21300 _ACEOF
21301 for ac_lib in '' ncurses terminfo termcap; do
21302 if test -z "$ac_lib"; then
21303 ac_res="none required"
21304 else
21305 ac_res=-l$ac_lib
21306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21308 rm -f conftest.$ac_objext conftest$ac_exeext
21309 if { (ac_try="$ac_link"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21313 esac
21314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21315 $as_echo "$ac_try_echo") >&5
21316 (eval "$ac_link") 2>conftest.er1
21317 ac_status=$?
21318 grep -v '^ *+' conftest.er1 >conftest.err
21319 rm -f conftest.er1
21320 cat conftest.err >&5
21321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } && {
21323 test -z "$ac_c_werror_flag" ||
21324 test ! -s conftest.err
21325 } && test -s conftest$ac_exeext && {
21326 test "$cross_compiling" = yes ||
21327 $as_test_x conftest$ac_exeext
21328 }; then
21329 ac_cv_search_tputs=$ac_res
21330 else
21331 $as_echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21337 rm -rf conftest.dSYM
21338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21339 conftest$ac_exeext
21340 if test "${ac_cv_search_tputs+set}" = set; then
21341 break
21343 done
21344 if test "${ac_cv_search_tputs+set}" = set; then
21346 else
21347 ac_cv_search_tputs=no
21349 rm conftest.$ac_ext
21350 LIBS=$ac_func_search_save_LIBS
21352 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21353 $as_echo "$ac_cv_search_tputs" >&6; }
21354 ac_res=$ac_cv_search_tputs
21355 if test "$ac_res" != no; then
21356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21358 else
21359 have_tputs_et_al=false
21362 if test "$have_tputs_et_al" != true; then
21363 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21364 Maybe some development libraries/packages are missing? Try installing
21365 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21366 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21367 Maybe some development libraries/packages are missing? Try installing
21368 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21369 { (exit 1); exit 1; }; }
21371 # Must define this when any termcap library is found.
21373 cat >>confdefs.h <<\_ACEOF
21374 #define HAVE_LIBNCURSES 1
21375 _ACEOF
21378 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21380 resolv=no
21381 cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h. */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21387 #include <netinet/in.h>
21388 #include <arpa/nameser.h>
21389 #include <resolv.h>
21391 main ()
21393 return res_init();
21395 return 0;
21397 _ACEOF
21398 rm -f conftest.$ac_objext conftest$ac_exeext
21399 if { (ac_try="$ac_link"
21400 case "(($ac_try" in
21401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402 *) ac_try_echo=$ac_try;;
21403 esac
21404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21405 $as_echo "$ac_try_echo") >&5
21406 (eval "$ac_link") 2>conftest.er1
21407 ac_status=$?
21408 grep -v '^ *+' conftest.er1 >conftest.err
21409 rm -f conftest.er1
21410 cat conftest.err >&5
21411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } && {
21413 test -z "$ac_c_werror_flag" ||
21414 test ! -s conftest.err
21415 } && test -s conftest$ac_exeext && {
21416 test "$cross_compiling" = yes ||
21417 $as_test_x conftest$ac_exeext
21418 }; then
21419 have_res_init=yes
21420 else
21421 $as_echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21424 have_res_init=no
21427 rm -rf conftest.dSYM
21428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21429 conftest$ac_exeext conftest.$ac_ext
21430 if test "$have_res_init" = no; then
21431 OLIBS="$LIBS"
21432 LIBS="$LIBS -lresolv"
21433 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21434 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21435 cat >conftest.$ac_ext <<_ACEOF
21436 /* confdefs.h. */
21437 _ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21441 #include <netinet/in.h>
21442 #include <arpa/nameser.h>
21443 #include <resolv.h>
21445 main ()
21447 return res_init();
21449 return 0;
21451 _ACEOF
21452 rm -f conftest.$ac_objext conftest$ac_exeext
21453 if { (ac_try="$ac_link"
21454 case "(($ac_try" in
21455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456 *) ac_try_echo=$ac_try;;
21457 esac
21458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21459 $as_echo "$ac_try_echo") >&5
21460 (eval "$ac_link") 2>conftest.er1
21461 ac_status=$?
21462 grep -v '^ *+' conftest.er1 >conftest.err
21463 rm -f conftest.er1
21464 cat conftest.err >&5
21465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } && {
21467 test -z "$ac_c_werror_flag" ||
21468 test ! -s conftest.err
21469 } && test -s conftest$ac_exeext && {
21470 test "$cross_compiling" = yes ||
21471 $as_test_x conftest$ac_exeext
21472 }; then
21473 have_res_init=yes
21474 else
21475 $as_echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21478 have_res_init=no
21481 rm -rf conftest.dSYM
21482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21483 conftest$ac_exeext conftest.$ac_ext
21484 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21485 $as_echo "$have_res_init" >&6; }
21486 if test "$have_res_init" = yes ; then
21487 resolv=yes
21489 LIBS="$OLIBS"
21492 if test "$have_res_init" = yes; then
21494 cat >>confdefs.h <<\_ACEOF
21495 #define HAVE_RES_INIT 1
21496 _ACEOF
21500 # Do we need the Hesiod library to provide the support routines?
21501 LIBHESIOD=
21502 if test "$with_hesiod" != no ; then
21503 # Don't set $LIBS here -- see comments above. FIXME which comments?
21504 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21505 $as_echo_n "checking for res_send... " >&6; }
21506 if test "${ac_cv_func_res_send+set}" = set; then
21507 $as_echo_n "(cached) " >&6
21508 else
21509 cat >conftest.$ac_ext <<_ACEOF
21510 /* confdefs.h. */
21511 _ACEOF
21512 cat confdefs.h >>conftest.$ac_ext
21513 cat >>conftest.$ac_ext <<_ACEOF
21514 /* end confdefs.h. */
21515 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21517 #define res_send innocuous_res_send
21519 /* System header to define __stub macros and hopefully few prototypes,
21520 which can conflict with char res_send (); below.
21521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21522 <limits.h> exists even on freestanding compilers. */
21524 #ifdef __STDC__
21525 # include <limits.h>
21526 #else
21527 # include <assert.h>
21528 #endif
21530 #undef res_send
21532 /* Override any GCC internal prototype to avoid an error.
21533 Use char because int might match the return type of a GCC
21534 builtin and then its argument prototype would still apply. */
21535 #ifdef __cplusplus
21536 extern "C"
21537 #endif
21538 char res_send ();
21539 /* The GNU C library defines this for functions which it implements
21540 to always fail with ENOSYS. Some functions are actually named
21541 something starting with __ and the normal name is an alias. */
21542 #if defined __stub_res_send || defined __stub___res_send
21543 choke me
21544 #endif
21547 main ()
21549 return res_send ();
21551 return 0;
21553 _ACEOF
21554 rm -f conftest.$ac_objext conftest$ac_exeext
21555 if { (ac_try="$ac_link"
21556 case "(($ac_try" in
21557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558 *) ac_try_echo=$ac_try;;
21559 esac
21560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21561 $as_echo "$ac_try_echo") >&5
21562 (eval "$ac_link") 2>conftest.er1
21563 ac_status=$?
21564 grep -v '^ *+' conftest.er1 >conftest.err
21565 rm -f conftest.er1
21566 cat conftest.err >&5
21567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); } && {
21569 test -z "$ac_c_werror_flag" ||
21570 test ! -s conftest.err
21571 } && test -s conftest$ac_exeext && {
21572 test "$cross_compiling" = yes ||
21573 $as_test_x conftest$ac_exeext
21574 }; then
21575 ac_cv_func_res_send=yes
21576 else
21577 $as_echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21580 ac_cv_func_res_send=no
21583 rm -rf conftest.dSYM
21584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21585 conftest$ac_exeext conftest.$ac_ext
21587 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21588 $as_echo "$ac_cv_func_res_send" >&6; }
21589 if test $ac_cv_func_res_send = yes; then
21591 else
21592 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21593 $as_echo_n "checking for __res_send... " >&6; }
21594 if test "${ac_cv_func___res_send+set}" = set; then
21595 $as_echo_n "(cached) " >&6
21596 else
21597 cat >conftest.$ac_ext <<_ACEOF
21598 /* confdefs.h. */
21599 _ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h. */
21603 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21605 #define __res_send innocuous___res_send
21607 /* System header to define __stub macros and hopefully few prototypes,
21608 which can conflict with char __res_send (); below.
21609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21610 <limits.h> exists even on freestanding compilers. */
21612 #ifdef __STDC__
21613 # include <limits.h>
21614 #else
21615 # include <assert.h>
21616 #endif
21618 #undef __res_send
21620 /* Override any GCC internal prototype to avoid an error.
21621 Use char because int might match the return type of a GCC
21622 builtin and then its argument prototype would still apply. */
21623 #ifdef __cplusplus
21624 extern "C"
21625 #endif
21626 char __res_send ();
21627 /* The GNU C library defines this for functions which it implements
21628 to always fail with ENOSYS. Some functions are actually named
21629 something starting with __ and the normal name is an alias. */
21630 #if defined __stub___res_send || defined __stub_____res_send
21631 choke me
21632 #endif
21635 main ()
21637 return __res_send ();
21639 return 0;
21641 _ACEOF
21642 rm -f conftest.$ac_objext conftest$ac_exeext
21643 if { (ac_try="$ac_link"
21644 case "(($ac_try" in
21645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646 *) ac_try_echo=$ac_try;;
21647 esac
21648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21649 $as_echo "$ac_try_echo") >&5
21650 (eval "$ac_link") 2>conftest.er1
21651 ac_status=$?
21652 grep -v '^ *+' conftest.er1 >conftest.err
21653 rm -f conftest.er1
21654 cat conftest.err >&5
21655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } && {
21657 test -z "$ac_c_werror_flag" ||
21658 test ! -s conftest.err
21659 } && test -s conftest$ac_exeext && {
21660 test "$cross_compiling" = yes ||
21661 $as_test_x conftest$ac_exeext
21662 }; then
21663 ac_cv_func___res_send=yes
21664 else
21665 $as_echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21668 ac_cv_func___res_send=no
21671 rm -rf conftest.dSYM
21672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21673 conftest$ac_exeext conftest.$ac_ext
21675 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21676 $as_echo "$ac_cv_func___res_send" >&6; }
21677 if test $ac_cv_func___res_send = yes; then
21679 else
21680 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21681 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21682 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21683 $as_echo_n "(cached) " >&6
21684 else
21685 ac_check_lib_save_LIBS=$LIBS
21686 LIBS="-lresolv $LIBS"
21687 cat >conftest.$ac_ext <<_ACEOF
21688 /* confdefs.h. */
21689 _ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h. */
21694 /* Override any GCC internal prototype to avoid an error.
21695 Use char because int might match the return type of a GCC
21696 builtin and then its argument prototype would still apply. */
21697 #ifdef __cplusplus
21698 extern "C"
21699 #endif
21700 char res_send ();
21702 main ()
21704 return res_send ();
21706 return 0;
21708 _ACEOF
21709 rm -f conftest.$ac_objext conftest$ac_exeext
21710 if { (ac_try="$ac_link"
21711 case "(($ac_try" in
21712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21713 *) ac_try_echo=$ac_try;;
21714 esac
21715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21716 $as_echo "$ac_try_echo") >&5
21717 (eval "$ac_link") 2>conftest.er1
21718 ac_status=$?
21719 grep -v '^ *+' conftest.er1 >conftest.err
21720 rm -f conftest.er1
21721 cat conftest.err >&5
21722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } && {
21724 test -z "$ac_c_werror_flag" ||
21725 test ! -s conftest.err
21726 } && test -s conftest$ac_exeext && {
21727 test "$cross_compiling" = yes ||
21728 $as_test_x conftest$ac_exeext
21729 }; then
21730 ac_cv_lib_resolv_res_send=yes
21731 else
21732 $as_echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21735 ac_cv_lib_resolv_res_send=no
21738 rm -rf conftest.dSYM
21739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21740 conftest$ac_exeext conftest.$ac_ext
21741 LIBS=$ac_check_lib_save_LIBS
21743 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21744 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21745 if test $ac_cv_lib_resolv_res_send = yes; then
21746 resolv=yes
21747 else
21748 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21749 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21750 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21751 $as_echo_n "(cached) " >&6
21752 else
21753 ac_check_lib_save_LIBS=$LIBS
21754 LIBS="-lresolv $LIBS"
21755 cat >conftest.$ac_ext <<_ACEOF
21756 /* confdefs.h. */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21762 /* Override any GCC internal prototype to avoid an error.
21763 Use char because int might match the return type of a GCC
21764 builtin and then its argument prototype would still apply. */
21765 #ifdef __cplusplus
21766 extern "C"
21767 #endif
21768 char __res_send ();
21770 main ()
21772 return __res_send ();
21774 return 0;
21776 _ACEOF
21777 rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (ac_try="$ac_link"
21779 case "(($ac_try" in
21780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21782 esac
21783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21784 $as_echo "$ac_try_echo") >&5
21785 (eval "$ac_link") 2>conftest.er1
21786 ac_status=$?
21787 grep -v '^ *+' conftest.er1 >conftest.err
21788 rm -f conftest.er1
21789 cat conftest.err >&5
21790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } && {
21792 test -z "$ac_c_werror_flag" ||
21793 test ! -s conftest.err
21794 } && test -s conftest$ac_exeext && {
21795 test "$cross_compiling" = yes ||
21796 $as_test_x conftest$ac_exeext
21797 }; then
21798 ac_cv_lib_resolv___res_send=yes
21799 else
21800 $as_echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21803 ac_cv_lib_resolv___res_send=no
21806 rm -rf conftest.dSYM
21807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21808 conftest$ac_exeext conftest.$ac_ext
21809 LIBS=$ac_check_lib_save_LIBS
21811 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21812 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21813 if test $ac_cv_lib_resolv___res_send = yes; then
21814 resolv=yes
21823 if test "$resolv" = yes ; then
21824 RESOLVLIB=-lresolv
21825 else
21826 RESOLVLIB=
21828 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21829 $as_echo_n "checking for hes_getmailhost... " >&6; }
21830 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21831 $as_echo_n "(cached) " >&6
21832 else
21833 cat >conftest.$ac_ext <<_ACEOF
21834 /* confdefs.h. */
21835 _ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21839 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21841 #define hes_getmailhost innocuous_hes_getmailhost
21843 /* System header to define __stub macros and hopefully few prototypes,
21844 which can conflict with char hes_getmailhost (); below.
21845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21846 <limits.h> exists even on freestanding compilers. */
21848 #ifdef __STDC__
21849 # include <limits.h>
21850 #else
21851 # include <assert.h>
21852 #endif
21854 #undef hes_getmailhost
21856 /* Override any GCC internal prototype to avoid an error.
21857 Use char because int might match the return type of a GCC
21858 builtin and then its argument prototype would still apply. */
21859 #ifdef __cplusplus
21860 extern "C"
21861 #endif
21862 char hes_getmailhost ();
21863 /* The GNU C library defines this for functions which it implements
21864 to always fail with ENOSYS. Some functions are actually named
21865 something starting with __ and the normal name is an alias. */
21866 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21867 choke me
21868 #endif
21871 main ()
21873 return hes_getmailhost ();
21875 return 0;
21877 _ACEOF
21878 rm -f conftest.$ac_objext conftest$ac_exeext
21879 if { (ac_try="$ac_link"
21880 case "(($ac_try" in
21881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882 *) ac_try_echo=$ac_try;;
21883 esac
21884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21885 $as_echo "$ac_try_echo") >&5
21886 (eval "$ac_link") 2>conftest.er1
21887 ac_status=$?
21888 grep -v '^ *+' conftest.er1 >conftest.err
21889 rm -f conftest.er1
21890 cat conftest.err >&5
21891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } && {
21893 test -z "$ac_c_werror_flag" ||
21894 test ! -s conftest.err
21895 } && test -s conftest$ac_exeext && {
21896 test "$cross_compiling" = yes ||
21897 $as_test_x conftest$ac_exeext
21898 }; then
21899 ac_cv_func_hes_getmailhost=yes
21900 else
21901 $as_echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21904 ac_cv_func_hes_getmailhost=no
21907 rm -rf conftest.dSYM
21908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21909 conftest$ac_exeext conftest.$ac_ext
21911 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21912 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21913 if test $ac_cv_func_hes_getmailhost = yes; then
21915 else
21916 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21917 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21918 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21919 $as_echo_n "(cached) " >&6
21920 else
21921 ac_check_lib_save_LIBS=$LIBS
21922 LIBS="-lhesiod $RESOLVLIB $LIBS"
21923 cat >conftest.$ac_ext <<_ACEOF
21924 /* confdefs.h. */
21925 _ACEOF
21926 cat confdefs.h >>conftest.$ac_ext
21927 cat >>conftest.$ac_ext <<_ACEOF
21928 /* end confdefs.h. */
21930 /* Override any GCC internal prototype to avoid an error.
21931 Use char because int might match the return type of a GCC
21932 builtin and then its argument prototype would still apply. */
21933 #ifdef __cplusplus
21934 extern "C"
21935 #endif
21936 char hes_getmailhost ();
21938 main ()
21940 return hes_getmailhost ();
21942 return 0;
21944 _ACEOF
21945 rm -f conftest.$ac_objext conftest$ac_exeext
21946 if { (ac_try="$ac_link"
21947 case "(($ac_try" in
21948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21949 *) ac_try_echo=$ac_try;;
21950 esac
21951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21952 $as_echo "$ac_try_echo") >&5
21953 (eval "$ac_link") 2>conftest.er1
21954 ac_status=$?
21955 grep -v '^ *+' conftest.er1 >conftest.err
21956 rm -f conftest.er1
21957 cat conftest.err >&5
21958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } && {
21960 test -z "$ac_c_werror_flag" ||
21961 test ! -s conftest.err
21962 } && test -s conftest$ac_exeext && {
21963 test "$cross_compiling" = yes ||
21964 $as_test_x conftest$ac_exeext
21965 }; then
21966 ac_cv_lib_hesiod_hes_getmailhost=yes
21967 else
21968 $as_echo "$as_me: failed program was:" >&5
21969 sed 's/^/| /' conftest.$ac_ext >&5
21971 ac_cv_lib_hesiod_hes_getmailhost=no
21974 rm -rf conftest.dSYM
21975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21976 conftest$ac_exeext conftest.$ac_ext
21977 LIBS=$ac_check_lib_save_LIBS
21979 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21980 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21981 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21982 hesiod=yes
21983 else
21990 if test x"$hesiod" = xyes; then
21992 cat >>confdefs.h <<\_ACEOF
21993 #define HAVE_LIBHESIOD 1
21994 _ACEOF
21996 LIBHESIOD=-lhesiod
22001 # Do we need libresolv (due to res_init or Hesiod)?
22002 if test "$resolv" = yes ; then
22004 cat >>confdefs.h <<\_ACEOF
22005 #define HAVE_LIBRESOLV 1
22006 _ACEOF
22008 LIBRESOLV=-lresolv
22009 else
22010 LIBRESOLV=
22014 # These tell us which Kerberos-related libraries to use.
22015 COM_ERRLIB=
22016 CRYPTOLIB=
22017 KRB5LIB=
22018 DESLIB=
22019 KRB4LIB=
22021 if test "${with_kerberos}" != no; then
22022 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22023 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22024 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22025 $as_echo_n "(cached) " >&6
22026 else
22027 ac_check_lib_save_LIBS=$LIBS
22028 LIBS="-lcom_err $LIBS"
22029 cat >conftest.$ac_ext <<_ACEOF
22030 /* confdefs.h. */
22031 _ACEOF
22032 cat confdefs.h >>conftest.$ac_ext
22033 cat >>conftest.$ac_ext <<_ACEOF
22034 /* end confdefs.h. */
22036 /* Override any GCC internal prototype to avoid an error.
22037 Use char because int might match the return type of a GCC
22038 builtin and then its argument prototype would still apply. */
22039 #ifdef __cplusplus
22040 extern "C"
22041 #endif
22042 char com_err ();
22044 main ()
22046 return com_err ();
22048 return 0;
22050 _ACEOF
22051 rm -f conftest.$ac_objext conftest$ac_exeext
22052 if { (ac_try="$ac_link"
22053 case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22056 esac
22057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22058 $as_echo "$ac_try_echo") >&5
22059 (eval "$ac_link") 2>conftest.er1
22060 ac_status=$?
22061 grep -v '^ *+' conftest.er1 >conftest.err
22062 rm -f conftest.er1
22063 cat conftest.err >&5
22064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); } && {
22066 test -z "$ac_c_werror_flag" ||
22067 test ! -s conftest.err
22068 } && test -s conftest$ac_exeext && {
22069 test "$cross_compiling" = yes ||
22070 $as_test_x conftest$ac_exeext
22071 }; then
22072 ac_cv_lib_com_err_com_err=yes
22073 else
22074 $as_echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22077 ac_cv_lib_com_err_com_err=no
22080 rm -rf conftest.dSYM
22081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22082 conftest$ac_exeext conftest.$ac_ext
22083 LIBS=$ac_check_lib_save_LIBS
22085 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22086 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22087 if test $ac_cv_lib_com_err_com_err = yes; then
22088 have_com_err=yes
22089 else
22090 have_com_err=no
22093 if test $have_com_err = yes; then
22094 COM_ERRLIB=-lcom_err
22095 LIBS="$COM_ERRLIB $LIBS"
22097 cat >>confdefs.h <<\_ACEOF
22098 #define HAVE_LIBCOM_ERR 1
22099 _ACEOF
22102 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22103 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22104 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22105 $as_echo_n "(cached) " >&6
22106 else
22107 ac_check_lib_save_LIBS=$LIBS
22108 LIBS="-lcrypto $LIBS"
22109 cat >conftest.$ac_ext <<_ACEOF
22110 /* confdefs.h. */
22111 _ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22116 /* Override any GCC internal prototype to avoid an error.
22117 Use char because int might match the return type of a GCC
22118 builtin and then its argument prototype would still apply. */
22119 #ifdef __cplusplus
22120 extern "C"
22121 #endif
22122 char mit_des_cbc_encrypt ();
22124 main ()
22126 return mit_des_cbc_encrypt ();
22128 return 0;
22130 _ACEOF
22131 rm -f conftest.$ac_objext conftest$ac_exeext
22132 if { (ac_try="$ac_link"
22133 case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22136 esac
22137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22138 $as_echo "$ac_try_echo") >&5
22139 (eval "$ac_link") 2>conftest.er1
22140 ac_status=$?
22141 grep -v '^ *+' conftest.er1 >conftest.err
22142 rm -f conftest.er1
22143 cat conftest.err >&5
22144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } && {
22146 test -z "$ac_c_werror_flag" ||
22147 test ! -s conftest.err
22148 } && test -s conftest$ac_exeext && {
22149 test "$cross_compiling" = yes ||
22150 $as_test_x conftest$ac_exeext
22151 }; then
22152 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22153 else
22154 $as_echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22157 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22160 rm -rf conftest.dSYM
22161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22162 conftest$ac_exeext conftest.$ac_ext
22163 LIBS=$ac_check_lib_save_LIBS
22165 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22166 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22167 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22168 have_crypto=yes
22169 else
22170 have_crypto=no
22173 if test $have_crypto = yes; then
22174 CRYPTOLIB=-lcrypto
22175 LIBS="$CRYPTOLIB $LIBS"
22177 cat >>confdefs.h <<\_ACEOF
22178 #define HAVE_LIBCRYPTO 1
22179 _ACEOF
22182 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22183 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22184 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22185 $as_echo_n "(cached) " >&6
22186 else
22187 ac_check_lib_save_LIBS=$LIBS
22188 LIBS="-lk5crypto $LIBS"
22189 cat >conftest.$ac_ext <<_ACEOF
22190 /* confdefs.h. */
22191 _ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22196 /* Override any GCC internal prototype to avoid an error.
22197 Use char because int might match the return type of a GCC
22198 builtin and then its argument prototype would still apply. */
22199 #ifdef __cplusplus
22200 extern "C"
22201 #endif
22202 char mit_des_cbc_encrypt ();
22204 main ()
22206 return mit_des_cbc_encrypt ();
22208 return 0;
22210 _ACEOF
22211 rm -f conftest.$ac_objext conftest$ac_exeext
22212 if { (ac_try="$ac_link"
22213 case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22216 esac
22217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22218 $as_echo "$ac_try_echo") >&5
22219 (eval "$ac_link") 2>conftest.er1
22220 ac_status=$?
22221 grep -v '^ *+' conftest.er1 >conftest.err
22222 rm -f conftest.er1
22223 cat conftest.err >&5
22224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } && {
22226 test -z "$ac_c_werror_flag" ||
22227 test ! -s conftest.err
22228 } && test -s conftest$ac_exeext && {
22229 test "$cross_compiling" = yes ||
22230 $as_test_x conftest$ac_exeext
22231 }; then
22232 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22233 else
22234 $as_echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22237 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22240 rm -rf conftest.dSYM
22241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22242 conftest$ac_exeext conftest.$ac_ext
22243 LIBS=$ac_check_lib_save_LIBS
22245 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22246 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22247 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22248 have_k5crypto=yes
22249 else
22250 have_k5crypto=no
22253 if test $have_k5crypto = yes; then
22254 CRYPTOLIB=-lk5crypto
22255 LIBS="$CRYPTOLIB $LIBS"
22257 cat >>confdefs.h <<\_ACEOF
22258 #define HAVE_LIBK5CRYPTO 1
22259 _ACEOF
22262 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22263 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22264 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22265 $as_echo_n "(cached) " >&6
22266 else
22267 ac_check_lib_save_LIBS=$LIBS
22268 LIBS="-lkrb5 $LIBS"
22269 cat >conftest.$ac_ext <<_ACEOF
22270 /* confdefs.h. */
22271 _ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h. */
22276 /* Override any GCC internal prototype to avoid an error.
22277 Use char because int might match the return type of a GCC
22278 builtin and then its argument prototype would still apply. */
22279 #ifdef __cplusplus
22280 extern "C"
22281 #endif
22282 char krb5_init_context ();
22284 main ()
22286 return krb5_init_context ();
22288 return 0;
22290 _ACEOF
22291 rm -f conftest.$ac_objext conftest$ac_exeext
22292 if { (ac_try="$ac_link"
22293 case "(($ac_try" in
22294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22295 *) ac_try_echo=$ac_try;;
22296 esac
22297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22298 $as_echo "$ac_try_echo") >&5
22299 (eval "$ac_link") 2>conftest.er1
22300 ac_status=$?
22301 grep -v '^ *+' conftest.er1 >conftest.err
22302 rm -f conftest.er1
22303 cat conftest.err >&5
22304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); } && {
22306 test -z "$ac_c_werror_flag" ||
22307 test ! -s conftest.err
22308 } && test -s conftest$ac_exeext && {
22309 test "$cross_compiling" = yes ||
22310 $as_test_x conftest$ac_exeext
22311 }; then
22312 ac_cv_lib_krb5_krb5_init_context=yes
22313 else
22314 $as_echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22317 ac_cv_lib_krb5_krb5_init_context=no
22320 rm -rf conftest.dSYM
22321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22322 conftest$ac_exeext conftest.$ac_ext
22323 LIBS=$ac_check_lib_save_LIBS
22325 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22326 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22327 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22328 have_krb5=yes
22329 else
22330 have_krb5=no
22333 if test $have_krb5=yes; then
22334 KRB5LIB=-lkrb5
22335 LIBS="$KRB5LIB $LIBS"
22337 cat >>confdefs.h <<\_ACEOF
22338 #define HAVE_LIBKRB5 1
22339 _ACEOF
22342 if test "${with_kerberos5}" = no; then
22343 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22344 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22345 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22346 $as_echo_n "(cached) " >&6
22347 else
22348 ac_check_lib_save_LIBS=$LIBS
22349 LIBS="-ldes425 $LIBS"
22350 cat >conftest.$ac_ext <<_ACEOF
22351 /* confdefs.h. */
22352 _ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22357 /* Override any GCC internal prototype to avoid an error.
22358 Use char because int might match the return type of a GCC
22359 builtin and then its argument prototype would still apply. */
22360 #ifdef __cplusplus
22361 extern "C"
22362 #endif
22363 char des_cbc_encrypt ();
22365 main ()
22367 return des_cbc_encrypt ();
22369 return 0;
22371 _ACEOF
22372 rm -f conftest.$ac_objext conftest$ac_exeext
22373 if { (ac_try="$ac_link"
22374 case "(($ac_try" in
22375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22376 *) ac_try_echo=$ac_try;;
22377 esac
22378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22379 $as_echo "$ac_try_echo") >&5
22380 (eval "$ac_link") 2>conftest.er1
22381 ac_status=$?
22382 grep -v '^ *+' conftest.er1 >conftest.err
22383 rm -f conftest.er1
22384 cat conftest.err >&5
22385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); } && {
22387 test -z "$ac_c_werror_flag" ||
22388 test ! -s conftest.err
22389 } && test -s conftest$ac_exeext && {
22390 test "$cross_compiling" = yes ||
22391 $as_test_x conftest$ac_exeext
22392 }; then
22393 ac_cv_lib_des425_des_cbc_encrypt=yes
22394 else
22395 $as_echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22398 ac_cv_lib_des425_des_cbc_encrypt=no
22401 rm -rf conftest.dSYM
22402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22403 conftest$ac_exeext conftest.$ac_ext
22404 LIBS=$ac_check_lib_save_LIBS
22406 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22407 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22408 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22409 have_des425=yes
22410 else
22411 have_des425=no
22414 if test $have_des425 = yes; then
22415 DESLIB=-ldes425
22416 LIBS="$DESLIB $LIBS"
22418 cat >>confdefs.h <<\_ACEOF
22419 #define HAVE_LIBDES425 1
22420 _ACEOF
22422 else
22423 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22424 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22425 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22426 $as_echo_n "(cached) " >&6
22427 else
22428 ac_check_lib_save_LIBS=$LIBS
22429 LIBS="-ldes $LIBS"
22430 cat >conftest.$ac_ext <<_ACEOF
22431 /* confdefs.h. */
22432 _ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h. */
22437 /* Override any GCC internal prototype to avoid an error.
22438 Use char because int might match the return type of a GCC
22439 builtin and then its argument prototype would still apply. */
22440 #ifdef __cplusplus
22441 extern "C"
22442 #endif
22443 char des_cbc_encrypt ();
22445 main ()
22447 return des_cbc_encrypt ();
22449 return 0;
22451 _ACEOF
22452 rm -f conftest.$ac_objext conftest$ac_exeext
22453 if { (ac_try="$ac_link"
22454 case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22457 esac
22458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22459 $as_echo "$ac_try_echo") >&5
22460 (eval "$ac_link") 2>conftest.er1
22461 ac_status=$?
22462 grep -v '^ *+' conftest.er1 >conftest.err
22463 rm -f conftest.er1
22464 cat conftest.err >&5
22465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); } && {
22467 test -z "$ac_c_werror_flag" ||
22468 test ! -s conftest.err
22469 } && test -s conftest$ac_exeext && {
22470 test "$cross_compiling" = yes ||
22471 $as_test_x conftest$ac_exeext
22472 }; then
22473 ac_cv_lib_des_des_cbc_encrypt=yes
22474 else
22475 $as_echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22478 ac_cv_lib_des_des_cbc_encrypt=no
22481 rm -rf conftest.dSYM
22482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22483 conftest$ac_exeext conftest.$ac_ext
22484 LIBS=$ac_check_lib_save_LIBS
22486 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22487 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22488 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22489 have_des=yes
22490 else
22491 have_des=no
22494 if test $have_des = yes; then
22495 DESLIB=-ldes
22496 LIBS="$DESLIB $LIBS"
22498 cat >>confdefs.h <<\_ACEOF
22499 #define HAVE_LIBDES 1
22500 _ACEOF
22504 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22505 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22506 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22507 $as_echo_n "(cached) " >&6
22508 else
22509 ac_check_lib_save_LIBS=$LIBS
22510 LIBS="-lkrb4 $LIBS"
22511 cat >conftest.$ac_ext <<_ACEOF
22512 /* confdefs.h. */
22513 _ACEOF
22514 cat confdefs.h >>conftest.$ac_ext
22515 cat >>conftest.$ac_ext <<_ACEOF
22516 /* end confdefs.h. */
22518 /* Override any GCC internal prototype to avoid an error.
22519 Use char because int might match the return type of a GCC
22520 builtin and then its argument prototype would still apply. */
22521 #ifdef __cplusplus
22522 extern "C"
22523 #endif
22524 char krb_get_cred ();
22526 main ()
22528 return krb_get_cred ();
22530 return 0;
22532 _ACEOF
22533 rm -f conftest.$ac_objext conftest$ac_exeext
22534 if { (ac_try="$ac_link"
22535 case "(($ac_try" in
22536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22538 esac
22539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22540 $as_echo "$ac_try_echo") >&5
22541 (eval "$ac_link") 2>conftest.er1
22542 ac_status=$?
22543 grep -v '^ *+' conftest.er1 >conftest.err
22544 rm -f conftest.er1
22545 cat conftest.err >&5
22546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); } && {
22548 test -z "$ac_c_werror_flag" ||
22549 test ! -s conftest.err
22550 } && test -s conftest$ac_exeext && {
22551 test "$cross_compiling" = yes ||
22552 $as_test_x conftest$ac_exeext
22553 }; then
22554 ac_cv_lib_krb4_krb_get_cred=yes
22555 else
22556 $as_echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22559 ac_cv_lib_krb4_krb_get_cred=no
22562 rm -rf conftest.dSYM
22563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22564 conftest$ac_exeext conftest.$ac_ext
22565 LIBS=$ac_check_lib_save_LIBS
22567 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22568 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22569 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22570 have_krb4=yes
22571 else
22572 have_krb4=no
22575 if test $have_krb4 = yes; then
22576 KRB4LIB=-lkrb4
22577 LIBS="$KRB4LIB $LIBS"
22579 cat >>confdefs.h <<\_ACEOF
22580 #define HAVE_LIBKRB4 1
22581 _ACEOF
22583 else
22584 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22585 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22586 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22587 $as_echo_n "(cached) " >&6
22588 else
22589 ac_check_lib_save_LIBS=$LIBS
22590 LIBS="-lkrb $LIBS"
22591 cat >conftest.$ac_ext <<_ACEOF
22592 /* confdefs.h. */
22593 _ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22598 /* Override any GCC internal prototype to avoid an error.
22599 Use char because int might match the return type of a GCC
22600 builtin and then its argument prototype would still apply. */
22601 #ifdef __cplusplus
22602 extern "C"
22603 #endif
22604 char krb_get_cred ();
22606 main ()
22608 return krb_get_cred ();
22610 return 0;
22612 _ACEOF
22613 rm -f conftest.$ac_objext conftest$ac_exeext
22614 if { (ac_try="$ac_link"
22615 case "(($ac_try" in
22616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617 *) ac_try_echo=$ac_try;;
22618 esac
22619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22620 $as_echo "$ac_try_echo") >&5
22621 (eval "$ac_link") 2>conftest.er1
22622 ac_status=$?
22623 grep -v '^ *+' conftest.er1 >conftest.err
22624 rm -f conftest.er1
22625 cat conftest.err >&5
22626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } && {
22628 test -z "$ac_c_werror_flag" ||
22629 test ! -s conftest.err
22630 } && test -s conftest$ac_exeext && {
22631 test "$cross_compiling" = yes ||
22632 $as_test_x conftest$ac_exeext
22633 }; then
22634 ac_cv_lib_krb_krb_get_cred=yes
22635 else
22636 $as_echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22639 ac_cv_lib_krb_krb_get_cred=no
22642 rm -rf conftest.dSYM
22643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22644 conftest$ac_exeext conftest.$ac_ext
22645 LIBS=$ac_check_lib_save_LIBS
22647 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22648 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22649 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22650 have_krb=yes
22651 else
22652 have_krb=no
22655 if test $have_krb = yes; then
22656 KRB4LIB=-lkrb
22657 LIBS="$KRB4LIB $LIBS"
22659 cat >>confdefs.h <<\_ACEOF
22660 #define HAVE_LIBKRB 1
22661 _ACEOF
22667 if test "${with_kerberos5}" != no; then
22669 for ac_header in krb5.h
22671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22673 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22674 $as_echo_n "checking for $ac_header... " >&6; }
22675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22676 $as_echo_n "(cached) " >&6
22678 ac_res=`eval 'as_val=${'$as_ac_Header'}
22679 $as_echo "$as_val"'`
22680 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22681 $as_echo "$ac_res" >&6; }
22682 else
22683 # Is the header compilable?
22684 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22685 $as_echo_n "checking $ac_header usability... " >&6; }
22686 cat >conftest.$ac_ext <<_ACEOF
22687 /* confdefs.h. */
22688 _ACEOF
22689 cat confdefs.h >>conftest.$ac_ext
22690 cat >>conftest.$ac_ext <<_ACEOF
22691 /* end confdefs.h. */
22692 $ac_includes_default
22693 #include <$ac_header>
22694 _ACEOF
22695 rm -f conftest.$ac_objext
22696 if { (ac_try="$ac_compile"
22697 case "(($ac_try" in
22698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699 *) ac_try_echo=$ac_try;;
22700 esac
22701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22702 $as_echo "$ac_try_echo") >&5
22703 (eval "$ac_compile") 2>conftest.er1
22704 ac_status=$?
22705 grep -v '^ *+' conftest.er1 >conftest.err
22706 rm -f conftest.er1
22707 cat conftest.err >&5
22708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); } && {
22710 test -z "$ac_c_werror_flag" ||
22711 test ! -s conftest.err
22712 } && test -s conftest.$ac_objext; then
22713 ac_header_compiler=yes
22714 else
22715 $as_echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22718 ac_header_compiler=no
22721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22722 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22723 $as_echo "$ac_header_compiler" >&6; }
22725 # Is the header present?
22726 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22727 $as_echo_n "checking $ac_header presence... " >&6; }
22728 cat >conftest.$ac_ext <<_ACEOF
22729 /* confdefs.h. */
22730 _ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h. */
22734 #include <$ac_header>
22735 _ACEOF
22736 if { (ac_try="$ac_cpp conftest.$ac_ext"
22737 case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22740 esac
22741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22742 $as_echo "$ac_try_echo") >&5
22743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22744 ac_status=$?
22745 grep -v '^ *+' conftest.er1 >conftest.err
22746 rm -f conftest.er1
22747 cat conftest.err >&5
22748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } >/dev/null && {
22750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22751 test ! -s conftest.err
22752 }; then
22753 ac_header_preproc=yes
22754 else
22755 $as_echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.$ac_ext >&5
22758 ac_header_preproc=no
22761 rm -f conftest.err conftest.$ac_ext
22762 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22763 $as_echo "$ac_header_preproc" >&6; }
22765 # So? What about this header?
22766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22767 yes:no: )
22768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22769 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22771 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22772 ac_header_preproc=yes
22774 no:yes:* )
22775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22776 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22778 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22780 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22782 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22786 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22789 esac
22790 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22791 $as_echo_n "checking for $ac_header... " >&6; }
22792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22793 $as_echo_n "(cached) " >&6
22794 else
22795 eval "$as_ac_Header=\$ac_header_preproc"
22797 ac_res=`eval 'as_val=${'$as_ac_Header'}
22798 $as_echo "$as_val"'`
22799 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22800 $as_echo "$ac_res" >&6; }
22803 if test `eval 'as_val=${'$as_ac_Header'}
22804 $as_echo "$as_val"'` = yes; then
22805 cat >>confdefs.h <<_ACEOF
22806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22807 _ACEOF
22808 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22809 $as_echo_n "checking for krb5_error.text... " >&6; }
22810 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22811 $as_echo_n "(cached) " >&6
22812 else
22813 cat >conftest.$ac_ext <<_ACEOF
22814 /* confdefs.h. */
22815 _ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22819 #include <krb5.h>
22822 main ()
22824 static krb5_error ac_aggr;
22825 if (ac_aggr.text)
22826 return 0;
22828 return 0;
22830 _ACEOF
22831 rm -f conftest.$ac_objext
22832 if { (ac_try="$ac_compile"
22833 case "(($ac_try" in
22834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22835 *) ac_try_echo=$ac_try;;
22836 esac
22837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22838 $as_echo "$ac_try_echo") >&5
22839 (eval "$ac_compile") 2>conftest.er1
22840 ac_status=$?
22841 grep -v '^ *+' conftest.er1 >conftest.err
22842 rm -f conftest.er1
22843 cat conftest.err >&5
22844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); } && {
22846 test -z "$ac_c_werror_flag" ||
22847 test ! -s conftest.err
22848 } && test -s conftest.$ac_objext; then
22849 ac_cv_member_krb5_error_text=yes
22850 else
22851 $as_echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22854 cat >conftest.$ac_ext <<_ACEOF
22855 /* confdefs.h. */
22856 _ACEOF
22857 cat confdefs.h >>conftest.$ac_ext
22858 cat >>conftest.$ac_ext <<_ACEOF
22859 /* end confdefs.h. */
22860 #include <krb5.h>
22863 main ()
22865 static krb5_error ac_aggr;
22866 if (sizeof ac_aggr.text)
22867 return 0;
22869 return 0;
22871 _ACEOF
22872 rm -f conftest.$ac_objext
22873 if { (ac_try="$ac_compile"
22874 case "(($ac_try" in
22875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876 *) ac_try_echo=$ac_try;;
22877 esac
22878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22879 $as_echo "$ac_try_echo") >&5
22880 (eval "$ac_compile") 2>conftest.er1
22881 ac_status=$?
22882 grep -v '^ *+' conftest.er1 >conftest.err
22883 rm -f conftest.er1
22884 cat conftest.err >&5
22885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); } && {
22887 test -z "$ac_c_werror_flag" ||
22888 test ! -s conftest.err
22889 } && test -s conftest.$ac_objext; then
22890 ac_cv_member_krb5_error_text=yes
22891 else
22892 $as_echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22895 ac_cv_member_krb5_error_text=no
22898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22904 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22905 if test $ac_cv_member_krb5_error_text = yes; then
22907 cat >>confdefs.h <<_ACEOF
22908 #define HAVE_KRB5_ERROR_TEXT 1
22909 _ACEOF
22913 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22914 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22915 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22916 $as_echo_n "(cached) " >&6
22917 else
22918 cat >conftest.$ac_ext <<_ACEOF
22919 /* confdefs.h. */
22920 _ACEOF
22921 cat confdefs.h >>conftest.$ac_ext
22922 cat >>conftest.$ac_ext <<_ACEOF
22923 /* end confdefs.h. */
22924 #include <krb5.h>
22927 main ()
22929 static krb5_error ac_aggr;
22930 if (ac_aggr.e_text)
22931 return 0;
22933 return 0;
22935 _ACEOF
22936 rm -f conftest.$ac_objext
22937 if { (ac_try="$ac_compile"
22938 case "(($ac_try" in
22939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22940 *) ac_try_echo=$ac_try;;
22941 esac
22942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22943 $as_echo "$ac_try_echo") >&5
22944 (eval "$ac_compile") 2>conftest.er1
22945 ac_status=$?
22946 grep -v '^ *+' conftest.er1 >conftest.err
22947 rm -f conftest.er1
22948 cat conftest.err >&5
22949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); } && {
22951 test -z "$ac_c_werror_flag" ||
22952 test ! -s conftest.err
22953 } && test -s conftest.$ac_objext; then
22954 ac_cv_member_krb5_error_e_text=yes
22955 else
22956 $as_echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22959 cat >conftest.$ac_ext <<_ACEOF
22960 /* confdefs.h. */
22961 _ACEOF
22962 cat confdefs.h >>conftest.$ac_ext
22963 cat >>conftest.$ac_ext <<_ACEOF
22964 /* end confdefs.h. */
22965 #include <krb5.h>
22968 main ()
22970 static krb5_error ac_aggr;
22971 if (sizeof ac_aggr.e_text)
22972 return 0;
22974 return 0;
22976 _ACEOF
22977 rm -f conftest.$ac_objext
22978 if { (ac_try="$ac_compile"
22979 case "(($ac_try" in
22980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981 *) ac_try_echo=$ac_try;;
22982 esac
22983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22984 $as_echo "$ac_try_echo") >&5
22985 (eval "$ac_compile") 2>conftest.er1
22986 ac_status=$?
22987 grep -v '^ *+' conftest.er1 >conftest.err
22988 rm -f conftest.er1
22989 cat conftest.err >&5
22990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); } && {
22992 test -z "$ac_c_werror_flag" ||
22993 test ! -s conftest.err
22994 } && test -s conftest.$ac_objext; then
22995 ac_cv_member_krb5_error_e_text=yes
22996 else
22997 $as_echo "$as_me: failed program was:" >&5
22998 sed 's/^/| /' conftest.$ac_ext >&5
23000 ac_cv_member_krb5_error_e_text=no
23003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23008 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23009 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23010 if test $ac_cv_member_krb5_error_e_text = yes; then
23012 cat >>confdefs.h <<_ACEOF
23013 #define HAVE_KRB5_ERROR_E_TEXT 1
23014 _ACEOF
23021 done
23023 else
23025 for ac_header in des.h
23027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23029 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23030 $as_echo_n "checking for $ac_header... " >&6; }
23031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23032 $as_echo_n "(cached) " >&6
23034 ac_res=`eval 'as_val=${'$as_ac_Header'}
23035 $as_echo "$as_val"'`
23036 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23037 $as_echo "$ac_res" >&6; }
23038 else
23039 # Is the header compilable?
23040 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23041 $as_echo_n "checking $ac_header usability... " >&6; }
23042 cat >conftest.$ac_ext <<_ACEOF
23043 /* confdefs.h. */
23044 _ACEOF
23045 cat confdefs.h >>conftest.$ac_ext
23046 cat >>conftest.$ac_ext <<_ACEOF
23047 /* end confdefs.h. */
23048 $ac_includes_default
23049 #include <$ac_header>
23050 _ACEOF
23051 rm -f conftest.$ac_objext
23052 if { (ac_try="$ac_compile"
23053 case "(($ac_try" in
23054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055 *) ac_try_echo=$ac_try;;
23056 esac
23057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23058 $as_echo "$ac_try_echo") >&5
23059 (eval "$ac_compile") 2>conftest.er1
23060 ac_status=$?
23061 grep -v '^ *+' conftest.er1 >conftest.err
23062 rm -f conftest.er1
23063 cat conftest.err >&5
23064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); } && {
23066 test -z "$ac_c_werror_flag" ||
23067 test ! -s conftest.err
23068 } && test -s conftest.$ac_objext; then
23069 ac_header_compiler=yes
23070 else
23071 $as_echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23074 ac_header_compiler=no
23077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23079 $as_echo "$ac_header_compiler" >&6; }
23081 # Is the header present?
23082 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23083 $as_echo_n "checking $ac_header presence... " >&6; }
23084 cat >conftest.$ac_ext <<_ACEOF
23085 /* confdefs.h. */
23086 _ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h. */
23090 #include <$ac_header>
23091 _ACEOF
23092 if { (ac_try="$ac_cpp conftest.$ac_ext"
23093 case "(($ac_try" in
23094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23095 *) ac_try_echo=$ac_try;;
23096 esac
23097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23098 $as_echo "$ac_try_echo") >&5
23099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23100 ac_status=$?
23101 grep -v '^ *+' conftest.er1 >conftest.err
23102 rm -f conftest.er1
23103 cat conftest.err >&5
23104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); } >/dev/null && {
23106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23107 test ! -s conftest.err
23108 }; then
23109 ac_header_preproc=yes
23110 else
23111 $as_echo "$as_me: failed program was:" >&5
23112 sed 's/^/| /' conftest.$ac_ext >&5
23114 ac_header_preproc=no
23117 rm -f conftest.err conftest.$ac_ext
23118 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23119 $as_echo "$ac_header_preproc" >&6; }
23121 # So? What about this header?
23122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23123 yes:no: )
23124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23125 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23127 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23128 ac_header_preproc=yes
23130 no:yes:* )
23131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23132 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23134 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23136 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23138 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23140 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23142 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23145 esac
23146 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23147 $as_echo_n "checking for $ac_header... " >&6; }
23148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23149 $as_echo_n "(cached) " >&6
23150 else
23151 eval "$as_ac_Header=\$ac_header_preproc"
23153 ac_res=`eval 'as_val=${'$as_ac_Header'}
23154 $as_echo "$as_val"'`
23155 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23156 $as_echo "$ac_res" >&6; }
23159 if test `eval 'as_val=${'$as_ac_Header'}
23160 $as_echo "$as_val"'` = yes; then
23161 cat >>confdefs.h <<_ACEOF
23162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23163 _ACEOF
23165 else
23167 for ac_header in kerberosIV/des.h
23169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23171 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23172 $as_echo_n "checking for $ac_header... " >&6; }
23173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23174 $as_echo_n "(cached) " >&6
23176 ac_res=`eval 'as_val=${'$as_ac_Header'}
23177 $as_echo "$as_val"'`
23178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23179 $as_echo "$ac_res" >&6; }
23180 else
23181 # Is the header compilable?
23182 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23183 $as_echo_n "checking $ac_header usability... " >&6; }
23184 cat >conftest.$ac_ext <<_ACEOF
23185 /* confdefs.h. */
23186 _ACEOF
23187 cat confdefs.h >>conftest.$ac_ext
23188 cat >>conftest.$ac_ext <<_ACEOF
23189 /* end confdefs.h. */
23190 $ac_includes_default
23191 #include <$ac_header>
23192 _ACEOF
23193 rm -f conftest.$ac_objext
23194 if { (ac_try="$ac_compile"
23195 case "(($ac_try" in
23196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197 *) ac_try_echo=$ac_try;;
23198 esac
23199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23200 $as_echo "$ac_try_echo") >&5
23201 (eval "$ac_compile") 2>conftest.er1
23202 ac_status=$?
23203 grep -v '^ *+' conftest.er1 >conftest.err
23204 rm -f conftest.er1
23205 cat conftest.err >&5
23206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } && {
23208 test -z "$ac_c_werror_flag" ||
23209 test ! -s conftest.err
23210 } && test -s conftest.$ac_objext; then
23211 ac_header_compiler=yes
23212 else
23213 $as_echo "$as_me: failed program was:" >&5
23214 sed 's/^/| /' conftest.$ac_ext >&5
23216 ac_header_compiler=no
23219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23220 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23221 $as_echo "$ac_header_compiler" >&6; }
23223 # Is the header present?
23224 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23225 $as_echo_n "checking $ac_header presence... " >&6; }
23226 cat >conftest.$ac_ext <<_ACEOF
23227 /* confdefs.h. */
23228 _ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h. */
23232 #include <$ac_header>
23233 _ACEOF
23234 if { (ac_try="$ac_cpp conftest.$ac_ext"
23235 case "(($ac_try" in
23236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23237 *) ac_try_echo=$ac_try;;
23238 esac
23239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23240 $as_echo "$ac_try_echo") >&5
23241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23242 ac_status=$?
23243 grep -v '^ *+' conftest.er1 >conftest.err
23244 rm -f conftest.er1
23245 cat conftest.err >&5
23246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); } >/dev/null && {
23248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23249 test ! -s conftest.err
23250 }; then
23251 ac_header_preproc=yes
23252 else
23253 $as_echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23256 ac_header_preproc=no
23259 rm -f conftest.err conftest.$ac_ext
23260 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23261 $as_echo "$ac_header_preproc" >&6; }
23263 # So? What about this header?
23264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23265 yes:no: )
23266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23267 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23269 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23270 ac_header_preproc=yes
23272 no:yes:* )
23273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23274 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23276 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23278 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23280 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23282 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23284 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23287 esac
23288 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23289 $as_echo_n "checking for $ac_header... " >&6; }
23290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23291 $as_echo_n "(cached) " >&6
23292 else
23293 eval "$as_ac_Header=\$ac_header_preproc"
23295 ac_res=`eval 'as_val=${'$as_ac_Header'}
23296 $as_echo "$as_val"'`
23297 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23298 $as_echo "$ac_res" >&6; }
23301 if test `eval 'as_val=${'$as_ac_Header'}
23302 $as_echo "$as_val"'` = yes; then
23303 cat >>confdefs.h <<_ACEOF
23304 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23305 _ACEOF
23307 else
23309 for ac_header in kerberos/des.h
23311 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23313 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23314 $as_echo_n "checking for $ac_header... " >&6; }
23315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23316 $as_echo_n "(cached) " >&6
23318 ac_res=`eval 'as_val=${'$as_ac_Header'}
23319 $as_echo "$as_val"'`
23320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23321 $as_echo "$ac_res" >&6; }
23322 else
23323 # Is the header compilable?
23324 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23325 $as_echo_n "checking $ac_header usability... " >&6; }
23326 cat >conftest.$ac_ext <<_ACEOF
23327 /* confdefs.h. */
23328 _ACEOF
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h. */
23332 $ac_includes_default
23333 #include <$ac_header>
23334 _ACEOF
23335 rm -f conftest.$ac_objext
23336 if { (ac_try="$ac_compile"
23337 case "(($ac_try" in
23338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23339 *) ac_try_echo=$ac_try;;
23340 esac
23341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23342 $as_echo "$ac_try_echo") >&5
23343 (eval "$ac_compile") 2>conftest.er1
23344 ac_status=$?
23345 grep -v '^ *+' conftest.er1 >conftest.err
23346 rm -f conftest.er1
23347 cat conftest.err >&5
23348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } && {
23350 test -z "$ac_c_werror_flag" ||
23351 test ! -s conftest.err
23352 } && test -s conftest.$ac_objext; then
23353 ac_header_compiler=yes
23354 else
23355 $as_echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23358 ac_header_compiler=no
23361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23363 $as_echo "$ac_header_compiler" >&6; }
23365 # Is the header present?
23366 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23367 $as_echo_n "checking $ac_header presence... " >&6; }
23368 cat >conftest.$ac_ext <<_ACEOF
23369 /* confdefs.h. */
23370 _ACEOF
23371 cat confdefs.h >>conftest.$ac_ext
23372 cat >>conftest.$ac_ext <<_ACEOF
23373 /* end confdefs.h. */
23374 #include <$ac_header>
23375 _ACEOF
23376 if { (ac_try="$ac_cpp conftest.$ac_ext"
23377 case "(($ac_try" in
23378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23379 *) ac_try_echo=$ac_try;;
23380 esac
23381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23382 $as_echo "$ac_try_echo") >&5
23383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23384 ac_status=$?
23385 grep -v '^ *+' conftest.er1 >conftest.err
23386 rm -f conftest.er1
23387 cat conftest.err >&5
23388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); } >/dev/null && {
23390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23391 test ! -s conftest.err
23392 }; then
23393 ac_header_preproc=yes
23394 else
23395 $as_echo "$as_me: failed program was:" >&5
23396 sed 's/^/| /' conftest.$ac_ext >&5
23398 ac_header_preproc=no
23401 rm -f conftest.err conftest.$ac_ext
23402 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23403 $as_echo "$ac_header_preproc" >&6; }
23405 # So? What about this header?
23406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23407 yes:no: )
23408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23409 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23411 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23412 ac_header_preproc=yes
23414 no:yes:* )
23415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23416 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23418 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23420 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23422 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23424 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23426 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23429 esac
23430 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23431 $as_echo_n "checking for $ac_header... " >&6; }
23432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23433 $as_echo_n "(cached) " >&6
23434 else
23435 eval "$as_ac_Header=\$ac_header_preproc"
23437 ac_res=`eval 'as_val=${'$as_ac_Header'}
23438 $as_echo "$as_val"'`
23439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23440 $as_echo "$ac_res" >&6; }
23443 if test `eval 'as_val=${'$as_ac_Header'}
23444 $as_echo "$as_val"'` = yes; then
23445 cat >>confdefs.h <<_ACEOF
23446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23447 _ACEOF
23451 done
23455 done
23459 done
23462 for ac_header in krb.h
23464 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23466 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23467 $as_echo_n "checking for $ac_header... " >&6; }
23468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23469 $as_echo_n "(cached) " >&6
23471 ac_res=`eval 'as_val=${'$as_ac_Header'}
23472 $as_echo "$as_val"'`
23473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23474 $as_echo "$ac_res" >&6; }
23475 else
23476 # Is the header compilable?
23477 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23478 $as_echo_n "checking $ac_header usability... " >&6; }
23479 cat >conftest.$ac_ext <<_ACEOF
23480 /* confdefs.h. */
23481 _ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h. */
23485 $ac_includes_default
23486 #include <$ac_header>
23487 _ACEOF
23488 rm -f conftest.$ac_objext
23489 if { (ac_try="$ac_compile"
23490 case "(($ac_try" in
23491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23492 *) ac_try_echo=$ac_try;;
23493 esac
23494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23495 $as_echo "$ac_try_echo") >&5
23496 (eval "$ac_compile") 2>conftest.er1
23497 ac_status=$?
23498 grep -v '^ *+' conftest.er1 >conftest.err
23499 rm -f conftest.er1
23500 cat conftest.err >&5
23501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } && {
23503 test -z "$ac_c_werror_flag" ||
23504 test ! -s conftest.err
23505 } && test -s conftest.$ac_objext; then
23506 ac_header_compiler=yes
23507 else
23508 $as_echo "$as_me: failed program was:" >&5
23509 sed 's/^/| /' conftest.$ac_ext >&5
23511 ac_header_compiler=no
23514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23515 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23516 $as_echo "$ac_header_compiler" >&6; }
23518 # Is the header present?
23519 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23520 $as_echo_n "checking $ac_header presence... " >&6; }
23521 cat >conftest.$ac_ext <<_ACEOF
23522 /* confdefs.h. */
23523 _ACEOF
23524 cat confdefs.h >>conftest.$ac_ext
23525 cat >>conftest.$ac_ext <<_ACEOF
23526 /* end confdefs.h. */
23527 #include <$ac_header>
23528 _ACEOF
23529 if { (ac_try="$ac_cpp conftest.$ac_ext"
23530 case "(($ac_try" in
23531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532 *) ac_try_echo=$ac_try;;
23533 esac
23534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23535 $as_echo "$ac_try_echo") >&5
23536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23537 ac_status=$?
23538 grep -v '^ *+' conftest.er1 >conftest.err
23539 rm -f conftest.er1
23540 cat conftest.err >&5
23541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); } >/dev/null && {
23543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23544 test ! -s conftest.err
23545 }; then
23546 ac_header_preproc=yes
23547 else
23548 $as_echo "$as_me: failed program was:" >&5
23549 sed 's/^/| /' conftest.$ac_ext >&5
23551 ac_header_preproc=no
23554 rm -f conftest.err conftest.$ac_ext
23555 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23556 $as_echo "$ac_header_preproc" >&6; }
23558 # So? What about this header?
23559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23560 yes:no: )
23561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23562 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23564 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23565 ac_header_preproc=yes
23567 no:yes:* )
23568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23569 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23571 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23573 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23575 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23577 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23579 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23582 esac
23583 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23584 $as_echo_n "checking for $ac_header... " >&6; }
23585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23586 $as_echo_n "(cached) " >&6
23587 else
23588 eval "$as_ac_Header=\$ac_header_preproc"
23590 ac_res=`eval 'as_val=${'$as_ac_Header'}
23591 $as_echo "$as_val"'`
23592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23593 $as_echo "$ac_res" >&6; }
23596 if test `eval 'as_val=${'$as_ac_Header'}
23597 $as_echo "$as_val"'` = yes; then
23598 cat >>confdefs.h <<_ACEOF
23599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23600 _ACEOF
23602 else
23604 for ac_header in kerberosIV/krb.h
23606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23608 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23609 $as_echo_n "checking for $ac_header... " >&6; }
23610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23611 $as_echo_n "(cached) " >&6
23613 ac_res=`eval 'as_val=${'$as_ac_Header'}
23614 $as_echo "$as_val"'`
23615 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23616 $as_echo "$ac_res" >&6; }
23617 else
23618 # Is the header compilable?
23619 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23620 $as_echo_n "checking $ac_header usability... " >&6; }
23621 cat >conftest.$ac_ext <<_ACEOF
23622 /* confdefs.h. */
23623 _ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23627 $ac_includes_default
23628 #include <$ac_header>
23629 _ACEOF
23630 rm -f conftest.$ac_objext
23631 if { (ac_try="$ac_compile"
23632 case "(($ac_try" in
23633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23634 *) ac_try_echo=$ac_try;;
23635 esac
23636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23637 $as_echo "$ac_try_echo") >&5
23638 (eval "$ac_compile") 2>conftest.er1
23639 ac_status=$?
23640 grep -v '^ *+' conftest.er1 >conftest.err
23641 rm -f conftest.er1
23642 cat conftest.err >&5
23643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); } && {
23645 test -z "$ac_c_werror_flag" ||
23646 test ! -s conftest.err
23647 } && test -s conftest.$ac_objext; then
23648 ac_header_compiler=yes
23649 else
23650 $as_echo "$as_me: failed program was:" >&5
23651 sed 's/^/| /' conftest.$ac_ext >&5
23653 ac_header_compiler=no
23656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23657 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23658 $as_echo "$ac_header_compiler" >&6; }
23660 # Is the header present?
23661 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23662 $as_echo_n "checking $ac_header presence... " >&6; }
23663 cat >conftest.$ac_ext <<_ACEOF
23664 /* confdefs.h. */
23665 _ACEOF
23666 cat confdefs.h >>conftest.$ac_ext
23667 cat >>conftest.$ac_ext <<_ACEOF
23668 /* end confdefs.h. */
23669 #include <$ac_header>
23670 _ACEOF
23671 if { (ac_try="$ac_cpp conftest.$ac_ext"
23672 case "(($ac_try" in
23673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23674 *) ac_try_echo=$ac_try;;
23675 esac
23676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23677 $as_echo "$ac_try_echo") >&5
23678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23679 ac_status=$?
23680 grep -v '^ *+' conftest.er1 >conftest.err
23681 rm -f conftest.er1
23682 cat conftest.err >&5
23683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); } >/dev/null && {
23685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23686 test ! -s conftest.err
23687 }; then
23688 ac_header_preproc=yes
23689 else
23690 $as_echo "$as_me: failed program was:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23693 ac_header_preproc=no
23696 rm -f conftest.err conftest.$ac_ext
23697 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23698 $as_echo "$ac_header_preproc" >&6; }
23700 # So? What about this header?
23701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23702 yes:no: )
23703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23704 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23706 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23707 ac_header_preproc=yes
23709 no:yes:* )
23710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23711 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23713 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23715 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23717 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23719 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23721 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23724 esac
23725 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23726 $as_echo_n "checking for $ac_header... " >&6; }
23727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23728 $as_echo_n "(cached) " >&6
23729 else
23730 eval "$as_ac_Header=\$ac_header_preproc"
23732 ac_res=`eval 'as_val=${'$as_ac_Header'}
23733 $as_echo "$as_val"'`
23734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23735 $as_echo "$ac_res" >&6; }
23738 if test `eval 'as_val=${'$as_ac_Header'}
23739 $as_echo "$as_val"'` = yes; then
23740 cat >>confdefs.h <<_ACEOF
23741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23742 _ACEOF
23744 else
23746 for ac_header in kerberos/krb.h
23748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23751 $as_echo_n "checking for $ac_header... " >&6; }
23752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23753 $as_echo_n "(cached) " >&6
23755 ac_res=`eval 'as_val=${'$as_ac_Header'}
23756 $as_echo "$as_val"'`
23757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23758 $as_echo "$ac_res" >&6; }
23759 else
23760 # Is the header compilable?
23761 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23762 $as_echo_n "checking $ac_header usability... " >&6; }
23763 cat >conftest.$ac_ext <<_ACEOF
23764 /* confdefs.h. */
23765 _ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23769 $ac_includes_default
23770 #include <$ac_header>
23771 _ACEOF
23772 rm -f conftest.$ac_objext
23773 if { (ac_try="$ac_compile"
23774 case "(($ac_try" in
23775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23776 *) ac_try_echo=$ac_try;;
23777 esac
23778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23779 $as_echo "$ac_try_echo") >&5
23780 (eval "$ac_compile") 2>conftest.er1
23781 ac_status=$?
23782 grep -v '^ *+' conftest.er1 >conftest.err
23783 rm -f conftest.er1
23784 cat conftest.err >&5
23785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } && {
23787 test -z "$ac_c_werror_flag" ||
23788 test ! -s conftest.err
23789 } && test -s conftest.$ac_objext; then
23790 ac_header_compiler=yes
23791 else
23792 $as_echo "$as_me: failed program was:" >&5
23793 sed 's/^/| /' conftest.$ac_ext >&5
23795 ac_header_compiler=no
23798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23799 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23800 $as_echo "$ac_header_compiler" >&6; }
23802 # Is the header present?
23803 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23804 $as_echo_n "checking $ac_header presence... " >&6; }
23805 cat >conftest.$ac_ext <<_ACEOF
23806 /* confdefs.h. */
23807 _ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h. */
23811 #include <$ac_header>
23812 _ACEOF
23813 if { (ac_try="$ac_cpp conftest.$ac_ext"
23814 case "(($ac_try" in
23815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23816 *) ac_try_echo=$ac_try;;
23817 esac
23818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23819 $as_echo "$ac_try_echo") >&5
23820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23821 ac_status=$?
23822 grep -v '^ *+' conftest.er1 >conftest.err
23823 rm -f conftest.er1
23824 cat conftest.err >&5
23825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); } >/dev/null && {
23827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23828 test ! -s conftest.err
23829 }; then
23830 ac_header_preproc=yes
23831 else
23832 $as_echo "$as_me: failed program was:" >&5
23833 sed 's/^/| /' conftest.$ac_ext >&5
23835 ac_header_preproc=no
23838 rm -f conftest.err conftest.$ac_ext
23839 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23840 $as_echo "$ac_header_preproc" >&6; }
23842 # So? What about this header?
23843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23844 yes:no: )
23845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23846 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23848 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23849 ac_header_preproc=yes
23851 no:yes:* )
23852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23853 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23855 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23857 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23859 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23861 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23863 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23866 esac
23867 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23868 $as_echo_n "checking for $ac_header... " >&6; }
23869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23870 $as_echo_n "(cached) " >&6
23871 else
23872 eval "$as_ac_Header=\$ac_header_preproc"
23874 ac_res=`eval 'as_val=${'$as_ac_Header'}
23875 $as_echo "$as_val"'`
23876 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23877 $as_echo "$ac_res" >&6; }
23880 if test `eval 'as_val=${'$as_ac_Header'}
23881 $as_echo "$as_val"'` = yes; then
23882 cat >>confdefs.h <<_ACEOF
23883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23884 _ACEOF
23888 done
23892 done
23896 done
23900 for ac_header in com_err.h
23902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23905 $as_echo_n "checking for $ac_header... " >&6; }
23906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23907 $as_echo_n "(cached) " >&6
23909 ac_res=`eval 'as_val=${'$as_ac_Header'}
23910 $as_echo "$as_val"'`
23911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23912 $as_echo "$ac_res" >&6; }
23913 else
23914 # Is the header compilable?
23915 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23916 $as_echo_n "checking $ac_header usability... " >&6; }
23917 cat >conftest.$ac_ext <<_ACEOF
23918 /* confdefs.h. */
23919 _ACEOF
23920 cat confdefs.h >>conftest.$ac_ext
23921 cat >>conftest.$ac_ext <<_ACEOF
23922 /* end confdefs.h. */
23923 $ac_includes_default
23924 #include <$ac_header>
23925 _ACEOF
23926 rm -f conftest.$ac_objext
23927 if { (ac_try="$ac_compile"
23928 case "(($ac_try" in
23929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23930 *) ac_try_echo=$ac_try;;
23931 esac
23932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23933 $as_echo "$ac_try_echo") >&5
23934 (eval "$ac_compile") 2>conftest.er1
23935 ac_status=$?
23936 grep -v '^ *+' conftest.er1 >conftest.err
23937 rm -f conftest.er1
23938 cat conftest.err >&5
23939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); } && {
23941 test -z "$ac_c_werror_flag" ||
23942 test ! -s conftest.err
23943 } && test -s conftest.$ac_objext; then
23944 ac_header_compiler=yes
23945 else
23946 $as_echo "$as_me: failed program was:" >&5
23947 sed 's/^/| /' conftest.$ac_ext >&5
23949 ac_header_compiler=no
23952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23953 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23954 $as_echo "$ac_header_compiler" >&6; }
23956 # Is the header present?
23957 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23958 $as_echo_n "checking $ac_header presence... " >&6; }
23959 cat >conftest.$ac_ext <<_ACEOF
23960 /* confdefs.h. */
23961 _ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h. */
23965 #include <$ac_header>
23966 _ACEOF
23967 if { (ac_try="$ac_cpp conftest.$ac_ext"
23968 case "(($ac_try" in
23969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23970 *) ac_try_echo=$ac_try;;
23971 esac
23972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23973 $as_echo "$ac_try_echo") >&5
23974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23975 ac_status=$?
23976 grep -v '^ *+' conftest.er1 >conftest.err
23977 rm -f conftest.er1
23978 cat conftest.err >&5
23979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); } >/dev/null && {
23981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23982 test ! -s conftest.err
23983 }; then
23984 ac_header_preproc=yes
23985 else
23986 $as_echo "$as_me: failed program was:" >&5
23987 sed 's/^/| /' conftest.$ac_ext >&5
23989 ac_header_preproc=no
23992 rm -f conftest.err conftest.$ac_ext
23993 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23994 $as_echo "$ac_header_preproc" >&6; }
23996 # So? What about this header?
23997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23998 yes:no: )
23999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24000 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24003 ac_header_preproc=yes
24005 no:yes:* )
24006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24007 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24009 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24011 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24013 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24015 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24017 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24020 esac
24021 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24022 $as_echo_n "checking for $ac_header... " >&6; }
24023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24024 $as_echo_n "(cached) " >&6
24025 else
24026 eval "$as_ac_Header=\$ac_header_preproc"
24028 ac_res=`eval 'as_val=${'$as_ac_Header'}
24029 $as_echo "$as_val"'`
24030 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24031 $as_echo "$ac_res" >&6; }
24034 if test `eval 'as_val=${'$as_ac_Header'}
24035 $as_echo "$as_val"'` = yes; then
24036 cat >>confdefs.h <<_ACEOF
24037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24038 _ACEOF
24042 done
24052 # Solaris requires -lintl if you want strerror (which calls dgettext)
24053 # to return localized messages.
24055 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24056 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24057 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24058 $as_echo_n "(cached) " >&6
24059 else
24060 ac_check_lib_save_LIBS=$LIBS
24061 LIBS="-lintl $LIBS"
24062 cat >conftest.$ac_ext <<_ACEOF
24063 /* confdefs.h. */
24064 _ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h. */
24069 /* Override any GCC internal prototype to avoid an error.
24070 Use char because int might match the return type of a GCC
24071 builtin and then its argument prototype would still apply. */
24072 #ifdef __cplusplus
24073 extern "C"
24074 #endif
24075 char dgettext ();
24077 main ()
24079 return dgettext ();
24081 return 0;
24083 _ACEOF
24084 rm -f conftest.$ac_objext conftest$ac_exeext
24085 if { (ac_try="$ac_link"
24086 case "(($ac_try" in
24087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24088 *) ac_try_echo=$ac_try;;
24089 esac
24090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24091 $as_echo "$ac_try_echo") >&5
24092 (eval "$ac_link") 2>conftest.er1
24093 ac_status=$?
24094 grep -v '^ *+' conftest.er1 >conftest.err
24095 rm -f conftest.er1
24096 cat conftest.err >&5
24097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); } && {
24099 test -z "$ac_c_werror_flag" ||
24100 test ! -s conftest.err
24101 } && test -s conftest$ac_exeext && {
24102 test "$cross_compiling" = yes ||
24103 $as_test_x conftest$ac_exeext
24104 }; then
24105 ac_cv_lib_intl_dgettext=yes
24106 else
24107 $as_echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.$ac_ext >&5
24110 ac_cv_lib_intl_dgettext=no
24113 rm -rf conftest.dSYM
24114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24115 conftest$ac_exeext conftest.$ac_ext
24116 LIBS=$ac_check_lib_save_LIBS
24118 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24119 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24120 if test $ac_cv_lib_intl_dgettext = yes; then
24121 cat >>confdefs.h <<_ACEOF
24122 #define HAVE_LIBINTL 1
24123 _ACEOF
24125 LIBS="-lintl $LIBS"
24130 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24131 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24132 if test "${emacs_cv_localtime_cache+set}" = set; then
24133 $as_echo_n "(cached) " >&6
24134 else
24135 if test x$ac_cv_func_tzset = xyes; then
24136 if test "$cross_compiling" = yes; then
24137 # If we have tzset, assume the worst when cross-compiling.
24138 emacs_cv_localtime_cache=yes
24139 else
24140 cat >conftest.$ac_ext <<_ACEOF
24141 /* confdefs.h. */
24142 _ACEOF
24143 cat confdefs.h >>conftest.$ac_ext
24144 cat >>conftest.$ac_ext <<_ACEOF
24145 /* end confdefs.h. */
24146 #include <time.h>
24147 extern char **environ;
24148 unset_TZ ()
24150 char **from, **to;
24151 for (to = from = environ; (*to = *from); from++)
24152 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24153 to++;
24155 char TZ_GMT0[] = "TZ=GMT0";
24156 char TZ_PST8[] = "TZ=PST8";
24157 main()
24159 time_t now = time ((time_t *) 0);
24160 int hour_GMT0, hour_unset;
24161 if (putenv (TZ_GMT0) != 0)
24162 exit (1);
24163 hour_GMT0 = localtime (&now)->tm_hour;
24164 unset_TZ ();
24165 hour_unset = localtime (&now)->tm_hour;
24166 if (putenv (TZ_PST8) != 0)
24167 exit (1);
24168 if (localtime (&now)->tm_hour == hour_GMT0)
24169 exit (1);
24170 unset_TZ ();
24171 if (localtime (&now)->tm_hour != hour_unset)
24172 exit (1);
24173 exit (0);
24175 _ACEOF
24176 rm -f conftest$ac_exeext
24177 if { (ac_try="$ac_link"
24178 case "(($ac_try" in
24179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180 *) ac_try_echo=$ac_try;;
24181 esac
24182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24183 $as_echo "$ac_try_echo") >&5
24184 (eval "$ac_link") 2>&5
24185 ac_status=$?
24186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24188 { (case "(($ac_try" in
24189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24190 *) ac_try_echo=$ac_try;;
24191 esac
24192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24193 $as_echo "$ac_try_echo") >&5
24194 (eval "$ac_try") 2>&5
24195 ac_status=$?
24196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; }; then
24198 emacs_cv_localtime_cache=no
24199 else
24200 $as_echo "$as_me: program exited with status $ac_status" >&5
24201 $as_echo "$as_me: failed program was:" >&5
24202 sed 's/^/| /' conftest.$ac_ext >&5
24204 ( exit $ac_status )
24205 emacs_cv_localtime_cache=yes
24207 rm -rf conftest.dSYM
24208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24212 else
24213 # If we lack tzset, report that localtime does not cache TZ,
24214 # since we can't invalidate the cache if we don't have tzset.
24215 emacs_cv_localtime_cache=no
24218 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24219 $as_echo "$emacs_cv_localtime_cache" >&6; }
24220 if test $emacs_cv_localtime_cache = yes; then
24222 cat >>confdefs.h <<\_ACEOF
24223 #define LOCALTIME_CACHE 1
24224 _ACEOF
24228 if test "x$HAVE_TIMEVAL" = xyes; then
24230 for ac_func in gettimeofday
24232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24233 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24234 $as_echo_n "checking for $ac_func... " >&6; }
24235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24236 $as_echo_n "(cached) " >&6
24237 else
24238 cat >conftest.$ac_ext <<_ACEOF
24239 /* confdefs.h. */
24240 _ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h. */
24244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24246 #define $ac_func innocuous_$ac_func
24248 /* System header to define __stub macros and hopefully few prototypes,
24249 which can conflict with char $ac_func (); below.
24250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24251 <limits.h> exists even on freestanding compilers. */
24253 #ifdef __STDC__
24254 # include <limits.h>
24255 #else
24256 # include <assert.h>
24257 #endif
24259 #undef $ac_func
24261 /* Override any GCC internal prototype to avoid an error.
24262 Use char because int might match the return type of a GCC
24263 builtin and then its argument prototype would still apply. */
24264 #ifdef __cplusplus
24265 extern "C"
24266 #endif
24267 char $ac_func ();
24268 /* The GNU C library defines this for functions which it implements
24269 to always fail with ENOSYS. Some functions are actually named
24270 something starting with __ and the normal name is an alias. */
24271 #if defined __stub_$ac_func || defined __stub___$ac_func
24272 choke me
24273 #endif
24276 main ()
24278 return $ac_func ();
24280 return 0;
24282 _ACEOF
24283 rm -f conftest.$ac_objext conftest$ac_exeext
24284 if { (ac_try="$ac_link"
24285 case "(($ac_try" in
24286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24287 *) ac_try_echo=$ac_try;;
24288 esac
24289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24290 $as_echo "$ac_try_echo") >&5
24291 (eval "$ac_link") 2>conftest.er1
24292 ac_status=$?
24293 grep -v '^ *+' conftest.er1 >conftest.err
24294 rm -f conftest.er1
24295 cat conftest.err >&5
24296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); } && {
24298 test -z "$ac_c_werror_flag" ||
24299 test ! -s conftest.err
24300 } && test -s conftest$ac_exeext && {
24301 test "$cross_compiling" = yes ||
24302 $as_test_x conftest$ac_exeext
24303 }; then
24304 eval "$as_ac_var=yes"
24305 else
24306 $as_echo "$as_me: failed program was:" >&5
24307 sed 's/^/| /' conftest.$ac_ext >&5
24309 eval "$as_ac_var=no"
24312 rm -rf conftest.dSYM
24313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24314 conftest$ac_exeext conftest.$ac_ext
24316 ac_res=`eval 'as_val=${'$as_ac_var'}
24317 $as_echo "$as_val"'`
24318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24319 $as_echo "$ac_res" >&6; }
24320 if test `eval 'as_val=${'$as_ac_var'}
24321 $as_echo "$as_val"'` = yes; then
24322 cat >>confdefs.h <<_ACEOF
24323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24324 _ACEOF
24327 done
24329 if test $ac_cv_func_gettimeofday = yes; then
24330 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24331 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24332 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24333 $as_echo_n "(cached) " >&6
24334 else
24335 cat >conftest.$ac_ext <<_ACEOF
24336 /* confdefs.h. */
24337 _ACEOF
24338 cat confdefs.h >>conftest.$ac_ext
24339 cat >>conftest.$ac_ext <<_ACEOF
24340 /* end confdefs.h. */
24342 #ifdef TIME_WITH_SYS_TIME
24343 #include <sys/time.h>
24344 #include <time.h>
24345 #else
24346 #ifdef HAVE_SYS_TIME_H
24347 #include <sys/time.h>
24348 #else
24349 #include <time.h>
24350 #endif
24351 #endif
24353 main ()
24355 struct timeval time;
24356 gettimeofday (&time, 0);
24358 return 0;
24360 _ACEOF
24361 rm -f conftest.$ac_objext
24362 if { (ac_try="$ac_compile"
24363 case "(($ac_try" in
24364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24365 *) ac_try_echo=$ac_try;;
24366 esac
24367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24368 $as_echo "$ac_try_echo") >&5
24369 (eval "$ac_compile") 2>conftest.er1
24370 ac_status=$?
24371 grep -v '^ *+' conftest.er1 >conftest.err
24372 rm -f conftest.er1
24373 cat conftest.err >&5
24374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); } && {
24376 test -z "$ac_c_werror_flag" ||
24377 test ! -s conftest.err
24378 } && test -s conftest.$ac_objext; then
24379 emacs_cv_gettimeofday_two_arguments=yes
24380 else
24381 $as_echo "$as_me: failed program was:" >&5
24382 sed 's/^/| /' conftest.$ac_ext >&5
24384 emacs_cv_gettimeofday_two_arguments=no
24387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24389 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24390 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24391 if test $emacs_cv_gettimeofday_two_arguments = no; then
24393 cat >>confdefs.h <<\_ACEOF
24394 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24395 _ACEOF
24401 ok_so_far=yes
24402 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24403 $as_echo_n "checking for socket... " >&6; }
24404 if test "${ac_cv_func_socket+set}" = set; then
24405 $as_echo_n "(cached) " >&6
24406 else
24407 cat >conftest.$ac_ext <<_ACEOF
24408 /* confdefs.h. */
24409 _ACEOF
24410 cat confdefs.h >>conftest.$ac_ext
24411 cat >>conftest.$ac_ext <<_ACEOF
24412 /* end confdefs.h. */
24413 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24415 #define socket innocuous_socket
24417 /* System header to define __stub macros and hopefully few prototypes,
24418 which can conflict with char socket (); below.
24419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24420 <limits.h> exists even on freestanding compilers. */
24422 #ifdef __STDC__
24423 # include <limits.h>
24424 #else
24425 # include <assert.h>
24426 #endif
24428 #undef socket
24430 /* Override any GCC internal prototype to avoid an error.
24431 Use char because int might match the return type of a GCC
24432 builtin and then its argument prototype would still apply. */
24433 #ifdef __cplusplus
24434 extern "C"
24435 #endif
24436 char socket ();
24437 /* The GNU C library defines this for functions which it implements
24438 to always fail with ENOSYS. Some functions are actually named
24439 something starting with __ and the normal name is an alias. */
24440 #if defined __stub_socket || defined __stub___socket
24441 choke me
24442 #endif
24445 main ()
24447 return socket ();
24449 return 0;
24451 _ACEOF
24452 rm -f conftest.$ac_objext conftest$ac_exeext
24453 if { (ac_try="$ac_link"
24454 case "(($ac_try" in
24455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24456 *) ac_try_echo=$ac_try;;
24457 esac
24458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24459 $as_echo "$ac_try_echo") >&5
24460 (eval "$ac_link") 2>conftest.er1
24461 ac_status=$?
24462 grep -v '^ *+' conftest.er1 >conftest.err
24463 rm -f conftest.er1
24464 cat conftest.err >&5
24465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); } && {
24467 test -z "$ac_c_werror_flag" ||
24468 test ! -s conftest.err
24469 } && test -s conftest$ac_exeext && {
24470 test "$cross_compiling" = yes ||
24471 $as_test_x conftest$ac_exeext
24472 }; then
24473 ac_cv_func_socket=yes
24474 else
24475 $as_echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.$ac_ext >&5
24478 ac_cv_func_socket=no
24481 rm -rf conftest.dSYM
24482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24483 conftest$ac_exeext conftest.$ac_ext
24485 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24486 $as_echo "$ac_cv_func_socket" >&6; }
24487 if test $ac_cv_func_socket = yes; then
24489 else
24490 ok_so_far=no
24493 if test $ok_so_far = yes; then
24494 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24495 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24496 $as_echo_n "checking for netinet/in.h... " >&6; }
24497 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24498 $as_echo_n "(cached) " >&6
24500 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24501 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24502 else
24503 # Is the header compilable?
24504 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24505 $as_echo_n "checking netinet/in.h usability... " >&6; }
24506 cat >conftest.$ac_ext <<_ACEOF
24507 /* confdefs.h. */
24508 _ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h. */
24512 $ac_includes_default
24513 #include <netinet/in.h>
24514 _ACEOF
24515 rm -f conftest.$ac_objext
24516 if { (ac_try="$ac_compile"
24517 case "(($ac_try" in
24518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24520 esac
24521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24522 $as_echo "$ac_try_echo") >&5
24523 (eval "$ac_compile") 2>conftest.er1
24524 ac_status=$?
24525 grep -v '^ *+' conftest.er1 >conftest.err
24526 rm -f conftest.er1
24527 cat conftest.err >&5
24528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); } && {
24530 test -z "$ac_c_werror_flag" ||
24531 test ! -s conftest.err
24532 } && test -s conftest.$ac_objext; then
24533 ac_header_compiler=yes
24534 else
24535 $as_echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24538 ac_header_compiler=no
24541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24542 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24543 $as_echo "$ac_header_compiler" >&6; }
24545 # Is the header present?
24546 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24547 $as_echo_n "checking netinet/in.h presence... " >&6; }
24548 cat >conftest.$ac_ext <<_ACEOF
24549 /* confdefs.h. */
24550 _ACEOF
24551 cat confdefs.h >>conftest.$ac_ext
24552 cat >>conftest.$ac_ext <<_ACEOF
24553 /* end confdefs.h. */
24554 #include <netinet/in.h>
24555 _ACEOF
24556 if { (ac_try="$ac_cpp conftest.$ac_ext"
24557 case "(($ac_try" in
24558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24559 *) ac_try_echo=$ac_try;;
24560 esac
24561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24562 $as_echo "$ac_try_echo") >&5
24563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24564 ac_status=$?
24565 grep -v '^ *+' conftest.er1 >conftest.err
24566 rm -f conftest.er1
24567 cat conftest.err >&5
24568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } >/dev/null && {
24570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24571 test ! -s conftest.err
24572 }; then
24573 ac_header_preproc=yes
24574 else
24575 $as_echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24578 ac_header_preproc=no
24581 rm -f conftest.err conftest.$ac_ext
24582 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24583 $as_echo "$ac_header_preproc" >&6; }
24585 # So? What about this header?
24586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24587 yes:no: )
24588 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24589 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24590 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24591 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24592 ac_header_preproc=yes
24594 no:yes:* )
24595 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24596 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24597 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24598 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24599 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24600 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24601 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24602 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24603 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24604 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24605 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24606 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24609 esac
24610 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24611 $as_echo_n "checking for netinet/in.h... " >&6; }
24612 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24613 $as_echo_n "(cached) " >&6
24614 else
24615 ac_cv_header_netinet_in_h=$ac_header_preproc
24617 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24618 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24621 if test $ac_cv_header_netinet_in_h = yes; then
24623 else
24624 ok_so_far=no
24629 if test $ok_so_far = yes; then
24630 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24631 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24632 $as_echo_n "checking for arpa/inet.h... " >&6; }
24633 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24634 $as_echo_n "(cached) " >&6
24636 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24637 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24638 else
24639 # Is the header compilable?
24640 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24641 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24642 cat >conftest.$ac_ext <<_ACEOF
24643 /* confdefs.h. */
24644 _ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h. */
24648 $ac_includes_default
24649 #include <arpa/inet.h>
24650 _ACEOF
24651 rm -f conftest.$ac_objext
24652 if { (ac_try="$ac_compile"
24653 case "(($ac_try" in
24654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24656 esac
24657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24658 $as_echo "$ac_try_echo") >&5
24659 (eval "$ac_compile") 2>conftest.er1
24660 ac_status=$?
24661 grep -v '^ *+' conftest.er1 >conftest.err
24662 rm -f conftest.er1
24663 cat conftest.err >&5
24664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } && {
24666 test -z "$ac_c_werror_flag" ||
24667 test ! -s conftest.err
24668 } && test -s conftest.$ac_objext; then
24669 ac_header_compiler=yes
24670 else
24671 $as_echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24674 ac_header_compiler=no
24677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24678 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24679 $as_echo "$ac_header_compiler" >&6; }
24681 # Is the header present?
24682 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24683 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24684 cat >conftest.$ac_ext <<_ACEOF
24685 /* confdefs.h. */
24686 _ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h. */
24690 #include <arpa/inet.h>
24691 _ACEOF
24692 if { (ac_try="$ac_cpp conftest.$ac_ext"
24693 case "(($ac_try" in
24694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695 *) ac_try_echo=$ac_try;;
24696 esac
24697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24698 $as_echo "$ac_try_echo") >&5
24699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24700 ac_status=$?
24701 grep -v '^ *+' conftest.er1 >conftest.err
24702 rm -f conftest.er1
24703 cat conftest.err >&5
24704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705 (exit $ac_status); } >/dev/null && {
24706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24707 test ! -s conftest.err
24708 }; then
24709 ac_header_preproc=yes
24710 else
24711 $as_echo "$as_me: failed program was:" >&5
24712 sed 's/^/| /' conftest.$ac_ext >&5
24714 ac_header_preproc=no
24717 rm -f conftest.err conftest.$ac_ext
24718 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24719 $as_echo "$ac_header_preproc" >&6; }
24721 # So? What about this header?
24722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24723 yes:no: )
24724 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24725 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24726 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24727 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24728 ac_header_preproc=yes
24730 no:yes:* )
24731 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24732 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24733 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24734 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24735 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24736 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24737 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24738 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24739 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24740 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24741 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24742 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24745 esac
24746 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24747 $as_echo_n "checking for arpa/inet.h... " >&6; }
24748 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24749 $as_echo_n "(cached) " >&6
24750 else
24751 ac_cv_header_arpa_inet_h=$ac_header_preproc
24753 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24754 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24757 if test $ac_cv_header_arpa_inet_h = yes; then
24759 else
24760 ok_so_far=no
24765 if test $ok_so_far = yes; then
24767 cat >>confdefs.h <<\_ACEOF
24768 #define HAVE_INET_SOCKETS 1
24769 _ACEOF
24774 for ac_header in sys/ioctl.h
24776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24778 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24779 $as_echo_n "checking for $ac_header... " >&6; }
24780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24781 $as_echo_n "(cached) " >&6
24783 ac_res=`eval 'as_val=${'$as_ac_Header'}
24784 $as_echo "$as_val"'`
24785 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24786 $as_echo "$ac_res" >&6; }
24787 else
24788 # Is the header compilable?
24789 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24790 $as_echo_n "checking $ac_header usability... " >&6; }
24791 cat >conftest.$ac_ext <<_ACEOF
24792 /* confdefs.h. */
24793 _ACEOF
24794 cat confdefs.h >>conftest.$ac_ext
24795 cat >>conftest.$ac_ext <<_ACEOF
24796 /* end confdefs.h. */
24797 $ac_includes_default
24798 #include <$ac_header>
24799 _ACEOF
24800 rm -f conftest.$ac_objext
24801 if { (ac_try="$ac_compile"
24802 case "(($ac_try" in
24803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24804 *) ac_try_echo=$ac_try;;
24805 esac
24806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24807 $as_echo "$ac_try_echo") >&5
24808 (eval "$ac_compile") 2>conftest.er1
24809 ac_status=$?
24810 grep -v '^ *+' conftest.er1 >conftest.err
24811 rm -f conftest.er1
24812 cat conftest.err >&5
24813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); } && {
24815 test -z "$ac_c_werror_flag" ||
24816 test ! -s conftest.err
24817 } && test -s conftest.$ac_objext; then
24818 ac_header_compiler=yes
24819 else
24820 $as_echo "$as_me: failed program was:" >&5
24821 sed 's/^/| /' conftest.$ac_ext >&5
24823 ac_header_compiler=no
24826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24827 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24828 $as_echo "$ac_header_compiler" >&6; }
24830 # Is the header present?
24831 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24832 $as_echo_n "checking $ac_header presence... " >&6; }
24833 cat >conftest.$ac_ext <<_ACEOF
24834 /* confdefs.h. */
24835 _ACEOF
24836 cat confdefs.h >>conftest.$ac_ext
24837 cat >>conftest.$ac_ext <<_ACEOF
24838 /* end confdefs.h. */
24839 #include <$ac_header>
24840 _ACEOF
24841 if { (ac_try="$ac_cpp conftest.$ac_ext"
24842 case "(($ac_try" in
24843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24844 *) ac_try_echo=$ac_try;;
24845 esac
24846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24847 $as_echo "$ac_try_echo") >&5
24848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24849 ac_status=$?
24850 grep -v '^ *+' conftest.er1 >conftest.err
24851 rm -f conftest.er1
24852 cat conftest.err >&5
24853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } >/dev/null && {
24855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24856 test ! -s conftest.err
24857 }; then
24858 ac_header_preproc=yes
24859 else
24860 $as_echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24863 ac_header_preproc=no
24866 rm -f conftest.err conftest.$ac_ext
24867 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24868 $as_echo "$ac_header_preproc" >&6; }
24870 # So? What about this header?
24871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24872 yes:no: )
24873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24874 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24876 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24877 ac_header_preproc=yes
24879 no:yes:* )
24880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24881 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24883 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24885 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24887 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24889 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24891 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24894 esac
24895 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24896 $as_echo_n "checking for $ac_header... " >&6; }
24897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24898 $as_echo_n "(cached) " >&6
24899 else
24900 eval "$as_ac_Header=\$ac_header_preproc"
24902 ac_res=`eval 'as_val=${'$as_ac_Header'}
24903 $as_echo "$as_val"'`
24904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24905 $as_echo "$ac_res" >&6; }
24908 if test `eval 'as_val=${'$as_ac_Header'}
24909 $as_echo "$as_val"'` = yes; then
24910 cat >>confdefs.h <<_ACEOF
24911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24912 _ACEOF
24916 done
24919 if test -f /usr/lpp/X11/bin/smt.exp; then
24921 cat >>confdefs.h <<\_ACEOF
24922 #define HAVE_AIX_SMT_EXP 1
24923 _ACEOF
24927 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24928 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24929 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24930 { $as_echo "$as_me:$LINENO: result: yes" >&5
24931 $as_echo "yes" >&6; }
24933 cat >>confdefs.h <<\_ACEOF
24934 #define HAVE_DEV_PTMX 1
24935 _ACEOF
24937 else
24938 { $as_echo "$as_me:$LINENO: result: no" >&5
24939 $as_echo "no" >&6; }
24942 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24943 $as_echo_n "checking for pid_t... " >&6; }
24944 if test "${ac_cv_type_pid_t+set}" = set; then
24945 $as_echo_n "(cached) " >&6
24946 else
24947 ac_cv_type_pid_t=no
24948 cat >conftest.$ac_ext <<_ACEOF
24949 /* confdefs.h. */
24950 _ACEOF
24951 cat confdefs.h >>conftest.$ac_ext
24952 cat >>conftest.$ac_ext <<_ACEOF
24953 /* end confdefs.h. */
24954 $ac_includes_default
24956 main ()
24958 if (sizeof (pid_t))
24959 return 0;
24961 return 0;
24963 _ACEOF
24964 rm -f conftest.$ac_objext
24965 if { (ac_try="$ac_compile"
24966 case "(($ac_try" in
24967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968 *) ac_try_echo=$ac_try;;
24969 esac
24970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24971 $as_echo "$ac_try_echo") >&5
24972 (eval "$ac_compile") 2>conftest.er1
24973 ac_status=$?
24974 grep -v '^ *+' conftest.er1 >conftest.err
24975 rm -f conftest.er1
24976 cat conftest.err >&5
24977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); } && {
24979 test -z "$ac_c_werror_flag" ||
24980 test ! -s conftest.err
24981 } && test -s conftest.$ac_objext; then
24982 cat >conftest.$ac_ext <<_ACEOF
24983 /* confdefs.h. */
24984 _ACEOF
24985 cat confdefs.h >>conftest.$ac_ext
24986 cat >>conftest.$ac_ext <<_ACEOF
24987 /* end confdefs.h. */
24988 $ac_includes_default
24990 main ()
24992 if (sizeof ((pid_t)))
24993 return 0;
24995 return 0;
24997 _ACEOF
24998 rm -f conftest.$ac_objext
24999 if { (ac_try="$ac_compile"
25000 case "(($ac_try" in
25001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25002 *) ac_try_echo=$ac_try;;
25003 esac
25004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25005 $as_echo "$ac_try_echo") >&5
25006 (eval "$ac_compile") 2>conftest.er1
25007 ac_status=$?
25008 grep -v '^ *+' conftest.er1 >conftest.err
25009 rm -f conftest.er1
25010 cat conftest.err >&5
25011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); } && {
25013 test -z "$ac_c_werror_flag" ||
25014 test ! -s conftest.err
25015 } && test -s conftest.$ac_objext; then
25017 else
25018 $as_echo "$as_me: failed program was:" >&5
25019 sed 's/^/| /' conftest.$ac_ext >&5
25021 ac_cv_type_pid_t=yes
25024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25025 else
25026 $as_echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25034 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25035 $as_echo "$ac_cv_type_pid_t" >&6; }
25036 if test $ac_cv_type_pid_t = yes; then
25038 else
25040 cat >>confdefs.h <<_ACEOF
25041 #define pid_t int
25042 _ACEOF
25047 for ac_header in vfork.h
25049 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25051 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25052 $as_echo_n "checking for $ac_header... " >&6; }
25053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25054 $as_echo_n "(cached) " >&6
25056 ac_res=`eval 'as_val=${'$as_ac_Header'}
25057 $as_echo "$as_val"'`
25058 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25059 $as_echo "$ac_res" >&6; }
25060 else
25061 # Is the header compilable?
25062 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25063 $as_echo_n "checking $ac_header usability... " >&6; }
25064 cat >conftest.$ac_ext <<_ACEOF
25065 /* confdefs.h. */
25066 _ACEOF
25067 cat confdefs.h >>conftest.$ac_ext
25068 cat >>conftest.$ac_ext <<_ACEOF
25069 /* end confdefs.h. */
25070 $ac_includes_default
25071 #include <$ac_header>
25072 _ACEOF
25073 rm -f conftest.$ac_objext
25074 if { (ac_try="$ac_compile"
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_compile") 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); } && {
25088 test -z "$ac_c_werror_flag" ||
25089 test ! -s conftest.err
25090 } && test -s conftest.$ac_objext; then
25091 ac_header_compiler=yes
25092 else
25093 $as_echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25096 ac_header_compiler=no
25099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25100 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25101 $as_echo "$ac_header_compiler" >&6; }
25103 # Is the header present?
25104 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25105 $as_echo_n "checking $ac_header presence... " >&6; }
25106 cat >conftest.$ac_ext <<_ACEOF
25107 /* confdefs.h. */
25108 _ACEOF
25109 cat confdefs.h >>conftest.$ac_ext
25110 cat >>conftest.$ac_ext <<_ACEOF
25111 /* end confdefs.h. */
25112 #include <$ac_header>
25113 _ACEOF
25114 if { (ac_try="$ac_cpp conftest.$ac_ext"
25115 case "(($ac_try" in
25116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25117 *) ac_try_echo=$ac_try;;
25118 esac
25119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25120 $as_echo "$ac_try_echo") >&5
25121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25122 ac_status=$?
25123 grep -v '^ *+' conftest.er1 >conftest.err
25124 rm -f conftest.er1
25125 cat conftest.err >&5
25126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); } >/dev/null && {
25128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25129 test ! -s conftest.err
25130 }; then
25131 ac_header_preproc=yes
25132 else
25133 $as_echo "$as_me: failed program was:" >&5
25134 sed 's/^/| /' conftest.$ac_ext >&5
25136 ac_header_preproc=no
25139 rm -f conftest.err conftest.$ac_ext
25140 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25141 $as_echo "$ac_header_preproc" >&6; }
25143 # So? What about this header?
25144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25145 yes:no: )
25146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25147 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25149 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25150 ac_header_preproc=yes
25152 no:yes:* )
25153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25154 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25156 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25158 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25160 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25162 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25164 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25167 esac
25168 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25169 $as_echo_n "checking for $ac_header... " >&6; }
25170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25171 $as_echo_n "(cached) " >&6
25172 else
25173 eval "$as_ac_Header=\$ac_header_preproc"
25175 ac_res=`eval 'as_val=${'$as_ac_Header'}
25176 $as_echo "$as_val"'`
25177 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25178 $as_echo "$ac_res" >&6; }
25181 if test `eval 'as_val=${'$as_ac_Header'}
25182 $as_echo "$as_val"'` = yes; then
25183 cat >>confdefs.h <<_ACEOF
25184 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25185 _ACEOF
25189 done
25193 for ac_func in fork vfork
25195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25196 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25197 $as_echo_n "checking for $ac_func... " >&6; }
25198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25199 $as_echo_n "(cached) " >&6
25200 else
25201 cat >conftest.$ac_ext <<_ACEOF
25202 /* confdefs.h. */
25203 _ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h. */
25207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25209 #define $ac_func innocuous_$ac_func
25211 /* System header to define __stub macros and hopefully few prototypes,
25212 which can conflict with char $ac_func (); below.
25213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25214 <limits.h> exists even on freestanding compilers. */
25216 #ifdef __STDC__
25217 # include <limits.h>
25218 #else
25219 # include <assert.h>
25220 #endif
25222 #undef $ac_func
25224 /* Override any GCC internal prototype to avoid an error.
25225 Use char because int might match the return type of a GCC
25226 builtin and then its argument prototype would still apply. */
25227 #ifdef __cplusplus
25228 extern "C"
25229 #endif
25230 char $ac_func ();
25231 /* The GNU C library defines this for functions which it implements
25232 to always fail with ENOSYS. Some functions are actually named
25233 something starting with __ and the normal name is an alias. */
25234 #if defined __stub_$ac_func || defined __stub___$ac_func
25235 choke me
25236 #endif
25239 main ()
25241 return $ac_func ();
25243 return 0;
25245 _ACEOF
25246 rm -f conftest.$ac_objext conftest$ac_exeext
25247 if { (ac_try="$ac_link"
25248 case "(($ac_try" in
25249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250 *) ac_try_echo=$ac_try;;
25251 esac
25252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25253 $as_echo "$ac_try_echo") >&5
25254 (eval "$ac_link") 2>conftest.er1
25255 ac_status=$?
25256 grep -v '^ *+' conftest.er1 >conftest.err
25257 rm -f conftest.er1
25258 cat conftest.err >&5
25259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); } && {
25261 test -z "$ac_c_werror_flag" ||
25262 test ! -s conftest.err
25263 } && test -s conftest$ac_exeext && {
25264 test "$cross_compiling" = yes ||
25265 $as_test_x conftest$ac_exeext
25266 }; then
25267 eval "$as_ac_var=yes"
25268 else
25269 $as_echo "$as_me: failed program was:" >&5
25270 sed 's/^/| /' conftest.$ac_ext >&5
25272 eval "$as_ac_var=no"
25275 rm -rf conftest.dSYM
25276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25277 conftest$ac_exeext conftest.$ac_ext
25279 ac_res=`eval 'as_val=${'$as_ac_var'}
25280 $as_echo "$as_val"'`
25281 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25282 $as_echo "$ac_res" >&6; }
25283 if test `eval 'as_val=${'$as_ac_var'}
25284 $as_echo "$as_val"'` = yes; then
25285 cat >>confdefs.h <<_ACEOF
25286 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25287 _ACEOF
25290 done
25292 if test "x$ac_cv_func_fork" = xyes; then
25293 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25294 $as_echo_n "checking for working fork... " >&6; }
25295 if test "${ac_cv_func_fork_works+set}" = set; then
25296 $as_echo_n "(cached) " >&6
25297 else
25298 if test "$cross_compiling" = yes; then
25299 ac_cv_func_fork_works=cross
25300 else
25301 cat >conftest.$ac_ext <<_ACEOF
25302 /* confdefs.h. */
25303 _ACEOF
25304 cat confdefs.h >>conftest.$ac_ext
25305 cat >>conftest.$ac_ext <<_ACEOF
25306 /* end confdefs.h. */
25307 $ac_includes_default
25309 main ()
25312 /* By Ruediger Kuhlmann. */
25313 return fork () < 0;
25316 return 0;
25318 _ACEOF
25319 rm -f conftest$ac_exeext
25320 if { (ac_try="$ac_link"
25321 case "(($ac_try" in
25322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323 *) ac_try_echo=$ac_try;;
25324 esac
25325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25326 $as_echo "$ac_try_echo") >&5
25327 (eval "$ac_link") 2>&5
25328 ac_status=$?
25329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25331 { (case "(($ac_try" in
25332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333 *) ac_try_echo=$ac_try;;
25334 esac
25335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25336 $as_echo "$ac_try_echo") >&5
25337 (eval "$ac_try") 2>&5
25338 ac_status=$?
25339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); }; }; then
25341 ac_cv_func_fork_works=yes
25342 else
25343 $as_echo "$as_me: program exited with status $ac_status" >&5
25344 $as_echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25347 ( exit $ac_status )
25348 ac_cv_func_fork_works=no
25350 rm -rf conftest.dSYM
25351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25356 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25357 $as_echo "$ac_cv_func_fork_works" >&6; }
25359 else
25360 ac_cv_func_fork_works=$ac_cv_func_fork
25362 if test "x$ac_cv_func_fork_works" = xcross; then
25363 case $host in
25364 *-*-amigaos* | *-*-msdosdjgpp*)
25365 # Override, as these systems have only a dummy fork() stub
25366 ac_cv_func_fork_works=no
25369 ac_cv_func_fork_works=yes
25371 esac
25372 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25373 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25375 ac_cv_func_vfork_works=$ac_cv_func_vfork
25376 if test "x$ac_cv_func_vfork" = xyes; then
25377 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25378 $as_echo_n "checking for working vfork... " >&6; }
25379 if test "${ac_cv_func_vfork_works+set}" = set; then
25380 $as_echo_n "(cached) " >&6
25381 else
25382 if test "$cross_compiling" = yes; then
25383 ac_cv_func_vfork_works=cross
25384 else
25385 cat >conftest.$ac_ext <<_ACEOF
25386 /* confdefs.h. */
25387 _ACEOF
25388 cat confdefs.h >>conftest.$ac_ext
25389 cat >>conftest.$ac_ext <<_ACEOF
25390 /* end confdefs.h. */
25391 /* Thanks to Paul Eggert for this test. */
25392 $ac_includes_default
25393 #include <sys/wait.h>
25394 #ifdef HAVE_VFORK_H
25395 # include <vfork.h>
25396 #endif
25397 /* On some sparc systems, changes by the child to local and incoming
25398 argument registers are propagated back to the parent. The compiler
25399 is told about this with #include <vfork.h>, but some compilers
25400 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25401 static variable whose address is put into a register that is
25402 clobbered by the vfork. */
25403 static void
25404 #ifdef __cplusplus
25405 sparc_address_test (int arg)
25406 # else
25407 sparc_address_test (arg) int arg;
25408 #endif
25410 static pid_t child;
25411 if (!child) {
25412 child = vfork ();
25413 if (child < 0) {
25414 perror ("vfork");
25415 _exit(2);
25417 if (!child) {
25418 arg = getpid();
25419 write(-1, "", 0);
25420 _exit (arg);
25426 main ()
25428 pid_t parent = getpid ();
25429 pid_t child;
25431 sparc_address_test (0);
25433 child = vfork ();
25435 if (child == 0) {
25436 /* Here is another test for sparc vfork register problems. This
25437 test uses lots of local variables, at least as many local
25438 variables as main has allocated so far including compiler
25439 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25440 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25441 reuse the register of parent for one of the local variables,
25442 since it will think that parent can't possibly be used any more
25443 in this routine. Assigning to the local variable will thus
25444 munge parent in the parent process. */
25445 pid_t
25446 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25447 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25448 /* Convince the compiler that p..p7 are live; otherwise, it might
25449 use the same hardware register for all 8 local variables. */
25450 if (p != p1 || p != p2 || p != p3 || p != p4
25451 || p != p5 || p != p6 || p != p7)
25452 _exit(1);
25454 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25455 from child file descriptors. If the child closes a descriptor
25456 before it execs or exits, this munges the parent's descriptor
25457 as well. Test for this by closing stdout in the child. */
25458 _exit(close(fileno(stdout)) != 0);
25459 } else {
25460 int status;
25461 struct stat st;
25463 while (wait(&status) != child)
25465 return (
25466 /* Was there some problem with vforking? */
25467 child < 0
25469 /* Did the child fail? (This shouldn't happen.) */
25470 || status
25472 /* Did the vfork/compiler bug occur? */
25473 || parent != getpid()
25475 /* Did the file descriptor bug occur? */
25476 || fstat(fileno(stdout), &st) != 0
25480 _ACEOF
25481 rm -f conftest$ac_exeext
25482 if { (ac_try="$ac_link"
25483 case "(($ac_try" in
25484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25485 *) ac_try_echo=$ac_try;;
25486 esac
25487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25488 $as_echo "$ac_try_echo") >&5
25489 (eval "$ac_link") 2>&5
25490 ac_status=$?
25491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25493 { (case "(($ac_try" in
25494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495 *) ac_try_echo=$ac_try;;
25496 esac
25497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25498 $as_echo "$ac_try_echo") >&5
25499 (eval "$ac_try") 2>&5
25500 ac_status=$?
25501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); }; }; then
25503 ac_cv_func_vfork_works=yes
25504 else
25505 $as_echo "$as_me: program exited with status $ac_status" >&5
25506 $as_echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25509 ( exit $ac_status )
25510 ac_cv_func_vfork_works=no
25512 rm -rf conftest.dSYM
25513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25518 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25519 $as_echo "$ac_cv_func_vfork_works" >&6; }
25522 if test "x$ac_cv_func_fork_works" = xcross; then
25523 ac_cv_func_vfork_works=$ac_cv_func_vfork
25524 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25525 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25528 if test "x$ac_cv_func_vfork_works" = xyes; then
25530 cat >>confdefs.h <<\_ACEOF
25531 #define HAVE_WORKING_VFORK 1
25532 _ACEOF
25534 else
25536 cat >>confdefs.h <<\_ACEOF
25537 #define vfork fork
25538 _ACEOF
25541 if test "x$ac_cv_func_fork_works" = xyes; then
25543 cat >>confdefs.h <<\_ACEOF
25544 #define HAVE_WORKING_FORK 1
25545 _ACEOF
25550 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25551 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25552 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25553 $as_echo_n "(cached) " >&6
25554 else
25555 cat >conftest.$ac_ext <<_ACEOF
25556 /* confdefs.h. */
25557 _ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h. */
25561 #include <langinfo.h>
25563 main ()
25565 char* cs = nl_langinfo(CODESET);
25567 return 0;
25569 _ACEOF
25570 rm -f conftest.$ac_objext conftest$ac_exeext
25571 if { (ac_try="$ac_link"
25572 case "(($ac_try" in
25573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25574 *) ac_try_echo=$ac_try;;
25575 esac
25576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25577 $as_echo "$ac_try_echo") >&5
25578 (eval "$ac_link") 2>conftest.er1
25579 ac_status=$?
25580 grep -v '^ *+' conftest.er1 >conftest.err
25581 rm -f conftest.er1
25582 cat conftest.err >&5
25583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); } && {
25585 test -z "$ac_c_werror_flag" ||
25586 test ! -s conftest.err
25587 } && test -s conftest$ac_exeext && {
25588 test "$cross_compiling" = yes ||
25589 $as_test_x conftest$ac_exeext
25590 }; then
25591 emacs_cv_langinfo_codeset=yes
25592 else
25593 $as_echo "$as_me: failed program was:" >&5
25594 sed 's/^/| /' conftest.$ac_ext >&5
25596 emacs_cv_langinfo_codeset=no
25599 rm -rf conftest.dSYM
25600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25601 conftest$ac_exeext conftest.$ac_ext
25604 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25605 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25606 if test $emacs_cv_langinfo_codeset = yes; then
25608 cat >>confdefs.h <<\_ACEOF
25609 #define HAVE_LANGINFO_CODESET 1
25610 _ACEOF
25614 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25615 $as_echo_n "checking for size_t... " >&6; }
25616 if test "${ac_cv_type_size_t+set}" = set; then
25617 $as_echo_n "(cached) " >&6
25618 else
25619 ac_cv_type_size_t=no
25620 cat >conftest.$ac_ext <<_ACEOF
25621 /* confdefs.h. */
25622 _ACEOF
25623 cat confdefs.h >>conftest.$ac_ext
25624 cat >>conftest.$ac_ext <<_ACEOF
25625 /* end confdefs.h. */
25626 $ac_includes_default
25628 main ()
25630 if (sizeof (size_t))
25631 return 0;
25633 return 0;
25635 _ACEOF
25636 rm -f conftest.$ac_objext
25637 if { (ac_try="$ac_compile"
25638 case "(($ac_try" in
25639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25640 *) ac_try_echo=$ac_try;;
25641 esac
25642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25643 $as_echo "$ac_try_echo") >&5
25644 (eval "$ac_compile") 2>conftest.er1
25645 ac_status=$?
25646 grep -v '^ *+' conftest.er1 >conftest.err
25647 rm -f conftest.er1
25648 cat conftest.err >&5
25649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } && {
25651 test -z "$ac_c_werror_flag" ||
25652 test ! -s conftest.err
25653 } && test -s conftest.$ac_objext; then
25654 cat >conftest.$ac_ext <<_ACEOF
25655 /* confdefs.h. */
25656 _ACEOF
25657 cat confdefs.h >>conftest.$ac_ext
25658 cat >>conftest.$ac_ext <<_ACEOF
25659 /* end confdefs.h. */
25660 $ac_includes_default
25662 main ()
25664 if (sizeof ((size_t)))
25665 return 0;
25667 return 0;
25669 _ACEOF
25670 rm -f conftest.$ac_objext
25671 if { (ac_try="$ac_compile"
25672 case "(($ac_try" in
25673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25674 *) ac_try_echo=$ac_try;;
25675 esac
25676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25677 $as_echo "$ac_try_echo") >&5
25678 (eval "$ac_compile") 2>conftest.er1
25679 ac_status=$?
25680 grep -v '^ *+' conftest.er1 >conftest.err
25681 rm -f conftest.er1
25682 cat conftest.err >&5
25683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); } && {
25685 test -z "$ac_c_werror_flag" ||
25686 test ! -s conftest.err
25687 } && test -s conftest.$ac_objext; then
25689 else
25690 $as_echo "$as_me: failed program was:" >&5
25691 sed 's/^/| /' conftest.$ac_ext >&5
25693 ac_cv_type_size_t=yes
25696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25697 else
25698 $as_echo "$as_me: failed program was:" >&5
25699 sed 's/^/| /' conftest.$ac_ext >&5
25704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25706 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25707 $as_echo "$ac_cv_type_size_t" >&6; }
25708 if test $ac_cv_type_size_t = yes; then
25710 cat >>confdefs.h <<_ACEOF
25711 #define HAVE_SIZE_T 1
25712 _ACEOF
25718 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25719 $as_echo_n "checking for mbstate_t... " >&6; }
25720 if test "${ac_cv_type_mbstate_t+set}" = set; then
25721 $as_echo_n "(cached) " >&6
25722 else
25723 cat >conftest.$ac_ext <<_ACEOF
25724 /* confdefs.h. */
25725 _ACEOF
25726 cat confdefs.h >>conftest.$ac_ext
25727 cat >>conftest.$ac_ext <<_ACEOF
25728 /* end confdefs.h. */
25729 $ac_includes_default
25730 # include <wchar.h>
25732 main ()
25734 mbstate_t x; return sizeof x;
25736 return 0;
25738 _ACEOF
25739 rm -f conftest.$ac_objext
25740 if { (ac_try="$ac_compile"
25741 case "(($ac_try" in
25742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743 *) ac_try_echo=$ac_try;;
25744 esac
25745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25746 $as_echo "$ac_try_echo") >&5
25747 (eval "$ac_compile") 2>conftest.er1
25748 ac_status=$?
25749 grep -v '^ *+' conftest.er1 >conftest.err
25750 rm -f conftest.er1
25751 cat conftest.err >&5
25752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } && {
25754 test -z "$ac_c_werror_flag" ||
25755 test ! -s conftest.err
25756 } && test -s conftest.$ac_objext; then
25757 ac_cv_type_mbstate_t=yes
25758 else
25759 $as_echo "$as_me: failed program was:" >&5
25760 sed 's/^/| /' conftest.$ac_ext >&5
25762 ac_cv_type_mbstate_t=no
25765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25767 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25768 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25769 if test $ac_cv_type_mbstate_t = yes; then
25771 cat >>confdefs.h <<\_ACEOF
25772 #define HAVE_MBSTATE_T 1
25773 _ACEOF
25775 else
25777 cat >>confdefs.h <<\_ACEOF
25778 #define mbstate_t int
25779 _ACEOF
25783 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25784 $as_echo_n "checking for C restrict keyword... " >&6; }
25785 if test "${emacs_cv_c_restrict+set}" = set; then
25786 $as_echo_n "(cached) " >&6
25787 else
25788 cat >conftest.$ac_ext <<_ACEOF
25789 /* confdefs.h. */
25790 _ACEOF
25791 cat confdefs.h >>conftest.$ac_ext
25792 cat >>conftest.$ac_ext <<_ACEOF
25793 /* end confdefs.h. */
25794 void fred (int *restrict x);
25796 main ()
25800 return 0;
25802 _ACEOF
25803 rm -f conftest.$ac_objext
25804 if { (ac_try="$ac_compile"
25805 case "(($ac_try" in
25806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25807 *) ac_try_echo=$ac_try;;
25808 esac
25809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25810 $as_echo "$ac_try_echo") >&5
25811 (eval "$ac_compile") 2>conftest.er1
25812 ac_status=$?
25813 grep -v '^ *+' conftest.er1 >conftest.err
25814 rm -f conftest.er1
25815 cat conftest.err >&5
25816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); } && {
25818 test -z "$ac_c_werror_flag" ||
25819 test ! -s conftest.err
25820 } && test -s conftest.$ac_objext; then
25821 emacs_cv_c_restrict=yes
25822 else
25823 $as_echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.$ac_ext >&5
25826 cat >conftest.$ac_ext <<_ACEOF
25827 /* confdefs.h. */
25828 _ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h. */
25832 void fred (int *__restrict x);
25834 main ()
25838 return 0;
25840 _ACEOF
25841 rm -f conftest.$ac_objext
25842 if { (ac_try="$ac_compile"
25843 case "(($ac_try" in
25844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845 *) ac_try_echo=$ac_try;;
25846 esac
25847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25848 $as_echo "$ac_try_echo") >&5
25849 (eval "$ac_compile") 2>conftest.er1
25850 ac_status=$?
25851 grep -v '^ *+' conftest.er1 >conftest.err
25852 rm -f conftest.er1
25853 cat conftest.err >&5
25854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); } && {
25856 test -z "$ac_c_werror_flag" ||
25857 test ! -s conftest.err
25858 } && test -s conftest.$ac_objext; then
25859 emacs_cv_c_restrict=__restrict
25860 else
25861 $as_echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25864 emacs_cv_c_restrict=no
25867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25872 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25873 $as_echo "$emacs_cv_c_restrict" >&6; }
25874 case "$emacs_cv_c_restrict" in
25875 yes) emacs_restrict=restrict;;
25876 no) emacs_restrict="";;
25877 *) emacs_restrict="$emacs_cv_c_restrict";;
25878 esac
25879 if test "$emacs_restrict" != __restrict; then
25881 cat >>confdefs.h <<_ACEOF
25882 #define __restrict $emacs_restrict
25883 _ACEOF
25887 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25888 $as_echo_n "checking for C restricted array declarations... " >&6; }
25889 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25890 $as_echo_n "(cached) " >&6
25891 else
25892 cat >conftest.$ac_ext <<_ACEOF
25893 /* confdefs.h. */
25894 _ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h. */
25898 void fred (int x[__restrict]);
25900 main ()
25904 return 0;
25906 _ACEOF
25907 rm -f conftest.$ac_objext
25908 if { (ac_try="$ac_compile"
25909 case "(($ac_try" in
25910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25911 *) ac_try_echo=$ac_try;;
25912 esac
25913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25914 $as_echo "$ac_try_echo") >&5
25915 (eval "$ac_compile") 2>conftest.er1
25916 ac_status=$?
25917 grep -v '^ *+' conftest.er1 >conftest.err
25918 rm -f conftest.er1
25919 cat conftest.err >&5
25920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); } && {
25922 test -z "$ac_c_werror_flag" ||
25923 test ! -s conftest.err
25924 } && test -s conftest.$ac_objext; then
25925 emacs_cv_c_restrict_arr=yes
25926 else
25927 $as_echo "$as_me: failed program was:" >&5
25928 sed 's/^/| /' conftest.$ac_ext >&5
25930 emacs_cv_c_restrict_arr=no
25933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25935 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25936 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25937 if test "$emacs_cv_c_restrict_arr" = yes; then
25939 cat >>confdefs.h <<\_ACEOF
25940 #define __restrict_arr __restrict
25941 _ACEOF
25947 # Set up the CFLAGS for real compilation, so we can substitute it.
25948 CFLAGS="$REAL_CFLAGS"
25949 CPPFLAGS="$REAL_CPPFLAGS"
25951 #### Find out which version of Emacs this is.
25952 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25953 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25954 if test x"${version}" = x; then
25955 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25956 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25957 { (exit 1); exit 1; }; }
25959 if test x"${version}" != x"$PACKAGE_VERSION"; then
25960 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25961 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25964 ### Specify what sort of things we'll be editing into Makefile and config.h.
25965 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25996 ## Used in lwlib/Makefile.in.
26013 cat >>confdefs.h <<_ACEOF
26014 #define EMACS_CONFIGURATION "${canonical}"
26015 _ACEOF
26018 cat >>confdefs.h <<_ACEOF
26019 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26020 _ACEOF
26023 cat >>confdefs.h <<_ACEOF
26024 #define config_machfile "${machfile}"
26025 _ACEOF
26028 cat >>confdefs.h <<_ACEOF
26029 #define config_opsysfile "${opsysfile}"
26030 _ACEOF
26033 cat >>confdefs.h <<_ACEOF
26034 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
26035 _ACEOF
26038 cat >>confdefs.h <<_ACEOF
26039 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
26040 _ACEOF
26043 cat >>confdefs.h <<_ACEOF
26044 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
26045 _ACEOF
26048 XMENU_OBJ=
26049 XOBJ=
26050 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26052 cat >>confdefs.h <<\_ACEOF
26053 #define HAVE_X_WINDOWS 1
26054 _ACEOF
26056 XMENU_OBJ=xmenu.o
26057 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26062 WIDGET_OBJ=
26063 MOTIF_LIBW=
26064 if test "${USE_X_TOOLKIT}" != "none" ; then
26065 WIDGET_OBJ=widget.o
26067 cat >>confdefs.h <<\_ACEOF
26068 #define USE_X_TOOLKIT 1
26069 _ACEOF
26071 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26073 cat >>confdefs.h <<\_ACEOF
26074 #define USE_LUCID 1
26075 _ACEOF
26077 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26079 cat >>confdefs.h <<\_ACEOF
26080 #define USE_MOTIF 1
26081 _ACEOF
26083 MOTIF_LIBW=-lXm
26084 case "$opsys" in
26085 gnu-linux)
26086 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26087 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26090 unixware)
26091 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26092 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26093 MOTIF_LIBW="MOTIF_LIBW -lXimp"
26096 aix4-2)
26097 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26098 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26100 esac
26101 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26106 case "$USE_X_TOOLKIT" in
26107 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26108 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26109 *) TOOLKIT_LIBW= ;;
26110 esac
26113 if test "${HAVE_X11}" = "yes" ; then
26115 cat >>confdefs.h <<\_ACEOF
26116 #define HAVE_X11 1
26117 _ACEOF
26120 if test "${HAVE_MENUS}" = "yes" ; then
26122 cat >>confdefs.h <<\_ACEOF
26123 #define HAVE_MENUS 1
26124 _ACEOF
26127 if test "${GNU_MALLOC}" = "yes" ; then
26129 cat >>confdefs.h <<\_ACEOF
26130 #define GNU_MALLOC 1
26131 _ACEOF
26134 if test "${REL_ALLOC}" = "yes" ; then
26136 cat >>confdefs.h <<\_ACEOF
26137 #define REL_ALLOC 1
26138 _ACEOF
26142 CYGWIN_OBJ=
26143 test "$opsys" = "cygwin" && CYGWIN_OBJ="sheap.o"
26150 #### Report on what we decided to do.
26151 #### Report GTK as a toolkit, even if it doesn't use Xt.
26152 #### It makes printing result more understandable as using GTK sets
26153 #### toolkit_scroll_bars to yes by default.
26154 if test "${HAVE_GTK}" = "yes"; then
26155 USE_X_TOOLKIT=GTK
26158 echo "
26159 Configured for \`${canonical}'.
26161 Where should the build process find the source code? ${srcdir}
26162 What operating system and machine description files should Emacs use?
26163 \`${opsysfile}' and \`${machfile}'
26164 What compiler should emacs be built with? ${CC} ${CFLAGS}
26165 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26166 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26167 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26168 What window system should Emacs use? ${window_system}
26169 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26171 if test -n "${x_includes}"; then
26172 echo " Where do we find X Windows header files? ${x_includes}"
26173 else
26174 echo " Where do we find X Windows header files? Standard dirs"
26176 if test -n "${x_libraries}"; then
26177 echo " Where do we find X Windows libraries? ${x_libraries}"
26178 else
26179 echo " Where do we find X Windows libraries? Standard dirs"
26182 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26183 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26184 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26185 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26186 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26187 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26188 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26189 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26190 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26191 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26192 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26194 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26195 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26196 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26197 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26199 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26200 echo
26202 if test $USE_XASSERTS = yes; then
26203 echo " Compiling with asserts turned on."
26204 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26207 echo
26209 if test "$HAVE_NS" = "yes"; then
26210 echo
26211 echo "You must run \"make install\" in order to test the built application.
26212 The installed application will go to nextstep/Emacs.app and can be
26213 run or moved from there."
26214 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26215 echo "The application will be fully self-contained."
26216 else
26217 echo "The lisp resources for the application will be installed under ${prefix}.
26218 You may need to run \"make install\" with sudo. The application will fail
26219 to run if these resources are not installed."
26221 echo
26224 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26225 echo "D-Bus integration has been tested for GNU/Linux only."
26226 echo
26230 # Remove any trailing slashes in these variables.
26231 test "${prefix}" != NONE &&
26232 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26233 test "${exec_prefix}" != NONE &&
26234 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26236 # Now get this: Some word that is part of the ${srcdir} directory name
26237 # or the ${configuration} value might, just might, happen to be an
26238 # identifier like `sun4' or `i386' or something, and be predefined by
26239 # the C preprocessor to some helpful value like 1, or maybe the empty
26240 # string. Needless to say consequent macro substitutions are less
26241 # than conducive to the makefile finding the correct directory.
26242 cpp_undefs="`echo $srcdir $configuration $canonical unix |
26243 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26244 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26246 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26247 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26248 ## from Makefile.c can correctly provide the arg `-traditional' to the
26249 ## C preprocessor.
26251 cat >conftest.$ac_ext <<_ACEOF
26252 /* confdefs.h. */
26253 _ACEOF
26254 cat confdefs.h >>conftest.$ac_ext
26255 cat >>conftest.$ac_ext <<_ACEOF
26256 /* end confdefs.h. */
26257 yes..yes
26258 _ACEOF
26259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26260 $EGREP "yes..yes" >/dev/null 2>&1; then
26261 CPP_NEED_TRADITIONAL=no
26262 else
26263 CPP_NEED_TRADITIONAL=yes
26265 rm -f conftest*
26268 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
26270 ac_config_commands="$ac_config_commands default"
26272 cat >confcache <<\_ACEOF
26273 # This file is a shell script that caches the results of configure
26274 # tests run on this system so they can be shared between configure
26275 # scripts and configure runs, see configure's option --config-cache.
26276 # It is not useful on other systems. If it contains results you don't
26277 # want to keep, you may remove or edit it.
26279 # config.status only pays attention to the cache file if you give it
26280 # the --recheck option to rerun configure.
26282 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26283 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26284 # following values.
26286 _ACEOF
26288 # The following way of writing the cache mishandles newlines in values,
26289 # but we know of no workaround that is simple, portable, and efficient.
26290 # So, we kill variables containing newlines.
26291 # Ultrix sh set writes to stderr and can't be redirected directly,
26292 # and sets the high bit in the cache file unless we assign to the vars.
26294 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26295 eval ac_val=\$$ac_var
26296 case $ac_val in #(
26297 *${as_nl}*)
26298 case $ac_var in #(
26299 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26300 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26301 esac
26302 case $ac_var in #(
26303 _ | IFS | as_nl) ;; #(
26304 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26305 *) $as_unset $ac_var ;;
26306 esac ;;
26307 esac
26308 done
26310 (set) 2>&1 |
26311 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26312 *${as_nl}ac_space=\ *)
26313 # `set' does not quote correctly, so add quotes (double-quote
26314 # substitution turns \\\\ into \\, and sed turns \\ into \).
26315 sed -n \
26316 "s/'/'\\\\''/g;
26317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26318 ;; #(
26320 # `set' quotes correctly as required by POSIX, so do not add quotes.
26321 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26323 esac |
26324 sort
26326 sed '
26327 /^ac_cv_env_/b end
26328 t clear
26329 :clear
26330 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26331 t end
26332 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26333 :end' >>confcache
26334 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26335 if test -w "$cache_file"; then
26336 test "x$cache_file" != "x/dev/null" &&
26337 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26338 $as_echo "$as_me: updating cache $cache_file" >&6;}
26339 cat confcache >$cache_file
26340 else
26341 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26342 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26345 rm -f confcache
26347 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26348 # Let make expand exec_prefix.
26349 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26351 DEFS=-DHAVE_CONFIG_H
26353 ac_libobjs=
26354 ac_ltlibobjs=
26355 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26356 # 1. Remove the extension, and $U if already installed.
26357 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26358 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26359 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26360 # will be set to the directory where LIBOBJS objects are built.
26361 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26362 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26363 done
26364 LIBOBJS=$ac_libobjs
26366 LTLIBOBJS=$ac_ltlibobjs
26370 : ${CONFIG_STATUS=./config.status}
26371 ac_write_fail=0
26372 ac_clean_files_save=$ac_clean_files
26373 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26374 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26375 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26376 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26377 #! $SHELL
26378 # Generated by $as_me.
26379 # Run this file to recreate the current configuration.
26380 # Compiler output produced by configure, useful for debugging
26381 # configure, is in config.log if it exists.
26383 debug=false
26384 ac_cs_recheck=false
26385 ac_cs_silent=false
26386 SHELL=\${CONFIG_SHELL-$SHELL}
26387 _ACEOF
26389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26390 ## --------------------- ##
26391 ## M4sh Initialization. ##
26392 ## --------------------- ##
26394 # Be more Bourne compatible
26395 DUALCASE=1; export DUALCASE # for MKS sh
26396 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26397 emulate sh
26398 NULLCMD=:
26399 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26400 # is contrary to our usage. Disable this feature.
26401 alias -g '${1+"$@"}'='"$@"'
26402 setopt NO_GLOB_SUBST
26403 else
26404 case `(set -o) 2>/dev/null` in
26405 *posix*) set -o posix ;;
26406 esac
26413 # PATH needs CR
26414 # Avoid depending upon Character Ranges.
26415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26418 as_cr_digits='0123456789'
26419 as_cr_alnum=$as_cr_Letters$as_cr_digits
26421 as_nl='
26423 export as_nl
26424 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26425 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26426 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26427 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26428 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26429 as_echo='printf %s\n'
26430 as_echo_n='printf %s'
26431 else
26432 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26433 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26434 as_echo_n='/usr/ucb/echo -n'
26435 else
26436 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26437 as_echo_n_body='eval
26438 arg=$1;
26439 case $arg in
26440 *"$as_nl"*)
26441 expr "X$arg" : "X\\(.*\\)$as_nl";
26442 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26443 esac;
26444 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26446 export as_echo_n_body
26447 as_echo_n='sh -c $as_echo_n_body as_echo'
26449 export as_echo_body
26450 as_echo='sh -c $as_echo_body as_echo'
26453 # The user is always right.
26454 if test "${PATH_SEPARATOR+set}" != set; then
26455 PATH_SEPARATOR=:
26456 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26457 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26458 PATH_SEPARATOR=';'
26462 # Support unset when possible.
26463 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26464 as_unset=unset
26465 else
26466 as_unset=false
26470 # IFS
26471 # We need space, tab and new line, in precisely that order. Quoting is
26472 # there to prevent editors from complaining about space-tab.
26473 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26474 # splitting by setting IFS to empty value.)
26475 IFS=" "" $as_nl"
26477 # Find who we are. Look in the path if we contain no directory separator.
26478 case $0 in
26479 *[\\/]* ) as_myself=$0 ;;
26480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26481 for as_dir in $PATH
26483 IFS=$as_save_IFS
26484 test -z "$as_dir" && as_dir=.
26485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26486 done
26487 IFS=$as_save_IFS
26490 esac
26491 # We did not find ourselves, most probably we were run as `sh COMMAND'
26492 # in which case we are not to be found in the path.
26493 if test "x$as_myself" = x; then
26494 as_myself=$0
26496 if test ! -f "$as_myself"; then
26497 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26498 { (exit 1); exit 1; }
26501 # Work around bugs in pre-3.0 UWIN ksh.
26502 for as_var in ENV MAIL MAILPATH
26503 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26504 done
26505 PS1='$ '
26506 PS2='> '
26507 PS4='+ '
26509 # NLS nuisances.
26510 LC_ALL=C
26511 export LC_ALL
26512 LANGUAGE=C
26513 export LANGUAGE
26515 # Required to use basename.
26516 if expr a : '\(a\)' >/dev/null 2>&1 &&
26517 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26518 as_expr=expr
26519 else
26520 as_expr=false
26523 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26524 as_basename=basename
26525 else
26526 as_basename=false
26530 # Name of the executable.
26531 as_me=`$as_basename -- "$0" ||
26532 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26533 X"$0" : 'X\(//\)$' \| \
26534 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26535 $as_echo X/"$0" |
26536 sed '/^.*\/\([^/][^/]*\)\/*$/{
26537 s//\1/
26540 /^X\/\(\/\/\)$/{
26541 s//\1/
26544 /^X\/\(\/\).*/{
26545 s//\1/
26548 s/.*/./; q'`
26550 # CDPATH.
26551 $as_unset CDPATH
26555 as_lineno_1=$LINENO
26556 as_lineno_2=$LINENO
26557 test "x$as_lineno_1" != "x$as_lineno_2" &&
26558 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26560 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26561 # uniformly replaced by the line number. The first 'sed' inserts a
26562 # line-number line after each line using $LINENO; the second 'sed'
26563 # does the real work. The second script uses 'N' to pair each
26564 # line-number line with the line containing $LINENO, and appends
26565 # trailing '-' during substitution so that $LINENO is not a special
26566 # case at line end.
26567 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26568 # scripts with optimization help from Paolo Bonzini. Blame Lee
26569 # E. McMahon (1931-1989) for sed's syntax. :-)
26570 sed -n '
26572 /[$]LINENO/=
26573 ' <$as_myself |
26574 sed '
26575 s/[$]LINENO.*/&-/
26576 t lineno
26578 :lineno
26580 :loop
26581 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26582 t loop
26583 s/-\n.*//
26584 ' >$as_me.lineno &&
26585 chmod +x "$as_me.lineno" ||
26586 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26587 { (exit 1); exit 1; }; }
26589 # Don't try to exec as it changes $[0], causing all sort of problems
26590 # (the dirname of $[0] is not the place where we might find the
26591 # original and so on. Autoconf is especially sensitive to this).
26592 . "./$as_me.lineno"
26593 # Exit status is that of the last command.
26594 exit
26598 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26599 as_dirname=dirname
26600 else
26601 as_dirname=false
26604 ECHO_C= ECHO_N= ECHO_T=
26605 case `echo -n x` in
26606 -n*)
26607 case `echo 'x\c'` in
26608 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26609 *) ECHO_C='\c';;
26610 esac;;
26612 ECHO_N='-n';;
26613 esac
26614 if expr a : '\(a\)' >/dev/null 2>&1 &&
26615 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26616 as_expr=expr
26617 else
26618 as_expr=false
26621 rm -f conf$$ conf$$.exe conf$$.file
26622 if test -d conf$$.dir; then
26623 rm -f conf$$.dir/conf$$.file
26624 else
26625 rm -f conf$$.dir
26626 mkdir conf$$.dir 2>/dev/null
26628 if (echo >conf$$.file) 2>/dev/null; then
26629 if ln -s conf$$.file conf$$ 2>/dev/null; then
26630 as_ln_s='ln -s'
26631 # ... but there are two gotchas:
26632 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26633 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26634 # In both cases, we have to default to `cp -p'.
26635 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26636 as_ln_s='cp -p'
26637 elif ln conf$$.file conf$$ 2>/dev/null; then
26638 as_ln_s=ln
26639 else
26640 as_ln_s='cp -p'
26642 else
26643 as_ln_s='cp -p'
26645 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26646 rmdir conf$$.dir 2>/dev/null
26648 if mkdir -p . 2>/dev/null; then
26649 as_mkdir_p=:
26650 else
26651 test -d ./-p && rmdir ./-p
26652 as_mkdir_p=false
26655 if test -x / >/dev/null 2>&1; then
26656 as_test_x='test -x'
26657 else
26658 if ls -dL / >/dev/null 2>&1; then
26659 as_ls_L_option=L
26660 else
26661 as_ls_L_option=
26663 as_test_x='
26664 eval sh -c '\''
26665 if test -d "$1"; then
26666 test -d "$1/.";
26667 else
26668 case $1 in
26669 -*)set "./$1";;
26670 esac;
26671 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26672 ???[sx]*):;;*)false;;esac;fi
26673 '\'' sh
26676 as_executable_p=$as_test_x
26678 # Sed expression to map a string onto a valid CPP name.
26679 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26681 # Sed expression to map a string onto a valid variable name.
26682 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26685 exec 6>&1
26687 # Save the log message, to keep $[0] and so on meaningful, and to
26688 # report actual input values of CONFIG_FILES etc. instead of their
26689 # values after options handling.
26690 ac_log="
26691 This file was extended by emacs $as_me 24.0.50, which was
26692 generated by GNU Autoconf 2.62. Invocation command line was
26694 CONFIG_FILES = $CONFIG_FILES
26695 CONFIG_HEADERS = $CONFIG_HEADERS
26696 CONFIG_LINKS = $CONFIG_LINKS
26697 CONFIG_COMMANDS = $CONFIG_COMMANDS
26698 $ $0 $@
26700 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26703 _ACEOF
26705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26706 # Files that config.status was made for.
26707 config_files="$ac_config_files"
26708 config_headers="$ac_config_headers"
26709 config_commands="$ac_config_commands"
26711 _ACEOF
26713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26714 ac_cs_usage="\
26715 \`$as_me' instantiates files from templates according to the
26716 current configuration.
26718 Usage: $0 [OPTIONS] [FILE]...
26720 -h, --help print this help, then exit
26721 -V, --version print version number and configuration settings, then exit
26722 -q, --quiet do not print progress messages
26723 -d, --debug don't remove temporary files
26724 --recheck update $as_me by reconfiguring in the same conditions
26725 --file=FILE[:TEMPLATE]
26726 instantiate the configuration file FILE
26727 --header=FILE[:TEMPLATE]
26728 instantiate the configuration header FILE
26730 Configuration files:
26731 $config_files
26733 Configuration headers:
26734 $config_headers
26736 Configuration commands:
26737 $config_commands
26739 Report bugs to <bug-autoconf@gnu.org>."
26741 _ACEOF
26742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26743 ac_cs_version="\\
26744 emacs config.status 24.0.50
26745 configured by $0, generated by GNU Autoconf 2.62,
26746 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26748 Copyright (C) 2008 Free Software Foundation, Inc.
26749 This config.status script is free software; the Free Software Foundation
26750 gives unlimited permission to copy, distribute and modify it."
26752 ac_pwd='$ac_pwd'
26753 srcdir='$srcdir'
26754 INSTALL='$INSTALL'
26755 test -n "\$AWK" || AWK=awk
26756 _ACEOF
26758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26759 # The default lists apply if the user does not specify any file.
26760 ac_need_defaults=:
26761 while test $# != 0
26763 case $1 in
26764 --*=*)
26765 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26766 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26767 ac_shift=:
26770 ac_option=$1
26771 ac_optarg=$2
26772 ac_shift=shift
26774 esac
26776 case $ac_option in
26777 # Handling of the options.
26778 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26779 ac_cs_recheck=: ;;
26780 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26781 $as_echo "$ac_cs_version"; exit ;;
26782 --debug | --debu | --deb | --de | --d | -d )
26783 debug=: ;;
26784 --file | --fil | --fi | --f )
26785 $ac_shift
26786 case $ac_optarg in
26787 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26788 esac
26789 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26790 ac_need_defaults=false;;
26791 --header | --heade | --head | --hea )
26792 $ac_shift
26793 case $ac_optarg in
26794 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26795 esac
26796 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26797 ac_need_defaults=false;;
26798 --he | --h)
26799 # Conflict between --help and --header
26800 { $as_echo "$as_me: error: ambiguous option: $1
26801 Try \`$0 --help' for more information." >&2
26802 { (exit 1); exit 1; }; };;
26803 --help | --hel | -h )
26804 $as_echo "$ac_cs_usage"; exit ;;
26805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26806 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26807 ac_cs_silent=: ;;
26809 # This is an error.
26810 -*) { $as_echo "$as_me: error: unrecognized option: $1
26811 Try \`$0 --help' for more information." >&2
26812 { (exit 1); exit 1; }; } ;;
26814 *) ac_config_targets="$ac_config_targets $1"
26815 ac_need_defaults=false ;;
26817 esac
26818 shift
26819 done
26821 ac_configure_extra_args=
26823 if $ac_cs_silent; then
26824 exec 6>/dev/null
26825 ac_configure_extra_args="$ac_configure_extra_args --silent"
26828 _ACEOF
26829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26830 if \$ac_cs_recheck; then
26831 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26832 shift
26833 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26834 CONFIG_SHELL='$SHELL'
26835 export CONFIG_SHELL
26836 exec "\$@"
26839 _ACEOF
26840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26841 exec 5>>config.log
26843 echo
26844 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26845 ## Running $as_me. ##
26846 _ASBOX
26847 $as_echo "$ac_log"
26848 } >&5
26850 _ACEOF
26851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26853 # INIT-COMMANDS
26855 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26857 _ACEOF
26859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26861 # Handling of arguments.
26862 for ac_config_target in $ac_config_targets
26864 case $ac_config_target in
26865 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26866 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26867 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26868 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26869 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26870 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26871 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26872 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26873 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26874 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26875 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26876 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26877 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26879 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26880 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26881 { (exit 1); exit 1; }; };;
26882 esac
26883 done
26886 # If the user did not use the arguments to specify the items to instantiate,
26887 # then the envvar interface is used. Set only those that are not.
26888 # We use the long form for the default assignment because of an extremely
26889 # bizarre bug on SunOS 4.1.3.
26890 if $ac_need_defaults; then
26891 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26892 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26893 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26896 # Have a temporary directory for convenience. Make it in the build tree
26897 # simply because there is no reason against having it here, and in addition,
26898 # creating and moving files from /tmp can sometimes cause problems.
26899 # Hook for its removal unless debugging.
26900 # Note that there is a small window in which the directory will not be cleaned:
26901 # after its creation but before its name has been assigned to `$tmp'.
26902 $debug ||
26904 tmp=
26905 trap 'exit_status=$?
26906 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26908 trap '{ (exit 1); exit 1; }' 1 2 13 15
26910 # Create a (secure) tmp directory for tmp files.
26913 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26914 test -n "$tmp" && test -d "$tmp"
26915 } ||
26917 tmp=./conf$$-$RANDOM
26918 (umask 077 && mkdir "$tmp")
26919 } ||
26921 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26922 { (exit 1); exit 1; }
26925 # Set up the scripts for CONFIG_FILES section.
26926 # No need to generate them if there are no CONFIG_FILES.
26927 # This happens for instance with `./config.status config.h'.
26928 if test -n "$CONFIG_FILES"; then
26931 ac_cr=' '
26932 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26933 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26934 ac_cs_awk_cr='\\r'
26935 else
26936 ac_cs_awk_cr=$ac_cr
26939 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26940 _ACEOF
26944 echo "cat >conf$$subs.awk <<_ACEOF" &&
26945 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26946 echo "_ACEOF"
26947 } >conf$$subs.sh ||
26948 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26949 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26950 { (exit 1); exit 1; }; }
26951 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26952 ac_delim='%!_!# '
26953 for ac_last_try in false false false false false :; do
26954 . ./conf$$subs.sh ||
26955 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26956 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26957 { (exit 1); exit 1; }; }
26959 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26960 break
26961 elif $ac_last_try; then
26962 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26963 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26964 { (exit 1); exit 1; }; }
26965 else
26966 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26968 done
26969 rm -f conf$$subs.sh
26971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26972 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26973 _ACEOF
26974 sed -n '
26976 s/^/S["/; s/!.*/"]=/
26979 s/^[^!]*!//
26980 :repl
26981 t repl
26982 s/'"$ac_delim"'$//
26983 t delim
26986 s/\(.\{148\}\).*/\1/
26987 t more1
26988 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26991 b repl
26992 :more1
26993 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26996 s/.\{148\}//
26997 t nl
26998 :delim
27000 s/\(.\{148\}\).*/\1/
27001 t more2
27002 s/["\\]/\\&/g; s/^/"/; s/$/"/
27005 :more2
27006 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27009 s/.\{148\}//
27010 t delim
27011 ' <conf$$subs.awk | sed '
27012 /^[^""]/{
27014 s/\n//
27016 ' >>$CONFIG_STATUS || ac_write_fail=1
27017 rm -f conf$$subs.awk
27018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27019 _ACAWK
27020 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27021 for (key in S) S_is_set[key] = 1
27022 FS = "\a"
27026 line = $ 0
27027 nfields = split(line, field, "@")
27028 substed = 0
27029 len = length(field[1])
27030 for (i = 2; i < nfields; i++) {
27031 key = field[i]
27032 keylen = length(key)
27033 if (S_is_set[key]) {
27034 value = S[key]
27035 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27036 len += length(value) + length(field[++i])
27037 substed = 1
27038 } else
27039 len += 1 + keylen
27042 print line
27045 _ACAWK
27046 _ACEOF
27047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27048 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27049 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27050 else
27052 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27053 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27054 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27055 { (exit 1); exit 1; }; }
27056 _ACEOF
27058 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27059 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27060 # trailing colons and then remove the whole line if VPATH becomes empty
27061 # (actually we leave an empty line to preserve line numbers).
27062 if test "x$srcdir" = x.; then
27063 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27064 s/:*\$(srcdir):*/:/
27065 s/:*\${srcdir}:*/:/
27066 s/:*@srcdir@:*/:/
27067 s/^\([^=]*=[ ]*\):*/\1/
27068 s/:*$//
27069 s/^[^=]*=[ ]*$//
27073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27074 fi # test -n "$CONFIG_FILES"
27076 # Set up the scripts for CONFIG_HEADERS section.
27077 # No need to generate them if there are no CONFIG_HEADERS.
27078 # This happens for instance with `./config.status Makefile'.
27079 if test -n "$CONFIG_HEADERS"; then
27080 cat >"$tmp/defines.awk" <<\_ACAWK ||
27081 BEGIN {
27082 _ACEOF
27084 # Transform confdefs.h into an awk script `defines.awk', embedded as
27085 # here-document in config.status, that substitutes the proper values into
27086 # config.h.in to produce config.h.
27088 # Create a delimiter string that does not exist in confdefs.h, to ease
27089 # handling of long lines.
27090 ac_delim='%!_!# '
27091 for ac_last_try in false false :; do
27092 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27093 if test -z "$ac_t"; then
27094 break
27095 elif $ac_last_try; then
27096 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27097 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27098 { (exit 1); exit 1; }; }
27099 else
27100 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27102 done
27104 # For the awk script, D is an array of macro values keyed by name,
27105 # likewise P contains macro parameters if any. Preserve backslash
27106 # newline sequences.
27108 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27109 sed -n '
27110 s/.\{148\}/&'"$ac_delim"'/g
27111 t rset
27112 :rset
27113 s/^[ ]*#[ ]*define[ ][ ]*/ /
27114 t def
27116 :def
27117 s/\\$//
27118 t bsnl
27119 s/["\\]/\\&/g
27120 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27121 D["\1"]=" \3"/p
27122 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27124 :bsnl
27125 s/["\\]/\\&/g
27126 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27127 D["\1"]=" \3\\\\\\n"\\/p
27128 t cont
27129 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27130 t cont
27132 :cont
27134 s/.\{148\}/&'"$ac_delim"'/g
27135 t clear
27136 :clear
27137 s/\\$//
27138 t bsnlc
27139 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27141 :bsnlc
27142 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27143 b cont
27144 ' <confdefs.h | sed '
27145 s/'"$ac_delim"'/"\\\
27146 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27149 for (key in D) D_is_set[key] = 1
27150 FS = "\a"
27152 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27153 line = \$ 0
27154 split(line, arg, " ")
27155 if (arg[1] == "#") {
27156 defundef = arg[2]
27157 mac1 = arg[3]
27158 } else {
27159 defundef = substr(arg[1], 2)
27160 mac1 = arg[2]
27162 split(mac1, mac2, "(") #)
27163 macro = mac2[1]
27164 if (D_is_set[macro]) {
27165 # Preserve the white space surrounding the "#".
27166 prefix = substr(line, 1, index(line, defundef) - 1)
27167 print prefix "define", macro P[macro] D[macro]
27168 next
27169 } else {
27170 # Replace #undef with comments. This is necessary, for example,
27171 # in the case of _POSIX_SOURCE, which is predefined and required
27172 # on some systems where configure will not decide to define it.
27173 if (defundef == "undef") {
27174 print "/*", line, "*/"
27175 next
27179 { print }
27180 _ACAWK
27181 _ACEOF
27182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27183 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27184 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27185 { (exit 1); exit 1; }; }
27186 fi # test -n "$CONFIG_HEADERS"
27189 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27190 shift
27191 for ac_tag
27193 case $ac_tag in
27194 :[FHLC]) ac_mode=$ac_tag; continue;;
27195 esac
27196 case $ac_mode$ac_tag in
27197 :[FHL]*:*);;
27198 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27199 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27200 { (exit 1); exit 1; }; };;
27201 :[FH]-) ac_tag=-:-;;
27202 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27203 esac
27204 ac_save_IFS=$IFS
27205 IFS=:
27206 set x $ac_tag
27207 IFS=$ac_save_IFS
27208 shift
27209 ac_file=$1
27210 shift
27212 case $ac_mode in
27213 :L) ac_source=$1;;
27214 :[FH])
27215 ac_file_inputs=
27216 for ac_f
27218 case $ac_f in
27219 -) ac_f="$tmp/stdin";;
27220 *) # Look for the file first in the build tree, then in the source tree
27221 # (if the path is not absolute). The absolute path cannot be DOS-style,
27222 # because $ac_f cannot contain `:'.
27223 test -f "$ac_f" ||
27224 case $ac_f in
27225 [\\/$]*) false;;
27226 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27227 esac ||
27228 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27229 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27230 { (exit 1); exit 1; }; };;
27231 esac
27232 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27233 ac_file_inputs="$ac_file_inputs '$ac_f'"
27234 done
27236 # Let's still pretend it is `configure' which instantiates (i.e., don't
27237 # use $as_me), people would be surprised to read:
27238 # /* config.h. Generated by config.status. */
27239 configure_input='Generated from '`
27240 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27241 `' by configure.'
27242 if test x"$ac_file" != x-; then
27243 configure_input="$ac_file. $configure_input"
27244 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27245 $as_echo "$as_me: creating $ac_file" >&6;}
27247 # Neutralize special characters interpreted by sed in replacement strings.
27248 case $configure_input in #(
27249 *\&* | *\|* | *\\* )
27250 ac_sed_conf_input=`$as_echo "$configure_input" |
27251 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27252 *) ac_sed_conf_input=$configure_input;;
27253 esac
27255 case $ac_tag in
27256 *:-:* | *:-) cat >"$tmp/stdin" \
27257 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27258 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27259 { (exit 1); exit 1; }; } ;;
27260 esac
27262 esac
27264 ac_dir=`$as_dirname -- "$ac_file" ||
27265 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27266 X"$ac_file" : 'X\(//\)[^/]' \| \
27267 X"$ac_file" : 'X\(//\)$' \| \
27268 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27269 $as_echo X"$ac_file" |
27270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27271 s//\1/
27274 /^X\(\/\/\)[^/].*/{
27275 s//\1/
27278 /^X\(\/\/\)$/{
27279 s//\1/
27282 /^X\(\/\).*/{
27283 s//\1/
27286 s/.*/./; q'`
27287 { as_dir="$ac_dir"
27288 case $as_dir in #(
27289 -*) as_dir=./$as_dir;;
27290 esac
27291 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27292 as_dirs=
27293 while :; do
27294 case $as_dir in #(
27295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27296 *) as_qdir=$as_dir;;
27297 esac
27298 as_dirs="'$as_qdir' $as_dirs"
27299 as_dir=`$as_dirname -- "$as_dir" ||
27300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27301 X"$as_dir" : 'X\(//\)[^/]' \| \
27302 X"$as_dir" : 'X\(//\)$' \| \
27303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27304 $as_echo X"$as_dir" |
27305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27306 s//\1/
27309 /^X\(\/\/\)[^/].*/{
27310 s//\1/
27313 /^X\(\/\/\)$/{
27314 s//\1/
27317 /^X\(\/\).*/{
27318 s//\1/
27321 s/.*/./; q'`
27322 test -d "$as_dir" && break
27323 done
27324 test -z "$as_dirs" || eval "mkdir $as_dirs"
27325 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27326 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27327 { (exit 1); exit 1; }; }; }
27328 ac_builddir=.
27330 case "$ac_dir" in
27331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27333 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27334 # A ".." for each directory in $ac_dir_suffix.
27335 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27336 case $ac_top_builddir_sub in
27337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27339 esac ;;
27340 esac
27341 ac_abs_top_builddir=$ac_pwd
27342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27343 # for backward compatibility:
27344 ac_top_builddir=$ac_top_build_prefix
27346 case $srcdir in
27347 .) # We are building in place.
27348 ac_srcdir=.
27349 ac_top_srcdir=$ac_top_builddir_sub
27350 ac_abs_top_srcdir=$ac_pwd ;;
27351 [\\/]* | ?:[\\/]* ) # Absolute name.
27352 ac_srcdir=$srcdir$ac_dir_suffix;
27353 ac_top_srcdir=$srcdir
27354 ac_abs_top_srcdir=$srcdir ;;
27355 *) # Relative name.
27356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27357 ac_top_srcdir=$ac_top_build_prefix$srcdir
27358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27359 esac
27360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27363 case $ac_mode in
27366 # CONFIG_FILE
27369 case $INSTALL in
27370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27371 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27372 esac
27373 _ACEOF
27375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27376 # If the template does not know about datarootdir, expand it.
27377 # FIXME: This hack should be removed a few years after 2.60.
27378 ac_datarootdir_hack=; ac_datarootdir_seen=
27380 ac_sed_dataroot='
27381 /datarootdir/ {
27385 /@datadir@/p
27386 /@docdir@/p
27387 /@infodir@/p
27388 /@localedir@/p
27389 /@mandir@/p
27391 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27392 *datarootdir*) ac_datarootdir_seen=yes;;
27393 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27394 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27395 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27396 _ACEOF
27397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27398 ac_datarootdir_hack='
27399 s&@datadir@&$datadir&g
27400 s&@docdir@&$docdir&g
27401 s&@infodir@&$infodir&g
27402 s&@localedir@&$localedir&g
27403 s&@mandir@&$mandir&g
27404 s&\\\${datarootdir}&$datarootdir&g' ;;
27405 esac
27406 _ACEOF
27408 # Neutralize VPATH when `$srcdir' = `.'.
27409 # Shell code in configure.ac might set extrasub.
27410 # FIXME: do we really want to maintain this feature?
27411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27412 ac_sed_extra="$ac_vpsub
27413 $extrasub
27414 _ACEOF
27415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27417 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27418 s|@configure_input@|$ac_sed_conf_input|;t t
27419 s&@top_builddir@&$ac_top_builddir_sub&;t t
27420 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27421 s&@srcdir@&$ac_srcdir&;t t
27422 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27423 s&@top_srcdir@&$ac_top_srcdir&;t t
27424 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27425 s&@builddir@&$ac_builddir&;t t
27426 s&@abs_builddir@&$ac_abs_builddir&;t t
27427 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27428 s&@INSTALL@&$ac_INSTALL&;t t
27429 $ac_datarootdir_hack
27431 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27432 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27433 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27434 { (exit 1); exit 1; }; }
27436 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27437 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27439 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27440 which seems to be undefined. Please make sure it is defined." >&5
27441 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27442 which seems to be undefined. Please make sure it is defined." >&2;}
27444 rm -f "$tmp/stdin"
27445 case $ac_file in
27446 -) cat "$tmp/out" && rm -f "$tmp/out";;
27447 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27448 esac \
27449 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27450 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27451 { (exit 1); exit 1; }; }
27455 # CONFIG_HEADER
27457 if test x"$ac_file" != x-; then
27459 $as_echo "/* $configure_input */" \
27460 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27461 } >"$tmp/config.h" \
27462 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27463 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27464 { (exit 1); exit 1; }; }
27465 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27466 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27467 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27468 else
27469 rm -f "$ac_file"
27470 mv "$tmp/config.h" "$ac_file" \
27471 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27472 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27473 { (exit 1); exit 1; }; }
27475 else
27476 $as_echo "/* $configure_input */" \
27477 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27478 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27479 $as_echo "$as_me: error: could not create -" >&2;}
27480 { (exit 1); exit 1; }; }
27484 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27485 $as_echo "$as_me: executing $ac_file commands" >&6;}
27487 esac
27490 case $ac_file$ac_mode in
27491 "default":C)
27493 ### Make the necessary directories, if they don't exist.
27494 for dir in etc lisp ; do
27495 test -d ${dir} || mkdir ${dir}
27496 done
27498 # Build src/Makefile from ${srcdir}/src/Makefile.c
27499 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27500 # This must be done after src/config.h is built, since we rely on that file.
27502 echo creating src/epaths.h
27503 ${MAKE-make} epaths-force
27505 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27506 # `..' to `. .' unless invoked with -traditional
27508 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27509 CPPFLAGS="$CPPFLAGS -traditional"
27512 echo creating lib-src/Makefile
27513 ( cd lib-src
27514 rm -f junk.c junk1.c junk2.c
27515 sed -e '/start of cpp stuff/q' \
27516 < Makefile.c > junk1.c
27517 sed -e '1,/start of cpp stuff/d'\
27518 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27519 < Makefile.c > junk.c
27520 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27521 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27522 cat junk1.c junk2.c > Makefile.new
27523 rm -f junk.c junk1.c junk2.c
27524 chmod 444 Makefile.new
27525 mv -f Makefile.new Makefile
27528 echo creating src/Makefile
27529 ( cd src
27530 rm -f junk.c junk1.c junk2.c
27531 sed -e '/start of cpp stuff/q' \
27532 < Makefile.c > junk1.c
27533 sed -e '1,/start of cpp stuff/d'\
27534 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27535 < Makefile.c > junk.c
27536 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27537 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27538 cat junk1.c junk2.c > Makefile.new
27539 rm -f junk.c junk1.c junk2.c
27540 chmod 444 Makefile.new
27541 mv -f Makefile.new Makefile
27544 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27545 echo creating src/.gdbinit
27546 echo source $srcdir/src/.gdbinit > src/.gdbinit
27551 esac
27552 done # for ac_tag
27555 { (exit 0); exit 0; }
27556 _ACEOF
27557 chmod +x $CONFIG_STATUS
27558 ac_clean_files=$ac_clean_files_save
27560 test $ac_write_fail = 0 ||
27561 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27562 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27563 { (exit 1); exit 1; }; }
27566 # configure is writing to config.log, and then calls config.status.
27567 # config.status does its own redirection, appending to config.log.
27568 # Unfortunately, on DOS this fails, as config.log is still kept open
27569 # by configure, so config.status won't be able to write to it; its
27570 # output is simply discarded. So we exec the FD to /dev/null,
27571 # effectively closing config.log, so it can be properly (re)opened and
27572 # appended to by config.status. When coming back to configure, we
27573 # need to make the FD available again.
27574 if test "$no_create" != yes; then
27575 ac_cs_success=:
27576 ac_config_status_args=
27577 test "$silent" = yes &&
27578 ac_config_status_args="$ac_config_status_args --quiet"
27579 exec 5>/dev/null
27580 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27581 exec 5>>config.log
27582 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27583 # would make configure fail if this is the last instruction.
27584 $ac_cs_success || { (exit 1); exit 1; }
27586 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27587 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27588 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}