(Tags): Clarify text. (Bug#3101)
[emacs.git] / configure
blob72d2a553f1f9fbf4a6c3a78d4813292bc2c5920f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 23.0.92.
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='23.0.92'
598 PACKAGE_STRING='emacs 23.0.92'
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 LIBSOUND
706 PKG_CONFIG
707 ALSA_CFLAGS
708 ALSA_LIBS
709 CFLAGS_SOUND
710 SET_MAKE
711 XMKMF
712 HAVE_XSERVER
713 RSVG_CFLAGS
714 RSVG_LIBS
715 GTK_CFLAGS
716 GTK_LIBS
717 DBUS_CFLAGS
718 DBUS_LIBS
719 FONTCONFIG_CFLAGS
720 FONTCONFIG_LIBS
721 XFT_CFLAGS
722 XFT_LIBS
723 FREETYPE_CFLAGS
724 FREETYPE_LIBS
725 LIBOTF_CFLAGS
726 LIBOTF_LIBS
727 M17N_FLT_CFLAGS
728 M17N_FLT_LIBS
729 ALLOCA
730 liblockfile
731 LIBOBJS
732 NEED_SETGID
733 KMEM_GROUP
734 GETLOADAVG_LIBS
735 GETOPT_H
736 GETOPTOBJS
737 version
738 configuration
739 canonical
740 srcdir
741 lispdir
742 locallisppath
743 lisppath
744 x_default_search_path
745 etcdir
746 archlibdir
747 bitmapdir
748 gamedir
749 gameuser
750 c_switch_system
751 c_switch_machine
752 LD_SWITCH_X_SITE
753 LD_SWITCH_X_SITE_AUX
754 C_SWITCH_X_SITE
755 X_TOOLKIT_TYPE
756 machfile
757 opsysfile
758 ns_appdir
759 ns_appbindir
760 ns_appresdir
761 ns_appsrc
762 GNUSTEP_MAKEFILES
763 GNUSTEP_SYSTEM_HEADERS
764 GNUSTEP_SYSTEM_LIBRARIES
765 GNU_OBJC_CFLAGS
766 LIB_SRC_EXTRA_INSTALLABLES
767 LTLIBOBJS'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 with_pop
772 with_kerberos
773 with_kerberos5
774 with_hesiod
775 with_sound
776 with_sync_input
777 with_x_toolkit
778 with_xpm
779 with_jpeg
780 with_tiff
781 with_gif
782 with_png
783 with_rsvg
784 with_freetype
785 with_xft
786 with_libotf
787 with_m17n_flt
788 with_toolkit_scroll_bars
789 with_xaw3d
790 with_xim
791 with_ns
792 with_gpm
793 with_dbus
794 with_makeinfo
795 with_gtk
796 with_gcc
797 with_pkg_config_prog
798 with_gnustep_conf
799 enable_ns_self_contained
800 enable_asserts
801 enable_maintainer_mode
802 enable_locallisppath
803 enable_largefile
804 with_x
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
815 XMKMF'
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 ac_unrecognized_opts=
822 ac_unrecognized_sep=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
866 ac_prev=
867 ac_dashdash=
868 for ac_option
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
873 ac_prev=
874 continue
877 case $ac_option in
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *) ac_optarg=yes ;;
880 esac
882 # Accept the important Cygnus configure options, so we can diagnose typos.
884 case $ac_dashdash$ac_option in
886 ac_dashdash=yes ;;
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
905 --config-cache | -C)
906 cache_file=config.cache ;;
908 -datadir | --datadir | --datadi | --datad)
909 ac_prev=datadir ;;
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
920 -disable-* | --disable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
925 { (exit 1); exit 1; }; }
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
952 { (exit 1); exit 1; }; }
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=\$ac_optarg ;;
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1042 no_create=yes ;;
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1162 "with_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=\$ac_optarg ;;
1169 -without-* | --without-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1174 { (exit 1); exit 1; }; }
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1204 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1205 Try \`$0 --help' for more information." >&2
1206 { (exit 1); exit 1; }; }
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1213 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1214 { (exit 1); exit 1; }; }
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1226 esac
1227 done
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1232 { (exit 1); exit 1; }; }
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1239 { (exit 1); exit 1; }; } ;;
1240 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 esac
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1252 case $ac_val in
1253 */ )
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1256 esac
1257 # Be sure to have absolute directory names.
1258 case $ac_val in
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 esac
1262 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1263 { (exit 1); exit 1; }; }
1264 done
1266 # There might be people who depend on the old broken behavior: `$host'
1267 # used to hold the argument of --host etc.
1268 # FIXME: To remove some day.
1269 build=$build_alias
1270 host=$host_alias
1271 target=$target_alias
1273 # FIXME: To remove some day.
1274 if test "x$host_alias" != x; then
1275 if test "x$build_alias" = x; then
1276 cross_compiling=maybe
1277 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1278 If a cross compiler is detected then cross compile mode will be used." >&2
1279 elif test "x$build_alias" != "x$host_alias"; then
1280 cross_compiling=yes
1284 ac_tool_prefix=
1285 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287 test "$silent" = yes && exec 6>/dev/null
1290 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1291 ac_ls_di=`ls -di .` &&
1292 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1293 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1294 { (exit 1); exit 1; }; }
1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1297 { (exit 1); exit 1; }; }
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1318 /^X\(\/\/\)$/{
1319 s//\1/
1322 /^X\(\/\).*/{
1323 s//\1/
1326 s/.*/./; q'`
1327 srcdir=$ac_confdir
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 srcdir=..
1331 else
1332 ac_srcdir_defaulted=no
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1337 { (exit 1); exit 1; }; }
1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 ac_abs_confdir=`(
1341 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1342 { (exit 1); exit 1; }; }
1343 pwd)`
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 srcdir=.
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1351 case $srcdir in
1352 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 esac
1354 for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359 done
1362 # Report the --help message.
1364 if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1367 cat <<_ACEOF
1368 \`configure' configures emacs 23.0.92 to adapt to many kinds of systems.
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE. See below for descriptions of some of the useful variables.
1375 Defaults for the options are specified in brackets.
1377 Configuration:
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388 Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
1390 [$ac_default_prefix]
1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1392 [PREFIX]
1394 By default, \`make install' will install all the files in
1395 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397 for instance \`--prefix=\$HOME'.
1399 For better control, use the options below.
1401 Fine tuning of the installation directories:
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
1421 _ACEOF
1423 cat <<\_ACEOF
1425 Program names:
1426 --program-prefix=PREFIX prepend PREFIX to installed program names
1427 --program-suffix=SUFFIX append SUFFIX to installed program names
1428 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430 X features:
1431 --x-includes=DIR X include files are in DIR
1432 --x-libraries=DIR X library files are in DIR
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of emacs 23.0.92:";;
1443 esac
1444 cat <<\_ACEOF
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --disable-ns-self-contained
1451 disable self contained build under NeXTstep
1452 --enable-asserts compile code with asserts enabled
1453 --enable-maintainer-mode
1454 enable make rules and dependencies not useful (and
1455 sometimes confusing) to the casual installer
1456 --enable-locallisppath=PATH
1457 directories Emacs should search for lisp files
1458 specific to this site
1459 --disable-largefile omit support for large files
1461 Optional Packages:
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --without-pop don't support POP mail retrieval with movemail
1465 --with-kerberos support Kerberos-authenticated POP
1466 --with-kerberos5 support Kerberos version 5 authenticated POP
1467 --with-hesiod support Hesiod to get the POP server host
1468 --without-sound don't compile with sound support
1469 --without-sync-input process async input synchronously
1470 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1471 motif, gtk, no)
1472 --without-xpm don't compile with XPM image support
1473 --without-jpeg don't compile with JPEG image support
1474 --without-tiff don't compile with TIFF image support
1475 --without-gif don't compile with GIF image support
1476 --without-png don't compile with PNG image support
1477 --without-rsvg don't compile with SVG image support
1478 --without-freetype don't use Freetype for local font support
1479 --without-xft don't use XFT for anti aliased fonts
1480 --without-libotf don't use libotf for OpenType font support
1481 --without-m17n-flt don't use m17n-flt for text shaping
1482 --without-toolkit-scroll-bars
1483 don't use Motif or Xaw3d scroll bars
1484 --without-xaw3d don't use Xaw3d
1485 --without-xim don't use X11 XIM
1486 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1487 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1488 console
1489 --without-dbus don't compile with D-Bus support
1490 --without-makeinfo don't require makeinfo for building manuals
1492 --with-pkg-config-prog=PATH
1493 path to pkg-config for finding GTK and librsvg
1494 --with-gnustep-conf=PATH
1495 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1496 or /etc/GNUstep/GNUstep.conf
1497 --with-x use the X Window System
1499 Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
1507 CPP C preprocessor
1508 XMKMF Path to xmkmf, Makefile generator for X Window System
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1513 _ACEOF
1514 ac_status=$?
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522 continue
1523 ac_builddir=.
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1541 case $srcdir in
1542 .) # We are building in place.
1543 ac_srcdir=.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1565 else
1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 fi || ac_status=$?
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1569 done
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1574 cat <<\_ACEOF
1575 emacs configure 23.0.92
1576 generated by GNU Autoconf 2.62
1578 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1579 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1585 cat >config.log <<_ACEOF
1586 This file contains any messages produced by compilers while
1587 running configure, to aid debugging if configure makes a mistake.
1589 It was created by emacs $as_me 23.0.92, which was
1590 generated by GNU Autoconf 2.62. Invocation command line was
1592 $ $0 $@
1594 _ACEOF
1595 exec 5>>config.log
1597 cat <<_ASUNAME
1598 ## --------- ##
1599 ## Platform. ##
1600 ## --------- ##
1602 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1603 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1604 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1605 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1606 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1609 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1611 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1612 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1613 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1614 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1615 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1616 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1617 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1619 _ASUNAME
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 $as_echo "PATH: $as_dir"
1627 done
1628 IFS=$as_save_IFS
1630 } >&5
1632 cat >&5 <<_ACEOF
1635 ## ----------- ##
1636 ## Core tests. ##
1637 ## ----------- ##
1639 _ACEOF
1642 # Keep a trace of the command line.
1643 # Strip out --no-create and --no-recursion so they do not pile up.
1644 # Strip out --silent because we don't want to record it for future runs.
1645 # Also quote any args containing shell meta-characters.
1646 # Make two passes to allow for proper duplicate-argument suppression.
1647 ac_configure_args=
1648 ac_configure_args0=
1649 ac_configure_args1=
1650 ac_must_keep_next=false
1651 for ac_pass in 1 2
1653 for ac_arg
1655 case $ac_arg in
1656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658 | -silent | --silent | --silen | --sile | --sil)
1659 continue ;;
1660 *\'*)
1661 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1662 esac
1663 case $ac_pass in
1664 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667 if test $ac_must_keep_next = true; then
1668 ac_must_keep_next=false # Got value, back to normal.
1669 else
1670 case $ac_arg in
1671 *=* | --config-cache | -C | -disable-* | --disable-* \
1672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674 | -with-* | --with-* | -without-* | --without-* | --x)
1675 case "$ac_configure_args0 " in
1676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1677 esac
1679 -* ) ac_must_keep_next=true ;;
1680 esac
1682 ac_configure_args="$ac_configure_args '$ac_arg'"
1684 esac
1685 done
1686 done
1687 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690 # When interrupted or exit'd, cleanup temporary files, and complete
1691 # config.log. We remove comments because anyway the quotes in there
1692 # would cause problems or look ugly.
1693 # WARNING: Use '\'' to represent an apostrophe within the trap.
1694 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1695 trap 'exit_status=$?
1696 # Save into config.log some information that might help in debugging.
1698 echo
1700 cat <<\_ASBOX
1701 ## ---------------- ##
1702 ## Cache variables. ##
1703 ## ---------------- ##
1704 _ASBOX
1705 echo
1706 # The following way of writing the cache mishandles newlines in values,
1708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1709 eval ac_val=\$$ac_var
1710 case $ac_val in #(
1711 *${as_nl}*)
1712 case $ac_var in #(
1713 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1714 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1715 esac
1716 case $ac_var in #(
1717 _ | IFS | as_nl) ;; #(
1718 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1719 *) $as_unset $ac_var ;;
1720 esac ;;
1721 esac
1722 done
1723 (set) 2>&1 |
1724 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1725 *${as_nl}ac_space=\ *)
1726 sed -n \
1727 "s/'\''/'\''\\\\'\'''\''/g;
1728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1729 ;; #(
1731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1733 esac |
1734 sort
1736 echo
1738 cat <<\_ASBOX
1739 ## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##
1742 _ASBOX
1743 echo
1744 for ac_var in $ac_subst_vars
1746 eval ac_val=\$$ac_var
1747 case $ac_val in
1748 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 esac
1750 $as_echo "$ac_var='\''$ac_val'\''"
1751 done | sort
1752 echo
1754 if test -n "$ac_subst_files"; then
1755 cat <<\_ASBOX
1756 ## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##
1759 _ASBOX
1760 echo
1761 for ac_var in $ac_subst_files
1763 eval ac_val=\$$ac_var
1764 case $ac_val in
1765 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 esac
1767 $as_echo "$ac_var='\''$ac_val'\''"
1768 done | sort
1769 echo
1772 if test -s confdefs.h; then
1773 cat <<\_ASBOX
1774 ## ----------- ##
1775 ## confdefs.h. ##
1776 ## ----------- ##
1777 _ASBOX
1778 echo
1779 cat confdefs.h
1780 echo
1782 test "$ac_signal" != 0 &&
1783 $as_echo "$as_me: caught signal $ac_signal"
1784 $as_echo "$as_me: exit $exit_status"
1785 } >&5
1786 rm -f core *.core core.conftest.* &&
1787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1788 exit $exit_status
1790 for ac_signal in 1 2 13 15; do
1791 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1792 done
1793 ac_signal=0
1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1796 rm -f -r conftest* confdefs.h
1798 # Predefined preprocessor variables.
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_NAME "$PACKAGE_NAME"
1802 _ACEOF
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807 _ACEOF
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1812 _ACEOF
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_STRING "$PACKAGE_STRING"
1817 _ACEOF
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1822 _ACEOF
1825 # Let the site file select an alternate cache file if it wants to.
1826 # Prefer an explicitly selected file to automatically selected ones.
1827 ac_site_file1=NONE
1828 ac_site_file2=NONE
1829 if test -n "$CONFIG_SITE"; then
1830 ac_site_file1=$CONFIG_SITE
1831 elif test "x$prefix" != xNONE; then
1832 ac_site_file1=$prefix/share/config.site
1833 ac_site_file2=$prefix/etc/config.site
1834 else
1835 ac_site_file1=$ac_default_prefix/share/config.site
1836 ac_site_file2=$ac_default_prefix/etc/config.site
1838 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1840 test "x$ac_site_file" = xNONE && continue
1841 if test -r "$ac_site_file"; then
1842 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1844 sed 's/^/| /' "$ac_site_file" >&5
1845 . "$ac_site_file"
1847 done
1849 if test -r "$cache_file"; then
1850 # Some versions of bash will fail to source /dev/null (special
1851 # files actually), so we avoid doing that.
1852 if test -f "$cache_file"; then
1853 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854 $as_echo "$as_me: loading cache $cache_file" >&6;}
1855 case $cache_file in
1856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857 *) . "./$cache_file";;
1858 esac
1860 else
1861 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862 $as_echo "$as_me: creating cache $cache_file" >&6;}
1863 >$cache_file
1866 ac_header_list="$ac_header_list sys/time.h"
1867 ac_header_list="$ac_header_list unistd.h"
1868 ac_func_list="$ac_func_list alarm"
1869 # Check that the precious variables saved in the cache have kept the same
1870 # value.
1871 ac_cache_corrupted=false
1872 for ac_var in $ac_precious_vars; do
1873 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1874 eval ac_new_set=\$ac_env_${ac_var}_set
1875 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1876 eval ac_new_val=\$ac_env_${ac_var}_value
1877 case $ac_old_set,$ac_new_set in
1878 set,)
1879 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1880 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1882 ,set)
1883 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1884 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1886 ,);;
1888 if test "x$ac_old_val" != "x$ac_new_val"; then
1889 # differences in whitespace do not lead to failure.
1890 ac_old_val_w=`echo x $ac_old_val`
1891 ac_new_val_w=`echo x $ac_new_val`
1892 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1893 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895 ac_cache_corrupted=:
1896 else
1897 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1898 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1899 eval $ac_var=\$ac_old_val
1901 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1902 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1903 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1904 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1905 fi;;
1906 esac
1907 # Pass precious variables to config.status.
1908 if test "$ac_new_set" = set; then
1909 case $ac_new_val in
1910 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1911 *) ac_arg=$ac_var=$ac_new_val ;;
1912 esac
1913 case " $ac_configure_args " in
1914 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1915 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916 esac
1918 done
1919 if $ac_cache_corrupted; then
1920 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1921 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1922 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1923 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1924 { (exit 1); exit 1; }; }
1951 ac_ext=c
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1958 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1962 test "$program_prefix" != NONE &&
1963 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1964 # Use a double $ so make ignores it.
1965 test "$program_suffix" != NONE &&
1966 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1967 # Double any \ or $.
1968 # By default was `s,x,x', remove it if useless.
1969 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1970 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1973 lispdir='${datadir}/emacs/${version}/lisp'
1974 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1975 '${datadir}/emacs/site-lisp'
1976 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1977 etcdir='${datadir}/emacs/${version}/etc'
1978 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1979 docdir='${datadir}/emacs/${version}/etc'
1980 gamedir='${localstatedir}/games/emacs'
1982 gameuser=games
1987 # Check whether --with-pop was given.
1988 if test "${with_pop+set}" = set; then
1989 withval=$with_pop;
1990 else
1991 with_pop=yes
1994 if test "$with_pop" = yes; then
1995 cat >>confdefs.h <<\_ACEOF
1996 #define MAIL_USE_POP 1
1997 _ACEOF
2003 # Check whether --with-kerberos was given.
2004 if test "${with_kerberos+set}" = set; then
2005 withval=$with_kerberos;
2006 else
2007 with_kerberos=no
2010 if test "$with_kerberos" != no; then
2011 cat >>confdefs.h <<\_ACEOF
2012 #define KERBEROS 1
2013 _ACEOF
2019 # Check whether --with-kerberos5 was given.
2020 if test "${with_kerberos5+set}" = set; then
2021 withval=$with_kerberos5;
2022 else
2023 with_kerberos5=no
2026 if test "${with_kerberos5}" != no; then
2027 if test "${with_kerberos}" = no; then
2028 with_kerberos=yes
2029 cat >>confdefs.h <<\_ACEOF
2030 #define KERBEROS 1
2031 _ACEOF
2035 cat >>confdefs.h <<\_ACEOF
2036 #define KERBEROS5 1
2037 _ACEOF
2042 # Check whether --with-hesiod was given.
2043 if test "${with_hesiod+set}" = set; then
2044 withval=$with_hesiod;
2045 else
2046 with_hesiod=no
2049 if test "$with_hesiod" != no; then
2051 cat >>confdefs.h <<\_ACEOF
2052 #define HESIOD 1
2053 _ACEOF
2058 # Check whether --with-sound was given.
2059 if test "${with_sound+set}" = set; then
2060 withval=$with_sound;
2061 else
2062 with_sound=yes
2067 # Check whether --with-sync-input was given.
2068 if test "${with_sync_input+set}" = set; then
2069 withval=$with_sync_input;
2070 else
2071 with_sync_input=yes
2074 if test "$with_sync_input" = yes; then
2076 cat >>confdefs.h <<\_ACEOF
2077 #define SYNC_INPUT 1
2078 _ACEOF
2083 # Check whether --with-x-toolkit was given.
2084 if test "${with_x_toolkit+set}" = set; then
2085 withval=$with_x_toolkit; case "${withval}" in
2086 y | ye | yes ) val=gtk ;;
2087 n | no ) val=no ;;
2088 l | lu | luc | luci | lucid ) val=lucid ;;
2089 a | at | ath | athe | athen | athena ) val=athena ;;
2090 m | mo | mot | moti | motif ) val=motif ;;
2091 g | gt | gtk ) val=gtk ;;
2093 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2094 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2095 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2096 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2097 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2098 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2099 { (exit 1); exit 1; }; }
2101 esac
2102 with_x_toolkit=$val
2108 # Check whether --with-xpm was given.
2109 if test "${with_xpm+set}" = set; then
2110 withval=$with_xpm;
2111 else
2112 with_xpm=yes
2116 # Check whether --with-jpeg was given.
2117 if test "${with_jpeg+set}" = set; then
2118 withval=$with_jpeg;
2119 else
2120 with_jpeg=yes
2124 # Check whether --with-tiff was given.
2125 if test "${with_tiff+set}" = set; then
2126 withval=$with_tiff;
2127 else
2128 with_tiff=yes
2132 # Check whether --with-gif was given.
2133 if test "${with_gif+set}" = set; then
2134 withval=$with_gif;
2135 else
2136 with_gif=yes
2140 # Check whether --with-png was given.
2141 if test "${with_png+set}" = set; then
2142 withval=$with_png;
2143 else
2144 with_png=yes
2148 # Check whether --with-rsvg was given.
2149 if test "${with_rsvg+set}" = set; then
2150 withval=$with_rsvg;
2151 else
2152 with_rsvg=yes
2157 # Check whether --with-freetype was given.
2158 if test "${with_freetype+set}" = set; then
2159 withval=$with_freetype;
2160 else
2161 with_freetype=yes
2165 # Check whether --with-xft was given.
2166 if test "${with_xft+set}" = set; then
2167 withval=$with_xft;
2168 else
2169 with_xft=yes
2173 # Check whether --with-libotf was given.
2174 if test "${with_libotf+set}" = set; then
2175 withval=$with_libotf;
2176 else
2177 with_libotf=yes
2181 # Check whether --with-m17n-flt was given.
2182 if test "${with_m17n_flt+set}" = set; then
2183 withval=$with_m17n_flt;
2184 else
2185 with_m17n_flt=yes
2190 # Check whether --with-toolkit-scroll-bars was given.
2191 if test "${with_toolkit_scroll_bars+set}" = set; then
2192 withval=$with_toolkit_scroll_bars;
2193 else
2194 with_toolkit_scroll_bars=yes
2198 # Check whether --with-xaw3d was given.
2199 if test "${with_xaw3d+set}" = set; then
2200 withval=$with_xaw3d;
2201 else
2202 with_xaw3d=yes
2206 # Check whether --with-xim was given.
2207 if test "${with_xim+set}" = set; then
2208 withval=$with_xim;
2209 else
2210 with_xim=yes
2214 # Check whether --with-ns was given.
2215 if test "${with_ns+set}" = set; then
2216 withval=$with_ns;
2217 else
2218 with_ns=no
2223 # Check whether --with-gpm was given.
2224 if test "${with_gpm+set}" = set; then
2225 withval=$with_gpm;
2226 else
2227 with_gpm=yes
2231 # Check whether --with-dbus was given.
2232 if test "${with_dbus+set}" = set; then
2233 withval=$with_dbus;
2234 else
2235 with_dbus=yes
2239 ## For the times when you want to build Emacs but don't have
2240 ## a suitable makeinfo, and can live without the manuals.
2242 # Check whether --with-makeinfo was given.
2243 if test "${with_makeinfo+set}" = set; then
2244 withval=$with_makeinfo;
2245 else
2246 with_makeinfo=yes
2251 # Check whether --with-gtk was given.
2252 if test "${with_gtk+set}" = set; then
2253 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2254 specify a toolkit." >&5
2255 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2256 specify a toolkit." >&2;}
2257 { (exit 1); exit 1; }; }
2262 # Check whether --with-gcc was given.
2263 if test "${with_gcc+set}" = set; then
2264 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2265 variable to specify a compiler." >&5
2266 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2267 variable to specify a compiler." >&2;}
2268 { (exit 1); exit 1; }; }
2273 # Check whether --with-pkg-config-prog was given.
2274 if test "${with_pkg_config_prog+set}" = set; then
2275 withval=$with_pkg_config_prog;
2278 if test "X${with_pkg_config_prog}" != X; then
2279 if test "${with_pkg_config_prog}" != yes; then
2280 PKG_CONFIG="${with_pkg_config_prog}"
2285 # Check whether --with-gnustep-conf was given.
2286 if test "${with_gnustep_conf+set}" = set; then
2287 withval=$with_gnustep_conf;
2290 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2291 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2292 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2293 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2295 # Check whether --enable-ns-self-contained was given.
2296 if test "${enable_ns_self_contained+set}" = set; then
2297 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2298 else
2299 EN_NS_SELF_CONTAINED=yes
2303 # Check whether --enable-asserts was given.
2304 if test "${enable_asserts+set}" = set; then
2305 enableval=$enable_asserts; USE_XASSERTS=$enableval
2306 else
2307 USE_XASSERTS=no
2311 # Check whether --enable-maintainer-mode was given.
2312 if test "${enable_maintainer_mode+set}" = set; then
2313 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2314 else
2315 USE_MAINTAINER_MODE=no
2318 if test $USE_MAINTAINER_MODE = yes; then
2319 MAINT=
2320 else
2321 MAINT=#
2325 # Check whether --enable-locallisppath was given.
2326 if test "${enable_locallisppath+set}" = set; then
2327 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2328 locallisppath=
2329 elif test "${enableval}" != "yes"; then
2330 locallisppath=${enableval}
2335 #### Make srcdir absolute, if it isn't already. It's important to
2336 #### avoid running the path through pwd unnecessarily, since pwd can
2337 #### give you automounter prefixes, which can go away. We do all this
2338 #### so Emacs can find its files when run uninstalled.
2339 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2340 unset CDPATH
2341 case "${srcdir}" in
2342 /* ) ;;
2344 ## We may be able to use the $PWD environment variable to make this
2345 ## absolute. But sometimes PWD is inaccurate.
2346 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2347 ## but that tested only for a well-formed and valid PWD,
2348 ## it did not object when PWD was well-formed and valid but just wrong.
2349 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2350 then
2351 srcdir="$PWD"
2352 else
2353 srcdir="`(cd ${srcdir}; pwd)`"
2356 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2357 esac
2359 #### Check if the source directory already has a configured system in it.
2360 if test `pwd` != `(cd ${srcdir} && pwd)` \
2361 && test -f "${srcdir}/src/config.h" ; then
2362 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2363 as a build directory right now; it has been configured in its own
2364 right. To configure in another directory as well, you MUST
2365 use GNU make. If you do not have GNU make, then you must
2366 now do \`make distclean' in ${srcdir},
2367 and then run $0 again." >&5
2368 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2369 as a build directory right now; it has been configured in its own
2370 right. To configure in another directory as well, you MUST
2371 use GNU make. If you do not have GNU make, then you must
2372 now do \`make distclean' in ${srcdir},
2373 and then run $0 again." >&2;}
2376 #### Given the configuration name, set machfile and opsysfile to the
2377 #### names of the m/*.h and s/*.h files we should use.
2379 ### Canonicalize the configuration name.
2381 ac_aux_dir=
2382 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2383 if test -f "$ac_dir/install-sh"; then
2384 ac_aux_dir=$ac_dir
2385 ac_install_sh="$ac_aux_dir/install-sh -c"
2386 break
2387 elif test -f "$ac_dir/install.sh"; then
2388 ac_aux_dir=$ac_dir
2389 ac_install_sh="$ac_aux_dir/install.sh -c"
2390 break
2391 elif test -f "$ac_dir/shtool"; then
2392 ac_aux_dir=$ac_dir
2393 ac_install_sh="$ac_aux_dir/shtool install -c"
2394 break
2396 done
2397 if test -z "$ac_aux_dir"; then
2398 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2399 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2400 { (exit 1); exit 1; }; }
2403 # These three variables are undocumented and unsupported,
2404 # and are intended to be withdrawn in a future Autoconf release.
2405 # They can cause serious problems if a builder's source tree is in a directory
2406 # whose full name contains unusual characters.
2407 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2408 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2409 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2412 # Make sure we can run config.sub.
2413 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2414 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2415 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2416 { (exit 1); exit 1; }; }
2418 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2419 $as_echo_n "checking build system type... " >&6; }
2420 if test "${ac_cv_build+set}" = set; then
2421 $as_echo_n "(cached) " >&6
2422 else
2423 ac_build_alias=$build_alias
2424 test "x$ac_build_alias" = x &&
2425 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2426 test "x$ac_build_alias" = x &&
2427 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2428 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2429 { (exit 1); exit 1; }; }
2430 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2431 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2432 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2433 { (exit 1); exit 1; }; }
2436 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2437 $as_echo "$ac_cv_build" >&6; }
2438 case $ac_cv_build in
2439 *-*-*) ;;
2440 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2441 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2442 { (exit 1); exit 1; }; };;
2443 esac
2444 build=$ac_cv_build
2445 ac_save_IFS=$IFS; IFS='-'
2446 set x $ac_cv_build
2447 shift
2448 build_cpu=$1
2449 build_vendor=$2
2450 shift; shift
2451 # Remember, the first character of IFS is used to create $*,
2452 # except with old shells:
2453 build_os=$*
2454 IFS=$ac_save_IFS
2455 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2458 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2459 $as_echo_n "checking host system type... " >&6; }
2460 if test "${ac_cv_host+set}" = set; then
2461 $as_echo_n "(cached) " >&6
2462 else
2463 if test "x$host_alias" = x; then
2464 ac_cv_host=$ac_cv_build
2465 else
2466 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2467 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2468 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2469 { (exit 1); exit 1; }; }
2473 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2474 $as_echo "$ac_cv_host" >&6; }
2475 case $ac_cv_host in
2476 *-*-*) ;;
2477 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2478 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2479 { (exit 1); exit 1; }; };;
2480 esac
2481 host=$ac_cv_host
2482 ac_save_IFS=$IFS; IFS='-'
2483 set x $ac_cv_host
2484 shift
2485 host_cpu=$1
2486 host_vendor=$2
2487 shift; shift
2488 # Remember, the first character of IFS is used to create $*,
2489 # except with old shells:
2490 host_os=$*
2491 IFS=$ac_save_IFS
2492 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2495 canonical=$host
2496 configuration=${host_alias-${build_alias-$host}}
2500 ### If you add support for a new configuration, add code to this
2501 ### switch statement to recognize your configuration name and select
2502 ### the appropriate operating system and machine description files.
2504 ### You would hope that you could choose an m/*.h file pretty much
2505 ### based on the machine portion of the configuration name, and an s-
2506 ### file based on the operating system portion. However, it turns out
2507 ### that each m/*.h file is pretty manufacturer-specific - for
2508 ### example mips.h is MIPS
2509 ### So we basically have to have a special case for each
2510 ### configuration name.
2512 ### As far as handling version numbers on operating systems is
2513 ### concerned, make sure things will fail in a fixable way. If
2514 ### /etc/MACHINES doesn't say anything about version numbers, be
2515 ### prepared to handle anything reasonably. If version numbers
2516 ### matter, be sure /etc/MACHINES says something about it.
2518 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2519 ### "System V Release 4"; he writes, "The old convention encouraged
2520 ### confusion between `system' and `release' levels'."
2522 machine='' opsys='' unported=no
2523 case "${canonical}" in
2525 ## FreeBSD ports
2526 *-*-freebsd* )
2527 opsys=freebsd
2528 case "${canonical}" in
2529 alpha*-*-freebsd*) machine=alpha ;;
2530 arm*-*-freebsd*) machine=arm ;;
2531 ia64-*-freebsd*) machine=ia64 ;;
2532 sparc-*-freebsd*) machine=sparc ;;
2533 sparc64-*-freebsd*) machine=sparc ;;
2534 powerpc-*-freebsd*) machine=macppc ;;
2535 i[3456]86-*-freebsd*) machine=intel386 ;;
2536 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2537 esac
2540 ## FreeBSD kernel + glibc based userland
2541 *-*-kfreebsd*gnu* )
2542 opsys=gnu-kfreebsd
2543 case "${canonical}" in
2544 alpha*-*-kfreebsd*) machine=alpha ;;
2545 ia64-*-kfreebsd*) machine=ia64 ;;
2546 sparc-*-kfreebsd*) machine=sparc ;;
2547 sparc64-*-kfreebsd*) machine=sparc ;;
2548 powerpc-*-kfreebsd*) machine=macppc ;;
2549 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2550 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2551 esac
2554 ## NetBSD ports
2555 *-*-netbsd* )
2556 opsys=netbsd
2557 if test -f /usr/lib/crti.o; then
2559 cat >>confdefs.h <<\_ACEOF
2560 #define HAVE_CRTIN /**/
2561 _ACEOF
2565 case "${canonical}" in
2566 alpha*-*-netbsd*) machine=alpha ;;
2567 i[3456]86-*-netbsd*) machine=intel386 ;;
2568 powerpc-*-netbsd*) machine=macppc ;;
2569 sparc*-*-netbsd*) machine=sparc ;;
2570 vax-*-netbsd*) machine=vax ;;
2571 arm-*-netbsd*) machine=arm ;;
2572 x86_64-*-netbsd*) machine=amdx86-64 ;;
2573 hppa-*-netbsd*) machine=hp800 ;;
2574 m68k-*-netbsd*) machine=m68k ;;
2575 esac
2578 ## OpenBSD ports
2579 *-*-openbsd* )
2580 opsys=openbsd
2581 case "${canonical}" in
2582 alpha*-*-openbsd*) machine=alpha ;;
2583 arm-*-openbsd*) machine=arm ;;
2584 i386-*-openbsd*) machine=intel386 ;;
2585 powerpc-*-openbsd*) machine=macppc ;;
2586 sparc*-*-openbsd*) machine=sparc ;;
2587 vax-*-openbsd*) machine=vax ;;
2588 x86_64-*-openbsd*) machine=amdx86-64 ;;
2589 hppa-*-openbsd*) machine=hp800 ;;
2590 esac
2593 ## LynxOS ports
2594 *-*-lynxos* )
2595 opsys=lynxos
2596 case "${canonical}" in
2597 i[3456]86-*-lynxos*) machine=intel386 ;;
2598 powerpc-*-lynxos*) machine=powerpc ;;
2599 esac
2602 alpha*-*-linux-gnu* )
2603 machine=alpha opsys=gnu-linux
2606 arm*-*-linux-gnu* )
2607 machine=arm opsys=gnu-linux
2610 ## Apple Darwin / Mac OS X
2611 *-apple-darwin* )
2612 case "${canonical}" in
2613 i[3456]86-* ) machine=intel386 ;;
2614 powerpc-* ) machine=macppc ;;
2615 * ) unported=yes ;;
2616 esac
2617 opsys=darwin
2618 # Define CPP as follows to make autoconf work correctly.
2619 CPP="${CC-cc} -E -no-cpp-precomp"
2620 # Use fink packages if available.
2621 if test -d /sw/include && test -d /sw/lib; then
2622 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2623 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2624 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2628 ## HP 9000 series 700 and 800, running HP/UX
2629 hppa*-hp-hpux10.2* )
2630 machine=hp800 opsys=hpux10-20
2632 hppa*-hp-hpux1[1-9]* )
2633 machine=hp800 opsys=hpux11
2634 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2637 hppa*-*-linux-gnu* )
2638 machine=hp800 opsys=gnu-linux
2641 ## IBM machines
2642 s390-*-linux-gnu* )
2643 machine=ibms390 opsys=gnu-linux
2645 s390x-*-linux-gnu* )
2646 machine=ibms390x opsys=gnu-linux
2648 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2649 machine=ibmrs6000 opsys=aix4-2
2651 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2652 machine=ibmrs6000 opsys=aix4-2
2654 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2655 machine=ibmrs6000 opsys=aix4-2
2657 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2658 machine=ibmrs6000 opsys=aix4-2
2661 ## Macintosh PowerPC
2662 powerpc*-*-linux-gnu* )
2663 machine=macppc opsys=gnu-linux
2666 ## Silicon Graphics machines
2667 ## Iris 4D
2668 mips-sgi-irix6.5 )
2669 machine=iris4d opsys=irix6-5
2670 # Without defining _LANGUAGE_C, things get masked out in the headers
2671 # so that, for instance, grepping for `free' in stdlib.h fails and
2672 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2673 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2674 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2677 ## Suns
2678 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2679 machine=sparc opsys=gnu-linux
2682 *-sun-solaris* \
2683 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2684 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2685 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2686 case "${canonical}" in
2687 i[3456]86-*-* ) machine=intel386 ;;
2688 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2689 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2690 sparc* ) machine=sparc ;;
2691 * ) unported=yes ;;
2692 esac
2693 case "${canonical}" in
2694 *-sunos5.3* | *-solaris2.3* )
2695 opsys=sol2-3
2696 NON_GNU_CPP=/usr/ccs/lib/cpp
2698 *-sunos5.4* | *-solaris2.4* )
2699 opsys=sol2-4
2700 NON_GNU_CPP=/usr/ccs/lib/cpp
2701 RANLIB="ar -ts"
2703 *-sunos5.5* | *-solaris2.5* )
2704 opsys=sol2-5
2705 NON_GNU_CPP=/usr/ccs/lib/cpp
2706 RANLIB="ar -ts"
2708 *-sunos5.6* | *-solaris2.6* )
2709 opsys=sol2-6
2710 NON_GNU_CPP=/usr/ccs/lib/cpp
2711 RANLIB="ar -ts"
2713 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2714 opsys=sol2-6
2715 emacs_check_sunpro_c=yes
2716 NON_GNU_CPP=/usr/ccs/lib/cpp
2718 *-sunos5* | *-solaris* )
2719 opsys=sol2-10
2720 emacs_check_sunpro_c=yes
2721 NON_GNU_CPP=/usr/ccs/lib/cpp
2723 esac
2724 ## Watch out for a compiler that we know will not work.
2725 case "${canonical}" in
2726 *-solaris* | *-sunos5* )
2727 if [ "x$CC" = x/usr/ucb/cc ]; then
2728 ## /usr/ucb/cc doesn't work;
2729 ## we should find some other compiler that does work.
2730 unset CC
2733 *) ;;
2734 esac
2737 ## Vaxen.
2738 vax-dec-* )
2739 machine=vax
2740 case "${canonical}" in
2741 *-vms* ) opsys=vms ;;
2742 * ) unported=yes
2743 esac
2746 ## IA-64
2747 ia64*-*-linux* )
2748 machine=ia64 opsys=gnu-linux
2751 ## Intel 386 machines where we don't care about the manufacturer
2752 i[3456]86-*-* )
2753 machine=intel386
2754 case "${canonical}" in
2755 *-cygwin ) opsys=cygwin ;;
2756 *-darwin* ) opsys=darwin
2757 CPP="${CC-cc} -E -no-cpp-precomp"
2759 *-linux-gnu* ) opsys=gnu-linux ;;
2760 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2761 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2762 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2763 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2764 esac
2767 ## m68k Linux-based GNU system
2768 m68k-*-linux-gnu* )
2769 machine=m68k opsys=gnu-linux
2772 ## Mips Linux-based GNU system
2773 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2774 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2775 machine=mips opsys=gnu-linux
2778 ## AMD x86-64 Linux-based GNU system
2779 x86_64-*-linux-gnu* )
2780 machine=amdx86-64 opsys=gnu-linux
2783 ## Tensilica Xtensa Linux-based GNU system
2784 xtensa*-*-linux-gnu* )
2785 machine=xtensa opsys=gnu-linux
2788 ## SuperH Linux-based GNU system
2789 sh[34]*-*-linux-gnu* )
2790 machine=sh3 opsys=gnu-linux
2794 unported=yes
2796 esac
2798 ### If the code above didn't choose an operating system, just choose
2799 ### an operating system based on the configuration name. You really
2800 ### only want to use this when you have no idea what the right
2801 ### operating system is; if you know what operating systems a machine
2802 ### runs, it's cleaner to make it explicit in the case statement
2803 ### above.
2804 if test x"${opsys}" = x; then
2805 case "${canonical}" in
2806 *-gnu* ) opsys=gnu ;;
2807 *-sysv4.2uw* ) opsys=unixware ;;
2808 *-sysv5uw* ) opsys=unixware ;;
2809 *-sysv5OpenUNIX* ) opsys=unixware ;;
2810 *-sysv4.1* | *-sysvr4.1* )
2811 NON_GNU_CPP=/usr/lib/cpp
2812 opsys=usg5-4 ;;
2813 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2814 if [ x$NON_GNU_CPP = x ]; then
2815 if [ -f /usr/ccs/lib/cpp ]; then
2816 NON_GNU_CPP=/usr/ccs/lib/cpp
2817 else
2818 NON_GNU_CPP=/lib/cpp
2821 opsys=usg5-4-2 ;;
2822 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2824 unported=yes
2826 esac
2831 if test $unported = yes; then
2832 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2833 Check \`etc/MACHINES' for recognized configuration names." >&5
2834 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2835 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2836 { (exit 1); exit 1; }; }
2839 machfile="m/${machine}.h"
2840 opsysfile="s/${opsys}.h"
2843 #### Choose a compiler.
2844 test -n "$CC" && cc_specified=yes
2846 # Save the value of CFLAGS that the user specified.
2847 SPECIFIED_CFLAGS="$CFLAGS"
2849 ac_ext=c
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2873 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2876 done
2877 done
2878 IFS=$as_save_IFS
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2886 else
2887 { $as_echo "$as_me:$LINENO: result: no" >&5
2888 $as_echo "no" >&6; }
2893 if test -z "$ac_cv_prog_CC"; then
2894 ac_ct_CC=$CC
2895 # Extract the first word of "gcc", so it can be a program name with args.
2896 set dummy gcc; ac_word=$2
2897 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_ac_ct_CC="gcc"
2913 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2916 done
2917 done
2918 IFS=$as_save_IFS
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2925 $as_echo "$ac_ct_CC" >&6; }
2926 else
2927 { $as_echo "$as_me:$LINENO: result: no" >&5
2928 $as_echo "no" >&6; }
2931 if test "x$ac_ct_CC" = x; then
2932 CC=""
2933 else
2934 case $cross_compiling:$ac_tool_warned in
2935 yes:)
2936 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2937 whose name does not start with the host triplet. If you think this
2938 configuration is useful to you, please write to autoconf@gnu.org." >&5
2939 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2940 whose name does not start with the host triplet. If you think this
2941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2942 ac_tool_warned=yes ;;
2943 esac
2944 CC=$ac_ct_CC
2946 else
2947 CC="$ac_cv_prog_CC"
2950 if test -z "$CC"; then
2951 if test -n "$ac_tool_prefix"; then
2952 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2953 set dummy ${ac_tool_prefix}cc; ac_word=$2
2954 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if test "${ac_cv_prog_CC+set}" = set; then
2957 $as_echo_n "(cached) " >&6
2958 else
2959 if test -n "$CC"; then
2960 ac_cv_prog_CC="$CC" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_CC="${ac_tool_prefix}cc"
2970 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2973 done
2974 done
2975 IFS=$as_save_IFS
2979 CC=$ac_cv_prog_CC
2980 if test -n "$CC"; then
2981 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2982 $as_echo "$CC" >&6; }
2983 else
2984 { $as_echo "$as_me:$LINENO: result: no" >&5
2985 $as_echo "no" >&6; }
2991 if test -z "$CC"; then
2992 # Extract the first word of "cc", so it can be a program name with args.
2993 set dummy cc; ac_word=$2
2994 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if test "${ac_cv_prog_CC+set}" = set; then
2997 $as_echo_n "(cached) " >&6
2998 else
2999 if test -n "$CC"; then
3000 ac_cv_prog_CC="$CC" # Let the user override the test.
3001 else
3002 ac_prog_rejected=no
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3011 ac_prog_rejected=yes
3012 continue
3014 ac_cv_prog_CC="cc"
3015 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 break 2
3018 done
3019 done
3020 IFS=$as_save_IFS
3022 if test $ac_prog_rejected = yes; then
3023 # We found a bogon in the path, so make sure we never use it.
3024 set dummy $ac_cv_prog_CC
3025 shift
3026 if test $# != 0; then
3027 # We chose a different compiler from the bogus one.
3028 # However, it has the same basename, so the bogon will be chosen
3029 # first if we set CC to just the basename; use the full file name.
3030 shift
3031 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3039 $as_echo "$CC" >&6; }
3040 else
3041 { $as_echo "$as_me:$LINENO: result: no" >&5
3042 $as_echo "no" >&6; }
3047 if test -z "$CC"; then
3048 if test -n "$ac_tool_prefix"; then
3049 for ac_prog in cl.exe
3051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if test "${ac_cv_prog_CC+set}" = set; then
3056 $as_echo_n "(cached) " >&6
3057 else
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3072 done
3073 done
3074 IFS=$as_save_IFS
3078 CC=$ac_cv_prog_CC
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3082 else
3083 { $as_echo "$as_me:$LINENO: result: no" >&5
3084 $as_echo "no" >&6; }
3088 test -n "$CC" && break
3089 done
3091 if test -z "$CC"; then
3092 ac_ct_CC=$CC
3093 for ac_prog in cl.exe
3095 # Extract the first word of "$ac_prog", so it can be a program name with args.
3096 set dummy $ac_prog; ac_word=$2
3097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3100 $as_echo_n "(cached) " >&6
3101 else
3102 if test -n "$ac_ct_CC"; then
3103 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 ac_cv_prog_ac_ct_CC="$ac_prog"
3113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3116 done
3117 done
3118 IFS=$as_save_IFS
3122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3123 if test -n "$ac_ct_CC"; then
3124 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3125 $as_echo "$ac_ct_CC" >&6; }
3126 else
3127 { $as_echo "$as_me:$LINENO: result: no" >&5
3128 $as_echo "no" >&6; }
3132 test -n "$ac_ct_CC" && break
3133 done
3135 if test "x$ac_ct_CC" = x; then
3136 CC=""
3137 else
3138 case $cross_compiling:$ac_tool_warned in
3139 yes:)
3140 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3141 whose name does not start with the host triplet. If you think this
3142 configuration is useful to you, please write to autoconf@gnu.org." >&5
3143 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3144 whose name does not start with the host triplet. If you think this
3145 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3146 ac_tool_warned=yes ;;
3147 esac
3148 CC=$ac_ct_CC
3155 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3156 See \`config.log' for more details." >&5
3157 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3158 See \`config.log' for more details." >&2;}
3159 { (exit 1); exit 1; }; }
3161 # Provide some information about the compiler.
3162 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3163 set X $ac_compile
3164 ac_compiler=$2
3165 { (ac_try="$ac_compiler --version >&5"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3171 $as_echo "$ac_try_echo") >&5
3172 (eval "$ac_compiler --version >&5") 2>&5
3173 ac_status=$?
3174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }
3176 { (ac_try="$ac_compiler -v >&5"
3177 case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3182 $as_echo "$ac_try_echo") >&5
3183 (eval "$ac_compiler -v >&5") 2>&5
3184 ac_status=$?
3185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }
3187 { (ac_try="$ac_compiler -V >&5"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3193 $as_echo "$ac_try_echo") >&5
3194 (eval "$ac_compiler -V >&5") 2>&5
3195 ac_status=$?
3196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }
3199 cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h. */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3207 main ()
3211 return 0;
3213 _ACEOF
3214 ac_clean_files_save=$ac_clean_files
3215 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3216 # Try to create an executable without -o first, disregard a.out.
3217 # It will help us diagnose broken compilers, and finding out an intuition
3218 # of exeext.
3219 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3220 $as_echo_n "checking for C compiler default output file name... " >&6; }
3221 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3223 # The possible output files:
3224 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3226 ac_rmfiles=
3227 for ac_file in $ac_files
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3232 esac
3233 done
3234 rm -f $ac_rmfiles
3236 if { (ac_try="$ac_link_default"
3237 case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3242 $as_echo "$ac_try_echo") >&5
3243 (eval "$ac_link_default") 2>&5
3244 ac_status=$?
3245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; then
3247 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3248 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3249 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3250 # so that the user can short-circuit this test for compilers unknown to
3251 # Autoconf.
3252 for ac_file in $ac_files ''
3254 test -f "$ac_file" || continue
3255 case $ac_file in
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3258 [ab].out )
3259 # We found the default executable, but exeext='' is most
3260 # certainly right.
3261 break;;
3262 *.* )
3263 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3264 then :; else
3265 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3267 # We set ac_cv_exeext here because the later test for it is not
3268 # safe: cross compilers may not add the suffix if given an `-o'
3269 # argument, so we may need to know it at that point already.
3270 # Even if this section looks crufty: it has the advantage of
3271 # actually working.
3272 break;;
3274 break;;
3275 esac
3276 done
3277 test "$ac_cv_exeext" = no && ac_cv_exeext=
3279 else
3280 ac_file=''
3283 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3284 $as_echo "$ac_file" >&6; }
3285 if test -z "$ac_file"; then
3286 $as_echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3289 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3290 See \`config.log' for more details." >&5
3291 $as_echo "$as_me: error: C compiler cannot create executables
3292 See \`config.log' for more details." >&2;}
3293 { (exit 77); exit 77; }; }
3296 ac_exeext=$ac_cv_exeext
3298 # Check that the compiler produces executables we can run. If not, either
3299 # the compiler is broken, or we cross compile.
3300 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3301 $as_echo_n "checking whether the C compiler works... " >&6; }
3302 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3303 # If not cross compiling, check that we can run a simple program.
3304 if test "$cross_compiling" != yes; then
3305 if { ac_try='./$ac_file'
3306 { (case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309 esac
3310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3311 $as_echo "$ac_try_echo") >&5
3312 (eval "$ac_try") 2>&5
3313 ac_status=$?
3314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; }; then
3316 cross_compiling=no
3317 else
3318 if test "$cross_compiling" = maybe; then
3319 cross_compiling=yes
3320 else
3321 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3322 If you meant to cross compile, use \`--host'.
3323 See \`config.log' for more details." >&5
3324 $as_echo "$as_me: error: cannot run C compiled programs.
3325 If you meant to cross compile, use \`--host'.
3326 See \`config.log' for more details." >&2;}
3327 { (exit 1); exit 1; }; }
3331 { $as_echo "$as_me:$LINENO: result: yes" >&5
3332 $as_echo "yes" >&6; }
3334 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3335 ac_clean_files=$ac_clean_files_save
3336 # Check that the compiler produces executables we can run. If not, either
3337 # the compiler is broken, or we cross compile.
3338 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3339 $as_echo_n "checking whether we are cross compiling... " >&6; }
3340 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3341 $as_echo "$cross_compiling" >&6; }
3343 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3344 $as_echo_n "checking for suffix of executables... " >&6; }
3345 if { (ac_try="$ac_link"
3346 case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349 esac
3350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3351 $as_echo "$ac_try_echo") >&5
3352 (eval "$ac_link") 2>&5
3353 ac_status=$?
3354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; then
3356 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3357 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3358 # work properly (i.e., refer to `conftest.exe'), while it won't with
3359 # `rm'.
3360 for ac_file in conftest.exe conftest conftest.*; do
3361 test -f "$ac_file" || continue
3362 case $ac_file in
3363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3364 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3365 break;;
3366 * ) break;;
3367 esac
3368 done
3369 else
3370 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3371 See \`config.log' for more details." >&5
3372 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3373 See \`config.log' for more details." >&2;}
3374 { (exit 1); exit 1; }; }
3377 rm -f conftest$ac_cv_exeext
3378 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3379 $as_echo "$ac_cv_exeext" >&6; }
3381 rm -f conftest.$ac_ext
3382 EXEEXT=$ac_cv_exeext
3383 ac_exeext=$EXEEXT
3384 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3385 $as_echo_n "checking for suffix of object files... " >&6; }
3386 if test "${ac_cv_objext+set}" = set; then
3387 $as_echo_n "(cached) " >&6
3388 else
3389 cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h. */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3397 main ()
3401 return 0;
3403 _ACEOF
3404 rm -f conftest.o conftest.obj
3405 if { (ac_try="$ac_compile"
3406 case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3411 $as_echo "$ac_try_echo") >&5
3412 (eval "$ac_compile") 2>&5
3413 ac_status=$?
3414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; then
3416 for ac_file in conftest.o conftest.obj conftest.*; do
3417 test -f "$ac_file" || continue;
3418 case $ac_file in
3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3420 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3421 break;;
3422 esac
3423 done
3424 else
3425 $as_echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3429 See \`config.log' for more details." >&5
3430 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3431 See \`config.log' for more details." >&2;}
3432 { (exit 1); exit 1; }; }
3435 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3437 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3438 $as_echo "$ac_cv_objext" >&6; }
3439 OBJEXT=$ac_cv_objext
3440 ac_objext=$OBJEXT
3441 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3442 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3443 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3444 $as_echo_n "(cached) " >&6
3445 else
3446 cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h. */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3454 main ()
3456 #ifndef __GNUC__
3457 choke me
3458 #endif
3461 return 0;
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (ac_try="$ac_compile"
3466 case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3471 $as_echo "$ac_try_echo") >&5
3472 (eval "$ac_compile") 2>conftest.er1
3473 ac_status=$?
3474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } && {
3479 test -z "$ac_c_werror_flag" ||
3480 test ! -s conftest.err
3481 } && test -s conftest.$ac_objext; then
3482 ac_compiler_gnu=yes
3483 else
3484 $as_echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 ac_compiler_gnu=no
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3494 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3495 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3496 if test $ac_compiler_gnu = yes; then
3497 GCC=yes
3498 else
3499 GCC=
3501 ac_test_CFLAGS=${CFLAGS+set}
3502 ac_save_CFLAGS=$CFLAGS
3503 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3504 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3505 if test "${ac_cv_prog_cc_g+set}" = set; then
3506 $as_echo_n "(cached) " >&6
3507 else
3508 ac_save_c_werror_flag=$ac_c_werror_flag
3509 ac_c_werror_flag=yes
3510 ac_cv_prog_cc_g=no
3511 CFLAGS="-g"
3512 cat >conftest.$ac_ext <<_ACEOF
3513 /* confdefs.h. */
3514 _ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3520 main ()
3524 return 0;
3526 _ACEOF
3527 rm -f conftest.$ac_objext
3528 if { (ac_try="$ac_compile"
3529 case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532 esac
3533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3534 $as_echo "$ac_try_echo") >&5
3535 (eval "$ac_compile") 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } && {
3542 test -z "$ac_c_werror_flag" ||
3543 test ! -s conftest.err
3544 } && test -s conftest.$ac_objext; then
3545 ac_cv_prog_cc_g=yes
3546 else
3547 $as_echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3550 CFLAGS=""
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3559 main ()
3563 return 0;
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3568 case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571 esac
3572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3573 $as_echo "$ac_try_echo") >&5
3574 (eval "$ac_compile") 2>conftest.er1
3575 ac_status=$?
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
3578 cat conftest.err >&5
3579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } && {
3581 test -z "$ac_c_werror_flag" ||
3582 test ! -s conftest.err
3583 } && test -s conftest.$ac_objext; then
3585 else
3586 $as_echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 ac_c_werror_flag=$ac_save_c_werror_flag
3590 CFLAGS="-g"
3591 cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3599 main ()
3603 return 0;
3605 _ACEOF
3606 rm -f conftest.$ac_objext
3607 if { (ac_try="$ac_compile"
3608 case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611 esac
3612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3613 $as_echo "$ac_try_echo") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } && {
3621 test -z "$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 } && test -s conftest.$ac_objext; then
3624 ac_cv_prog_cc_g=yes
3625 else
3626 $as_echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_c_werror_flag=$ac_save_c_werror_flag
3641 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3642 $as_echo "$ac_cv_prog_cc_g" >&6; }
3643 if test "$ac_test_CFLAGS" = set; then
3644 CFLAGS=$ac_save_CFLAGS
3645 elif test $ac_cv_prog_cc_g = yes; then
3646 if test "$GCC" = yes; then
3647 CFLAGS="-g -O2"
3648 else
3649 CFLAGS="-g"
3651 else
3652 if test "$GCC" = yes; then
3653 CFLAGS="-O2"
3654 else
3655 CFLAGS=
3658 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3659 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3660 if test "${ac_cv_prog_cc_c89+set}" = set; then
3661 $as_echo_n "(cached) " >&6
3662 else
3663 ac_cv_prog_cc_c89=no
3664 ac_save_CC=$CC
3665 cat >conftest.$ac_ext <<_ACEOF
3666 /* confdefs.h. */
3667 _ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3671 #include <stdarg.h>
3672 #include <stdio.h>
3673 #include <sys/types.h>
3674 #include <sys/stat.h>
3675 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3676 struct buf { int x; };
3677 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3678 static char *e (p, i)
3679 char **p;
3680 int i;
3682 return p[i];
3684 static char *f (char * (*g) (char **, int), char **p, ...)
3686 char *s;
3687 va_list v;
3688 va_start (v,p);
3689 s = g (p, va_arg (v,int));
3690 va_end (v);
3691 return s;
3694 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3695 function prototypes and stuff, but not '\xHH' hex character constants.
3696 These don't provoke an error unfortunately, instead are silently treated
3697 as 'x'. The following induces an error, until -std is added to get
3698 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3699 array size at least. It's necessary to write '\x00'==0 to get something
3700 that's true only with -std. */
3701 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3703 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3704 inside strings and character constants. */
3705 #define FOO(x) 'x'
3706 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3708 int test (int i, double x);
3709 struct s1 {int (*f) (int a);};
3710 struct s2 {int (*f) (double a);};
3711 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3712 int argc;
3713 char **argv;
3715 main ()
3717 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3719 return 0;
3721 _ACEOF
3722 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3723 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3725 CC="$ac_save_CC $ac_arg"
3726 rm -f conftest.$ac_objext
3727 if { (ac_try="$ac_compile"
3728 case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3731 esac
3732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3733 $as_echo "$ac_try_echo") >&5
3734 (eval "$ac_compile") 2>conftest.er1
3735 ac_status=$?
3736 grep -v '^ *+' conftest.er1 >conftest.err
3737 rm -f conftest.er1
3738 cat conftest.err >&5
3739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } && {
3741 test -z "$ac_c_werror_flag" ||
3742 test ! -s conftest.err
3743 } && test -s conftest.$ac_objext; then
3744 ac_cv_prog_cc_c89=$ac_arg
3745 else
3746 $as_echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3752 rm -f core conftest.err conftest.$ac_objext
3753 test "x$ac_cv_prog_cc_c89" != "xno" && break
3754 done
3755 rm -f conftest.$ac_ext
3756 CC=$ac_save_CC
3759 # AC_CACHE_VAL
3760 case "x$ac_cv_prog_cc_c89" in
3762 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3763 $as_echo "none needed" >&6; } ;;
3764 xno)
3765 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3766 $as_echo "unsupported" >&6; } ;;
3768 CC="$CC $ac_cv_prog_cc_c89"
3769 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3770 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3771 esac
3774 ac_ext=c
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 # On Suns, sometimes $CPP names a directory.
3782 if test -n "$CPP" && test -d "$CPP"; then
3783 CPP=
3786 ## If not using gcc, and on Solaris, and no CPP specified, see if
3787 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3788 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3789 test x"$CPP" = x; then
3790 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3791 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3793 if test "${emacs_cv_sunpro_c+set}" = set; then
3794 $as_echo_n "(cached) " >&6
3795 else
3796 cat >conftest.$ac_ext <<_ACEOF
3797 /* confdefs.h. */
3798 _ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3804 main ()
3806 #ifndef __SUNPRO_C
3807 fail;
3808 #endif
3811 return 0;
3813 _ACEOF
3814 rm -f conftest.$ac_objext conftest$ac_exeext
3815 if { (ac_try="$ac_link"
3816 case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3819 esac
3820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3821 $as_echo "$ac_try_echo") >&5
3822 (eval "$ac_link") 2>conftest.er1
3823 ac_status=$?
3824 grep -v '^ *+' conftest.er1 >conftest.err
3825 rm -f conftest.er1
3826 cat conftest.err >&5
3827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } && {
3829 test -z "$ac_c_werror_flag" ||
3830 test ! -s conftest.err
3831 } && test -s conftest$ac_exeext && {
3832 test "$cross_compiling" = yes ||
3833 $as_test_x conftest$ac_exeext
3834 }; then
3835 emacs_cv_sunpro_c=yes
3836 else
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 emacs_cv_sunpro_c=no
3843 rm -rf conftest.dSYM
3844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3845 conftest$ac_exeext conftest.$ac_ext
3848 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3849 $as_echo "$emacs_cv_sunpro_c" >&6; }
3851 if test x"$emacs_cv_sunpro_c" = xyes; then
3852 NON_GNU_CPP="$CC -E -Xs"
3856 #### Some systems specify a CPP to use unless we are using GCC.
3857 #### Now that we know whether we are using GCC, we can decide whether
3858 #### to use that one.
3859 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3860 then
3861 CPP="$NON_GNU_CPP"
3864 #### Some systems specify a CC to use unless we are using GCC.
3865 #### Now that we know whether we are using GCC, we can decide whether
3866 #### to use that one.
3867 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3868 test x$cc_specified != xyes
3869 then
3870 CC="$NON_GNU_CC"
3873 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3874 then
3875 CC="$CC $GCC_TEST_OPTIONS"
3878 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3879 then
3880 CC="$CC $NON_GCC_TEST_OPTIONS"
3883 ac_ext=c
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3889 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3890 # On Suns, sometimes $CPP names a directory.
3891 if test -n "$CPP" && test -d "$CPP"; then
3892 CPP=
3894 if test -z "$CPP"; then
3895 if test "${ac_cv_prog_CPP+set}" = set; then
3896 $as_echo_n "(cached) " >&6
3897 else
3898 # Double quotes because CPP needs to be expanded
3899 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3901 ac_preproc_ok=false
3902 for ac_c_preproc_warn_flag in '' yes
3904 # Use a header file that comes with gcc, so configuring glibc
3905 # with a fresh cross-compiler works.
3906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3907 # <limits.h> exists even on freestanding compilers.
3908 # On the NeXT, cc -E runs the code through the compiler's parser,
3909 # not just through cpp. "Syntax error" is here to catch this case.
3910 cat >conftest.$ac_ext <<_ACEOF
3911 /* confdefs.h. */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3916 #ifdef __STDC__
3917 # include <limits.h>
3918 #else
3919 # include <assert.h>
3920 #endif
3921 Syntax error
3922 _ACEOF
3923 if { (ac_try="$ac_cpp conftest.$ac_ext"
3924 case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927 esac
3928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3929 $as_echo "$ac_try_echo") >&5
3930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3931 ac_status=$?
3932 grep -v '^ *+' conftest.er1 >conftest.err
3933 rm -f conftest.er1
3934 cat conftest.err >&5
3935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } >/dev/null && {
3937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3938 test ! -s conftest.err
3939 }; then
3941 else
3942 $as_echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3945 # Broken: fails on valid input.
3946 continue
3949 rm -f conftest.err conftest.$ac_ext
3951 # OK, works on sane cases. Now check whether nonexistent headers
3952 # can be detected and how.
3953 cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h. */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 #include <ac_nonexistent.h>
3960 _ACEOF
3961 if { (ac_try="$ac_cpp conftest.$ac_ext"
3962 case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3967 $as_echo "$ac_try_echo") >&5
3968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3969 ac_status=$?
3970 grep -v '^ *+' conftest.er1 >conftest.err
3971 rm -f conftest.er1
3972 cat conftest.err >&5
3973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } >/dev/null && {
3975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3976 test ! -s conftest.err
3977 }; then
3978 # Broken: success on invalid input.
3979 continue
3980 else
3981 $as_echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3984 # Passes both tests.
3985 ac_preproc_ok=:
3986 break
3989 rm -f conftest.err conftest.$ac_ext
3991 done
3992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3993 rm -f conftest.err conftest.$ac_ext
3994 if $ac_preproc_ok; then
3995 break
3998 done
3999 ac_cv_prog_CPP=$CPP
4002 CPP=$ac_cv_prog_CPP
4003 else
4004 ac_cv_prog_CPP=$CPP
4006 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4007 $as_echo "$CPP" >&6; }
4008 ac_preproc_ok=false
4009 for ac_c_preproc_warn_flag in '' yes
4011 # Use a header file that comes with gcc, so configuring glibc
4012 # with a fresh cross-compiler works.
4013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4014 # <limits.h> exists even on freestanding compilers.
4015 # On the NeXT, cc -E runs the code through the compiler's parser,
4016 # not just through cpp. "Syntax error" is here to catch this case.
4017 cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h. */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 #ifdef __STDC__
4024 # include <limits.h>
4025 #else
4026 # include <assert.h>
4027 #endif
4028 Syntax error
4029 _ACEOF
4030 if { (ac_try="$ac_cpp conftest.$ac_ext"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4036 $as_echo "$ac_try_echo") >&5
4037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4038 ac_status=$?
4039 grep -v '^ *+' conftest.er1 >conftest.err
4040 rm -f conftest.er1
4041 cat conftest.err >&5
4042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } >/dev/null && {
4044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4045 test ! -s conftest.err
4046 }; then
4048 else
4049 $as_echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 # Broken: fails on valid input.
4053 continue
4056 rm -f conftest.err conftest.$ac_ext
4058 # OK, works on sane cases. Now check whether nonexistent headers
4059 # can be detected and how.
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h. */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 #include <ac_nonexistent.h>
4067 _ACEOF
4068 if { (ac_try="$ac_cpp conftest.$ac_ext"
4069 case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072 esac
4073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4074 $as_echo "$ac_try_echo") >&5
4075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } >/dev/null && {
4082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4083 test ! -s conftest.err
4084 }; then
4085 # Broken: success on invalid input.
4086 continue
4087 else
4088 $as_echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 # Passes both tests.
4092 ac_preproc_ok=:
4093 break
4096 rm -f conftest.err conftest.$ac_ext
4098 done
4099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4100 rm -f conftest.err conftest.$ac_ext
4101 if $ac_preproc_ok; then
4103 else
4104 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4105 See \`config.log' for more details." >&5
4106 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4107 See \`config.log' for more details." >&2;}
4108 { (exit 1); exit 1; }; }
4111 ac_ext=c
4112 ac_cpp='$CPP $CPPFLAGS'
4113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4119 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4120 if test "${ac_cv_path_GREP+set}" = set; then
4121 $as_echo_n "(cached) " >&6
4122 else
4123 if test -z "$GREP"; then
4124 ac_path_GREP_found=false
4125 # Loop through the user's path and test for each of PROGNAME-LIST
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_prog in grep ggrep; do
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4134 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4135 # Check for GNU ac_path_GREP and select it if it is found.
4136 # Check for GNU $ac_path_GREP
4137 case `"$ac_path_GREP" --version 2>&1` in
4138 *GNU*)
4139 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4141 ac_count=0
4142 $as_echo_n 0123456789 >"conftest.in"
4143 while :
4145 cat "conftest.in" "conftest.in" >"conftest.tmp"
4146 mv "conftest.tmp" "conftest.in"
4147 cp "conftest.in" "conftest.nl"
4148 $as_echo 'GREP' >> "conftest.nl"
4149 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4151 ac_count=`expr $ac_count + 1`
4152 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4153 # Best one so far, save it but keep looking for a better one
4154 ac_cv_path_GREP="$ac_path_GREP"
4155 ac_path_GREP_max=$ac_count
4157 # 10*(2^10) chars as input seems more than enough
4158 test $ac_count -gt 10 && break
4159 done
4160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4161 esac
4163 $ac_path_GREP_found && break 3
4164 done
4165 done
4166 done
4167 IFS=$as_save_IFS
4168 if test -z "$ac_cv_path_GREP"; then
4169 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4170 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4171 { (exit 1); exit 1; }; }
4173 else
4174 ac_cv_path_GREP=$GREP
4178 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4179 $as_echo "$ac_cv_path_GREP" >&6; }
4180 GREP="$ac_cv_path_GREP"
4183 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4184 $as_echo_n "checking for egrep... " >&6; }
4185 if test "${ac_cv_path_EGREP+set}" = set; then
4186 $as_echo_n "(cached) " >&6
4187 else
4188 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4189 then ac_cv_path_EGREP="$GREP -E"
4190 else
4191 if test -z "$EGREP"; then
4192 ac_path_EGREP_found=false
4193 # Loop through the user's path and test for each of PROGNAME-LIST
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_prog in egrep; do
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4202 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4203 # Check for GNU ac_path_EGREP and select it if it is found.
4204 # Check for GNU $ac_path_EGREP
4205 case `"$ac_path_EGREP" --version 2>&1` in
4206 *GNU*)
4207 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4209 ac_count=0
4210 $as_echo_n 0123456789 >"conftest.in"
4211 while :
4213 cat "conftest.in" "conftest.in" >"conftest.tmp"
4214 mv "conftest.tmp" "conftest.in"
4215 cp "conftest.in" "conftest.nl"
4216 $as_echo 'EGREP' >> "conftest.nl"
4217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4219 ac_count=`expr $ac_count + 1`
4220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4221 # Best one so far, save it but keep looking for a better one
4222 ac_cv_path_EGREP="$ac_path_EGREP"
4223 ac_path_EGREP_max=$ac_count
4225 # 10*(2^10) chars as input seems more than enough
4226 test $ac_count -gt 10 && break
4227 done
4228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4229 esac
4231 $ac_path_EGREP_found && break 3
4232 done
4233 done
4234 done
4235 IFS=$as_save_IFS
4236 if test -z "$ac_cv_path_EGREP"; then
4237 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4238 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4239 { (exit 1); exit 1; }; }
4241 else
4242 ac_cv_path_EGREP=$EGREP
4247 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4248 $as_echo "$ac_cv_path_EGREP" >&6; }
4249 EGREP="$ac_cv_path_EGREP"
4252 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4253 $as_echo_n "checking for ANSI C header files... " >&6; }
4254 if test "${ac_cv_header_stdc+set}" = set; then
4255 $as_echo_n "(cached) " >&6
4256 else
4257 cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h. */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4263 #include <stdlib.h>
4264 #include <stdarg.h>
4265 #include <string.h>
4266 #include <float.h>
4269 main ()
4273 return 0;
4275 _ACEOF
4276 rm -f conftest.$ac_objext
4277 if { (ac_try="$ac_compile"
4278 case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4283 $as_echo "$ac_try_echo") >&5
4284 (eval "$ac_compile") 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } && {
4291 test -z "$ac_c_werror_flag" ||
4292 test ! -s conftest.err
4293 } && test -s conftest.$ac_objext; then
4294 ac_cv_header_stdc=yes
4295 else
4296 $as_echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4299 ac_cv_header_stdc=no
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 if test $ac_cv_header_stdc = yes; then
4305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4306 cat >conftest.$ac_ext <<_ACEOF
4307 /* confdefs.h. */
4308 _ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4312 #include <string.h>
4314 _ACEOF
4315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4316 $EGREP "memchr" >/dev/null 2>&1; then
4318 else
4319 ac_cv_header_stdc=no
4321 rm -f conftest*
4325 if test $ac_cv_header_stdc = yes; then
4326 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h. */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 #include <stdlib.h>
4335 _ACEOF
4336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4337 $EGREP "free" >/dev/null 2>&1; then
4339 else
4340 ac_cv_header_stdc=no
4342 rm -f conftest*
4346 if test $ac_cv_header_stdc = yes; then
4347 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4348 if test "$cross_compiling" = yes; then
4350 else
4351 cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h. */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4357 #include <ctype.h>
4358 #include <stdlib.h>
4359 #if ((' ' & 0x0FF) == 0x020)
4360 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4361 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4362 #else
4363 # define ISLOWER(c) \
4364 (('a' <= (c) && (c) <= 'i') \
4365 || ('j' <= (c) && (c) <= 'r') \
4366 || ('s' <= (c) && (c) <= 'z'))
4367 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4368 #endif
4370 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4372 main ()
4374 int i;
4375 for (i = 0; i < 256; i++)
4376 if (XOR (islower (i), ISLOWER (i))
4377 || toupper (i) != TOUPPER (i))
4378 return 2;
4379 return 0;
4381 _ACEOF
4382 rm -f conftest$ac_exeext
4383 if { (ac_try="$ac_link"
4384 case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387 esac
4388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4389 $as_echo "$ac_try_echo") >&5
4390 (eval "$ac_link") 2>&5
4391 ac_status=$?
4392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4394 { (case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4399 $as_echo "$ac_try_echo") >&5
4400 (eval "$ac_try") 2>&5
4401 ac_status=$?
4402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4405 else
4406 $as_echo "$as_me: program exited with status $ac_status" >&5
4407 $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4410 ( exit $ac_status )
4411 ac_cv_header_stdc=no
4413 rm -rf conftest.dSYM
4414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4420 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4421 $as_echo "$ac_cv_header_stdc" >&6; }
4422 if test $ac_cv_header_stdc = yes; then
4424 cat >>confdefs.h <<\_ACEOF
4425 #define STDC_HEADERS 1
4426 _ACEOF
4430 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4441 inttypes.h stdint.h unistd.h
4443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4444 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4445 $as_echo_n "checking for $ac_header... " >&6; }
4446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4447 $as_echo_n "(cached) " >&6
4448 else
4449 cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h. */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 $ac_includes_default
4457 #include <$ac_header>
4458 _ACEOF
4459 rm -f conftest.$ac_objext
4460 if { (ac_try="$ac_compile"
4461 case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464 esac
4465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4466 $as_echo "$ac_try_echo") >&5
4467 (eval "$ac_compile") 2>conftest.er1
4468 ac_status=$?
4469 grep -v '^ *+' conftest.er1 >conftest.err
4470 rm -f conftest.er1
4471 cat conftest.err >&5
4472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && {
4474 test -z "$ac_c_werror_flag" ||
4475 test ! -s conftest.err
4476 } && test -s conftest.$ac_objext; then
4477 eval "$as_ac_Header=yes"
4478 else
4479 $as_echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 eval "$as_ac_Header=no"
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487 ac_res=`eval 'as_val=${'$as_ac_Header'}
4488 $as_echo "$as_val"'`
4489 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4490 $as_echo "$ac_res" >&6; }
4491 if test `eval 'as_val=${'$as_ac_Header'}
4492 $as_echo "$as_val"'` = yes; then
4493 cat >>confdefs.h <<_ACEOF
4494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4495 _ACEOF
4499 done
4503 if test "${ac_cv_header_minix_config_h+set}" = set; then
4504 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4505 $as_echo_n "checking for minix/config.h... " >&6; }
4506 if test "${ac_cv_header_minix_config_h+set}" = set; then
4507 $as_echo_n "(cached) " >&6
4509 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4510 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4511 else
4512 # Is the header compilable?
4513 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4514 $as_echo_n "checking minix/config.h usability... " >&6; }
4515 cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h. */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521 $ac_includes_default
4522 #include <minix/config.h>
4523 _ACEOF
4524 rm -f conftest.$ac_objext
4525 if { (ac_try="$ac_compile"
4526 case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529 esac
4530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4531 $as_echo "$ac_try_echo") >&5
4532 (eval "$ac_compile") 2>conftest.er1
4533 ac_status=$?
4534 grep -v '^ *+' conftest.er1 >conftest.err
4535 rm -f conftest.er1
4536 cat conftest.err >&5
4537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } && {
4539 test -z "$ac_c_werror_flag" ||
4540 test ! -s conftest.err
4541 } && test -s conftest.$ac_objext; then
4542 ac_header_compiler=yes
4543 else
4544 $as_echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4547 ac_header_compiler=no
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4552 $as_echo "$ac_header_compiler" >&6; }
4554 # Is the header present?
4555 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4556 $as_echo_n "checking minix/config.h presence... " >&6; }
4557 cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h. */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563 #include <minix/config.h>
4564 _ACEOF
4565 if { (ac_try="$ac_cpp conftest.$ac_ext"
4566 case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569 esac
4570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4571 $as_echo "$ac_try_echo") >&5
4572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4573 ac_status=$?
4574 grep -v '^ *+' conftest.er1 >conftest.err
4575 rm -f conftest.er1
4576 cat conftest.err >&5
4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } >/dev/null && {
4579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4580 test ! -s conftest.err
4581 }; then
4582 ac_header_preproc=yes
4583 else
4584 $as_echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4587 ac_header_preproc=no
4590 rm -f conftest.err conftest.$ac_ext
4591 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4592 $as_echo "$ac_header_preproc" >&6; }
4594 # So? What about this header?
4595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4596 yes:no: )
4597 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4598 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4599 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4600 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4601 ac_header_preproc=yes
4603 no:yes:* )
4604 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4605 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4606 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4607 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4608 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4609 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4610 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4611 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4612 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4613 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4614 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4615 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4618 esac
4619 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4620 $as_echo_n "checking for minix/config.h... " >&6; }
4621 if test "${ac_cv_header_minix_config_h+set}" = set; then
4622 $as_echo_n "(cached) " >&6
4623 else
4624 ac_cv_header_minix_config_h=$ac_header_preproc
4626 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4627 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4630 if test $ac_cv_header_minix_config_h = yes; then
4631 MINIX=yes
4632 else
4633 MINIX=
4637 if test "$MINIX" = yes; then
4639 cat >>confdefs.h <<\_ACEOF
4640 #define _POSIX_SOURCE 1
4641 _ACEOF
4644 cat >>confdefs.h <<\_ACEOF
4645 #define _POSIX_1_SOURCE 2
4646 _ACEOF
4649 cat >>confdefs.h <<\_ACEOF
4650 #define _MINIX 1
4651 _ACEOF
4657 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4658 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4659 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4660 $as_echo_n "(cached) " >&6
4661 else
4662 cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h. */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4669 # define __EXTENSIONS__ 1
4670 $ac_includes_default
4672 main ()
4676 return 0;
4678 _ACEOF
4679 rm -f conftest.$ac_objext
4680 if { (ac_try="$ac_compile"
4681 case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4684 esac
4685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4686 $as_echo "$ac_try_echo") >&5
4687 (eval "$ac_compile") 2>conftest.er1
4688 ac_status=$?
4689 grep -v '^ *+' conftest.er1 >conftest.err
4690 rm -f conftest.er1
4691 cat conftest.err >&5
4692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } && {
4694 test -z "$ac_c_werror_flag" ||
4695 test ! -s conftest.err
4696 } && test -s conftest.$ac_objext; then
4697 ac_cv_safe_to_define___extensions__=yes
4698 else
4699 $as_echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 ac_cv_safe_to_define___extensions__=no
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4708 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4709 test $ac_cv_safe_to_define___extensions__ = yes &&
4710 cat >>confdefs.h <<\_ACEOF
4711 #define __EXTENSIONS__ 1
4712 _ACEOF
4714 cat >>confdefs.h <<\_ACEOF
4715 #define _ALL_SOURCE 1
4716 _ACEOF
4718 cat >>confdefs.h <<\_ACEOF
4719 #define _GNU_SOURCE 1
4720 _ACEOF
4722 cat >>confdefs.h <<\_ACEOF
4723 #define _POSIX_PTHREAD_SEMANTICS 1
4724 _ACEOF
4726 cat >>confdefs.h <<\_ACEOF
4727 #define _TANDEM_SOURCE 1
4728 _ACEOF
4732 ### Use -Wno-pointer-sign if the compiler supports it
4733 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4734 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4735 SAVE_CFLAGS="$CFLAGS"
4736 CFLAGS="$CFLAGS -Wno-pointer-sign"
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4745 main ()
4749 return 0;
4751 _ACEOF
4752 rm -f conftest.$ac_objext
4753 if { (ac_try="$ac_compile"
4754 case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757 esac
4758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4759 $as_echo "$ac_try_echo") >&5
4760 (eval "$ac_compile") 2>conftest.er1
4761 ac_status=$?
4762 grep -v '^ *+' conftest.er1 >conftest.err
4763 rm -f conftest.er1
4764 cat conftest.err >&5
4765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } && {
4767 test -z "$ac_c_werror_flag" ||
4768 test ! -s conftest.err
4769 } && test -s conftest.$ac_objext; then
4770 has_option=yes
4771 else
4772 $as_echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4775 has_option=no
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 if test $has_option = yes; then
4780 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4782 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4783 $as_echo "$has_option" >&6; }
4784 CFLAGS="$SAVE_CFLAGS"
4785 unset has_option
4786 unset SAVE_CFLAGS
4788 #### Some other nice autoconf tests.
4790 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4791 $as_echo_n "checking whether ln -s works... " >&6; }
4792 LN_S=$as_ln_s
4793 if test "$LN_S" = "ln -s"; then
4794 { $as_echo "$as_me:$LINENO: result: yes" >&5
4795 $as_echo "yes" >&6; }
4796 else
4797 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4798 $as_echo "no, using $LN_S" >&6; }
4801 ac_ext=c
4802 ac_cpp='$CPP $CPPFLAGS'
4803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4807 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4808 # On Suns, sometimes $CPP names a directory.
4809 if test -n "$CPP" && test -d "$CPP"; then
4810 CPP=
4812 if test -z "$CPP"; then
4813 if test "${ac_cv_prog_CPP+set}" = set; then
4814 $as_echo_n "(cached) " >&6
4815 else
4816 # Double quotes because CPP needs to be expanded
4817 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4819 ac_preproc_ok=false
4820 for ac_c_preproc_warn_flag in '' yes
4822 # Use a header file that comes with gcc, so configuring glibc
4823 # with a fresh cross-compiler works.
4824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4825 # <limits.h> exists even on freestanding compilers.
4826 # On the NeXT, cc -E runs the code through the compiler's parser,
4827 # not just through cpp. "Syntax error" is here to catch this case.
4828 cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h. */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 #ifdef __STDC__
4835 # include <limits.h>
4836 #else
4837 # include <assert.h>
4838 #endif
4839 Syntax error
4840 _ACEOF
4841 if { (ac_try="$ac_cpp conftest.$ac_ext"
4842 case "(($ac_try" in
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4845 esac
4846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4847 $as_echo "$ac_try_echo") >&5
4848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } >/dev/null && {
4855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4857 }; then
4859 else
4860 $as_echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4863 # Broken: fails on valid input.
4864 continue
4867 rm -f conftest.err conftest.$ac_ext
4869 # OK, works on sane cases. Now check whether nonexistent headers
4870 # can be detected and how.
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 #include <ac_nonexistent.h>
4878 _ACEOF
4879 if { (ac_try="$ac_cpp conftest.$ac_ext"
4880 case "(($ac_try" in
4881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882 *) ac_try_echo=$ac_try;;
4883 esac
4884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4885 $as_echo "$ac_try_echo") >&5
4886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4887 ac_status=$?
4888 grep -v '^ *+' conftest.er1 >conftest.err
4889 rm -f conftest.er1
4890 cat conftest.err >&5
4891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } >/dev/null && {
4893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4894 test ! -s conftest.err
4895 }; then
4896 # Broken: success on invalid input.
4897 continue
4898 else
4899 $as_echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4902 # Passes both tests.
4903 ac_preproc_ok=:
4904 break
4907 rm -f conftest.err conftest.$ac_ext
4909 done
4910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4911 rm -f conftest.err conftest.$ac_ext
4912 if $ac_preproc_ok; then
4913 break
4916 done
4917 ac_cv_prog_CPP=$CPP
4920 CPP=$ac_cv_prog_CPP
4921 else
4922 ac_cv_prog_CPP=$CPP
4924 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4925 $as_echo "$CPP" >&6; }
4926 ac_preproc_ok=false
4927 for ac_c_preproc_warn_flag in '' yes
4929 # Use a header file that comes with gcc, so configuring glibc
4930 # with a fresh cross-compiler works.
4931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932 # <limits.h> exists even on freestanding compilers.
4933 # On the NeXT, cc -E runs the code through the compiler's parser,
4934 # not just through cpp. "Syntax error" is here to catch this case.
4935 cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h. */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 #ifdef __STDC__
4942 # include <limits.h>
4943 #else
4944 # include <assert.h>
4945 #endif
4946 Syntax error
4947 _ACEOF
4948 if { (ac_try="$ac_cpp conftest.$ac_ext"
4949 case "(($ac_try" in
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4952 esac
4953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4954 $as_echo "$ac_try_echo") >&5
4955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } >/dev/null && {
4962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4964 }; then
4966 else
4967 $as_echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 # Broken: fails on valid input.
4971 continue
4974 rm -f conftest.err conftest.$ac_ext
4976 # OK, works on sane cases. Now check whether nonexistent headers
4977 # can be detected and how.
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 #include <ac_nonexistent.h>
4985 _ACEOF
4986 if { (ac_try="$ac_cpp conftest.$ac_ext"
4987 case "(($ac_try" in
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4990 esac
4991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4992 $as_echo "$ac_try_echo") >&5
4993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } >/dev/null && {
5000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5001 test ! -s conftest.err
5002 }; then
5003 # Broken: success on invalid input.
5004 continue
5005 else
5006 $as_echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5009 # Passes both tests.
5010 ac_preproc_ok=:
5011 break
5014 rm -f conftest.err conftest.$ac_ext
5016 done
5017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018 rm -f conftest.err conftest.$ac_ext
5019 if $ac_preproc_ok; then
5021 else
5022 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5023 See \`config.log' for more details." >&5
5024 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5025 See \`config.log' for more details." >&2;}
5026 { (exit 1); exit 1; }; }
5029 ac_ext=c
5030 ac_cpp='$CPP $CPPFLAGS'
5031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5035 # Find a good install program. We prefer a C program (faster),
5036 # so one script is as good as another. But avoid the broken or
5037 # incompatible versions:
5038 # SysV /etc/install, /usr/sbin/install
5039 # SunOS /usr/etc/install
5040 # IRIX /sbin/install
5041 # AIX /bin/install
5042 # AmigaOS /C/install, which installs bootblocks on floppy discs
5043 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5046 # OS/2's system install, which has a completely different semantic
5047 # ./install, which can be erroneously created by make from ./install.sh.
5048 # Reject install programs that cannot install multiple files.
5049 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5050 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5051 if test -z "$INSTALL"; then
5052 if test "${ac_cv_path_install+set}" = set; then
5053 $as_echo_n "(cached) " >&6
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 # Account for people who put trailing slashes in PATH elements.
5061 case $as_dir/ in
5062 ./ | .// | /cC/* | \
5063 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5064 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5065 /usr/ucb/* ) ;;
5067 # OSF1 and SCO ODT 3.0 have their own names for install.
5068 # Don't use installbsd from OSF since it installs stuff as root
5069 # by default.
5070 for ac_prog in ginstall scoinst install; do
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5073 if test $ac_prog = install &&
5074 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5075 # AIX install. It has an incompatible calling convention.
5077 elif test $ac_prog = install &&
5078 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5079 # program-specific install script used by HP pwplus--don't use.
5081 else
5082 rm -rf conftest.one conftest.two conftest.dir
5083 echo one > conftest.one
5084 echo two > conftest.two
5085 mkdir conftest.dir
5086 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5087 test -s conftest.one && test -s conftest.two &&
5088 test -s conftest.dir/conftest.one &&
5089 test -s conftest.dir/conftest.two
5090 then
5091 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5092 break 3
5096 done
5097 done
5099 esac
5101 done
5102 IFS=$as_save_IFS
5104 rm -rf conftest.one conftest.two conftest.dir
5107 if test "${ac_cv_path_install+set}" = set; then
5108 INSTALL=$ac_cv_path_install
5109 else
5110 # As a last resort, use the slow shell script. Don't cache a
5111 # value for INSTALL within a source directory, because that will
5112 # break other packages using the cache if that directory is
5113 # removed, or if the value is a relative name.
5114 INSTALL=$ac_install_sh
5117 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5118 $as_echo "$INSTALL" >&6; }
5120 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5121 # It thinks the first close brace ends the variable substitution.
5122 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5126 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5128 if test "x$RANLIB" = x; then
5129 if test -n "$ac_tool_prefix"; then
5130 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5131 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if test "${ac_cv_prog_RANLIB+set}" = set; then
5135 $as_echo_n "(cached) " >&6
5136 else
5137 if test -n "$RANLIB"; then
5138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5151 done
5152 done
5153 IFS=$as_save_IFS
5157 RANLIB=$ac_cv_prog_RANLIB
5158 if test -n "$RANLIB"; then
5159 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5160 $as_echo "$RANLIB" >&6; }
5161 else
5162 { $as_echo "$as_me:$LINENO: result: no" >&5
5163 $as_echo "no" >&6; }
5168 if test -z "$ac_cv_prog_RANLIB"; then
5169 ac_ct_RANLIB=$RANLIB
5170 # Extract the first word of "ranlib", so it can be a program name with args.
5171 set dummy ranlib; ac_word=$2
5172 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5175 $as_echo_n "(cached) " >&6
5176 else
5177 if test -n "$ac_ct_RANLIB"; then
5178 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_ac_ct_RANLIB="ranlib"
5188 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5191 done
5192 done
5193 IFS=$as_save_IFS
5197 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5198 if test -n "$ac_ct_RANLIB"; then
5199 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5200 $as_echo "$ac_ct_RANLIB" >&6; }
5201 else
5202 { $as_echo "$as_me:$LINENO: result: no" >&5
5203 $as_echo "no" >&6; }
5206 if test "x$ac_ct_RANLIB" = x; then
5207 RANLIB=":"
5208 else
5209 case $cross_compiling:$ac_tool_warned in
5210 yes:)
5211 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5212 whose name does not start with the host triplet. If you think this
5213 configuration is useful to you, please write to autoconf@gnu.org." >&5
5214 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5215 whose name does not start with the host triplet. If you think this
5216 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5217 ac_tool_warned=yes ;;
5218 esac
5219 RANLIB=$ac_ct_RANLIB
5221 else
5222 RANLIB="$ac_cv_prog_RANLIB"
5226 # Extract the first word of "install-info", so it can be a program name with args.
5227 set dummy install-info; ac_word=$2
5228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5231 $as_echo_n "(cached) " >&6
5232 else
5233 case $INSTALL_INFO in
5234 [\\/]* | ?:[\\/]*)
5235 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5249 done
5250 done
5251 IFS=$as_save_IFS
5254 esac
5256 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5257 if test -n "$INSTALL_INFO"; then
5258 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5259 $as_echo "$INSTALL_INFO" >&6; }
5260 else
5261 { $as_echo "$as_me:$LINENO: result: no" >&5
5262 $as_echo "no" >&6; }
5266 # Extract the first word of "install-info", so it can be a program name with args.
5267 set dummy install-info; ac_word=$2
5268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5271 $as_echo_n "(cached) " >&6
5272 else
5273 case $INSTALL_INFO in
5274 [\\/]* | ?:[\\/]*)
5275 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in /usr/sbin
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5289 done
5290 done
5291 IFS=$as_save_IFS
5294 esac
5296 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5297 if test -n "$INSTALL_INFO"; then
5298 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5299 $as_echo "$INSTALL_INFO" >&6; }
5300 else
5301 { $as_echo "$as_me:$LINENO: result: no" >&5
5302 $as_echo "no" >&6; }
5306 # Extract the first word of "install-info", so it can be a program name with args.
5307 set dummy install-info; ac_word=$2
5308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5311 $as_echo_n "(cached) " >&6
5312 else
5313 case $INSTALL_INFO in
5314 [\\/]* | ?:[\\/]*)
5315 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in /sbin
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5329 done
5330 done
5331 IFS=$as_save_IFS
5333 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5335 esac
5337 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5338 if test -n "$INSTALL_INFO"; then
5339 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5340 $as_echo "$INSTALL_INFO" >&6; }
5341 else
5342 { $as_echo "$as_me:$LINENO: result: no" >&5
5343 $as_echo "no" >&6; }
5347 # Extract the first word of "gzip", so it can be a program name with args.
5348 set dummy gzip; ac_word=$2
5349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5352 $as_echo_n "(cached) " >&6
5353 else
5354 case $GZIP_PROG in
5355 [\\/]* | ?:[\\/]*)
5356 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5370 done
5371 done
5372 IFS=$as_save_IFS
5375 esac
5377 GZIP_PROG=$ac_cv_path_GZIP_PROG
5378 if test -n "$GZIP_PROG"; then
5379 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5380 $as_echo "$GZIP_PROG" >&6; }
5381 else
5382 { $as_echo "$as_me:$LINENO: result: no" >&5
5383 $as_echo "no" >&6; }
5389 ## Need makeinfo >= 4.6 (?) to build the manuals.
5390 # Extract the first word of "makeinfo", so it can be a program name with args.
5391 set dummy makeinfo; ac_word=$2
5392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5395 $as_echo_n "(cached) " >&6
5396 else
5397 case $MAKEINFO in
5398 [\\/]* | ?:[\\/]*)
5399 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5413 done
5414 done
5415 IFS=$as_save_IFS
5417 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5419 esac
5421 MAKEINFO=$ac_cv_path_MAKEINFO
5422 if test -n "$MAKEINFO"; then
5423 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5424 $as_echo "$MAKEINFO" >&6; }
5425 else
5426 { $as_echo "$as_me:$LINENO: result: no" >&5
5427 $as_echo "no" >&6; }
5431 if test "$MAKEINFO" != "no" && \
5432 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
5433 MAKEINFO=no
5436 ## Makeinfo is unusual. For a released Emacs, the manuals are
5437 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5438 ## therefore in the category of "special tools" not normally required, which
5439 ## configure does not have to check for (eg autoconf itself).
5440 ## In a CVS checkout on the other hand, the manuals are not included.
5441 ## So makeinfo is a requirement to build from CVS, and configure
5442 ## should test for it as it does for any other build requirement.
5443 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5444 ## with pre-built manuals, from a CVS checkout.
5445 if test "$MAKEINFO" = "no"; then
5446 if test "x${with_makeinfo}" = "xno"; then
5447 MAKEINFO=off
5448 elif ! test -e $srcdir/info/emacs; then
5449 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5450 source tree does not seem to have pre-built manuals in the \`info' directory.
5451 Either install a suitable version of makeinfo, or re-run configure
5452 with the \`--without-makeinfo' option to build without the manuals. " >&5
5453 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5454 source tree does not seem to have pre-built manuals in the \`info' directory.
5455 Either install a suitable version of makeinfo, or re-run configure
5456 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5457 { (exit 1); exit 1; }; }
5462 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5463 then
5464 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5467 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5468 then
5469 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5473 late_LDFLAGS=$LDFLAGS
5474 if test "$GCC" = yes; then
5475 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5476 else
5477 LDFLAGS="$LDFLAGS -znocombreloc"
5480 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5481 $as_echo_n "checking for -znocombreloc... " >&6; }
5482 cat >conftest.$ac_ext <<_ACEOF
5483 main(){return 0;}
5484 _ACEOF
5485 rm -f conftest.$ac_objext conftest$ac_exeext
5486 if { (ac_try="$ac_link"
5487 case "(($ac_try" in
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5490 esac
5491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5492 $as_echo "$ac_try_echo") >&5
5493 (eval "$ac_link") 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && {
5500 test -z "$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 } && test -s conftest$ac_exeext && {
5503 test "$cross_compiling" = yes ||
5504 $as_test_x conftest$ac_exeext
5505 }; then
5506 { $as_echo "$as_me:$LINENO: result: yes" >&5
5507 $as_echo "yes" >&6; }
5508 else
5509 $as_echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 LDFLAGS=$late_LDFLAGS
5513 { $as_echo "$as_me:$LINENO: result: no" >&5
5514 $as_echo "no" >&6; }
5517 rm -rf conftest.dSYM
5518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5519 conftest$ac_exeext conftest.$ac_ext
5521 #### Extract some information from the operating system and machine files.
5523 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5524 - which libraries the lib-src programs will want, and
5525 - whether the GNU malloc routines are usable..." >&5
5526 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5527 - which libraries the lib-src programs will want, and
5528 - whether the GNU malloc routines are usable..." >&6;}
5530 ### First figure out CFLAGS (which we use for running the compiler here)
5531 ### and REAL_CFLAGS (which we use for real compilation).
5532 ### The two are the same except on a few systems, where they are made
5533 ### different to work around various lossages. For example,
5534 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5535 ### as implying static linking.
5537 ### If the CFLAGS env var is specified, we use that value
5538 ### instead of the default.
5540 ### It's not important that this name contain the PID; you can't run
5541 ### two configures in the same directory and have anything work
5542 ### anyway.
5543 tempcname="conftest.c"
5545 echo '
5546 #include "'${srcdir}'/src/'${opsysfile}'"
5547 #include "'${srcdir}'/src/'${machfile}'"
5548 #ifndef LIBS_MACHINE
5549 #define LIBS_MACHINE
5550 #endif
5551 #ifndef LIBS_SYSTEM
5552 #define LIBS_SYSTEM
5553 #endif
5554 #ifndef C_SWITCH_SYSTEM
5555 #define C_SWITCH_SYSTEM
5556 #endif
5557 #ifndef C_SWITCH_MACHINE
5558 #define C_SWITCH_MACHINE
5559 #endif
5560 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5561 configure___ c_switch_system=C_SWITCH_SYSTEM
5562 configure___ c_switch_machine=C_SWITCH_MACHINE
5564 #ifndef LIB_X11_LIB
5565 #define LIB_X11_LIB -lX11
5566 #endif
5568 #ifndef LIBX11_SYSTEM
5569 #define LIBX11_SYSTEM
5570 #endif
5571 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5573 #ifdef UNEXEC
5574 configure___ unexec=UNEXEC
5575 #else
5576 configure___ unexec=unexec.o
5577 #endif
5579 #ifdef SYSTEM_MALLOC
5580 configure___ system_malloc=yes
5581 #else
5582 configure___ system_malloc=no
5583 #endif
5585 #ifdef USE_MMAP_FOR_BUFFERS
5586 configure___ use_mmap_for_buffers=yes
5587 #else
5588 configure___ use_mmap_for_buffers=no
5589 #endif
5591 #ifndef C_DEBUG_SWITCH
5592 #define C_DEBUG_SWITCH -g
5593 #endif
5595 #ifndef C_OPTIMIZE_SWITCH
5596 #ifdef __GNUC__
5597 #define C_OPTIMIZE_SWITCH -O2
5598 #else
5599 #define C_OPTIMIZE_SWITCH -O
5600 #endif
5601 #endif
5603 #ifndef C_WARNINGS_SWITCH
5604 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5605 #endif
5607 #ifndef LD_SWITCH_MACHINE
5608 #define LD_SWITCH_MACHINE
5609 #endif
5611 #ifndef LD_SWITCH_SYSTEM
5612 #define LD_SWITCH_SYSTEM
5613 #endif
5615 #ifndef LD_SWITCH_X_SITE_AUX
5616 #define LD_SWITCH_X_SITE_AUX
5617 #endif
5619 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5620 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5622 #ifdef THIS_IS_CONFIGURE
5624 /* Get the CFLAGS for tests in configure. */
5625 #ifdef __GNUC__
5626 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5627 #else
5628 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5629 #endif
5631 #else /* not THIS_IS_CONFIGURE */
5633 /* Get the CFLAGS for real compilation. */
5634 #ifdef __GNUC__
5635 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5636 #else
5637 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5638 #endif
5640 #endif /* not THIS_IS_CONFIGURE */
5641 ' > ${tempcname}
5643 # The value of CPP is a quoted variable reference, so we need to do this
5644 # to get its actual value...
5645 CPP=`eval "echo $CPP"`
5646 eval `${CPP} -Isrc ${tempcname} \
5647 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5648 if test "x$SPECIFIED_CFLAGS" = x; then
5649 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5650 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5651 else
5652 REAL_CFLAGS="$CFLAGS"
5654 rm ${tempcname}
5656 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5658 ### Make sure subsequent tests use flags consistent with the build flags.
5660 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5661 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5662 else
5663 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5668 # Check whether --enable-largefile was given.
5669 if test "${enable_largefile+set}" = set; then
5670 enableval=$enable_largefile;
5673 if test "$enable_largefile" != no; then
5675 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5676 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5677 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5678 $as_echo_n "(cached) " >&6
5679 else
5680 ac_cv_sys_largefile_CC=no
5681 if test "$GCC" != yes; then
5682 ac_save_CC=$CC
5683 while :; do
5684 # IRIX 6.2 and later do not support large files by default,
5685 # so use the C compiler's -n32 option if that helps.
5686 cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 #include <sys/types.h>
5693 /* Check that off_t can represent 2**63 - 1 correctly.
5694 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5695 since some C++ compilers masquerading as C compilers
5696 incorrectly reject 9223372036854775807. */
5697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5698 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5699 && LARGE_OFF_T % 2147483647 == 1)
5700 ? 1 : -1];
5702 main ()
5706 return 0;
5708 _ACEOF
5709 rm -f conftest.$ac_objext
5710 if { (ac_try="$ac_compile"
5711 case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714 esac
5715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5716 $as_echo "$ac_try_echo") >&5
5717 (eval "$ac_compile") 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && {
5724 test -z "$ac_c_werror_flag" ||
5725 test ! -s conftest.err
5726 } && test -s conftest.$ac_objext; then
5727 break
5728 else
5729 $as_echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5735 rm -f core conftest.err conftest.$ac_objext
5736 CC="$CC -n32"
5737 rm -f conftest.$ac_objext
5738 if { (ac_try="$ac_compile"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5744 $as_echo "$ac_try_echo") >&5
5745 (eval "$ac_compile") 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
5749 cat conftest.err >&5
5750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && {
5752 test -z "$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 } && test -s conftest.$ac_objext; then
5755 ac_cv_sys_largefile_CC=' -n32'; break
5756 else
5757 $as_echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5763 rm -f core conftest.err conftest.$ac_objext
5764 break
5765 done
5766 CC=$ac_save_CC
5767 rm -f conftest.$ac_ext
5770 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5771 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5772 if test "$ac_cv_sys_largefile_CC" != no; then
5773 CC=$CC$ac_cv_sys_largefile_CC
5776 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5777 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5778 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5779 $as_echo_n "(cached) " >&6
5780 else
5781 while :; do
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h. */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 #include <sys/types.h>
5789 /* Check that off_t can represent 2**63 - 1 correctly.
5790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5791 since some C++ compilers masquerading as C compilers
5792 incorrectly reject 9223372036854775807. */
5793 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5795 && LARGE_OFF_T % 2147483647 == 1)
5796 ? 1 : -1];
5798 main ()
5802 return 0;
5804 _ACEOF
5805 rm -f conftest.$ac_objext
5806 if { (ac_try="$ac_compile"
5807 case "(($ac_try" in
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5810 esac
5811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5812 $as_echo "$ac_try_echo") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest.$ac_objext; then
5823 ac_cv_sys_file_offset_bits=no; break
5824 else
5825 $as_echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 #define _FILE_OFFSET_BITS 64
5839 #include <sys/types.h>
5840 /* Check that off_t can represent 2**63 - 1 correctly.
5841 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5842 since some C++ compilers masquerading as C compilers
5843 incorrectly reject 9223372036854775807. */
5844 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5845 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5846 && LARGE_OFF_T % 2147483647 == 1)
5847 ? 1 : -1];
5849 main ()
5853 return 0;
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (ac_try="$ac_compile"
5858 case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861 esac
5862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5863 $as_echo "$ac_try_echo") >&5
5864 (eval "$ac_compile") 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } && {
5871 test -z "$ac_c_werror_flag" ||
5872 test ! -s conftest.err
5873 } && test -s conftest.$ac_objext; then
5874 ac_cv_sys_file_offset_bits=64; break
5875 else
5876 $as_echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 ac_cv_sys_file_offset_bits=unknown
5884 break
5885 done
5887 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5888 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5889 case $ac_cv_sys_file_offset_bits in #(
5890 no | unknown) ;;
5892 cat >>confdefs.h <<_ACEOF
5893 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5894 _ACEOF
5896 esac
5897 rm -rf conftest*
5898 if test $ac_cv_sys_file_offset_bits = unknown; then
5899 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5900 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5901 if test "${ac_cv_sys_large_files+set}" = set; then
5902 $as_echo_n "(cached) " >&6
5903 else
5904 while :; do
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h. */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 #include <sys/types.h>
5912 /* Check that off_t can represent 2**63 - 1 correctly.
5913 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5914 since some C++ compilers masquerading as C compilers
5915 incorrectly reject 9223372036854775807. */
5916 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5917 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5918 && LARGE_OFF_T % 2147483647 == 1)
5919 ? 1 : -1];
5921 main ()
5925 return 0;
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (ac_try="$ac_compile"
5930 case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933 esac
5934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5935 $as_echo "$ac_try_echo") >&5
5936 (eval "$ac_compile") 2>conftest.er1
5937 ac_status=$?
5938 grep -v '^ *+' conftest.er1 >conftest.err
5939 rm -f conftest.er1
5940 cat conftest.err >&5
5941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && {
5943 test -z "$ac_c_werror_flag" ||
5944 test ! -s conftest.err
5945 } && test -s conftest.$ac_objext; then
5946 ac_cv_sys_large_files=no; break
5947 else
5948 $as_echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955 cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h. */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 #define _LARGE_FILES 1
5962 #include <sys/types.h>
5963 /* Check that off_t can represent 2**63 - 1 correctly.
5964 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5965 since some C++ compilers masquerading as C compilers
5966 incorrectly reject 9223372036854775807. */
5967 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5968 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5969 && LARGE_OFF_T % 2147483647 == 1)
5970 ? 1 : -1];
5972 main ()
5976 return 0;
5978 _ACEOF
5979 rm -f conftest.$ac_objext
5980 if { (ac_try="$ac_compile"
5981 case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984 esac
5985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5986 $as_echo "$ac_try_echo") >&5
5987 (eval "$ac_compile") 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } && {
5994 test -z "$ac_c_werror_flag" ||
5995 test ! -s conftest.err
5996 } && test -s conftest.$ac_objext; then
5997 ac_cv_sys_large_files=1; break
5998 else
5999 $as_echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006 ac_cv_sys_large_files=unknown
6007 break
6008 done
6010 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6011 $as_echo "$ac_cv_sys_large_files" >&6; }
6012 case $ac_cv_sys_large_files in #(
6013 no | unknown) ;;
6015 cat >>confdefs.h <<_ACEOF
6016 #define _LARGE_FILES $ac_cv_sys_large_files
6017 _ACEOF
6019 esac
6020 rm -rf conftest*
6026 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6027 ### be located in either /usr/lib64 or /usr/lib.
6028 ### In some rare cases, /usr/lib64 exists but does not contain the
6029 ### relevant files (bug#1287). Hence test for crtn.o.
6030 case "${canonical}" in
6031 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6032 if test -e /usr/lib64/crtn.o; then
6034 cat >>confdefs.h <<\_ACEOF
6035 #define HAVE_LIB64_DIR 1
6036 _ACEOF
6039 esac
6044 if test "${with_sound}" != "no"; then
6045 # Sound support for GNU/Linux and the free BSDs.
6049 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6051 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6053 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6054 $as_echo_n "checking for $ac_header... " >&6; }
6055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6056 $as_echo_n "(cached) " >&6
6058 ac_res=`eval 'as_val=${'$as_ac_Header'}
6059 $as_echo "$as_val"'`
6060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6061 $as_echo "$ac_res" >&6; }
6062 else
6063 # Is the header compilable?
6064 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6065 $as_echo_n "checking $ac_header usability... " >&6; }
6066 cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h. */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072 $ac_includes_default
6073 #include <$ac_header>
6074 _ACEOF
6075 rm -f conftest.$ac_objext
6076 if { (ac_try="$ac_compile"
6077 case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6080 esac
6081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6082 $as_echo "$ac_try_echo") >&5
6083 (eval "$ac_compile") 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest.$ac_objext; then
6093 ac_header_compiler=yes
6094 else
6095 $as_echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6098 ac_header_compiler=no
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6103 $as_echo "$ac_header_compiler" >&6; }
6105 # Is the header present?
6106 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6107 $as_echo_n "checking $ac_header presence... " >&6; }
6108 cat >conftest.$ac_ext <<_ACEOF
6109 /* confdefs.h. */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6114 #include <$ac_header>
6115 _ACEOF
6116 if { (ac_try="$ac_cpp conftest.$ac_ext"
6117 case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120 esac
6121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6122 $as_echo "$ac_try_echo") >&5
6123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } >/dev/null && {
6130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6131 test ! -s conftest.err
6132 }; then
6133 ac_header_preproc=yes
6134 else
6135 $as_echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6138 ac_header_preproc=no
6141 rm -f conftest.err conftest.$ac_ext
6142 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6143 $as_echo "$ac_header_preproc" >&6; }
6145 # So? What about this header?
6146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6147 yes:no: )
6148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6149 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6151 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6152 ac_header_preproc=yes
6154 no:yes:* )
6155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6156 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6158 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6160 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6162 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6164 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6166 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6169 esac
6170 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6171 $as_echo_n "checking for $ac_header... " >&6; }
6172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6173 $as_echo_n "(cached) " >&6
6174 else
6175 eval "$as_ac_Header=\$ac_header_preproc"
6177 ac_res=`eval 'as_val=${'$as_ac_Header'}
6178 $as_echo "$as_val"'`
6179 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6180 $as_echo "$ac_res" >&6; }
6183 if test `eval 'as_val=${'$as_ac_Header'}
6184 $as_echo "$as_val"'` = yes; then
6185 cat >>confdefs.h <<_ACEOF
6186 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6187 _ACEOF
6191 done
6193 # Emulation library used on NetBSD.
6194 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6195 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6196 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6197 $as_echo_n "(cached) " >&6
6198 else
6199 ac_check_lib_save_LIBS=$LIBS
6200 LIBS="-lossaudio $LIBS"
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. */
6208 /* Override any GCC internal prototype to avoid an error.
6209 Use char because int might match the return type of a GCC
6210 builtin and then its argument prototype would still apply. */
6211 #ifdef __cplusplus
6212 extern "C"
6213 #endif
6214 char _oss_ioctl ();
6216 main ()
6218 return _oss_ioctl ();
6220 return 0;
6222 _ACEOF
6223 rm -f conftest.$ac_objext conftest$ac_exeext
6224 if { (ac_try="$ac_link"
6225 case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228 esac
6229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6230 $as_echo "$ac_try_echo") >&5
6231 (eval "$ac_link") 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } && {
6238 test -z "$ac_c_werror_flag" ||
6239 test ! -s conftest.err
6240 } && test -s conftest$ac_exeext && {
6241 test "$cross_compiling" = yes ||
6242 $as_test_x conftest$ac_exeext
6243 }; then
6244 ac_cv_lib_ossaudio__oss_ioctl=yes
6245 else
6246 $as_echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6249 ac_cv_lib_ossaudio__oss_ioctl=no
6252 rm -rf conftest.dSYM
6253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6254 conftest$ac_exeext conftest.$ac_ext
6255 LIBS=$ac_check_lib_save_LIBS
6257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6258 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6259 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6260 LIBSOUND=-lossaudio
6261 else
6262 LIBSOUND=
6267 ALSA_REQUIRED=1.0.0
6268 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6270 succeeded=no
6272 # Extract the first word of "pkg-config", so it can be a program name with args.
6273 set dummy pkg-config; ac_word=$2
6274 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6277 $as_echo_n "(cached) " >&6
6278 else
6279 case $PKG_CONFIG in
6280 [\\/]* | ?:[\\/]*)
6281 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6295 done
6296 done
6297 IFS=$as_save_IFS
6299 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6301 esac
6303 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6304 if test -n "$PKG_CONFIG"; then
6305 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6306 $as_echo "$PKG_CONFIG" >&6; }
6307 else
6308 { $as_echo "$as_me:$LINENO: result: no" >&5
6309 $as_echo "no" >&6; }
6314 if test "$PKG_CONFIG" = "no" ; then
6315 HAVE_ALSA=no
6316 else
6317 PKG_CONFIG_MIN_VERSION=0.9.0
6318 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6319 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6320 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6322 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6323 { $as_echo "$as_me:$LINENO: result: yes" >&5
6324 $as_echo "yes" >&6; }
6325 succeeded=yes
6327 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6328 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6329 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6330 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6331 $as_echo "$ALSA_CFLAGS" >&6; }
6333 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6334 $as_echo_n "checking ALSA_LIBS... " >&6; }
6335 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6336 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6337 $as_echo "$ALSA_LIBS" >&6; }
6338 else
6339 { $as_echo "$as_me:$LINENO: result: no" >&5
6340 $as_echo "no" >&6; }
6341 ALSA_CFLAGS=""
6342 ALSA_LIBS=""
6343 ## If we have a custom action on failure, don't print errors, but
6344 ## do set a variable so people can do so.
6345 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6351 else
6352 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6353 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6357 if test $succeeded = yes; then
6358 HAVE_ALSA=yes
6359 else
6360 HAVE_ALSA=no
6363 if test $HAVE_ALSA = yes; then
6364 SAVE_CFLAGS="$CFLAGS"
6365 SAVE_LDFLAGS="$LDFLAGS"
6366 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6367 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h. */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 #include <asoundlib.h>
6376 main ()
6378 snd_lib_error_set_handler (0);
6380 return 0;
6382 _ACEOF
6383 rm -f conftest.$ac_objext
6384 if { (ac_try="$ac_compile"
6385 case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388 esac
6389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6390 $as_echo "$ac_try_echo") >&5
6391 (eval "$ac_compile") 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest.$ac_objext; then
6401 emacs_alsa_normal=yes
6402 else
6403 $as_echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6406 emacs_alsa_normal=no
6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410 if test "$emacs_alsa_normal" != yes; then
6411 cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h. */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 #include <alsa/asoundlib.h>
6419 main ()
6421 snd_lib_error_set_handler (0);
6423 return 0;
6425 _ACEOF
6426 rm -f conftest.$ac_objext
6427 if { (ac_try="$ac_compile"
6428 case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431 esac
6432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6433 $as_echo "$ac_try_echo") >&5
6434 (eval "$ac_compile") 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && {
6441 test -z "$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6443 } && test -s conftest.$ac_objext; then
6444 emacs_alsa_subdir=yes
6445 else
6446 $as_echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 emacs_alsa_subdir=no
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 if test "$emacs_alsa_subdir" != yes; then
6454 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6455 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6456 { (exit 1); exit 1; }; }
6458 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6461 CFLAGS="$SAVE_CFLAGS"
6462 LDFLAGS="$SAVE_LDFLAGS"
6463 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6464 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6466 cat >>confdefs.h <<\_ACEOF
6467 #define HAVE_ALSA 1
6468 _ACEOF
6499 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6500 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6501 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6502 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6503 sys/utsname.h pwd.h
6505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6508 $as_echo_n "checking for $ac_header... " >&6; }
6509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6510 $as_echo_n "(cached) " >&6
6512 ac_res=`eval 'as_val=${'$as_ac_Header'}
6513 $as_echo "$as_val"'`
6514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6515 $as_echo "$ac_res" >&6; }
6516 else
6517 # Is the header compilable?
6518 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6519 $as_echo_n "checking $ac_header usability... " >&6; }
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6527 #include <$ac_header>
6528 _ACEOF
6529 rm -f conftest.$ac_objext
6530 if { (ac_try="$ac_compile"
6531 case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534 esac
6535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6536 $as_echo "$ac_try_echo") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6547 ac_header_compiler=yes
6548 else
6549 $as_echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 ac_header_compiler=no
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6557 $as_echo "$ac_header_compiler" >&6; }
6559 # Is the header present?
6560 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6561 $as_echo_n "checking $ac_header presence... " >&6; }
6562 cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h. */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #include <$ac_header>
6569 _ACEOF
6570 if { (ac_try="$ac_cpp conftest.$ac_ext"
6571 case "(($ac_try" in
6572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573 *) ac_try_echo=$ac_try;;
6574 esac
6575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6576 $as_echo "$ac_try_echo") >&5
6577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
6581 cat conftest.err >&5
6582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } >/dev/null && {
6584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6585 test ! -s conftest.err
6586 }; then
6587 ac_header_preproc=yes
6588 else
6589 $as_echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6592 ac_header_preproc=no
6595 rm -f conftest.err conftest.$ac_ext
6596 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6597 $as_echo "$ac_header_preproc" >&6; }
6599 # So? What about this header?
6600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6601 yes:no: )
6602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6603 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6605 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6606 ac_header_preproc=yes
6608 no:yes:* )
6609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6610 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6612 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6614 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6616 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6620 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6623 esac
6624 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6625 $as_echo_n "checking for $ac_header... " >&6; }
6626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6627 $as_echo_n "(cached) " >&6
6628 else
6629 eval "$as_ac_Header=\$ac_header_preproc"
6631 ac_res=`eval 'as_val=${'$as_ac_Header'}
6632 $as_echo "$as_val"'`
6633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6634 $as_echo "$ac_res" >&6; }
6637 if test `eval 'as_val=${'$as_ac_Header'}
6638 $as_echo "$as_val"'` = yes; then
6639 cat >>confdefs.h <<_ACEOF
6640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6641 _ACEOF
6645 done
6648 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6649 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h. */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 #include <sys/personality.h>
6658 main ()
6660 personality (PER_LINUX32)
6662 return 0;
6664 _ACEOF
6665 rm -f conftest.$ac_objext
6666 if { (ac_try="$ac_compile"
6667 case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6670 esac
6671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6672 $as_echo "$ac_try_echo") >&5
6673 (eval "$ac_compile") 2>conftest.er1
6674 ac_status=$?
6675 grep -v '^ *+' conftest.er1 >conftest.err
6676 rm -f conftest.er1
6677 cat conftest.err >&5
6678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && {
6680 test -z "$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 } && test -s conftest.$ac_objext; then
6683 emacs_cv_personality_linux32=yes
6684 else
6685 $as_echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6688 emacs_cv_personality_linux32=no
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6693 $as_echo "$emacs_cv_personality_linux32" >&6; }
6695 if test $emacs_cv_personality_linux32 = yes; then
6697 cat >>confdefs.h <<\_ACEOF
6698 #define HAVE_PERSONALITY_LINUX32 1
6699 _ACEOF
6704 for ac_header in term.h
6706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6707 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6708 $as_echo_n "checking for $ac_header... " >&6; }
6709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6710 $as_echo_n "(cached) " >&6
6711 else
6712 cat >conftest.$ac_ext <<_ACEOF
6713 /* confdefs.h. */
6714 _ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6718 #include <$ac_header>
6719 _ACEOF
6720 if { (ac_try="$ac_cpp conftest.$ac_ext"
6721 case "(($ac_try" in
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6724 esac
6725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6726 $as_echo "$ac_try_echo") >&5
6727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } >/dev/null && {
6734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6736 }; then
6737 eval "$as_ac_Header=yes"
6738 else
6739 $as_echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6742 eval "$as_ac_Header=no"
6745 rm -f conftest.err conftest.$ac_ext
6747 ac_res=`eval 'as_val=${'$as_ac_Header'}
6748 $as_echo "$as_val"'`
6749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6750 $as_echo "$ac_res" >&6; }
6751 if test `eval 'as_val=${'$as_ac_Header'}
6752 $as_echo "$as_val"'` = yes; then
6753 cat >>confdefs.h <<_ACEOF
6754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6755 _ACEOF
6759 done
6761 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6762 $as_echo_n "checking for ANSI C header files... " >&6; }
6763 if test "${ac_cv_header_stdc+set}" = set; then
6764 $as_echo_n "(cached) " >&6
6765 else
6766 cat >conftest.$ac_ext <<_ACEOF
6767 /* confdefs.h. */
6768 _ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6772 #include <stdlib.h>
6773 #include <stdarg.h>
6774 #include <string.h>
6775 #include <float.h>
6778 main ()
6782 return 0;
6784 _ACEOF
6785 rm -f conftest.$ac_objext
6786 if { (ac_try="$ac_compile"
6787 case "(($ac_try" in
6788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6790 esac
6791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6792 $as_echo "$ac_try_echo") >&5
6793 (eval "$ac_compile") 2>conftest.er1
6794 ac_status=$?
6795 grep -v '^ *+' conftest.er1 >conftest.err
6796 rm -f conftest.er1
6797 cat conftest.err >&5
6798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } && {
6800 test -z "$ac_c_werror_flag" ||
6801 test ! -s conftest.err
6802 } && test -s conftest.$ac_objext; then
6803 ac_cv_header_stdc=yes
6804 else
6805 $as_echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 ac_cv_header_stdc=no
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 if test $ac_cv_header_stdc = yes; then
6814 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6815 cat >conftest.$ac_ext <<_ACEOF
6816 /* confdefs.h. */
6817 _ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6821 #include <string.h>
6823 _ACEOF
6824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6825 $EGREP "memchr" >/dev/null 2>&1; then
6827 else
6828 ac_cv_header_stdc=no
6830 rm -f conftest*
6834 if test $ac_cv_header_stdc = yes; then
6835 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6836 cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h. */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6842 #include <stdlib.h>
6844 _ACEOF
6845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6846 $EGREP "free" >/dev/null 2>&1; then
6848 else
6849 ac_cv_header_stdc=no
6851 rm -f conftest*
6855 if test $ac_cv_header_stdc = yes; then
6856 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6857 if test "$cross_compiling" = yes; then
6859 else
6860 cat >conftest.$ac_ext <<_ACEOF
6861 /* confdefs.h. */
6862 _ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6866 #include <ctype.h>
6867 #include <stdlib.h>
6868 #if ((' ' & 0x0FF) == 0x020)
6869 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6870 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6871 #else
6872 # define ISLOWER(c) \
6873 (('a' <= (c) && (c) <= 'i') \
6874 || ('j' <= (c) && (c) <= 'r') \
6875 || ('s' <= (c) && (c) <= 'z'))
6876 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6877 #endif
6879 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6881 main ()
6883 int i;
6884 for (i = 0; i < 256; i++)
6885 if (XOR (islower (i), ISLOWER (i))
6886 || toupper (i) != TOUPPER (i))
6887 return 2;
6888 return 0;
6890 _ACEOF
6891 rm -f conftest$ac_exeext
6892 if { (ac_try="$ac_link"
6893 case "(($ac_try" in
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6896 esac
6897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6898 $as_echo "$ac_try_echo") >&5
6899 (eval "$ac_link") 2>&5
6900 ac_status=$?
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6903 { (case "(($ac_try" in
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6906 esac
6907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6908 $as_echo "$ac_try_echo") >&5
6909 (eval "$ac_try") 2>&5
6910 ac_status=$?
6911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6914 else
6915 $as_echo "$as_me: program exited with status $ac_status" >&5
6916 $as_echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6919 ( exit $ac_status )
6920 ac_cv_header_stdc=no
6922 rm -rf conftest.dSYM
6923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6929 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6930 $as_echo "$ac_cv_header_stdc" >&6; }
6931 if test $ac_cv_header_stdc = yes; then
6933 cat >>confdefs.h <<\_ACEOF
6934 #define STDC_HEADERS 1
6935 _ACEOF
6939 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6940 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6941 if test "${ac_cv_header_time+set}" = set; then
6942 $as_echo_n "(cached) " >&6
6943 else
6944 cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h. */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 #include <sys/types.h>
6951 #include <sys/time.h>
6952 #include <time.h>
6955 main ()
6957 if ((struct tm *) 0)
6958 return 0;
6960 return 0;
6962 _ACEOF
6963 rm -f conftest.$ac_objext
6964 if { (ac_try="$ac_compile"
6965 case "(($ac_try" in
6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967 *) ac_try_echo=$ac_try;;
6968 esac
6969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6970 $as_echo "$ac_try_echo") >&5
6971 (eval "$ac_compile") 2>conftest.er1
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } && {
6978 test -z "$ac_c_werror_flag" ||
6979 test ! -s conftest.err
6980 } && test -s conftest.$ac_objext; then
6981 ac_cv_header_time=yes
6982 else
6983 $as_echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6986 ac_cv_header_time=no
6989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6991 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6992 $as_echo "$ac_cv_header_time" >&6; }
6993 if test $ac_cv_header_time = yes; then
6995 cat >>confdefs.h <<\_ACEOF
6996 #define TIME_WITH_SYS_TIME 1
6997 _ACEOF
7001 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7002 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7003 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7004 $as_echo_n "(cached) " >&6
7005 else
7006 cat >conftest.$ac_ext <<_ACEOF
7007 /* confdefs.h. */
7008 _ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7012 $ac_includes_default
7014 main ()
7016 #ifndef sys_siglist
7017 (void) sys_siglist;
7018 #endif
7021 return 0;
7023 _ACEOF
7024 rm -f conftest.$ac_objext
7025 if { (ac_try="$ac_compile"
7026 case "(($ac_try" in
7027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028 *) ac_try_echo=$ac_try;;
7029 esac
7030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7031 $as_echo "$ac_try_echo") >&5
7032 (eval "$ac_compile") 2>conftest.er1
7033 ac_status=$?
7034 grep -v '^ *+' conftest.er1 >conftest.err
7035 rm -f conftest.er1
7036 cat conftest.err >&5
7037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } && {
7039 test -z "$ac_c_werror_flag" ||
7040 test ! -s conftest.err
7041 } && test -s conftest.$ac_objext; then
7042 ac_cv_have_decl_sys_siglist=yes
7043 else
7044 $as_echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7047 ac_cv_have_decl_sys_siglist=no
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7052 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7053 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7054 if test $ac_cv_have_decl_sys_siglist = yes; then
7056 cat >>confdefs.h <<_ACEOF
7057 #define HAVE_DECL_SYS_SIGLIST 1
7058 _ACEOF
7061 else
7062 cat >>confdefs.h <<_ACEOF
7063 #define HAVE_DECL_SYS_SIGLIST 0
7064 _ACEOF
7070 if test $ac_cv_have_decl_sys_siglist != yes; then
7071 # For Tru64, at least:
7072 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7073 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7074 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7075 $as_echo_n "(cached) " >&6
7076 else
7077 cat >conftest.$ac_ext <<_ACEOF
7078 /* confdefs.h. */
7079 _ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7083 $ac_includes_default
7085 main ()
7087 #ifndef __sys_siglist
7088 (void) __sys_siglist;
7089 #endif
7092 return 0;
7094 _ACEOF
7095 rm -f conftest.$ac_objext
7096 if { (ac_try="$ac_compile"
7097 case "(($ac_try" in
7098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099 *) ac_try_echo=$ac_try;;
7100 esac
7101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7102 $as_echo "$ac_try_echo") >&5
7103 (eval "$ac_compile") 2>conftest.er1
7104 ac_status=$?
7105 grep -v '^ *+' conftest.er1 >conftest.err
7106 rm -f conftest.er1
7107 cat conftest.err >&5
7108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } && {
7110 test -z "$ac_c_werror_flag" ||
7111 test ! -s conftest.err
7112 } && test -s conftest.$ac_objext; then
7113 ac_cv_have_decl___sys_siglist=yes
7114 else
7115 $as_echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7118 ac_cv_have_decl___sys_siglist=no
7121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7124 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7125 if test $ac_cv_have_decl___sys_siglist = yes; then
7127 cat >>confdefs.h <<_ACEOF
7128 #define HAVE_DECL___SYS_SIGLIST 1
7129 _ACEOF
7132 else
7133 cat >>confdefs.h <<_ACEOF
7134 #define HAVE_DECL___SYS_SIGLIST 0
7135 _ACEOF
7141 if test $ac_cv_have_decl___sys_siglist = yes; then
7143 cat >>confdefs.h <<\_ACEOF
7144 #define sys_siglist __sys_siglist
7145 _ACEOF
7149 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7150 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7151 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7152 $as_echo_n "(cached) " >&6
7153 else
7154 cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h. */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 #include <sys/types.h>
7161 #include <sys/wait.h>
7162 #ifndef WEXITSTATUS
7163 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7164 #endif
7165 #ifndef WIFEXITED
7166 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7167 #endif
7170 main ()
7172 int s;
7173 wait (&s);
7174 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7176 return 0;
7178 _ACEOF
7179 rm -f conftest.$ac_objext
7180 if { (ac_try="$ac_compile"
7181 case "(($ac_try" in
7182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7183 *) ac_try_echo=$ac_try;;
7184 esac
7185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7186 $as_echo "$ac_try_echo") >&5
7187 (eval "$ac_compile") 2>conftest.er1
7188 ac_status=$?
7189 grep -v '^ *+' conftest.er1 >conftest.err
7190 rm -f conftest.er1
7191 cat conftest.err >&5
7192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } && {
7194 test -z "$ac_c_werror_flag" ||
7195 test ! -s conftest.err
7196 } && test -s conftest.$ac_objext; then
7197 ac_cv_header_sys_wait_h=yes
7198 else
7199 $as_echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7202 ac_cv_header_sys_wait_h=no
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7208 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7209 if test $ac_cv_header_sys_wait_h = yes; then
7211 cat >>confdefs.h <<\_ACEOF
7212 #define HAVE_SYS_WAIT_H 1
7213 _ACEOF
7218 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7219 $as_echo_n "checking for struct utimbuf... " >&6; }
7220 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7221 $as_echo_n "(cached) " >&6
7222 else
7223 cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h. */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7229 #ifdef TIME_WITH_SYS_TIME
7230 #include <sys/time.h>
7231 #include <time.h>
7232 #else
7233 #ifdef HAVE_SYS_TIME_H
7234 #include <sys/time.h>
7235 #else
7236 #include <time.h>
7237 #endif
7238 #endif
7239 #ifdef HAVE_UTIME_H
7240 #include <utime.h>
7241 #endif
7243 main ()
7245 static struct utimbuf x; x.actime = x.modtime;
7247 return 0;
7249 _ACEOF
7250 rm -f conftest.$ac_objext
7251 if { (ac_try="$ac_compile"
7252 case "(($ac_try" in
7253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254 *) ac_try_echo=$ac_try;;
7255 esac
7256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7257 $as_echo "$ac_try_echo") >&5
7258 (eval "$ac_compile") 2>conftest.er1
7259 ac_status=$?
7260 grep -v '^ *+' conftest.er1 >conftest.err
7261 rm -f conftest.er1
7262 cat conftest.err >&5
7263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } && {
7265 test -z "$ac_c_werror_flag" ||
7266 test ! -s conftest.err
7267 } && test -s conftest.$ac_objext; then
7268 emacs_cv_struct_utimbuf=yes
7269 else
7270 $as_echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7273 emacs_cv_struct_utimbuf=no
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7279 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7280 if test $emacs_cv_struct_utimbuf = yes; then
7282 cat >>confdefs.h <<\_ACEOF
7283 #define HAVE_STRUCT_UTIMBUF 1
7284 _ACEOF
7288 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7289 $as_echo_n "checking return type of signal handlers... " >&6; }
7290 if test "${ac_cv_type_signal+set}" = set; then
7291 $as_echo_n "(cached) " >&6
7292 else
7293 cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h. */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 #include <sys/types.h>
7300 #include <signal.h>
7303 main ()
7305 return *(signal (0, 0)) (0) == 1;
7307 return 0;
7309 _ACEOF
7310 rm -f conftest.$ac_objext
7311 if { (ac_try="$ac_compile"
7312 case "(($ac_try" in
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7315 esac
7316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7317 $as_echo "$ac_try_echo") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 ac_cv_type_signal=int
7329 else
7330 $as_echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 ac_cv_type_signal=void
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7339 $as_echo "$ac_cv_type_signal" >&6; }
7341 cat >>confdefs.h <<_ACEOF
7342 #define RETSIGTYPE $ac_cv_type_signal
7343 _ACEOF
7347 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7348 $as_echo_n "checking for speed_t... " >&6; }
7349 if test "${emacs_cv_speed_t+set}" = set; then
7350 $as_echo_n "(cached) " >&6
7351 else
7352 cat >conftest.$ac_ext <<_ACEOF
7353 /* confdefs.h. */
7354 _ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358 #include <termios.h>
7360 main ()
7362 speed_t x = 1;
7364 return 0;
7366 _ACEOF
7367 rm -f conftest.$ac_objext
7368 if { (ac_try="$ac_compile"
7369 case "(($ac_try" in
7370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371 *) ac_try_echo=$ac_try;;
7372 esac
7373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7374 $as_echo "$ac_try_echo") >&5
7375 (eval "$ac_compile") 2>conftest.er1
7376 ac_status=$?
7377 grep -v '^ *+' conftest.er1 >conftest.err
7378 rm -f conftest.er1
7379 cat conftest.err >&5
7380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } && {
7382 test -z "$ac_c_werror_flag" ||
7383 test ! -s conftest.err
7384 } && test -s conftest.$ac_objext; then
7385 emacs_cv_speed_t=yes
7386 else
7387 $as_echo "$as_me: failed program was:" >&5
7388 sed 's/^/| /' conftest.$ac_ext >&5
7390 emacs_cv_speed_t=no
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7396 $as_echo "$emacs_cv_speed_t" >&6; }
7397 if test $emacs_cv_speed_t = yes; then
7399 cat >>confdefs.h <<\_ACEOF
7400 #define HAVE_SPEED_T 1
7401 _ACEOF
7405 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7406 $as_echo_n "checking for struct timeval... " >&6; }
7407 if test "${emacs_cv_struct_timeval+set}" = set; then
7408 $as_echo_n "(cached) " >&6
7409 else
7410 cat >conftest.$ac_ext <<_ACEOF
7411 /* confdefs.h. */
7412 _ACEOF
7413 cat confdefs.h >>conftest.$ac_ext
7414 cat >>conftest.$ac_ext <<_ACEOF
7415 /* end confdefs.h. */
7416 #ifdef TIME_WITH_SYS_TIME
7417 #include <sys/time.h>
7418 #include <time.h>
7419 #else
7420 #ifdef HAVE_SYS_TIME_H
7421 #include <sys/time.h>
7422 #else
7423 #include <time.h>
7424 #endif
7425 #endif
7427 main ()
7429 static struct timeval x; x.tv_sec = x.tv_usec;
7431 return 0;
7433 _ACEOF
7434 rm -f conftest.$ac_objext
7435 if { (ac_try="$ac_compile"
7436 case "(($ac_try" in
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7439 esac
7440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7441 $as_echo "$ac_try_echo") >&5
7442 (eval "$ac_compile") 2>conftest.er1
7443 ac_status=$?
7444 grep -v '^ *+' conftest.er1 >conftest.err
7445 rm -f conftest.er1
7446 cat conftest.err >&5
7447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } && {
7449 test -z "$ac_c_werror_flag" ||
7450 test ! -s conftest.err
7451 } && test -s conftest.$ac_objext; then
7452 emacs_cv_struct_timeval=yes
7453 else
7454 $as_echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7457 emacs_cv_struct_timeval=no
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7463 $as_echo "$emacs_cv_struct_timeval" >&6; }
7464 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7465 if test $emacs_cv_struct_timeval = yes; then
7467 cat >>confdefs.h <<\_ACEOF
7468 #define HAVE_TIMEVAL 1
7469 _ACEOF
7473 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7474 $as_echo_n "checking for struct exception... " >&6; }
7475 if test "${emacs_cv_struct_exception+set}" = set; then
7476 $as_echo_n "(cached) " >&6
7477 else
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 #include <math.h>
7486 main ()
7488 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7490 return 0;
7492 _ACEOF
7493 rm -f conftest.$ac_objext
7494 if { (ac_try="$ac_compile"
7495 case "(($ac_try" in
7496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497 *) ac_try_echo=$ac_try;;
7498 esac
7499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7500 $as_echo "$ac_try_echo") >&5
7501 (eval "$ac_compile") 2>conftest.er1
7502 ac_status=$?
7503 grep -v '^ *+' conftest.er1 >conftest.err
7504 rm -f conftest.er1
7505 cat conftest.err >&5
7506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } && {
7508 test -z "$ac_c_werror_flag" ||
7509 test ! -s conftest.err
7510 } && test -s conftest.$ac_objext; then
7511 emacs_cv_struct_exception=yes
7512 else
7513 $as_echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7516 emacs_cv_struct_exception=no
7519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7521 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7522 $as_echo "$emacs_cv_struct_exception" >&6; }
7523 HAVE_EXCEPTION=$emacs_cv_struct_exception
7524 if test $emacs_cv_struct_exception != yes; then
7526 cat >>confdefs.h <<\_ACEOF
7527 #define NO_MATHERR 1
7528 _ACEOF
7533 for ac_header in sys/socket.h
7535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7537 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7538 $as_echo_n "checking for $ac_header... " >&6; }
7539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7540 $as_echo_n "(cached) " >&6
7542 ac_res=`eval 'as_val=${'$as_ac_Header'}
7543 $as_echo "$as_val"'`
7544 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7545 $as_echo "$ac_res" >&6; }
7546 else
7547 # Is the header compilable?
7548 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7549 $as_echo_n "checking $ac_header usability... " >&6; }
7550 cat >conftest.$ac_ext <<_ACEOF
7551 /* confdefs.h. */
7552 _ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7556 $ac_includes_default
7557 #include <$ac_header>
7558 _ACEOF
7559 rm -f conftest.$ac_objext
7560 if { (ac_try="$ac_compile"
7561 case "(($ac_try" in
7562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7563 *) ac_try_echo=$ac_try;;
7564 esac
7565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7566 $as_echo "$ac_try_echo") >&5
7567 (eval "$ac_compile") 2>conftest.er1
7568 ac_status=$?
7569 grep -v '^ *+' conftest.er1 >conftest.err
7570 rm -f conftest.er1
7571 cat conftest.err >&5
7572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } && {
7574 test -z "$ac_c_werror_flag" ||
7575 test ! -s conftest.err
7576 } && test -s conftest.$ac_objext; then
7577 ac_header_compiler=yes
7578 else
7579 $as_echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7582 ac_header_compiler=no
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7587 $as_echo "$ac_header_compiler" >&6; }
7589 # Is the header present?
7590 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7591 $as_echo_n "checking $ac_header presence... " >&6; }
7592 cat >conftest.$ac_ext <<_ACEOF
7593 /* confdefs.h. */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598 #include <$ac_header>
7599 _ACEOF
7600 if { (ac_try="$ac_cpp conftest.$ac_ext"
7601 case "(($ac_try" in
7602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7604 esac
7605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7606 $as_echo "$ac_try_echo") >&5
7607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7608 ac_status=$?
7609 grep -v '^ *+' conftest.er1 >conftest.err
7610 rm -f conftest.er1
7611 cat conftest.err >&5
7612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } >/dev/null && {
7614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7615 test ! -s conftest.err
7616 }; then
7617 ac_header_preproc=yes
7618 else
7619 $as_echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7622 ac_header_preproc=no
7625 rm -f conftest.err conftest.$ac_ext
7626 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7627 $as_echo "$ac_header_preproc" >&6; }
7629 # So? What about this header?
7630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7631 yes:no: )
7632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7633 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7635 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7636 ac_header_preproc=yes
7638 no:yes:* )
7639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7640 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7642 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7644 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7646 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7648 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7650 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7653 esac
7654 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7655 $as_echo_n "checking for $ac_header... " >&6; }
7656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7657 $as_echo_n "(cached) " >&6
7658 else
7659 eval "$as_ac_Header=\$ac_header_preproc"
7661 ac_res=`eval 'as_val=${'$as_ac_Header'}
7662 $as_echo "$as_val"'`
7663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7664 $as_echo "$ac_res" >&6; }
7667 if test `eval 'as_val=${'$as_ac_Header'}
7668 $as_echo "$as_val"'` = yes; then
7669 cat >>confdefs.h <<_ACEOF
7670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7671 _ACEOF
7675 done
7678 for ac_header in net/if.h
7680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7682 $as_echo_n "checking for $ac_header... " >&6; }
7683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7684 $as_echo_n "(cached) " >&6
7685 else
7686 cat >conftest.$ac_ext <<_ACEOF
7687 /* confdefs.h. */
7688 _ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692 $ac_includes_default
7693 #if HAVE_SYS_SOCKET_H
7694 #include <sys/socket.h>
7695 #endif
7697 #include <$ac_header>
7698 _ACEOF
7699 rm -f conftest.$ac_objext
7700 if { (ac_try="$ac_compile"
7701 case "(($ac_try" in
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7704 esac
7705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7706 $as_echo "$ac_try_echo") >&5
7707 (eval "$ac_compile") 2>conftest.er1
7708 ac_status=$?
7709 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } && {
7714 test -z "$ac_c_werror_flag" ||
7715 test ! -s conftest.err
7716 } && test -s conftest.$ac_objext; then
7717 eval "$as_ac_Header=yes"
7718 else
7719 $as_echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7722 eval "$as_ac_Header=no"
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727 ac_res=`eval 'as_val=${'$as_ac_Header'}
7728 $as_echo "$as_val"'`
7729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7730 $as_echo "$ac_res" >&6; }
7731 if test `eval 'as_val=${'$as_ac_Header'}
7732 $as_echo "$as_val"'` = yes; then
7733 cat >>confdefs.h <<_ACEOF
7734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7735 _ACEOF
7739 done
7742 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7743 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7744 if test "${ac_cv_struct_tm+set}" = set; then
7745 $as_echo_n "(cached) " >&6
7746 else
7747 cat >conftest.$ac_ext <<_ACEOF
7748 /* confdefs.h. */
7749 _ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7753 #include <sys/types.h>
7754 #include <time.h>
7757 main ()
7759 struct tm tm;
7760 int *p = &tm.tm_sec;
7761 return !p;
7763 return 0;
7765 _ACEOF
7766 rm -f conftest.$ac_objext
7767 if { (ac_try="$ac_compile"
7768 case "(($ac_try" in
7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7771 esac
7772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7773 $as_echo "$ac_try_echo") >&5
7774 (eval "$ac_compile") 2>conftest.er1
7775 ac_status=$?
7776 grep -v '^ *+' conftest.er1 >conftest.err
7777 rm -f conftest.er1
7778 cat conftest.err >&5
7779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && {
7781 test -z "$ac_c_werror_flag" ||
7782 test ! -s conftest.err
7783 } && test -s conftest.$ac_objext; then
7784 ac_cv_struct_tm=time.h
7785 else
7786 $as_echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7789 ac_cv_struct_tm=sys/time.h
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7795 $as_echo "$ac_cv_struct_tm" >&6; }
7796 if test $ac_cv_struct_tm = sys/time.h; then
7798 cat >>confdefs.h <<\_ACEOF
7799 #define TM_IN_SYS_TIME 1
7800 _ACEOF
7804 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7805 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7806 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7807 $as_echo_n "(cached) " >&6
7808 else
7809 cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h. */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7815 #include <sys/types.h>
7816 #include <$ac_cv_struct_tm>
7820 main ()
7822 static struct tm ac_aggr;
7823 if (ac_aggr.tm_zone)
7824 return 0;
7826 return 0;
7828 _ACEOF
7829 rm -f conftest.$ac_objext
7830 if { (ac_try="$ac_compile"
7831 case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834 esac
7835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7836 $as_echo "$ac_try_echo") >&5
7837 (eval "$ac_compile") 2>conftest.er1
7838 ac_status=$?
7839 grep -v '^ *+' conftest.er1 >conftest.err
7840 rm -f conftest.er1
7841 cat conftest.err >&5
7842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.$ac_objext; then
7847 ac_cv_member_struct_tm_tm_zone=yes
7848 else
7849 $as_echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7852 cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h. */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 #include <sys/types.h>
7859 #include <$ac_cv_struct_tm>
7863 main ()
7865 static struct tm ac_aggr;
7866 if (sizeof ac_aggr.tm_zone)
7867 return 0;
7869 return 0;
7871 _ACEOF
7872 rm -f conftest.$ac_objext
7873 if { (ac_try="$ac_compile"
7874 case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877 esac
7878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7879 $as_echo "$ac_try_echo") >&5
7880 (eval "$ac_compile") 2>conftest.er1
7881 ac_status=$?
7882 grep -v '^ *+' conftest.er1 >conftest.err
7883 rm -f conftest.er1
7884 cat conftest.err >&5
7885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } && {
7887 test -z "$ac_c_werror_flag" ||
7888 test ! -s conftest.err
7889 } && test -s conftest.$ac_objext; then
7890 ac_cv_member_struct_tm_tm_zone=yes
7891 else
7892 $as_echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7895 ac_cv_member_struct_tm_tm_zone=no
7898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7904 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
7905 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7907 cat >>confdefs.h <<_ACEOF
7908 #define HAVE_STRUCT_TM_TM_ZONE 1
7909 _ACEOF
7914 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7916 cat >>confdefs.h <<\_ACEOF
7917 #define HAVE_TM_ZONE 1
7918 _ACEOF
7920 else
7921 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7922 $as_echo_n "checking whether tzname is declared... " >&6; }
7923 if test "${ac_cv_have_decl_tzname+set}" = set; then
7924 $as_echo_n "(cached) " >&6
7925 else
7926 cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h. */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 #include <time.h>
7935 main ()
7937 #ifndef tzname
7938 (void) tzname;
7939 #endif
7942 return 0;
7944 _ACEOF
7945 rm -f conftest.$ac_objext
7946 if { (ac_try="$ac_compile"
7947 case "(($ac_try" in
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7950 esac
7951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7952 $as_echo "$ac_try_echo") >&5
7953 (eval "$ac_compile") 2>conftest.er1
7954 ac_status=$?
7955 grep -v '^ *+' conftest.er1 >conftest.err
7956 rm -f conftest.er1
7957 cat conftest.err >&5
7958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest.$ac_objext; then
7963 ac_cv_have_decl_tzname=yes
7964 else
7965 $as_echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 ac_cv_have_decl_tzname=no
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7974 $as_echo "$ac_cv_have_decl_tzname" >&6; }
7975 if test $ac_cv_have_decl_tzname = yes; then
7977 cat >>confdefs.h <<_ACEOF
7978 #define HAVE_DECL_TZNAME 1
7979 _ACEOF
7982 else
7983 cat >>confdefs.h <<_ACEOF
7984 #define HAVE_DECL_TZNAME 0
7985 _ACEOF
7991 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
7992 $as_echo_n "checking for tzname... " >&6; }
7993 if test "${ac_cv_var_tzname+set}" = set; then
7994 $as_echo_n "(cached) " >&6
7995 else
7996 cat >conftest.$ac_ext <<_ACEOF
7997 /* confdefs.h. */
7998 _ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8002 #include <time.h>
8003 #if !HAVE_DECL_TZNAME
8004 extern char *tzname[];
8005 #endif
8008 main ()
8010 return tzname[0][0];
8012 return 0;
8014 _ACEOF
8015 rm -f conftest.$ac_objext conftest$ac_exeext
8016 if { (ac_try="$ac_link"
8017 case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8022 $as_echo "$ac_try_echo") >&5
8023 (eval "$ac_link") 2>conftest.er1
8024 ac_status=$?
8025 grep -v '^ *+' conftest.er1 >conftest.err
8026 rm -f conftest.er1
8027 cat conftest.err >&5
8028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } && {
8030 test -z "$ac_c_werror_flag" ||
8031 test ! -s conftest.err
8032 } && test -s conftest$ac_exeext && {
8033 test "$cross_compiling" = yes ||
8034 $as_test_x conftest$ac_exeext
8035 }; then
8036 ac_cv_var_tzname=yes
8037 else
8038 $as_echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8041 ac_cv_var_tzname=no
8044 rm -rf conftest.dSYM
8045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8046 conftest$ac_exeext conftest.$ac_ext
8048 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8049 $as_echo "$ac_cv_var_tzname" >&6; }
8050 if test $ac_cv_var_tzname = yes; then
8052 cat >>confdefs.h <<\_ACEOF
8053 #define HAVE_TZNAME 1
8054 _ACEOF
8059 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8060 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8061 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8062 $as_echo_n "(cached) " >&6
8063 else
8064 cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h. */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8070 #include <time.h>
8073 main ()
8075 static struct tm ac_aggr;
8076 if (ac_aggr.tm_gmtoff)
8077 return 0;
8079 return 0;
8081 _ACEOF
8082 rm -f conftest.$ac_objext
8083 if { (ac_try="$ac_compile"
8084 case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087 esac
8088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8089 $as_echo "$ac_try_echo") >&5
8090 (eval "$ac_compile") 2>conftest.er1
8091 ac_status=$?
8092 grep -v '^ *+' conftest.er1 >conftest.err
8093 rm -f conftest.er1
8094 cat conftest.err >&5
8095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } && {
8097 test -z "$ac_c_werror_flag" ||
8098 test ! -s conftest.err
8099 } && test -s conftest.$ac_objext; then
8100 ac_cv_member_struct_tm_tm_gmtoff=yes
8101 else
8102 $as_echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 cat >conftest.$ac_ext <<_ACEOF
8106 /* confdefs.h. */
8107 _ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8111 #include <time.h>
8114 main ()
8116 static struct tm ac_aggr;
8117 if (sizeof ac_aggr.tm_gmtoff)
8118 return 0;
8120 return 0;
8122 _ACEOF
8123 rm -f conftest.$ac_objext
8124 if { (ac_try="$ac_compile"
8125 case "(($ac_try" in
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8128 esac
8129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8130 $as_echo "$ac_try_echo") >&5
8131 (eval "$ac_compile") 2>conftest.er1
8132 ac_status=$?
8133 grep -v '^ *+' conftest.er1 >conftest.err
8134 rm -f conftest.er1
8135 cat conftest.err >&5
8136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } && {
8138 test -z "$ac_c_werror_flag" ||
8139 test ! -s conftest.err
8140 } && test -s conftest.$ac_objext; then
8141 ac_cv_member_struct_tm_tm_gmtoff=yes
8142 else
8143 $as_echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8146 ac_cv_member_struct_tm_tm_gmtoff=no
8149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8155 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8156 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8158 cat >>confdefs.h <<\_ACEOF
8159 #define HAVE_TM_GMTOFF 1
8160 _ACEOF
8164 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8165 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8166 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8167 $as_echo_n "(cached) " >&6
8168 else
8169 cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h. */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 $ac_includes_default
8176 #if HAVE_SYS_SOCKET_H
8177 #include <sys/socket.h>
8178 #endif
8179 #if HAVE_NET_IF_H
8180 #include <net/if.h>
8181 #endif
8184 main ()
8186 static struct ifreq ac_aggr;
8187 if (ac_aggr.ifr_flags)
8188 return 0;
8190 return 0;
8192 _ACEOF
8193 rm -f conftest.$ac_objext
8194 if { (ac_try="$ac_compile"
8195 case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198 esac
8199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8200 $as_echo "$ac_try_echo") >&5
8201 (eval "$ac_compile") 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } && {
8208 test -z "$ac_c_werror_flag" ||
8209 test ! -s conftest.err
8210 } && test -s conftest.$ac_objext; then
8211 ac_cv_member_struct_ifreq_ifr_flags=yes
8212 else
8213 $as_echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8216 cat >conftest.$ac_ext <<_ACEOF
8217 /* confdefs.h. */
8218 _ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h. */
8222 $ac_includes_default
8223 #if HAVE_SYS_SOCKET_H
8224 #include <sys/socket.h>
8225 #endif
8226 #if HAVE_NET_IF_H
8227 #include <net/if.h>
8228 #endif
8231 main ()
8233 static struct ifreq ac_aggr;
8234 if (sizeof ac_aggr.ifr_flags)
8235 return 0;
8237 return 0;
8239 _ACEOF
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8242 case "(($ac_try" in
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8245 esac
8246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8247 $as_echo "$ac_try_echo") >&5
8248 (eval "$ac_compile") 2>conftest.er1
8249 ac_status=$?
8250 grep -v '^ *+' conftest.er1 >conftest.err
8251 rm -f conftest.er1
8252 cat conftest.err >&5
8253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } && {
8255 test -z "$ac_c_werror_flag" ||
8256 test ! -s conftest.err
8257 } && test -s conftest.$ac_objext; then
8258 ac_cv_member_struct_ifreq_ifr_flags=yes
8259 else
8260 $as_echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8263 ac_cv_member_struct_ifreq_ifr_flags=no
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8272 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8273 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8275 cat >>confdefs.h <<_ACEOF
8276 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8277 _ACEOF
8281 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8282 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8283 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8284 $as_echo_n "(cached) " >&6
8285 else
8286 cat >conftest.$ac_ext <<_ACEOF
8287 /* confdefs.h. */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292 $ac_includes_default
8293 #if HAVE_SYS_SOCKET_H
8294 #include <sys/socket.h>
8295 #endif
8296 #if HAVE_NET_IF_H
8297 #include <net/if.h>
8298 #endif
8301 main ()
8303 static struct ifreq ac_aggr;
8304 if (ac_aggr.ifr_hwaddr)
8305 return 0;
8307 return 0;
8309 _ACEOF
8310 rm -f conftest.$ac_objext
8311 if { (ac_try="$ac_compile"
8312 case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8315 esac
8316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8317 $as_echo "$ac_try_echo") >&5
8318 (eval "$ac_compile") 2>conftest.er1
8319 ac_status=$?
8320 grep -v '^ *+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
8323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } && {
8325 test -z "$ac_c_werror_flag" ||
8326 test ! -s conftest.err
8327 } && test -s conftest.$ac_objext; then
8328 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8329 else
8330 $as_echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8333 cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h. */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 $ac_includes_default
8340 #if HAVE_SYS_SOCKET_H
8341 #include <sys/socket.h>
8342 #endif
8343 #if HAVE_NET_IF_H
8344 #include <net/if.h>
8345 #endif
8348 main ()
8350 static struct ifreq ac_aggr;
8351 if (sizeof ac_aggr.ifr_hwaddr)
8352 return 0;
8354 return 0;
8356 _ACEOF
8357 rm -f conftest.$ac_objext
8358 if { (ac_try="$ac_compile"
8359 case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8362 esac
8363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8364 $as_echo "$ac_try_echo") >&5
8365 (eval "$ac_compile") 2>conftest.er1
8366 ac_status=$?
8367 grep -v '^ *+' conftest.er1 >conftest.err
8368 rm -f conftest.er1
8369 cat conftest.err >&5
8370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && {
8372 test -z "$ac_c_werror_flag" ||
8373 test ! -s conftest.err
8374 } && test -s conftest.$ac_objext; then
8375 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8376 else
8377 $as_echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8380 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8388 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8389 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8390 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8392 cat >>confdefs.h <<_ACEOF
8393 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8394 _ACEOF
8398 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8399 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8400 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8401 $as_echo_n "(cached) " >&6
8402 else
8403 cat >conftest.$ac_ext <<_ACEOF
8404 /* confdefs.h. */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8409 $ac_includes_default
8410 #if HAVE_SYS_SOCKET_H
8411 #include <sys/socket.h>
8412 #endif
8413 #if HAVE_NET_IF_H
8414 #include <net/if.h>
8415 #endif
8418 main ()
8420 static struct ifreq ac_aggr;
8421 if (ac_aggr.ifr_netmask)
8422 return 0;
8424 return 0;
8426 _ACEOF
8427 rm -f conftest.$ac_objext
8428 if { (ac_try="$ac_compile"
8429 case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432 esac
8433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8434 $as_echo "$ac_try_echo") >&5
8435 (eval "$ac_compile") 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } && {
8442 test -z "$ac_c_werror_flag" ||
8443 test ! -s conftest.err
8444 } && test -s conftest.$ac_objext; then
8445 ac_cv_member_struct_ifreq_ifr_netmask=yes
8446 else
8447 $as_echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h. */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 $ac_includes_default
8457 #if HAVE_SYS_SOCKET_H
8458 #include <sys/socket.h>
8459 #endif
8460 #if HAVE_NET_IF_H
8461 #include <net/if.h>
8462 #endif
8465 main ()
8467 static struct ifreq ac_aggr;
8468 if (sizeof ac_aggr.ifr_netmask)
8469 return 0;
8471 return 0;
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (ac_try="$ac_compile"
8476 case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479 esac
8480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8481 $as_echo "$ac_try_echo") >&5
8482 (eval "$ac_compile") 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } && {
8489 test -z "$ac_c_werror_flag" ||
8490 test ! -s conftest.err
8491 } && test -s conftest.$ac_objext; then
8492 ac_cv_member_struct_ifreq_ifr_netmask=yes
8493 else
8494 $as_echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8497 ac_cv_member_struct_ifreq_ifr_netmask=no
8500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8506 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8507 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8509 cat >>confdefs.h <<_ACEOF
8510 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8511 _ACEOF
8515 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8516 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8517 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8518 $as_echo_n "(cached) " >&6
8519 else
8520 cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h. */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8526 $ac_includes_default
8527 #if HAVE_SYS_SOCKET_H
8528 #include <sys/socket.h>
8529 #endif
8530 #if HAVE_NET_IF_H
8531 #include <net/if.h>
8532 #endif
8535 main ()
8537 static struct ifreq ac_aggr;
8538 if (ac_aggr.ifr_broadaddr)
8539 return 0;
8541 return 0;
8543 _ACEOF
8544 rm -f conftest.$ac_objext
8545 if { (ac_try="$ac_compile"
8546 case "(($ac_try" in
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8549 esac
8550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8551 $as_echo "$ac_try_echo") >&5
8552 (eval "$ac_compile") 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest.$ac_objext; then
8562 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8563 else
8564 $as_echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8567 cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h. */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8573 $ac_includes_default
8574 #if HAVE_SYS_SOCKET_H
8575 #include <sys/socket.h>
8576 #endif
8577 #if HAVE_NET_IF_H
8578 #include <net/if.h>
8579 #endif
8582 main ()
8584 static struct ifreq ac_aggr;
8585 if (sizeof ac_aggr.ifr_broadaddr)
8586 return 0;
8588 return 0;
8590 _ACEOF
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8593 case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8596 esac
8597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8598 $as_echo "$ac_try_echo") >&5
8599 (eval "$ac_compile") 2>conftest.er1
8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } && {
8606 test -z "$ac_c_werror_flag" ||
8607 test ! -s conftest.err
8608 } && test -s conftest.$ac_objext; then
8609 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8610 else
8611 $as_echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8614 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8623 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8624 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8626 cat >>confdefs.h <<_ACEOF
8627 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8628 _ACEOF
8632 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8633 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8634 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8635 $as_echo_n "(cached) " >&6
8636 else
8637 cat >conftest.$ac_ext <<_ACEOF
8638 /* confdefs.h. */
8639 _ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8643 $ac_includes_default
8644 #if HAVE_SYS_SOCKET_H
8645 #include <sys/socket.h>
8646 #endif
8647 #if HAVE_NET_IF_H
8648 #include <net/if.h>
8649 #endif
8652 main ()
8654 static struct ifreq ac_aggr;
8655 if (ac_aggr.ifr_addr)
8656 return 0;
8658 return 0;
8660 _ACEOF
8661 rm -f conftest.$ac_objext
8662 if { (ac_try="$ac_compile"
8663 case "(($ac_try" in
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8666 esac
8667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8668 $as_echo "$ac_try_echo") >&5
8669 (eval "$ac_compile") 2>conftest.er1
8670 ac_status=$?
8671 grep -v '^ *+' conftest.er1 >conftest.err
8672 rm -f conftest.er1
8673 cat conftest.err >&5
8674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } && {
8676 test -z "$ac_c_werror_flag" ||
8677 test ! -s conftest.err
8678 } && test -s conftest.$ac_objext; then
8679 ac_cv_member_struct_ifreq_ifr_addr=yes
8680 else
8681 $as_echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8684 cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h. */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690 $ac_includes_default
8691 #if HAVE_SYS_SOCKET_H
8692 #include <sys/socket.h>
8693 #endif
8694 #if HAVE_NET_IF_H
8695 #include <net/if.h>
8696 #endif
8699 main ()
8701 static struct ifreq ac_aggr;
8702 if (sizeof ac_aggr.ifr_addr)
8703 return 0;
8705 return 0;
8707 _ACEOF
8708 rm -f conftest.$ac_objext
8709 if { (ac_try="$ac_compile"
8710 case "(($ac_try" in
8711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712 *) ac_try_echo=$ac_try;;
8713 esac
8714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8715 $as_echo "$ac_try_echo") >&5
8716 (eval "$ac_compile") 2>conftest.er1
8717 ac_status=$?
8718 grep -v '^ *+' conftest.er1 >conftest.err
8719 rm -f conftest.er1
8720 cat conftest.err >&5
8721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } && {
8723 test -z "$ac_c_werror_flag" ||
8724 test ! -s conftest.err
8725 } && test -s conftest.$ac_objext; then
8726 ac_cv_member_struct_ifreq_ifr_addr=yes
8727 else
8728 $as_echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8731 ac_cv_member_struct_ifreq_ifr_addr=no
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8739 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8740 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8741 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8743 cat >>confdefs.h <<_ACEOF
8744 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8745 _ACEOF
8752 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8753 $as_echo_n "checking for function prototypes... " >&6; }
8754 if test "$ac_cv_prog_cc_c89" != no; then
8755 { $as_echo "$as_me:$LINENO: result: yes" >&5
8756 $as_echo "yes" >&6; }
8758 cat >>confdefs.h <<\_ACEOF
8759 #define PROTOTYPES 1
8760 _ACEOF
8763 cat >>confdefs.h <<\_ACEOF
8764 #define __PROTOTYPES 1
8765 _ACEOF
8767 else
8768 { $as_echo "$as_me:$LINENO: result: no" >&5
8769 $as_echo "no" >&6; }
8772 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8773 $as_echo_n "checking for working volatile... " >&6; }
8774 if test "${ac_cv_c_volatile+set}" = set; then
8775 $as_echo_n "(cached) " >&6
8776 else
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8785 main ()
8788 volatile int x;
8789 int * volatile y = (int *) 0;
8790 return !x && !y;
8792 return 0;
8794 _ACEOF
8795 rm -f conftest.$ac_objext
8796 if { (ac_try="$ac_compile"
8797 case "(($ac_try" in
8798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8800 esac
8801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8802 $as_echo "$ac_try_echo") >&5
8803 (eval "$ac_compile") 2>conftest.er1
8804 ac_status=$?
8805 grep -v '^ *+' conftest.er1 >conftest.err
8806 rm -f conftest.er1
8807 cat conftest.err >&5
8808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } && {
8810 test -z "$ac_c_werror_flag" ||
8811 test ! -s conftest.err
8812 } && test -s conftest.$ac_objext; then
8813 ac_cv_c_volatile=yes
8814 else
8815 $as_echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8818 ac_cv_c_volatile=no
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8824 $as_echo "$ac_cv_c_volatile" >&6; }
8825 if test $ac_cv_c_volatile = no; then
8827 cat >>confdefs.h <<\_ACEOF
8828 #define volatile /**/
8829 _ACEOF
8833 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8834 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8835 if test "${ac_cv_c_const+set}" = set; then
8836 $as_echo_n "(cached) " >&6
8837 else
8838 cat >conftest.$ac_ext <<_ACEOF
8839 /* confdefs.h. */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8846 main ()
8848 /* FIXME: Include the comments suggested by Paul. */
8849 #ifndef __cplusplus
8850 /* Ultrix mips cc rejects this. */
8851 typedef int charset[2];
8852 const charset cs;
8853 /* SunOS 4.1.1 cc rejects this. */
8854 char const *const *pcpcc;
8855 char **ppc;
8856 /* NEC SVR4.0.2 mips cc rejects this. */
8857 struct point {int x, y;};
8858 static struct point const zero = {0,0};
8859 /* AIX XL C 1.02.0.0 rejects this.
8860 It does not let you subtract one const X* pointer from another in
8861 an arm of an if-expression whose if-part is not a constant
8862 expression */
8863 const char *g = "string";
8864 pcpcc = &g + (g ? g-g : 0);
8865 /* HPUX 7.0 cc rejects these. */
8866 ++pcpcc;
8867 ppc = (char**) pcpcc;
8868 pcpcc = (char const *const *) ppc;
8869 { /* SCO 3.2v4 cc rejects this. */
8870 char *t;
8871 char const *s = 0 ? (char *) 0 : (char const *) 0;
8873 *t++ = 0;
8874 if (s) return 0;
8876 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8877 int x[] = {25, 17};
8878 const int *foo = &x[0];
8879 ++foo;
8881 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8882 typedef const int *iptr;
8883 iptr p = 0;
8884 ++p;
8886 { /* AIX XL C 1.02.0.0 rejects this saying
8887 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8888 struct s { int j; const int *ap[3]; };
8889 struct s *b; b->j = 5;
8891 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8892 const int foo = 10;
8893 if (!foo) return 0;
8895 return !cs[0] && !zero.x;
8896 #endif
8899 return 0;
8901 _ACEOF
8902 rm -f conftest.$ac_objext
8903 if { (ac_try="$ac_compile"
8904 case "(($ac_try" in
8905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8907 esac
8908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8909 $as_echo "$ac_try_echo") >&5
8910 (eval "$ac_compile") 2>conftest.er1
8911 ac_status=$?
8912 grep -v '^ *+' conftest.er1 >conftest.err
8913 rm -f conftest.er1
8914 cat conftest.err >&5
8915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } && {
8917 test -z "$ac_c_werror_flag" ||
8918 test ! -s conftest.err
8919 } && test -s conftest.$ac_objext; then
8920 ac_cv_c_const=yes
8921 else
8922 $as_echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8925 ac_cv_c_const=no
8928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8930 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8931 $as_echo "$ac_cv_c_const" >&6; }
8932 if test $ac_cv_c_const = no; then
8934 cat >>confdefs.h <<\_ACEOF
8935 #define const /**/
8936 _ACEOF
8940 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
8941 $as_echo_n "checking for void * support... " >&6; }
8942 if test "${emacs_cv_void_star+set}" = set; then
8943 $as_echo_n "(cached) " >&6
8944 else
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h. */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8953 main ()
8955 void * foo;
8957 return 0;
8959 _ACEOF
8960 rm -f conftest.$ac_objext
8961 if { (ac_try="$ac_compile"
8962 case "(($ac_try" in
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8965 esac
8966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8967 $as_echo "$ac_try_echo") >&5
8968 (eval "$ac_compile") 2>conftest.er1
8969 ac_status=$?
8970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } && {
8975 test -z "$ac_c_werror_flag" ||
8976 test ! -s conftest.err
8977 } && test -s conftest.$ac_objext; then
8978 emacs_cv_void_star=yes
8979 else
8980 $as_echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8983 emacs_cv_void_star=no
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8989 $as_echo "$emacs_cv_void_star" >&6; }
8990 if test $emacs_cv_void_star = yes; then
8991 cat >>confdefs.h <<\_ACEOF
8992 #define POINTER_TYPE void
8993 _ACEOF
8995 else
8996 cat >>confdefs.h <<\_ACEOF
8997 #define POINTER_TYPE char
8998 _ACEOF
9006 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9007 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9008 set x ${MAKE-make}
9009 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9010 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9011 $as_echo_n "(cached) " >&6
9012 else
9013 cat >conftest.make <<\_ACEOF
9014 SHELL = /bin/sh
9015 all:
9016 @echo '@@@%%%=$(MAKE)=@@@%%%'
9017 _ACEOF
9018 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9019 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9020 *@@@%%%=?*=@@@%%%*)
9021 eval ac_cv_prog_make_${ac_make}_set=yes;;
9023 eval ac_cv_prog_make_${ac_make}_set=no;;
9024 esac
9025 rm -f conftest.make
9027 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9028 { $as_echo "$as_me:$LINENO: result: yes" >&5
9029 $as_echo "yes" >&6; }
9030 SET_MAKE=
9031 else
9032 { $as_echo "$as_me:$LINENO: result: no" >&5
9033 $as_echo "no" >&6; }
9034 SET_MAKE="MAKE=${MAKE-make}"
9038 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9039 $as_echo_n "checking for long file names... " >&6; }
9040 if test "${ac_cv_sys_long_file_names+set}" = set; then
9041 $as_echo_n "(cached) " >&6
9042 else
9043 ac_cv_sys_long_file_names=yes
9044 # Test for long file names in all the places we know might matter:
9045 # . the current directory, where building will happen
9046 # $prefix/lib where we will be installing things
9047 # $exec_prefix/lib likewise
9048 # $TMPDIR if set, where it might want to write temporary files
9049 # /tmp where it might want to write temporary files
9050 # /var/tmp likewise
9051 # /usr/tmp likewise
9052 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9053 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9054 # in the usual case where exec_prefix is '${prefix}'.
9055 case $ac_dir in #(
9056 . | /* | ?:[\\/]*) ;; #(
9057 *) continue;;
9058 esac
9059 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9060 ac_xdir=$ac_dir/cf$$
9061 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9062 ac_tf1=$ac_xdir/conftest9012345
9063 ac_tf2=$ac_xdir/conftest9012346
9064 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9065 ac_cv_sys_long_file_names=no
9066 rm -f -r "$ac_xdir" 2>/dev/null
9067 test $ac_cv_sys_long_file_names = no && break
9068 done
9070 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9071 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9072 if test $ac_cv_sys_long_file_names = yes; then
9074 cat >>confdefs.h <<\_ACEOF
9075 #define HAVE_LONG_FILE_NAMES 1
9076 _ACEOF
9081 #### Choose a window system.
9083 { $as_echo "$as_me:$LINENO: checking for X" >&5
9084 $as_echo_n "checking for X... " >&6; }
9087 # Check whether --with-x was given.
9088 if test "${with_x+set}" = set; then
9089 withval=$with_x;
9092 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9093 if test "x$with_x" = xno; then
9094 # The user explicitly disabled X.
9095 have_x=disabled
9096 else
9097 case $x_includes,$x_libraries in #(
9098 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9099 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9100 { (exit 1); exit 1; }; };; #(
9101 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9102 $as_echo_n "(cached) " >&6
9103 else
9104 # One or both of the vars are not set, and there is no cached value.
9105 ac_x_includes=no ac_x_libraries=no
9106 rm -f -r conftest.dir
9107 if mkdir conftest.dir; then
9108 cd conftest.dir
9109 cat >Imakefile <<'_ACEOF'
9110 incroot:
9111 @echo incroot='${INCROOT}'
9112 usrlibdir:
9113 @echo usrlibdir='${USRLIBDIR}'
9114 libdir:
9115 @echo libdir='${LIBDIR}'
9116 _ACEOF
9117 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9118 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9119 for ac_var in incroot usrlibdir libdir; do
9120 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9121 done
9122 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9123 for ac_extension in a so sl dylib la dll; do
9124 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9125 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9126 ac_im_usrlibdir=$ac_im_libdir; break
9128 done
9129 # Screen out bogus values from the imake configuration. They are
9130 # bogus both because they are the default anyway, and because
9131 # using them would break gcc on systems where it needs fixed includes.
9132 case $ac_im_incroot in
9133 /usr/include) ac_x_includes= ;;
9134 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9135 esac
9136 case $ac_im_usrlibdir in
9137 /usr/lib | /lib) ;;
9138 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9139 esac
9141 cd ..
9142 rm -f -r conftest.dir
9145 # Standard set of common directories for X headers.
9146 # Check X11 before X11Rn because it is often a symlink to the current release.
9147 ac_x_header_dirs='
9148 /usr/X11/include
9149 /usr/X11R6/include
9150 /usr/X11R5/include
9151 /usr/X11R4/include
9153 /usr/include/X11
9154 /usr/include/X11R6
9155 /usr/include/X11R5
9156 /usr/include/X11R4
9158 /usr/local/X11/include
9159 /usr/local/X11R6/include
9160 /usr/local/X11R5/include
9161 /usr/local/X11R4/include
9163 /usr/local/include/X11
9164 /usr/local/include/X11R6
9165 /usr/local/include/X11R5
9166 /usr/local/include/X11R4
9168 /usr/X386/include
9169 /usr/x386/include
9170 /usr/XFree86/include/X11
9172 /usr/include
9173 /usr/local/include
9174 /usr/unsupported/include
9175 /usr/athena/include
9176 /usr/local/x11r5/include
9177 /usr/lpp/Xamples/include
9179 /usr/openwin/include
9180 /usr/openwin/share/include'
9182 if test "$ac_x_includes" = no; then
9183 # Guess where to find include files, by looking for Xlib.h.
9184 # First, try using that file with no special directory specified.
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h. */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 #include <X11/Xlib.h>
9192 _ACEOF
9193 if { (ac_try="$ac_cpp conftest.$ac_ext"
9194 case "(($ac_try" in
9195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9196 *) ac_try_echo=$ac_try;;
9197 esac
9198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9199 $as_echo "$ac_try_echo") >&5
9200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } >/dev/null && {
9207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9208 test ! -s conftest.err
9209 }; then
9210 # We can compile using X headers with no special include directory.
9211 ac_x_includes=
9212 else
9213 $as_echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9216 for ac_dir in $ac_x_header_dirs; do
9217 if test -r "$ac_dir/X11/Xlib.h"; then
9218 ac_x_includes=$ac_dir
9219 break
9221 done
9224 rm -f conftest.err conftest.$ac_ext
9225 fi # $ac_x_includes = no
9227 if test "$ac_x_libraries" = no; then
9228 # Check for the libraries.
9229 # See if we find them without any special options.
9230 # Don't add to $LIBS permanently.
9231 ac_save_LIBS=$LIBS
9232 LIBS="-lX11 $LIBS"
9233 cat >conftest.$ac_ext <<_ACEOF
9234 /* confdefs.h. */
9235 _ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9239 #include <X11/Xlib.h>
9241 main ()
9243 XrmInitialize ()
9245 return 0;
9247 _ACEOF
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (ac_try="$ac_link"
9250 case "(($ac_try" in
9251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9252 *) ac_try_echo=$ac_try;;
9253 esac
9254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9255 $as_echo "$ac_try_echo") >&5
9256 (eval "$ac_link") 2>conftest.er1
9257 ac_status=$?
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
9261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } && {
9263 test -z "$ac_c_werror_flag" ||
9264 test ! -s conftest.err
9265 } && test -s conftest$ac_exeext && {
9266 test "$cross_compiling" = yes ||
9267 $as_test_x conftest$ac_exeext
9268 }; then
9269 LIBS=$ac_save_LIBS
9270 # We can link X programs with no special library path.
9271 ac_x_libraries=
9272 else
9273 $as_echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9276 LIBS=$ac_save_LIBS
9277 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9279 # Don't even attempt the hair of trying to link an X program!
9280 for ac_extension in a so sl dylib la dll; do
9281 if test -r "$ac_dir/libX11.$ac_extension"; then
9282 ac_x_libraries=$ac_dir
9283 break 2
9285 done
9286 done
9289 rm -rf conftest.dSYM
9290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9291 conftest$ac_exeext conftest.$ac_ext
9292 fi # $ac_x_libraries = no
9294 case $ac_x_includes,$ac_x_libraries in #(
9295 no,* | *,no | *\'*)
9296 # Didn't find X, or a directory has "'" in its name.
9297 ac_cv_have_x="have_x=no";; #(
9299 # Record where we found X for the cache.
9300 ac_cv_have_x="have_x=yes\
9301 ac_x_includes='$ac_x_includes'\
9302 ac_x_libraries='$ac_x_libraries'"
9303 esac
9305 ;; #(
9306 *) have_x=yes;;
9307 esac
9308 eval "$ac_cv_have_x"
9309 fi # $with_x != no
9311 if test "$have_x" != yes; then
9312 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9313 $as_echo "$have_x" >&6; }
9314 no_x=yes
9315 else
9316 # If each of the values was on the command line, it overrides each guess.
9317 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9318 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9319 # Update the cache value to reflect the command line values.
9320 ac_cv_have_x="have_x=yes\
9321 ac_x_includes='$x_includes'\
9322 ac_x_libraries='$x_libraries'"
9323 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9324 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9327 if test "$no_x" = yes; then
9328 window_system=none
9329 else
9330 window_system=x11
9333 ## Workaround for bug in autoconf <= 2.62.
9334 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9335 ## No need to do anything special for these standard directories.
9336 ## This is an experiment, take it out if it causes problems.
9337 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9339 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9343 if test "${x_libraries}" != NONE; then
9344 if test -n "${x_libraries}"; then
9345 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9346 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9348 x_default_search_path=""
9349 x_search_path=${x_libraries}
9350 if test -z "${x_search_path}"; then
9351 x_search_path=/usr/lib
9353 for x_library in `echo ${x_search_path}: | \
9354 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9355 x_search_path="\
9356 ${x_library}/X11/%L/%T/%N%C%S:\
9357 ${x_library}/X11/%l/%T/%N%C%S:\
9358 ${x_library}/X11/%T/%N%C%S:\
9359 ${x_library}/X11/%L/%T/%N%S:\
9360 ${x_library}/X11/%l/%T/%N%S:\
9361 ${x_library}/X11/%T/%N%S"
9362 if test x"${x_default_search_path}" = x; then
9363 x_default_search_path=${x_search_path}
9364 else
9365 x_default_search_path="${x_search_path}:${x_default_search_path}"
9367 done
9369 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9370 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9373 if test x"${x_includes}" = x; then
9374 bitmapdir=/usr/include/X11/bitmaps
9375 else
9376 # accumulate include directories that have X11 bitmap subdirectories
9377 bmd_acc="dummyval"
9378 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9379 if test -d "${bmd}/X11/bitmaps"; then
9380 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9382 if test -d "${bmd}/bitmaps"; then
9383 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9385 done
9386 if test ${bmd_acc} != "dummyval"; then
9387 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9391 HAVE_NS=no
9392 NS_IMPL_COCOA=no
9393 NS_IMPL_GNUSTEP=no
9394 tmp_CPPFLAGS="$CPPFLAGS"
9395 tmp_CFLAGS="$CFLAGS"
9396 CPPFLAGS="$CPPFLAGS -x objective-c"
9397 CFLAGS="$CFLAGS -x objective-c"
9398 if test "${with_ns}" != no; then
9399 if test "${opsys}" = darwin; then
9400 NS_IMPL_COCOA=yes
9401 ns_appdir=`pwd`/nextstep/Emacs.app
9402 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9403 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9404 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9405 elif test -f $GNUSTEP_CONFIG_FILE; then
9406 NS_IMPL_GNUSTEP=yes
9407 ns_appdir=`pwd`/nextstep/Emacs.app
9408 ns_appbindir=`pwd`/nextstep/Emacs.app
9409 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9410 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9411 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9412 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9413 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9414 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9415 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9416 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9417 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9419 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9420 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9421 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9422 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9423 $as_echo_n "(cached) " >&6
9425 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9426 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9427 else
9428 # Is the header compilable?
9429 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9430 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9431 cat >conftest.$ac_ext <<_ACEOF
9432 /* confdefs.h. */
9433 _ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9437 $ac_includes_default
9438 #include <AppKit/AppKit.h>
9439 _ACEOF
9440 rm -f conftest.$ac_objext
9441 if { (ac_try="$ac_compile"
9442 case "(($ac_try" in
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9445 esac
9446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9447 $as_echo "$ac_try_echo") >&5
9448 (eval "$ac_compile") 2>conftest.er1
9449 ac_status=$?
9450 grep -v '^ *+' conftest.er1 >conftest.err
9451 rm -f conftest.er1
9452 cat conftest.err >&5
9453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } && {
9455 test -z "$ac_c_werror_flag" ||
9456 test ! -s conftest.err
9457 } && test -s conftest.$ac_objext; then
9458 ac_header_compiler=yes
9459 else
9460 $as_echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9463 ac_header_compiler=no
9466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9467 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9468 $as_echo "$ac_header_compiler" >&6; }
9470 # Is the header present?
9471 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9472 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9473 cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h. */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9479 #include <AppKit/AppKit.h>
9480 _ACEOF
9481 if { (ac_try="$ac_cpp conftest.$ac_ext"
9482 case "(($ac_try" in
9483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484 *) ac_try_echo=$ac_try;;
9485 esac
9486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9487 $as_echo "$ac_try_echo") >&5
9488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } >/dev/null && {
9495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9496 test ! -s conftest.err
9497 }; then
9498 ac_header_preproc=yes
9499 else
9500 $as_echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9503 ac_header_preproc=no
9506 rm -f conftest.err conftest.$ac_ext
9507 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9508 $as_echo "$ac_header_preproc" >&6; }
9510 # So? What about this header?
9511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9512 yes:no: )
9513 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9514 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9515 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9516 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9517 ac_header_preproc=yes
9519 no:yes:* )
9520 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9521 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9522 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9523 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9524 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9525 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9526 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9527 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9528 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9529 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9530 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9531 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9534 esac
9535 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9536 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9537 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9538 $as_echo_n "(cached) " >&6
9539 else
9540 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9543 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9546 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9547 HAVE_NS=yes
9548 else
9549 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9550 files are missing or cannot be compiled." >&5
9551 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9552 files are missing or cannot be compiled." >&2;}
9553 { (exit 1); exit 1; }; }
9557 NS_HAVE_NSINTEGER=yes
9558 cat >conftest.$ac_ext <<_ACEOF
9559 /* confdefs.h. */
9560 _ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 #include <Foundation/NSObjCRuntime.h>
9566 main ()
9568 NSInteger i;
9570 return 0;
9572 _ACEOF
9573 rm -f conftest.$ac_objext
9574 if { (ac_try="$ac_compile"
9575 case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9578 esac
9579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9580 $as_echo "$ac_try_echo") >&5
9581 (eval "$ac_compile") 2>conftest.er1
9582 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1
9585 cat conftest.err >&5
9586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } && {
9588 test -z "$ac_c_werror_flag" ||
9589 test ! -s conftest.err
9590 } && test -s conftest.$ac_objext; then
9591 ns_have_nsinteger=yes
9592 else
9593 $as_echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9596 ns_have_nsinteger=no
9599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9600 if test $ns_have_nsinteger = no; then
9601 NS_HAVE_NSINTEGER=no
9604 if test "${HAVE_NS}" = yes; then
9605 window_system=nextstep
9606 with_xft=no
9607 with_freetype=no
9608 # set up packaging dirs
9609 exec_prefix=${ns_appbindir}
9610 libexecdir=${ns_appbindir}/libexec
9611 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9612 prefix=${ns_appresdir}
9615 CFLAGS="$tmp_CFLAGS"
9616 CPPFLAGS="$tmp_CPPFLAGS"
9618 case "${window_system}" in
9619 x11 )
9620 HAVE_X_WINDOWS=yes
9621 HAVE_X11=yes
9622 case "${with_x_toolkit}" in
9623 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9624 motif ) USE_X_TOOLKIT=MOTIF ;;
9625 gtk ) with_gtk=yes
9626 USE_X_TOOLKIT=none ;;
9627 no ) USE_X_TOOLKIT=none ;;
9628 * ) USE_X_TOOLKIT=maybe ;;
9629 esac
9631 nextstep | none )
9632 HAVE_X_WINDOWS=no
9633 HAVE_X11=no
9634 USE_X_TOOLKIT=none
9636 esac
9638 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9639 # Extract the first word of "X", so it can be a program name with args.
9640 set dummy X; ac_word=$2
9641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9644 $as_echo_n "(cached) " >&6
9645 else
9646 if test -n "$HAVE_XSERVER"; then
9647 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9648 else
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 for as_dir in $PATH
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_prog_HAVE_XSERVER="true"
9657 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9658 break 2
9660 done
9661 done
9662 IFS=$as_save_IFS
9664 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9667 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9668 if test -n "$HAVE_XSERVER"; then
9669 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9670 $as_echo "$HAVE_XSERVER" >&6; }
9671 else
9672 { $as_echo "$as_me:$LINENO: result: no" >&5
9673 $as_echo "no" >&6; }
9677 if test "$HAVE_XSERVER" = true ||
9678 test -n "$DISPLAY" ||
9679 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9680 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9681 were found. You should install the relevant development files for X
9682 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9683 sure you have development files for image handling, i.e.
9684 tiff, gif, jpeg, png and xpm.
9685 If you are sure you want Emacs compiled without X window support, pass
9686 --without-x
9687 to configure." >&5
9688 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9689 were found. You should install the relevant development files for X
9690 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9691 sure you have development files for image handling, i.e.
9692 tiff, gif, jpeg, png and xpm.
9693 If you are sure you want Emacs compiled without X window support, pass
9694 --without-x
9695 to configure." >&2;}
9696 { (exit 1); exit 1; }; }
9700 ### If we're using X11, we should use the X menu package.
9701 HAVE_MENUS=no
9702 case ${HAVE_X11} in
9703 yes ) HAVE_MENUS=yes ;;
9704 esac
9706 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9707 # Assume not, until told otherwise.
9708 GNU_MALLOC=yes
9709 doug_lea_malloc=yes
9710 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9711 $as_echo_n "checking for malloc_get_state... " >&6; }
9712 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9713 $as_echo_n "(cached) " >&6
9714 else
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9723 #define malloc_get_state innocuous_malloc_get_state
9725 /* System header to define __stub macros and hopefully few prototypes,
9726 which can conflict with char malloc_get_state (); below.
9727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728 <limits.h> exists even on freestanding compilers. */
9730 #ifdef __STDC__
9731 # include <limits.h>
9732 #else
9733 # include <assert.h>
9734 #endif
9736 #undef malloc_get_state
9738 /* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
9741 #ifdef __cplusplus
9742 extern "C"
9743 #endif
9744 char malloc_get_state ();
9745 /* The GNU C library defines this for functions which it implements
9746 to always fail with ENOSYS. Some functions are actually named
9747 something starting with __ and the normal name is an alias. */
9748 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9749 choke me
9750 #endif
9753 main ()
9755 return malloc_get_state ();
9757 return 0;
9759 _ACEOF
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9762 case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9765 esac
9766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9767 $as_echo "$ac_try_echo") >&5
9768 (eval "$ac_link") 2>conftest.er1
9769 ac_status=$?
9770 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } && {
9775 test -z "$ac_c_werror_flag" ||
9776 test ! -s conftest.err
9777 } && test -s conftest$ac_exeext && {
9778 test "$cross_compiling" = yes ||
9779 $as_test_x conftest$ac_exeext
9780 }; then
9781 ac_cv_func_malloc_get_state=yes
9782 else
9783 $as_echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ac_cv_func_malloc_get_state=no
9789 rm -rf conftest.dSYM
9790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9791 conftest$ac_exeext conftest.$ac_ext
9793 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9794 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9795 if test $ac_cv_func_malloc_get_state = yes; then
9797 else
9798 doug_lea_malloc=no
9801 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9802 $as_echo_n "checking for malloc_set_state... " >&6; }
9803 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9804 $as_echo_n "(cached) " >&6
9805 else
9806 cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h. */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9814 #define malloc_set_state innocuous_malloc_set_state
9816 /* System header to define __stub macros and hopefully few prototypes,
9817 which can conflict with char malloc_set_state (); below.
9818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9819 <limits.h> exists even on freestanding compilers. */
9821 #ifdef __STDC__
9822 # include <limits.h>
9823 #else
9824 # include <assert.h>
9825 #endif
9827 #undef malloc_set_state
9829 /* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
9832 #ifdef __cplusplus
9833 extern "C"
9834 #endif
9835 char malloc_set_state ();
9836 /* The GNU C library defines this for functions which it implements
9837 to always fail with ENOSYS. Some functions are actually named
9838 something starting with __ and the normal name is an alias. */
9839 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9840 choke me
9841 #endif
9844 main ()
9846 return malloc_set_state ();
9848 return 0;
9850 _ACEOF
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (ac_try="$ac_link"
9853 case "(($ac_try" in
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9856 esac
9857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9858 $as_echo "$ac_try_echo") >&5
9859 (eval "$ac_link") 2>conftest.er1
9860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } && {
9866 test -z "$ac_c_werror_flag" ||
9867 test ! -s conftest.err
9868 } && test -s conftest$ac_exeext && {
9869 test "$cross_compiling" = yes ||
9870 $as_test_x conftest$ac_exeext
9871 }; then
9872 ac_cv_func_malloc_set_state=yes
9873 else
9874 $as_echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 ac_cv_func_malloc_set_state=no
9880 rm -rf conftest.dSYM
9881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9882 conftest$ac_exeext conftest.$ac_ext
9884 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9885 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
9886 if test $ac_cv_func_malloc_set_state = yes; then
9888 else
9889 doug_lea_malloc=no
9892 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9893 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9894 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9895 $as_echo_n "(cached) " >&6
9896 else
9897 cat >conftest.$ac_ext <<_ACEOF
9898 /* confdefs.h. */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903 extern void (* __after_morecore_hook)();
9905 main ()
9907 __after_morecore_hook = 0
9909 return 0;
9911 _ACEOF
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (ac_try="$ac_link"
9914 case "(($ac_try" in
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9917 esac
9918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9919 $as_echo "$ac_try_echo") >&5
9920 (eval "$ac_link") 2>conftest.er1
9921 ac_status=$?
9922 grep -v '^ *+' conftest.er1 >conftest.err
9923 rm -f conftest.er1
9924 cat conftest.err >&5
9925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } && {
9927 test -z "$ac_c_werror_flag" ||
9928 test ! -s conftest.err
9929 } && test -s conftest$ac_exeext && {
9930 test "$cross_compiling" = yes ||
9931 $as_test_x conftest$ac_exeext
9932 }; then
9933 emacs_cv_var___after_morecore_hook=yes
9934 else
9935 $as_echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9938 emacs_cv_var___after_morecore_hook=no
9941 rm -rf conftest.dSYM
9942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9943 conftest$ac_exeext conftest.$ac_ext
9945 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9946 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9947 if test $emacs_cv_var___after_morecore_hook = no; then
9948 doug_lea_malloc=no
9950 if test "${system_malloc}" = "yes"; then
9951 GNU_MALLOC=no
9952 GNU_MALLOC_reason="
9953 (The GNU allocators don't work with this system configuration.)"
9955 if test "$doug_lea_malloc" = "yes" ; then
9956 if test "$GNU_MALLOC" = yes ; then
9957 GNU_MALLOC_reason="
9958 (Using Doug Lea's new malloc from the GNU C Library.)"
9961 cat >>confdefs.h <<\_ACEOF
9962 #define DOUG_LEA_MALLOC 1
9963 _ACEOF
9967 if test x"${REL_ALLOC}" = x; then
9968 REL_ALLOC=${GNU_MALLOC}
9974 for ac_header in stdlib.h unistd.h
9976 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9978 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9979 $as_echo_n "checking for $ac_header... " >&6; }
9980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9981 $as_echo_n "(cached) " >&6
9983 ac_res=`eval 'as_val=${'$as_ac_Header'}
9984 $as_echo "$as_val"'`
9985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9986 $as_echo "$ac_res" >&6; }
9987 else
9988 # Is the header compilable?
9989 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9990 $as_echo_n "checking $ac_header usability... " >&6; }
9991 cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h. */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9997 $ac_includes_default
9998 #include <$ac_header>
9999 _ACEOF
10000 rm -f conftest.$ac_objext
10001 if { (ac_try="$ac_compile"
10002 case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005 esac
10006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10007 $as_echo "$ac_try_echo") >&5
10008 (eval "$ac_compile") 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && {
10015 test -z "$ac_c_werror_flag" ||
10016 test ! -s conftest.err
10017 } && test -s conftest.$ac_objext; then
10018 ac_header_compiler=yes
10019 else
10020 $as_echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023 ac_header_compiler=no
10026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10027 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10028 $as_echo "$ac_header_compiler" >&6; }
10030 # Is the header present?
10031 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10032 $as_echo_n "checking $ac_header presence... " >&6; }
10033 cat >conftest.$ac_ext <<_ACEOF
10034 /* confdefs.h. */
10035 _ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10039 #include <$ac_header>
10040 _ACEOF
10041 if { (ac_try="$ac_cpp conftest.$ac_ext"
10042 case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045 esac
10046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10047 $as_echo "$ac_try_echo") >&5
10048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10049 ac_status=$?
10050 grep -v '^ *+' conftest.er1 >conftest.err
10051 rm -f conftest.er1
10052 cat conftest.err >&5
10053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } >/dev/null && {
10055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10056 test ! -s conftest.err
10057 }; then
10058 ac_header_preproc=yes
10059 else
10060 $as_echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10063 ac_header_preproc=no
10066 rm -f conftest.err conftest.$ac_ext
10067 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10068 $as_echo "$ac_header_preproc" >&6; }
10070 # So? What about this header?
10071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10072 yes:no: )
10073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10074 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10076 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10077 ac_header_preproc=yes
10079 no:yes:* )
10080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10081 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10083 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10085 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10087 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10089 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10091 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10094 esac
10095 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10096 $as_echo_n "checking for $ac_header... " >&6; }
10097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10098 $as_echo_n "(cached) " >&6
10099 else
10100 eval "$as_ac_Header=\$ac_header_preproc"
10102 ac_res=`eval 'as_val=${'$as_ac_Header'}
10103 $as_echo "$as_val"'`
10104 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10105 $as_echo "$ac_res" >&6; }
10108 if test `eval 'as_val=${'$as_ac_Header'}
10109 $as_echo "$as_val"'` = yes; then
10110 cat >>confdefs.h <<_ACEOF
10111 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10112 _ACEOF
10116 done
10119 for ac_func in getpagesize
10121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10122 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10123 $as_echo_n "checking for $ac_func... " >&6; }
10124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10125 $as_echo_n "(cached) " >&6
10126 else
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h. */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10135 #define $ac_func innocuous_$ac_func
10137 /* System header to define __stub macros and hopefully few prototypes,
10138 which can conflict with char $ac_func (); below.
10139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10140 <limits.h> exists even on freestanding compilers. */
10142 #ifdef __STDC__
10143 # include <limits.h>
10144 #else
10145 # include <assert.h>
10146 #endif
10148 #undef $ac_func
10150 /* Override any GCC internal prototype to avoid an error.
10151 Use char because int might match the return type of a GCC
10152 builtin and then its argument prototype would still apply. */
10153 #ifdef __cplusplus
10154 extern "C"
10155 #endif
10156 char $ac_func ();
10157 /* The GNU C library defines this for functions which it implements
10158 to always fail with ENOSYS. Some functions are actually named
10159 something starting with __ and the normal name is an alias. */
10160 #if defined __stub_$ac_func || defined __stub___$ac_func
10161 choke me
10162 #endif
10165 main ()
10167 return $ac_func ();
10169 return 0;
10171 _ACEOF
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (ac_try="$ac_link"
10174 case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10177 esac
10178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10179 $as_echo "$ac_try_echo") >&5
10180 (eval "$ac_link") 2>conftest.er1
10181 ac_status=$?
10182 grep -v '^ *+' conftest.er1 >conftest.err
10183 rm -f conftest.er1
10184 cat conftest.err >&5
10185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } && {
10187 test -z "$ac_c_werror_flag" ||
10188 test ! -s conftest.err
10189 } && test -s conftest$ac_exeext && {
10190 test "$cross_compiling" = yes ||
10191 $as_test_x conftest$ac_exeext
10192 }; then
10193 eval "$as_ac_var=yes"
10194 else
10195 $as_echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10198 eval "$as_ac_var=no"
10201 rm -rf conftest.dSYM
10202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10203 conftest$ac_exeext conftest.$ac_ext
10205 ac_res=`eval 'as_val=${'$as_ac_var'}
10206 $as_echo "$as_val"'`
10207 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10208 $as_echo "$ac_res" >&6; }
10209 if test `eval 'as_val=${'$as_ac_var'}
10210 $as_echo "$as_val"'` = yes; then
10211 cat >>confdefs.h <<_ACEOF
10212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10213 _ACEOF
10216 done
10218 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10219 $as_echo_n "checking for working mmap... " >&6; }
10220 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10221 $as_echo_n "(cached) " >&6
10222 else
10223 if test "$cross_compiling" = yes; then
10224 ac_cv_func_mmap_fixed_mapped=no
10225 else
10226 cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h. */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 $ac_includes_default
10233 /* malloc might have been renamed as rpl_malloc. */
10234 #undef malloc
10236 /* Thanks to Mike Haertel and Jim Avera for this test.
10237 Here is a matrix of mmap possibilities:
10238 mmap private not fixed
10239 mmap private fixed at somewhere currently unmapped
10240 mmap private fixed at somewhere already mapped
10241 mmap shared not fixed
10242 mmap shared fixed at somewhere currently unmapped
10243 mmap shared fixed at somewhere already mapped
10244 For private mappings, we should verify that changes cannot be read()
10245 back from the file, nor mmap's back from the file at a different
10246 address. (There have been systems where private was not correctly
10247 implemented like the infamous i386 svr4.0, and systems where the
10248 VM page cache was not coherent with the file system buffer cache
10249 like early versions of FreeBSD and possibly contemporary NetBSD.)
10250 For shared mappings, we should conversely verify that changes get
10251 propagated back to all the places they're supposed to be.
10253 Grep wants private fixed already mapped.
10254 The main things grep needs to know about mmap are:
10255 * does it exist and is it safe to write into the mmap'd area
10256 * how to use it (BSD variants) */
10258 #include <fcntl.h>
10259 #include <sys/mman.h>
10261 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10262 char *malloc ();
10263 #endif
10265 /* This mess was copied from the GNU getpagesize.h. */
10266 #ifndef HAVE_GETPAGESIZE
10267 /* Assume that all systems that can run configure have sys/param.h. */
10268 # ifndef HAVE_SYS_PARAM_H
10269 # define HAVE_SYS_PARAM_H 1
10270 # endif
10272 # ifdef _SC_PAGESIZE
10273 # define getpagesize() sysconf(_SC_PAGESIZE)
10274 # else /* no _SC_PAGESIZE */
10275 # ifdef HAVE_SYS_PARAM_H
10276 # include <sys/param.h>
10277 # ifdef EXEC_PAGESIZE
10278 # define getpagesize() EXEC_PAGESIZE
10279 # else /* no EXEC_PAGESIZE */
10280 # ifdef NBPG
10281 # define getpagesize() NBPG * CLSIZE
10282 # ifndef CLSIZE
10283 # define CLSIZE 1
10284 # endif /* no CLSIZE */
10285 # else /* no NBPG */
10286 # ifdef NBPC
10287 # define getpagesize() NBPC
10288 # else /* no NBPC */
10289 # ifdef PAGESIZE
10290 # define getpagesize() PAGESIZE
10291 # endif /* PAGESIZE */
10292 # endif /* no NBPC */
10293 # endif /* no NBPG */
10294 # endif /* no EXEC_PAGESIZE */
10295 # else /* no HAVE_SYS_PARAM_H */
10296 # define getpagesize() 8192 /* punt totally */
10297 # endif /* no HAVE_SYS_PARAM_H */
10298 # endif /* no _SC_PAGESIZE */
10300 #endif /* no HAVE_GETPAGESIZE */
10303 main ()
10305 char *data, *data2, *data3;
10306 int i, pagesize;
10307 int fd;
10309 pagesize = getpagesize ();
10311 /* First, make a file with some known garbage in it. */
10312 data = (char *) malloc (pagesize);
10313 if (!data)
10314 return 1;
10315 for (i = 0; i < pagesize; ++i)
10316 *(data + i) = rand ();
10317 umask (0);
10318 fd = creat ("conftest.mmap", 0600);
10319 if (fd < 0)
10320 return 1;
10321 if (write (fd, data, pagesize) != pagesize)
10322 return 1;
10323 close (fd);
10325 /* Next, try to mmap the file at a fixed address which already has
10326 something else allocated at it. If we can, also make sure that
10327 we see the same garbage. */
10328 fd = open ("conftest.mmap", O_RDWR);
10329 if (fd < 0)
10330 return 1;
10331 data2 = (char *) malloc (2 * pagesize);
10332 if (!data2)
10333 return 1;
10334 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10335 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10336 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10337 return 1;
10338 for (i = 0; i < pagesize; ++i)
10339 if (*(data + i) != *(data2 + i))
10340 return 1;
10342 /* Finally, make sure that changes to the mapped area do not
10343 percolate back to the file as seen by read(). (This is a bug on
10344 some variants of i386 svr4.0.) */
10345 for (i = 0; i < pagesize; ++i)
10346 *(data2 + i) = *(data2 + i) + 1;
10347 data3 = (char *) malloc (pagesize);
10348 if (!data3)
10349 return 1;
10350 if (read (fd, data3, pagesize) != pagesize)
10351 return 1;
10352 for (i = 0; i < pagesize; ++i)
10353 if (*(data + i) != *(data3 + i))
10354 return 1;
10355 close (fd);
10356 return 0;
10358 _ACEOF
10359 rm -f conftest$ac_exeext
10360 if { (ac_try="$ac_link"
10361 case "(($ac_try" in
10362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363 *) ac_try_echo=$ac_try;;
10364 esac
10365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10366 $as_echo "$ac_try_echo") >&5
10367 (eval "$ac_link") 2>&5
10368 ac_status=$?
10369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10371 { (case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10374 esac
10375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10376 $as_echo "$ac_try_echo") >&5
10377 (eval "$ac_try") 2>&5
10378 ac_status=$?
10379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; }; then
10381 ac_cv_func_mmap_fixed_mapped=yes
10382 else
10383 $as_echo "$as_me: program exited with status $ac_status" >&5
10384 $as_echo "$as_me: failed program was:" >&5
10385 sed 's/^/| /' conftest.$ac_ext >&5
10387 ( exit $ac_status )
10388 ac_cv_func_mmap_fixed_mapped=no
10390 rm -rf conftest.dSYM
10391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10396 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10397 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10398 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10400 cat >>confdefs.h <<\_ACEOF
10401 #define HAVE_MMAP 1
10402 _ACEOF
10405 rm -f conftest.mmap
10407 if test $use_mmap_for_buffers = yes; then
10408 REL_ALLOC=no
10411 LIBS="$libsrc_libs $LIBS"
10414 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10415 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10416 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10417 $as_echo_n "(cached) " >&6
10418 else
10419 ac_check_lib_save_LIBS=$LIBS
10420 LIBS="-ldnet $LIBS"
10421 cat >conftest.$ac_ext <<_ACEOF
10422 /* confdefs.h. */
10423 _ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10428 /* Override any GCC internal prototype to avoid an error.
10429 Use char because int might match the return type of a GCC
10430 builtin and then its argument prototype would still apply. */
10431 #ifdef __cplusplus
10432 extern "C"
10433 #endif
10434 char dnet_ntoa ();
10436 main ()
10438 return dnet_ntoa ();
10440 return 0;
10442 _ACEOF
10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (ac_try="$ac_link"
10445 case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10448 esac
10449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10450 $as_echo "$ac_try_echo") >&5
10451 (eval "$ac_link") 2>conftest.er1
10452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } && {
10458 test -z "$ac_c_werror_flag" ||
10459 test ! -s conftest.err
10460 } && test -s conftest$ac_exeext && {
10461 test "$cross_compiling" = yes ||
10462 $as_test_x conftest$ac_exeext
10463 }; then
10464 ac_cv_lib_dnet_dnet_ntoa=yes
10465 else
10466 $as_echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 ac_cv_lib_dnet_dnet_ntoa=no
10472 rm -rf conftest.dSYM
10473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10474 conftest$ac_exeext conftest.$ac_ext
10475 LIBS=$ac_check_lib_save_LIBS
10477 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10478 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10479 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10480 cat >>confdefs.h <<_ACEOF
10481 #define HAVE_LIBDNET 1
10482 _ACEOF
10484 LIBS="-ldnet $LIBS"
10489 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10490 $as_echo_n "checking for main in -lXbsd... " >&6; }
10491 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10492 $as_echo_n "(cached) " >&6
10493 else
10494 ac_check_lib_save_LIBS=$LIBS
10495 LIBS="-lXbsd $LIBS"
10496 cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h. */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10505 main ()
10507 return main ();
10509 return 0;
10511 _ACEOF
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (ac_try="$ac_link"
10514 case "(($ac_try" in
10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10517 esac
10518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10519 $as_echo "$ac_try_echo") >&5
10520 (eval "$ac_link") 2>conftest.er1
10521 ac_status=$?
10522 grep -v '^ *+' conftest.er1 >conftest.err
10523 rm -f conftest.er1
10524 cat conftest.err >&5
10525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest$ac_exeext && {
10530 test "$cross_compiling" = yes ||
10531 $as_test_x conftest$ac_exeext
10532 }; then
10533 ac_cv_lib_Xbsd_main=yes
10534 else
10535 $as_echo "$as_me: failed program was:" >&5
10536 sed 's/^/| /' conftest.$ac_ext >&5
10538 ac_cv_lib_Xbsd_main=no
10541 rm -rf conftest.dSYM
10542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10543 conftest$ac_exeext conftest.$ac_ext
10544 LIBS=$ac_check_lib_save_LIBS
10546 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10547 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10548 if test $ac_cv_lib_Xbsd_main = yes; then
10549 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10554 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10555 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10556 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10557 $as_echo_n "(cached) " >&6
10558 else
10559 ac_check_lib_save_LIBS=$LIBS
10560 LIBS="-lpthreads $LIBS"
10561 cat >conftest.$ac_ext <<_ACEOF
10562 /* confdefs.h. */
10563 _ACEOF
10564 cat confdefs.h >>conftest.$ac_ext
10565 cat >>conftest.$ac_ext <<_ACEOF
10566 /* end confdefs.h. */
10568 /* Override any GCC internal prototype to avoid an error.
10569 Use char because int might match the return type of a GCC
10570 builtin and then its argument prototype would still apply. */
10571 #ifdef __cplusplus
10572 extern "C"
10573 #endif
10574 char cma_open ();
10576 main ()
10578 return cma_open ();
10580 return 0;
10582 _ACEOF
10583 rm -f conftest.$ac_objext conftest$ac_exeext
10584 if { (ac_try="$ac_link"
10585 case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10588 esac
10589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10590 $as_echo "$ac_try_echo") >&5
10591 (eval "$ac_link") 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } && {
10598 test -z "$ac_c_werror_flag" ||
10599 test ! -s conftest.err
10600 } && test -s conftest$ac_exeext && {
10601 test "$cross_compiling" = yes ||
10602 $as_test_x conftest$ac_exeext
10603 }; then
10604 ac_cv_lib_pthreads_cma_open=yes
10605 else
10606 $as_echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10609 ac_cv_lib_pthreads_cma_open=no
10612 rm -rf conftest.dSYM
10613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10614 conftest$ac_exeext conftest.$ac_ext
10615 LIBS=$ac_check_lib_save_LIBS
10617 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10618 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10619 if test $ac_cv_lib_pthreads_cma_open = yes; then
10620 cat >>confdefs.h <<_ACEOF
10621 #define HAVE_LIBPTHREADS 1
10622 _ACEOF
10624 LIBS="-lpthreads $LIBS"
10630 case ${host_os} in
10631 aix*)
10632 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10633 $as_echo_n "checking for -bbigtoc option... " >&6; }
10634 if test "${gdb_cv_bigtoc+set}" = set; then
10635 $as_echo_n "(cached) " >&6
10636 else
10638 case $GCC in
10639 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10640 *) gdb_cv_bigtoc=-bbigtoc ;;
10641 esac
10643 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h. */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10652 main ()
10654 int i;
10656 return 0;
10658 _ACEOF
10659 rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (ac_try="$ac_link"
10661 case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10664 esac
10665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10666 $as_echo "$ac_try_echo") >&5
10667 (eval "$ac_link") 2>conftest.er1
10668 ac_status=$?
10669 grep -v '^ *+' conftest.er1 >conftest.err
10670 rm -f conftest.er1
10671 cat conftest.err >&5
10672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && {
10674 test -z "$ac_c_werror_flag" ||
10675 test ! -s conftest.err
10676 } && test -s conftest$ac_exeext && {
10677 test "$cross_compiling" = yes ||
10678 $as_test_x conftest$ac_exeext
10679 }; then
10681 else
10682 $as_echo "$as_me: failed program was:" >&5
10683 sed 's/^/| /' conftest.$ac_ext >&5
10685 gdb_cv_bigtoc=
10688 rm -rf conftest.dSYM
10689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10690 conftest$ac_exeext conftest.$ac_ext
10693 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10694 $as_echo "$gdb_cv_bigtoc" >&6; }
10696 esac
10698 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10699 # used for the tests that follow. We set them back to REAL_CFLAGS and
10700 # REAL_CPPFLAGS later on.
10702 REAL_CPPFLAGS="$CPPFLAGS"
10704 if test "${HAVE_X11}" = "yes"; then
10705 DEFS="$C_SWITCH_X_SITE $DEFS"
10706 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10707 LIBS="$LIBX $LIBS"
10708 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10709 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10711 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10712 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10713 # but it's more convenient here to set LD_RUN_PATH
10714 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10715 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10716 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10717 export LD_RUN_PATH
10720 if test "${opsys}" = "gnu-linux"; then
10721 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10722 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10723 cat >conftest.$ac_ext <<_ACEOF
10724 /* confdefs.h. */
10725 _ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10731 main ()
10733 XOpenDisplay ("foo");
10735 return 0;
10737 _ACEOF
10738 rm -f conftest.$ac_objext conftest$ac_exeext
10739 if { (ac_try="$ac_link"
10740 case "(($ac_try" in
10741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742 *) ac_try_echo=$ac_try;;
10743 esac
10744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10745 $as_echo "$ac_try_echo") >&5
10746 (eval "$ac_link") 2>conftest.er1
10747 ac_status=$?
10748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
10751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } && {
10753 test -z "$ac_c_werror_flag" ||
10754 test ! -s conftest.err
10755 } && test -s conftest$ac_exeext && {
10756 test "$cross_compiling" = yes ||
10757 $as_test_x conftest$ac_exeext
10758 }; then
10759 xlinux_first_failure=no
10760 else
10761 $as_echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 xlinux_first_failure=yes
10767 rm -rf conftest.dSYM
10768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10769 conftest$ac_exeext conftest.$ac_ext
10770 if test "${xlinux_first_failure}" = "yes"; then
10771 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10772 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10773 OLD_CPPFLAGS="$CPPFLAGS"
10774 OLD_LIBS="$LIBS"
10775 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10776 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10777 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10778 LIBS="$LIBS -b i486-linuxaout"
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h. */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10787 main ()
10789 XOpenDisplay ("foo");
10791 return 0;
10793 _ACEOF
10794 rm -f conftest.$ac_objext conftest$ac_exeext
10795 if { (ac_try="$ac_link"
10796 case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799 esac
10800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10801 $as_echo "$ac_try_echo") >&5
10802 (eval "$ac_link") 2>conftest.er1
10803 ac_status=$?
10804 grep -v '^ *+' conftest.er1 >conftest.err
10805 rm -f conftest.er1
10806 cat conftest.err >&5
10807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } && {
10809 test -z "$ac_c_werror_flag" ||
10810 test ! -s conftest.err
10811 } && test -s conftest$ac_exeext && {
10812 test "$cross_compiling" = yes ||
10813 $as_test_x conftest$ac_exeext
10814 }; then
10815 xlinux_second_failure=no
10816 else
10817 $as_echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10820 xlinux_second_failure=yes
10823 rm -rf conftest.dSYM
10824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10825 conftest$ac_exeext conftest.$ac_ext
10826 if test "${xlinux_second_failure}" = "yes"; then
10827 # If we get the same failure with -b, there is no use adding -b.
10828 # So take it out. This plays safe.
10829 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10830 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10831 CPPFLAGS="$OLD_CPPFLAGS"
10832 LIBS="$OLD_LIBS"
10833 { $as_echo "$as_me:$LINENO: result: no" >&5
10834 $as_echo "no" >&6; }
10835 else
10836 { $as_echo "$as_me:$LINENO: result: yes" >&5
10837 $as_echo "yes" >&6; }
10839 else
10840 { $as_echo "$as_me:$LINENO: result: no" >&5
10841 $as_echo "no" >&6; }
10845 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10846 # header files included from there.
10847 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
10848 $as_echo_n "checking for Xkb... " >&6; }
10849 cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h. */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 #include <X11/Xlib.h>
10856 #include <X11/XKBlib.h>
10858 main ()
10860 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10862 return 0;
10864 _ACEOF
10865 rm -f conftest.$ac_objext conftest$ac_exeext
10866 if { (ac_try="$ac_link"
10867 case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10870 esac
10871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10872 $as_echo "$ac_try_echo") >&5
10873 (eval "$ac_link") 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } && {
10880 test -z "$ac_c_werror_flag" ||
10881 test ! -s conftest.err
10882 } && test -s conftest$ac_exeext && {
10883 test "$cross_compiling" = yes ||
10884 $as_test_x conftest$ac_exeext
10885 }; then
10886 emacs_xkb=yes
10887 else
10888 $as_echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10891 emacs_xkb=no
10894 rm -rf conftest.dSYM
10895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10896 conftest$ac_exeext conftest.$ac_ext
10897 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10898 $as_echo "$emacs_xkb" >&6; }
10899 if test $emacs_xkb = yes; then
10901 cat >>confdefs.h <<\_ACEOF
10902 #define HAVE_XKBGETKEYBOARD 1
10903 _ACEOF
10911 for ac_func in XrmSetDatabase XScreenResourceString \
10912 XScreenNumberOfScreen XSetWMProtocols
10914 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10915 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10916 $as_echo_n "checking for $ac_func... " >&6; }
10917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10918 $as_echo_n "(cached) " >&6
10919 else
10920 cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h. */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10928 #define $ac_func innocuous_$ac_func
10930 /* System header to define __stub macros and hopefully few prototypes,
10931 which can conflict with char $ac_func (); below.
10932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10933 <limits.h> exists even on freestanding compilers. */
10935 #ifdef __STDC__
10936 # include <limits.h>
10937 #else
10938 # include <assert.h>
10939 #endif
10941 #undef $ac_func
10943 /* Override any GCC internal prototype to avoid an error.
10944 Use char because int might match the return type of a GCC
10945 builtin and then its argument prototype would still apply. */
10946 #ifdef __cplusplus
10947 extern "C"
10948 #endif
10949 char $ac_func ();
10950 /* The GNU C library defines this for functions which it implements
10951 to always fail with ENOSYS. Some functions are actually named
10952 something starting with __ and the normal name is an alias. */
10953 #if defined __stub_$ac_func || defined __stub___$ac_func
10954 choke me
10955 #endif
10958 main ()
10960 return $ac_func ();
10962 return 0;
10964 _ACEOF
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (ac_try="$ac_link"
10967 case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10970 esac
10971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10972 $as_echo "$ac_try_echo") >&5
10973 (eval "$ac_link") 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest$ac_exeext && {
10983 test "$cross_compiling" = yes ||
10984 $as_test_x conftest$ac_exeext
10985 }; then
10986 eval "$as_ac_var=yes"
10987 else
10988 $as_echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10991 eval "$as_ac_var=no"
10994 rm -rf conftest.dSYM
10995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10996 conftest$ac_exeext conftest.$ac_ext
10998 ac_res=`eval 'as_val=${'$as_ac_var'}
10999 $as_echo "$as_val"'`
11000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11001 $as_echo "$ac_res" >&6; }
11002 if test `eval 'as_val=${'$as_ac_var'}
11003 $as_echo "$as_val"'` = yes; then
11004 cat >>confdefs.h <<_ACEOF
11005 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11006 _ACEOF
11009 done
11013 if test "${window_system}" = "x11"; then
11014 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11015 $as_echo_n "checking X11 version 6... " >&6; }
11016 if test "${emacs_cv_x11_version_6+set}" = set; then
11017 $as_echo_n "(cached) " >&6
11018 else
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h. */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <X11/Xlib.h>
11027 main ()
11029 #if XlibSpecificationRelease < 6
11030 fail;
11031 #endif
11034 return 0;
11036 _ACEOF
11037 rm -f conftest.$ac_objext conftest$ac_exeext
11038 if { (ac_try="$ac_link"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042 esac
11043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11044 $as_echo "$ac_try_echo") >&5
11045 (eval "$ac_link") 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && {
11052 test -z "$ac_c_werror_flag" ||
11053 test ! -s conftest.err
11054 } && test -s conftest$ac_exeext && {
11055 test "$cross_compiling" = yes ||
11056 $as_test_x conftest$ac_exeext
11057 }; then
11058 emacs_cv_x11_version_6=yes
11059 else
11060 $as_echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11063 emacs_cv_x11_version_6=no
11066 rm -rf conftest.dSYM
11067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11068 conftest$ac_exeext conftest.$ac_ext
11071 if test $emacs_cv_x11_version_6 = yes; then
11072 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11073 $as_echo "6 or newer" >&6; }
11075 cat >>confdefs.h <<\_ACEOF
11076 #define HAVE_X11R6 1
11077 _ACEOF
11079 else
11080 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11081 $as_echo "before 6" >&6; }
11086 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11087 HAVE_RSVG=no
11088 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11089 if test "${with_rsvg}" != "no"; then
11090 RSVG_REQUIRED=2.11.0
11091 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11094 succeeded=no
11096 # Extract the first word of "pkg-config", so it can be a program name with args.
11097 set dummy pkg-config; ac_word=$2
11098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11099 $as_echo_n "checking for $ac_word... " >&6; }
11100 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11101 $as_echo_n "(cached) " >&6
11102 else
11103 case $PKG_CONFIG in
11104 [\\/]* | ?:[\\/]*)
11105 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109 for as_dir in $PATH
11111 IFS=$as_save_IFS
11112 test -z "$as_dir" && as_dir=.
11113 for ac_exec_ext in '' $ac_executable_extensions; do
11114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11115 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11116 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11117 break 2
11119 done
11120 done
11121 IFS=$as_save_IFS
11123 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11125 esac
11127 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11128 if test -n "$PKG_CONFIG"; then
11129 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11130 $as_echo "$PKG_CONFIG" >&6; }
11131 else
11132 { $as_echo "$as_me:$LINENO: result: no" >&5
11133 $as_echo "no" >&6; }
11138 if test "$PKG_CONFIG" = "no" ; then
11140 else
11141 PKG_CONFIG_MIN_VERSION=0.9.0
11142 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11143 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11144 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11146 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11147 { $as_echo "$as_me:$LINENO: result: yes" >&5
11148 $as_echo "yes" >&6; }
11149 succeeded=yes
11151 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11152 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11153 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11154 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11155 $as_echo "$RSVG_CFLAGS" >&6; }
11157 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11158 $as_echo_n "checking RSVG_LIBS... " >&6; }
11159 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11160 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11161 $as_echo "$RSVG_LIBS" >&6; }
11162 else
11163 { $as_echo "$as_me:$LINENO: result: no" >&5
11164 $as_echo "no" >&6; }
11165 RSVG_CFLAGS=""
11166 RSVG_LIBS=""
11167 ## If we have a custom action on failure, don't print errors, but
11168 ## do set a variable so people can do so.
11169 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11175 else
11176 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11177 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11181 if test $succeeded = yes; then
11183 else
11190 if test ".${RSVG_CFLAGS}" != "."; then
11191 HAVE_RSVG=yes
11193 cat >>confdefs.h <<\_ACEOF
11194 #define HAVE_RSVG 1
11195 _ACEOF
11197 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11198 LIBS="$RSVG_LIBS $LIBS"
11204 HAVE_GTK=no
11205 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11206 GLIB_REQUIRED=2.6
11207 GTK_REQUIRED=2.6
11208 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11211 succeeded=no
11213 # Extract the first word of "pkg-config", so it can be a program name with args.
11214 set dummy pkg-config; ac_word=$2
11215 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11216 $as_echo_n "checking for $ac_word... " >&6; }
11217 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11218 $as_echo_n "(cached) " >&6
11219 else
11220 case $PKG_CONFIG in
11221 [\\/]* | ?:[\\/]*)
11222 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226 for as_dir in $PATH
11228 IFS=$as_save_IFS
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11232 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11233 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11234 break 2
11236 done
11237 done
11238 IFS=$as_save_IFS
11240 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11242 esac
11244 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11245 if test -n "$PKG_CONFIG"; then
11246 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11247 $as_echo "$PKG_CONFIG" >&6; }
11248 else
11249 { $as_echo "$as_me:$LINENO: result: no" >&5
11250 $as_echo "no" >&6; }
11255 if test "$PKG_CONFIG" = "no" ; then
11256 pkg_check_gtk=no
11257 else
11258 PKG_CONFIG_MIN_VERSION=0.9.0
11259 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11260 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11261 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11263 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11264 { $as_echo "$as_me:$LINENO: result: yes" >&5
11265 $as_echo "yes" >&6; }
11266 succeeded=yes
11268 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11269 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11270 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11271 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11272 $as_echo "$GTK_CFLAGS" >&6; }
11274 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11275 $as_echo_n "checking GTK_LIBS... " >&6; }
11276 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11277 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11278 $as_echo "$GTK_LIBS" >&6; }
11279 else
11280 { $as_echo "$as_me:$LINENO: result: no" >&5
11281 $as_echo "no" >&6; }
11282 GTK_CFLAGS=""
11283 GTK_LIBS=""
11284 ## If we have a custom action on failure, don't print errors, but
11285 ## do set a variable so people can do so.
11286 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11292 else
11293 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11294 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11298 if test $succeeded = yes; then
11299 pkg_check_gtk=yes
11300 else
11301 pkg_check_gtk=no
11304 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11305 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11306 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11307 { (exit 1); exit 1; }; }
11312 if test x"$pkg_check_gtk" = xyes; then
11316 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11317 CFLAGS="$CFLAGS $GTK_CFLAGS"
11318 LIBS="$GTK_LIBS $LIBS"
11319 GTK_COMPILES=no
11321 for ac_func in gtk_main
11323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11324 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11325 $as_echo_n "checking for $ac_func... " >&6; }
11326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11327 $as_echo_n "(cached) " >&6
11328 else
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h. */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11337 #define $ac_func innocuous_$ac_func
11339 /* System header to define __stub macros and hopefully few prototypes,
11340 which can conflict with char $ac_func (); below.
11341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11342 <limits.h> exists even on freestanding compilers. */
11344 #ifdef __STDC__
11345 # include <limits.h>
11346 #else
11347 # include <assert.h>
11348 #endif
11350 #undef $ac_func
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11355 #ifdef __cplusplus
11356 extern "C"
11357 #endif
11358 char $ac_func ();
11359 /* The GNU C library defines this for functions which it implements
11360 to always fail with ENOSYS. Some functions are actually named
11361 something starting with __ and the normal name is an alias. */
11362 #if defined __stub_$ac_func || defined __stub___$ac_func
11363 choke me
11364 #endif
11367 main ()
11369 return $ac_func ();
11371 return 0;
11373 _ACEOF
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (ac_try="$ac_link"
11376 case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11379 esac
11380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11381 $as_echo "$ac_try_echo") >&5
11382 (eval "$ac_link") 2>conftest.er1
11383 ac_status=$?
11384 grep -v '^ *+' conftest.er1 >conftest.err
11385 rm -f conftest.er1
11386 cat conftest.err >&5
11387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && {
11389 test -z "$ac_c_werror_flag" ||
11390 test ! -s conftest.err
11391 } && test -s conftest$ac_exeext && {
11392 test "$cross_compiling" = yes ||
11393 $as_test_x conftest$ac_exeext
11394 }; then
11395 eval "$as_ac_var=yes"
11396 else
11397 $as_echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 eval "$as_ac_var=no"
11403 rm -rf conftest.dSYM
11404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11405 conftest$ac_exeext conftest.$ac_ext
11407 ac_res=`eval 'as_val=${'$as_ac_var'}
11408 $as_echo "$as_val"'`
11409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11410 $as_echo "$ac_res" >&6; }
11411 if test `eval 'as_val=${'$as_ac_var'}
11412 $as_echo "$as_val"'` = yes; then
11413 cat >>confdefs.h <<_ACEOF
11414 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11415 _ACEOF
11416 GTK_COMPILES=yes
11418 done
11420 if test "${GTK_COMPILES}" != "yes"; then
11421 if test "$USE_X_TOOLKIT" != "maybe"; then
11422 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11423 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11424 { (exit 1); exit 1; }; };
11426 else
11427 HAVE_GTK=yes
11429 cat >>confdefs.h <<\_ACEOF
11430 #define USE_GTK 1
11431 _ACEOF
11433 USE_X_TOOLKIT=none
11434 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11436 else
11437 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11438 closing open displays. This is no problem if you just use
11439 one display, but if you use more than one and close one of them
11440 Emacs may crash." >&5
11441 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11442 closing open displays. This is no problem if you just use
11443 one display, but if you use more than one and close one of them
11444 Emacs may crash." >&2;}
11445 sleep 3
11452 if test "${HAVE_GTK}" = "yes"; then
11454 if test "$with_toolkit_scroll_bars" != no; then
11455 with_toolkit_scroll_bars=yes
11458 HAVE_GTK_MULTIDISPLAY=no
11460 for ac_func in gdk_display_open
11462 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11463 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11464 $as_echo_n "checking for $ac_func... " >&6; }
11465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11466 $as_echo_n "(cached) " >&6
11467 else
11468 cat >conftest.$ac_ext <<_ACEOF
11469 /* confdefs.h. */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11476 #define $ac_func innocuous_$ac_func
11478 /* System header to define __stub macros and hopefully few prototypes,
11479 which can conflict with char $ac_func (); below.
11480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11481 <limits.h> exists even on freestanding compilers. */
11483 #ifdef __STDC__
11484 # include <limits.h>
11485 #else
11486 # include <assert.h>
11487 #endif
11489 #undef $ac_func
11491 /* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494 #ifdef __cplusplus
11495 extern "C"
11496 #endif
11497 char $ac_func ();
11498 /* The GNU C library defines this for functions which it implements
11499 to always fail with ENOSYS. Some functions are actually named
11500 something starting with __ and the normal name is an alias. */
11501 #if defined __stub_$ac_func || defined __stub___$ac_func
11502 choke me
11503 #endif
11506 main ()
11508 return $ac_func ();
11510 return 0;
11512 _ACEOF
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (ac_try="$ac_link"
11515 case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11518 esac
11519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11520 $as_echo "$ac_try_echo") >&5
11521 (eval "$ac_link") 2>conftest.er1
11522 ac_status=$?
11523 grep -v '^ *+' conftest.er1 >conftest.err
11524 rm -f conftest.er1
11525 cat conftest.err >&5
11526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } && {
11528 test -z "$ac_c_werror_flag" ||
11529 test ! -s conftest.err
11530 } && test -s conftest$ac_exeext && {
11531 test "$cross_compiling" = yes ||
11532 $as_test_x conftest$ac_exeext
11533 }; then
11534 eval "$as_ac_var=yes"
11535 else
11536 $as_echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 eval "$as_ac_var=no"
11542 rm -rf conftest.dSYM
11543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11544 conftest$ac_exeext conftest.$ac_ext
11546 ac_res=`eval 'as_val=${'$as_ac_var'}
11547 $as_echo "$as_val"'`
11548 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11549 $as_echo "$ac_res" >&6; }
11550 if test `eval 'as_val=${'$as_ac_var'}
11551 $as_echo "$as_val"'` = yes; then
11552 cat >>confdefs.h <<_ACEOF
11553 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11554 _ACEOF
11555 HAVE_GTK_MULTIDISPLAY=yes
11557 done
11559 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11561 cat >>confdefs.h <<\_ACEOF
11562 #define HAVE_GTK_MULTIDISPLAY 1
11563 _ACEOF
11567 HAVE_GTK_FILE_SELECTION=no
11568 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11569 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11570 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11571 $as_echo_n "(cached) " >&6
11572 else
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h. */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 $ac_includes_default
11580 #include <gtk/gtk.h>
11583 main ()
11585 #ifndef GTK_TYPE_FILE_SELECTION
11586 (void) GTK_TYPE_FILE_SELECTION;
11587 #endif
11590 return 0;
11592 _ACEOF
11593 rm -f conftest.$ac_objext
11594 if { (ac_try="$ac_compile"
11595 case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11598 esac
11599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11600 $as_echo "$ac_try_echo") >&5
11601 (eval "$ac_compile") 2>conftest.er1
11602 ac_status=$?
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
11606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } && {
11608 test -z "$ac_c_werror_flag" ||
11609 test ! -s conftest.err
11610 } && test -s conftest.$ac_objext; then
11611 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11612 else
11613 $as_echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11621 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11622 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11623 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11624 HAVE_GTK_FILE_SELECTION=yes
11625 else
11626 HAVE_GTK_FILE_SELECTION=no
11629 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11631 for ac_func in gtk_file_selection_new
11633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11634 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11635 $as_echo_n "checking for $ac_func... " >&6; }
11636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11637 $as_echo_n "(cached) " >&6
11638 else
11639 cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h. */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11647 #define $ac_func innocuous_$ac_func
11649 /* System header to define __stub macros and hopefully few prototypes,
11650 which can conflict with char $ac_func (); below.
11651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11652 <limits.h> exists even on freestanding compilers. */
11654 #ifdef __STDC__
11655 # include <limits.h>
11656 #else
11657 # include <assert.h>
11658 #endif
11660 #undef $ac_func
11662 /* Override any GCC internal prototype to avoid an error.
11663 Use char because int might match the return type of a GCC
11664 builtin and then its argument prototype would still apply. */
11665 #ifdef __cplusplus
11666 extern "C"
11667 #endif
11668 char $ac_func ();
11669 /* The GNU C library defines this for functions which it implements
11670 to always fail with ENOSYS. Some functions are actually named
11671 something starting with __ and the normal name is an alias. */
11672 #if defined __stub_$ac_func || defined __stub___$ac_func
11673 choke me
11674 #endif
11677 main ()
11679 return $ac_func ();
11681 return 0;
11683 _ACEOF
11684 rm -f conftest.$ac_objext conftest$ac_exeext
11685 if { (ac_try="$ac_link"
11686 case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689 esac
11690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11691 $as_echo "$ac_try_echo") >&5
11692 (eval "$ac_link") 2>conftest.er1
11693 ac_status=$?
11694 grep -v '^ *+' conftest.er1 >conftest.err
11695 rm -f conftest.er1
11696 cat conftest.err >&5
11697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } && {
11699 test -z "$ac_c_werror_flag" ||
11700 test ! -s conftest.err
11701 } && test -s conftest$ac_exeext && {
11702 test "$cross_compiling" = yes ||
11703 $as_test_x conftest$ac_exeext
11704 }; then
11705 eval "$as_ac_var=yes"
11706 else
11707 $as_echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11710 eval "$as_ac_var=no"
11713 rm -rf conftest.dSYM
11714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11715 conftest$ac_exeext conftest.$ac_ext
11717 ac_res=`eval 'as_val=${'$as_ac_var'}
11718 $as_echo "$as_val"'`
11719 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11720 $as_echo "$ac_res" >&6; }
11721 if test `eval 'as_val=${'$as_ac_var'}
11722 $as_echo "$as_val"'` = yes; then
11723 cat >>confdefs.h <<_ACEOF
11724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11725 _ACEOF
11726 HAVE_GTK_FILE_SELECTION=yes
11727 else
11728 HAVE_GTK_FILE_SELECTION=no
11730 done
11734 HAVE_GTK_FILE_CHOOSER=no
11735 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11736 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
11737 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11738 $as_echo_n "(cached) " >&6
11739 else
11740 cat >conftest.$ac_ext <<_ACEOF
11741 /* confdefs.h. */
11742 _ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746 $ac_includes_default
11747 #include <gtk/gtk.h>
11750 main ()
11752 #ifndef GTK_TYPE_FILE_CHOOSER
11753 (void) GTK_TYPE_FILE_CHOOSER;
11754 #endif
11757 return 0;
11759 _ACEOF
11760 rm -f conftest.$ac_objext
11761 if { (ac_try="$ac_compile"
11762 case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11765 esac
11766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11767 $as_echo "$ac_try_echo") >&5
11768 (eval "$ac_compile") 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } && {
11775 test -z "$ac_c_werror_flag" ||
11776 test ! -s conftest.err
11777 } && test -s conftest.$ac_objext; then
11778 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11779 else
11780 $as_echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11788 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11789 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11790 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11791 HAVE_GTK_FILE_CHOOSER=yes
11792 else
11793 HAVE_GTK_FILE_CHOOSER=no
11796 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11798 for ac_func in gtk_file_chooser_dialog_new
11800 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11801 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11802 $as_echo_n "checking for $ac_func... " >&6; }
11803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11804 $as_echo_n "(cached) " >&6
11805 else
11806 cat >conftest.$ac_ext <<_ACEOF
11807 /* confdefs.h. */
11808 _ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11814 #define $ac_func innocuous_$ac_func
11816 /* System header to define __stub macros and hopefully few prototypes,
11817 which can conflict with char $ac_func (); below.
11818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11819 <limits.h> exists even on freestanding compilers. */
11821 #ifdef __STDC__
11822 # include <limits.h>
11823 #else
11824 # include <assert.h>
11825 #endif
11827 #undef $ac_func
11829 /* Override any GCC internal prototype to avoid an error.
11830 Use char because int might match the return type of a GCC
11831 builtin and then its argument prototype would still apply. */
11832 #ifdef __cplusplus
11833 extern "C"
11834 #endif
11835 char $ac_func ();
11836 /* The GNU C library defines this for functions which it implements
11837 to always fail with ENOSYS. Some functions are actually named
11838 something starting with __ and the normal name is an alias. */
11839 #if defined __stub_$ac_func || defined __stub___$ac_func
11840 choke me
11841 #endif
11844 main ()
11846 return $ac_func ();
11848 return 0;
11850 _ACEOF
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (ac_try="$ac_link"
11853 case "(($ac_try" in
11854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855 *) ac_try_echo=$ac_try;;
11856 esac
11857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11858 $as_echo "$ac_try_echo") >&5
11859 (eval "$ac_link") 2>conftest.er1
11860 ac_status=$?
11861 grep -v '^ *+' conftest.er1 >conftest.err
11862 rm -f conftest.er1
11863 cat conftest.err >&5
11864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } && {
11866 test -z "$ac_c_werror_flag" ||
11867 test ! -s conftest.err
11868 } && test -s conftest$ac_exeext && {
11869 test "$cross_compiling" = yes ||
11870 $as_test_x conftest$ac_exeext
11871 }; then
11872 eval "$as_ac_var=yes"
11873 else
11874 $as_echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 eval "$as_ac_var=no"
11880 rm -rf conftest.dSYM
11881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11882 conftest$ac_exeext conftest.$ac_ext
11884 ac_res=`eval 'as_val=${'$as_ac_var'}
11885 $as_echo "$as_val"'`
11886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11887 $as_echo "$ac_res" >&6; }
11888 if test `eval 'as_val=${'$as_ac_var'}
11889 $as_echo "$as_val"'` = yes; then
11890 cat >>confdefs.h <<_ACEOF
11891 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11892 _ACEOF
11893 HAVE_GTK_FILE_CHOOSER=yes
11894 else
11895 HAVE_GTK_FILE_CHOOSER=no
11897 done
11901 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11902 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11904 cat >>confdefs.h <<\_ACEOF
11905 #define HAVE_GTK_FILE_BOTH 1
11906 _ACEOF
11910 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11911 HAVE_GTK_AND_PTHREAD=no
11913 for ac_header in pthread.h
11915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11917 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11918 $as_echo_n "checking for $ac_header... " >&6; }
11919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11920 $as_echo_n "(cached) " >&6
11922 ac_res=`eval 'as_val=${'$as_ac_Header'}
11923 $as_echo "$as_val"'`
11924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11925 $as_echo "$ac_res" >&6; }
11926 else
11927 # Is the header compilable?
11928 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11929 $as_echo_n "checking $ac_header usability... " >&6; }
11930 cat >conftest.$ac_ext <<_ACEOF
11931 /* confdefs.h. */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11936 $ac_includes_default
11937 #include <$ac_header>
11938 _ACEOF
11939 rm -f conftest.$ac_objext
11940 if { (ac_try="$ac_compile"
11941 case "(($ac_try" in
11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943 *) ac_try_echo=$ac_try;;
11944 esac
11945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11946 $as_echo "$ac_try_echo") >&5
11947 (eval "$ac_compile") 2>conftest.er1
11948 ac_status=$?
11949 grep -v '^ *+' conftest.er1 >conftest.err
11950 rm -f conftest.er1
11951 cat conftest.err >&5
11952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } && {
11954 test -z "$ac_c_werror_flag" ||
11955 test ! -s conftest.err
11956 } && test -s conftest.$ac_objext; then
11957 ac_header_compiler=yes
11958 else
11959 $as_echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11962 ac_header_compiler=no
11965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11966 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11967 $as_echo "$ac_header_compiler" >&6; }
11969 # Is the header present?
11970 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11971 $as_echo_n "checking $ac_header presence... " >&6; }
11972 cat >conftest.$ac_ext <<_ACEOF
11973 /* confdefs.h. */
11974 _ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h. */
11978 #include <$ac_header>
11979 _ACEOF
11980 if { (ac_try="$ac_cpp conftest.$ac_ext"
11981 case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11984 esac
11985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11986 $as_echo "$ac_try_echo") >&5
11987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11988 ac_status=$?
11989 grep -v '^ *+' conftest.er1 >conftest.err
11990 rm -f conftest.er1
11991 cat conftest.err >&5
11992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } >/dev/null && {
11994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11995 test ! -s conftest.err
11996 }; then
11997 ac_header_preproc=yes
11998 else
11999 $as_echo "$as_me: failed program was:" >&5
12000 sed 's/^/| /' conftest.$ac_ext >&5
12002 ac_header_preproc=no
12005 rm -f conftest.err conftest.$ac_ext
12006 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12007 $as_echo "$ac_header_preproc" >&6; }
12009 # So? What about this header?
12010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12011 yes:no: )
12012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12013 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12015 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12016 ac_header_preproc=yes
12018 no:yes:* )
12019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12020 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12022 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12024 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12026 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12028 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12030 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12033 esac
12034 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12035 $as_echo_n "checking for $ac_header... " >&6; }
12036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12037 $as_echo_n "(cached) " >&6
12038 else
12039 eval "$as_ac_Header=\$ac_header_preproc"
12041 ac_res=`eval 'as_val=${'$as_ac_Header'}
12042 $as_echo "$as_val"'`
12043 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12044 $as_echo "$ac_res" >&6; }
12047 if test `eval 'as_val=${'$as_ac_Header'}
12048 $as_echo "$as_val"'` = yes; then
12049 cat >>confdefs.h <<_ACEOF
12050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12051 _ACEOF
12055 done
12057 if test "$ac_cv_header_pthread_h"; then
12058 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12059 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12060 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12061 $as_echo_n "(cached) " >&6
12062 else
12063 ac_check_lib_save_LIBS=$LIBS
12064 LIBS="-lpthread $LIBS"
12065 cat >conftest.$ac_ext <<_ACEOF
12066 /* confdefs.h. */
12067 _ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12072 /* Override any GCC internal prototype to avoid an error.
12073 Use char because int might match the return type of a GCC
12074 builtin and then its argument prototype would still apply. */
12075 #ifdef __cplusplus
12076 extern "C"
12077 #endif
12078 char pthread_self ();
12080 main ()
12082 return pthread_self ();
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 ac_cv_lib_pthread_pthread_self=yes
12109 else
12110 $as_echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 ac_cv_lib_pthread_pthread_self=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
12119 LIBS=$ac_check_lib_save_LIBS
12121 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12122 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12123 if test $ac_cv_lib_pthread_pthread_self = yes; then
12124 HAVE_GTK_AND_PTHREAD=yes
12128 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12129 case "${canonical}" in
12130 *-hpux*) ;;
12131 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12132 esac
12134 cat >>confdefs.h <<\_ACEOF
12135 #define HAVE_GTK_AND_PTHREAD 1
12136 _ACEOF
12142 HAVE_DBUS=no
12143 if test "${with_dbus}" = "yes"; then
12145 succeeded=no
12147 # Extract the first word of "pkg-config", so it can be a program name with args.
12148 set dummy pkg-config; ac_word=$2
12149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12150 $as_echo_n "checking for $ac_word... " >&6; }
12151 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12152 $as_echo_n "(cached) " >&6
12153 else
12154 case $PKG_CONFIG in
12155 [\\/]* | ?:[\\/]*)
12156 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $PATH
12162 IFS=$as_save_IFS
12163 test -z "$as_dir" && as_dir=.
12164 for ac_exec_ext in '' $ac_executable_extensions; do
12165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12166 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12167 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12168 break 2
12170 done
12171 done
12172 IFS=$as_save_IFS
12174 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12176 esac
12178 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12179 if test -n "$PKG_CONFIG"; then
12180 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12181 $as_echo "$PKG_CONFIG" >&6; }
12182 else
12183 { $as_echo "$as_me:$LINENO: result: no" >&5
12184 $as_echo "no" >&6; }
12189 if test "$PKG_CONFIG" = "no" ; then
12190 HAVE_DBUS=no
12191 else
12192 PKG_CONFIG_MIN_VERSION=0.9.0
12193 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12194 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12195 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12197 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12198 { $as_echo "$as_me:$LINENO: result: yes" >&5
12199 $as_echo "yes" >&6; }
12200 succeeded=yes
12202 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12203 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12204 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12205 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12206 $as_echo "$DBUS_CFLAGS" >&6; }
12208 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12209 $as_echo_n "checking DBUS_LIBS... " >&6; }
12210 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12211 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12212 $as_echo "$DBUS_LIBS" >&6; }
12213 else
12214 { $as_echo "$as_me:$LINENO: result: no" >&5
12215 $as_echo "no" >&6; }
12216 DBUS_CFLAGS=""
12217 DBUS_LIBS=""
12218 ## If we have a custom action on failure, don't print errors, but
12219 ## do set a variable so people can do so.
12220 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12226 else
12227 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12228 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12232 if test $succeeded = yes; then
12233 HAVE_DBUS=yes
12234 else
12235 HAVE_DBUS=no
12238 if test "$HAVE_DBUS" = yes; then
12240 cat >>confdefs.h <<\_ACEOF
12241 #define HAVE_DBUS 1
12242 _ACEOF
12247 HAVE_XAW3D=no
12248 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12249 if test "$with_xaw3d" != no; then
12250 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12251 $as_echo_n "checking for xaw3d... " >&6; }
12252 if test "${emacs_cv_xaw3d+set}" = set; then
12253 $as_echo_n "(cached) " >&6
12254 else
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h. */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12262 #include <X11/Intrinsic.h>
12263 #include <X11/Xaw3d/Simple.h>
12265 main ()
12269 return 0;
12271 _ACEOF
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (ac_try="$ac_link"
12274 case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12277 esac
12278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12279 $as_echo "$ac_try_echo") >&5
12280 (eval "$ac_link") 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } && {
12287 test -z "$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 } && test -s conftest$ac_exeext && {
12290 test "$cross_compiling" = yes ||
12291 $as_test_x conftest$ac_exeext
12292 }; then
12293 emacs_cv_xaw3d=yes
12294 else
12295 $as_echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12298 emacs_cv_xaw3d=no
12301 rm -rf conftest.dSYM
12302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12303 conftest$ac_exeext conftest.$ac_ext
12306 else
12307 emacs_cv_xaw3d=no
12309 if test $emacs_cv_xaw3d = yes; then
12310 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12311 $as_echo "yes; using Lucid toolkit" >&6; }
12312 USE_X_TOOLKIT=LUCID
12313 HAVE_XAW3D=yes
12315 cat >>confdefs.h <<\_ACEOF
12316 #define HAVE_XAW3D 1
12317 _ACEOF
12319 else
12320 { $as_echo "$as_me:$LINENO: result: no" >&5
12321 $as_echo "no" >&6; }
12322 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12323 $as_echo_n "checking for libXaw... " >&6; }
12324 if test "${emacs_cv_xaw+set}" = set; then
12325 $as_echo_n "(cached) " >&6
12326 else
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h. */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12334 #include <X11/Intrinsic.h>
12335 #include <X11/Xaw/Simple.h>
12337 main ()
12341 return 0;
12343 _ACEOF
12344 rm -f conftest.$ac_objext conftest$ac_exeext
12345 if { (ac_try="$ac_link"
12346 case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12349 esac
12350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12351 $as_echo "$ac_try_echo") >&5
12352 (eval "$ac_link") 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } && {
12359 test -z "$ac_c_werror_flag" ||
12360 test ! -s conftest.err
12361 } && test -s conftest$ac_exeext && {
12362 test "$cross_compiling" = yes ||
12363 $as_test_x conftest$ac_exeext
12364 }; then
12365 emacs_cv_xaw=yes
12366 else
12367 $as_echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 emacs_cv_xaw=no
12373 rm -rf conftest.dSYM
12374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12375 conftest$ac_exeext conftest.$ac_ext
12378 if test $emacs_cv_xaw = yes; then
12379 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12380 $as_echo "yes; using Lucid toolkit" >&6; }
12381 USE_X_TOOLKIT=LUCID
12382 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12383 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12384 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12385 { (exit 1); exit 1; }; }
12386 else
12387 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12388 $as_echo "no; do not use toolkit by default" >&6; }
12389 USE_X_TOOLKIT=none
12394 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12396 if test "${USE_X_TOOLKIT}" != "none"; then
12397 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12398 $as_echo_n "checking X11 toolkit version... " >&6; }
12399 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12400 $as_echo_n "(cached) " >&6
12401 else
12402 cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h. */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 #include <X11/Intrinsic.h>
12410 main ()
12412 #if XtSpecificationRelease < 6
12413 fail;
12414 #endif
12417 return 0;
12419 _ACEOF
12420 rm -f conftest.$ac_objext conftest$ac_exeext
12421 if { (ac_try="$ac_link"
12422 case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12425 esac
12426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12427 $as_echo "$ac_try_echo") >&5
12428 (eval "$ac_link") 2>conftest.er1
12429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest$ac_exeext && {
12438 test "$cross_compiling" = yes ||
12439 $as_test_x conftest$ac_exeext
12440 }; then
12441 emacs_cv_x11_toolkit_version_6=yes
12442 else
12443 $as_echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 emacs_cv_x11_toolkit_version_6=no
12449 rm -rf conftest.dSYM
12450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12451 conftest$ac_exeext conftest.$ac_ext
12454 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12455 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12456 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12457 $as_echo "6 or newer" >&6; }
12459 cat >>confdefs.h <<\_ACEOF
12460 #define HAVE_X11XTR6 1
12461 _ACEOF
12463 else
12464 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12465 $as_echo "before 6" >&6; }
12468 OLDLIBS="$LIBS"
12469 if test x$HAVE_X11XTR6 = xyes; then
12470 LIBS="-lXt -lSM -lICE $LIBS"
12471 else
12472 LIBS="-lXt $LIBS"
12475 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12476 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12477 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12478 $as_echo_n "(cached) " >&6
12479 else
12480 ac_check_lib_save_LIBS=$LIBS
12481 LIBS="-lXmu $LIBS"
12482 cat >conftest.$ac_ext <<_ACEOF
12483 /* confdefs.h. */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12489 /* Override any GCC internal prototype to avoid an error.
12490 Use char because int might match the return type of a GCC
12491 builtin and then its argument prototype would still apply. */
12492 #ifdef __cplusplus
12493 extern "C"
12494 #endif
12495 char XmuConvertStandardSelection ();
12497 main ()
12499 return XmuConvertStandardSelection ();
12501 return 0;
12503 _ACEOF
12504 rm -f conftest.$ac_objext conftest$ac_exeext
12505 if { (ac_try="$ac_link"
12506 case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12509 esac
12510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12511 $as_echo "$ac_try_echo") >&5
12512 (eval "$ac_link") 2>conftest.er1
12513 ac_status=$?
12514 grep -v '^ *+' conftest.er1 >conftest.err
12515 rm -f conftest.er1
12516 cat conftest.err >&5
12517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } && {
12519 test -z "$ac_c_werror_flag" ||
12520 test ! -s conftest.err
12521 } && test -s conftest$ac_exeext && {
12522 test "$cross_compiling" = yes ||
12523 $as_test_x conftest$ac_exeext
12524 }; then
12525 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12526 else
12527 $as_echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12533 rm -rf conftest.dSYM
12534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12535 conftest$ac_exeext conftest.$ac_ext
12536 LIBS=$ac_check_lib_save_LIBS
12538 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12539 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12540 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12541 cat >>confdefs.h <<_ACEOF
12542 #define HAVE_LIBXMU 1
12543 _ACEOF
12545 LIBS="-lXmu $LIBS"
12549 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12552 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12553 if test "${HAVE_X11}" = "yes"; then
12554 if test "${USE_X_TOOLKIT}" != "none"; then
12556 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12557 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12558 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12559 $as_echo_n "(cached) " >&6
12560 else
12561 ac_check_lib_save_LIBS=$LIBS
12562 LIBS="-lXext $LIBS"
12563 cat >conftest.$ac_ext <<_ACEOF
12564 /* confdefs.h. */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12570 /* Override any GCC internal prototype to avoid an error.
12571 Use char because int might match the return type of a GCC
12572 builtin and then its argument prototype would still apply. */
12573 #ifdef __cplusplus
12574 extern "C"
12575 #endif
12576 char XShapeQueryExtension ();
12578 main ()
12580 return XShapeQueryExtension ();
12582 return 0;
12584 _ACEOF
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12590 esac
12591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12592 $as_echo "$ac_try_echo") >&5
12593 (eval "$ac_link") 2>conftest.er1
12594 ac_status=$?
12595 grep -v '^ *+' conftest.er1 >conftest.err
12596 rm -f conftest.er1
12597 cat conftest.err >&5
12598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } && {
12600 test -z "$ac_c_werror_flag" ||
12601 test ! -s conftest.err
12602 } && test -s conftest$ac_exeext && {
12603 test "$cross_compiling" = yes ||
12604 $as_test_x conftest$ac_exeext
12605 }; then
12606 ac_cv_lib_Xext_XShapeQueryExtension=yes
12607 else
12608 $as_echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 ac_cv_lib_Xext_XShapeQueryExtension=no
12614 rm -rf conftest.dSYM
12615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12616 conftest$ac_exeext conftest.$ac_ext
12617 LIBS=$ac_check_lib_save_LIBS
12619 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12620 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12621 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12622 cat >>confdefs.h <<_ACEOF
12623 #define HAVE_LIBXEXT 1
12624 _ACEOF
12626 LIBS="-lXext $LIBS"
12633 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12634 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12635 $as_echo_n "checking for Motif version 2.1... " >&6; }
12636 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12637 $as_echo_n "(cached) " >&6
12638 else
12639 cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h. */
12641 _ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12645 #include <Xm/Xm.h>
12647 main ()
12649 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12650 int x = 5;
12651 #else
12652 Motif version prior to 2.1.
12653 #endif
12655 return 0;
12657 _ACEOF
12658 rm -f conftest.$ac_objext
12659 if { (ac_try="$ac_compile"
12660 case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12663 esac
12664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12665 $as_echo "$ac_try_echo") >&5
12666 (eval "$ac_compile") 2>conftest.er1
12667 ac_status=$?
12668 grep -v '^ *+' conftest.er1 >conftest.err
12669 rm -f conftest.er1
12670 cat conftest.err >&5
12671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } && {
12673 test -z "$ac_c_werror_flag" ||
12674 test ! -s conftest.err
12675 } && test -s conftest.$ac_objext; then
12676 emacs_cv_motif_version_2_1=yes
12677 else
12678 $as_echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12681 emacs_cv_motif_version_2_1=no
12684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12687 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12688 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12689 if test $emacs_cv_motif_version_2_1 = yes; then
12690 HAVE_LIBXP=no
12692 cat >>confdefs.h <<\_ACEOF
12693 #define HAVE_MOTIF_2_1 1
12694 _ACEOF
12696 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12697 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12698 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12699 $as_echo_n "(cached) " >&6
12700 else
12701 ac_check_lib_save_LIBS=$LIBS
12702 LIBS="-lXp $LIBS"
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h. */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12710 /* Override any GCC internal prototype to avoid an error.
12711 Use char because int might match the return type of a GCC
12712 builtin and then its argument prototype would still apply. */
12713 #ifdef __cplusplus
12714 extern "C"
12715 #endif
12716 char XpCreateContext ();
12718 main ()
12720 return XpCreateContext ();
12722 return 0;
12724 _ACEOF
12725 rm -f conftest.$ac_objext conftest$ac_exeext
12726 if { (ac_try="$ac_link"
12727 case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12730 esac
12731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12732 $as_echo "$ac_try_echo") >&5
12733 (eval "$ac_link") 2>conftest.er1
12734 ac_status=$?
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
12738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } && {
12740 test -z "$ac_c_werror_flag" ||
12741 test ! -s conftest.err
12742 } && test -s conftest$ac_exeext && {
12743 test "$cross_compiling" = yes ||
12744 $as_test_x conftest$ac_exeext
12745 }; then
12746 ac_cv_lib_Xp_XpCreateContext=yes
12747 else
12748 $as_echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12751 ac_cv_lib_Xp_XpCreateContext=no
12754 rm -rf conftest.dSYM
12755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12756 conftest$ac_exeext conftest.$ac_ext
12757 LIBS=$ac_check_lib_save_LIBS
12759 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12760 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12761 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12762 HAVE_LIBXP=yes
12765 if test ${HAVE_LIBXP} = yes; then
12767 cat >>confdefs.h <<\_ACEOF
12768 #define HAVE_LIBXP 1
12769 _ACEOF
12772 else
12773 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12774 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12775 if test "${emacs_cv_lesstif+set}" = set; then
12776 $as_echo_n "(cached) " >&6
12777 else
12778 # We put this in CFLAGS temporarily to precede other -I options
12779 # that might be in CFLAGS temporarily.
12780 # We put this in CPPFLAGS where it precedes the other -I options.
12781 OLD_CPPFLAGS=$CPPFLAGS
12782 OLD_CFLAGS=$CFLAGS
12783 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12784 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12785 cat >conftest.$ac_ext <<_ACEOF
12786 /* confdefs.h. */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12793 main ()
12795 int x = 5;
12797 return 0;
12799 _ACEOF
12800 rm -f conftest.$ac_objext
12801 if { (ac_try="$ac_compile"
12802 case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12805 esac
12806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12807 $as_echo "$ac_try_echo") >&5
12808 (eval "$ac_compile") 2>conftest.er1
12809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } && {
12815 test -z "$ac_c_werror_flag" ||
12816 test ! -s conftest.err
12817 } && test -s conftest.$ac_objext; then
12818 emacs_cv_lesstif=yes
12819 else
12820 $as_echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 emacs_cv_lesstif=no
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12829 $as_echo "$emacs_cv_lesstif" >&6; }
12830 if test $emacs_cv_lesstif = yes; then
12831 # Make sure this -I option remains in CPPFLAGS after it is set
12832 # back to REAL_CPPFLAGS.
12833 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12834 # have those other -I options anyway. Ultimately, having this
12835 # directory ultimately in CPPFLAGS will be enough.
12836 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12837 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12838 else
12839 CFLAGS=$OLD_CFLAGS
12840 CPPFLAGS=$OLD_CPPFLAGS
12847 USE_TOOLKIT_SCROLL_BARS=no
12848 if test "${with_toolkit_scroll_bars}" != "no"; then
12849 if test "${USE_X_TOOLKIT}" != "none"; then
12850 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12851 cat >>confdefs.h <<\_ACEOF
12852 #define USE_TOOLKIT_SCROLL_BARS 1
12853 _ACEOF
12855 HAVE_XAW3D=no
12856 USE_TOOLKIT_SCROLL_BARS=yes
12857 elif test "${HAVE_XAW3D}" = "yes"; then
12858 cat >>confdefs.h <<\_ACEOF
12859 #define USE_TOOLKIT_SCROLL_BARS 1
12860 _ACEOF
12862 USE_TOOLKIT_SCROLL_BARS=yes
12864 elif test "${HAVE_GTK}" = "yes"; then
12865 cat >>confdefs.h <<\_ACEOF
12866 #define USE_TOOLKIT_SCROLL_BARS 1
12867 _ACEOF
12869 USE_TOOLKIT_SCROLL_BARS=yes
12870 elif test "${HAVE_NS}" = "yes"; then
12871 cat >>confdefs.h <<\_ACEOF
12872 #define USE_TOOLKIT_SCROLL_BARS 1
12873 _ACEOF
12875 USE_TOOLKIT_SCROLL_BARS=yes
12879 cat >conftest.$ac_ext <<_ACEOF
12880 /* confdefs.h. */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12886 #include <X11/Xlib.h>
12887 #include <X11/Xresource.h>
12889 main ()
12891 XIMProc callback;
12893 return 0;
12895 _ACEOF
12896 rm -f conftest.$ac_objext
12897 if { (ac_try="$ac_compile"
12898 case "(($ac_try" in
12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12901 esac
12902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12903 $as_echo "$ac_try_echo") >&5
12904 (eval "$ac_compile") 2>conftest.er1
12905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } && {
12911 test -z "$ac_c_werror_flag" ||
12912 test ! -s conftest.err
12913 } && test -s conftest.$ac_objext; then
12914 HAVE_XIM=yes
12916 cat >>confdefs.h <<\_ACEOF
12917 #define HAVE_XIM 1
12918 _ACEOF
12920 else
12921 $as_echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 HAVE_XIM=no
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12930 if test "${with_xim}" != "no"; then
12932 cat >>confdefs.h <<\_ACEOF
12933 #define USE_XIM 1
12934 _ACEOF
12939 if test "${HAVE_XIM}" != "no"; then
12940 late_CFLAGS=$CFLAGS
12941 if test "$GCC" = yes; then
12942 CFLAGS="$CFLAGS --pedantic-errors"
12944 cat >conftest.$ac_ext <<_ACEOF
12945 /* confdefs.h. */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12951 #include <X11/Xlib.h>
12952 #include <X11/Xresource.h>
12954 main ()
12956 Display *display;
12957 XrmDatabase db;
12958 char *res_name;
12959 char *res_class;
12960 XIMProc callback;
12961 XPointer *client_data;
12962 #ifndef __GNUC__
12963 /* If we're not using GCC, it's probably not XFree86, and this is
12964 probably right, but we can't use something like --pedantic-errors. */
12965 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12966 char*, XIMProc, XPointer*);
12967 #endif
12968 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12969 client_data);
12971 return 0;
12973 _ACEOF
12974 rm -f conftest.$ac_objext
12975 if { (ac_try="$ac_compile"
12976 case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12979 esac
12980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12981 $as_echo "$ac_try_echo") >&5
12982 (eval "$ac_compile") 2>conftest.er1
12983 ac_status=$?
12984 grep -v '^ *+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
12987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } && {
12989 test -z "$ac_c_werror_flag" ||
12990 test ! -s conftest.err
12991 } && test -s conftest.$ac_objext; then
12992 emacs_cv_arg6_star=yes
12993 else
12994 $as_echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
13000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13002 if test "$emacs_cv_arg6_star" = yes; then
13003 cat >>confdefs.h <<\_ACEOF
13004 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13005 _ACEOF
13007 else
13008 cat >>confdefs.h <<\_ACEOF
13009 #define XRegisterIMInstantiateCallback_arg6 XPointer
13010 _ACEOF
13013 CFLAGS=$late_CFLAGS
13016 ### Start of font-backend (under any platform) section.
13017 # (nothing here yet -- this is a placeholder)
13018 ### End of font-backend (under any platform) section.
13020 ### Start of font-backend (under X11) section.
13021 if test "${HAVE_X11}" = "yes"; then
13023 succeeded=no
13025 # Extract the first word of "pkg-config", so it can be a program name with args.
13026 set dummy pkg-config; ac_word=$2
13027 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13028 $as_echo_n "checking for $ac_word... " >&6; }
13029 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13030 $as_echo_n "(cached) " >&6
13031 else
13032 case $PKG_CONFIG in
13033 [\\/]* | ?:[\\/]*)
13034 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038 for as_dir in $PATH
13040 IFS=$as_save_IFS
13041 test -z "$as_dir" && as_dir=.
13042 for ac_exec_ext in '' $ac_executable_extensions; do
13043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13044 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13046 break 2
13048 done
13049 done
13050 IFS=$as_save_IFS
13052 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13054 esac
13056 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13057 if test -n "$PKG_CONFIG"; then
13058 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13059 $as_echo "$PKG_CONFIG" >&6; }
13060 else
13061 { $as_echo "$as_me:$LINENO: result: no" >&5
13062 $as_echo "no" >&6; }
13067 if test "$PKG_CONFIG" = "no" ; then
13068 HAVE_FC=no
13069 else
13070 PKG_CONFIG_MIN_VERSION=0.9.0
13071 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13072 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13073 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13075 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13076 { $as_echo "$as_me:$LINENO: result: yes" >&5
13077 $as_echo "yes" >&6; }
13078 succeeded=yes
13080 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13081 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13082 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13083 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13084 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13086 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13087 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13088 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13089 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13090 $as_echo "$FONTCONFIG_LIBS" >&6; }
13091 else
13092 { $as_echo "$as_me:$LINENO: result: no" >&5
13093 $as_echo "no" >&6; }
13094 FONTCONFIG_CFLAGS=""
13095 FONTCONFIG_LIBS=""
13096 ## If we have a custom action on failure, don't print errors, but
13097 ## do set a variable so people can do so.
13098 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13104 else
13105 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13106 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13110 if test $succeeded = yes; then
13111 HAVE_FC=yes
13112 else
13113 HAVE_FC=no
13116 test "${HAVE_FC}" = "no" && with_freetype=no
13118 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
13119 HAVE_XFT=maybe
13120 if test "x${with_freetype}" = "xno" || test "x${with_x}" = "xno"; then
13121 with_xft="no";
13123 if test "x${with_xft}" != "xno"; then
13126 succeeded=no
13128 # Extract the first word of "pkg-config", so it can be a program name with args.
13129 set dummy pkg-config; ac_word=$2
13130 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13131 $as_echo_n "checking for $ac_word... " >&6; }
13132 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13133 $as_echo_n "(cached) " >&6
13134 else
13135 case $PKG_CONFIG in
13136 [\\/]* | ?:[\\/]*)
13137 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13143 IFS=$as_save_IFS
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13147 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13149 break 2
13151 done
13152 done
13153 IFS=$as_save_IFS
13155 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13157 esac
13159 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13160 if test -n "$PKG_CONFIG"; then
13161 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13162 $as_echo "$PKG_CONFIG" >&6; }
13163 else
13164 { $as_echo "$as_me:$LINENO: result: no" >&5
13165 $as_echo "no" >&6; }
13170 if test "$PKG_CONFIG" = "no" ; then
13171 HAVE_XFT=no
13172 else
13173 PKG_CONFIG_MIN_VERSION=0.9.0
13174 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13175 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13176 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13178 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13179 { $as_echo "$as_me:$LINENO: result: yes" >&5
13180 $as_echo "yes" >&6; }
13181 succeeded=yes
13183 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13184 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13185 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13186 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13187 $as_echo "$XFT_CFLAGS" >&6; }
13189 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13190 $as_echo_n "checking XFT_LIBS... " >&6; }
13191 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13192 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13193 $as_echo "$XFT_LIBS" >&6; }
13194 else
13195 { $as_echo "$as_me:$LINENO: result: no" >&5
13196 $as_echo "no" >&6; }
13197 XFT_CFLAGS=""
13198 XFT_LIBS=""
13199 ## If we have a custom action on failure, don't print errors, but
13200 ## do set a variable so people can do so.
13201 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13207 else
13208 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13209 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13213 if test $succeeded = yes; then
13215 else
13216 HAVE_XFT=no
13219 if test "$HAVE_XFT" != no; then
13220 OLD_CPPFLAGS="$CPPFLAGS"
13221 OLD_CFLAGS="$CFLAGS"
13222 OLD_LIBS="$LIBS"
13223 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13224 CFLAGS="$CFLAGS $XFT_CFLAGS"
13225 LIBS="$XFT_LIBS $LIBS"
13226 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13227 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13228 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13229 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13230 $as_echo_n "(cached) " >&6
13232 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13233 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13234 else
13235 # Is the header compilable?
13236 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13237 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13238 cat >conftest.$ac_ext <<_ACEOF
13239 /* confdefs.h. */
13240 _ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 $ac_includes_default
13245 #include <X11/Xft/Xft.h>
13246 _ACEOF
13247 rm -f conftest.$ac_objext
13248 if { (ac_try="$ac_compile"
13249 case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13252 esac
13253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13254 $as_echo "$ac_try_echo") >&5
13255 (eval "$ac_compile") 2>conftest.er1
13256 ac_status=$?
13257 grep -v '^ *+' conftest.er1 >conftest.err
13258 rm -f conftest.er1
13259 cat conftest.err >&5
13260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } && {
13262 test -z "$ac_c_werror_flag" ||
13263 test ! -s conftest.err
13264 } && test -s conftest.$ac_objext; then
13265 ac_header_compiler=yes
13266 else
13267 $as_echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13270 ac_header_compiler=no
13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13275 $as_echo "$ac_header_compiler" >&6; }
13277 # Is the header present?
13278 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13279 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13280 cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h. */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 #include <X11/Xft/Xft.h>
13287 _ACEOF
13288 if { (ac_try="$ac_cpp conftest.$ac_ext"
13289 case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13292 esac
13293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13294 $as_echo "$ac_try_echo") >&5
13295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13296 ac_status=$?
13297 grep -v '^ *+' conftest.er1 >conftest.err
13298 rm -f conftest.er1
13299 cat conftest.err >&5
13300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } >/dev/null && {
13302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13303 test ! -s conftest.err
13304 }; then
13305 ac_header_preproc=yes
13306 else
13307 $as_echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13310 ac_header_preproc=no
13313 rm -f conftest.err conftest.$ac_ext
13314 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13315 $as_echo "$ac_header_preproc" >&6; }
13317 # So? What about this header?
13318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13319 yes:no: )
13320 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13321 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13322 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13323 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13324 ac_header_preproc=yes
13326 no:yes:* )
13327 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13328 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13329 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13330 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13331 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13332 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13333 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13334 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13335 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13336 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13337 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13338 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13341 esac
13342 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13343 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13344 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13345 $as_echo_n "(cached) " >&6
13346 else
13347 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13349 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13350 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13353 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13354 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13355 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13356 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13357 $as_echo_n "(cached) " >&6
13358 else
13359 ac_check_lib_save_LIBS=$LIBS
13360 LIBS="-lXft $XFT_LIBS $LIBS"
13361 cat >conftest.$ac_ext <<_ACEOF
13362 /* confdefs.h. */
13363 _ACEOF
13364 cat confdefs.h >>conftest.$ac_ext
13365 cat >>conftest.$ac_ext <<_ACEOF
13366 /* end confdefs.h. */
13368 /* Override any GCC internal prototype to avoid an error.
13369 Use char because int might match the return type of a GCC
13370 builtin and then its argument prototype would still apply. */
13371 #ifdef __cplusplus
13372 extern "C"
13373 #endif
13374 char XftFontOpen ();
13376 main ()
13378 return XftFontOpen ();
13380 return 0;
13382 _ACEOF
13383 rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (ac_try="$ac_link"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13388 esac
13389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13390 $as_echo "$ac_try_echo") >&5
13391 (eval "$ac_link") 2>conftest.er1
13392 ac_status=$?
13393 grep -v '^ *+' conftest.er1 >conftest.err
13394 rm -f conftest.er1
13395 cat conftest.err >&5
13396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } && {
13398 test -z "$ac_c_werror_flag" ||
13399 test ! -s conftest.err
13400 } && test -s conftest$ac_exeext && {
13401 test "$cross_compiling" = yes ||
13402 $as_test_x conftest$ac_exeext
13403 }; then
13404 ac_cv_lib_Xft_XftFontOpen=yes
13405 else
13406 $as_echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13409 ac_cv_lib_Xft_XftFontOpen=no
13412 rm -rf conftest.dSYM
13413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13414 conftest$ac_exeext conftest.$ac_ext
13415 LIBS=$ac_check_lib_save_LIBS
13417 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13418 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13419 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13420 HAVE_XFT=yes
13427 if test "${HAVE_XFT}" = "yes"; then
13429 cat >>confdefs.h <<\_ACEOF
13430 #define HAVE_XFT 1
13431 _ACEOF
13434 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13435 else
13436 CPPFLAGS="$OLD_CPPFLAGS"
13437 CFLAGS="$OLD_CFLAGS"
13438 LIBS="$OLD_LIBS"
13439 fi # "${HAVE_XFT}" = "yes"
13440 fi # "$HAVE_XFT" != no
13441 fi # "x${with_xft}" != "xno"
13443 if test "$HAVE_XFT" != "yes"; then
13444 HAVE_XFT=no
13448 HAVE_FREETYPE=no
13449 ### Use -lfreetype if available, unless `--with-freetype=no'.
13450 if test "${HAVE_XFT}" = "yes"; then
13451 HAVE_FREETYPE=yes
13452 FONTCONFIG_CFLAGS=
13453 FONTCONFIG_LIBS=
13454 elif test "x${with_freetype}" != "xno" && test "x${with_x}" != "xno"; then
13457 succeeded=no
13459 # Extract the first word of "pkg-config", so it can be a program name with args.
13460 set dummy pkg-config; ac_word=$2
13461 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13462 $as_echo_n "checking for $ac_word... " >&6; }
13463 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13464 $as_echo_n "(cached) " >&6
13465 else
13466 case $PKG_CONFIG in
13467 [\\/]* | ?:[\\/]*)
13468 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13472 for as_dir in $PATH
13474 IFS=$as_save_IFS
13475 test -z "$as_dir" && as_dir=.
13476 for ac_exec_ext in '' $ac_executable_extensions; do
13477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13478 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13479 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13480 break 2
13482 done
13483 done
13484 IFS=$as_save_IFS
13486 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13488 esac
13490 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13491 if test -n "$PKG_CONFIG"; then
13492 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13493 $as_echo "$PKG_CONFIG" >&6; }
13494 else
13495 { $as_echo "$as_me:$LINENO: result: no" >&5
13496 $as_echo "no" >&6; }
13501 if test "$PKG_CONFIG" = "no" ; then
13502 HAVE_FREETYPE=no
13503 else
13504 PKG_CONFIG_MIN_VERSION=0.9.0
13505 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13506 { $as_echo "$as_me:$LINENO: checking for freetype2" >&5
13507 $as_echo_n "checking for freetype2... " >&6; }
13509 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13510 { $as_echo "$as_me:$LINENO: result: yes" >&5
13511 $as_echo "yes" >&6; }
13512 succeeded=yes
13514 { $as_echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13515 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
13516 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13517 { $as_echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13518 $as_echo "$FREETYPE_CFLAGS" >&6; }
13520 { $as_echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13521 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
13522 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13523 { $as_echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13524 $as_echo "$FREETYPE_LIBS" >&6; }
13525 else
13526 { $as_echo "$as_me:$LINENO: result: no" >&5
13527 $as_echo "no" >&6; }
13528 FREETYPE_CFLAGS=""
13529 FREETYPE_LIBS=""
13530 ## If we have a custom action on failure, don't print errors, but
13531 ## do set a variable so people can do so.
13532 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13538 else
13539 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13540 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13544 if test $succeeded = yes; then
13545 HAVE_FREETYPE=yes
13546 else
13547 HAVE_FREETYPE=no
13552 HAVE_LIBOTF=no
13553 if test "${HAVE_FREETYPE}" = "yes"; then
13555 cat >>confdefs.h <<\_ACEOF
13556 #define HAVE_FREETYPE 1
13557 _ACEOF
13559 if test "${with_libotf}" != "no"; then
13561 succeeded=no
13563 # Extract the first word of "pkg-config", so it can be a program name with args.
13564 set dummy pkg-config; ac_word=$2
13565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13566 $as_echo_n "checking for $ac_word... " >&6; }
13567 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13568 $as_echo_n "(cached) " >&6
13569 else
13570 case $PKG_CONFIG in
13571 [\\/]* | ?:[\\/]*)
13572 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13576 for as_dir in $PATH
13578 IFS=$as_save_IFS
13579 test -z "$as_dir" && as_dir=.
13580 for ac_exec_ext in '' $ac_executable_extensions; do
13581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13582 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13584 break 2
13586 done
13587 done
13588 IFS=$as_save_IFS
13590 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13592 esac
13594 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13595 if test -n "$PKG_CONFIG"; then
13596 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13597 $as_echo "$PKG_CONFIG" >&6; }
13598 else
13599 { $as_echo "$as_me:$LINENO: result: no" >&5
13600 $as_echo "no" >&6; }
13605 if test "$PKG_CONFIG" = "no" ; then
13606 HAVE_LIBOTF=no
13607 else
13608 PKG_CONFIG_MIN_VERSION=0.9.0
13609 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13610 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
13611 $as_echo_n "checking for libotf... " >&6; }
13613 if $PKG_CONFIG --exists "libotf" 2>&5; then
13614 { $as_echo "$as_me:$LINENO: result: yes" >&5
13615 $as_echo "yes" >&6; }
13616 succeeded=yes
13618 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13619 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
13620 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13621 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13622 $as_echo "$LIBOTF_CFLAGS" >&6; }
13624 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13625 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
13626 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13627 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13628 $as_echo "$LIBOTF_LIBS" >&6; }
13629 else
13630 { $as_echo "$as_me:$LINENO: result: no" >&5
13631 $as_echo "no" >&6; }
13632 LIBOTF_CFLAGS=""
13633 LIBOTF_LIBS=""
13634 ## If we have a custom action on failure, don't print errors, but
13635 ## do set a variable so people can do so.
13636 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13642 else
13643 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13644 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13648 if test $succeeded = yes; then
13649 HAVE_LIBOTF=yes
13650 else
13651 HAVE_LIBOTF=no
13654 if test "$HAVE_LIBOTF" = "yes"; then
13656 cat >>confdefs.h <<\_ACEOF
13657 #define HAVE_LIBOTF 1
13658 _ACEOF
13660 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13661 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13662 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13663 $as_echo_n "(cached) " >&6
13664 else
13665 ac_check_lib_save_LIBS=$LIBS
13666 LIBS="-lotf $LIBS"
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h. */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13674 /* Override any GCC internal prototype to avoid an error.
13675 Use char because int might match the return type of a GCC
13676 builtin and then its argument prototype would still apply. */
13677 #ifdef __cplusplus
13678 extern "C"
13679 #endif
13680 char OTF_get_variation_glyphs ();
13682 main ()
13684 return OTF_get_variation_glyphs ();
13686 return 0;
13688 _ACEOF
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (ac_try="$ac_link"
13691 case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13694 esac
13695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13696 $as_echo "$ac_try_echo") >&5
13697 (eval "$ac_link") 2>conftest.er1
13698 ac_status=$?
13699 grep -v '^ *+' conftest.er1 >conftest.err
13700 rm -f conftest.er1
13701 cat conftest.err >&5
13702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } && {
13704 test -z "$ac_c_werror_flag" ||
13705 test ! -s conftest.err
13706 } && test -s conftest$ac_exeext && {
13707 test "$cross_compiling" = yes ||
13708 $as_test_x conftest$ac_exeext
13709 }; then
13710 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13711 else
13712 $as_echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13715 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13718 rm -rf conftest.dSYM
13719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13720 conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_check_lib_save_LIBS
13723 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13724 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13725 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13726 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13727 else
13728 HAVE_OTF_GET_VARIATION_GLYPHS=no
13731 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13733 cat >>confdefs.h <<\_ACEOF
13734 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13735 _ACEOF
13742 HAVE_M17N_FLT=no
13743 if test "${HAVE_LIBOTF}" = yes; then
13744 if test "${with_m17n_flt}" != "no"; then
13746 succeeded=no
13748 # Extract the first word of "pkg-config", so it can be a program name with args.
13749 set dummy pkg-config; ac_word=$2
13750 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13751 $as_echo_n "checking for $ac_word... " >&6; }
13752 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13753 $as_echo_n "(cached) " >&6
13754 else
13755 case $PKG_CONFIG in
13756 [\\/]* | ?:[\\/]*)
13757 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761 for as_dir in $PATH
13763 IFS=$as_save_IFS
13764 test -z "$as_dir" && as_dir=.
13765 for ac_exec_ext in '' $ac_executable_extensions; do
13766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13767 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 break 2
13771 done
13772 done
13773 IFS=$as_save_IFS
13775 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13777 esac
13779 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13780 if test -n "$PKG_CONFIG"; then
13781 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13782 $as_echo "$PKG_CONFIG" >&6; }
13783 else
13784 { $as_echo "$as_me:$LINENO: result: no" >&5
13785 $as_echo "no" >&6; }
13790 if test "$PKG_CONFIG" = "no" ; then
13791 HAVE_M17N_FLT=no
13792 else
13793 PKG_CONFIG_MIN_VERSION=0.9.0
13794 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13795 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
13796 $as_echo_n "checking for m17n-flt... " >&6; }
13798 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13799 { $as_echo "$as_me:$LINENO: result: yes" >&5
13800 $as_echo "yes" >&6; }
13801 succeeded=yes
13803 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13804 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13805 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13806 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13807 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13809 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13810 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13811 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13812 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13813 $as_echo "$M17N_FLT_LIBS" >&6; }
13814 else
13815 { $as_echo "$as_me:$LINENO: result: no" >&5
13816 $as_echo "no" >&6; }
13817 M17N_FLT_CFLAGS=""
13818 M17N_FLT_LIBS=""
13819 ## If we have a custom action on failure, don't print errors, but
13820 ## do set a variable so people can do so.
13821 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13827 else
13828 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13829 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13833 if test $succeeded = yes; then
13834 HAVE_M17N_FLT=yes
13835 else
13836 HAVE_M17N_FLT=no
13839 if test "$HAVE_M17N_FLT" = "yes"; then
13841 cat >>confdefs.h <<\_ACEOF
13842 #define HAVE_M17N_FLT 1
13843 _ACEOF
13848 else
13849 HAVE_XFT=no
13850 HAVE_FREETYPE=no
13851 HAVE_LIBOTF=no
13852 HAVE_M17N_FLT=no
13854 ### End of font-backend (under X11) section.
13865 ### Use -lXpm if available, unless `--with-xpm=no'.
13866 HAVE_XPM=no
13867 if test "${HAVE_X11}" = "yes"; then
13868 if test "${with_xpm}" != "no"; then
13869 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13870 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13871 $as_echo_n "checking for X11/xpm.h... " >&6; }
13872 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13873 $as_echo_n "(cached) " >&6
13875 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13876 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13877 else
13878 # Is the header compilable?
13879 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13880 $as_echo_n "checking X11/xpm.h usability... " >&6; }
13881 cat >conftest.$ac_ext <<_ACEOF
13882 /* confdefs.h. */
13883 _ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13887 $ac_includes_default
13888 #include <X11/xpm.h>
13889 _ACEOF
13890 rm -f conftest.$ac_objext
13891 if { (ac_try="$ac_compile"
13892 case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13895 esac
13896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13897 $as_echo "$ac_try_echo") >&5
13898 (eval "$ac_compile") 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && {
13905 test -z "$ac_c_werror_flag" ||
13906 test ! -s conftest.err
13907 } && test -s conftest.$ac_objext; then
13908 ac_header_compiler=yes
13909 else
13910 $as_echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 ac_header_compiler=no
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13918 $as_echo "$ac_header_compiler" >&6; }
13920 # Is the header present?
13921 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13922 $as_echo_n "checking X11/xpm.h presence... " >&6; }
13923 cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h. */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 #include <X11/xpm.h>
13930 _ACEOF
13931 if { (ac_try="$ac_cpp conftest.$ac_ext"
13932 case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13935 esac
13936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13937 $as_echo "$ac_try_echo") >&5
13938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13939 ac_status=$?
13940 grep -v '^ *+' conftest.er1 >conftest.err
13941 rm -f conftest.er1
13942 cat conftest.err >&5
13943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } >/dev/null && {
13945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13947 }; then
13948 ac_header_preproc=yes
13949 else
13950 $as_echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_header_preproc=no
13956 rm -f conftest.err conftest.$ac_ext
13957 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13958 $as_echo "$ac_header_preproc" >&6; }
13960 # So? What about this header?
13961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13962 yes:no: )
13963 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13964 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13965 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13966 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13967 ac_header_preproc=yes
13969 no:yes:* )
13970 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13971 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13972 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13973 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13974 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13975 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13976 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13977 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13978 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13979 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13980 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13981 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13984 esac
13985 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13986 $as_echo_n "checking for X11/xpm.h... " >&6; }
13987 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13988 $as_echo_n "(cached) " >&6
13989 else
13990 ac_cv_header_X11_xpm_h=$ac_header_preproc
13992 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13993 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13996 if test $ac_cv_header_X11_xpm_h = yes; then
13997 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13998 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13999 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14000 $as_echo_n "(cached) " >&6
14001 else
14002 ac_check_lib_save_LIBS=$LIBS
14003 LIBS="-lXpm -lX11 $LIBS"
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h. */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14011 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14014 #ifdef __cplusplus
14015 extern "C"
14016 #endif
14017 char XpmReadFileToPixmap ();
14019 main ()
14021 return XpmReadFileToPixmap ();
14023 return 0;
14025 _ACEOF
14026 rm -f conftest.$ac_objext conftest$ac_exeext
14027 if { (ac_try="$ac_link"
14028 case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14031 esac
14032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14033 $as_echo "$ac_try_echo") >&5
14034 (eval "$ac_link") 2>conftest.er1
14035 ac_status=$?
14036 grep -v '^ *+' conftest.er1 >conftest.err
14037 rm -f conftest.er1
14038 cat conftest.err >&5
14039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } && {
14041 test -z "$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 } && test -s conftest$ac_exeext && {
14044 test "$cross_compiling" = yes ||
14045 $as_test_x conftest$ac_exeext
14046 }; then
14047 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14048 else
14049 $as_echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14055 rm -rf conftest.dSYM
14056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14057 conftest$ac_exeext conftest.$ac_ext
14058 LIBS=$ac_check_lib_save_LIBS
14060 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14061 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14062 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14063 HAVE_XPM=yes
14069 if test "${HAVE_XPM}" = "yes"; then
14070 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14071 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14072 cat >conftest.$ac_ext <<_ACEOF
14073 /* confdefs.h. */
14074 _ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 #include "X11/xpm.h"
14079 #ifndef XpmReturnAllocPixels
14080 no_return_alloc_pixels
14081 #endif
14083 _ACEOF
14084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14085 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14086 HAVE_XPM=no
14087 else
14088 HAVE_XPM=yes
14090 rm -f conftest*
14093 if test "${HAVE_XPM}" = "yes"; then
14094 { $as_echo "$as_me:$LINENO: result: yes" >&5
14095 $as_echo "yes" >&6; }
14096 else
14097 { $as_echo "$as_me:$LINENO: result: no" >&5
14098 $as_echo "no" >&6; }
14103 if test "${HAVE_XPM}" = "yes"; then
14105 cat >>confdefs.h <<\_ACEOF
14106 #define HAVE_XPM 1
14107 _ACEOF
14112 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14113 HAVE_JPEG=no
14114 if test "${HAVE_X11}" = "yes"; then
14115 if test "${with_jpeg}" != "no"; then
14116 if test "${ac_cv_header_jerror_h+set}" = set; then
14117 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14118 $as_echo_n "checking for jerror.h... " >&6; }
14119 if test "${ac_cv_header_jerror_h+set}" = set; then
14120 $as_echo_n "(cached) " >&6
14122 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14123 $as_echo "$ac_cv_header_jerror_h" >&6; }
14124 else
14125 # Is the header compilable?
14126 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14127 $as_echo_n "checking jerror.h usability... " >&6; }
14128 cat >conftest.$ac_ext <<_ACEOF
14129 /* confdefs.h. */
14130 _ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h. */
14134 $ac_includes_default
14135 #include <jerror.h>
14136 _ACEOF
14137 rm -f conftest.$ac_objext
14138 if { (ac_try="$ac_compile"
14139 case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14142 esac
14143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14144 $as_echo "$ac_try_echo") >&5
14145 (eval "$ac_compile") 2>conftest.er1
14146 ac_status=$?
14147 grep -v '^ *+' conftest.er1 >conftest.err
14148 rm -f conftest.er1
14149 cat conftest.err >&5
14150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } && {
14152 test -z "$ac_c_werror_flag" ||
14153 test ! -s conftest.err
14154 } && test -s conftest.$ac_objext; then
14155 ac_header_compiler=yes
14156 else
14157 $as_echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14160 ac_header_compiler=no
14163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14164 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14165 $as_echo "$ac_header_compiler" >&6; }
14167 # Is the header present?
14168 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14169 $as_echo_n "checking jerror.h presence... " >&6; }
14170 cat >conftest.$ac_ext <<_ACEOF
14171 /* confdefs.h. */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14176 #include <jerror.h>
14177 _ACEOF
14178 if { (ac_try="$ac_cpp conftest.$ac_ext"
14179 case "(($ac_try" in
14180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181 *) ac_try_echo=$ac_try;;
14182 esac
14183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14184 $as_echo "$ac_try_echo") >&5
14185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14186 ac_status=$?
14187 grep -v '^ *+' conftest.er1 >conftest.err
14188 rm -f conftest.er1
14189 cat conftest.err >&5
14190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } >/dev/null && {
14192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14193 test ! -s conftest.err
14194 }; then
14195 ac_header_preproc=yes
14196 else
14197 $as_echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14200 ac_header_preproc=no
14203 rm -f conftest.err conftest.$ac_ext
14204 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14205 $as_echo "$ac_header_preproc" >&6; }
14207 # So? What about this header?
14208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14209 yes:no: )
14210 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14211 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14212 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14213 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14214 ac_header_preproc=yes
14216 no:yes:* )
14217 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14218 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14219 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14220 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14221 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14222 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14223 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14224 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14225 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14226 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14227 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14228 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14231 esac
14232 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14233 $as_echo_n "checking for jerror.h... " >&6; }
14234 if test "${ac_cv_header_jerror_h+set}" = set; then
14235 $as_echo_n "(cached) " >&6
14236 else
14237 ac_cv_header_jerror_h=$ac_header_preproc
14239 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14240 $as_echo "$ac_cv_header_jerror_h" >&6; }
14243 if test $ac_cv_header_jerror_h = yes; then
14244 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14245 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14246 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14247 $as_echo_n "(cached) " >&6
14248 else
14249 ac_check_lib_save_LIBS=$LIBS
14250 LIBS="-ljpeg $LIBS"
14251 cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h. */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14258 /* Override any GCC internal prototype to avoid an error.
14259 Use char because int might match the return type of a GCC
14260 builtin and then its argument prototype would still apply. */
14261 #ifdef __cplusplus
14262 extern "C"
14263 #endif
14264 char jpeg_destroy_compress ();
14266 main ()
14268 return jpeg_destroy_compress ();
14270 return 0;
14272 _ACEOF
14273 rm -f conftest.$ac_objext conftest$ac_exeext
14274 if { (ac_try="$ac_link"
14275 case "(($ac_try" in
14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14278 esac
14279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14280 $as_echo "$ac_try_echo") >&5
14281 (eval "$ac_link") 2>conftest.er1
14282 ac_status=$?
14283 grep -v '^ *+' conftest.er1 >conftest.err
14284 rm -f conftest.er1
14285 cat conftest.err >&5
14286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } && {
14288 test -z "$ac_c_werror_flag" ||
14289 test ! -s conftest.err
14290 } && test -s conftest$ac_exeext && {
14291 test "$cross_compiling" = yes ||
14292 $as_test_x conftest$ac_exeext
14293 }; then
14294 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14295 else
14296 $as_echo "$as_me: failed program was:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14299 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14302 rm -rf conftest.dSYM
14303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14304 conftest$ac_exeext conftest.$ac_ext
14305 LIBS=$ac_check_lib_save_LIBS
14307 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14308 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14309 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14310 HAVE_JPEG=yes
14319 if test "${HAVE_JPEG}" = "yes"; then
14320 cat >>confdefs.h <<\_ACEOF
14321 #define HAVE_JPEG 1
14322 _ACEOF
14324 cat >conftest.$ac_ext <<_ACEOF
14325 /* confdefs.h. */
14326 _ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h. */
14330 #include <jpeglib.h>
14331 version=JPEG_LIB_VERSION
14333 _ACEOF
14334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14335 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14336 cat >>confdefs.h <<\_ACEOF
14337 #define HAVE_JPEG 1
14338 _ACEOF
14340 else
14341 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14342 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14343 HAVE_JPEG=no
14345 rm -f conftest*
14350 ### Use -lpng if available, unless `--with-png=no'.
14351 HAVE_PNG=no
14352 if test "${HAVE_X11}" = "yes"; then
14353 if test "${with_png}" != "no"; then
14354 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14355 # in /usr/include/libpng.
14358 for ac_header in png.h libpng/png.h
14360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14362 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14363 $as_echo_n "checking for $ac_header... " >&6; }
14364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14365 $as_echo_n "(cached) " >&6
14367 ac_res=`eval 'as_val=${'$as_ac_Header'}
14368 $as_echo "$as_val"'`
14369 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14370 $as_echo "$ac_res" >&6; }
14371 else
14372 # Is the header compilable?
14373 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14374 $as_echo_n "checking $ac_header usability... " >&6; }
14375 cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h. */
14377 _ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 $ac_includes_default
14382 #include <$ac_header>
14383 _ACEOF
14384 rm -f conftest.$ac_objext
14385 if { (ac_try="$ac_compile"
14386 case "(($ac_try" in
14387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388 *) ac_try_echo=$ac_try;;
14389 esac
14390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14391 $as_echo "$ac_try_echo") >&5
14392 (eval "$ac_compile") 2>conftest.er1
14393 ac_status=$?
14394 grep -v '^ *+' conftest.er1 >conftest.err
14395 rm -f conftest.er1
14396 cat conftest.err >&5
14397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } && {
14399 test -z "$ac_c_werror_flag" ||
14400 test ! -s conftest.err
14401 } && test -s conftest.$ac_objext; then
14402 ac_header_compiler=yes
14403 else
14404 $as_echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14407 ac_header_compiler=no
14410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14411 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14412 $as_echo "$ac_header_compiler" >&6; }
14414 # Is the header present?
14415 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14416 $as_echo_n "checking $ac_header presence... " >&6; }
14417 cat >conftest.$ac_ext <<_ACEOF
14418 /* confdefs.h. */
14419 _ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 #include <$ac_header>
14424 _ACEOF
14425 if { (ac_try="$ac_cpp conftest.$ac_ext"
14426 case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14429 esac
14430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14431 $as_echo "$ac_try_echo") >&5
14432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14433 ac_status=$?
14434 grep -v '^ *+' conftest.er1 >conftest.err
14435 rm -f conftest.er1
14436 cat conftest.err >&5
14437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } >/dev/null && {
14439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14440 test ! -s conftest.err
14441 }; then
14442 ac_header_preproc=yes
14443 else
14444 $as_echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14447 ac_header_preproc=no
14450 rm -f conftest.err conftest.$ac_ext
14451 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14452 $as_echo "$ac_header_preproc" >&6; }
14454 # So? What about this header?
14455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14456 yes:no: )
14457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14458 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14460 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14461 ac_header_preproc=yes
14463 no:yes:* )
14464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14465 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14467 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14469 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14471 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14473 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14475 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14478 esac
14479 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14480 $as_echo_n "checking for $ac_header... " >&6; }
14481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14482 $as_echo_n "(cached) " >&6
14483 else
14484 eval "$as_ac_Header=\$ac_header_preproc"
14486 ac_res=`eval 'as_val=${'$as_ac_Header'}
14487 $as_echo "$as_val"'`
14488 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14489 $as_echo "$ac_res" >&6; }
14492 if test `eval 'as_val=${'$as_ac_Header'}
14493 $as_echo "$as_val"'` = yes; then
14494 cat >>confdefs.h <<_ACEOF
14495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14496 _ACEOF
14500 done
14502 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14503 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14504 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
14505 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14506 $as_echo_n "(cached) " >&6
14507 else
14508 ac_check_lib_save_LIBS=$LIBS
14509 LIBS="-lpng -lz -lm $LIBS"
14510 cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h. */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14517 /* Override any GCC internal prototype to avoid an error.
14518 Use char because int might match the return type of a GCC
14519 builtin and then its argument prototype would still apply. */
14520 #ifdef __cplusplus
14521 extern "C"
14522 #endif
14523 char png_get_channels ();
14525 main ()
14527 return png_get_channels ();
14529 return 0;
14531 _ACEOF
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (ac_try="$ac_link"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14537 esac
14538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14539 $as_echo "$ac_try_echo") >&5
14540 (eval "$ac_link") 2>conftest.er1
14541 ac_status=$?
14542 grep -v '^ *+' conftest.er1 >conftest.err
14543 rm -f conftest.er1
14544 cat conftest.err >&5
14545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } && {
14547 test -z "$ac_c_werror_flag" ||
14548 test ! -s conftest.err
14549 } && test -s conftest$ac_exeext && {
14550 test "$cross_compiling" = yes ||
14551 $as_test_x conftest$ac_exeext
14552 }; then
14553 ac_cv_lib_png_png_get_channels=yes
14554 else
14555 $as_echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 ac_cv_lib_png_png_get_channels=no
14561 rm -rf conftest.dSYM
14562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14563 conftest$ac_exeext conftest.$ac_ext
14564 LIBS=$ac_check_lib_save_LIBS
14566 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14567 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14568 if test $ac_cv_lib_png_png_get_channels = yes; then
14569 HAVE_PNG=yes
14575 if test "${HAVE_PNG}" = "yes"; then
14577 cat >>confdefs.h <<\_ACEOF
14578 #define HAVE_PNG 1
14579 _ACEOF
14584 ### Use -ltiff if available, unless `--with-tiff=no'.
14585 HAVE_TIFF=no
14586 if test "${HAVE_X11}" = "yes"; then
14587 if test "${with_tiff}" != "no"; then
14588 if test "${ac_cv_header_tiffio_h+set}" = set; then
14589 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14590 $as_echo_n "checking for tiffio.h... " >&6; }
14591 if test "${ac_cv_header_tiffio_h+set}" = set; then
14592 $as_echo_n "(cached) " >&6
14594 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14595 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14596 else
14597 # Is the header compilable?
14598 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14599 $as_echo_n "checking tiffio.h usability... " >&6; }
14600 cat >conftest.$ac_ext <<_ACEOF
14601 /* confdefs.h. */
14602 _ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 $ac_includes_default
14607 #include <tiffio.h>
14608 _ACEOF
14609 rm -f conftest.$ac_objext
14610 if { (ac_try="$ac_compile"
14611 case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14614 esac
14615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14616 $as_echo "$ac_try_echo") >&5
14617 (eval "$ac_compile") 2>conftest.er1
14618 ac_status=$?
14619 grep -v '^ *+' conftest.er1 >conftest.err
14620 rm -f conftest.er1
14621 cat conftest.err >&5
14622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } && {
14624 test -z "$ac_c_werror_flag" ||
14625 test ! -s conftest.err
14626 } && test -s conftest.$ac_objext; then
14627 ac_header_compiler=yes
14628 else
14629 $as_echo "$as_me: failed program was:" >&5
14630 sed 's/^/| /' conftest.$ac_ext >&5
14632 ac_header_compiler=no
14635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14636 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14637 $as_echo "$ac_header_compiler" >&6; }
14639 # Is the header present?
14640 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14641 $as_echo_n "checking tiffio.h presence... " >&6; }
14642 cat >conftest.$ac_ext <<_ACEOF
14643 /* confdefs.h. */
14644 _ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h. */
14648 #include <tiffio.h>
14649 _ACEOF
14650 if { (ac_try="$ac_cpp conftest.$ac_ext"
14651 case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14654 esac
14655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14656 $as_echo "$ac_try_echo") >&5
14657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14658 ac_status=$?
14659 grep -v '^ *+' conftest.er1 >conftest.err
14660 rm -f conftest.er1
14661 cat conftest.err >&5
14662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); } >/dev/null && {
14664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14665 test ! -s conftest.err
14666 }; then
14667 ac_header_preproc=yes
14668 else
14669 $as_echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14672 ac_header_preproc=no
14675 rm -f conftest.err conftest.$ac_ext
14676 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14677 $as_echo "$ac_header_preproc" >&6; }
14679 # So? What about this header?
14680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14681 yes:no: )
14682 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14683 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14684 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14685 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14686 ac_header_preproc=yes
14688 no:yes:* )
14689 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14690 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14691 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14692 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14693 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14694 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14695 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14696 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14697 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14698 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14699 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14700 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14703 esac
14704 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14705 $as_echo_n "checking for tiffio.h... " >&6; }
14706 if test "${ac_cv_header_tiffio_h+set}" = set; then
14707 $as_echo_n "(cached) " >&6
14708 else
14709 ac_cv_header_tiffio_h=$ac_header_preproc
14711 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14712 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14715 if test $ac_cv_header_tiffio_h = yes; then
14716 tifflibs="-lz -lm"
14717 # At least one tiff package requires the jpeg library.
14718 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14719 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14720 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
14721 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14722 $as_echo_n "(cached) " >&6
14723 else
14724 ac_check_lib_save_LIBS=$LIBS
14725 LIBS="-ltiff $tifflibs $LIBS"
14726 cat >conftest.$ac_ext <<_ACEOF
14727 /* confdefs.h. */
14728 _ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14733 /* Override any GCC internal prototype to avoid an error.
14734 Use char because int might match the return type of a GCC
14735 builtin and then its argument prototype would still apply. */
14736 #ifdef __cplusplus
14737 extern "C"
14738 #endif
14739 char TIFFGetVersion ();
14741 main ()
14743 return TIFFGetVersion ();
14745 return 0;
14747 _ACEOF
14748 rm -f conftest.$ac_objext conftest$ac_exeext
14749 if { (ac_try="$ac_link"
14750 case "(($ac_try" in
14751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752 *) ac_try_echo=$ac_try;;
14753 esac
14754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14755 $as_echo "$ac_try_echo") >&5
14756 (eval "$ac_link") 2>conftest.er1
14757 ac_status=$?
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
14761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } && {
14763 test -z "$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14765 } && test -s conftest$ac_exeext && {
14766 test "$cross_compiling" = yes ||
14767 $as_test_x conftest$ac_exeext
14768 }; then
14769 ac_cv_lib_tiff_TIFFGetVersion=yes
14770 else
14771 $as_echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14774 ac_cv_lib_tiff_TIFFGetVersion=no
14777 rm -rf conftest.dSYM
14778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14779 conftest$ac_exeext conftest.$ac_ext
14780 LIBS=$ac_check_lib_save_LIBS
14782 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14783 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14784 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14785 HAVE_TIFF=yes
14793 if test "${HAVE_TIFF}" = "yes"; then
14795 cat >>confdefs.h <<\_ACEOF
14796 #define HAVE_TIFF 1
14797 _ACEOF
14802 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14803 HAVE_GIF=no
14804 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14805 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14806 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14807 $as_echo_n "checking for gif_lib.h... " >&6; }
14808 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14809 $as_echo_n "(cached) " >&6
14811 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14812 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14813 else
14814 # Is the header compilable?
14815 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14816 $as_echo_n "checking gif_lib.h usability... " >&6; }
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h. */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 $ac_includes_default
14824 #include <gif_lib.h>
14825 _ACEOF
14826 rm -f conftest.$ac_objext
14827 if { (ac_try="$ac_compile"
14828 case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14831 esac
14832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14833 $as_echo "$ac_try_echo") >&5
14834 (eval "$ac_compile") 2>conftest.er1
14835 ac_status=$?
14836 grep -v '^ *+' conftest.er1 >conftest.err
14837 rm -f conftest.er1
14838 cat conftest.err >&5
14839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } && {
14841 test -z "$ac_c_werror_flag" ||
14842 test ! -s conftest.err
14843 } && test -s conftest.$ac_objext; then
14844 ac_header_compiler=yes
14845 else
14846 $as_echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14849 ac_header_compiler=no
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14854 $as_echo "$ac_header_compiler" >&6; }
14856 # Is the header present?
14857 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14858 $as_echo_n "checking gif_lib.h presence... " >&6; }
14859 cat >conftest.$ac_ext <<_ACEOF
14860 /* confdefs.h. */
14861 _ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14865 #include <gif_lib.h>
14866 _ACEOF
14867 if { (ac_try="$ac_cpp conftest.$ac_ext"
14868 case "(($ac_try" in
14869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870 *) ac_try_echo=$ac_try;;
14871 esac
14872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14873 $as_echo "$ac_try_echo") >&5
14874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14875 ac_status=$?
14876 grep -v '^ *+' conftest.er1 >conftest.err
14877 rm -f conftest.er1
14878 cat conftest.err >&5
14879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } >/dev/null && {
14881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14882 test ! -s conftest.err
14883 }; then
14884 ac_header_preproc=yes
14885 else
14886 $as_echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14889 ac_header_preproc=no
14892 rm -f conftest.err conftest.$ac_ext
14893 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14894 $as_echo "$ac_header_preproc" >&6; }
14896 # So? What about this header?
14897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14898 yes:no: )
14899 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14900 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14901 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14902 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14903 ac_header_preproc=yes
14905 no:yes:* )
14906 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14907 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14908 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14909 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14910 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14911 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14912 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14913 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14914 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14915 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14916 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14917 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14920 esac
14921 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14922 $as_echo_n "checking for gif_lib.h... " >&6; }
14923 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14924 $as_echo_n "(cached) " >&6
14925 else
14926 ac_cv_header_gif_lib_h=$ac_header_preproc
14928 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14929 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14932 if test $ac_cv_header_gif_lib_h = yes; then
14933 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14934 # Earlier versions can crash Emacs.
14935 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14936 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
14937 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14938 $as_echo_n "(cached) " >&6
14939 else
14940 ac_check_lib_save_LIBS=$LIBS
14941 LIBS="-lgif $LIBS"
14942 cat >conftest.$ac_ext <<_ACEOF
14943 /* confdefs.h. */
14944 _ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14949 /* Override any GCC internal prototype to avoid an error.
14950 Use char because int might match the return type of a GCC
14951 builtin and then its argument prototype would still apply. */
14952 #ifdef __cplusplus
14953 extern "C"
14954 #endif
14955 char EGifPutExtensionLast ();
14957 main ()
14959 return EGifPutExtensionLast ();
14961 return 0;
14963 _ACEOF
14964 rm -f conftest.$ac_objext conftest$ac_exeext
14965 if { (ac_try="$ac_link"
14966 case "(($ac_try" in
14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968 *) ac_try_echo=$ac_try;;
14969 esac
14970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14971 $as_echo "$ac_try_echo") >&5
14972 (eval "$ac_link") 2>conftest.er1
14973 ac_status=$?
14974 grep -v '^ *+' conftest.er1 >conftest.err
14975 rm -f conftest.er1
14976 cat conftest.err >&5
14977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } && {
14979 test -z "$ac_c_werror_flag" ||
14980 test ! -s conftest.err
14981 } && test -s conftest$ac_exeext && {
14982 test "$cross_compiling" = yes ||
14983 $as_test_x conftest$ac_exeext
14984 }; then
14985 ac_cv_lib_gif_EGifPutExtensionLast=yes
14986 else
14987 $as_echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_cv_lib_gif_EGifPutExtensionLast=no
14993 rm -rf conftest.dSYM
14994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14995 conftest$ac_exeext conftest.$ac_ext
14996 LIBS=$ac_check_lib_save_LIBS
14998 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14999 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15000 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15001 HAVE_GIF=yes
15002 else
15003 try_libungif=yes
15010 if test "$HAVE_GIF" = yes; then
15011 ac_gif_lib_name="-lgif"
15014 # If gif_lib.h but no libgif, try libungif.
15015 if test x"$try_libungif" = xyes; then
15016 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15017 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15018 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15019 $as_echo_n "(cached) " >&6
15020 else
15021 ac_check_lib_save_LIBS=$LIBS
15022 LIBS="-lungif $LIBS"
15023 cat >conftest.$ac_ext <<_ACEOF
15024 /* confdefs.h. */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15030 /* Override any GCC internal prototype to avoid an error.
15031 Use char because int might match the return type of a GCC
15032 builtin and then its argument prototype would still apply. */
15033 #ifdef __cplusplus
15034 extern "C"
15035 #endif
15036 char EGifPutExtensionLast ();
15038 main ()
15040 return EGifPutExtensionLast ();
15042 return 0;
15044 _ACEOF
15045 rm -f conftest.$ac_objext conftest$ac_exeext
15046 if { (ac_try="$ac_link"
15047 case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15050 esac
15051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15052 $as_echo "$ac_try_echo") >&5
15053 (eval "$ac_link") 2>conftest.er1
15054 ac_status=$?
15055 grep -v '^ *+' conftest.er1 >conftest.err
15056 rm -f conftest.er1
15057 cat conftest.err >&5
15058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } && {
15060 test -z "$ac_c_werror_flag" ||
15061 test ! -s conftest.err
15062 } && test -s conftest$ac_exeext && {
15063 test "$cross_compiling" = yes ||
15064 $as_test_x conftest$ac_exeext
15065 }; then
15066 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15067 else
15068 $as_echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 ac_cv_lib_ungif_EGifPutExtensionLast=no
15074 rm -rf conftest.dSYM
15075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15076 conftest$ac_exeext conftest.$ac_ext
15077 LIBS=$ac_check_lib_save_LIBS
15079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15080 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15081 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15082 HAVE_GIF=yes
15086 if test "$HAVE_GIF" = yes; then
15088 cat >>confdefs.h <<\_ACEOF
15089 #define LIBGIF -lungif
15090 _ACEOF
15092 ac_gif_lib_name="-lungif"
15096 if test "${HAVE_GIF}" = "yes"; then
15098 cat >>confdefs.h <<\_ACEOF
15099 #define HAVE_GIF 1
15100 _ACEOF
15105 if test "${HAVE_X11}" = "yes"; then
15106 MISSING=""
15107 WITH_NO=""
15108 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15109 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15110 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15111 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15112 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15113 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15114 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15115 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15116 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15117 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15119 if test "X${MISSING}" != X; then
15120 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15121 $MISSING
15122 Maybe some development libraries/packages are missing?
15123 If you don't want to link with them give
15124 $WITH_NO
15125 as options to configure" >&5
15126 $as_echo "$as_me: error: The following required libraries were not found:
15127 $MISSING
15128 Maybe some development libraries/packages are missing?
15129 If you don't want to link with them give
15130 $WITH_NO
15131 as options to configure" >&2;}
15132 { (exit 1); exit 1; }; }
15136 ### Use -lgpm if available, unless `--with-gpm=no'.
15137 HAVE_GPM=no
15138 if test "${with_gpm}" != "no"; then
15139 if test "${ac_cv_header_gpm_h+set}" = set; then
15140 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15141 $as_echo_n "checking for gpm.h... " >&6; }
15142 if test "${ac_cv_header_gpm_h+set}" = set; then
15143 $as_echo_n "(cached) " >&6
15145 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15146 $as_echo "$ac_cv_header_gpm_h" >&6; }
15147 else
15148 # Is the header compilable?
15149 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15150 $as_echo_n "checking gpm.h usability... " >&6; }
15151 cat >conftest.$ac_ext <<_ACEOF
15152 /* confdefs.h. */
15153 _ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15157 $ac_includes_default
15158 #include <gpm.h>
15159 _ACEOF
15160 rm -f conftest.$ac_objext
15161 if { (ac_try="$ac_compile"
15162 case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15165 esac
15166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15167 $as_echo "$ac_try_echo") >&5
15168 (eval "$ac_compile") 2>conftest.er1
15169 ac_status=$?
15170 grep -v '^ *+' conftest.er1 >conftest.err
15171 rm -f conftest.er1
15172 cat conftest.err >&5
15173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } && {
15175 test -z "$ac_c_werror_flag" ||
15176 test ! -s conftest.err
15177 } && test -s conftest.$ac_objext; then
15178 ac_header_compiler=yes
15179 else
15180 $as_echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15183 ac_header_compiler=no
15186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15187 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15188 $as_echo "$ac_header_compiler" >&6; }
15190 # Is the header present?
15191 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15192 $as_echo_n "checking gpm.h presence... " >&6; }
15193 cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h. */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 #include <gpm.h>
15200 _ACEOF
15201 if { (ac_try="$ac_cpp conftest.$ac_ext"
15202 case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15205 esac
15206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15207 $as_echo "$ac_try_echo") >&5
15208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15209 ac_status=$?
15210 grep -v '^ *+' conftest.er1 >conftest.err
15211 rm -f conftest.er1
15212 cat conftest.err >&5
15213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } >/dev/null && {
15215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15216 test ! -s conftest.err
15217 }; then
15218 ac_header_preproc=yes
15219 else
15220 $as_echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15223 ac_header_preproc=no
15226 rm -f conftest.err conftest.$ac_ext
15227 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15228 $as_echo "$ac_header_preproc" >&6; }
15230 # So? What about this header?
15231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15232 yes:no: )
15233 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15234 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15235 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15236 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15237 ac_header_preproc=yes
15239 no:yes:* )
15240 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15241 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15242 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15243 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15244 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15245 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15246 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15247 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15248 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15249 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15250 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15251 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15254 esac
15255 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15256 $as_echo_n "checking for gpm.h... " >&6; }
15257 if test "${ac_cv_header_gpm_h+set}" = set; then
15258 $as_echo_n "(cached) " >&6
15259 else
15260 ac_cv_header_gpm_h=$ac_header_preproc
15262 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15263 $as_echo "$ac_cv_header_gpm_h" >&6; }
15266 if test $ac_cv_header_gpm_h = yes; then
15267 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15268 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15269 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15270 $as_echo_n "(cached) " >&6
15271 else
15272 ac_check_lib_save_LIBS=$LIBS
15273 LIBS="-lgpm $LIBS"
15274 cat >conftest.$ac_ext <<_ACEOF
15275 /* confdefs.h. */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15281 /* Override any GCC internal prototype to avoid an error.
15282 Use char because int might match the return type of a GCC
15283 builtin and then its argument prototype would still apply. */
15284 #ifdef __cplusplus
15285 extern "C"
15286 #endif
15287 char Gpm_Open ();
15289 main ()
15291 return Gpm_Open ();
15293 return 0;
15295 _ACEOF
15296 rm -f conftest.$ac_objext conftest$ac_exeext
15297 if { (ac_try="$ac_link"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15301 esac
15302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15303 $as_echo "$ac_try_echo") >&5
15304 (eval "$ac_link") 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } && {
15311 test -z "$ac_c_werror_flag" ||
15312 test ! -s conftest.err
15313 } && test -s conftest$ac_exeext && {
15314 test "$cross_compiling" = yes ||
15315 $as_test_x conftest$ac_exeext
15316 }; then
15317 ac_cv_lib_gpm_Gpm_Open=yes
15318 else
15319 $as_echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ac_cv_lib_gpm_Gpm_Open=no
15325 rm -rf conftest.dSYM
15326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15327 conftest$ac_exeext conftest.$ac_ext
15328 LIBS=$ac_check_lib_save_LIBS
15330 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15331 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15332 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15333 HAVE_GPM=yes
15341 if test "${HAVE_GPM}" = "yes"; then
15343 cat >>confdefs.h <<\_ACEOF
15344 #define HAVE_GPM 1
15345 _ACEOF
15349 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15350 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15351 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15352 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15353 $as_echo_n "(cached) " >&6
15355 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15356 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15357 else
15358 # Is the header compilable?
15359 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15360 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15361 cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h. */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15367 $ac_includes_default
15368 #include <malloc/malloc.h>
15369 _ACEOF
15370 rm -f conftest.$ac_objext
15371 if { (ac_try="$ac_compile"
15372 case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15375 esac
15376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15377 $as_echo "$ac_try_echo") >&5
15378 (eval "$ac_compile") 2>conftest.er1
15379 ac_status=$?
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
15383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } && {
15385 test -z "$ac_c_werror_flag" ||
15386 test ! -s conftest.err
15387 } && test -s conftest.$ac_objext; then
15388 ac_header_compiler=yes
15389 else
15390 $as_echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 ac_header_compiler=no
15396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15397 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15398 $as_echo "$ac_header_compiler" >&6; }
15400 # Is the header present?
15401 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15402 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15403 cat >conftest.$ac_ext <<_ACEOF
15404 /* confdefs.h. */
15405 _ACEOF
15406 cat confdefs.h >>conftest.$ac_ext
15407 cat >>conftest.$ac_ext <<_ACEOF
15408 /* end confdefs.h. */
15409 #include <malloc/malloc.h>
15410 _ACEOF
15411 if { (ac_try="$ac_cpp conftest.$ac_ext"
15412 case "(($ac_try" in
15413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414 *) ac_try_echo=$ac_try;;
15415 esac
15416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15417 $as_echo "$ac_try_echo") >&5
15418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15419 ac_status=$?
15420 grep -v '^ *+' conftest.er1 >conftest.err
15421 rm -f conftest.er1
15422 cat conftest.err >&5
15423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } >/dev/null && {
15425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15426 test ! -s conftest.err
15427 }; then
15428 ac_header_preproc=yes
15429 else
15430 $as_echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433 ac_header_preproc=no
15436 rm -f conftest.err conftest.$ac_ext
15437 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15438 $as_echo "$ac_header_preproc" >&6; }
15440 # So? What about this header?
15441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15442 yes:no: )
15443 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15444 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15445 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15446 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15447 ac_header_preproc=yes
15449 no:yes:* )
15450 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15451 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15452 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15453 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15454 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15455 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15456 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15457 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15458 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15459 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15460 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15461 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15464 esac
15465 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15466 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15467 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15468 $as_echo_n "(cached) " >&6
15469 else
15470 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15472 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15473 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15476 if test $ac_cv_header_malloc_malloc_h = yes; then
15478 cat >>confdefs.h <<\_ACEOF
15479 #define HAVE_MALLOC_MALLOC_H 1
15480 _ACEOF
15486 ### Use NeXTstep API to implement GUI.
15487 if test "${HAVE_NS}" = "yes"; then
15489 cat >>confdefs.h <<\_ACEOF
15490 #define HAVE_NS 1
15491 _ACEOF
15493 if test "${NS_IMPL_COCOA}" = "yes"; then
15495 cat >>confdefs.h <<\_ACEOF
15496 #define NS_IMPL_COCOA 1
15497 _ACEOF
15499 GNU_OBJC_CFLAGS=
15500 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
15502 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15504 cat >>confdefs.h <<\_ACEOF
15505 #define NS_IMPL_GNUSTEP 1
15506 _ACEOF
15508 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15510 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15512 cat >>confdefs.h <<\_ACEOF
15513 #define NS_HAVE_NSINTEGER 1
15514 _ACEOF
15517 # We also have mouse menus.
15518 HAVE_MENUS=yes
15522 ### Use session management (-lSM -lICE) if available
15523 HAVE_X_SM=no
15524 if test "${HAVE_X11}" = "yes"; then
15525 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15526 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15527 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15528 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15529 $as_echo_n "(cached) " >&6
15531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15532 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15533 else
15534 # Is the header compilable?
15535 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15536 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
15537 cat >conftest.$ac_ext <<_ACEOF
15538 /* confdefs.h. */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15543 $ac_includes_default
15544 #include <X11/SM/SMlib.h>
15545 _ACEOF
15546 rm -f conftest.$ac_objext
15547 if { (ac_try="$ac_compile"
15548 case "(($ac_try" in
15549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550 *) ac_try_echo=$ac_try;;
15551 esac
15552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15553 $as_echo "$ac_try_echo") >&5
15554 (eval "$ac_compile") 2>conftest.er1
15555 ac_status=$?
15556 grep -v '^ *+' conftest.er1 >conftest.err
15557 rm -f conftest.er1
15558 cat conftest.err >&5
15559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } && {
15561 test -z "$ac_c_werror_flag" ||
15562 test ! -s conftest.err
15563 } && test -s conftest.$ac_objext; then
15564 ac_header_compiler=yes
15565 else
15566 $as_echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15569 ac_header_compiler=no
15572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15574 $as_echo "$ac_header_compiler" >&6; }
15576 # Is the header present?
15577 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15578 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
15579 cat >conftest.$ac_ext <<_ACEOF
15580 /* confdefs.h. */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 #include <X11/SM/SMlib.h>
15586 _ACEOF
15587 if { (ac_try="$ac_cpp conftest.$ac_ext"
15588 case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15591 esac
15592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15593 $as_echo "$ac_try_echo") >&5
15594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15595 ac_status=$?
15596 grep -v '^ *+' conftest.er1 >conftest.err
15597 rm -f conftest.er1
15598 cat conftest.err >&5
15599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } >/dev/null && {
15601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15602 test ! -s conftest.err
15603 }; then
15604 ac_header_preproc=yes
15605 else
15606 $as_echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 ac_header_preproc=no
15612 rm -f conftest.err conftest.$ac_ext
15613 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15614 $as_echo "$ac_header_preproc" >&6; }
15616 # So? What about this header?
15617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15618 yes:no: )
15619 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15620 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15621 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15622 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15623 ac_header_preproc=yes
15625 no:yes:* )
15626 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15627 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15628 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15629 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15630 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15631 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15632 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15633 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15634 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15635 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15636 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15637 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15640 esac
15641 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15642 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15643 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15644 $as_echo_n "(cached) " >&6
15645 else
15646 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15648 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15649 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15652 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15653 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15654 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
15655 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15656 $as_echo_n "(cached) " >&6
15657 else
15658 ac_check_lib_save_LIBS=$LIBS
15659 LIBS="-lSM -lICE $LIBS"
15660 cat >conftest.$ac_ext <<_ACEOF
15661 /* confdefs.h. */
15662 _ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15667 /* Override any GCC internal prototype to avoid an error.
15668 Use char because int might match the return type of a GCC
15669 builtin and then its argument prototype would still apply. */
15670 #ifdef __cplusplus
15671 extern "C"
15672 #endif
15673 char SmcOpenConnection ();
15675 main ()
15677 return SmcOpenConnection ();
15679 return 0;
15681 _ACEOF
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (ac_try="$ac_link"
15684 case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15687 esac
15688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15689 $as_echo "$ac_try_echo") >&5
15690 (eval "$ac_link") 2>conftest.er1
15691 ac_status=$?
15692 grep -v '^ *+' conftest.er1 >conftest.err
15693 rm -f conftest.er1
15694 cat conftest.err >&5
15695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } && {
15697 test -z "$ac_c_werror_flag" ||
15698 test ! -s conftest.err
15699 } && test -s conftest$ac_exeext && {
15700 test "$cross_compiling" = yes ||
15701 $as_test_x conftest$ac_exeext
15702 }; then
15703 ac_cv_lib_SM_SmcOpenConnection=yes
15704 else
15705 $as_echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 ac_cv_lib_SM_SmcOpenConnection=no
15711 rm -rf conftest.dSYM
15712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15713 conftest$ac_exeext conftest.$ac_ext
15714 LIBS=$ac_check_lib_save_LIBS
15716 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15717 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15718 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15719 HAVE_X_SM=yes
15726 if test "${HAVE_X_SM}" = "yes"; then
15728 cat >>confdefs.h <<\_ACEOF
15729 #define HAVE_X_SM 1
15730 _ACEOF
15732 case "$LIBS" in
15733 *-lSM*) ;;
15734 *) LIBS="-lSM -lICE $LIBS" ;;
15735 esac
15739 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15740 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15741 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
15742 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15743 $as_echo_n "(cached) " >&6
15744 else
15745 cat >conftest.$ac_ext <<_ACEOF
15746 /* confdefs.h. */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15751 #include <netdb.h>
15753 main ()
15755 return h_errno;
15757 return 0;
15759 _ACEOF
15760 rm -f conftest.$ac_objext conftest$ac_exeext
15761 if { (ac_try="$ac_link"
15762 case "(($ac_try" in
15763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15765 esac
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768 (eval "$ac_link") 2>conftest.er1
15769 ac_status=$?
15770 grep -v '^ *+' conftest.er1 >conftest.err
15771 rm -f conftest.er1
15772 cat conftest.err >&5
15773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest$ac_exeext && {
15778 test "$cross_compiling" = yes ||
15779 $as_test_x conftest$ac_exeext
15780 }; then
15781 emacs_cv_netdb_declares_h_errno=yes
15782 else
15783 $as_echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15786 emacs_cv_netdb_declares_h_errno=no
15789 rm -rf conftest.dSYM
15790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15791 conftest$ac_exeext conftest.$ac_ext
15793 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15794 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15795 if test $emacs_cv_netdb_declares_h_errno = yes; then
15797 cat >>confdefs.h <<\_ACEOF
15798 #define HAVE_H_ERRNO 1
15799 _ACEOF
15803 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15804 # for constant arguments. Useless!
15805 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
15806 $as_echo_n "checking for working alloca.h... " >&6; }
15807 if test "${ac_cv_working_alloca_h+set}" = set; then
15808 $as_echo_n "(cached) " >&6
15809 else
15810 cat >conftest.$ac_ext <<_ACEOF
15811 /* confdefs.h. */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816 #include <alloca.h>
15818 main ()
15820 char *p = (char *) alloca (2 * sizeof (int));
15821 if (p) return 0;
15823 return 0;
15825 _ACEOF
15826 rm -f conftest.$ac_objext conftest$ac_exeext
15827 if { (ac_try="$ac_link"
15828 case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15831 esac
15832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15833 $as_echo "$ac_try_echo") >&5
15834 (eval "$ac_link") 2>conftest.er1
15835 ac_status=$?
15836 grep -v '^ *+' conftest.er1 >conftest.err
15837 rm -f conftest.er1
15838 cat conftest.err >&5
15839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } && {
15841 test -z "$ac_c_werror_flag" ||
15842 test ! -s conftest.err
15843 } && test -s conftest$ac_exeext && {
15844 test "$cross_compiling" = yes ||
15845 $as_test_x conftest$ac_exeext
15846 }; then
15847 ac_cv_working_alloca_h=yes
15848 else
15849 $as_echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 ac_cv_working_alloca_h=no
15855 rm -rf conftest.dSYM
15856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15857 conftest$ac_exeext conftest.$ac_ext
15859 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15860 $as_echo "$ac_cv_working_alloca_h" >&6; }
15861 if test $ac_cv_working_alloca_h = yes; then
15863 cat >>confdefs.h <<\_ACEOF
15864 #define HAVE_ALLOCA_H 1
15865 _ACEOF
15869 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
15870 $as_echo_n "checking for alloca... " >&6; }
15871 if test "${ac_cv_func_alloca_works+set}" = set; then
15872 $as_echo_n "(cached) " >&6
15873 else
15874 cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h. */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15880 #ifdef __GNUC__
15881 # define alloca __builtin_alloca
15882 #else
15883 # ifdef _MSC_VER
15884 # include <malloc.h>
15885 # define alloca _alloca
15886 # else
15887 # ifdef HAVE_ALLOCA_H
15888 # include <alloca.h>
15889 # else
15890 # ifdef _AIX
15891 #pragma alloca
15892 # else
15893 # ifndef alloca /* predefined by HP cc +Olibcalls */
15894 char *alloca ();
15895 # endif
15896 # endif
15897 # endif
15898 # endif
15899 #endif
15902 main ()
15904 char *p = (char *) alloca (1);
15905 if (p) return 0;
15907 return 0;
15909 _ACEOF
15910 rm -f conftest.$ac_objext conftest$ac_exeext
15911 if { (ac_try="$ac_link"
15912 case "(($ac_try" in
15913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914 *) ac_try_echo=$ac_try;;
15915 esac
15916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15917 $as_echo "$ac_try_echo") >&5
15918 (eval "$ac_link") 2>conftest.er1
15919 ac_status=$?
15920 grep -v '^ *+' conftest.er1 >conftest.err
15921 rm -f conftest.er1
15922 cat conftest.err >&5
15923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } && {
15925 test -z "$ac_c_werror_flag" ||
15926 test ! -s conftest.err
15927 } && test -s conftest$ac_exeext && {
15928 test "$cross_compiling" = yes ||
15929 $as_test_x conftest$ac_exeext
15930 }; then
15931 ac_cv_func_alloca_works=yes
15932 else
15933 $as_echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15936 ac_cv_func_alloca_works=no
15939 rm -rf conftest.dSYM
15940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15941 conftest$ac_exeext conftest.$ac_ext
15943 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15944 $as_echo "$ac_cv_func_alloca_works" >&6; }
15946 if test $ac_cv_func_alloca_works = yes; then
15948 cat >>confdefs.h <<\_ACEOF
15949 #define HAVE_ALLOCA 1
15950 _ACEOF
15952 else
15953 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15954 # that cause trouble. Some versions do not even contain alloca or
15955 # contain a buggy version. If you still want to use their alloca,
15956 # use ar to extract alloca.o from them instead of compiling alloca.c.
15958 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15960 cat >>confdefs.h <<\_ACEOF
15961 #define C_ALLOCA 1
15962 _ACEOF
15965 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15966 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15967 if test "${ac_cv_os_cray+set}" = set; then
15968 $as_echo_n "(cached) " >&6
15969 else
15970 cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h. */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 #if defined CRAY && ! defined CRAY2
15977 webecray
15978 #else
15979 wenotbecray
15980 #endif
15982 _ACEOF
15983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15984 $EGREP "webecray" >/dev/null 2>&1; then
15985 ac_cv_os_cray=yes
15986 else
15987 ac_cv_os_cray=no
15989 rm -f conftest*
15992 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15993 $as_echo "$ac_cv_os_cray" >&6; }
15994 if test $ac_cv_os_cray = yes; then
15995 for ac_func in _getb67 GETB67 getb67; do
15996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15997 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15998 $as_echo_n "checking for $ac_func... " >&6; }
15999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16000 $as_echo_n "(cached) " >&6
16001 else
16002 cat >conftest.$ac_ext <<_ACEOF
16003 /* confdefs.h. */
16004 _ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16010 #define $ac_func innocuous_$ac_func
16012 /* System header to define __stub macros and hopefully few prototypes,
16013 which can conflict with char $ac_func (); below.
16014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16015 <limits.h> exists even on freestanding compilers. */
16017 #ifdef __STDC__
16018 # include <limits.h>
16019 #else
16020 # include <assert.h>
16021 #endif
16023 #undef $ac_func
16025 /* Override any GCC internal prototype to avoid an error.
16026 Use char because int might match the return type of a GCC
16027 builtin and then its argument prototype would still apply. */
16028 #ifdef __cplusplus
16029 extern "C"
16030 #endif
16031 char $ac_func ();
16032 /* The GNU C library defines this for functions which it implements
16033 to always fail with ENOSYS. Some functions are actually named
16034 something starting with __ and the normal name is an alias. */
16035 #if defined __stub_$ac_func || defined __stub___$ac_func
16036 choke me
16037 #endif
16040 main ()
16042 return $ac_func ();
16044 return 0;
16046 _ACEOF
16047 rm -f conftest.$ac_objext conftest$ac_exeext
16048 if { (ac_try="$ac_link"
16049 case "(($ac_try" in
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16052 esac
16053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16054 $as_echo "$ac_try_echo") >&5
16055 (eval "$ac_link") 2>conftest.er1
16056 ac_status=$?
16057 grep -v '^ *+' conftest.er1 >conftest.err
16058 rm -f conftest.er1
16059 cat conftest.err >&5
16060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } && {
16062 test -z "$ac_c_werror_flag" ||
16063 test ! -s conftest.err
16064 } && test -s conftest$ac_exeext && {
16065 test "$cross_compiling" = yes ||
16066 $as_test_x conftest$ac_exeext
16067 }; then
16068 eval "$as_ac_var=yes"
16069 else
16070 $as_echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16073 eval "$as_ac_var=no"
16076 rm -rf conftest.dSYM
16077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16078 conftest$ac_exeext conftest.$ac_ext
16080 ac_res=`eval 'as_val=${'$as_ac_var'}
16081 $as_echo "$as_val"'`
16082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16083 $as_echo "$ac_res" >&6; }
16084 if test `eval 'as_val=${'$as_ac_var'}
16085 $as_echo "$as_val"'` = yes; then
16087 cat >>confdefs.h <<_ACEOF
16088 #define CRAY_STACKSEG_END $ac_func
16089 _ACEOF
16091 break
16094 done
16097 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16098 $as_echo_n "checking stack direction for C alloca... " >&6; }
16099 if test "${ac_cv_c_stack_direction+set}" = set; then
16100 $as_echo_n "(cached) " >&6
16101 else
16102 if test "$cross_compiling" = yes; then
16103 ac_cv_c_stack_direction=0
16104 else
16105 cat >conftest.$ac_ext <<_ACEOF
16106 /* confdefs.h. */
16107 _ACEOF
16108 cat confdefs.h >>conftest.$ac_ext
16109 cat >>conftest.$ac_ext <<_ACEOF
16110 /* end confdefs.h. */
16111 $ac_includes_default
16113 find_stack_direction ()
16115 static char *addr = 0;
16116 auto char dummy;
16117 if (addr == 0)
16119 addr = &dummy;
16120 return find_stack_direction ();
16122 else
16123 return (&dummy > addr) ? 1 : -1;
16127 main ()
16129 return find_stack_direction () < 0;
16131 _ACEOF
16132 rm -f conftest$ac_exeext
16133 if { (ac_try="$ac_link"
16134 case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16137 esac
16138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16139 $as_echo "$ac_try_echo") >&5
16140 (eval "$ac_link") 2>&5
16141 ac_status=$?
16142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16144 { (case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16147 esac
16148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16149 $as_echo "$ac_try_echo") >&5
16150 (eval "$ac_try") 2>&5
16151 ac_status=$?
16152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 ac_cv_c_stack_direction=1
16155 else
16156 $as_echo "$as_me: program exited with status $ac_status" >&5
16157 $as_echo "$as_me: failed program was:" >&5
16158 sed 's/^/| /' conftest.$ac_ext >&5
16160 ( exit $ac_status )
16161 ac_cv_c_stack_direction=-1
16163 rm -rf conftest.dSYM
16164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16169 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16170 $as_echo "$ac_cv_c_stack_direction" >&6; }
16172 cat >>confdefs.h <<_ACEOF
16173 #define STACK_DIRECTION $ac_cv_c_stack_direction
16174 _ACEOF
16180 if test x"$ac_cv_func_alloca_works" != xyes; then
16181 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16182 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16183 { (exit 1); exit 1; }; }
16186 # fmod, logb, and frexp are found in -lm on most systems.
16187 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16189 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16190 $as_echo_n "checking for sqrt in -lm... " >&6; }
16191 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16192 $as_echo_n "(cached) " >&6
16193 else
16194 ac_check_lib_save_LIBS=$LIBS
16195 LIBS="-lm $LIBS"
16196 cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h. */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16203 /* Override any GCC internal prototype to avoid an error.
16204 Use char because int might match the return type of a GCC
16205 builtin and then its argument prototype would still apply. */
16206 #ifdef __cplusplus
16207 extern "C"
16208 #endif
16209 char sqrt ();
16211 main ()
16213 return sqrt ();
16215 return 0;
16217 _ACEOF
16218 rm -f conftest.$ac_objext conftest$ac_exeext
16219 if { (ac_try="$ac_link"
16220 case "(($ac_try" in
16221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222 *) ac_try_echo=$ac_try;;
16223 esac
16224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16225 $as_echo "$ac_try_echo") >&5
16226 (eval "$ac_link") 2>conftest.er1
16227 ac_status=$?
16228 grep -v '^ *+' conftest.er1 >conftest.err
16229 rm -f conftest.er1
16230 cat conftest.err >&5
16231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } && {
16233 test -z "$ac_c_werror_flag" ||
16234 test ! -s conftest.err
16235 } && test -s conftest$ac_exeext && {
16236 test "$cross_compiling" = yes ||
16237 $as_test_x conftest$ac_exeext
16238 }; then
16239 ac_cv_lib_m_sqrt=yes
16240 else
16241 $as_echo "$as_me: failed program was:" >&5
16242 sed 's/^/| /' conftest.$ac_ext >&5
16244 ac_cv_lib_m_sqrt=no
16247 rm -rf conftest.dSYM
16248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16249 conftest$ac_exeext conftest.$ac_ext
16250 LIBS=$ac_check_lib_save_LIBS
16252 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16253 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16254 if test $ac_cv_lib_m_sqrt = yes; then
16255 cat >>confdefs.h <<_ACEOF
16256 #define HAVE_LIBM 1
16257 _ACEOF
16259 LIBS="-lm $LIBS"
16264 # Check for mail-locking functions in a "mail" library. Probably this should
16265 # have the same check as for liblockfile below.
16267 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16268 $as_echo_n "checking for maillock in -lmail... " >&6; }
16269 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16270 $as_echo_n "(cached) " >&6
16271 else
16272 ac_check_lib_save_LIBS=$LIBS
16273 LIBS="-lmail $LIBS"
16274 cat >conftest.$ac_ext <<_ACEOF
16275 /* confdefs.h. */
16276 _ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h. */
16281 /* Override any GCC internal prototype to avoid an error.
16282 Use char because int might match the return type of a GCC
16283 builtin and then its argument prototype would still apply. */
16284 #ifdef __cplusplus
16285 extern "C"
16286 #endif
16287 char maillock ();
16289 main ()
16291 return maillock ();
16293 return 0;
16295 _ACEOF
16296 rm -f conftest.$ac_objext conftest$ac_exeext
16297 if { (ac_try="$ac_link"
16298 case "(($ac_try" in
16299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300 *) ac_try_echo=$ac_try;;
16301 esac
16302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16303 $as_echo "$ac_try_echo") >&5
16304 (eval "$ac_link") 2>conftest.er1
16305 ac_status=$?
16306 grep -v '^ *+' conftest.er1 >conftest.err
16307 rm -f conftest.er1
16308 cat conftest.err >&5
16309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); } && {
16311 test -z "$ac_c_werror_flag" ||
16312 test ! -s conftest.err
16313 } && test -s conftest$ac_exeext && {
16314 test "$cross_compiling" = yes ||
16315 $as_test_x conftest$ac_exeext
16316 }; then
16317 ac_cv_lib_mail_maillock=yes
16318 else
16319 $as_echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16322 ac_cv_lib_mail_maillock=no
16325 rm -rf conftest.dSYM
16326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16327 conftest$ac_exeext conftest.$ac_ext
16328 LIBS=$ac_check_lib_save_LIBS
16330 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16331 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16332 if test $ac_cv_lib_mail_maillock = yes; then
16333 cat >>confdefs.h <<_ACEOF
16334 #define HAVE_LIBMAIL 1
16335 _ACEOF
16337 LIBS="-lmail $LIBS"
16342 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16343 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16344 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16345 $as_echo_n "(cached) " >&6
16346 else
16347 ac_check_lib_save_LIBS=$LIBS
16348 LIBS="-llockfile $LIBS"
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h. */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16356 /* Override any GCC internal prototype to avoid an error.
16357 Use char because int might match the return type of a GCC
16358 builtin and then its argument prototype would still apply. */
16359 #ifdef __cplusplus
16360 extern "C"
16361 #endif
16362 char maillock ();
16364 main ()
16366 return maillock ();
16368 return 0;
16370 _ACEOF
16371 rm -f conftest.$ac_objext conftest$ac_exeext
16372 if { (ac_try="$ac_link"
16373 case "(($ac_try" in
16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375 *) ac_try_echo=$ac_try;;
16376 esac
16377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16378 $as_echo "$ac_try_echo") >&5
16379 (eval "$ac_link") 2>conftest.er1
16380 ac_status=$?
16381 grep -v '^ *+' conftest.er1 >conftest.err
16382 rm -f conftest.er1
16383 cat conftest.err >&5
16384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } && {
16386 test -z "$ac_c_werror_flag" ||
16387 test ! -s conftest.err
16388 } && test -s conftest$ac_exeext && {
16389 test "$cross_compiling" = yes ||
16390 $as_test_x conftest$ac_exeext
16391 }; then
16392 ac_cv_lib_lockfile_maillock=yes
16393 else
16394 $as_echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ac_cv_lib_lockfile_maillock=no
16400 rm -rf conftest.dSYM
16401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16402 conftest$ac_exeext conftest.$ac_ext
16403 LIBS=$ac_check_lib_save_LIBS
16405 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16406 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16407 if test $ac_cv_lib_lockfile_maillock = yes; then
16408 cat >>confdefs.h <<_ACEOF
16409 #define HAVE_LIBLOCKFILE 1
16410 _ACEOF
16412 LIBS="-llockfile $LIBS"
16416 # If we have the shared liblockfile, assume we must use it for mail
16417 # locking (e.g. Debian). If we couldn't link against liblockfile
16418 # (no liblockfile.a installed), ensure that we don't need to.
16419 if test "$ac_cv_lib_lockfile_maillock" = no; then
16420 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16421 set dummy liblockfile.so; ac_word=$2
16422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16423 $as_echo_n "checking for $ac_word... " >&6; }
16424 if test "${ac_cv_prog_liblockfile+set}" = set; then
16425 $as_echo_n "(cached) " >&6
16426 else
16427 if test -n "$liblockfile"; then
16428 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16429 else
16430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16431 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16432 for as_dir in $as_dummy
16434 IFS=$as_save_IFS
16435 test -z "$as_dir" && as_dir=.
16436 for ac_exec_ext in '' $ac_executable_extensions; do
16437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16438 ac_cv_prog_liblockfile="yes"
16439 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16440 break 2
16442 done
16443 done
16444 IFS=$as_save_IFS
16446 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16449 liblockfile=$ac_cv_prog_liblockfile
16450 if test -n "$liblockfile"; then
16451 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16452 $as_echo "$liblockfile" >&6; }
16453 else
16454 { $as_echo "$as_me:$LINENO: result: no" >&5
16455 $as_echo "no" >&6; }
16459 if test $ac_cv_prog_liblockfile = yes; then
16460 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16461 This probably means that movemail could lose mail.
16462 There may be a \`development' package to install containing liblockfile." >&5
16463 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16464 This probably means that movemail could lose mail.
16465 There may be a \`development' package to install containing liblockfile." >&2;}
16466 { (exit 1); exit 1; }; }
16467 else :
16471 for ac_func in touchlock
16473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16474 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16475 $as_echo_n "checking for $ac_func... " >&6; }
16476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16477 $as_echo_n "(cached) " >&6
16478 else
16479 cat >conftest.$ac_ext <<_ACEOF
16480 /* confdefs.h. */
16481 _ACEOF
16482 cat confdefs.h >>conftest.$ac_ext
16483 cat >>conftest.$ac_ext <<_ACEOF
16484 /* end confdefs.h. */
16485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16487 #define $ac_func innocuous_$ac_func
16489 /* System header to define __stub macros and hopefully few prototypes,
16490 which can conflict with char $ac_func (); below.
16491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16492 <limits.h> exists even on freestanding compilers. */
16494 #ifdef __STDC__
16495 # include <limits.h>
16496 #else
16497 # include <assert.h>
16498 #endif
16500 #undef $ac_func
16502 /* Override any GCC internal prototype to avoid an error.
16503 Use char because int might match the return type of a GCC
16504 builtin and then its argument prototype would still apply. */
16505 #ifdef __cplusplus
16506 extern "C"
16507 #endif
16508 char $ac_func ();
16509 /* The GNU C library defines this for functions which it implements
16510 to always fail with ENOSYS. Some functions are actually named
16511 something starting with __ and the normal name is an alias. */
16512 #if defined __stub_$ac_func || defined __stub___$ac_func
16513 choke me
16514 #endif
16517 main ()
16519 return $ac_func ();
16521 return 0;
16523 _ACEOF
16524 rm -f conftest.$ac_objext conftest$ac_exeext
16525 if { (ac_try="$ac_link"
16526 case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16529 esac
16530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16531 $as_echo "$ac_try_echo") >&5
16532 (eval "$ac_link") 2>conftest.er1
16533 ac_status=$?
16534 grep -v '^ *+' conftest.er1 >conftest.err
16535 rm -f conftest.er1
16536 cat conftest.err >&5
16537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } && {
16539 test -z "$ac_c_werror_flag" ||
16540 test ! -s conftest.err
16541 } && test -s conftest$ac_exeext && {
16542 test "$cross_compiling" = yes ||
16543 $as_test_x conftest$ac_exeext
16544 }; then
16545 eval "$as_ac_var=yes"
16546 else
16547 $as_echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16550 eval "$as_ac_var=no"
16553 rm -rf conftest.dSYM
16554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16555 conftest$ac_exeext conftest.$ac_ext
16557 ac_res=`eval 'as_val=${'$as_ac_var'}
16558 $as_echo "$as_val"'`
16559 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16560 $as_echo "$ac_res" >&6; }
16561 if test `eval 'as_val=${'$as_ac_var'}
16562 $as_echo "$as_val"'` = yes; then
16563 cat >>confdefs.h <<_ACEOF
16564 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16565 _ACEOF
16568 done
16571 for ac_header in maillock.h
16573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16575 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16576 $as_echo_n "checking for $ac_header... " >&6; }
16577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16578 $as_echo_n "(cached) " >&6
16580 ac_res=`eval 'as_val=${'$as_ac_Header'}
16581 $as_echo "$as_val"'`
16582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16583 $as_echo "$ac_res" >&6; }
16584 else
16585 # Is the header compilable?
16586 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16587 $as_echo_n "checking $ac_header usability... " >&6; }
16588 cat >conftest.$ac_ext <<_ACEOF
16589 /* confdefs.h. */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 $ac_includes_default
16595 #include <$ac_header>
16596 _ACEOF
16597 rm -f conftest.$ac_objext
16598 if { (ac_try="$ac_compile"
16599 case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16602 esac
16603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16604 $as_echo "$ac_try_echo") >&5
16605 (eval "$ac_compile") 2>conftest.er1
16606 ac_status=$?
16607 grep -v '^ *+' conftest.er1 >conftest.err
16608 rm -f conftest.er1
16609 cat conftest.err >&5
16610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } && {
16612 test -z "$ac_c_werror_flag" ||
16613 test ! -s conftest.err
16614 } && test -s conftest.$ac_objext; then
16615 ac_header_compiler=yes
16616 else
16617 $as_echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16620 ac_header_compiler=no
16623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16625 $as_echo "$ac_header_compiler" >&6; }
16627 # Is the header present?
16628 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16629 $as_echo_n "checking $ac_header presence... " >&6; }
16630 cat >conftest.$ac_ext <<_ACEOF
16631 /* confdefs.h. */
16632 _ACEOF
16633 cat confdefs.h >>conftest.$ac_ext
16634 cat >>conftest.$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16636 #include <$ac_header>
16637 _ACEOF
16638 if { (ac_try="$ac_cpp conftest.$ac_ext"
16639 case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16642 esac
16643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16644 $as_echo "$ac_try_echo") >&5
16645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16646 ac_status=$?
16647 grep -v '^ *+' conftest.er1 >conftest.err
16648 rm -f conftest.er1
16649 cat conftest.err >&5
16650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } >/dev/null && {
16652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16653 test ! -s conftest.err
16654 }; then
16655 ac_header_preproc=yes
16656 else
16657 $as_echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16660 ac_header_preproc=no
16663 rm -f conftest.err conftest.$ac_ext
16664 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16665 $as_echo "$ac_header_preproc" >&6; }
16667 # So? What about this header?
16668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16669 yes:no: )
16670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16671 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16673 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16674 ac_header_preproc=yes
16676 no:yes:* )
16677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16678 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16680 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16682 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16684 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16688 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16691 esac
16692 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16693 $as_echo_n "checking for $ac_header... " >&6; }
16694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16695 $as_echo_n "(cached) " >&6
16696 else
16697 eval "$as_ac_Header=\$ac_header_preproc"
16699 ac_res=`eval 'as_val=${'$as_ac_Header'}
16700 $as_echo "$as_val"'`
16701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16702 $as_echo "$ac_res" >&6; }
16705 if test `eval 'as_val=${'$as_ac_Header'}
16706 $as_echo "$as_val"'` = yes; then
16707 cat >>confdefs.h <<_ACEOF
16708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16709 _ACEOF
16713 done
16787 for ac_func in gethostname getdomainname dup2 \
16788 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16789 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16790 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16791 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16792 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16793 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16794 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16795 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16796 cfmakeraw cfsetspeed
16798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16799 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16800 $as_echo_n "checking for $ac_func... " >&6; }
16801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16802 $as_echo_n "(cached) " >&6
16803 else
16804 cat >conftest.$ac_ext <<_ACEOF
16805 /* confdefs.h. */
16806 _ACEOF
16807 cat confdefs.h >>conftest.$ac_ext
16808 cat >>conftest.$ac_ext <<_ACEOF
16809 /* end confdefs.h. */
16810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16812 #define $ac_func innocuous_$ac_func
16814 /* System header to define __stub macros and hopefully few prototypes,
16815 which can conflict with char $ac_func (); below.
16816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16817 <limits.h> exists even on freestanding compilers. */
16819 #ifdef __STDC__
16820 # include <limits.h>
16821 #else
16822 # include <assert.h>
16823 #endif
16825 #undef $ac_func
16827 /* Override any GCC internal prototype to avoid an error.
16828 Use char because int might match the return type of a GCC
16829 builtin and then its argument prototype would still apply. */
16830 #ifdef __cplusplus
16831 extern "C"
16832 #endif
16833 char $ac_func ();
16834 /* The GNU C library defines this for functions which it implements
16835 to always fail with ENOSYS. Some functions are actually named
16836 something starting with __ and the normal name is an alias. */
16837 #if defined __stub_$ac_func || defined __stub___$ac_func
16838 choke me
16839 #endif
16842 main ()
16844 return $ac_func ();
16846 return 0;
16848 _ACEOF
16849 rm -f conftest.$ac_objext conftest$ac_exeext
16850 if { (ac_try="$ac_link"
16851 case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16854 esac
16855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16856 $as_echo "$ac_try_echo") >&5
16857 (eval "$ac_link") 2>conftest.er1
16858 ac_status=$?
16859 grep -v '^ *+' conftest.er1 >conftest.err
16860 rm -f conftest.er1
16861 cat conftest.err >&5
16862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } && {
16864 test -z "$ac_c_werror_flag" ||
16865 test ! -s conftest.err
16866 } && test -s conftest$ac_exeext && {
16867 test "$cross_compiling" = yes ||
16868 $as_test_x conftest$ac_exeext
16869 }; then
16870 eval "$as_ac_var=yes"
16871 else
16872 $as_echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16875 eval "$as_ac_var=no"
16878 rm -rf conftest.dSYM
16879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16880 conftest$ac_exeext conftest.$ac_ext
16882 ac_res=`eval 'as_val=${'$as_ac_var'}
16883 $as_echo "$as_val"'`
16884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16885 $as_echo "$ac_res" >&6; }
16886 if test `eval 'as_val=${'$as_ac_var'}
16887 $as_echo "$as_val"'` = yes; then
16888 cat >>confdefs.h <<_ACEOF
16889 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16890 _ACEOF
16893 done
16897 for ac_header in sys/un.h
16899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16901 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16902 $as_echo_n "checking for $ac_header... " >&6; }
16903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16904 $as_echo_n "(cached) " >&6
16906 ac_res=`eval 'as_val=${'$as_ac_Header'}
16907 $as_echo "$as_val"'`
16908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16909 $as_echo "$ac_res" >&6; }
16910 else
16911 # Is the header compilable?
16912 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16913 $as_echo_n "checking $ac_header usability... " >&6; }
16914 cat >conftest.$ac_ext <<_ACEOF
16915 /* confdefs.h. */
16916 _ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16920 $ac_includes_default
16921 #include <$ac_header>
16922 _ACEOF
16923 rm -f conftest.$ac_objext
16924 if { (ac_try="$ac_compile"
16925 case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16928 esac
16929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16930 $as_echo "$ac_try_echo") >&5
16931 (eval "$ac_compile") 2>conftest.er1
16932 ac_status=$?
16933 grep -v '^ *+' conftest.er1 >conftest.err
16934 rm -f conftest.er1
16935 cat conftest.err >&5
16936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } && {
16938 test -z "$ac_c_werror_flag" ||
16939 test ! -s conftest.err
16940 } && test -s conftest.$ac_objext; then
16941 ac_header_compiler=yes
16942 else
16943 $as_echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16946 ac_header_compiler=no
16949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16951 $as_echo "$ac_header_compiler" >&6; }
16953 # Is the header present?
16954 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16955 $as_echo_n "checking $ac_header presence... " >&6; }
16956 cat >conftest.$ac_ext <<_ACEOF
16957 /* confdefs.h. */
16958 _ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16962 #include <$ac_header>
16963 _ACEOF
16964 if { (ac_try="$ac_cpp conftest.$ac_ext"
16965 case "(($ac_try" in
16966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967 *) ac_try_echo=$ac_try;;
16968 esac
16969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16970 $as_echo "$ac_try_echo") >&5
16971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16972 ac_status=$?
16973 grep -v '^ *+' conftest.er1 >conftest.err
16974 rm -f conftest.er1
16975 cat conftest.err >&5
16976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } >/dev/null && {
16978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16979 test ! -s conftest.err
16980 }; then
16981 ac_header_preproc=yes
16982 else
16983 $as_echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16986 ac_header_preproc=no
16989 rm -f conftest.err conftest.$ac_ext
16990 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16991 $as_echo "$ac_header_preproc" >&6; }
16993 # So? What about this header?
16994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16995 yes:no: )
16996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16997 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16999 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17000 ac_header_preproc=yes
17002 no:yes:* )
17003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17004 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17006 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17008 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17010 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17012 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17014 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17017 esac
17018 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17019 $as_echo_n "checking for $ac_header... " >&6; }
17020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17021 $as_echo_n "(cached) " >&6
17022 else
17023 eval "$as_ac_Header=\$ac_header_preproc"
17025 ac_res=`eval 'as_val=${'$as_ac_Header'}
17026 $as_echo "$as_val"'`
17027 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17028 $as_echo "$ac_res" >&6; }
17031 if test `eval 'as_val=${'$as_ac_Header'}
17032 $as_echo "$as_val"'` = yes; then
17033 cat >>confdefs.h <<_ACEOF
17034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17035 _ACEOF
17039 done
17046 for ac_header in $ac_header_list
17048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17050 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17051 $as_echo_n "checking for $ac_header... " >&6; }
17052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17053 $as_echo_n "(cached) " >&6
17055 ac_res=`eval 'as_val=${'$as_ac_Header'}
17056 $as_echo "$as_val"'`
17057 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17058 $as_echo "$ac_res" >&6; }
17059 else
17060 # Is the header compilable?
17061 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17062 $as_echo_n "checking $ac_header usability... " >&6; }
17063 cat >conftest.$ac_ext <<_ACEOF
17064 /* confdefs.h. */
17065 _ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h. */
17069 $ac_includes_default
17070 #include <$ac_header>
17071 _ACEOF
17072 rm -f conftest.$ac_objext
17073 if { (ac_try="$ac_compile"
17074 case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17077 esac
17078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17079 $as_echo "$ac_try_echo") >&5
17080 (eval "$ac_compile") 2>conftest.er1
17081 ac_status=$?
17082 grep -v '^ *+' conftest.er1 >conftest.err
17083 rm -f conftest.er1
17084 cat conftest.err >&5
17085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); } && {
17087 test -z "$ac_c_werror_flag" ||
17088 test ! -s conftest.err
17089 } && test -s conftest.$ac_objext; then
17090 ac_header_compiler=yes
17091 else
17092 $as_echo "$as_me: failed program was:" >&5
17093 sed 's/^/| /' conftest.$ac_ext >&5
17095 ac_header_compiler=no
17098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17099 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17100 $as_echo "$ac_header_compiler" >&6; }
17102 # Is the header present?
17103 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17104 $as_echo_n "checking $ac_header presence... " >&6; }
17105 cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h. */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17111 #include <$ac_header>
17112 _ACEOF
17113 if { (ac_try="$ac_cpp conftest.$ac_ext"
17114 case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17117 esac
17118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17119 $as_echo "$ac_try_echo") >&5
17120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } >/dev/null && {
17127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17128 test ! -s conftest.err
17129 }; then
17130 ac_header_preproc=yes
17131 else
17132 $as_echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17135 ac_header_preproc=no
17138 rm -f conftest.err conftest.$ac_ext
17139 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17140 $as_echo "$ac_header_preproc" >&6; }
17142 # So? What about this header?
17143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17144 yes:no: )
17145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17146 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17148 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17149 ac_header_preproc=yes
17151 no:yes:* )
17152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17153 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17155 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17157 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17159 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17161 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17163 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17166 esac
17167 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17168 $as_echo_n "checking for $ac_header... " >&6; }
17169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17170 $as_echo_n "(cached) " >&6
17171 else
17172 eval "$as_ac_Header=\$ac_header_preproc"
17174 ac_res=`eval 'as_val=${'$as_ac_Header'}
17175 $as_echo "$as_val"'`
17176 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17177 $as_echo "$ac_res" >&6; }
17180 if test `eval 'as_val=${'$as_ac_Header'}
17181 $as_echo "$as_val"'` = yes; then
17182 cat >>confdefs.h <<_ACEOF
17183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17184 _ACEOF
17188 done
17198 for ac_func in $ac_func_list
17200 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17201 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17202 $as_echo_n "checking for $ac_func... " >&6; }
17203 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17204 $as_echo_n "(cached) " >&6
17205 else
17206 cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h. */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17214 #define $ac_func innocuous_$ac_func
17216 /* System header to define __stub macros and hopefully few prototypes,
17217 which can conflict with char $ac_func (); below.
17218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17219 <limits.h> exists even on freestanding compilers. */
17221 #ifdef __STDC__
17222 # include <limits.h>
17223 #else
17224 # include <assert.h>
17225 #endif
17227 #undef $ac_func
17229 /* Override any GCC internal prototype to avoid an error.
17230 Use char because int might match the return type of a GCC
17231 builtin and then its argument prototype would still apply. */
17232 #ifdef __cplusplus
17233 extern "C"
17234 #endif
17235 char $ac_func ();
17236 /* The GNU C library defines this for functions which it implements
17237 to always fail with ENOSYS. Some functions are actually named
17238 something starting with __ and the normal name is an alias. */
17239 #if defined __stub_$ac_func || defined __stub___$ac_func
17240 choke me
17241 #endif
17244 main ()
17246 return $ac_func ();
17248 return 0;
17250 _ACEOF
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (ac_try="$ac_link"
17253 case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17256 esac
17257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17258 $as_echo "$ac_try_echo") >&5
17259 (eval "$ac_link") 2>conftest.er1
17260 ac_status=$?
17261 grep -v '^ *+' conftest.er1 >conftest.err
17262 rm -f conftest.er1
17263 cat conftest.err >&5
17264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } && {
17266 test -z "$ac_c_werror_flag" ||
17267 test ! -s conftest.err
17268 } && test -s conftest$ac_exeext && {
17269 test "$cross_compiling" = yes ||
17270 $as_test_x conftest$ac_exeext
17271 }; then
17272 eval "$as_ac_var=yes"
17273 else
17274 $as_echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17277 eval "$as_ac_var=no"
17280 rm -rf conftest.dSYM
17281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17282 conftest$ac_exeext conftest.$ac_ext
17284 ac_res=`eval 'as_val=${'$as_ac_var'}
17285 $as_echo "$as_val"'`
17286 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17287 $as_echo "$ac_res" >&6; }
17288 if test `eval 'as_val=${'$as_ac_var'}
17289 $as_echo "$as_val"'` = yes; then
17290 cat >>confdefs.h <<_ACEOF
17291 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17292 _ACEOF
17295 done
17313 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17314 $as_echo_n "checking for working mktime... " >&6; }
17315 if test "${ac_cv_func_working_mktime+set}" = set; then
17316 $as_echo_n "(cached) " >&6
17317 else
17318 if test "$cross_compiling" = yes; then
17319 ac_cv_func_working_mktime=no
17320 else
17321 cat >conftest.$ac_ext <<_ACEOF
17322 /* confdefs.h. */
17323 _ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17327 /* Test program from Paul Eggert and Tony Leneis. */
17328 #ifdef TIME_WITH_SYS_TIME
17329 # include <sys/time.h>
17330 # include <time.h>
17331 #else
17332 # ifdef HAVE_SYS_TIME_H
17333 # include <sys/time.h>
17334 # else
17335 # include <time.h>
17336 # endif
17337 #endif
17339 #include <limits.h>
17340 #include <stdlib.h>
17342 #ifdef HAVE_UNISTD_H
17343 # include <unistd.h>
17344 #endif
17346 #ifndef HAVE_ALARM
17347 # define alarm(X) /* empty */
17348 #endif
17350 /* Work around redefinition to rpl_putenv by other config tests. */
17351 #undef putenv
17353 static time_t time_t_max;
17354 static time_t time_t_min;
17356 /* Values we'll use to set the TZ environment variable. */
17357 static char *tz_strings[] = {
17358 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17359 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17361 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17363 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17364 Based on a problem report from Andreas Jaeger. */
17365 static int
17366 spring_forward_gap ()
17368 /* glibc (up to about 1998-10-07) failed this test. */
17369 struct tm tm;
17371 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17372 instead of "TZ=America/Vancouver" in order to detect the bug even
17373 on systems that don't support the Olson extension, or don't have the
17374 full zoneinfo tables installed. */
17375 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17377 tm.tm_year = 98;
17378 tm.tm_mon = 3;
17379 tm.tm_mday = 5;
17380 tm.tm_hour = 2;
17381 tm.tm_min = 0;
17382 tm.tm_sec = 0;
17383 tm.tm_isdst = -1;
17384 return mktime (&tm) != (time_t) -1;
17387 static int
17388 mktime_test1 (now)
17389 time_t now;
17391 struct tm *lt;
17392 return ! (lt = localtime (&now)) || mktime (lt) == now;
17395 static int
17396 mktime_test (now)
17397 time_t now;
17399 return (mktime_test1 (now)
17400 && mktime_test1 ((time_t) (time_t_max - now))
17401 && mktime_test1 ((time_t) (time_t_min + now)));
17404 static int
17405 irix_6_4_bug ()
17407 /* Based on code from Ariel Faigon. */
17408 struct tm tm;
17409 tm.tm_year = 96;
17410 tm.tm_mon = 3;
17411 tm.tm_mday = 0;
17412 tm.tm_hour = 0;
17413 tm.tm_min = 0;
17414 tm.tm_sec = 0;
17415 tm.tm_isdst = -1;
17416 mktime (&tm);
17417 return tm.tm_mon == 2 && tm.tm_mday == 31;
17420 static int
17421 bigtime_test (j)
17422 int j;
17424 struct tm tm;
17425 time_t now;
17426 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17427 now = mktime (&tm);
17428 if (now != (time_t) -1)
17430 struct tm *lt = localtime (&now);
17431 if (! (lt
17432 && lt->tm_year == tm.tm_year
17433 && lt->tm_mon == tm.tm_mon
17434 && lt->tm_mday == tm.tm_mday
17435 && lt->tm_hour == tm.tm_hour
17436 && lt->tm_min == tm.tm_min
17437 && lt->tm_sec == tm.tm_sec
17438 && lt->tm_yday == tm.tm_yday
17439 && lt->tm_wday == tm.tm_wday
17440 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17441 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17442 return 0;
17444 return 1;
17447 static int
17448 year_2050_test ()
17450 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17451 ignoring leap seconds. */
17452 unsigned long int answer = 2527315200UL;
17454 struct tm tm;
17455 time_t t;
17456 tm.tm_year = 2050 - 1900;
17457 tm.tm_mon = 2 - 1;
17458 tm.tm_mday = 1;
17459 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17460 tm.tm_isdst = -1;
17462 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17463 instead of "TZ=America/Vancouver" in order to detect the bug even
17464 on systems that don't support the Olson extension, or don't have the
17465 full zoneinfo tables installed. */
17466 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17468 t = mktime (&tm);
17470 /* Check that the result is either a failure, or close enough
17471 to the correct answer that we can assume the discrepancy is
17472 due to leap seconds. */
17473 return (t == (time_t) -1
17474 || (0 < t && answer - 120 <= t && t <= answer + 120));
17478 main ()
17480 time_t t, delta;
17481 int i, j;
17483 /* This test makes some buggy mktime implementations loop.
17484 Give up after 60 seconds; a mktime slower than that
17485 isn't worth using anyway. */
17486 alarm (60);
17488 for (;;)
17490 t = (time_t_max << 1) + 1;
17491 if (t <= time_t_max)
17492 break;
17493 time_t_max = t;
17495 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17497 delta = time_t_max / 997; /* a suitable prime number */
17498 for (i = 0; i < N_STRINGS; i++)
17500 if (tz_strings[i])
17501 putenv (tz_strings[i]);
17503 for (t = 0; t <= time_t_max - delta; t += delta)
17504 if (! mktime_test (t))
17505 return 1;
17506 if (! (mktime_test ((time_t) 1)
17507 && mktime_test ((time_t) (60 * 60))
17508 && mktime_test ((time_t) (60 * 60 * 24))))
17509 return 1;
17511 for (j = 1; ; j <<= 1)
17512 if (! bigtime_test (j))
17513 return 1;
17514 else if (INT_MAX / 2 < j)
17515 break;
17516 if (! bigtime_test (INT_MAX))
17517 return 1;
17519 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17521 _ACEOF
17522 rm -f conftest$ac_exeext
17523 if { (ac_try="$ac_link"
17524 case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527 esac
17528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17529 $as_echo "$ac_try_echo") >&5
17530 (eval "$ac_link") 2>&5
17531 ac_status=$?
17532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17534 { (case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537 esac
17538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17539 $as_echo "$ac_try_echo") >&5
17540 (eval "$ac_try") 2>&5
17541 ac_status=$?
17542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; }; then
17544 ac_cv_func_working_mktime=yes
17545 else
17546 $as_echo "$as_me: program exited with status $ac_status" >&5
17547 $as_echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17550 ( exit $ac_status )
17551 ac_cv_func_working_mktime=no
17553 rm -rf conftest.dSYM
17554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17559 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17560 $as_echo "$ac_cv_func_working_mktime" >&6; }
17561 if test $ac_cv_func_working_mktime = no; then
17562 case " $LIBOBJS " in
17563 *" mktime.$ac_objext "* ) ;;
17564 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17566 esac
17570 if test "$ac_cv_func_working_mktime" = no; then
17572 cat >>confdefs.h <<\_ACEOF
17573 #define BROKEN_MKTIME 1
17574 _ACEOF
17578 ac_have_func=no # yes means we've found a way to get the load average.
17580 # Make sure getloadavg.c is where it belongs, at configure-time.
17581 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17582 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17583 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17584 { (exit 1); exit 1; }; }
17586 ac_save_LIBS=$LIBS
17588 # Check for getloadavg, but be sure not to touch the cache variable.
17589 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17590 $as_echo_n "checking for getloadavg... " >&6; }
17591 if test "${ac_cv_func_getloadavg+set}" = set; then
17592 $as_echo_n "(cached) " >&6
17593 else
17594 cat >conftest.$ac_ext <<_ACEOF
17595 /* confdefs.h. */
17596 _ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17600 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17602 #define getloadavg innocuous_getloadavg
17604 /* System header to define __stub macros and hopefully few prototypes,
17605 which can conflict with char getloadavg (); below.
17606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17607 <limits.h> exists even on freestanding compilers. */
17609 #ifdef __STDC__
17610 # include <limits.h>
17611 #else
17612 # include <assert.h>
17613 #endif
17615 #undef getloadavg
17617 /* Override any GCC internal prototype to avoid an error.
17618 Use char because int might match the return type of a GCC
17619 builtin and then its argument prototype would still apply. */
17620 #ifdef __cplusplus
17621 extern "C"
17622 #endif
17623 char getloadavg ();
17624 /* The GNU C library defines this for functions which it implements
17625 to always fail with ENOSYS. Some functions are actually named
17626 something starting with __ and the normal name is an alias. */
17627 #if defined __stub_getloadavg || defined __stub___getloadavg
17628 choke me
17629 #endif
17632 main ()
17634 return getloadavg ();
17636 return 0;
17638 _ACEOF
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (ac_try="$ac_link"
17641 case "(($ac_try" in
17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643 *) ac_try_echo=$ac_try;;
17644 esac
17645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17646 $as_echo "$ac_try_echo") >&5
17647 (eval "$ac_link") 2>conftest.er1
17648 ac_status=$?
17649 grep -v '^ *+' conftest.er1 >conftest.err
17650 rm -f conftest.er1
17651 cat conftest.err >&5
17652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } && {
17654 test -z "$ac_c_werror_flag" ||
17655 test ! -s conftest.err
17656 } && test -s conftest$ac_exeext && {
17657 test "$cross_compiling" = yes ||
17658 $as_test_x conftest$ac_exeext
17659 }; then
17660 ac_cv_func_getloadavg=yes
17661 else
17662 $as_echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17665 ac_cv_func_getloadavg=no
17668 rm -rf conftest.dSYM
17669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17670 conftest$ac_exeext conftest.$ac_ext
17672 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17673 $as_echo "$ac_cv_func_getloadavg" >&6; }
17674 if test $ac_cv_func_getloadavg = yes; then
17675 exit 0
17676 else
17677 exit 1
17679 ) && ac_have_func=yes
17681 # On HPUX9, an unprivileged user can get load averages through this function.
17683 for ac_func in pstat_getdynamic
17685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17686 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17687 $as_echo_n "checking for $ac_func... " >&6; }
17688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17689 $as_echo_n "(cached) " >&6
17690 else
17691 cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h. */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17699 #define $ac_func innocuous_$ac_func
17701 /* System header to define __stub macros and hopefully few prototypes,
17702 which can conflict with char $ac_func (); below.
17703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17704 <limits.h> exists even on freestanding compilers. */
17706 #ifdef __STDC__
17707 # include <limits.h>
17708 #else
17709 # include <assert.h>
17710 #endif
17712 #undef $ac_func
17714 /* Override any GCC internal prototype to avoid an error.
17715 Use char because int might match the return type of a GCC
17716 builtin and then its argument prototype would still apply. */
17717 #ifdef __cplusplus
17718 extern "C"
17719 #endif
17720 char $ac_func ();
17721 /* The GNU C library defines this for functions which it implements
17722 to always fail with ENOSYS. Some functions are actually named
17723 something starting with __ and the normal name is an alias. */
17724 #if defined __stub_$ac_func || defined __stub___$ac_func
17725 choke me
17726 #endif
17729 main ()
17731 return $ac_func ();
17733 return 0;
17735 _ACEOF
17736 rm -f conftest.$ac_objext conftest$ac_exeext
17737 if { (ac_try="$ac_link"
17738 case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17741 esac
17742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17743 $as_echo "$ac_try_echo") >&5
17744 (eval "$ac_link") 2>conftest.er1
17745 ac_status=$?
17746 grep -v '^ *+' conftest.er1 >conftest.err
17747 rm -f conftest.er1
17748 cat conftest.err >&5
17749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } && {
17751 test -z "$ac_c_werror_flag" ||
17752 test ! -s conftest.err
17753 } && test -s conftest$ac_exeext && {
17754 test "$cross_compiling" = yes ||
17755 $as_test_x conftest$ac_exeext
17756 }; then
17757 eval "$as_ac_var=yes"
17758 else
17759 $as_echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17762 eval "$as_ac_var=no"
17765 rm -rf conftest.dSYM
17766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17767 conftest$ac_exeext conftest.$ac_ext
17769 ac_res=`eval 'as_val=${'$as_ac_var'}
17770 $as_echo "$as_val"'`
17771 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17772 $as_echo "$ac_res" >&6; }
17773 if test `eval 'as_val=${'$as_ac_var'}
17774 $as_echo "$as_val"'` = yes; then
17775 cat >>confdefs.h <<_ACEOF
17776 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17777 _ACEOF
17780 done
17783 # Solaris has libkstat which does not require root.
17785 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17786 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17787 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17788 $as_echo_n "(cached) " >&6
17789 else
17790 ac_check_lib_save_LIBS=$LIBS
17791 LIBS="-lkstat $LIBS"
17792 cat >conftest.$ac_ext <<_ACEOF
17793 /* confdefs.h. */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17799 /* Override any GCC internal prototype to avoid an error.
17800 Use char because int might match the return type of a GCC
17801 builtin and then its argument prototype would still apply. */
17802 #ifdef __cplusplus
17803 extern "C"
17804 #endif
17805 char kstat_open ();
17807 main ()
17809 return kstat_open ();
17811 return 0;
17813 _ACEOF
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (ac_try="$ac_link"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17819 esac
17820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17821 $as_echo "$ac_try_echo") >&5
17822 (eval "$ac_link") 2>conftest.er1
17823 ac_status=$?
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
17827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } && {
17829 test -z "$ac_c_werror_flag" ||
17830 test ! -s conftest.err
17831 } && test -s conftest$ac_exeext && {
17832 test "$cross_compiling" = yes ||
17833 $as_test_x conftest$ac_exeext
17834 }; then
17835 ac_cv_lib_kstat_kstat_open=yes
17836 else
17837 $as_echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17840 ac_cv_lib_kstat_kstat_open=no
17843 rm -rf conftest.dSYM
17844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17845 conftest$ac_exeext conftest.$ac_ext
17846 LIBS=$ac_check_lib_save_LIBS
17848 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17849 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
17850 if test $ac_cv_lib_kstat_kstat_open = yes; then
17851 cat >>confdefs.h <<_ACEOF
17852 #define HAVE_LIBKSTAT 1
17853 _ACEOF
17855 LIBS="-lkstat $LIBS"
17859 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17861 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17862 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17863 # to get the right answer into the cache.
17864 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17865 if test $ac_have_func = no; then
17866 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17867 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
17868 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17869 $as_echo_n "(cached) " >&6
17870 else
17871 ac_check_lib_save_LIBS=$LIBS
17872 LIBS="-lelf $LIBS"
17873 cat >conftest.$ac_ext <<_ACEOF
17874 /* confdefs.h. */
17875 _ACEOF
17876 cat confdefs.h >>conftest.$ac_ext
17877 cat >>conftest.$ac_ext <<_ACEOF
17878 /* end confdefs.h. */
17880 /* Override any GCC internal prototype to avoid an error.
17881 Use char because int might match the return type of a GCC
17882 builtin and then its argument prototype would still apply. */
17883 #ifdef __cplusplus
17884 extern "C"
17885 #endif
17886 char elf_begin ();
17888 main ()
17890 return elf_begin ();
17892 return 0;
17894 _ACEOF
17895 rm -f conftest.$ac_objext conftest$ac_exeext
17896 if { (ac_try="$ac_link"
17897 case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17900 esac
17901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17902 $as_echo "$ac_try_echo") >&5
17903 (eval "$ac_link") 2>conftest.er1
17904 ac_status=$?
17905 grep -v '^ *+' conftest.er1 >conftest.err
17906 rm -f conftest.er1
17907 cat conftest.err >&5
17908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } && {
17910 test -z "$ac_c_werror_flag" ||
17911 test ! -s conftest.err
17912 } && test -s conftest$ac_exeext && {
17913 test "$cross_compiling" = yes ||
17914 $as_test_x conftest$ac_exeext
17915 }; then
17916 ac_cv_lib_elf_elf_begin=yes
17917 else
17918 $as_echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17921 ac_cv_lib_elf_elf_begin=no
17924 rm -rf conftest.dSYM
17925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17926 conftest$ac_exeext conftest.$ac_ext
17927 LIBS=$ac_check_lib_save_LIBS
17929 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17930 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
17931 if test $ac_cv_lib_elf_elf_begin = yes; then
17932 LIBS="-lelf $LIBS"
17936 if test $ac_have_func = no; then
17937 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17938 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
17939 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17940 $as_echo_n "(cached) " >&6
17941 else
17942 ac_check_lib_save_LIBS=$LIBS
17943 LIBS="-lkvm $LIBS"
17944 cat >conftest.$ac_ext <<_ACEOF
17945 /* confdefs.h. */
17946 _ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17951 /* Override any GCC internal prototype to avoid an error.
17952 Use char because int might match the return type of a GCC
17953 builtin and then its argument prototype would still apply. */
17954 #ifdef __cplusplus
17955 extern "C"
17956 #endif
17957 char kvm_open ();
17959 main ()
17961 return kvm_open ();
17963 return 0;
17965 _ACEOF
17966 rm -f conftest.$ac_objext conftest$ac_exeext
17967 if { (ac_try="$ac_link"
17968 case "(($ac_try" in
17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970 *) ac_try_echo=$ac_try;;
17971 esac
17972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17973 $as_echo "$ac_try_echo") >&5
17974 (eval "$ac_link") 2>conftest.er1
17975 ac_status=$?
17976 grep -v '^ *+' conftest.er1 >conftest.err
17977 rm -f conftest.er1
17978 cat conftest.err >&5
17979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } && {
17981 test -z "$ac_c_werror_flag" ||
17982 test ! -s conftest.err
17983 } && test -s conftest$ac_exeext && {
17984 test "$cross_compiling" = yes ||
17985 $as_test_x conftest$ac_exeext
17986 }; then
17987 ac_cv_lib_kvm_kvm_open=yes
17988 else
17989 $as_echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17992 ac_cv_lib_kvm_kvm_open=no
17995 rm -rf conftest.dSYM
17996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17997 conftest$ac_exeext conftest.$ac_ext
17998 LIBS=$ac_check_lib_save_LIBS
18000 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18001 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18002 if test $ac_cv_lib_kvm_kvm_open = yes; then
18003 LIBS="-lkvm $LIBS"
18006 # Check for the 4.4BSD definition of getloadavg.
18007 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18008 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18009 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18010 $as_echo_n "(cached) " >&6
18011 else
18012 ac_check_lib_save_LIBS=$LIBS
18013 LIBS="-lutil $LIBS"
18014 cat >conftest.$ac_ext <<_ACEOF
18015 /* confdefs.h. */
18016 _ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h. */
18021 /* Override any GCC internal prototype to avoid an error.
18022 Use char because int might match the return type of a GCC
18023 builtin and then its argument prototype would still apply. */
18024 #ifdef __cplusplus
18025 extern "C"
18026 #endif
18027 char getloadavg ();
18029 main ()
18031 return getloadavg ();
18033 return 0;
18035 _ACEOF
18036 rm -f conftest.$ac_objext conftest$ac_exeext
18037 if { (ac_try="$ac_link"
18038 case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18041 esac
18042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18043 $as_echo "$ac_try_echo") >&5
18044 (eval "$ac_link") 2>conftest.er1
18045 ac_status=$?
18046 grep -v '^ *+' conftest.er1 >conftest.err
18047 rm -f conftest.er1
18048 cat conftest.err >&5
18049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } && {
18051 test -z "$ac_c_werror_flag" ||
18052 test ! -s conftest.err
18053 } && test -s conftest$ac_exeext && {
18054 test "$cross_compiling" = yes ||
18055 $as_test_x conftest$ac_exeext
18056 }; then
18057 ac_cv_lib_util_getloadavg=yes
18058 else
18059 $as_echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_cv_lib_util_getloadavg=no
18065 rm -rf conftest.dSYM
18066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18067 conftest$ac_exeext conftest.$ac_ext
18068 LIBS=$ac_check_lib_save_LIBS
18070 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18071 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18072 if test $ac_cv_lib_util_getloadavg = yes; then
18073 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18078 if test $ac_have_func = no; then
18079 # There is a commonly available library for RS/6000 AIX.
18080 # Since it is not a standard part of AIX, it might be installed locally.
18081 ac_getloadavg_LIBS=$LIBS
18082 LIBS="-L/usr/local/lib $LIBS"
18083 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18084 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18085 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18086 $as_echo_n "(cached) " >&6
18087 else
18088 ac_check_lib_save_LIBS=$LIBS
18089 LIBS="-lgetloadavg $LIBS"
18090 cat >conftest.$ac_ext <<_ACEOF
18091 /* confdefs.h. */
18092 _ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h. */
18097 /* Override any GCC internal prototype to avoid an error.
18098 Use char because int might match the return type of a GCC
18099 builtin and then its argument prototype would still apply. */
18100 #ifdef __cplusplus
18101 extern "C"
18102 #endif
18103 char getloadavg ();
18105 main ()
18107 return getloadavg ();
18109 return 0;
18111 _ACEOF
18112 rm -f conftest.$ac_objext conftest$ac_exeext
18113 if { (ac_try="$ac_link"
18114 case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18117 esac
18118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18119 $as_echo "$ac_try_echo") >&5
18120 (eval "$ac_link") 2>conftest.er1
18121 ac_status=$?
18122 grep -v '^ *+' conftest.er1 >conftest.err
18123 rm -f conftest.er1
18124 cat conftest.err >&5
18125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } && {
18127 test -z "$ac_c_werror_flag" ||
18128 test ! -s conftest.err
18129 } && test -s conftest$ac_exeext && {
18130 test "$cross_compiling" = yes ||
18131 $as_test_x conftest$ac_exeext
18132 }; then
18133 ac_cv_lib_getloadavg_getloadavg=yes
18134 else
18135 $as_echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18138 ac_cv_lib_getloadavg_getloadavg=no
18141 rm -rf conftest.dSYM
18142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18143 conftest$ac_exeext conftest.$ac_ext
18144 LIBS=$ac_check_lib_save_LIBS
18146 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18147 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18148 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18149 LIBS="-lgetloadavg $LIBS"
18150 else
18151 LIBS=$ac_getloadavg_LIBS
18156 # Make sure it is really in the library, if we think we found it,
18157 # otherwise set up the replacement function.
18159 for ac_func in getloadavg
18161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18162 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18163 $as_echo_n "checking for $ac_func... " >&6; }
18164 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18165 $as_echo_n "(cached) " >&6
18166 else
18167 cat >conftest.$ac_ext <<_ACEOF
18168 /* confdefs.h. */
18169 _ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18175 #define $ac_func innocuous_$ac_func
18177 /* System header to define __stub macros and hopefully few prototypes,
18178 which can conflict with char $ac_func (); below.
18179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18180 <limits.h> exists even on freestanding compilers. */
18182 #ifdef __STDC__
18183 # include <limits.h>
18184 #else
18185 # include <assert.h>
18186 #endif
18188 #undef $ac_func
18190 /* Override any GCC internal prototype to avoid an error.
18191 Use char because int might match the return type of a GCC
18192 builtin and then its argument prototype would still apply. */
18193 #ifdef __cplusplus
18194 extern "C"
18195 #endif
18196 char $ac_func ();
18197 /* The GNU C library defines this for functions which it implements
18198 to always fail with ENOSYS. Some functions are actually named
18199 something starting with __ and the normal name is an alias. */
18200 #if defined __stub_$ac_func || defined __stub___$ac_func
18201 choke me
18202 #endif
18205 main ()
18207 return $ac_func ();
18209 return 0;
18211 _ACEOF
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18217 esac
18218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18219 $as_echo "$ac_try_echo") >&5
18220 (eval "$ac_link") 2>conftest.er1
18221 ac_status=$?
18222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
18225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } && {
18227 test -z "$ac_c_werror_flag" ||
18228 test ! -s conftest.err
18229 } && test -s conftest$ac_exeext && {
18230 test "$cross_compiling" = yes ||
18231 $as_test_x conftest$ac_exeext
18232 }; then
18233 eval "$as_ac_var=yes"
18234 else
18235 $as_echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18238 eval "$as_ac_var=no"
18241 rm -rf conftest.dSYM
18242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18243 conftest$ac_exeext conftest.$ac_ext
18245 ac_res=`eval 'as_val=${'$as_ac_var'}
18246 $as_echo "$as_val"'`
18247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18248 $as_echo "$ac_res" >&6; }
18249 if test `eval 'as_val=${'$as_ac_var'}
18250 $as_echo "$as_val"'` = yes; then
18251 cat >>confdefs.h <<_ACEOF
18252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18253 _ACEOF
18255 else
18256 case " $LIBOBJS " in
18257 *" getloadavg.$ac_objext "* ) ;;
18258 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18260 esac
18263 cat >>confdefs.h <<\_ACEOF
18264 #define C_GETLOADAVG 1
18265 _ACEOF
18267 # Figure out what our getloadavg.c needs.
18268 ac_have_func=no
18269 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18270 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18271 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18272 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18273 $as_echo_n "(cached) " >&6
18275 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18276 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18277 else
18278 # Is the header compilable?
18279 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18280 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18281 cat >conftest.$ac_ext <<_ACEOF
18282 /* confdefs.h. */
18283 _ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18287 $ac_includes_default
18288 #include <sys/dg_sys_info.h>
18289 _ACEOF
18290 rm -f conftest.$ac_objext
18291 if { (ac_try="$ac_compile"
18292 case "(($ac_try" in
18293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294 *) ac_try_echo=$ac_try;;
18295 esac
18296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18297 $as_echo "$ac_try_echo") >&5
18298 (eval "$ac_compile") 2>conftest.er1
18299 ac_status=$?
18300 grep -v '^ *+' conftest.er1 >conftest.err
18301 rm -f conftest.er1
18302 cat conftest.err >&5
18303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); } && {
18305 test -z "$ac_c_werror_flag" ||
18306 test ! -s conftest.err
18307 } && test -s conftest.$ac_objext; then
18308 ac_header_compiler=yes
18309 else
18310 $as_echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18313 ac_header_compiler=no
18316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18317 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18318 $as_echo "$ac_header_compiler" >&6; }
18320 # Is the header present?
18321 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18322 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18323 cat >conftest.$ac_ext <<_ACEOF
18324 /* confdefs.h. */
18325 _ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18329 #include <sys/dg_sys_info.h>
18330 _ACEOF
18331 if { (ac_try="$ac_cpp conftest.$ac_ext"
18332 case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18335 esac
18336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18337 $as_echo "$ac_try_echo") >&5
18338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18339 ac_status=$?
18340 grep -v '^ *+' conftest.er1 >conftest.err
18341 rm -f conftest.er1
18342 cat conftest.err >&5
18343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); } >/dev/null && {
18345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18346 test ! -s conftest.err
18347 }; then
18348 ac_header_preproc=yes
18349 else
18350 $as_echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.$ac_ext >&5
18353 ac_header_preproc=no
18356 rm -f conftest.err conftest.$ac_ext
18357 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18358 $as_echo "$ac_header_preproc" >&6; }
18360 # So? What about this header?
18361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18362 yes:no: )
18363 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18364 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18365 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18366 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18367 ac_header_preproc=yes
18369 no:yes:* )
18370 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18371 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18372 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18373 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18374 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18375 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18376 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18377 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18378 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18379 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18380 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18381 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18384 esac
18385 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18386 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18387 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18388 $as_echo_n "(cached) " >&6
18389 else
18390 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18392 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18393 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18396 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18397 ac_have_func=yes
18399 cat >>confdefs.h <<\_ACEOF
18400 #define DGUX 1
18401 _ACEOF
18404 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18405 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18406 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18407 $as_echo_n "(cached) " >&6
18408 else
18409 ac_check_lib_save_LIBS=$LIBS
18410 LIBS="-ldgc $LIBS"
18411 cat >conftest.$ac_ext <<_ACEOF
18412 /* confdefs.h. */
18413 _ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h. */
18418 /* Override any GCC internal prototype to avoid an error.
18419 Use char because int might match the return type of a GCC
18420 builtin and then its argument prototype would still apply. */
18421 #ifdef __cplusplus
18422 extern "C"
18423 #endif
18424 char dg_sys_info ();
18426 main ()
18428 return dg_sys_info ();
18430 return 0;
18432 _ACEOF
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (ac_try="$ac_link"
18435 case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18438 esac
18439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18440 $as_echo "$ac_try_echo") >&5
18441 (eval "$ac_link") 2>conftest.er1
18442 ac_status=$?
18443 grep -v '^ *+' conftest.er1 >conftest.err
18444 rm -f conftest.er1
18445 cat conftest.err >&5
18446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } && {
18448 test -z "$ac_c_werror_flag" ||
18449 test ! -s conftest.err
18450 } && test -s conftest$ac_exeext && {
18451 test "$cross_compiling" = yes ||
18452 $as_test_x conftest$ac_exeext
18453 }; then
18454 ac_cv_lib_dgc_dg_sys_info=yes
18455 else
18456 $as_echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18459 ac_cv_lib_dgc_dg_sys_info=no
18462 rm -rf conftest.dSYM
18463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18464 conftest$ac_exeext conftest.$ac_ext
18465 LIBS=$ac_check_lib_save_LIBS
18467 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18468 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18469 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18470 cat >>confdefs.h <<_ACEOF
18471 #define HAVE_LIBDGC 1
18472 _ACEOF
18474 LIBS="-ldgc $LIBS"
18482 if test "${ac_cv_header_locale_h+set}" = set; then
18483 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18484 $as_echo_n "checking for locale.h... " >&6; }
18485 if test "${ac_cv_header_locale_h+set}" = set; then
18486 $as_echo_n "(cached) " >&6
18488 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18489 $as_echo "$ac_cv_header_locale_h" >&6; }
18490 else
18491 # Is the header compilable?
18492 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18493 $as_echo_n "checking locale.h usability... " >&6; }
18494 cat >conftest.$ac_ext <<_ACEOF
18495 /* confdefs.h. */
18496 _ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18500 $ac_includes_default
18501 #include <locale.h>
18502 _ACEOF
18503 rm -f conftest.$ac_objext
18504 if { (ac_try="$ac_compile"
18505 case "(($ac_try" in
18506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507 *) ac_try_echo=$ac_try;;
18508 esac
18509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18510 $as_echo "$ac_try_echo") >&5
18511 (eval "$ac_compile") 2>conftest.er1
18512 ac_status=$?
18513 grep -v '^ *+' conftest.er1 >conftest.err
18514 rm -f conftest.er1
18515 cat conftest.err >&5
18516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); } && {
18518 test -z "$ac_c_werror_flag" ||
18519 test ! -s conftest.err
18520 } && test -s conftest.$ac_objext; then
18521 ac_header_compiler=yes
18522 else
18523 $as_echo "$as_me: failed program was:" >&5
18524 sed 's/^/| /' conftest.$ac_ext >&5
18526 ac_header_compiler=no
18529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18530 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18531 $as_echo "$ac_header_compiler" >&6; }
18533 # Is the header present?
18534 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18535 $as_echo_n "checking locale.h presence... " >&6; }
18536 cat >conftest.$ac_ext <<_ACEOF
18537 /* confdefs.h. */
18538 _ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h. */
18542 #include <locale.h>
18543 _ACEOF
18544 if { (ac_try="$ac_cpp conftest.$ac_ext"
18545 case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18548 esac
18549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18550 $as_echo "$ac_try_echo") >&5
18551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18552 ac_status=$?
18553 grep -v '^ *+' conftest.er1 >conftest.err
18554 rm -f conftest.er1
18555 cat conftest.err >&5
18556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } >/dev/null && {
18558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18559 test ! -s conftest.err
18560 }; then
18561 ac_header_preproc=yes
18562 else
18563 $as_echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18566 ac_header_preproc=no
18569 rm -f conftest.err conftest.$ac_ext
18570 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18571 $as_echo "$ac_header_preproc" >&6; }
18573 # So? What about this header?
18574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18575 yes:no: )
18576 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18577 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18578 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18579 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18580 ac_header_preproc=yes
18582 no:yes:* )
18583 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18584 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18585 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18586 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18587 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18588 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18589 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18590 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18591 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18592 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18593 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18594 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18597 esac
18598 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18599 $as_echo_n "checking for locale.h... " >&6; }
18600 if test "${ac_cv_header_locale_h+set}" = set; then
18601 $as_echo_n "(cached) " >&6
18602 else
18603 ac_cv_header_locale_h=$ac_header_preproc
18605 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18606 $as_echo "$ac_cv_header_locale_h" >&6; }
18612 for ac_func in setlocale
18614 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18615 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18616 $as_echo_n "checking for $ac_func... " >&6; }
18617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18618 $as_echo_n "(cached) " >&6
18619 else
18620 cat >conftest.$ac_ext <<_ACEOF
18621 /* confdefs.h. */
18622 _ACEOF
18623 cat confdefs.h >>conftest.$ac_ext
18624 cat >>conftest.$ac_ext <<_ACEOF
18625 /* end confdefs.h. */
18626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18628 #define $ac_func innocuous_$ac_func
18630 /* System header to define __stub macros and hopefully few prototypes,
18631 which can conflict with char $ac_func (); below.
18632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18633 <limits.h> exists even on freestanding compilers. */
18635 #ifdef __STDC__
18636 # include <limits.h>
18637 #else
18638 # include <assert.h>
18639 #endif
18641 #undef $ac_func
18643 /* Override any GCC internal prototype to avoid an error.
18644 Use char because int might match the return type of a GCC
18645 builtin and then its argument prototype would still apply. */
18646 #ifdef __cplusplus
18647 extern "C"
18648 #endif
18649 char $ac_func ();
18650 /* The GNU C library defines this for functions which it implements
18651 to always fail with ENOSYS. Some functions are actually named
18652 something starting with __ and the normal name is an alias. */
18653 #if defined __stub_$ac_func || defined __stub___$ac_func
18654 choke me
18655 #endif
18658 main ()
18660 return $ac_func ();
18662 return 0;
18664 _ACEOF
18665 rm -f conftest.$ac_objext conftest$ac_exeext
18666 if { (ac_try="$ac_link"
18667 case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18670 esac
18671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18672 $as_echo "$ac_try_echo") >&5
18673 (eval "$ac_link") 2>conftest.er1
18674 ac_status=$?
18675 grep -v '^ *+' conftest.er1 >conftest.err
18676 rm -f conftest.er1
18677 cat conftest.err >&5
18678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } && {
18680 test -z "$ac_c_werror_flag" ||
18681 test ! -s conftest.err
18682 } && test -s conftest$ac_exeext && {
18683 test "$cross_compiling" = yes ||
18684 $as_test_x conftest$ac_exeext
18685 }; then
18686 eval "$as_ac_var=yes"
18687 else
18688 $as_echo "$as_me: failed program was:" >&5
18689 sed 's/^/| /' conftest.$ac_ext >&5
18691 eval "$as_ac_var=no"
18694 rm -rf conftest.dSYM
18695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18696 conftest$ac_exeext conftest.$ac_ext
18698 ac_res=`eval 'as_val=${'$as_ac_var'}
18699 $as_echo "$as_val"'`
18700 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18701 $as_echo "$ac_res" >&6; }
18702 if test `eval 'as_val=${'$as_ac_var'}
18703 $as_echo "$as_val"'` = yes; then
18704 cat >>confdefs.h <<_ACEOF
18705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18706 _ACEOF
18709 done
18712 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18713 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18714 # Irix 4.0.5F has the header but not the library.
18715 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18716 ac_have_func=yes
18718 cat >>confdefs.h <<\_ACEOF
18719 #define SVR4 1
18720 _ACEOF
18724 if test $ac_have_func = no; then
18725 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18726 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18727 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18728 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18729 $as_echo_n "(cached) " >&6
18731 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18732 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18733 else
18734 # Is the header compilable?
18735 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18736 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
18737 cat >conftest.$ac_ext <<_ACEOF
18738 /* confdefs.h. */
18739 _ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18743 $ac_includes_default
18744 #include <inq_stats/cpustats.h>
18745 _ACEOF
18746 rm -f conftest.$ac_objext
18747 if { (ac_try="$ac_compile"
18748 case "(($ac_try" in
18749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18750 *) ac_try_echo=$ac_try;;
18751 esac
18752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18753 $as_echo "$ac_try_echo") >&5
18754 (eval "$ac_compile") 2>conftest.er1
18755 ac_status=$?
18756 grep -v '^ *+' conftest.er1 >conftest.err
18757 rm -f conftest.er1
18758 cat conftest.err >&5
18759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } && {
18761 test -z "$ac_c_werror_flag" ||
18762 test ! -s conftest.err
18763 } && test -s conftest.$ac_objext; then
18764 ac_header_compiler=yes
18765 else
18766 $as_echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18769 ac_header_compiler=no
18772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18773 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18774 $as_echo "$ac_header_compiler" >&6; }
18776 # Is the header present?
18777 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18778 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
18779 cat >conftest.$ac_ext <<_ACEOF
18780 /* confdefs.h. */
18781 _ACEOF
18782 cat confdefs.h >>conftest.$ac_ext
18783 cat >>conftest.$ac_ext <<_ACEOF
18784 /* end confdefs.h. */
18785 #include <inq_stats/cpustats.h>
18786 _ACEOF
18787 if { (ac_try="$ac_cpp conftest.$ac_ext"
18788 case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18791 esac
18792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18793 $as_echo "$ac_try_echo") >&5
18794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18795 ac_status=$?
18796 grep -v '^ *+' conftest.er1 >conftest.err
18797 rm -f conftest.er1
18798 cat conftest.err >&5
18799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } >/dev/null && {
18801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18802 test ! -s conftest.err
18803 }; then
18804 ac_header_preproc=yes
18805 else
18806 $as_echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18809 ac_header_preproc=no
18812 rm -f conftest.err conftest.$ac_ext
18813 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18814 $as_echo "$ac_header_preproc" >&6; }
18816 # So? What about this header?
18817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18818 yes:no: )
18819 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18820 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18821 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18822 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18823 ac_header_preproc=yes
18825 no:yes:* )
18826 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18827 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18828 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18829 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18830 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18831 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18832 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18833 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18834 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18835 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18836 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18837 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18840 esac
18841 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18842 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18843 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18844 $as_echo_n "(cached) " >&6
18845 else
18846 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18848 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18849 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18852 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18853 ac_have_func=yes
18855 cat >>confdefs.h <<\_ACEOF
18856 #define UMAX 1
18857 _ACEOF
18860 cat >>confdefs.h <<\_ACEOF
18861 #define UMAX4_3 1
18862 _ACEOF
18869 if test $ac_have_func = no; then
18870 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18871 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18872 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18873 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18874 $as_echo_n "(cached) " >&6
18876 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18877 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18878 else
18879 # Is the header compilable?
18880 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18881 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
18882 cat >conftest.$ac_ext <<_ACEOF
18883 /* confdefs.h. */
18884 _ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h. */
18888 $ac_includes_default
18889 #include <sys/cpustats.h>
18890 _ACEOF
18891 rm -f conftest.$ac_objext
18892 if { (ac_try="$ac_compile"
18893 case "(($ac_try" in
18894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895 *) ac_try_echo=$ac_try;;
18896 esac
18897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18898 $as_echo "$ac_try_echo") >&5
18899 (eval "$ac_compile") 2>conftest.er1
18900 ac_status=$?
18901 grep -v '^ *+' conftest.er1 >conftest.err
18902 rm -f conftest.er1
18903 cat conftest.err >&5
18904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } && {
18906 test -z "$ac_c_werror_flag" ||
18907 test ! -s conftest.err
18908 } && test -s conftest.$ac_objext; then
18909 ac_header_compiler=yes
18910 else
18911 $as_echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18914 ac_header_compiler=no
18917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18918 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18919 $as_echo "$ac_header_compiler" >&6; }
18921 # Is the header present?
18922 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18923 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
18924 cat >conftest.$ac_ext <<_ACEOF
18925 /* confdefs.h. */
18926 _ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18930 #include <sys/cpustats.h>
18931 _ACEOF
18932 if { (ac_try="$ac_cpp conftest.$ac_ext"
18933 case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18936 esac
18937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18938 $as_echo "$ac_try_echo") >&5
18939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18940 ac_status=$?
18941 grep -v '^ *+' conftest.er1 >conftest.err
18942 rm -f conftest.er1
18943 cat conftest.err >&5
18944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); } >/dev/null && {
18946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18947 test ! -s conftest.err
18948 }; then
18949 ac_header_preproc=yes
18950 else
18951 $as_echo "$as_me: failed program was:" >&5
18952 sed 's/^/| /' conftest.$ac_ext >&5
18954 ac_header_preproc=no
18957 rm -f conftest.err conftest.$ac_ext
18958 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18959 $as_echo "$ac_header_preproc" >&6; }
18961 # So? What about this header?
18962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18963 yes:no: )
18964 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18965 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18966 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18967 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18968 ac_header_preproc=yes
18970 no:yes:* )
18971 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18972 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18973 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18974 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18975 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18976 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18977 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18978 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18979 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18980 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18981 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18982 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18985 esac
18986 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18987 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18988 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18989 $as_echo_n "(cached) " >&6
18990 else
18991 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18993 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18994 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18997 if test $ac_cv_header_sys_cpustats_h = yes; then
18998 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18999 #define UMAX 1
19000 _ACEOF
19007 if test $ac_have_func = no; then
19009 for ac_header in mach/mach.h
19011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19013 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19014 $as_echo_n "checking for $ac_header... " >&6; }
19015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19016 $as_echo_n "(cached) " >&6
19018 ac_res=`eval 'as_val=${'$as_ac_Header'}
19019 $as_echo "$as_val"'`
19020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19021 $as_echo "$ac_res" >&6; }
19022 else
19023 # Is the header compilable?
19024 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19025 $as_echo_n "checking $ac_header usability... " >&6; }
19026 cat >conftest.$ac_ext <<_ACEOF
19027 /* confdefs.h. */
19028 _ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h. */
19032 $ac_includes_default
19033 #include <$ac_header>
19034 _ACEOF
19035 rm -f conftest.$ac_objext
19036 if { (ac_try="$ac_compile"
19037 case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19040 esac
19041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19042 $as_echo "$ac_try_echo") >&5
19043 (eval "$ac_compile") 2>conftest.er1
19044 ac_status=$?
19045 grep -v '^ *+' conftest.er1 >conftest.err
19046 rm -f conftest.er1
19047 cat conftest.err >&5
19048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } && {
19050 test -z "$ac_c_werror_flag" ||
19051 test ! -s conftest.err
19052 } && test -s conftest.$ac_objext; then
19053 ac_header_compiler=yes
19054 else
19055 $as_echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 ac_header_compiler=no
19061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19062 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19063 $as_echo "$ac_header_compiler" >&6; }
19065 # Is the header present?
19066 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19067 $as_echo_n "checking $ac_header presence... " >&6; }
19068 cat >conftest.$ac_ext <<_ACEOF
19069 /* confdefs.h. */
19070 _ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19074 #include <$ac_header>
19075 _ACEOF
19076 if { (ac_try="$ac_cpp conftest.$ac_ext"
19077 case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19080 esac
19081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19082 $as_echo "$ac_try_echo") >&5
19083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19084 ac_status=$?
19085 grep -v '^ *+' conftest.er1 >conftest.err
19086 rm -f conftest.er1
19087 cat conftest.err >&5
19088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } >/dev/null && {
19090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19091 test ! -s conftest.err
19092 }; then
19093 ac_header_preproc=yes
19094 else
19095 $as_echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19098 ac_header_preproc=no
19101 rm -f conftest.err conftest.$ac_ext
19102 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19103 $as_echo "$ac_header_preproc" >&6; }
19105 # So? What about this header?
19106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19107 yes:no: )
19108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19109 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19112 ac_header_preproc=yes
19114 no:yes:* )
19115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19116 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19118 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19120 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19122 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19126 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19129 esac
19130 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19131 $as_echo_n "checking for $ac_header... " >&6; }
19132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19133 $as_echo_n "(cached) " >&6
19134 else
19135 eval "$as_ac_Header=\$ac_header_preproc"
19137 ac_res=`eval 'as_val=${'$as_ac_Header'}
19138 $as_echo "$as_val"'`
19139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19140 $as_echo "$ac_res" >&6; }
19143 if test `eval 'as_val=${'$as_ac_Header'}
19144 $as_echo "$as_val"'` = yes; then
19145 cat >>confdefs.h <<_ACEOF
19146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19147 _ACEOF
19151 done
19156 for ac_header in nlist.h
19158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19160 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19161 $as_echo_n "checking for $ac_header... " >&6; }
19162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19163 $as_echo_n "(cached) " >&6
19165 ac_res=`eval 'as_val=${'$as_ac_Header'}
19166 $as_echo "$as_val"'`
19167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19168 $as_echo "$ac_res" >&6; }
19169 else
19170 # Is the header compilable?
19171 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19172 $as_echo_n "checking $ac_header usability... " >&6; }
19173 cat >conftest.$ac_ext <<_ACEOF
19174 /* confdefs.h. */
19175 _ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19179 $ac_includes_default
19180 #include <$ac_header>
19181 _ACEOF
19182 rm -f conftest.$ac_objext
19183 if { (ac_try="$ac_compile"
19184 case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19187 esac
19188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19189 $as_echo "$ac_try_echo") >&5
19190 (eval "$ac_compile") 2>conftest.er1
19191 ac_status=$?
19192 grep -v '^ *+' conftest.er1 >conftest.err
19193 rm -f conftest.er1
19194 cat conftest.err >&5
19195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } && {
19197 test -z "$ac_c_werror_flag" ||
19198 test ! -s conftest.err
19199 } && test -s conftest.$ac_objext; then
19200 ac_header_compiler=yes
19201 else
19202 $as_echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19205 ac_header_compiler=no
19208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19209 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19210 $as_echo "$ac_header_compiler" >&6; }
19212 # Is the header present?
19213 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19214 $as_echo_n "checking $ac_header presence... " >&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 #include <$ac_header>
19222 _ACEOF
19223 if { (ac_try="$ac_cpp conftest.$ac_ext"
19224 case "(($ac_try" in
19225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226 *) ac_try_echo=$ac_try;;
19227 esac
19228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19229 $as_echo "$ac_try_echo") >&5
19230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19231 ac_status=$?
19232 grep -v '^ *+' conftest.er1 >conftest.err
19233 rm -f conftest.er1
19234 cat conftest.err >&5
19235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } >/dev/null && {
19237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19238 test ! -s conftest.err
19239 }; then
19240 ac_header_preproc=yes
19241 else
19242 $as_echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19245 ac_header_preproc=no
19248 rm -f conftest.err conftest.$ac_ext
19249 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19250 $as_echo "$ac_header_preproc" >&6; }
19252 # So? What about this header?
19253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19254 yes:no: )
19255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19256 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19258 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19259 ac_header_preproc=yes
19261 no:yes:* )
19262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19263 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19265 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19267 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19269 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19273 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19276 esac
19277 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19278 $as_echo_n "checking for $ac_header... " >&6; }
19279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19280 $as_echo_n "(cached) " >&6
19281 else
19282 eval "$as_ac_Header=\$ac_header_preproc"
19284 ac_res=`eval 'as_val=${'$as_ac_Header'}
19285 $as_echo "$as_val"'`
19286 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19287 $as_echo "$ac_res" >&6; }
19290 if test `eval 'as_val=${'$as_ac_Header'}
19291 $as_echo "$as_val"'` = yes; then
19292 cat >>confdefs.h <<_ACEOF
19293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19294 _ACEOF
19295 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19296 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19297 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19298 $as_echo_n "(cached) " >&6
19299 else
19300 cat >conftest.$ac_ext <<_ACEOF
19301 /* confdefs.h. */
19302 _ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19306 #include <nlist.h>
19309 main ()
19311 static struct nlist ac_aggr;
19312 if (ac_aggr.n_un.n_name)
19313 return 0;
19315 return 0;
19317 _ACEOF
19318 rm -f conftest.$ac_objext
19319 if { (ac_try="$ac_compile"
19320 case "(($ac_try" in
19321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322 *) ac_try_echo=$ac_try;;
19323 esac
19324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19325 $as_echo "$ac_try_echo") >&5
19326 (eval "$ac_compile") 2>conftest.er1
19327 ac_status=$?
19328 grep -v '^ *+' conftest.er1 >conftest.err
19329 rm -f conftest.er1
19330 cat conftest.err >&5
19331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } && {
19333 test -z "$ac_c_werror_flag" ||
19334 test ! -s conftest.err
19335 } && test -s conftest.$ac_objext; then
19336 ac_cv_member_struct_nlist_n_un_n_name=yes
19337 else
19338 $as_echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
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 #include <nlist.h>
19350 main ()
19352 static struct nlist ac_aggr;
19353 if (sizeof ac_aggr.n_un.n_name)
19354 return 0;
19356 return 0;
19358 _ACEOF
19359 rm -f conftest.$ac_objext
19360 if { (ac_try="$ac_compile"
19361 case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19364 esac
19365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19366 $as_echo "$ac_try_echo") >&5
19367 (eval "$ac_compile") 2>conftest.er1
19368 ac_status=$?
19369 grep -v '^ *+' conftest.er1 >conftest.err
19370 rm -f conftest.er1
19371 cat conftest.err >&5
19372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } && {
19374 test -z "$ac_c_werror_flag" ||
19375 test ! -s conftest.err
19376 } && test -s conftest.$ac_objext; then
19377 ac_cv_member_struct_nlist_n_un_n_name=yes
19378 else
19379 $as_echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19382 ac_cv_member_struct_nlist_n_un_n_name=no
19385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19390 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19391 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19392 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19394 cat >>confdefs.h <<_ACEOF
19395 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19396 _ACEOF
19399 cat >>confdefs.h <<\_ACEOF
19400 #define NLIST_NAME_UNION 1
19401 _ACEOF
19408 done
19411 done
19414 # Some definitions of getloadavg require that the program be installed setgid.
19415 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19416 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19417 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19418 $as_echo_n "(cached) " >&6
19419 else
19420 cat >conftest.$ac_ext <<_ACEOF
19421 /* confdefs.h. */
19422 _ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19426 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19427 #ifdef LDAV_PRIVILEGED
19428 Yowza Am I SETGID yet
19429 #endif
19430 _ACEOF
19431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19432 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19433 ac_cv_func_getloadavg_setgid=yes
19434 else
19435 ac_cv_func_getloadavg_setgid=no
19437 rm -f conftest*
19440 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19441 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19442 if test $ac_cv_func_getloadavg_setgid = yes; then
19443 NEED_SETGID=true
19445 cat >>confdefs.h <<\_ACEOF
19446 #define GETLOADAVG_PRIVILEGED 1
19447 _ACEOF
19449 else
19450 NEED_SETGID=false
19453 if test $ac_cv_func_getloadavg_setgid = yes; then
19454 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19455 $as_echo_n "checking group of /dev/kmem... " >&6; }
19456 if test "${ac_cv_group_kmem+set}" = set; then
19457 $as_echo_n "(cached) " >&6
19458 else
19459 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19460 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19461 # If we got an error (system does not support symlinks), try without -L.
19462 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19463 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19464 | sed -ne 's/[ ][ ]*/ /g;
19465 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19466 / /s/.* //;p;'`
19469 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19470 $as_echo "$ac_cv_group_kmem" >&6; }
19471 KMEM_GROUP=$ac_cv_group_kmem
19473 if test "x$ac_save_LIBS" = x; then
19474 GETLOADAVG_LIBS=$LIBS
19475 else
19476 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
19478 LIBS=$ac_save_LIBS
19482 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19483 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19484 if test "${ac_cv_sys_largefile_source+set}" = set; then
19485 $as_echo_n "(cached) " >&6
19486 else
19487 while :; do
19488 cat >conftest.$ac_ext <<_ACEOF
19489 /* confdefs.h. */
19490 _ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19494 #include <sys/types.h> /* for off_t */
19495 #include <stdio.h>
19497 main ()
19499 int (*fp) (FILE *, off_t, int) = fseeko;
19500 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19502 return 0;
19504 _ACEOF
19505 rm -f conftest.$ac_objext conftest$ac_exeext
19506 if { (ac_try="$ac_link"
19507 case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19510 esac
19511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19512 $as_echo "$ac_try_echo") >&5
19513 (eval "$ac_link") 2>conftest.er1
19514 ac_status=$?
19515 grep -v '^ *+' conftest.er1 >conftest.err
19516 rm -f conftest.er1
19517 cat conftest.err >&5
19518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); } && {
19520 test -z "$ac_c_werror_flag" ||
19521 test ! -s conftest.err
19522 } && test -s conftest$ac_exeext && {
19523 test "$cross_compiling" = yes ||
19524 $as_test_x conftest$ac_exeext
19525 }; then
19526 ac_cv_sys_largefile_source=no; break
19527 else
19528 $as_echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19534 rm -rf conftest.dSYM
19535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19536 conftest$ac_exeext conftest.$ac_ext
19537 cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h. */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 #define _LARGEFILE_SOURCE 1
19544 #include <sys/types.h> /* for off_t */
19545 #include <stdio.h>
19547 main ()
19549 int (*fp) (FILE *, off_t, int) = fseeko;
19550 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19552 return 0;
19554 _ACEOF
19555 rm -f conftest.$ac_objext conftest$ac_exeext
19556 if { (ac_try="$ac_link"
19557 case "(($ac_try" in
19558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559 *) ac_try_echo=$ac_try;;
19560 esac
19561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19562 $as_echo "$ac_try_echo") >&5
19563 (eval "$ac_link") 2>conftest.er1
19564 ac_status=$?
19565 grep -v '^ *+' conftest.er1 >conftest.err
19566 rm -f conftest.er1
19567 cat conftest.err >&5
19568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } && {
19570 test -z "$ac_c_werror_flag" ||
19571 test ! -s conftest.err
19572 } && test -s conftest$ac_exeext && {
19573 test "$cross_compiling" = yes ||
19574 $as_test_x conftest$ac_exeext
19575 }; then
19576 ac_cv_sys_largefile_source=1; break
19577 else
19578 $as_echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19584 rm -rf conftest.dSYM
19585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19586 conftest$ac_exeext conftest.$ac_ext
19587 ac_cv_sys_largefile_source=unknown
19588 break
19589 done
19591 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19592 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19593 case $ac_cv_sys_largefile_source in #(
19594 no | unknown) ;;
19596 cat >>confdefs.h <<_ACEOF
19597 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19598 _ACEOF
19600 esac
19601 rm -rf conftest*
19603 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19604 # in glibc 2.1.3, but that breaks too many other things.
19605 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19606 if test $ac_cv_sys_largefile_source != unknown; then
19608 cat >>confdefs.h <<\_ACEOF
19609 #define HAVE_FSEEKO 1
19610 _ACEOF
19615 # Configure getopt.
19616 # getopt.m4 serial 10
19618 # The getopt module assume you want GNU getopt, with getopt_long etc,
19619 # rather than vanilla POSIX getopt. This means your your code should
19620 # always include <getopt.h> for the getopt prototypes.
19632 # Prerequisites of lib/getopt*.
19637 GETOPT_H=
19639 for ac_header in getopt.h
19641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19643 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19644 $as_echo_n "checking for $ac_header... " >&6; }
19645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19646 $as_echo_n "(cached) " >&6
19648 ac_res=`eval 'as_val=${'$as_ac_Header'}
19649 $as_echo "$as_val"'`
19650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19651 $as_echo "$ac_res" >&6; }
19652 else
19653 # Is the header compilable?
19654 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19655 $as_echo_n "checking $ac_header usability... " >&6; }
19656 cat >conftest.$ac_ext <<_ACEOF
19657 /* confdefs.h. */
19658 _ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19662 $ac_includes_default
19663 #include <$ac_header>
19664 _ACEOF
19665 rm -f conftest.$ac_objext
19666 if { (ac_try="$ac_compile"
19667 case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19670 esac
19671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19672 $as_echo "$ac_try_echo") >&5
19673 (eval "$ac_compile") 2>conftest.er1
19674 ac_status=$?
19675 grep -v '^ *+' conftest.er1 >conftest.err
19676 rm -f conftest.er1
19677 cat conftest.err >&5
19678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } && {
19680 test -z "$ac_c_werror_flag" ||
19681 test ! -s conftest.err
19682 } && test -s conftest.$ac_objext; then
19683 ac_header_compiler=yes
19684 else
19685 $as_echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19688 ac_header_compiler=no
19691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19692 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19693 $as_echo "$ac_header_compiler" >&6; }
19695 # Is the header present?
19696 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19697 $as_echo_n "checking $ac_header presence... " >&6; }
19698 cat >conftest.$ac_ext <<_ACEOF
19699 /* confdefs.h. */
19700 _ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h. */
19704 #include <$ac_header>
19705 _ACEOF
19706 if { (ac_try="$ac_cpp conftest.$ac_ext"
19707 case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19710 esac
19711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19712 $as_echo "$ac_try_echo") >&5
19713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19714 ac_status=$?
19715 grep -v '^ *+' conftest.er1 >conftest.err
19716 rm -f conftest.er1
19717 cat conftest.err >&5
19718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } >/dev/null && {
19720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19721 test ! -s conftest.err
19722 }; then
19723 ac_header_preproc=yes
19724 else
19725 $as_echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19728 ac_header_preproc=no
19731 rm -f conftest.err conftest.$ac_ext
19732 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19733 $as_echo "$ac_header_preproc" >&6; }
19735 # So? What about this header?
19736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19737 yes:no: )
19738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19739 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19741 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19742 ac_header_preproc=yes
19744 no:yes:* )
19745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19746 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19748 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19750 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19752 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19754 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19756 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19759 esac
19760 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19761 $as_echo_n "checking for $ac_header... " >&6; }
19762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19763 $as_echo_n "(cached) " >&6
19764 else
19765 eval "$as_ac_Header=\$ac_header_preproc"
19767 ac_res=`eval 'as_val=${'$as_ac_Header'}
19768 $as_echo "$as_val"'`
19769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19770 $as_echo "$ac_res" >&6; }
19773 if test `eval 'as_val=${'$as_ac_Header'}
19774 $as_echo "$as_val"'` = yes; then
19775 cat >>confdefs.h <<_ACEOF
19776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19777 _ACEOF
19779 else
19780 GETOPT_H=getopt.h
19783 done
19785 if test -z "$GETOPT_H"; then
19787 for ac_func in getopt_long_only
19789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19790 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19791 $as_echo_n "checking for $ac_func... " >&6; }
19792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19793 $as_echo_n "(cached) " >&6
19794 else
19795 cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h. */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19803 #define $ac_func innocuous_$ac_func
19805 /* System header to define __stub macros and hopefully few prototypes,
19806 which can conflict with char $ac_func (); below.
19807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19808 <limits.h> exists even on freestanding compilers. */
19810 #ifdef __STDC__
19811 # include <limits.h>
19812 #else
19813 # include <assert.h>
19814 #endif
19816 #undef $ac_func
19818 /* Override any GCC internal prototype to avoid an error.
19819 Use char because int might match the return type of a GCC
19820 builtin and then its argument prototype would still apply. */
19821 #ifdef __cplusplus
19822 extern "C"
19823 #endif
19824 char $ac_func ();
19825 /* The GNU C library defines this for functions which it implements
19826 to always fail with ENOSYS. Some functions are actually named
19827 something starting with __ and the normal name is an alias. */
19828 #if defined __stub_$ac_func || defined __stub___$ac_func
19829 choke me
19830 #endif
19833 main ()
19835 return $ac_func ();
19837 return 0;
19839 _ACEOF
19840 rm -f conftest.$ac_objext conftest$ac_exeext
19841 if { (ac_try="$ac_link"
19842 case "(($ac_try" in
19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844 *) ac_try_echo=$ac_try;;
19845 esac
19846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19847 $as_echo "$ac_try_echo") >&5
19848 (eval "$ac_link") 2>conftest.er1
19849 ac_status=$?
19850 grep -v '^ *+' conftest.er1 >conftest.err
19851 rm -f conftest.er1
19852 cat conftest.err >&5
19853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } && {
19855 test -z "$ac_c_werror_flag" ||
19856 test ! -s conftest.err
19857 } && test -s conftest$ac_exeext && {
19858 test "$cross_compiling" = yes ||
19859 $as_test_x conftest$ac_exeext
19860 }; then
19861 eval "$as_ac_var=yes"
19862 else
19863 $as_echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19866 eval "$as_ac_var=no"
19869 rm -rf conftest.dSYM
19870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19871 conftest$ac_exeext conftest.$ac_ext
19873 ac_res=`eval 'as_val=${'$as_ac_var'}
19874 $as_echo "$as_val"'`
19875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19876 $as_echo "$ac_res" >&6; }
19877 if test `eval 'as_val=${'$as_ac_var'}
19878 $as_echo "$as_val"'` = yes; then
19879 cat >>confdefs.h <<_ACEOF
19880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19881 _ACEOF
19883 else
19884 GETOPT_H=getopt.h
19886 done
19890 if test -z "$GETOPT_H"; then
19891 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19892 $as_echo_n "checking whether optreset is declared... " >&6; }
19893 if test "${ac_cv_have_decl_optreset+set}" = set; then
19894 $as_echo_n "(cached) " >&6
19895 else
19896 cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h. */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902 #include <getopt.h>
19905 main ()
19907 #ifndef optreset
19908 (void) optreset;
19909 #endif
19912 return 0;
19914 _ACEOF
19915 rm -f conftest.$ac_objext
19916 if { (ac_try="$ac_compile"
19917 case "(($ac_try" in
19918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19919 *) ac_try_echo=$ac_try;;
19920 esac
19921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19922 $as_echo "$ac_try_echo") >&5
19923 (eval "$ac_compile") 2>conftest.er1
19924 ac_status=$?
19925 grep -v '^ *+' conftest.er1 >conftest.err
19926 rm -f conftest.er1
19927 cat conftest.err >&5
19928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } && {
19930 test -z "$ac_c_werror_flag" ||
19931 test ! -s conftest.err
19932 } && test -s conftest.$ac_objext; then
19933 ac_cv_have_decl_optreset=yes
19934 else
19935 $as_echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19938 ac_cv_have_decl_optreset=no
19941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19943 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19944 $as_echo "$ac_cv_have_decl_optreset" >&6; }
19945 if test $ac_cv_have_decl_optreset = yes; then
19946 GETOPT_H=getopt.h
19951 if test -z "$GETOPT_H"; then
19952 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19953 $as_echo_n "checking for working GNU getopt function... " >&6; }
19954 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19955 $as_echo_n "(cached) " >&6
19956 else
19957 if test "$cross_compiling" = yes; then
19958 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19959 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
19960 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19961 $as_echo_n "(cached) " >&6
19962 else
19963 cat >conftest.$ac_ext <<_ACEOF
19964 /* confdefs.h. */
19965 _ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h. */
19969 #include <getopt.h>
19972 main ()
19974 #ifndef getopt_clip
19975 (void) getopt_clip;
19976 #endif
19979 return 0;
19981 _ACEOF
19982 rm -f conftest.$ac_objext
19983 if { (ac_try="$ac_compile"
19984 case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19987 esac
19988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19989 $as_echo "$ac_try_echo") >&5
19990 (eval "$ac_compile") 2>conftest.er1
19991 ac_status=$?
19992 grep -v '^ *+' conftest.er1 >conftest.err
19993 rm -f conftest.er1
19994 cat conftest.err >&5
19995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } && {
19997 test -z "$ac_c_werror_flag" ||
19998 test ! -s conftest.err
19999 } && test -s conftest.$ac_objext; then
20000 ac_cv_have_decl_getopt_clip=yes
20001 else
20002 $as_echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 ac_cv_have_decl_getopt_clip=no
20008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20011 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20012 if test $ac_cv_have_decl_getopt_clip = yes; then
20013 gl_cv_func_gnu_getopt=no
20014 else
20015 gl_cv_func_gnu_getopt=yes
20018 else
20019 cat >conftest.$ac_ext <<_ACEOF
20020 /* confdefs.h. */
20021 _ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h. */
20025 #include <getopt.h>
20027 main ()
20030 char *myargv[3];
20031 myargv[0] = "conftest";
20032 myargv[1] = "-+";
20033 myargv[2] = 0;
20034 return getopt (2, myargv, "+a") != '?';
20037 return 0;
20039 _ACEOF
20040 rm -f conftest$ac_exeext
20041 if { (ac_try="$ac_link"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045 esac
20046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20047 $as_echo "$ac_try_echo") >&5
20048 (eval "$ac_link") 2>&5
20049 ac_status=$?
20050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20052 { (case "(($ac_try" in
20053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054 *) ac_try_echo=$ac_try;;
20055 esac
20056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20057 $as_echo "$ac_try_echo") >&5
20058 (eval "$ac_try") 2>&5
20059 ac_status=$?
20060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; }; then
20062 gl_cv_func_gnu_getopt=yes
20063 else
20064 $as_echo "$as_me: program exited with status $ac_status" >&5
20065 $as_echo "$as_me: failed program was:" >&5
20066 sed 's/^/| /' conftest.$ac_ext >&5
20068 ( exit $ac_status )
20069 gl_cv_func_gnu_getopt=no
20071 rm -rf conftest.dSYM
20072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20077 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20078 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20079 if test "$gl_cv_func_gnu_getopt" = "no"; then
20080 GETOPT_H=getopt.h
20086 if test -n "$GETOPT_H"; then
20089 GETOPT_H=getopt.h
20091 cat >>confdefs.h <<\_ACEOF
20092 #define __GETOPT_PREFIX rpl_
20093 _ACEOF
20098 GETOPTOBJS='getopt.o getopt1.o'
20105 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20106 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20107 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20108 $as_echo_n "(cached) " >&6
20109 else
20110 # Use it with a single arg.
20111 cat >conftest.$ac_ext <<_ACEOF
20112 /* confdefs.h. */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20117 $ac_includes_default
20119 main ()
20121 getpgrp (0);
20123 return 0;
20125 _ACEOF
20126 rm -f conftest.$ac_objext
20127 if { (ac_try="$ac_compile"
20128 case "(($ac_try" in
20129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20130 *) ac_try_echo=$ac_try;;
20131 esac
20132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20133 $as_echo "$ac_try_echo") >&5
20134 (eval "$ac_compile") 2>conftest.er1
20135 ac_status=$?
20136 grep -v '^ *+' conftest.er1 >conftest.err
20137 rm -f conftest.er1
20138 cat conftest.err >&5
20139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } && {
20141 test -z "$ac_c_werror_flag" ||
20142 test ! -s conftest.err
20143 } && test -s conftest.$ac_objext; then
20144 ac_cv_func_getpgrp_void=no
20145 else
20146 $as_echo "$as_me: failed program was:" >&5
20147 sed 's/^/| /' conftest.$ac_ext >&5
20149 ac_cv_func_getpgrp_void=yes
20152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20155 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20156 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20157 if test $ac_cv_func_getpgrp_void = yes; then
20159 cat >>confdefs.h <<\_ACEOF
20160 #define GETPGRP_VOID 1
20161 _ACEOF
20167 for ac_func in strftime
20169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20170 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20171 $as_echo_n "checking for $ac_func... " >&6; }
20172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20173 $as_echo_n "(cached) " >&6
20174 else
20175 cat >conftest.$ac_ext <<_ACEOF
20176 /* confdefs.h. */
20177 _ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20183 #define $ac_func innocuous_$ac_func
20185 /* System header to define __stub macros and hopefully few prototypes,
20186 which can conflict with char $ac_func (); below.
20187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20188 <limits.h> exists even on freestanding compilers. */
20190 #ifdef __STDC__
20191 # include <limits.h>
20192 #else
20193 # include <assert.h>
20194 #endif
20196 #undef $ac_func
20198 /* Override any GCC internal prototype to avoid an error.
20199 Use char because int might match the return type of a GCC
20200 builtin and then its argument prototype would still apply. */
20201 #ifdef __cplusplus
20202 extern "C"
20203 #endif
20204 char $ac_func ();
20205 /* The GNU C library defines this for functions which it implements
20206 to always fail with ENOSYS. Some functions are actually named
20207 something starting with __ and the normal name is an alias. */
20208 #if defined __stub_$ac_func || defined __stub___$ac_func
20209 choke me
20210 #endif
20213 main ()
20215 return $ac_func ();
20217 return 0;
20219 _ACEOF
20220 rm -f conftest.$ac_objext conftest$ac_exeext
20221 if { (ac_try="$ac_link"
20222 case "(($ac_try" in
20223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224 *) ac_try_echo=$ac_try;;
20225 esac
20226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20227 $as_echo "$ac_try_echo") >&5
20228 (eval "$ac_link") 2>conftest.er1
20229 ac_status=$?
20230 grep -v '^ *+' conftest.er1 >conftest.err
20231 rm -f conftest.er1
20232 cat conftest.err >&5
20233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } && {
20235 test -z "$ac_c_werror_flag" ||
20236 test ! -s conftest.err
20237 } && test -s conftest$ac_exeext && {
20238 test "$cross_compiling" = yes ||
20239 $as_test_x conftest$ac_exeext
20240 }; then
20241 eval "$as_ac_var=yes"
20242 else
20243 $as_echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20246 eval "$as_ac_var=no"
20249 rm -rf conftest.dSYM
20250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20251 conftest$ac_exeext conftest.$ac_ext
20253 ac_res=`eval 'as_val=${'$as_ac_var'}
20254 $as_echo "$as_val"'`
20255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20256 $as_echo "$ac_res" >&6; }
20257 if test `eval 'as_val=${'$as_ac_var'}
20258 $as_echo "$as_val"'` = yes; then
20259 cat >>confdefs.h <<_ACEOF
20260 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20261 _ACEOF
20263 else
20264 # strftime is in -lintl on SCO UNIX.
20265 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20266 $as_echo_n "checking for strftime in -lintl... " >&6; }
20267 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20268 $as_echo_n "(cached) " >&6
20269 else
20270 ac_check_lib_save_LIBS=$LIBS
20271 LIBS="-lintl $LIBS"
20272 cat >conftest.$ac_ext <<_ACEOF
20273 /* confdefs.h. */
20274 _ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h. */
20279 /* Override any GCC internal prototype to avoid an error.
20280 Use char because int might match the return type of a GCC
20281 builtin and then its argument prototype would still apply. */
20282 #ifdef __cplusplus
20283 extern "C"
20284 #endif
20285 char strftime ();
20287 main ()
20289 return strftime ();
20291 return 0;
20293 _ACEOF
20294 rm -f conftest.$ac_objext conftest$ac_exeext
20295 if { (ac_try="$ac_link"
20296 case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20299 esac
20300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20301 $as_echo "$ac_try_echo") >&5
20302 (eval "$ac_link") 2>conftest.er1
20303 ac_status=$?
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
20307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && {
20309 test -z "$ac_c_werror_flag" ||
20310 test ! -s conftest.err
20311 } && test -s conftest$ac_exeext && {
20312 test "$cross_compiling" = yes ||
20313 $as_test_x conftest$ac_exeext
20314 }; then
20315 ac_cv_lib_intl_strftime=yes
20316 else
20317 $as_echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20320 ac_cv_lib_intl_strftime=no
20323 rm -rf conftest.dSYM
20324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20325 conftest$ac_exeext conftest.$ac_ext
20326 LIBS=$ac_check_lib_save_LIBS
20328 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20329 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20330 if test $ac_cv_lib_intl_strftime = yes; then
20331 cat >>confdefs.h <<\_ACEOF
20332 #define HAVE_STRFTIME 1
20333 _ACEOF
20335 LIBS="-lintl $LIBS"
20339 done
20342 # UNIX98 PTYs.
20344 for ac_func in grantpt
20346 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20347 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20348 $as_echo_n "checking for $ac_func... " >&6; }
20349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20350 $as_echo_n "(cached) " >&6
20351 else
20352 cat >conftest.$ac_ext <<_ACEOF
20353 /* confdefs.h. */
20354 _ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20360 #define $ac_func innocuous_$ac_func
20362 /* System header to define __stub macros and hopefully few prototypes,
20363 which can conflict with char $ac_func (); below.
20364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20365 <limits.h> exists even on freestanding compilers. */
20367 #ifdef __STDC__
20368 # include <limits.h>
20369 #else
20370 # include <assert.h>
20371 #endif
20373 #undef $ac_func
20375 /* Override any GCC internal prototype to avoid an error.
20376 Use char because int might match the return type of a GCC
20377 builtin and then its argument prototype would still apply. */
20378 #ifdef __cplusplus
20379 extern "C"
20380 #endif
20381 char $ac_func ();
20382 /* The GNU C library defines this for functions which it implements
20383 to always fail with ENOSYS. Some functions are actually named
20384 something starting with __ and the normal name is an alias. */
20385 #if defined __stub_$ac_func || defined __stub___$ac_func
20386 choke me
20387 #endif
20390 main ()
20392 return $ac_func ();
20394 return 0;
20396 _ACEOF
20397 rm -f conftest.$ac_objext conftest$ac_exeext
20398 if { (ac_try="$ac_link"
20399 case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20402 esac
20403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20404 $as_echo "$ac_try_echo") >&5
20405 (eval "$ac_link") 2>conftest.er1
20406 ac_status=$?
20407 grep -v '^ *+' conftest.er1 >conftest.err
20408 rm -f conftest.er1
20409 cat conftest.err >&5
20410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } && {
20412 test -z "$ac_c_werror_flag" ||
20413 test ! -s conftest.err
20414 } && test -s conftest$ac_exeext && {
20415 test "$cross_compiling" = yes ||
20416 $as_test_x conftest$ac_exeext
20417 }; then
20418 eval "$as_ac_var=yes"
20419 else
20420 $as_echo "$as_me: failed program was:" >&5
20421 sed 's/^/| /' conftest.$ac_ext >&5
20423 eval "$as_ac_var=no"
20426 rm -rf conftest.dSYM
20427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20428 conftest$ac_exeext conftest.$ac_ext
20430 ac_res=`eval 'as_val=${'$as_ac_var'}
20431 $as_echo "$as_val"'`
20432 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20433 $as_echo "$ac_res" >&6; }
20434 if test `eval 'as_val=${'$as_ac_var'}
20435 $as_echo "$as_val"'` = yes; then
20436 cat >>confdefs.h <<_ACEOF
20437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20438 _ACEOF
20441 done
20444 # PTY-related GNU extensions.
20446 for ac_func in getpt
20448 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20449 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20450 $as_echo_n "checking for $ac_func... " >&6; }
20451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20452 $as_echo_n "(cached) " >&6
20453 else
20454 cat >conftest.$ac_ext <<_ACEOF
20455 /* confdefs.h. */
20456 _ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20462 #define $ac_func innocuous_$ac_func
20464 /* System header to define __stub macros and hopefully few prototypes,
20465 which can conflict with char $ac_func (); below.
20466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20467 <limits.h> exists even on freestanding compilers. */
20469 #ifdef __STDC__
20470 # include <limits.h>
20471 #else
20472 # include <assert.h>
20473 #endif
20475 #undef $ac_func
20477 /* Override any GCC internal prototype to avoid an error.
20478 Use char because int might match the return type of a GCC
20479 builtin and then its argument prototype would still apply. */
20480 #ifdef __cplusplus
20481 extern "C"
20482 #endif
20483 char $ac_func ();
20484 /* The GNU C library defines this for functions which it implements
20485 to always fail with ENOSYS. Some functions are actually named
20486 something starting with __ and the normal name is an alias. */
20487 #if defined __stub_$ac_func || defined __stub___$ac_func
20488 choke me
20489 #endif
20492 main ()
20494 return $ac_func ();
20496 return 0;
20498 _ACEOF
20499 rm -f conftest.$ac_objext conftest$ac_exeext
20500 if { (ac_try="$ac_link"
20501 case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20504 esac
20505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20506 $as_echo "$ac_try_echo") >&5
20507 (eval "$ac_link") 2>conftest.er1
20508 ac_status=$?
20509 grep -v '^ *+' conftest.er1 >conftest.err
20510 rm -f conftest.er1
20511 cat conftest.err >&5
20512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } && {
20514 test -z "$ac_c_werror_flag" ||
20515 test ! -s conftest.err
20516 } && test -s conftest$ac_exeext && {
20517 test "$cross_compiling" = yes ||
20518 $as_test_x conftest$ac_exeext
20519 }; then
20520 eval "$as_ac_var=yes"
20521 else
20522 $as_echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20525 eval "$as_ac_var=no"
20528 rm -rf conftest.dSYM
20529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20530 conftest$ac_exeext conftest.$ac_ext
20532 ac_res=`eval 'as_val=${'$as_ac_var'}
20533 $as_echo "$as_val"'`
20534 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20535 $as_echo "$ac_res" >&6; }
20536 if test `eval 'as_val=${'$as_ac_var'}
20537 $as_echo "$as_val"'` = yes; then
20538 cat >>confdefs.h <<_ACEOF
20539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20540 _ACEOF
20543 done
20546 # Check this now, so that we will NOT find the above functions in ncurses.
20547 # That is because we have not set up to link ncurses in lib-src.
20548 # It's better to believe a function is not available
20549 # than to expect to find it in ncurses.
20551 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20552 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20553 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20554 $as_echo_n "(cached) " >&6
20555 else
20556 ac_check_lib_save_LIBS=$LIBS
20557 LIBS="-lncurses $LIBS"
20558 cat >conftest.$ac_ext <<_ACEOF
20559 /* confdefs.h. */
20560 _ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h. */
20565 /* Override any GCC internal prototype to avoid an error.
20566 Use char because int might match the return type of a GCC
20567 builtin and then its argument prototype would still apply. */
20568 #ifdef __cplusplus
20569 extern "C"
20570 #endif
20571 char tparm ();
20573 main ()
20575 return tparm ();
20577 return 0;
20579 _ACEOF
20580 rm -f conftest.$ac_objext conftest$ac_exeext
20581 if { (ac_try="$ac_link"
20582 case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20585 esac
20586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20587 $as_echo "$ac_try_echo") >&5
20588 (eval "$ac_link") 2>conftest.er1
20589 ac_status=$?
20590 grep -v '^ *+' conftest.er1 >conftest.err
20591 rm -f conftest.er1
20592 cat conftest.err >&5
20593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } && {
20595 test -z "$ac_c_werror_flag" ||
20596 test ! -s conftest.err
20597 } && test -s conftest$ac_exeext && {
20598 test "$cross_compiling" = yes ||
20599 $as_test_x conftest$ac_exeext
20600 }; then
20601 ac_cv_lib_ncurses_tparm=yes
20602 else
20603 $as_echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 ac_cv_lib_ncurses_tparm=no
20609 rm -rf conftest.dSYM
20610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20611 conftest$ac_exeext conftest.$ac_ext
20612 LIBS=$ac_check_lib_save_LIBS
20614 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20615 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20616 if test $ac_cv_lib_ncurses_tparm = yes; then
20617 cat >>confdefs.h <<_ACEOF
20618 #define HAVE_LIBNCURSES 1
20619 _ACEOF
20621 LIBS="-lncurses $LIBS"
20626 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20628 resolv=no
20629 cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h. */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 #include <netinet/in.h>
20636 #include <arpa/nameser.h>
20637 #include <resolv.h>
20639 main ()
20641 return res_init();
20643 return 0;
20645 _ACEOF
20646 rm -f conftest.$ac_objext conftest$ac_exeext
20647 if { (ac_try="$ac_link"
20648 case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20651 esac
20652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20653 $as_echo "$ac_try_echo") >&5
20654 (eval "$ac_link") 2>conftest.er1
20655 ac_status=$?
20656 grep -v '^ *+' conftest.er1 >conftest.err
20657 rm -f conftest.er1
20658 cat conftest.err >&5
20659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } && {
20661 test -z "$ac_c_werror_flag" ||
20662 test ! -s conftest.err
20663 } && test -s conftest$ac_exeext && {
20664 test "$cross_compiling" = yes ||
20665 $as_test_x conftest$ac_exeext
20666 }; then
20667 have_res_init=yes
20668 else
20669 $as_echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20672 have_res_init=no
20675 rm -rf conftest.dSYM
20676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20677 conftest$ac_exeext conftest.$ac_ext
20678 if test "$have_res_init" = no; then
20679 OLIBS="$LIBS"
20680 LIBS="$LIBS -lresolv"
20681 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20682 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20683 cat >conftest.$ac_ext <<_ACEOF
20684 /* confdefs.h. */
20685 _ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689 #include <netinet/in.h>
20690 #include <arpa/nameser.h>
20691 #include <resolv.h>
20693 main ()
20695 return res_init();
20697 return 0;
20699 _ACEOF
20700 rm -f conftest.$ac_objext conftest$ac_exeext
20701 if { (ac_try="$ac_link"
20702 case "(($ac_try" in
20703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704 *) ac_try_echo=$ac_try;;
20705 esac
20706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20707 $as_echo "$ac_try_echo") >&5
20708 (eval "$ac_link") 2>conftest.er1
20709 ac_status=$?
20710 grep -v '^ *+' conftest.er1 >conftest.err
20711 rm -f conftest.er1
20712 cat conftest.err >&5
20713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } && {
20715 test -z "$ac_c_werror_flag" ||
20716 test ! -s conftest.err
20717 } && test -s conftest$ac_exeext && {
20718 test "$cross_compiling" = yes ||
20719 $as_test_x conftest$ac_exeext
20720 }; then
20721 have_res_init=yes
20722 else
20723 $as_echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20726 have_res_init=no
20729 rm -rf conftest.dSYM
20730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20731 conftest$ac_exeext conftest.$ac_ext
20732 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
20733 $as_echo "$have_res_init" >&6; }
20734 if test "$have_res_init" = yes ; then
20735 resolv=yes
20737 LIBS="$OLIBS"
20740 if test "$have_res_init" = yes; then
20742 cat >>confdefs.h <<\_ACEOF
20743 #define HAVE_RES_INIT 1
20744 _ACEOF
20748 # Do we need the Hesiod library to provide the support routines?
20749 if test "$with_hesiod" != no ; then
20750 # Don't set $LIBS here -- see comments above.
20751 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
20752 $as_echo_n "checking for res_send... " >&6; }
20753 if test "${ac_cv_func_res_send+set}" = set; then
20754 $as_echo_n "(cached) " >&6
20755 else
20756 cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h. */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20762 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20764 #define res_send innocuous_res_send
20766 /* System header to define __stub macros and hopefully few prototypes,
20767 which can conflict with char res_send (); below.
20768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20769 <limits.h> exists even on freestanding compilers. */
20771 #ifdef __STDC__
20772 # include <limits.h>
20773 #else
20774 # include <assert.h>
20775 #endif
20777 #undef res_send
20779 /* Override any GCC internal prototype to avoid an error.
20780 Use char because int might match the return type of a GCC
20781 builtin and then its argument prototype would still apply. */
20782 #ifdef __cplusplus
20783 extern "C"
20784 #endif
20785 char res_send ();
20786 /* The GNU C library defines this for functions which it implements
20787 to always fail with ENOSYS. Some functions are actually named
20788 something starting with __ and the normal name is an alias. */
20789 #if defined __stub_res_send || defined __stub___res_send
20790 choke me
20791 #endif
20794 main ()
20796 return res_send ();
20798 return 0;
20800 _ACEOF
20801 rm -f conftest.$ac_objext conftest$ac_exeext
20802 if { (ac_try="$ac_link"
20803 case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20806 esac
20807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20808 $as_echo "$ac_try_echo") >&5
20809 (eval "$ac_link") 2>conftest.er1
20810 ac_status=$?
20811 grep -v '^ *+' conftest.er1 >conftest.err
20812 rm -f conftest.er1
20813 cat conftest.err >&5
20814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } && {
20816 test -z "$ac_c_werror_flag" ||
20817 test ! -s conftest.err
20818 } && test -s conftest$ac_exeext && {
20819 test "$cross_compiling" = yes ||
20820 $as_test_x conftest$ac_exeext
20821 }; then
20822 ac_cv_func_res_send=yes
20823 else
20824 $as_echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20827 ac_cv_func_res_send=no
20830 rm -rf conftest.dSYM
20831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20832 conftest$ac_exeext conftest.$ac_ext
20834 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20835 $as_echo "$ac_cv_func_res_send" >&6; }
20836 if test $ac_cv_func_res_send = yes; then
20838 else
20839 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
20840 $as_echo_n "checking for __res_send... " >&6; }
20841 if test "${ac_cv_func___res_send+set}" = set; then
20842 $as_echo_n "(cached) " >&6
20843 else
20844 cat >conftest.$ac_ext <<_ACEOF
20845 /* confdefs.h. */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20852 #define __res_send innocuous___res_send
20854 /* System header to define __stub macros and hopefully few prototypes,
20855 which can conflict with char __res_send (); below.
20856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20857 <limits.h> exists even on freestanding compilers. */
20859 #ifdef __STDC__
20860 # include <limits.h>
20861 #else
20862 # include <assert.h>
20863 #endif
20865 #undef __res_send
20867 /* Override any GCC internal prototype to avoid an error.
20868 Use char because int might match the return type of a GCC
20869 builtin and then its argument prototype would still apply. */
20870 #ifdef __cplusplus
20871 extern "C"
20872 #endif
20873 char __res_send ();
20874 /* The GNU C library defines this for functions which it implements
20875 to always fail with ENOSYS. Some functions are actually named
20876 something starting with __ and the normal name is an alias. */
20877 #if defined __stub___res_send || defined __stub_____res_send
20878 choke me
20879 #endif
20882 main ()
20884 return __res_send ();
20886 return 0;
20888 _ACEOF
20889 rm -f conftest.$ac_objext conftest$ac_exeext
20890 if { (ac_try="$ac_link"
20891 case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20894 esac
20895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20896 $as_echo "$ac_try_echo") >&5
20897 (eval "$ac_link") 2>conftest.er1
20898 ac_status=$?
20899 grep -v '^ *+' conftest.er1 >conftest.err
20900 rm -f conftest.er1
20901 cat conftest.err >&5
20902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } && {
20904 test -z "$ac_c_werror_flag" ||
20905 test ! -s conftest.err
20906 } && test -s conftest$ac_exeext && {
20907 test "$cross_compiling" = yes ||
20908 $as_test_x conftest$ac_exeext
20909 }; then
20910 ac_cv_func___res_send=yes
20911 else
20912 $as_echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ac_cv_func___res_send=no
20918 rm -rf conftest.dSYM
20919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20920 conftest$ac_exeext conftest.$ac_ext
20922 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20923 $as_echo "$ac_cv_func___res_send" >&6; }
20924 if test $ac_cv_func___res_send = yes; then
20926 else
20927 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20928 $as_echo_n "checking for res_send in -lresolv... " >&6; }
20929 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20930 $as_echo_n "(cached) " >&6
20931 else
20932 ac_check_lib_save_LIBS=$LIBS
20933 LIBS="-lresolv $LIBS"
20934 cat >conftest.$ac_ext <<_ACEOF
20935 /* confdefs.h. */
20936 _ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20941 /* Override any GCC internal prototype to avoid an error.
20942 Use char because int might match the return type of a GCC
20943 builtin and then its argument prototype would still apply. */
20944 #ifdef __cplusplus
20945 extern "C"
20946 #endif
20947 char res_send ();
20949 main ()
20951 return res_send ();
20953 return 0;
20955 _ACEOF
20956 rm -f conftest.$ac_objext conftest$ac_exeext
20957 if { (ac_try="$ac_link"
20958 case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20961 esac
20962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20963 $as_echo "$ac_try_echo") >&5
20964 (eval "$ac_link") 2>conftest.er1
20965 ac_status=$?
20966 grep -v '^ *+' conftest.er1 >conftest.err
20967 rm -f conftest.er1
20968 cat conftest.err >&5
20969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest$ac_exeext && {
20974 test "$cross_compiling" = yes ||
20975 $as_test_x conftest$ac_exeext
20976 }; then
20977 ac_cv_lib_resolv_res_send=yes
20978 else
20979 $as_echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20982 ac_cv_lib_resolv_res_send=no
20985 rm -rf conftest.dSYM
20986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20987 conftest$ac_exeext conftest.$ac_ext
20988 LIBS=$ac_check_lib_save_LIBS
20990 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20991 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
20992 if test $ac_cv_lib_resolv_res_send = yes; then
20993 resolv=yes
20994 else
20995 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20996 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
20997 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20998 $as_echo_n "(cached) " >&6
20999 else
21000 ac_check_lib_save_LIBS=$LIBS
21001 LIBS="-lresolv $LIBS"
21002 cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h. */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21009 /* Override any GCC internal prototype to avoid an error.
21010 Use char because int might match the return type of a GCC
21011 builtin and then its argument prototype would still apply. */
21012 #ifdef __cplusplus
21013 extern "C"
21014 #endif
21015 char __res_send ();
21017 main ()
21019 return __res_send ();
21021 return 0;
21023 _ACEOF
21024 rm -f conftest.$ac_objext conftest$ac_exeext
21025 if { (ac_try="$ac_link"
21026 case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21029 esac
21030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21031 $as_echo "$ac_try_echo") >&5
21032 (eval "$ac_link") 2>conftest.er1
21033 ac_status=$?
21034 grep -v '^ *+' conftest.er1 >conftest.err
21035 rm -f conftest.er1
21036 cat conftest.err >&5
21037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); } && {
21039 test -z "$ac_c_werror_flag" ||
21040 test ! -s conftest.err
21041 } && test -s conftest$ac_exeext && {
21042 test "$cross_compiling" = yes ||
21043 $as_test_x conftest$ac_exeext
21044 }; then
21045 ac_cv_lib_resolv___res_send=yes
21046 else
21047 $as_echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_cv_lib_resolv___res_send=no
21053 rm -rf conftest.dSYM
21054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21055 conftest$ac_exeext conftest.$ac_ext
21056 LIBS=$ac_check_lib_save_LIBS
21058 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21059 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21060 if test $ac_cv_lib_resolv___res_send = yes; then
21061 resolv=yes
21070 if test "$resolv" = yes ; then
21071 RESOLVLIB=-lresolv
21072 else
21073 RESOLVLIB=
21075 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21076 $as_echo_n "checking for hes_getmailhost... " >&6; }
21077 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21078 $as_echo_n "(cached) " >&6
21079 else
21080 cat >conftest.$ac_ext <<_ACEOF
21081 /* confdefs.h. */
21082 _ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21088 #define hes_getmailhost innocuous_hes_getmailhost
21090 /* System header to define __stub macros and hopefully few prototypes,
21091 which can conflict with char hes_getmailhost (); below.
21092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21093 <limits.h> exists even on freestanding compilers. */
21095 #ifdef __STDC__
21096 # include <limits.h>
21097 #else
21098 # include <assert.h>
21099 #endif
21101 #undef hes_getmailhost
21103 /* Override any GCC internal prototype to avoid an error.
21104 Use char because int might match the return type of a GCC
21105 builtin and then its argument prototype would still apply. */
21106 #ifdef __cplusplus
21107 extern "C"
21108 #endif
21109 char hes_getmailhost ();
21110 /* The GNU C library defines this for functions which it implements
21111 to always fail with ENOSYS. Some functions are actually named
21112 something starting with __ and the normal name is an alias. */
21113 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21114 choke me
21115 #endif
21118 main ()
21120 return hes_getmailhost ();
21122 return 0;
21124 _ACEOF
21125 rm -f conftest.$ac_objext conftest$ac_exeext
21126 if { (ac_try="$ac_link"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21130 esac
21131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21132 $as_echo "$ac_try_echo") >&5
21133 (eval "$ac_link") 2>conftest.er1
21134 ac_status=$?
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
21138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } && {
21140 test -z "$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21142 } && test -s conftest$ac_exeext && {
21143 test "$cross_compiling" = yes ||
21144 $as_test_x conftest$ac_exeext
21145 }; then
21146 ac_cv_func_hes_getmailhost=yes
21147 else
21148 $as_echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21151 ac_cv_func_hes_getmailhost=no
21154 rm -rf conftest.dSYM
21155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21156 conftest$ac_exeext conftest.$ac_ext
21158 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21159 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21160 if test $ac_cv_func_hes_getmailhost = yes; then
21162 else
21163 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21164 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21165 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21166 $as_echo_n "(cached) " >&6
21167 else
21168 ac_check_lib_save_LIBS=$LIBS
21169 LIBS="-lhesiod $RESOLVLIB $LIBS"
21170 cat >conftest.$ac_ext <<_ACEOF
21171 /* confdefs.h. */
21172 _ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21177 /* Override any GCC internal prototype to avoid an error.
21178 Use char because int might match the return type of a GCC
21179 builtin and then its argument prototype would still apply. */
21180 #ifdef __cplusplus
21181 extern "C"
21182 #endif
21183 char hes_getmailhost ();
21185 main ()
21187 return hes_getmailhost ();
21189 return 0;
21191 _ACEOF
21192 rm -f conftest.$ac_objext conftest$ac_exeext
21193 if { (ac_try="$ac_link"
21194 case "(($ac_try" in
21195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21196 *) ac_try_echo=$ac_try;;
21197 esac
21198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21199 $as_echo "$ac_try_echo") >&5
21200 (eval "$ac_link") 2>conftest.er1
21201 ac_status=$?
21202 grep -v '^ *+' conftest.er1 >conftest.err
21203 rm -f conftest.er1
21204 cat conftest.err >&5
21205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } && {
21207 test -z "$ac_c_werror_flag" ||
21208 test ! -s conftest.err
21209 } && test -s conftest$ac_exeext && {
21210 test "$cross_compiling" = yes ||
21211 $as_test_x conftest$ac_exeext
21212 }; then
21213 ac_cv_lib_hesiod_hes_getmailhost=yes
21214 else
21215 $as_echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21218 ac_cv_lib_hesiod_hes_getmailhost=no
21221 rm -rf conftest.dSYM
21222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21223 conftest$ac_exeext conftest.$ac_ext
21224 LIBS=$ac_check_lib_save_LIBS
21226 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21227 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21228 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21230 cat >>confdefs.h <<\_ACEOF
21231 #define HAVE_LIBHESIOD 1
21232 _ACEOF
21234 else
21242 # Do we need libresolv (due to res_init or Hesiod)?
21243 if test "$resolv" = yes ; then
21245 cat >>confdefs.h <<\_ACEOF
21246 #define HAVE_LIBRESOLV 1
21247 _ACEOF
21251 # These tell us which Kerberos-related libraries to use.
21252 if test "${with_kerberos}" != no; then
21254 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21255 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21256 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21257 $as_echo_n "(cached) " >&6
21258 else
21259 ac_check_lib_save_LIBS=$LIBS
21260 LIBS="-lcom_err $LIBS"
21261 cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h. */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21268 /* Override any GCC internal prototype to avoid an error.
21269 Use char because int might match the return type of a GCC
21270 builtin and then its argument prototype would still apply. */
21271 #ifdef __cplusplus
21272 extern "C"
21273 #endif
21274 char com_err ();
21276 main ()
21278 return com_err ();
21280 return 0;
21282 _ACEOF
21283 rm -f conftest.$ac_objext conftest$ac_exeext
21284 if { (ac_try="$ac_link"
21285 case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21288 esac
21289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21290 $as_echo "$ac_try_echo") >&5
21291 (eval "$ac_link") 2>conftest.er1
21292 ac_status=$?
21293 grep -v '^ *+' conftest.er1 >conftest.err
21294 rm -f conftest.er1
21295 cat conftest.err >&5
21296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } && {
21298 test -z "$ac_c_werror_flag" ||
21299 test ! -s conftest.err
21300 } && test -s conftest$ac_exeext && {
21301 test "$cross_compiling" = yes ||
21302 $as_test_x conftest$ac_exeext
21303 }; then
21304 ac_cv_lib_com_err_com_err=yes
21305 else
21306 $as_echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21309 ac_cv_lib_com_err_com_err=no
21312 rm -rf conftest.dSYM
21313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21314 conftest$ac_exeext conftest.$ac_ext
21315 LIBS=$ac_check_lib_save_LIBS
21317 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21318 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21319 if test $ac_cv_lib_com_err_com_err = yes; then
21320 cat >>confdefs.h <<_ACEOF
21321 #define HAVE_LIBCOM_ERR 1
21322 _ACEOF
21324 LIBS="-lcom_err $LIBS"
21329 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21330 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21331 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21332 $as_echo_n "(cached) " >&6
21333 else
21334 ac_check_lib_save_LIBS=$LIBS
21335 LIBS="-lk5crypto $LIBS"
21336 cat >conftest.$ac_ext <<_ACEOF
21337 /* confdefs.h. */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21343 /* Override any GCC internal prototype to avoid an error.
21344 Use char because int might match the return type of a GCC
21345 builtin and then its argument prototype would still apply. */
21346 #ifdef __cplusplus
21347 extern "C"
21348 #endif
21349 char mit_des_cbc_encrypt ();
21351 main ()
21353 return mit_des_cbc_encrypt ();
21355 return 0;
21357 _ACEOF
21358 rm -f conftest.$ac_objext conftest$ac_exeext
21359 if { (ac_try="$ac_link"
21360 case "(($ac_try" in
21361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362 *) ac_try_echo=$ac_try;;
21363 esac
21364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21365 $as_echo "$ac_try_echo") >&5
21366 (eval "$ac_link") 2>conftest.er1
21367 ac_status=$?
21368 grep -v '^ *+' conftest.er1 >conftest.err
21369 rm -f conftest.er1
21370 cat conftest.err >&5
21371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } && {
21373 test -z "$ac_c_werror_flag" ||
21374 test ! -s conftest.err
21375 } && test -s conftest$ac_exeext && {
21376 test "$cross_compiling" = yes ||
21377 $as_test_x conftest$ac_exeext
21378 }; then
21379 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21380 else
21381 $as_echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21384 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21387 rm -rf conftest.dSYM
21388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21389 conftest$ac_exeext conftest.$ac_ext
21390 LIBS=$ac_check_lib_save_LIBS
21392 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21393 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21394 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21395 cat >>confdefs.h <<_ACEOF
21396 #define HAVE_LIBK5CRYPTO 1
21397 _ACEOF
21399 LIBS="-lk5crypto $LIBS"
21404 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21405 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21406 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21407 $as_echo_n "(cached) " >&6
21408 else
21409 ac_check_lib_save_LIBS=$LIBS
21410 LIBS="-lcrypto $LIBS"
21411 cat >conftest.$ac_ext <<_ACEOF
21412 /* confdefs.h. */
21413 _ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21418 /* Override any GCC internal prototype to avoid an error.
21419 Use char because int might match the return type of a GCC
21420 builtin and then its argument prototype would still apply. */
21421 #ifdef __cplusplus
21422 extern "C"
21423 #endif
21424 char mit_des_cbc_encrypt ();
21426 main ()
21428 return mit_des_cbc_encrypt ();
21430 return 0;
21432 _ACEOF
21433 rm -f conftest.$ac_objext conftest$ac_exeext
21434 if { (ac_try="$ac_link"
21435 case "(($ac_try" in
21436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437 *) ac_try_echo=$ac_try;;
21438 esac
21439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21440 $as_echo "$ac_try_echo") >&5
21441 (eval "$ac_link") 2>conftest.er1
21442 ac_status=$?
21443 grep -v '^ *+' conftest.er1 >conftest.err
21444 rm -f conftest.er1
21445 cat conftest.err >&5
21446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } && {
21448 test -z "$ac_c_werror_flag" ||
21449 test ! -s conftest.err
21450 } && test -s conftest$ac_exeext && {
21451 test "$cross_compiling" = yes ||
21452 $as_test_x conftest$ac_exeext
21453 }; then
21454 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21455 else
21456 $as_echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21459 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21462 rm -rf conftest.dSYM
21463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21464 conftest$ac_exeext conftest.$ac_ext
21465 LIBS=$ac_check_lib_save_LIBS
21467 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21468 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21469 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21470 cat >>confdefs.h <<_ACEOF
21471 #define HAVE_LIBCRYPTO 1
21472 _ACEOF
21474 LIBS="-lcrypto $LIBS"
21479 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21480 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21481 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21482 $as_echo_n "(cached) " >&6
21483 else
21484 ac_check_lib_save_LIBS=$LIBS
21485 LIBS="-lkrb5 $LIBS"
21486 cat >conftest.$ac_ext <<_ACEOF
21487 /* confdefs.h. */
21488 _ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21493 /* Override any GCC internal prototype to avoid an error.
21494 Use char because int might match the return type of a GCC
21495 builtin and then its argument prototype would still apply. */
21496 #ifdef __cplusplus
21497 extern "C"
21498 #endif
21499 char krb5_init_context ();
21501 main ()
21503 return krb5_init_context ();
21505 return 0;
21507 _ACEOF
21508 rm -f conftest.$ac_objext conftest$ac_exeext
21509 if { (ac_try="$ac_link"
21510 case "(($ac_try" in
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512 *) ac_try_echo=$ac_try;;
21513 esac
21514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21515 $as_echo "$ac_try_echo") >&5
21516 (eval "$ac_link") 2>conftest.er1
21517 ac_status=$?
21518 grep -v '^ *+' conftest.er1 >conftest.err
21519 rm -f conftest.er1
21520 cat conftest.err >&5
21521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); } && {
21523 test -z "$ac_c_werror_flag" ||
21524 test ! -s conftest.err
21525 } && test -s conftest$ac_exeext && {
21526 test "$cross_compiling" = yes ||
21527 $as_test_x conftest$ac_exeext
21528 }; then
21529 ac_cv_lib_krb5_krb5_init_context=yes
21530 else
21531 $as_echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21534 ac_cv_lib_krb5_krb5_init_context=no
21537 rm -rf conftest.dSYM
21538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21539 conftest$ac_exeext conftest.$ac_ext
21540 LIBS=$ac_check_lib_save_LIBS
21542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21543 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21544 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21545 cat >>confdefs.h <<_ACEOF
21546 #define HAVE_LIBKRB5 1
21547 _ACEOF
21549 LIBS="-lkrb5 $LIBS"
21553 if test "${with_kerberos5}" = no; then
21555 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21556 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21557 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21558 $as_echo_n "(cached) " >&6
21559 else
21560 ac_check_lib_save_LIBS=$LIBS
21561 LIBS="-ldes425 $LIBS"
21562 cat >conftest.$ac_ext <<_ACEOF
21563 /* confdefs.h. */
21564 _ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21569 /* Override any GCC internal prototype to avoid an error.
21570 Use char because int might match the return type of a GCC
21571 builtin and then its argument prototype would still apply. */
21572 #ifdef __cplusplus
21573 extern "C"
21574 #endif
21575 char des_cbc_encrypt ();
21577 main ()
21579 return des_cbc_encrypt ();
21581 return 0;
21583 _ACEOF
21584 rm -f conftest.$ac_objext conftest$ac_exeext
21585 if { (ac_try="$ac_link"
21586 case "(($ac_try" in
21587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588 *) ac_try_echo=$ac_try;;
21589 esac
21590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21591 $as_echo "$ac_try_echo") >&5
21592 (eval "$ac_link") 2>conftest.er1
21593 ac_status=$?
21594 grep -v '^ *+' conftest.er1 >conftest.err
21595 rm -f conftest.er1
21596 cat conftest.err >&5
21597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } && {
21599 test -z "$ac_c_werror_flag" ||
21600 test ! -s conftest.err
21601 } && test -s conftest$ac_exeext && {
21602 test "$cross_compiling" = yes ||
21603 $as_test_x conftest$ac_exeext
21604 }; then
21605 ac_cv_lib_des425_des_cbc_encrypt=yes
21606 else
21607 $as_echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21610 ac_cv_lib_des425_des_cbc_encrypt=no
21613 rm -rf conftest.dSYM
21614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21615 conftest$ac_exeext conftest.$ac_ext
21616 LIBS=$ac_check_lib_save_LIBS
21618 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21619 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21620 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21621 cat >>confdefs.h <<_ACEOF
21622 #define HAVE_LIBDES425 1
21623 _ACEOF
21625 LIBS="-ldes425 $LIBS"
21627 else
21629 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21630 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21631 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21632 $as_echo_n "(cached) " >&6
21633 else
21634 ac_check_lib_save_LIBS=$LIBS
21635 LIBS="-ldes $LIBS"
21636 cat >conftest.$ac_ext <<_ACEOF
21637 /* confdefs.h. */
21638 _ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h. */
21643 /* Override any GCC internal prototype to avoid an error.
21644 Use char because int might match the return type of a GCC
21645 builtin and then its argument prototype would still apply. */
21646 #ifdef __cplusplus
21647 extern "C"
21648 #endif
21649 char des_cbc_encrypt ();
21651 main ()
21653 return des_cbc_encrypt ();
21655 return 0;
21657 _ACEOF
21658 rm -f conftest.$ac_objext conftest$ac_exeext
21659 if { (ac_try="$ac_link"
21660 case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21663 esac
21664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21665 $as_echo "$ac_try_echo") >&5
21666 (eval "$ac_link") 2>conftest.er1
21667 ac_status=$?
21668 grep -v '^ *+' conftest.er1 >conftest.err
21669 rm -f conftest.er1
21670 cat conftest.err >&5
21671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); } && {
21673 test -z "$ac_c_werror_flag" ||
21674 test ! -s conftest.err
21675 } && test -s conftest$ac_exeext && {
21676 test "$cross_compiling" = yes ||
21677 $as_test_x conftest$ac_exeext
21678 }; then
21679 ac_cv_lib_des_des_cbc_encrypt=yes
21680 else
21681 $as_echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21684 ac_cv_lib_des_des_cbc_encrypt=no
21687 rm -rf conftest.dSYM
21688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21689 conftest$ac_exeext conftest.$ac_ext
21690 LIBS=$ac_check_lib_save_LIBS
21692 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21693 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21694 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21695 cat >>confdefs.h <<_ACEOF
21696 #define HAVE_LIBDES 1
21697 _ACEOF
21699 LIBS="-ldes $LIBS"
21706 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21707 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21708 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21709 $as_echo_n "(cached) " >&6
21710 else
21711 ac_check_lib_save_LIBS=$LIBS
21712 LIBS="-lkrb4 $LIBS"
21713 cat >conftest.$ac_ext <<_ACEOF
21714 /* confdefs.h. */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21720 /* Override any GCC internal prototype to avoid an error.
21721 Use char because int might match the return type of a GCC
21722 builtin and then its argument prototype would still apply. */
21723 #ifdef __cplusplus
21724 extern "C"
21725 #endif
21726 char krb_get_cred ();
21728 main ()
21730 return krb_get_cred ();
21732 return 0;
21734 _ACEOF
21735 rm -f conftest.$ac_objext conftest$ac_exeext
21736 if { (ac_try="$ac_link"
21737 case "(($ac_try" in
21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739 *) ac_try_echo=$ac_try;;
21740 esac
21741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21742 $as_echo "$ac_try_echo") >&5
21743 (eval "$ac_link") 2>conftest.er1
21744 ac_status=$?
21745 grep -v '^ *+' conftest.er1 >conftest.err
21746 rm -f conftest.er1
21747 cat conftest.err >&5
21748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } && {
21750 test -z "$ac_c_werror_flag" ||
21751 test ! -s conftest.err
21752 } && test -s conftest$ac_exeext && {
21753 test "$cross_compiling" = yes ||
21754 $as_test_x conftest$ac_exeext
21755 }; then
21756 ac_cv_lib_krb4_krb_get_cred=yes
21757 else
21758 $as_echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21761 ac_cv_lib_krb4_krb_get_cred=no
21764 rm -rf conftest.dSYM
21765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21766 conftest$ac_exeext conftest.$ac_ext
21767 LIBS=$ac_check_lib_save_LIBS
21769 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21770 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21771 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21772 cat >>confdefs.h <<_ACEOF
21773 #define HAVE_LIBKRB4 1
21774 _ACEOF
21776 LIBS="-lkrb4 $LIBS"
21778 else
21780 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21781 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21782 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21783 $as_echo_n "(cached) " >&6
21784 else
21785 ac_check_lib_save_LIBS=$LIBS
21786 LIBS="-lkrb $LIBS"
21787 cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h. */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21794 /* Override any GCC internal prototype to avoid an error.
21795 Use char because int might match the return type of a GCC
21796 builtin and then its argument prototype would still apply. */
21797 #ifdef __cplusplus
21798 extern "C"
21799 #endif
21800 char krb_get_cred ();
21802 main ()
21804 return krb_get_cred ();
21806 return 0;
21808 _ACEOF
21809 rm -f conftest.$ac_objext conftest$ac_exeext
21810 if { (ac_try="$ac_link"
21811 case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21814 esac
21815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21816 $as_echo "$ac_try_echo") >&5
21817 (eval "$ac_link") 2>conftest.er1
21818 ac_status=$?
21819 grep -v '^ *+' conftest.er1 >conftest.err
21820 rm -f conftest.er1
21821 cat conftest.err >&5
21822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); } && {
21824 test -z "$ac_c_werror_flag" ||
21825 test ! -s conftest.err
21826 } && test -s conftest$ac_exeext && {
21827 test "$cross_compiling" = yes ||
21828 $as_test_x conftest$ac_exeext
21829 }; then
21830 ac_cv_lib_krb_krb_get_cred=yes
21831 else
21832 $as_echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21835 ac_cv_lib_krb_krb_get_cred=no
21838 rm -rf conftest.dSYM
21839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21840 conftest$ac_exeext conftest.$ac_ext
21841 LIBS=$ac_check_lib_save_LIBS
21843 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21844 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21845 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21846 cat >>confdefs.h <<_ACEOF
21847 #define HAVE_LIBKRB 1
21848 _ACEOF
21850 LIBS="-lkrb $LIBS"
21858 if test "${with_kerberos5}" != no; then
21860 for ac_header in krb5.h
21862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21864 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21865 $as_echo_n "checking for $ac_header... " >&6; }
21866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21867 $as_echo_n "(cached) " >&6
21869 ac_res=`eval 'as_val=${'$as_ac_Header'}
21870 $as_echo "$as_val"'`
21871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21872 $as_echo "$ac_res" >&6; }
21873 else
21874 # Is the header compilable?
21875 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21876 $as_echo_n "checking $ac_header usability... " >&6; }
21877 cat >conftest.$ac_ext <<_ACEOF
21878 /* confdefs.h. */
21879 _ACEOF
21880 cat confdefs.h >>conftest.$ac_ext
21881 cat >>conftest.$ac_ext <<_ACEOF
21882 /* end confdefs.h. */
21883 $ac_includes_default
21884 #include <$ac_header>
21885 _ACEOF
21886 rm -f conftest.$ac_objext
21887 if { (ac_try="$ac_compile"
21888 case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21891 esac
21892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21893 $as_echo "$ac_try_echo") >&5
21894 (eval "$ac_compile") 2>conftest.er1
21895 ac_status=$?
21896 grep -v '^ *+' conftest.er1 >conftest.err
21897 rm -f conftest.er1
21898 cat conftest.err >&5
21899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } && {
21901 test -z "$ac_c_werror_flag" ||
21902 test ! -s conftest.err
21903 } && test -s conftest.$ac_objext; then
21904 ac_header_compiler=yes
21905 else
21906 $as_echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21909 ac_header_compiler=no
21912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21913 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21914 $as_echo "$ac_header_compiler" >&6; }
21916 # Is the header present?
21917 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21918 $as_echo_n "checking $ac_header presence... " >&6; }
21919 cat >conftest.$ac_ext <<_ACEOF
21920 /* confdefs.h. */
21921 _ACEOF
21922 cat confdefs.h >>conftest.$ac_ext
21923 cat >>conftest.$ac_ext <<_ACEOF
21924 /* end confdefs.h. */
21925 #include <$ac_header>
21926 _ACEOF
21927 if { (ac_try="$ac_cpp conftest.$ac_ext"
21928 case "(($ac_try" in
21929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930 *) ac_try_echo=$ac_try;;
21931 esac
21932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21933 $as_echo "$ac_try_echo") >&5
21934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21935 ac_status=$?
21936 grep -v '^ *+' conftest.er1 >conftest.err
21937 rm -f conftest.er1
21938 cat conftest.err >&5
21939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } >/dev/null && {
21941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21942 test ! -s conftest.err
21943 }; then
21944 ac_header_preproc=yes
21945 else
21946 $as_echo "$as_me: failed program was:" >&5
21947 sed 's/^/| /' conftest.$ac_ext >&5
21949 ac_header_preproc=no
21952 rm -f conftest.err conftest.$ac_ext
21953 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21954 $as_echo "$ac_header_preproc" >&6; }
21956 # So? What about this header?
21957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21958 yes:no: )
21959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21960 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21962 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21963 ac_header_preproc=yes
21965 no:yes:* )
21966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21967 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21969 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21971 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21973 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21975 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21977 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21980 esac
21981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21982 $as_echo_n "checking for $ac_header... " >&6; }
21983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21984 $as_echo_n "(cached) " >&6
21985 else
21986 eval "$as_ac_Header=\$ac_header_preproc"
21988 ac_res=`eval 'as_val=${'$as_ac_Header'}
21989 $as_echo "$as_val"'`
21990 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21991 $as_echo "$ac_res" >&6; }
21994 if test `eval 'as_val=${'$as_ac_Header'}
21995 $as_echo "$as_val"'` = yes; then
21996 cat >>confdefs.h <<_ACEOF
21997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21998 _ACEOF
21999 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22000 $as_echo_n "checking for krb5_error.text... " >&6; }
22001 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22002 $as_echo_n "(cached) " >&6
22003 else
22004 cat >conftest.$ac_ext <<_ACEOF
22005 /* confdefs.h. */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010 #include <krb5.h>
22013 main ()
22015 static krb5_error ac_aggr;
22016 if (ac_aggr.text)
22017 return 0;
22019 return 0;
22021 _ACEOF
22022 rm -f conftest.$ac_objext
22023 if { (ac_try="$ac_compile"
22024 case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22027 esac
22028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22029 $as_echo "$ac_try_echo") >&5
22030 (eval "$ac_compile") 2>conftest.er1
22031 ac_status=$?
22032 grep -v '^ *+' conftest.er1 >conftest.err
22033 rm -f conftest.er1
22034 cat conftest.err >&5
22035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } && {
22037 test -z "$ac_c_werror_flag" ||
22038 test ! -s conftest.err
22039 } && test -s conftest.$ac_objext; then
22040 ac_cv_member_krb5_error_text=yes
22041 else
22042 $as_echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22045 cat >conftest.$ac_ext <<_ACEOF
22046 /* confdefs.h. */
22047 _ACEOF
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h. */
22051 #include <krb5.h>
22054 main ()
22056 static krb5_error ac_aggr;
22057 if (sizeof ac_aggr.text)
22058 return 0;
22060 return 0;
22062 _ACEOF
22063 rm -f conftest.$ac_objext
22064 if { (ac_try="$ac_compile"
22065 case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22068 esac
22069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22070 $as_echo "$ac_try_echo") >&5
22071 (eval "$ac_compile") 2>conftest.er1
22072 ac_status=$?
22073 grep -v '^ *+' conftest.er1 >conftest.err
22074 rm -f conftest.er1
22075 cat conftest.err >&5
22076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } && {
22078 test -z "$ac_c_werror_flag" ||
22079 test ! -s conftest.err
22080 } && test -s conftest.$ac_objext; then
22081 ac_cv_member_krb5_error_text=yes
22082 else
22083 $as_echo "$as_me: failed program was:" >&5
22084 sed 's/^/| /' conftest.$ac_ext >&5
22086 ac_cv_member_krb5_error_text=no
22089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22094 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22095 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22096 if test $ac_cv_member_krb5_error_text = yes; then
22098 cat >>confdefs.h <<_ACEOF
22099 #define HAVE_KRB5_ERROR_TEXT 1
22100 _ACEOF
22104 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22105 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22106 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22107 $as_echo_n "(cached) " >&6
22108 else
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. */
22115 #include <krb5.h>
22118 main ()
22120 static krb5_error ac_aggr;
22121 if (ac_aggr.e_text)
22122 return 0;
22124 return 0;
22126 _ACEOF
22127 rm -f conftest.$ac_objext
22128 if { (ac_try="$ac_compile"
22129 case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22132 esac
22133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22134 $as_echo "$ac_try_echo") >&5
22135 (eval "$ac_compile") 2>conftest.er1
22136 ac_status=$?
22137 grep -v '^ *+' conftest.er1 >conftest.err
22138 rm -f conftest.er1
22139 cat conftest.err >&5
22140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } && {
22142 test -z "$ac_c_werror_flag" ||
22143 test ! -s conftest.err
22144 } && test -s conftest.$ac_objext; then
22145 ac_cv_member_krb5_error_e_text=yes
22146 else
22147 $as_echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22150 cat >conftest.$ac_ext <<_ACEOF
22151 /* confdefs.h. */
22152 _ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h. */
22156 #include <krb5.h>
22159 main ()
22161 static krb5_error ac_aggr;
22162 if (sizeof ac_aggr.e_text)
22163 return 0;
22165 return 0;
22167 _ACEOF
22168 rm -f conftest.$ac_objext
22169 if { (ac_try="$ac_compile"
22170 case "(($ac_try" in
22171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172 *) ac_try_echo=$ac_try;;
22173 esac
22174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22175 $as_echo "$ac_try_echo") >&5
22176 (eval "$ac_compile") 2>conftest.er1
22177 ac_status=$?
22178 grep -v '^ *+' conftest.er1 >conftest.err
22179 rm -f conftest.er1
22180 cat conftest.err >&5
22181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } && {
22183 test -z "$ac_c_werror_flag" ||
22184 test ! -s conftest.err
22185 } && test -s conftest.$ac_objext; then
22186 ac_cv_member_krb5_error_e_text=yes
22187 else
22188 $as_echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.$ac_ext >&5
22191 ac_cv_member_krb5_error_e_text=no
22194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22199 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22200 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22201 if test $ac_cv_member_krb5_error_e_text = yes; then
22203 cat >>confdefs.h <<_ACEOF
22204 #define HAVE_KRB5_ERROR_E_TEXT 1
22205 _ACEOF
22212 done
22214 else
22216 for ac_header in des.h
22218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22221 $as_echo_n "checking for $ac_header... " >&6; }
22222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22223 $as_echo_n "(cached) " >&6
22225 ac_res=`eval 'as_val=${'$as_ac_Header'}
22226 $as_echo "$as_val"'`
22227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22228 $as_echo "$ac_res" >&6; }
22229 else
22230 # Is the header compilable?
22231 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22232 $as_echo_n "checking $ac_header usability... " >&6; }
22233 cat >conftest.$ac_ext <<_ACEOF
22234 /* confdefs.h. */
22235 _ACEOF
22236 cat confdefs.h >>conftest.$ac_ext
22237 cat >>conftest.$ac_ext <<_ACEOF
22238 /* end confdefs.h. */
22239 $ac_includes_default
22240 #include <$ac_header>
22241 _ACEOF
22242 rm -f conftest.$ac_objext
22243 if { (ac_try="$ac_compile"
22244 case "(($ac_try" in
22245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246 *) ac_try_echo=$ac_try;;
22247 esac
22248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22249 $as_echo "$ac_try_echo") >&5
22250 (eval "$ac_compile") 2>conftest.er1
22251 ac_status=$?
22252 grep -v '^ *+' conftest.er1 >conftest.err
22253 rm -f conftest.er1
22254 cat conftest.err >&5
22255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } && {
22257 test -z "$ac_c_werror_flag" ||
22258 test ! -s conftest.err
22259 } && test -s conftest.$ac_objext; then
22260 ac_header_compiler=yes
22261 else
22262 $as_echo "$as_me: failed program was:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22265 ac_header_compiler=no
22268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22270 $as_echo "$ac_header_compiler" >&6; }
22272 # Is the header present?
22273 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22274 $as_echo_n "checking $ac_header presence... " >&6; }
22275 cat >conftest.$ac_ext <<_ACEOF
22276 /* confdefs.h. */
22277 _ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h. */
22281 #include <$ac_header>
22282 _ACEOF
22283 if { (ac_try="$ac_cpp conftest.$ac_ext"
22284 case "(($ac_try" in
22285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22286 *) ac_try_echo=$ac_try;;
22287 esac
22288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22289 $as_echo "$ac_try_echo") >&5
22290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22291 ac_status=$?
22292 grep -v '^ *+' conftest.er1 >conftest.err
22293 rm -f conftest.er1
22294 cat conftest.err >&5
22295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } >/dev/null && {
22297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22298 test ! -s conftest.err
22299 }; then
22300 ac_header_preproc=yes
22301 else
22302 $as_echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22305 ac_header_preproc=no
22308 rm -f conftest.err conftest.$ac_ext
22309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22310 $as_echo "$ac_header_preproc" >&6; }
22312 # So? What about this header?
22313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22314 yes:no: )
22315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22316 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22319 ac_header_preproc=yes
22321 no:yes:* )
22322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22323 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22325 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22327 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22329 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22333 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22336 esac
22337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22338 $as_echo_n "checking for $ac_header... " >&6; }
22339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22340 $as_echo_n "(cached) " >&6
22341 else
22342 eval "$as_ac_Header=\$ac_header_preproc"
22344 ac_res=`eval 'as_val=${'$as_ac_Header'}
22345 $as_echo "$as_val"'`
22346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22347 $as_echo "$ac_res" >&6; }
22350 if test `eval 'as_val=${'$as_ac_Header'}
22351 $as_echo "$as_val"'` = yes; then
22352 cat >>confdefs.h <<_ACEOF
22353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22354 _ACEOF
22356 else
22358 for ac_header in kerberosIV/des.h
22360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22362 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22363 $as_echo_n "checking for $ac_header... " >&6; }
22364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22365 $as_echo_n "(cached) " >&6
22367 ac_res=`eval 'as_val=${'$as_ac_Header'}
22368 $as_echo "$as_val"'`
22369 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22370 $as_echo "$ac_res" >&6; }
22371 else
22372 # Is the header compilable?
22373 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22374 $as_echo_n "checking $ac_header usability... " >&6; }
22375 cat >conftest.$ac_ext <<_ACEOF
22376 /* confdefs.h. */
22377 _ACEOF
22378 cat confdefs.h >>conftest.$ac_ext
22379 cat >>conftest.$ac_ext <<_ACEOF
22380 /* end confdefs.h. */
22381 $ac_includes_default
22382 #include <$ac_header>
22383 _ACEOF
22384 rm -f conftest.$ac_objext
22385 if { (ac_try="$ac_compile"
22386 case "(($ac_try" in
22387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388 *) ac_try_echo=$ac_try;;
22389 esac
22390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22391 $as_echo "$ac_try_echo") >&5
22392 (eval "$ac_compile") 2>conftest.er1
22393 ac_status=$?
22394 grep -v '^ *+' conftest.er1 >conftest.err
22395 rm -f conftest.er1
22396 cat conftest.err >&5
22397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); } && {
22399 test -z "$ac_c_werror_flag" ||
22400 test ! -s conftest.err
22401 } && test -s conftest.$ac_objext; then
22402 ac_header_compiler=yes
22403 else
22404 $as_echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22407 ac_header_compiler=no
22410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22411 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22412 $as_echo "$ac_header_compiler" >&6; }
22414 # Is the header present?
22415 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22416 $as_echo_n "checking $ac_header presence... " >&6; }
22417 cat >conftest.$ac_ext <<_ACEOF
22418 /* confdefs.h. */
22419 _ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22423 #include <$ac_header>
22424 _ACEOF
22425 if { (ac_try="$ac_cpp conftest.$ac_ext"
22426 case "(($ac_try" in
22427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22428 *) ac_try_echo=$ac_try;;
22429 esac
22430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22431 $as_echo "$ac_try_echo") >&5
22432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22433 ac_status=$?
22434 grep -v '^ *+' conftest.er1 >conftest.err
22435 rm -f conftest.er1
22436 cat conftest.err >&5
22437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } >/dev/null && {
22439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22440 test ! -s conftest.err
22441 }; then
22442 ac_header_preproc=yes
22443 else
22444 $as_echo "$as_me: failed program was:" >&5
22445 sed 's/^/| /' conftest.$ac_ext >&5
22447 ac_header_preproc=no
22450 rm -f conftest.err conftest.$ac_ext
22451 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22452 $as_echo "$ac_header_preproc" >&6; }
22454 # So? What about this header?
22455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22456 yes:no: )
22457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22458 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22460 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22461 ac_header_preproc=yes
22463 no:yes:* )
22464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22465 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22467 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22469 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22471 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22473 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22475 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22478 esac
22479 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22480 $as_echo_n "checking for $ac_header... " >&6; }
22481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22482 $as_echo_n "(cached) " >&6
22483 else
22484 eval "$as_ac_Header=\$ac_header_preproc"
22486 ac_res=`eval 'as_val=${'$as_ac_Header'}
22487 $as_echo "$as_val"'`
22488 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22489 $as_echo "$ac_res" >&6; }
22492 if test `eval 'as_val=${'$as_ac_Header'}
22493 $as_echo "$as_val"'` = yes; then
22494 cat >>confdefs.h <<_ACEOF
22495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22496 _ACEOF
22498 else
22500 for ac_header in kerberos/des.h
22502 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22504 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22505 $as_echo_n "checking for $ac_header... " >&6; }
22506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22507 $as_echo_n "(cached) " >&6
22509 ac_res=`eval 'as_val=${'$as_ac_Header'}
22510 $as_echo "$as_val"'`
22511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22512 $as_echo "$ac_res" >&6; }
22513 else
22514 # Is the header compilable?
22515 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22516 $as_echo_n "checking $ac_header usability... " >&6; }
22517 cat >conftest.$ac_ext <<_ACEOF
22518 /* confdefs.h. */
22519 _ACEOF
22520 cat confdefs.h >>conftest.$ac_ext
22521 cat >>conftest.$ac_ext <<_ACEOF
22522 /* end confdefs.h. */
22523 $ac_includes_default
22524 #include <$ac_header>
22525 _ACEOF
22526 rm -f conftest.$ac_objext
22527 if { (ac_try="$ac_compile"
22528 case "(($ac_try" in
22529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530 *) ac_try_echo=$ac_try;;
22531 esac
22532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22533 $as_echo "$ac_try_echo") >&5
22534 (eval "$ac_compile") 2>conftest.er1
22535 ac_status=$?
22536 grep -v '^ *+' conftest.er1 >conftest.err
22537 rm -f conftest.er1
22538 cat conftest.err >&5
22539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); } && {
22541 test -z "$ac_c_werror_flag" ||
22542 test ! -s conftest.err
22543 } && test -s conftest.$ac_objext; then
22544 ac_header_compiler=yes
22545 else
22546 $as_echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22549 ac_header_compiler=no
22552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22553 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22554 $as_echo "$ac_header_compiler" >&6; }
22556 # Is the header present?
22557 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22558 $as_echo_n "checking $ac_header presence... " >&6; }
22559 cat >conftest.$ac_ext <<_ACEOF
22560 /* confdefs.h. */
22561 _ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h. */
22565 #include <$ac_header>
22566 _ACEOF
22567 if { (ac_try="$ac_cpp conftest.$ac_ext"
22568 case "(($ac_try" in
22569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570 *) ac_try_echo=$ac_try;;
22571 esac
22572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22573 $as_echo "$ac_try_echo") >&5
22574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22575 ac_status=$?
22576 grep -v '^ *+' conftest.er1 >conftest.err
22577 rm -f conftest.er1
22578 cat conftest.err >&5
22579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); } >/dev/null && {
22581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22582 test ! -s conftest.err
22583 }; then
22584 ac_header_preproc=yes
22585 else
22586 $as_echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22589 ac_header_preproc=no
22592 rm -f conftest.err conftest.$ac_ext
22593 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22594 $as_echo "$ac_header_preproc" >&6; }
22596 # So? What about this header?
22597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22598 yes:no: )
22599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22600 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22602 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22603 ac_header_preproc=yes
22605 no:yes:* )
22606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22607 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22609 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22611 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22613 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22615 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22617 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22620 esac
22621 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22622 $as_echo_n "checking for $ac_header... " >&6; }
22623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22624 $as_echo_n "(cached) " >&6
22625 else
22626 eval "$as_ac_Header=\$ac_header_preproc"
22628 ac_res=`eval 'as_val=${'$as_ac_Header'}
22629 $as_echo "$as_val"'`
22630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22631 $as_echo "$ac_res" >&6; }
22634 if test `eval 'as_val=${'$as_ac_Header'}
22635 $as_echo "$as_val"'` = yes; then
22636 cat >>confdefs.h <<_ACEOF
22637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22638 _ACEOF
22642 done
22646 done
22650 done
22653 for ac_header in krb.h
22655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22657 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22658 $as_echo_n "checking for $ac_header... " >&6; }
22659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22660 $as_echo_n "(cached) " >&6
22662 ac_res=`eval 'as_val=${'$as_ac_Header'}
22663 $as_echo "$as_val"'`
22664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22665 $as_echo "$ac_res" >&6; }
22666 else
22667 # Is the header compilable?
22668 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22669 $as_echo_n "checking $ac_header usability... " >&6; }
22670 cat >conftest.$ac_ext <<_ACEOF
22671 /* confdefs.h. */
22672 _ACEOF
22673 cat confdefs.h >>conftest.$ac_ext
22674 cat >>conftest.$ac_ext <<_ACEOF
22675 /* end confdefs.h. */
22676 $ac_includes_default
22677 #include <$ac_header>
22678 _ACEOF
22679 rm -f conftest.$ac_objext
22680 if { (ac_try="$ac_compile"
22681 case "(($ac_try" in
22682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22683 *) ac_try_echo=$ac_try;;
22684 esac
22685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22686 $as_echo "$ac_try_echo") >&5
22687 (eval "$ac_compile") 2>conftest.er1
22688 ac_status=$?
22689 grep -v '^ *+' conftest.er1 >conftest.err
22690 rm -f conftest.er1
22691 cat conftest.err >&5
22692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } && {
22694 test -z "$ac_c_werror_flag" ||
22695 test ! -s conftest.err
22696 } && test -s conftest.$ac_objext; then
22697 ac_header_compiler=yes
22698 else
22699 $as_echo "$as_me: failed program was:" >&5
22700 sed 's/^/| /' conftest.$ac_ext >&5
22702 ac_header_compiler=no
22705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22706 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22707 $as_echo "$ac_header_compiler" >&6; }
22709 # Is the header present?
22710 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22711 $as_echo_n "checking $ac_header presence... " >&6; }
22712 cat >conftest.$ac_ext <<_ACEOF
22713 /* confdefs.h. */
22714 _ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h. */
22718 #include <$ac_header>
22719 _ACEOF
22720 if { (ac_try="$ac_cpp conftest.$ac_ext"
22721 case "(($ac_try" in
22722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22723 *) ac_try_echo=$ac_try;;
22724 esac
22725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22726 $as_echo "$ac_try_echo") >&5
22727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22728 ac_status=$?
22729 grep -v '^ *+' conftest.er1 >conftest.err
22730 rm -f conftest.er1
22731 cat conftest.err >&5
22732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } >/dev/null && {
22734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22735 test ! -s conftest.err
22736 }; then
22737 ac_header_preproc=yes
22738 else
22739 $as_echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22742 ac_header_preproc=no
22745 rm -f conftest.err conftest.$ac_ext
22746 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22747 $as_echo "$ac_header_preproc" >&6; }
22749 # So? What about this header?
22750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22751 yes:no: )
22752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22753 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22755 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22756 ac_header_preproc=yes
22758 no:yes:* )
22759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22760 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22762 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22764 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22766 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22768 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22770 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22773 esac
22774 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22775 $as_echo_n "checking for $ac_header... " >&6; }
22776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22777 $as_echo_n "(cached) " >&6
22778 else
22779 eval "$as_ac_Header=\$ac_header_preproc"
22781 ac_res=`eval 'as_val=${'$as_ac_Header'}
22782 $as_echo "$as_val"'`
22783 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22784 $as_echo "$ac_res" >&6; }
22787 if test `eval 'as_val=${'$as_ac_Header'}
22788 $as_echo "$as_val"'` = yes; then
22789 cat >>confdefs.h <<_ACEOF
22790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22791 _ACEOF
22793 else
22795 for ac_header in kerberosIV/krb.h
22797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22800 $as_echo_n "checking for $ac_header... " >&6; }
22801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22802 $as_echo_n "(cached) " >&6
22804 ac_res=`eval 'as_val=${'$as_ac_Header'}
22805 $as_echo "$as_val"'`
22806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22807 $as_echo "$ac_res" >&6; }
22808 else
22809 # Is the header compilable?
22810 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22811 $as_echo_n "checking $ac_header usability... " >&6; }
22812 cat >conftest.$ac_ext <<_ACEOF
22813 /* confdefs.h. */
22814 _ACEOF
22815 cat confdefs.h >>conftest.$ac_ext
22816 cat >>conftest.$ac_ext <<_ACEOF
22817 /* end confdefs.h. */
22818 $ac_includes_default
22819 #include <$ac_header>
22820 _ACEOF
22821 rm -f conftest.$ac_objext
22822 if { (ac_try="$ac_compile"
22823 case "(($ac_try" in
22824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825 *) ac_try_echo=$ac_try;;
22826 esac
22827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22828 $as_echo "$ac_try_echo") >&5
22829 (eval "$ac_compile") 2>conftest.er1
22830 ac_status=$?
22831 grep -v '^ *+' conftest.er1 >conftest.err
22832 rm -f conftest.er1
22833 cat conftest.err >&5
22834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); } && {
22836 test -z "$ac_c_werror_flag" ||
22837 test ! -s conftest.err
22838 } && test -s conftest.$ac_objext; then
22839 ac_header_compiler=yes
22840 else
22841 $as_echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22844 ac_header_compiler=no
22847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22848 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22849 $as_echo "$ac_header_compiler" >&6; }
22851 # Is the header present?
22852 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22853 $as_echo_n "checking $ac_header presence... " >&6; }
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 <$ac_header>
22861 _ACEOF
22862 if { (ac_try="$ac_cpp conftest.$ac_ext"
22863 case "(($ac_try" in
22864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865 *) ac_try_echo=$ac_try;;
22866 esac
22867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22868 $as_echo "$ac_try_echo") >&5
22869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22870 ac_status=$?
22871 grep -v '^ *+' conftest.er1 >conftest.err
22872 rm -f conftest.er1
22873 cat conftest.err >&5
22874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); } >/dev/null && {
22876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22877 test ! -s conftest.err
22878 }; then
22879 ac_header_preproc=yes
22880 else
22881 $as_echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22884 ac_header_preproc=no
22887 rm -f conftest.err conftest.$ac_ext
22888 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22889 $as_echo "$ac_header_preproc" >&6; }
22891 # So? What about this header?
22892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22893 yes:no: )
22894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22895 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22897 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22898 ac_header_preproc=yes
22900 no:yes:* )
22901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22902 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22904 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22906 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22908 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22910 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22912 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22915 esac
22916 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22917 $as_echo_n "checking for $ac_header... " >&6; }
22918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22919 $as_echo_n "(cached) " >&6
22920 else
22921 eval "$as_ac_Header=\$ac_header_preproc"
22923 ac_res=`eval 'as_val=${'$as_ac_Header'}
22924 $as_echo "$as_val"'`
22925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22926 $as_echo "$ac_res" >&6; }
22929 if test `eval 'as_val=${'$as_ac_Header'}
22930 $as_echo "$as_val"'` = yes; then
22931 cat >>confdefs.h <<_ACEOF
22932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22933 _ACEOF
22935 else
22937 for ac_header in kerberos/krb.h
22939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22942 $as_echo_n "checking for $ac_header... " >&6; }
22943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22944 $as_echo_n "(cached) " >&6
22946 ac_res=`eval 'as_val=${'$as_ac_Header'}
22947 $as_echo "$as_val"'`
22948 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22949 $as_echo "$ac_res" >&6; }
22950 else
22951 # Is the header compilable?
22952 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22953 $as_echo_n "checking $ac_header usability... " >&6; }
22954 cat >conftest.$ac_ext <<_ACEOF
22955 /* confdefs.h. */
22956 _ACEOF
22957 cat confdefs.h >>conftest.$ac_ext
22958 cat >>conftest.$ac_ext <<_ACEOF
22959 /* end confdefs.h. */
22960 $ac_includes_default
22961 #include <$ac_header>
22962 _ACEOF
22963 rm -f conftest.$ac_objext
22964 if { (ac_try="$ac_compile"
22965 case "(($ac_try" in
22966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967 *) ac_try_echo=$ac_try;;
22968 esac
22969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22970 $as_echo "$ac_try_echo") >&5
22971 (eval "$ac_compile") 2>conftest.er1
22972 ac_status=$?
22973 grep -v '^ *+' conftest.er1 >conftest.err
22974 rm -f conftest.er1
22975 cat conftest.err >&5
22976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest.$ac_objext; then
22981 ac_header_compiler=yes
22982 else
22983 $as_echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22986 ac_header_compiler=no
22989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22990 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22991 $as_echo "$ac_header_compiler" >&6; }
22993 # Is the header present?
22994 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22995 $as_echo_n "checking $ac_header presence... " >&6; }
22996 cat >conftest.$ac_ext <<_ACEOF
22997 /* confdefs.h. */
22998 _ACEOF
22999 cat confdefs.h >>conftest.$ac_ext
23000 cat >>conftest.$ac_ext <<_ACEOF
23001 /* end confdefs.h. */
23002 #include <$ac_header>
23003 _ACEOF
23004 if { (ac_try="$ac_cpp conftest.$ac_ext"
23005 case "(($ac_try" in
23006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23007 *) ac_try_echo=$ac_try;;
23008 esac
23009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23010 $as_echo "$ac_try_echo") >&5
23011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23012 ac_status=$?
23013 grep -v '^ *+' conftest.er1 >conftest.err
23014 rm -f conftest.er1
23015 cat conftest.err >&5
23016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } >/dev/null && {
23018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23020 }; then
23021 ac_header_preproc=yes
23022 else
23023 $as_echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23026 ac_header_preproc=no
23029 rm -f conftest.err conftest.$ac_ext
23030 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23031 $as_echo "$ac_header_preproc" >&6; }
23033 # So? What about this header?
23034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23035 yes:no: )
23036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23037 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23039 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23040 ac_header_preproc=yes
23042 no:yes:* )
23043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23044 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23046 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23048 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23050 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23052 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23054 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23057 esac
23058 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23059 $as_echo_n "checking for $ac_header... " >&6; }
23060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23061 $as_echo_n "(cached) " >&6
23062 else
23063 eval "$as_ac_Header=\$ac_header_preproc"
23065 ac_res=`eval 'as_val=${'$as_ac_Header'}
23066 $as_echo "$as_val"'`
23067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23068 $as_echo "$ac_res" >&6; }
23071 if test `eval 'as_val=${'$as_ac_Header'}
23072 $as_echo "$as_val"'` = yes; then
23073 cat >>confdefs.h <<_ACEOF
23074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23075 _ACEOF
23079 done
23083 done
23087 done
23091 for ac_header in com_err.h
23093 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23095 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23096 $as_echo_n "checking for $ac_header... " >&6; }
23097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23098 $as_echo_n "(cached) " >&6
23100 ac_res=`eval 'as_val=${'$as_ac_Header'}
23101 $as_echo "$as_val"'`
23102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23103 $as_echo "$ac_res" >&6; }
23104 else
23105 # Is the header compilable?
23106 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23107 $as_echo_n "checking $ac_header usability... " >&6; }
23108 cat >conftest.$ac_ext <<_ACEOF
23109 /* confdefs.h. */
23110 _ACEOF
23111 cat confdefs.h >>conftest.$ac_ext
23112 cat >>conftest.$ac_ext <<_ACEOF
23113 /* end confdefs.h. */
23114 $ac_includes_default
23115 #include <$ac_header>
23116 _ACEOF
23117 rm -f conftest.$ac_objext
23118 if { (ac_try="$ac_compile"
23119 case "(($ac_try" in
23120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121 *) ac_try_echo=$ac_try;;
23122 esac
23123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23124 $as_echo "$ac_try_echo") >&5
23125 (eval "$ac_compile") 2>conftest.er1
23126 ac_status=$?
23127 grep -v '^ *+' conftest.er1 >conftest.err
23128 rm -f conftest.er1
23129 cat conftest.err >&5
23130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } && {
23132 test -z "$ac_c_werror_flag" ||
23133 test ! -s conftest.err
23134 } && test -s conftest.$ac_objext; then
23135 ac_header_compiler=yes
23136 else
23137 $as_echo "$as_me: failed program was:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23140 ac_header_compiler=no
23143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23145 $as_echo "$ac_header_compiler" >&6; }
23147 # Is the header present?
23148 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23149 $as_echo_n "checking $ac_header presence... " >&6; }
23150 cat >conftest.$ac_ext <<_ACEOF
23151 /* confdefs.h. */
23152 _ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h. */
23156 #include <$ac_header>
23157 _ACEOF
23158 if { (ac_try="$ac_cpp conftest.$ac_ext"
23159 case "(($ac_try" in
23160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161 *) ac_try_echo=$ac_try;;
23162 esac
23163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23164 $as_echo "$ac_try_echo") >&5
23165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23166 ac_status=$?
23167 grep -v '^ *+' conftest.er1 >conftest.err
23168 rm -f conftest.er1
23169 cat conftest.err >&5
23170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); } >/dev/null && {
23172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23173 test ! -s conftest.err
23174 }; then
23175 ac_header_preproc=yes
23176 else
23177 $as_echo "$as_me: failed program was:" >&5
23178 sed 's/^/| /' conftest.$ac_ext >&5
23180 ac_header_preproc=no
23183 rm -f conftest.err conftest.$ac_ext
23184 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23185 $as_echo "$ac_header_preproc" >&6; }
23187 # So? What about this header?
23188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23189 yes:no: )
23190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23191 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23194 ac_header_preproc=yes
23196 no:yes:* )
23197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23198 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23200 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23202 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23204 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23206 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23208 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23211 esac
23212 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23213 $as_echo_n "checking for $ac_header... " >&6; }
23214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23215 $as_echo_n "(cached) " >&6
23216 else
23217 eval "$as_ac_Header=\$ac_header_preproc"
23219 ac_res=`eval 'as_val=${'$as_ac_Header'}
23220 $as_echo "$as_val"'`
23221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23222 $as_echo "$ac_res" >&6; }
23225 if test `eval 'as_val=${'$as_ac_Header'}
23226 $as_echo "$as_val"'` = yes; then
23227 cat >>confdefs.h <<_ACEOF
23228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23229 _ACEOF
23233 done
23237 # Solaris requires -lintl if you want strerror (which calls dgettext)
23238 # to return localized messages.
23240 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23241 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23242 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23243 $as_echo_n "(cached) " >&6
23244 else
23245 ac_check_lib_save_LIBS=$LIBS
23246 LIBS="-lintl $LIBS"
23247 cat >conftest.$ac_ext <<_ACEOF
23248 /* confdefs.h. */
23249 _ACEOF
23250 cat confdefs.h >>conftest.$ac_ext
23251 cat >>conftest.$ac_ext <<_ACEOF
23252 /* end confdefs.h. */
23254 /* Override any GCC internal prototype to avoid an error.
23255 Use char because int might match the return type of a GCC
23256 builtin and then its argument prototype would still apply. */
23257 #ifdef __cplusplus
23258 extern "C"
23259 #endif
23260 char dgettext ();
23262 main ()
23264 return dgettext ();
23266 return 0;
23268 _ACEOF
23269 rm -f conftest.$ac_objext conftest$ac_exeext
23270 if { (ac_try="$ac_link"
23271 case "(($ac_try" in
23272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23273 *) ac_try_echo=$ac_try;;
23274 esac
23275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23276 $as_echo "$ac_try_echo") >&5
23277 (eval "$ac_link") 2>conftest.er1
23278 ac_status=$?
23279 grep -v '^ *+' conftest.er1 >conftest.err
23280 rm -f conftest.er1
23281 cat conftest.err >&5
23282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); } && {
23284 test -z "$ac_c_werror_flag" ||
23285 test ! -s conftest.err
23286 } && test -s conftest$ac_exeext && {
23287 test "$cross_compiling" = yes ||
23288 $as_test_x conftest$ac_exeext
23289 }; then
23290 ac_cv_lib_intl_dgettext=yes
23291 else
23292 $as_echo "$as_me: failed program was:" >&5
23293 sed 's/^/| /' conftest.$ac_ext >&5
23295 ac_cv_lib_intl_dgettext=no
23298 rm -rf conftest.dSYM
23299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23300 conftest$ac_exeext conftest.$ac_ext
23301 LIBS=$ac_check_lib_save_LIBS
23303 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23304 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23305 if test $ac_cv_lib_intl_dgettext = yes; then
23306 cat >>confdefs.h <<_ACEOF
23307 #define HAVE_LIBINTL 1
23308 _ACEOF
23310 LIBS="-lintl $LIBS"
23315 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23316 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23317 if test "${emacs_cv_localtime_cache+set}" = set; then
23318 $as_echo_n "(cached) " >&6
23319 else
23320 if test x$ac_cv_func_tzset = xyes; then
23321 if test "$cross_compiling" = yes; then
23322 # If we have tzset, assume the worst when cross-compiling.
23323 emacs_cv_localtime_cache=yes
23324 else
23325 cat >conftest.$ac_ext <<_ACEOF
23326 /* confdefs.h. */
23327 _ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h. */
23331 #include <time.h>
23332 extern char **environ;
23333 unset_TZ ()
23335 char **from, **to;
23336 for (to = from = environ; (*to = *from); from++)
23337 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23338 to++;
23340 char TZ_GMT0[] = "TZ=GMT0";
23341 char TZ_PST8[] = "TZ=PST8";
23342 main()
23344 time_t now = time ((time_t *) 0);
23345 int hour_GMT0, hour_unset;
23346 if (putenv (TZ_GMT0) != 0)
23347 exit (1);
23348 hour_GMT0 = localtime (&now)->tm_hour;
23349 unset_TZ ();
23350 hour_unset = localtime (&now)->tm_hour;
23351 if (putenv (TZ_PST8) != 0)
23352 exit (1);
23353 if (localtime (&now)->tm_hour == hour_GMT0)
23354 exit (1);
23355 unset_TZ ();
23356 if (localtime (&now)->tm_hour != hour_unset)
23357 exit (1);
23358 exit (0);
23360 _ACEOF
23361 rm -f conftest$ac_exeext
23362 if { (ac_try="$ac_link"
23363 case "(($ac_try" in
23364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23366 esac
23367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23368 $as_echo "$ac_try_echo") >&5
23369 (eval "$ac_link") 2>&5
23370 ac_status=$?
23371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23373 { (case "(($ac_try" in
23374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375 *) ac_try_echo=$ac_try;;
23376 esac
23377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23378 $as_echo "$ac_try_echo") >&5
23379 (eval "$ac_try") 2>&5
23380 ac_status=$?
23381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); }; }; then
23383 emacs_cv_localtime_cache=no
23384 else
23385 $as_echo "$as_me: program exited with status $ac_status" >&5
23386 $as_echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23389 ( exit $ac_status )
23390 emacs_cv_localtime_cache=yes
23392 rm -rf conftest.dSYM
23393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23397 else
23398 # If we lack tzset, report that localtime does not cache TZ,
23399 # since we can't invalidate the cache if we don't have tzset.
23400 emacs_cv_localtime_cache=no
23403 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23404 $as_echo "$emacs_cv_localtime_cache" >&6; }
23405 if test $emacs_cv_localtime_cache = yes; then
23407 cat >>confdefs.h <<\_ACEOF
23408 #define LOCALTIME_CACHE 1
23409 _ACEOF
23413 if test "x$HAVE_TIMEVAL" = xyes; then
23415 for ac_func in gettimeofday
23417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23418 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23419 $as_echo_n "checking for $ac_func... " >&6; }
23420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23421 $as_echo_n "(cached) " >&6
23422 else
23423 cat >conftest.$ac_ext <<_ACEOF
23424 /* confdefs.h. */
23425 _ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h. */
23429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23431 #define $ac_func innocuous_$ac_func
23433 /* System header to define __stub macros and hopefully few prototypes,
23434 which can conflict with char $ac_func (); below.
23435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23436 <limits.h> exists even on freestanding compilers. */
23438 #ifdef __STDC__
23439 # include <limits.h>
23440 #else
23441 # include <assert.h>
23442 #endif
23444 #undef $ac_func
23446 /* Override any GCC internal prototype to avoid an error.
23447 Use char because int might match the return type of a GCC
23448 builtin and then its argument prototype would still apply. */
23449 #ifdef __cplusplus
23450 extern "C"
23451 #endif
23452 char $ac_func ();
23453 /* The GNU C library defines this for functions which it implements
23454 to always fail with ENOSYS. Some functions are actually named
23455 something starting with __ and the normal name is an alias. */
23456 #if defined __stub_$ac_func || defined __stub___$ac_func
23457 choke me
23458 #endif
23461 main ()
23463 return $ac_func ();
23465 return 0;
23467 _ACEOF
23468 rm -f conftest.$ac_objext conftest$ac_exeext
23469 if { (ac_try="$ac_link"
23470 case "(($ac_try" in
23471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23472 *) ac_try_echo=$ac_try;;
23473 esac
23474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23475 $as_echo "$ac_try_echo") >&5
23476 (eval "$ac_link") 2>conftest.er1
23477 ac_status=$?
23478 grep -v '^ *+' conftest.er1 >conftest.err
23479 rm -f conftest.er1
23480 cat conftest.err >&5
23481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); } && {
23483 test -z "$ac_c_werror_flag" ||
23484 test ! -s conftest.err
23485 } && test -s conftest$ac_exeext && {
23486 test "$cross_compiling" = yes ||
23487 $as_test_x conftest$ac_exeext
23488 }; then
23489 eval "$as_ac_var=yes"
23490 else
23491 $as_echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23494 eval "$as_ac_var=no"
23497 rm -rf conftest.dSYM
23498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23499 conftest$ac_exeext conftest.$ac_ext
23501 ac_res=`eval 'as_val=${'$as_ac_var'}
23502 $as_echo "$as_val"'`
23503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23504 $as_echo "$ac_res" >&6; }
23505 if test `eval 'as_val=${'$as_ac_var'}
23506 $as_echo "$as_val"'` = yes; then
23507 cat >>confdefs.h <<_ACEOF
23508 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23509 _ACEOF
23512 done
23514 if test $ac_cv_func_gettimeofday = yes; then
23515 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23516 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23517 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23518 $as_echo_n "(cached) " >&6
23519 else
23520 cat >conftest.$ac_ext <<_ACEOF
23521 /* confdefs.h. */
23522 _ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h. */
23527 #ifdef TIME_WITH_SYS_TIME
23528 #include <sys/time.h>
23529 #include <time.h>
23530 #else
23531 #ifdef HAVE_SYS_TIME_H
23532 #include <sys/time.h>
23533 #else
23534 #include <time.h>
23535 #endif
23536 #endif
23538 main ()
23540 struct timeval time;
23541 gettimeofday (&time, 0);
23543 return 0;
23545 _ACEOF
23546 rm -f conftest.$ac_objext
23547 if { (ac_try="$ac_compile"
23548 case "(($ac_try" in
23549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23550 *) ac_try_echo=$ac_try;;
23551 esac
23552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23553 $as_echo "$ac_try_echo") >&5
23554 (eval "$ac_compile") 2>conftest.er1
23555 ac_status=$?
23556 grep -v '^ *+' conftest.er1 >conftest.err
23557 rm -f conftest.er1
23558 cat conftest.err >&5
23559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); } && {
23561 test -z "$ac_c_werror_flag" ||
23562 test ! -s conftest.err
23563 } && test -s conftest.$ac_objext; then
23564 emacs_cv_gettimeofday_two_arguments=yes
23565 else
23566 $as_echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23569 emacs_cv_gettimeofday_two_arguments=no
23572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23574 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23575 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23576 if test $emacs_cv_gettimeofday_two_arguments = no; then
23578 cat >>confdefs.h <<\_ACEOF
23579 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23580 _ACEOF
23586 ok_so_far=yes
23587 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23588 $as_echo_n "checking for socket... " >&6; }
23589 if test "${ac_cv_func_socket+set}" = set; then
23590 $as_echo_n "(cached) " >&6
23591 else
23592 cat >conftest.$ac_ext <<_ACEOF
23593 /* confdefs.h. */
23594 _ACEOF
23595 cat confdefs.h >>conftest.$ac_ext
23596 cat >>conftest.$ac_ext <<_ACEOF
23597 /* end confdefs.h. */
23598 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23600 #define socket innocuous_socket
23602 /* System header to define __stub macros and hopefully few prototypes,
23603 which can conflict with char socket (); below.
23604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23605 <limits.h> exists even on freestanding compilers. */
23607 #ifdef __STDC__
23608 # include <limits.h>
23609 #else
23610 # include <assert.h>
23611 #endif
23613 #undef socket
23615 /* Override any GCC internal prototype to avoid an error.
23616 Use char because int might match the return type of a GCC
23617 builtin and then its argument prototype would still apply. */
23618 #ifdef __cplusplus
23619 extern "C"
23620 #endif
23621 char socket ();
23622 /* The GNU C library defines this for functions which it implements
23623 to always fail with ENOSYS. Some functions are actually named
23624 something starting with __ and the normal name is an alias. */
23625 #if defined __stub_socket || defined __stub___socket
23626 choke me
23627 #endif
23630 main ()
23632 return socket ();
23634 return 0;
23636 _ACEOF
23637 rm -f conftest.$ac_objext conftest$ac_exeext
23638 if { (ac_try="$ac_link"
23639 case "(($ac_try" in
23640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23641 *) ac_try_echo=$ac_try;;
23642 esac
23643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23644 $as_echo "$ac_try_echo") >&5
23645 (eval "$ac_link") 2>conftest.er1
23646 ac_status=$?
23647 grep -v '^ *+' conftest.er1 >conftest.err
23648 rm -f conftest.er1
23649 cat conftest.err >&5
23650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); } && {
23652 test -z "$ac_c_werror_flag" ||
23653 test ! -s conftest.err
23654 } && test -s conftest$ac_exeext && {
23655 test "$cross_compiling" = yes ||
23656 $as_test_x conftest$ac_exeext
23657 }; then
23658 ac_cv_func_socket=yes
23659 else
23660 $as_echo "$as_me: failed program was:" >&5
23661 sed 's/^/| /' conftest.$ac_ext >&5
23663 ac_cv_func_socket=no
23666 rm -rf conftest.dSYM
23667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23668 conftest$ac_exeext conftest.$ac_ext
23670 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23671 $as_echo "$ac_cv_func_socket" >&6; }
23672 if test $ac_cv_func_socket = yes; then
23674 else
23675 ok_so_far=no
23678 if test $ok_so_far = yes; then
23679 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23680 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23681 $as_echo_n "checking for netinet/in.h... " >&6; }
23682 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23683 $as_echo_n "(cached) " >&6
23685 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23686 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23687 else
23688 # Is the header compilable?
23689 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23690 $as_echo_n "checking netinet/in.h usability... " >&6; }
23691 cat >conftest.$ac_ext <<_ACEOF
23692 /* confdefs.h. */
23693 _ACEOF
23694 cat confdefs.h >>conftest.$ac_ext
23695 cat >>conftest.$ac_ext <<_ACEOF
23696 /* end confdefs.h. */
23697 $ac_includes_default
23698 #include <netinet/in.h>
23699 _ACEOF
23700 rm -f conftest.$ac_objext
23701 if { (ac_try="$ac_compile"
23702 case "(($ac_try" in
23703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23704 *) ac_try_echo=$ac_try;;
23705 esac
23706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23707 $as_echo "$ac_try_echo") >&5
23708 (eval "$ac_compile") 2>conftest.er1
23709 ac_status=$?
23710 grep -v '^ *+' conftest.er1 >conftest.err
23711 rm -f conftest.er1
23712 cat conftest.err >&5
23713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); } && {
23715 test -z "$ac_c_werror_flag" ||
23716 test ! -s conftest.err
23717 } && test -s conftest.$ac_objext; then
23718 ac_header_compiler=yes
23719 else
23720 $as_echo "$as_me: failed program was:" >&5
23721 sed 's/^/| /' conftest.$ac_ext >&5
23723 ac_header_compiler=no
23726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23727 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23728 $as_echo "$ac_header_compiler" >&6; }
23730 # Is the header present?
23731 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23732 $as_echo_n "checking netinet/in.h presence... " >&6; }
23733 cat >conftest.$ac_ext <<_ACEOF
23734 /* confdefs.h. */
23735 _ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h. */
23739 #include <netinet/in.h>
23740 _ACEOF
23741 if { (ac_try="$ac_cpp conftest.$ac_ext"
23742 case "(($ac_try" in
23743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23744 *) ac_try_echo=$ac_try;;
23745 esac
23746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23747 $as_echo "$ac_try_echo") >&5
23748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23749 ac_status=$?
23750 grep -v '^ *+' conftest.er1 >conftest.err
23751 rm -f conftest.er1
23752 cat conftest.err >&5
23753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } >/dev/null && {
23755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23756 test ! -s conftest.err
23757 }; then
23758 ac_header_preproc=yes
23759 else
23760 $as_echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23763 ac_header_preproc=no
23766 rm -f conftest.err conftest.$ac_ext
23767 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23768 $as_echo "$ac_header_preproc" >&6; }
23770 # So? What about this header?
23771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23772 yes:no: )
23773 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23774 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23775 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23776 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23777 ac_header_preproc=yes
23779 no:yes:* )
23780 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23781 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23782 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23783 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23784 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23785 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23786 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23787 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23788 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23789 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23790 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23791 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23794 esac
23795 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23796 $as_echo_n "checking for netinet/in.h... " >&6; }
23797 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23798 $as_echo_n "(cached) " >&6
23799 else
23800 ac_cv_header_netinet_in_h=$ac_header_preproc
23802 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23803 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23806 if test $ac_cv_header_netinet_in_h = yes; then
23808 else
23809 ok_so_far=no
23814 if test $ok_so_far = yes; then
23815 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23816 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23817 $as_echo_n "checking for arpa/inet.h... " >&6; }
23818 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23819 $as_echo_n "(cached) " >&6
23821 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23822 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23823 else
23824 # Is the header compilable?
23825 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23826 $as_echo_n "checking arpa/inet.h usability... " >&6; }
23827 cat >conftest.$ac_ext <<_ACEOF
23828 /* confdefs.h. */
23829 _ACEOF
23830 cat confdefs.h >>conftest.$ac_ext
23831 cat >>conftest.$ac_ext <<_ACEOF
23832 /* end confdefs.h. */
23833 $ac_includes_default
23834 #include <arpa/inet.h>
23835 _ACEOF
23836 rm -f conftest.$ac_objext
23837 if { (ac_try="$ac_compile"
23838 case "(($ac_try" in
23839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23840 *) ac_try_echo=$ac_try;;
23841 esac
23842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23843 $as_echo "$ac_try_echo") >&5
23844 (eval "$ac_compile") 2>conftest.er1
23845 ac_status=$?
23846 grep -v '^ *+' conftest.er1 >conftest.err
23847 rm -f conftest.er1
23848 cat conftest.err >&5
23849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); } && {
23851 test -z "$ac_c_werror_flag" ||
23852 test ! -s conftest.err
23853 } && test -s conftest.$ac_objext; then
23854 ac_header_compiler=yes
23855 else
23856 $as_echo "$as_me: failed program was:" >&5
23857 sed 's/^/| /' conftest.$ac_ext >&5
23859 ac_header_compiler=no
23862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23863 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23864 $as_echo "$ac_header_compiler" >&6; }
23866 # Is the header present?
23867 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23868 $as_echo_n "checking arpa/inet.h presence... " >&6; }
23869 cat >conftest.$ac_ext <<_ACEOF
23870 /* confdefs.h. */
23871 _ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h. */
23875 #include <arpa/inet.h>
23876 _ACEOF
23877 if { (ac_try="$ac_cpp conftest.$ac_ext"
23878 case "(($ac_try" in
23879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23880 *) ac_try_echo=$ac_try;;
23881 esac
23882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23883 $as_echo "$ac_try_echo") >&5
23884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23885 ac_status=$?
23886 grep -v '^ *+' conftest.er1 >conftest.err
23887 rm -f conftest.er1
23888 cat conftest.err >&5
23889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); } >/dev/null && {
23891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23892 test ! -s conftest.err
23893 }; then
23894 ac_header_preproc=yes
23895 else
23896 $as_echo "$as_me: failed program was:" >&5
23897 sed 's/^/| /' conftest.$ac_ext >&5
23899 ac_header_preproc=no
23902 rm -f conftest.err conftest.$ac_ext
23903 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23904 $as_echo "$ac_header_preproc" >&6; }
23906 # So? What about this header?
23907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23908 yes:no: )
23909 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23910 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23911 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23912 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23913 ac_header_preproc=yes
23915 no:yes:* )
23916 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23917 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23918 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23919 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23920 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23921 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23922 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23923 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23924 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23925 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23926 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23927 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23930 esac
23931 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23932 $as_echo_n "checking for arpa/inet.h... " >&6; }
23933 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23934 $as_echo_n "(cached) " >&6
23935 else
23936 ac_cv_header_arpa_inet_h=$ac_header_preproc
23938 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23939 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23942 if test $ac_cv_header_arpa_inet_h = yes; then
23944 else
23945 ok_so_far=no
23950 if test $ok_so_far = yes; then
23952 cat >>confdefs.h <<\_ACEOF
23953 #define HAVE_INET_SOCKETS 1
23954 _ACEOF
23959 for ac_header in sys/ioctl.h
23961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23963 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23964 $as_echo_n "checking for $ac_header... " >&6; }
23965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23966 $as_echo_n "(cached) " >&6
23968 ac_res=`eval 'as_val=${'$as_ac_Header'}
23969 $as_echo "$as_val"'`
23970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23971 $as_echo "$ac_res" >&6; }
23972 else
23973 # Is the header compilable?
23974 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23975 $as_echo_n "checking $ac_header usability... " >&6; }
23976 cat >conftest.$ac_ext <<_ACEOF
23977 /* confdefs.h. */
23978 _ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23982 $ac_includes_default
23983 #include <$ac_header>
23984 _ACEOF
23985 rm -f conftest.$ac_objext
23986 if { (ac_try="$ac_compile"
23987 case "(($ac_try" in
23988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23989 *) ac_try_echo=$ac_try;;
23990 esac
23991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23992 $as_echo "$ac_try_echo") >&5
23993 (eval "$ac_compile") 2>conftest.er1
23994 ac_status=$?
23995 grep -v '^ *+' conftest.er1 >conftest.err
23996 rm -f conftest.er1
23997 cat conftest.err >&5
23998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } && {
24000 test -z "$ac_c_werror_flag" ||
24001 test ! -s conftest.err
24002 } && test -s conftest.$ac_objext; then
24003 ac_header_compiler=yes
24004 else
24005 $as_echo "$as_me: failed program was:" >&5
24006 sed 's/^/| /' conftest.$ac_ext >&5
24008 ac_header_compiler=no
24011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24012 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24013 $as_echo "$ac_header_compiler" >&6; }
24015 # Is the header present?
24016 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24017 $as_echo_n "checking $ac_header presence... " >&6; }
24018 cat >conftest.$ac_ext <<_ACEOF
24019 /* confdefs.h. */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24024 #include <$ac_header>
24025 _ACEOF
24026 if { (ac_try="$ac_cpp conftest.$ac_ext"
24027 case "(($ac_try" in
24028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24029 *) ac_try_echo=$ac_try;;
24030 esac
24031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24032 $as_echo "$ac_try_echo") >&5
24033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24034 ac_status=$?
24035 grep -v '^ *+' conftest.er1 >conftest.err
24036 rm -f conftest.er1
24037 cat conftest.err >&5
24038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); } >/dev/null && {
24040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24041 test ! -s conftest.err
24042 }; then
24043 ac_header_preproc=yes
24044 else
24045 $as_echo "$as_me: failed program was:" >&5
24046 sed 's/^/| /' conftest.$ac_ext >&5
24048 ac_header_preproc=no
24051 rm -f conftest.err conftest.$ac_ext
24052 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24053 $as_echo "$ac_header_preproc" >&6; }
24055 # So? What about this header?
24056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24057 yes:no: )
24058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24059 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24062 ac_header_preproc=yes
24064 no:yes:* )
24065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24066 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24068 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24070 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24072 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24076 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24079 esac
24080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24081 $as_echo_n "checking for $ac_header... " >&6; }
24082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24083 $as_echo_n "(cached) " >&6
24084 else
24085 eval "$as_ac_Header=\$ac_header_preproc"
24087 ac_res=`eval 'as_val=${'$as_ac_Header'}
24088 $as_echo "$as_val"'`
24089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24090 $as_echo "$ac_res" >&6; }
24093 if test `eval 'as_val=${'$as_ac_Header'}
24094 $as_echo "$as_val"'` = yes; then
24095 cat >>confdefs.h <<_ACEOF
24096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24097 _ACEOF
24101 done
24104 if test -f /usr/lpp/X11/bin/smt.exp; then
24106 cat >>confdefs.h <<\_ACEOF
24107 #define HAVE_AIX_SMT_EXP 1
24108 _ACEOF
24112 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24113 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24114 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24115 { $as_echo "$as_me:$LINENO: result: yes" >&5
24116 $as_echo "yes" >&6; }
24118 cat >>confdefs.h <<\_ACEOF
24119 #define HAVE_DEV_PTMX 1
24120 _ACEOF
24122 else
24123 { $as_echo "$as_me:$LINENO: result: no" >&5
24124 $as_echo "no" >&6; }
24127 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24128 $as_echo_n "checking for pid_t... " >&6; }
24129 if test "${ac_cv_type_pid_t+set}" = set; then
24130 $as_echo_n "(cached) " >&6
24131 else
24132 ac_cv_type_pid_t=no
24133 cat >conftest.$ac_ext <<_ACEOF
24134 /* confdefs.h. */
24135 _ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h. */
24139 $ac_includes_default
24141 main ()
24143 if (sizeof (pid_t))
24144 return 0;
24146 return 0;
24148 _ACEOF
24149 rm -f conftest.$ac_objext
24150 if { (ac_try="$ac_compile"
24151 case "(($ac_try" in
24152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24153 *) ac_try_echo=$ac_try;;
24154 esac
24155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24156 $as_echo "$ac_try_echo") >&5
24157 (eval "$ac_compile") 2>conftest.er1
24158 ac_status=$?
24159 grep -v '^ *+' conftest.er1 >conftest.err
24160 rm -f conftest.er1
24161 cat conftest.err >&5
24162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); } && {
24164 test -z "$ac_c_werror_flag" ||
24165 test ! -s conftest.err
24166 } && test -s conftest.$ac_objext; then
24167 cat >conftest.$ac_ext <<_ACEOF
24168 /* confdefs.h. */
24169 _ACEOF
24170 cat confdefs.h >>conftest.$ac_ext
24171 cat >>conftest.$ac_ext <<_ACEOF
24172 /* end confdefs.h. */
24173 $ac_includes_default
24175 main ()
24177 if (sizeof ((pid_t)))
24178 return 0;
24180 return 0;
24182 _ACEOF
24183 rm -f conftest.$ac_objext
24184 if { (ac_try="$ac_compile"
24185 case "(($ac_try" in
24186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24187 *) ac_try_echo=$ac_try;;
24188 esac
24189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24190 $as_echo "$ac_try_echo") >&5
24191 (eval "$ac_compile") 2>conftest.er1
24192 ac_status=$?
24193 grep -v '^ *+' conftest.er1 >conftest.err
24194 rm -f conftest.er1
24195 cat conftest.err >&5
24196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); } && {
24198 test -z "$ac_c_werror_flag" ||
24199 test ! -s conftest.err
24200 } && test -s conftest.$ac_objext; then
24202 else
24203 $as_echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24206 ac_cv_type_pid_t=yes
24209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24210 else
24211 $as_echo "$as_me: failed program was:" >&5
24212 sed 's/^/| /' conftest.$ac_ext >&5
24217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24219 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24220 $as_echo "$ac_cv_type_pid_t" >&6; }
24221 if test $ac_cv_type_pid_t = yes; then
24223 else
24225 cat >>confdefs.h <<_ACEOF
24226 #define pid_t int
24227 _ACEOF
24232 for ac_header in vfork.h
24234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24237 $as_echo_n "checking for $ac_header... " >&6; }
24238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24239 $as_echo_n "(cached) " >&6
24241 ac_res=`eval 'as_val=${'$as_ac_Header'}
24242 $as_echo "$as_val"'`
24243 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24244 $as_echo "$ac_res" >&6; }
24245 else
24246 # Is the header compilable?
24247 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24248 $as_echo_n "checking $ac_header usability... " >&6; }
24249 cat >conftest.$ac_ext <<_ACEOF
24250 /* confdefs.h. */
24251 _ACEOF
24252 cat confdefs.h >>conftest.$ac_ext
24253 cat >>conftest.$ac_ext <<_ACEOF
24254 /* end confdefs.h. */
24255 $ac_includes_default
24256 #include <$ac_header>
24257 _ACEOF
24258 rm -f conftest.$ac_objext
24259 if { (ac_try="$ac_compile"
24260 case "(($ac_try" in
24261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262 *) ac_try_echo=$ac_try;;
24263 esac
24264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24265 $as_echo "$ac_try_echo") >&5
24266 (eval "$ac_compile") 2>conftest.er1
24267 ac_status=$?
24268 grep -v '^ *+' conftest.er1 >conftest.err
24269 rm -f conftest.er1
24270 cat conftest.err >&5
24271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); } && {
24273 test -z "$ac_c_werror_flag" ||
24274 test ! -s conftest.err
24275 } && test -s conftest.$ac_objext; then
24276 ac_header_compiler=yes
24277 else
24278 $as_echo "$as_me: failed program was:" >&5
24279 sed 's/^/| /' conftest.$ac_ext >&5
24281 ac_header_compiler=no
24284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24285 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24286 $as_echo "$ac_header_compiler" >&6; }
24288 # Is the header present?
24289 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24290 $as_echo_n "checking $ac_header presence... " >&6; }
24291 cat >conftest.$ac_ext <<_ACEOF
24292 /* confdefs.h. */
24293 _ACEOF
24294 cat confdefs.h >>conftest.$ac_ext
24295 cat >>conftest.$ac_ext <<_ACEOF
24296 /* end confdefs.h. */
24297 #include <$ac_header>
24298 _ACEOF
24299 if { (ac_try="$ac_cpp conftest.$ac_ext"
24300 case "(($ac_try" in
24301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24302 *) ac_try_echo=$ac_try;;
24303 esac
24304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24305 $as_echo "$ac_try_echo") >&5
24306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24307 ac_status=$?
24308 grep -v '^ *+' conftest.er1 >conftest.err
24309 rm -f conftest.er1
24310 cat conftest.err >&5
24311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); } >/dev/null && {
24313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24314 test ! -s conftest.err
24315 }; then
24316 ac_header_preproc=yes
24317 else
24318 $as_echo "$as_me: failed program was:" >&5
24319 sed 's/^/| /' conftest.$ac_ext >&5
24321 ac_header_preproc=no
24324 rm -f conftest.err conftest.$ac_ext
24325 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24326 $as_echo "$ac_header_preproc" >&6; }
24328 # So? What about this header?
24329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24330 yes:no: )
24331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24332 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24334 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24335 ac_header_preproc=yes
24337 no:yes:* )
24338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24339 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24341 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24343 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24345 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24347 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24349 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24352 esac
24353 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24354 $as_echo_n "checking for $ac_header... " >&6; }
24355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24356 $as_echo_n "(cached) " >&6
24357 else
24358 eval "$as_ac_Header=\$ac_header_preproc"
24360 ac_res=`eval 'as_val=${'$as_ac_Header'}
24361 $as_echo "$as_val"'`
24362 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24363 $as_echo "$ac_res" >&6; }
24366 if test `eval 'as_val=${'$as_ac_Header'}
24367 $as_echo "$as_val"'` = yes; then
24368 cat >>confdefs.h <<_ACEOF
24369 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24370 _ACEOF
24374 done
24378 for ac_func in fork vfork
24380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24381 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24382 $as_echo_n "checking for $ac_func... " >&6; }
24383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24384 $as_echo_n "(cached) " >&6
24385 else
24386 cat >conftest.$ac_ext <<_ACEOF
24387 /* confdefs.h. */
24388 _ACEOF
24389 cat confdefs.h >>conftest.$ac_ext
24390 cat >>conftest.$ac_ext <<_ACEOF
24391 /* end confdefs.h. */
24392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24394 #define $ac_func innocuous_$ac_func
24396 /* System header to define __stub macros and hopefully few prototypes,
24397 which can conflict with char $ac_func (); below.
24398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24399 <limits.h> exists even on freestanding compilers. */
24401 #ifdef __STDC__
24402 # include <limits.h>
24403 #else
24404 # include <assert.h>
24405 #endif
24407 #undef $ac_func
24409 /* Override any GCC internal prototype to avoid an error.
24410 Use char because int might match the return type of a GCC
24411 builtin and then its argument prototype would still apply. */
24412 #ifdef __cplusplus
24413 extern "C"
24414 #endif
24415 char $ac_func ();
24416 /* The GNU C library defines this for functions which it implements
24417 to always fail with ENOSYS. Some functions are actually named
24418 something starting with __ and the normal name is an alias. */
24419 #if defined __stub_$ac_func || defined __stub___$ac_func
24420 choke me
24421 #endif
24424 main ()
24426 return $ac_func ();
24428 return 0;
24430 _ACEOF
24431 rm -f conftest.$ac_objext conftest$ac_exeext
24432 if { (ac_try="$ac_link"
24433 case "(($ac_try" in
24434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435 *) ac_try_echo=$ac_try;;
24436 esac
24437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24438 $as_echo "$ac_try_echo") >&5
24439 (eval "$ac_link") 2>conftest.er1
24440 ac_status=$?
24441 grep -v '^ *+' conftest.er1 >conftest.err
24442 rm -f conftest.er1
24443 cat conftest.err >&5
24444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); } && {
24446 test -z "$ac_c_werror_flag" ||
24447 test ! -s conftest.err
24448 } && test -s conftest$ac_exeext && {
24449 test "$cross_compiling" = yes ||
24450 $as_test_x conftest$ac_exeext
24451 }; then
24452 eval "$as_ac_var=yes"
24453 else
24454 $as_echo "$as_me: failed program was:" >&5
24455 sed 's/^/| /' conftest.$ac_ext >&5
24457 eval "$as_ac_var=no"
24460 rm -rf conftest.dSYM
24461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24462 conftest$ac_exeext conftest.$ac_ext
24464 ac_res=`eval 'as_val=${'$as_ac_var'}
24465 $as_echo "$as_val"'`
24466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24467 $as_echo "$ac_res" >&6; }
24468 if test `eval 'as_val=${'$as_ac_var'}
24469 $as_echo "$as_val"'` = yes; then
24470 cat >>confdefs.h <<_ACEOF
24471 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24472 _ACEOF
24475 done
24477 if test "x$ac_cv_func_fork" = xyes; then
24478 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24479 $as_echo_n "checking for working fork... " >&6; }
24480 if test "${ac_cv_func_fork_works+set}" = set; then
24481 $as_echo_n "(cached) " >&6
24482 else
24483 if test "$cross_compiling" = yes; then
24484 ac_cv_func_fork_works=cross
24485 else
24486 cat >conftest.$ac_ext <<_ACEOF
24487 /* confdefs.h. */
24488 _ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h. */
24492 $ac_includes_default
24494 main ()
24497 /* By Ruediger Kuhlmann. */
24498 return fork () < 0;
24501 return 0;
24503 _ACEOF
24504 rm -f conftest$ac_exeext
24505 if { (ac_try="$ac_link"
24506 case "(($ac_try" in
24507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508 *) ac_try_echo=$ac_try;;
24509 esac
24510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24511 $as_echo "$ac_try_echo") >&5
24512 (eval "$ac_link") 2>&5
24513 ac_status=$?
24514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24516 { (case "(($ac_try" in
24517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24518 *) ac_try_echo=$ac_try;;
24519 esac
24520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24521 $as_echo "$ac_try_echo") >&5
24522 (eval "$ac_try") 2>&5
24523 ac_status=$?
24524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); }; }; then
24526 ac_cv_func_fork_works=yes
24527 else
24528 $as_echo "$as_me: program exited with status $ac_status" >&5
24529 $as_echo "$as_me: failed program was:" >&5
24530 sed 's/^/| /' conftest.$ac_ext >&5
24532 ( exit $ac_status )
24533 ac_cv_func_fork_works=no
24535 rm -rf conftest.dSYM
24536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24541 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24542 $as_echo "$ac_cv_func_fork_works" >&6; }
24544 else
24545 ac_cv_func_fork_works=$ac_cv_func_fork
24547 if test "x$ac_cv_func_fork_works" = xcross; then
24548 case $host in
24549 *-*-amigaos* | *-*-msdosdjgpp*)
24550 # Override, as these systems have only a dummy fork() stub
24551 ac_cv_func_fork_works=no
24554 ac_cv_func_fork_works=yes
24556 esac
24557 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24558 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24560 ac_cv_func_vfork_works=$ac_cv_func_vfork
24561 if test "x$ac_cv_func_vfork" = xyes; then
24562 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24563 $as_echo_n "checking for working vfork... " >&6; }
24564 if test "${ac_cv_func_vfork_works+set}" = set; then
24565 $as_echo_n "(cached) " >&6
24566 else
24567 if test "$cross_compiling" = yes; then
24568 ac_cv_func_vfork_works=cross
24569 else
24570 cat >conftest.$ac_ext <<_ACEOF
24571 /* confdefs.h. */
24572 _ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h. */
24576 /* Thanks to Paul Eggert for this test. */
24577 $ac_includes_default
24578 #include <sys/wait.h>
24579 #ifdef HAVE_VFORK_H
24580 # include <vfork.h>
24581 #endif
24582 /* On some sparc systems, changes by the child to local and incoming
24583 argument registers are propagated back to the parent. The compiler
24584 is told about this with #include <vfork.h>, but some compilers
24585 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24586 static variable whose address is put into a register that is
24587 clobbered by the vfork. */
24588 static void
24589 #ifdef __cplusplus
24590 sparc_address_test (int arg)
24591 # else
24592 sparc_address_test (arg) int arg;
24593 #endif
24595 static pid_t child;
24596 if (!child) {
24597 child = vfork ();
24598 if (child < 0) {
24599 perror ("vfork");
24600 _exit(2);
24602 if (!child) {
24603 arg = getpid();
24604 write(-1, "", 0);
24605 _exit (arg);
24611 main ()
24613 pid_t parent = getpid ();
24614 pid_t child;
24616 sparc_address_test (0);
24618 child = vfork ();
24620 if (child == 0) {
24621 /* Here is another test for sparc vfork register problems. This
24622 test uses lots of local variables, at least as many local
24623 variables as main has allocated so far including compiler
24624 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24625 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24626 reuse the register of parent for one of the local variables,
24627 since it will think that parent can't possibly be used any more
24628 in this routine. Assigning to the local variable will thus
24629 munge parent in the parent process. */
24630 pid_t
24631 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24632 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24633 /* Convince the compiler that p..p7 are live; otherwise, it might
24634 use the same hardware register for all 8 local variables. */
24635 if (p != p1 || p != p2 || p != p3 || p != p4
24636 || p != p5 || p != p6 || p != p7)
24637 _exit(1);
24639 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24640 from child file descriptors. If the child closes a descriptor
24641 before it execs or exits, this munges the parent's descriptor
24642 as well. Test for this by closing stdout in the child. */
24643 _exit(close(fileno(stdout)) != 0);
24644 } else {
24645 int status;
24646 struct stat st;
24648 while (wait(&status) != child)
24650 return (
24651 /* Was there some problem with vforking? */
24652 child < 0
24654 /* Did the child fail? (This shouldn't happen.) */
24655 || status
24657 /* Did the vfork/compiler bug occur? */
24658 || parent != getpid()
24660 /* Did the file descriptor bug occur? */
24661 || fstat(fileno(stdout), &st) != 0
24665 _ACEOF
24666 rm -f conftest$ac_exeext
24667 if { (ac_try="$ac_link"
24668 case "(($ac_try" in
24669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24670 *) ac_try_echo=$ac_try;;
24671 esac
24672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24673 $as_echo "$ac_try_echo") >&5
24674 (eval "$ac_link") 2>&5
24675 ac_status=$?
24676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24678 { (case "(($ac_try" in
24679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24680 *) ac_try_echo=$ac_try;;
24681 esac
24682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24683 $as_echo "$ac_try_echo") >&5
24684 (eval "$ac_try") 2>&5
24685 ac_status=$?
24686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); }; }; then
24688 ac_cv_func_vfork_works=yes
24689 else
24690 $as_echo "$as_me: program exited with status $ac_status" >&5
24691 $as_echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24694 ( exit $ac_status )
24695 ac_cv_func_vfork_works=no
24697 rm -rf conftest.dSYM
24698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24703 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24704 $as_echo "$ac_cv_func_vfork_works" >&6; }
24707 if test "x$ac_cv_func_fork_works" = xcross; then
24708 ac_cv_func_vfork_works=$ac_cv_func_vfork
24709 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24710 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24713 if test "x$ac_cv_func_vfork_works" = xyes; then
24715 cat >>confdefs.h <<\_ACEOF
24716 #define HAVE_WORKING_VFORK 1
24717 _ACEOF
24719 else
24721 cat >>confdefs.h <<\_ACEOF
24722 #define vfork fork
24723 _ACEOF
24726 if test "x$ac_cv_func_fork_works" = xyes; then
24728 cat >>confdefs.h <<\_ACEOF
24729 #define HAVE_WORKING_FORK 1
24730 _ACEOF
24735 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24736 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24737 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24738 $as_echo_n "(cached) " >&6
24739 else
24740 cat >conftest.$ac_ext <<_ACEOF
24741 /* confdefs.h. */
24742 _ACEOF
24743 cat confdefs.h >>conftest.$ac_ext
24744 cat >>conftest.$ac_ext <<_ACEOF
24745 /* end confdefs.h. */
24746 #include <langinfo.h>
24748 main ()
24750 char* cs = nl_langinfo(CODESET);
24752 return 0;
24754 _ACEOF
24755 rm -f conftest.$ac_objext conftest$ac_exeext
24756 if { (ac_try="$ac_link"
24757 case "(($ac_try" in
24758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759 *) ac_try_echo=$ac_try;;
24760 esac
24761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24762 $as_echo "$ac_try_echo") >&5
24763 (eval "$ac_link") 2>conftest.er1
24764 ac_status=$?
24765 grep -v '^ *+' conftest.er1 >conftest.err
24766 rm -f conftest.er1
24767 cat conftest.err >&5
24768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); } && {
24770 test -z "$ac_c_werror_flag" ||
24771 test ! -s conftest.err
24772 } && test -s conftest$ac_exeext && {
24773 test "$cross_compiling" = yes ||
24774 $as_test_x conftest$ac_exeext
24775 }; then
24776 emacs_cv_langinfo_codeset=yes
24777 else
24778 $as_echo "$as_me: failed program was:" >&5
24779 sed 's/^/| /' conftest.$ac_ext >&5
24781 emacs_cv_langinfo_codeset=no
24784 rm -rf conftest.dSYM
24785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24786 conftest$ac_exeext conftest.$ac_ext
24789 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24790 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24791 if test $emacs_cv_langinfo_codeset = yes; then
24793 cat >>confdefs.h <<\_ACEOF
24794 #define HAVE_LANGINFO_CODESET 1
24795 _ACEOF
24799 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24800 $as_echo_n "checking for size_t... " >&6; }
24801 if test "${ac_cv_type_size_t+set}" = set; then
24802 $as_echo_n "(cached) " >&6
24803 else
24804 ac_cv_type_size_t=no
24805 cat >conftest.$ac_ext <<_ACEOF
24806 /* confdefs.h. */
24807 _ACEOF
24808 cat confdefs.h >>conftest.$ac_ext
24809 cat >>conftest.$ac_ext <<_ACEOF
24810 /* end confdefs.h. */
24811 $ac_includes_default
24813 main ()
24815 if (sizeof (size_t))
24816 return 0;
24818 return 0;
24820 _ACEOF
24821 rm -f conftest.$ac_objext
24822 if { (ac_try="$ac_compile"
24823 case "(($ac_try" in
24824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24825 *) ac_try_echo=$ac_try;;
24826 esac
24827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24828 $as_echo "$ac_try_echo") >&5
24829 (eval "$ac_compile") 2>conftest.er1
24830 ac_status=$?
24831 grep -v '^ *+' conftest.er1 >conftest.err
24832 rm -f conftest.er1
24833 cat conftest.err >&5
24834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); } && {
24836 test -z "$ac_c_werror_flag" ||
24837 test ! -s conftest.err
24838 } && test -s conftest.$ac_objext; then
24839 cat >conftest.$ac_ext <<_ACEOF
24840 /* confdefs.h. */
24841 _ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h. */
24845 $ac_includes_default
24847 main ()
24849 if (sizeof ((size_t)))
24850 return 0;
24852 return 0;
24854 _ACEOF
24855 rm -f conftest.$ac_objext
24856 if { (ac_try="$ac_compile"
24857 case "(($ac_try" in
24858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24859 *) ac_try_echo=$ac_try;;
24860 esac
24861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24862 $as_echo "$ac_try_echo") >&5
24863 (eval "$ac_compile") 2>conftest.er1
24864 ac_status=$?
24865 grep -v '^ *+' conftest.er1 >conftest.err
24866 rm -f conftest.er1
24867 cat conftest.err >&5
24868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); } && {
24870 test -z "$ac_c_werror_flag" ||
24871 test ! -s conftest.err
24872 } && test -s conftest.$ac_objext; then
24874 else
24875 $as_echo "$as_me: failed program was:" >&5
24876 sed 's/^/| /' conftest.$ac_ext >&5
24878 ac_cv_type_size_t=yes
24881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24882 else
24883 $as_echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24892 $as_echo "$ac_cv_type_size_t" >&6; }
24893 if test $ac_cv_type_size_t = yes; then
24895 cat >>confdefs.h <<_ACEOF
24896 #define HAVE_SIZE_T 1
24897 _ACEOF
24903 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
24904 $as_echo_n "checking for mbstate_t... " >&6; }
24905 if test "${ac_cv_type_mbstate_t+set}" = set; then
24906 $as_echo_n "(cached) " >&6
24907 else
24908 cat >conftest.$ac_ext <<_ACEOF
24909 /* confdefs.h. */
24910 _ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h. */
24914 $ac_includes_default
24915 # include <wchar.h>
24917 main ()
24919 mbstate_t x; return sizeof x;
24921 return 0;
24923 _ACEOF
24924 rm -f conftest.$ac_objext
24925 if { (ac_try="$ac_compile"
24926 case "(($ac_try" in
24927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928 *) ac_try_echo=$ac_try;;
24929 esac
24930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24931 $as_echo "$ac_try_echo") >&5
24932 (eval "$ac_compile") 2>conftest.er1
24933 ac_status=$?
24934 grep -v '^ *+' conftest.er1 >conftest.err
24935 rm -f conftest.er1
24936 cat conftest.err >&5
24937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); } && {
24939 test -z "$ac_c_werror_flag" ||
24940 test ! -s conftest.err
24941 } && test -s conftest.$ac_objext; then
24942 ac_cv_type_mbstate_t=yes
24943 else
24944 $as_echo "$as_me: failed program was:" >&5
24945 sed 's/^/| /' conftest.$ac_ext >&5
24947 ac_cv_type_mbstate_t=no
24950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24952 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24953 $as_echo "$ac_cv_type_mbstate_t" >&6; }
24954 if test $ac_cv_type_mbstate_t = yes; then
24956 cat >>confdefs.h <<\_ACEOF
24957 #define HAVE_MBSTATE_T 1
24958 _ACEOF
24960 else
24962 cat >>confdefs.h <<\_ACEOF
24963 #define mbstate_t int
24964 _ACEOF
24968 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24969 $as_echo_n "checking for C restrict keyword... " >&6; }
24970 if test "${emacs_cv_c_restrict+set}" = set; then
24971 $as_echo_n "(cached) " >&6
24972 else
24973 cat >conftest.$ac_ext <<_ACEOF
24974 /* confdefs.h. */
24975 _ACEOF
24976 cat confdefs.h >>conftest.$ac_ext
24977 cat >>conftest.$ac_ext <<_ACEOF
24978 /* end confdefs.h. */
24979 void fred (int *restrict x);
24981 main ()
24985 return 0;
24987 _ACEOF
24988 rm -f conftest.$ac_objext
24989 if { (ac_try="$ac_compile"
24990 case "(($ac_try" in
24991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24992 *) ac_try_echo=$ac_try;;
24993 esac
24994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24995 $as_echo "$ac_try_echo") >&5
24996 (eval "$ac_compile") 2>conftest.er1
24997 ac_status=$?
24998 grep -v '^ *+' conftest.er1 >conftest.err
24999 rm -f conftest.er1
25000 cat conftest.err >&5
25001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); } && {
25003 test -z "$ac_c_werror_flag" ||
25004 test ! -s conftest.err
25005 } && test -s conftest.$ac_objext; then
25006 emacs_cv_c_restrict=yes
25007 else
25008 $as_echo "$as_me: failed program was:" >&5
25009 sed 's/^/| /' conftest.$ac_ext >&5
25011 cat >conftest.$ac_ext <<_ACEOF
25012 /* confdefs.h. */
25013 _ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h. */
25017 void fred (int *__restrict x);
25019 main ()
25023 return 0;
25025 _ACEOF
25026 rm -f conftest.$ac_objext
25027 if { (ac_try="$ac_compile"
25028 case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25031 esac
25032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25033 $as_echo "$ac_try_echo") >&5
25034 (eval "$ac_compile") 2>conftest.er1
25035 ac_status=$?
25036 grep -v '^ *+' conftest.er1 >conftest.err
25037 rm -f conftest.er1
25038 cat conftest.err >&5
25039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } && {
25041 test -z "$ac_c_werror_flag" ||
25042 test ! -s conftest.err
25043 } && test -s conftest.$ac_objext; then
25044 emacs_cv_c_restrict=__restrict
25045 else
25046 $as_echo "$as_me: failed program was:" >&5
25047 sed 's/^/| /' conftest.$ac_ext >&5
25049 emacs_cv_c_restrict=no
25052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25057 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25058 $as_echo "$emacs_cv_c_restrict" >&6; }
25059 case "$emacs_cv_c_restrict" in
25060 yes) emacs_restrict=restrict;;
25061 no) emacs_restrict="";;
25062 *) emacs_restrict="$emacs_cv_c_restrict";;
25063 esac
25064 if test "$emacs_restrict" != __restrict; then
25066 cat >>confdefs.h <<_ACEOF
25067 #define __restrict $emacs_restrict
25068 _ACEOF
25072 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25073 $as_echo_n "checking for C restricted array declarations... " >&6; }
25074 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25075 $as_echo_n "(cached) " >&6
25076 else
25077 cat >conftest.$ac_ext <<_ACEOF
25078 /* confdefs.h. */
25079 _ACEOF
25080 cat confdefs.h >>conftest.$ac_ext
25081 cat >>conftest.$ac_ext <<_ACEOF
25082 /* end confdefs.h. */
25083 void fred (int x[__restrict]);
25085 main ()
25089 return 0;
25091 _ACEOF
25092 rm -f conftest.$ac_objext
25093 if { (ac_try="$ac_compile"
25094 case "(($ac_try" in
25095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25096 *) ac_try_echo=$ac_try;;
25097 esac
25098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25099 $as_echo "$ac_try_echo") >&5
25100 (eval "$ac_compile") 2>conftest.er1
25101 ac_status=$?
25102 grep -v '^ *+' conftest.er1 >conftest.err
25103 rm -f conftest.er1
25104 cat conftest.err >&5
25105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); } && {
25107 test -z "$ac_c_werror_flag" ||
25108 test ! -s conftest.err
25109 } && test -s conftest.$ac_objext; then
25110 emacs_cv_c_restrict_arr=yes
25111 else
25112 $as_echo "$as_me: failed program was:" >&5
25113 sed 's/^/| /' conftest.$ac_ext >&5
25115 emacs_cv_c_restrict_arr=no
25118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25120 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25121 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25122 if test "$emacs_cv_c_restrict_arr" = yes; then
25124 cat >>confdefs.h <<\_ACEOF
25125 #define __restrict_arr __restrict
25126 _ACEOF
25132 # Set up the CFLAGS for real compilation, so we can substitute it.
25133 CFLAGS="$REAL_CFLAGS"
25134 CPPFLAGS="$REAL_CPPFLAGS"
25136 #### Find out which version of Emacs this is.
25137 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25138 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25139 if test x"${version}" = x; then
25140 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25141 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25142 { (exit 1); exit 1; }; }
25145 ### Specify what sort of things we'll be editing into Makefile and config.h.
25146 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25190 cat >>confdefs.h <<_ACEOF
25191 #define EMACS_CONFIGURATION "${canonical}"
25192 _ACEOF
25195 cat >>confdefs.h <<_ACEOF
25196 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25197 _ACEOF
25200 cat >>confdefs.h <<_ACEOF
25201 #define config_machfile "${machfile}"
25202 _ACEOF
25205 cat >>confdefs.h <<_ACEOF
25206 #define config_opsysfile "${opsysfile}"
25207 _ACEOF
25210 cat >>confdefs.h <<_ACEOF
25211 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25212 _ACEOF
25215 cat >>confdefs.h <<_ACEOF
25216 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25217 _ACEOF
25220 cat >>confdefs.h <<_ACEOF
25221 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25222 _ACEOF
25225 cat >>confdefs.h <<_ACEOF
25226 #define UNEXEC_SRC ${UNEXEC_SRC}
25227 _ACEOF
25230 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25232 cat >>confdefs.h <<\_ACEOF
25233 #define HAVE_X_WINDOWS 1
25234 _ACEOF
25237 if test "${USE_X_TOOLKIT}" != "none" ; then
25239 cat >>confdefs.h <<\_ACEOF
25240 #define USE_X_TOOLKIT 1
25241 _ACEOF
25243 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25245 cat >>confdefs.h <<\_ACEOF
25246 #define USE_LUCID 1
25247 _ACEOF
25249 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25251 cat >>confdefs.h <<\_ACEOF
25252 #define USE_MOTIF 1
25253 _ACEOF
25257 if test "${HAVE_X11}" = "yes" ; then
25259 cat >>confdefs.h <<\_ACEOF
25260 #define HAVE_X11 1
25261 _ACEOF
25264 if test "${HAVE_MENUS}" = "yes" ; then
25266 cat >>confdefs.h <<\_ACEOF
25267 #define HAVE_MENUS 1
25268 _ACEOF
25271 if test "${GNU_MALLOC}" = "yes" ; then
25273 cat >>confdefs.h <<\_ACEOF
25274 #define GNU_MALLOC 1
25275 _ACEOF
25278 if test "${REL_ALLOC}" = "yes" ; then
25280 cat >>confdefs.h <<\_ACEOF
25281 #define REL_ALLOC 1
25282 _ACEOF
25291 #### Report on what we decided to do.
25292 #### Report GTK as a toolkit, even if it doesn't use Xt.
25293 #### It makes printing result more understandable as using GTK sets
25294 #### toolkit_scroll_bars to yes by default.
25295 if test "${HAVE_GTK}" = "yes"; then
25296 USE_X_TOOLKIT=GTK
25299 echo "
25300 Configured for \`${canonical}'.
25302 Where should the build process find the source code? ${srcdir}
25303 What operating system and machine description files should Emacs use?
25304 \`${opsysfile}' and \`${machfile}'
25305 What compiler should emacs be built with? ${CC} ${CFLAGS}
25306 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25307 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25308 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25309 What window system should Emacs use? ${window_system}
25310 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25312 if test -n "${x_includes}"; then
25313 echo " Where do we find X Windows header files? ${x_includes}"
25314 else
25315 echo " Where do we find X Windows header files? Standard dirs"
25317 if test -n "${x_libraries}"; then
25318 echo " Where do we find X Windows libraries? ${x_libraries}"
25319 else
25320 echo " Where do we find X Windows libraries? Standard dirs"
25323 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25324 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25325 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25326 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25327 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25328 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25329 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25330 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25331 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25333 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25334 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25335 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25336 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25338 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25339 echo
25341 if test $USE_XASSERTS = yes; then
25342 echo " Compiling with asserts turned on."
25343 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25346 echo
25348 if test "$USE_X_TOOLKIT" = GTK; then
25349 case "$canonical" in
25350 *cygwin*)
25351 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25352 will probably get a crash on startup. If this happens, please use another
25353 toolkit for Emacs. See etc/PROBLEMS for more information."
25355 esac
25358 if test "$HAVE_NS" = "yes"; then
25359 echo
25360 echo "You must run \"make install\" in order to test the built application.
25361 The installed application will go to nextstep/Emacs.app and can be
25362 run or moved from there."
25363 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25364 echo "The application will be fully self-contained."
25365 else
25366 echo "The lisp resources for the application will be installed under ${prefix}.
25367 You may need to run \"make install\" with sudo. The application will fail
25368 to run if these resources are not installed."
25370 echo
25373 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25374 echo "D-Bus integration has been tested for GNU/Linux only."
25375 echo
25379 # Remove any trailing slashes in these variables.
25380 test "${prefix}" != NONE &&
25381 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25382 test "${exec_prefix}" != NONE &&
25383 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25385 # Now get this: Some word that is part of the ${srcdir} directory name
25386 # or the ${configuration} value might, just might, happen to be an
25387 # identifier like `sun4' or `i386' or something, and be predefined by
25388 # the C preprocessor to some helpful value like 1, or maybe the empty
25389 # string. Needless to say consequent macro substitutions are less
25390 # than conducive to the makefile finding the correct directory.
25391 cpp_undefs="`echo $srcdir $configuration $canonical |
25392 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25393 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25395 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25396 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25397 ## from Makefile.c can correctly provide the arg `-traditional' to the
25398 ## C preprocessor.
25400 cat >conftest.$ac_ext <<_ACEOF
25401 /* confdefs.h. */
25402 _ACEOF
25403 cat confdefs.h >>conftest.$ac_ext
25404 cat >>conftest.$ac_ext <<_ACEOF
25405 /* end confdefs.h. */
25406 yes..yes
25407 _ACEOF
25408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25409 $EGREP "yes..yes" >/dev/null 2>&1; then
25410 CPP_NEED_TRADITIONAL=no
25411 else
25412 CPP_NEED_TRADITIONAL=yes
25414 rm -f conftest*
25417 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"
25419 ac_config_commands="$ac_config_commands default"
25421 cat >confcache <<\_ACEOF
25422 # This file is a shell script that caches the results of configure
25423 # tests run on this system so they can be shared between configure
25424 # scripts and configure runs, see configure's option --config-cache.
25425 # It is not useful on other systems. If it contains results you don't
25426 # want to keep, you may remove or edit it.
25428 # config.status only pays attention to the cache file if you give it
25429 # the --recheck option to rerun configure.
25431 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25432 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25433 # following values.
25435 _ACEOF
25437 # The following way of writing the cache mishandles newlines in values,
25438 # but we know of no workaround that is simple, portable, and efficient.
25439 # So, we kill variables containing newlines.
25440 # Ultrix sh set writes to stderr and can't be redirected directly,
25441 # and sets the high bit in the cache file unless we assign to the vars.
25443 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25444 eval ac_val=\$$ac_var
25445 case $ac_val in #(
25446 *${as_nl}*)
25447 case $ac_var in #(
25448 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25449 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25450 esac
25451 case $ac_var in #(
25452 _ | IFS | as_nl) ;; #(
25453 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25454 *) $as_unset $ac_var ;;
25455 esac ;;
25456 esac
25457 done
25459 (set) 2>&1 |
25460 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25461 *${as_nl}ac_space=\ *)
25462 # `set' does not quote correctly, so add quotes (double-quote
25463 # substitution turns \\\\ into \\, and sed turns \\ into \).
25464 sed -n \
25465 "s/'/'\\\\''/g;
25466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25467 ;; #(
25469 # `set' quotes correctly as required by POSIX, so do not add quotes.
25470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25472 esac |
25473 sort
25475 sed '
25476 /^ac_cv_env_/b end
25477 t clear
25478 :clear
25479 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25480 t end
25481 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25482 :end' >>confcache
25483 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25484 if test -w "$cache_file"; then
25485 test "x$cache_file" != "x/dev/null" &&
25486 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25487 $as_echo "$as_me: updating cache $cache_file" >&6;}
25488 cat confcache >$cache_file
25489 else
25490 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25491 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25494 rm -f confcache
25496 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25497 # Let make expand exec_prefix.
25498 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25500 DEFS=-DHAVE_CONFIG_H
25502 ac_libobjs=
25503 ac_ltlibobjs=
25504 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25505 # 1. Remove the extension, and $U if already installed.
25506 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25507 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25509 # will be set to the directory where LIBOBJS objects are built.
25510 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25511 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25512 done
25513 LIBOBJS=$ac_libobjs
25515 LTLIBOBJS=$ac_ltlibobjs
25519 : ${CONFIG_STATUS=./config.status}
25520 ac_write_fail=0
25521 ac_clean_files_save=$ac_clean_files
25522 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25523 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25524 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25525 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25526 #! $SHELL
25527 # Generated by $as_me.
25528 # Run this file to recreate the current configuration.
25529 # Compiler output produced by configure, useful for debugging
25530 # configure, is in config.log if it exists.
25532 debug=false
25533 ac_cs_recheck=false
25534 ac_cs_silent=false
25535 SHELL=\${CONFIG_SHELL-$SHELL}
25536 _ACEOF
25538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25539 ## --------------------- ##
25540 ## M4sh Initialization. ##
25541 ## --------------------- ##
25543 # Be more Bourne compatible
25544 DUALCASE=1; export DUALCASE # for MKS sh
25545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25546 emulate sh
25547 NULLCMD=:
25548 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25549 # is contrary to our usage. Disable this feature.
25550 alias -g '${1+"$@"}'='"$@"'
25551 setopt NO_GLOB_SUBST
25552 else
25553 case `(set -o) 2>/dev/null` in
25554 *posix*) set -o posix ;;
25555 esac
25562 # PATH needs CR
25563 # Avoid depending upon Character Ranges.
25564 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25565 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25566 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25567 as_cr_digits='0123456789'
25568 as_cr_alnum=$as_cr_Letters$as_cr_digits
25570 as_nl='
25572 export as_nl
25573 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25574 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25575 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25576 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25577 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25578 as_echo='printf %s\n'
25579 as_echo_n='printf %s'
25580 else
25581 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25582 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25583 as_echo_n='/usr/ucb/echo -n'
25584 else
25585 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25586 as_echo_n_body='eval
25587 arg=$1;
25588 case $arg in
25589 *"$as_nl"*)
25590 expr "X$arg" : "X\\(.*\\)$as_nl";
25591 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25592 esac;
25593 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25595 export as_echo_n_body
25596 as_echo_n='sh -c $as_echo_n_body as_echo'
25598 export as_echo_body
25599 as_echo='sh -c $as_echo_body as_echo'
25602 # The user is always right.
25603 if test "${PATH_SEPARATOR+set}" != set; then
25604 PATH_SEPARATOR=:
25605 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25606 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25607 PATH_SEPARATOR=';'
25611 # Support unset when possible.
25612 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25613 as_unset=unset
25614 else
25615 as_unset=false
25619 # IFS
25620 # We need space, tab and new line, in precisely that order. Quoting is
25621 # there to prevent editors from complaining about space-tab.
25622 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25623 # splitting by setting IFS to empty value.)
25624 IFS=" "" $as_nl"
25626 # Find who we are. Look in the path if we contain no directory separator.
25627 case $0 in
25628 *[\\/]* ) as_myself=$0 ;;
25629 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25630 for as_dir in $PATH
25632 IFS=$as_save_IFS
25633 test -z "$as_dir" && as_dir=.
25634 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25635 done
25636 IFS=$as_save_IFS
25639 esac
25640 # We did not find ourselves, most probably we were run as `sh COMMAND'
25641 # in which case we are not to be found in the path.
25642 if test "x$as_myself" = x; then
25643 as_myself=$0
25645 if test ! -f "$as_myself"; then
25646 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25647 { (exit 1); exit 1; }
25650 # Work around bugs in pre-3.0 UWIN ksh.
25651 for as_var in ENV MAIL MAILPATH
25652 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25653 done
25654 PS1='$ '
25655 PS2='> '
25656 PS4='+ '
25658 # NLS nuisances.
25659 LC_ALL=C
25660 export LC_ALL
25661 LANGUAGE=C
25662 export LANGUAGE
25664 # Required to use basename.
25665 if expr a : '\(a\)' >/dev/null 2>&1 &&
25666 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25667 as_expr=expr
25668 else
25669 as_expr=false
25672 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25673 as_basename=basename
25674 else
25675 as_basename=false
25679 # Name of the executable.
25680 as_me=`$as_basename -- "$0" ||
25681 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25682 X"$0" : 'X\(//\)$' \| \
25683 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25684 $as_echo X/"$0" |
25685 sed '/^.*\/\([^/][^/]*\)\/*$/{
25686 s//\1/
25689 /^X\/\(\/\/\)$/{
25690 s//\1/
25693 /^X\/\(\/\).*/{
25694 s//\1/
25697 s/.*/./; q'`
25699 # CDPATH.
25700 $as_unset CDPATH
25704 as_lineno_1=$LINENO
25705 as_lineno_2=$LINENO
25706 test "x$as_lineno_1" != "x$as_lineno_2" &&
25707 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25709 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25710 # uniformly replaced by the line number. The first 'sed' inserts a
25711 # line-number line after each line using $LINENO; the second 'sed'
25712 # does the real work. The second script uses 'N' to pair each
25713 # line-number line with the line containing $LINENO, and appends
25714 # trailing '-' during substitution so that $LINENO is not a special
25715 # case at line end.
25716 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25717 # scripts with optimization help from Paolo Bonzini. Blame Lee
25718 # E. McMahon (1931-1989) for sed's syntax. :-)
25719 sed -n '
25721 /[$]LINENO/=
25722 ' <$as_myself |
25723 sed '
25724 s/[$]LINENO.*/&-/
25725 t lineno
25727 :lineno
25729 :loop
25730 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25731 t loop
25732 s/-\n.*//
25733 ' >$as_me.lineno &&
25734 chmod +x "$as_me.lineno" ||
25735 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25736 { (exit 1); exit 1; }; }
25738 # Don't try to exec as it changes $[0], causing all sort of problems
25739 # (the dirname of $[0] is not the place where we might find the
25740 # original and so on. Autoconf is especially sensitive to this).
25741 . "./$as_me.lineno"
25742 # Exit status is that of the last command.
25743 exit
25747 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25748 as_dirname=dirname
25749 else
25750 as_dirname=false
25753 ECHO_C= ECHO_N= ECHO_T=
25754 case `echo -n x` in
25755 -n*)
25756 case `echo 'x\c'` in
25757 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25758 *) ECHO_C='\c';;
25759 esac;;
25761 ECHO_N='-n';;
25762 esac
25763 if expr a : '\(a\)' >/dev/null 2>&1 &&
25764 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25765 as_expr=expr
25766 else
25767 as_expr=false
25770 rm -f conf$$ conf$$.exe conf$$.file
25771 if test -d conf$$.dir; then
25772 rm -f conf$$.dir/conf$$.file
25773 else
25774 rm -f conf$$.dir
25775 mkdir conf$$.dir 2>/dev/null
25777 if (echo >conf$$.file) 2>/dev/null; then
25778 if ln -s conf$$.file conf$$ 2>/dev/null; then
25779 as_ln_s='ln -s'
25780 # ... but there are two gotchas:
25781 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25782 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25783 # In both cases, we have to default to `cp -p'.
25784 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25785 as_ln_s='cp -p'
25786 elif ln conf$$.file conf$$ 2>/dev/null; then
25787 as_ln_s=ln
25788 else
25789 as_ln_s='cp -p'
25791 else
25792 as_ln_s='cp -p'
25794 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25795 rmdir conf$$.dir 2>/dev/null
25797 if mkdir -p . 2>/dev/null; then
25798 as_mkdir_p=:
25799 else
25800 test -d ./-p && rmdir ./-p
25801 as_mkdir_p=false
25804 if test -x / >/dev/null 2>&1; then
25805 as_test_x='test -x'
25806 else
25807 if ls -dL / >/dev/null 2>&1; then
25808 as_ls_L_option=L
25809 else
25810 as_ls_L_option=
25812 as_test_x='
25813 eval sh -c '\''
25814 if test -d "$1"; then
25815 test -d "$1/.";
25816 else
25817 case $1 in
25818 -*)set "./$1";;
25819 esac;
25820 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25821 ???[sx]*):;;*)false;;esac;fi
25822 '\'' sh
25825 as_executable_p=$as_test_x
25827 # Sed expression to map a string onto a valid CPP name.
25828 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25830 # Sed expression to map a string onto a valid variable name.
25831 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25834 exec 6>&1
25836 # Save the log message, to keep $[0] and so on meaningful, and to
25837 # report actual input values of CONFIG_FILES etc. instead of their
25838 # values after options handling.
25839 ac_log="
25840 This file was extended by emacs $as_me 23.0.92, which was
25841 generated by GNU Autoconf 2.62. Invocation command line was
25843 CONFIG_FILES = $CONFIG_FILES
25844 CONFIG_HEADERS = $CONFIG_HEADERS
25845 CONFIG_LINKS = $CONFIG_LINKS
25846 CONFIG_COMMANDS = $CONFIG_COMMANDS
25847 $ $0 $@
25849 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25852 _ACEOF
25854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25855 # Files that config.status was made for.
25856 config_files="$ac_config_files"
25857 config_headers="$ac_config_headers"
25858 config_commands="$ac_config_commands"
25860 _ACEOF
25862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25863 ac_cs_usage="\
25864 \`$as_me' instantiates files from templates according to the
25865 current configuration.
25867 Usage: $0 [OPTIONS] [FILE]...
25869 -h, --help print this help, then exit
25870 -V, --version print version number and configuration settings, then exit
25871 -q, --quiet do not print progress messages
25872 -d, --debug don't remove temporary files
25873 --recheck update $as_me by reconfiguring in the same conditions
25874 --file=FILE[:TEMPLATE]
25875 instantiate the configuration file FILE
25876 --header=FILE[:TEMPLATE]
25877 instantiate the configuration header FILE
25879 Configuration files:
25880 $config_files
25882 Configuration headers:
25883 $config_headers
25885 Configuration commands:
25886 $config_commands
25888 Report bugs to <bug-autoconf@gnu.org>."
25890 _ACEOF
25891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25892 ac_cs_version="\\
25893 emacs config.status 23.0.92
25894 configured by $0, generated by GNU Autoconf 2.62,
25895 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25897 Copyright (C) 2008 Free Software Foundation, Inc.
25898 This config.status script is free software; the Free Software Foundation
25899 gives unlimited permission to copy, distribute and modify it."
25901 ac_pwd='$ac_pwd'
25902 srcdir='$srcdir'
25903 INSTALL='$INSTALL'
25904 test -n "\$AWK" || AWK=awk
25905 _ACEOF
25907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25908 # The default lists apply if the user does not specify any file.
25909 ac_need_defaults=:
25910 while test $# != 0
25912 case $1 in
25913 --*=*)
25914 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25915 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25916 ac_shift=:
25919 ac_option=$1
25920 ac_optarg=$2
25921 ac_shift=shift
25923 esac
25925 case $ac_option in
25926 # Handling of the options.
25927 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25928 ac_cs_recheck=: ;;
25929 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25930 $as_echo "$ac_cs_version"; exit ;;
25931 --debug | --debu | --deb | --de | --d | -d )
25932 debug=: ;;
25933 --file | --fil | --fi | --f )
25934 $ac_shift
25935 case $ac_optarg in
25936 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25937 esac
25938 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
25939 ac_need_defaults=false;;
25940 --header | --heade | --head | --hea )
25941 $ac_shift
25942 case $ac_optarg in
25943 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25944 esac
25945 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
25946 ac_need_defaults=false;;
25947 --he | --h)
25948 # Conflict between --help and --header
25949 { $as_echo "$as_me: error: ambiguous option: $1
25950 Try \`$0 --help' for more information." >&2
25951 { (exit 1); exit 1; }; };;
25952 --help | --hel | -h )
25953 $as_echo "$ac_cs_usage"; exit ;;
25954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25955 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25956 ac_cs_silent=: ;;
25958 # This is an error.
25959 -*) { $as_echo "$as_me: error: unrecognized option: $1
25960 Try \`$0 --help' for more information." >&2
25961 { (exit 1); exit 1; }; } ;;
25963 *) ac_config_targets="$ac_config_targets $1"
25964 ac_need_defaults=false ;;
25966 esac
25967 shift
25968 done
25970 ac_configure_extra_args=
25972 if $ac_cs_silent; then
25973 exec 6>/dev/null
25974 ac_configure_extra_args="$ac_configure_extra_args --silent"
25977 _ACEOF
25978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25979 if \$ac_cs_recheck; then
25980 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25981 shift
25982 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25983 CONFIG_SHELL='$SHELL'
25984 export CONFIG_SHELL
25985 exec "\$@"
25988 _ACEOF
25989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25990 exec 5>>config.log
25992 echo
25993 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25994 ## Running $as_me. ##
25995 _ASBOX
25996 $as_echo "$ac_log"
25997 } >&5
25999 _ACEOF
26000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26002 # INIT-COMMANDS
26004 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26006 _ACEOF
26008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26010 # Handling of arguments.
26011 for ac_config_target in $ac_config_targets
26013 case $ac_config_target in
26014 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26015 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26016 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26017 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26018 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26019 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26020 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26021 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26022 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26023 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26024 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26025 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26026 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26028 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26029 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26030 { (exit 1); exit 1; }; };;
26031 esac
26032 done
26035 # If the user did not use the arguments to specify the items to instantiate,
26036 # then the envvar interface is used. Set only those that are not.
26037 # We use the long form for the default assignment because of an extremely
26038 # bizarre bug on SunOS 4.1.3.
26039 if $ac_need_defaults; then
26040 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26041 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26042 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26045 # Have a temporary directory for convenience. Make it in the build tree
26046 # simply because there is no reason against having it here, and in addition,
26047 # creating and moving files from /tmp can sometimes cause problems.
26048 # Hook for its removal unless debugging.
26049 # Note that there is a small window in which the directory will not be cleaned:
26050 # after its creation but before its name has been assigned to `$tmp'.
26051 $debug ||
26053 tmp=
26054 trap 'exit_status=$?
26055 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26057 trap '{ (exit 1); exit 1; }' 1 2 13 15
26059 # Create a (secure) tmp directory for tmp files.
26062 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26063 test -n "$tmp" && test -d "$tmp"
26064 } ||
26066 tmp=./conf$$-$RANDOM
26067 (umask 077 && mkdir "$tmp")
26068 } ||
26070 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26071 { (exit 1); exit 1; }
26074 # Set up the scripts for CONFIG_FILES section.
26075 # No need to generate them if there are no CONFIG_FILES.
26076 # This happens for instance with `./config.status config.h'.
26077 if test -n "$CONFIG_FILES"; then
26080 ac_cr=' '
26081 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26082 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26083 ac_cs_awk_cr='\\r'
26084 else
26085 ac_cs_awk_cr=$ac_cr
26088 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26089 _ACEOF
26093 echo "cat >conf$$subs.awk <<_ACEOF" &&
26094 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26095 echo "_ACEOF"
26096 } >conf$$subs.sh ||
26097 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26098 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26099 { (exit 1); exit 1; }; }
26100 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26101 ac_delim='%!_!# '
26102 for ac_last_try in false false false false false :; do
26103 . ./conf$$subs.sh ||
26104 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26105 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26106 { (exit 1); exit 1; }; }
26108 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26109 break
26110 elif $ac_last_try; then
26111 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26112 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26113 { (exit 1); exit 1; }; }
26114 else
26115 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26117 done
26118 rm -f conf$$subs.sh
26120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26121 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26122 _ACEOF
26123 sed -n '
26125 s/^/S["/; s/!.*/"]=/
26128 s/^[^!]*!//
26129 :repl
26130 t repl
26131 s/'"$ac_delim"'$//
26132 t delim
26135 s/\(.\{148\}\).*/\1/
26136 t more1
26137 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26140 b repl
26141 :more1
26142 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26145 s/.\{148\}//
26146 t nl
26147 :delim
26149 s/\(.\{148\}\).*/\1/
26150 t more2
26151 s/["\\]/\\&/g; s/^/"/; s/$/"/
26154 :more2
26155 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26158 s/.\{148\}//
26159 t delim
26160 ' <conf$$subs.awk | sed '
26161 /^[^""]/{
26163 s/\n//
26165 ' >>$CONFIG_STATUS || ac_write_fail=1
26166 rm -f conf$$subs.awk
26167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26168 _ACAWK
26169 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26170 for (key in S) S_is_set[key] = 1
26171 FS = "\a"
26175 line = $ 0
26176 nfields = split(line, field, "@")
26177 substed = 0
26178 len = length(field[1])
26179 for (i = 2; i < nfields; i++) {
26180 key = field[i]
26181 keylen = length(key)
26182 if (S_is_set[key]) {
26183 value = S[key]
26184 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26185 len += length(value) + length(field[++i])
26186 substed = 1
26187 } else
26188 len += 1 + keylen
26191 print line
26194 _ACAWK
26195 _ACEOF
26196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26197 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26198 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26199 else
26201 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26202 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26203 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26204 { (exit 1); exit 1; }; }
26205 _ACEOF
26207 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26208 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26209 # trailing colons and then remove the whole line if VPATH becomes empty
26210 # (actually we leave an empty line to preserve line numbers).
26211 if test "x$srcdir" = x.; then
26212 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26213 s/:*\$(srcdir):*/:/
26214 s/:*\${srcdir}:*/:/
26215 s/:*@srcdir@:*/:/
26216 s/^\([^=]*=[ ]*\):*/\1/
26217 s/:*$//
26218 s/^[^=]*=[ ]*$//
26222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26223 fi # test -n "$CONFIG_FILES"
26225 # Set up the scripts for CONFIG_HEADERS section.
26226 # No need to generate them if there are no CONFIG_HEADERS.
26227 # This happens for instance with `./config.status Makefile'.
26228 if test -n "$CONFIG_HEADERS"; then
26229 cat >"$tmp/defines.awk" <<\_ACAWK ||
26230 BEGIN {
26231 _ACEOF
26233 # Transform confdefs.h into an awk script `defines.awk', embedded as
26234 # here-document in config.status, that substitutes the proper values into
26235 # config.h.in to produce config.h.
26237 # Create a delimiter string that does not exist in confdefs.h, to ease
26238 # handling of long lines.
26239 ac_delim='%!_!# '
26240 for ac_last_try in false false :; do
26241 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26242 if test -z "$ac_t"; then
26243 break
26244 elif $ac_last_try; then
26245 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26246 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26247 { (exit 1); exit 1; }; }
26248 else
26249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26251 done
26253 # For the awk script, D is an array of macro values keyed by name,
26254 # likewise P contains macro parameters if any. Preserve backslash
26255 # newline sequences.
26257 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26258 sed -n '
26259 s/.\{148\}/&'"$ac_delim"'/g
26260 t rset
26261 :rset
26262 s/^[ ]*#[ ]*define[ ][ ]*/ /
26263 t def
26265 :def
26266 s/\\$//
26267 t bsnl
26268 s/["\\]/\\&/g
26269 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26270 D["\1"]=" \3"/p
26271 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26273 :bsnl
26274 s/["\\]/\\&/g
26275 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26276 D["\1"]=" \3\\\\\\n"\\/p
26277 t cont
26278 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26279 t cont
26281 :cont
26283 s/.\{148\}/&'"$ac_delim"'/g
26284 t clear
26285 :clear
26286 s/\\$//
26287 t bsnlc
26288 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26290 :bsnlc
26291 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26292 b cont
26293 ' <confdefs.h | sed '
26294 s/'"$ac_delim"'/"\\\
26295 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26298 for (key in D) D_is_set[key] = 1
26299 FS = "\a"
26301 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26302 line = \$ 0
26303 split(line, arg, " ")
26304 if (arg[1] == "#") {
26305 defundef = arg[2]
26306 mac1 = arg[3]
26307 } else {
26308 defundef = substr(arg[1], 2)
26309 mac1 = arg[2]
26311 split(mac1, mac2, "(") #)
26312 macro = mac2[1]
26313 if (D_is_set[macro]) {
26314 # Preserve the white space surrounding the "#".
26315 prefix = substr(line, 1, index(line, defundef) - 1)
26316 print prefix "define", macro P[macro] D[macro]
26317 next
26318 } else {
26319 # Replace #undef with comments. This is necessary, for example,
26320 # in the case of _POSIX_SOURCE, which is predefined and required
26321 # on some systems where configure will not decide to define it.
26322 if (defundef == "undef") {
26323 print "/*", line, "*/"
26324 next
26328 { print }
26329 _ACAWK
26330 _ACEOF
26331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26332 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26333 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26334 { (exit 1); exit 1; }; }
26335 fi # test -n "$CONFIG_HEADERS"
26338 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26339 shift
26340 for ac_tag
26342 case $ac_tag in
26343 :[FHLC]) ac_mode=$ac_tag; continue;;
26344 esac
26345 case $ac_mode$ac_tag in
26346 :[FHL]*:*);;
26347 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26348 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26349 { (exit 1); exit 1; }; };;
26350 :[FH]-) ac_tag=-:-;;
26351 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26352 esac
26353 ac_save_IFS=$IFS
26354 IFS=:
26355 set x $ac_tag
26356 IFS=$ac_save_IFS
26357 shift
26358 ac_file=$1
26359 shift
26361 case $ac_mode in
26362 :L) ac_source=$1;;
26363 :[FH])
26364 ac_file_inputs=
26365 for ac_f
26367 case $ac_f in
26368 -) ac_f="$tmp/stdin";;
26369 *) # Look for the file first in the build tree, then in the source tree
26370 # (if the path is not absolute). The absolute path cannot be DOS-style,
26371 # because $ac_f cannot contain `:'.
26372 test -f "$ac_f" ||
26373 case $ac_f in
26374 [\\/$]*) false;;
26375 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26376 esac ||
26377 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26378 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26379 { (exit 1); exit 1; }; };;
26380 esac
26381 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26382 ac_file_inputs="$ac_file_inputs '$ac_f'"
26383 done
26385 # Let's still pretend it is `configure' which instantiates (i.e., don't
26386 # use $as_me), people would be surprised to read:
26387 # /* config.h. Generated by config.status. */
26388 configure_input='Generated from '`
26389 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26390 `' by configure.'
26391 if test x"$ac_file" != x-; then
26392 configure_input="$ac_file. $configure_input"
26393 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26394 $as_echo "$as_me: creating $ac_file" >&6;}
26396 # Neutralize special characters interpreted by sed in replacement strings.
26397 case $configure_input in #(
26398 *\&* | *\|* | *\\* )
26399 ac_sed_conf_input=`$as_echo "$configure_input" |
26400 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26401 *) ac_sed_conf_input=$configure_input;;
26402 esac
26404 case $ac_tag in
26405 *:-:* | *:-) cat >"$tmp/stdin" \
26406 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26407 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26408 { (exit 1); exit 1; }; } ;;
26409 esac
26411 esac
26413 ac_dir=`$as_dirname -- "$ac_file" ||
26414 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26415 X"$ac_file" : 'X\(//\)[^/]' \| \
26416 X"$ac_file" : 'X\(//\)$' \| \
26417 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26418 $as_echo X"$ac_file" |
26419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26420 s//\1/
26423 /^X\(\/\/\)[^/].*/{
26424 s//\1/
26427 /^X\(\/\/\)$/{
26428 s//\1/
26431 /^X\(\/\).*/{
26432 s//\1/
26435 s/.*/./; q'`
26436 { as_dir="$ac_dir"
26437 case $as_dir in #(
26438 -*) as_dir=./$as_dir;;
26439 esac
26440 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26441 as_dirs=
26442 while :; do
26443 case $as_dir in #(
26444 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26445 *) as_qdir=$as_dir;;
26446 esac
26447 as_dirs="'$as_qdir' $as_dirs"
26448 as_dir=`$as_dirname -- "$as_dir" ||
26449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26450 X"$as_dir" : 'X\(//\)[^/]' \| \
26451 X"$as_dir" : 'X\(//\)$' \| \
26452 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26453 $as_echo X"$as_dir" |
26454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26455 s//\1/
26458 /^X\(\/\/\)[^/].*/{
26459 s//\1/
26462 /^X\(\/\/\)$/{
26463 s//\1/
26466 /^X\(\/\).*/{
26467 s//\1/
26470 s/.*/./; q'`
26471 test -d "$as_dir" && break
26472 done
26473 test -z "$as_dirs" || eval "mkdir $as_dirs"
26474 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26475 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26476 { (exit 1); exit 1; }; }; }
26477 ac_builddir=.
26479 case "$ac_dir" in
26480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26483 # A ".." for each directory in $ac_dir_suffix.
26484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26485 case $ac_top_builddir_sub in
26486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26488 esac ;;
26489 esac
26490 ac_abs_top_builddir=$ac_pwd
26491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26492 # for backward compatibility:
26493 ac_top_builddir=$ac_top_build_prefix
26495 case $srcdir in
26496 .) # We are building in place.
26497 ac_srcdir=.
26498 ac_top_srcdir=$ac_top_builddir_sub
26499 ac_abs_top_srcdir=$ac_pwd ;;
26500 [\\/]* | ?:[\\/]* ) # Absolute name.
26501 ac_srcdir=$srcdir$ac_dir_suffix;
26502 ac_top_srcdir=$srcdir
26503 ac_abs_top_srcdir=$srcdir ;;
26504 *) # Relative name.
26505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26506 ac_top_srcdir=$ac_top_build_prefix$srcdir
26507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26508 esac
26509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26512 case $ac_mode in
26515 # CONFIG_FILE
26518 case $INSTALL in
26519 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26520 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26521 esac
26522 _ACEOF
26524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26525 # If the template does not know about datarootdir, expand it.
26526 # FIXME: This hack should be removed a few years after 2.60.
26527 ac_datarootdir_hack=; ac_datarootdir_seen=
26529 ac_sed_dataroot='
26530 /datarootdir/ {
26534 /@datadir@/p
26535 /@docdir@/p
26536 /@infodir@/p
26537 /@localedir@/p
26538 /@mandir@/p
26540 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26541 *datarootdir*) ac_datarootdir_seen=yes;;
26542 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26543 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26544 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26545 _ACEOF
26546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26547 ac_datarootdir_hack='
26548 s&@datadir@&$datadir&g
26549 s&@docdir@&$docdir&g
26550 s&@infodir@&$infodir&g
26551 s&@localedir@&$localedir&g
26552 s&@mandir@&$mandir&g
26553 s&\\\${datarootdir}&$datarootdir&g' ;;
26554 esac
26555 _ACEOF
26557 # Neutralize VPATH when `$srcdir' = `.'.
26558 # Shell code in configure.ac might set extrasub.
26559 # FIXME: do we really want to maintain this feature?
26560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26561 ac_sed_extra="$ac_vpsub
26562 $extrasub
26563 _ACEOF
26564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26567 s|@configure_input@|$ac_sed_conf_input|;t t
26568 s&@top_builddir@&$ac_top_builddir_sub&;t t
26569 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26570 s&@srcdir@&$ac_srcdir&;t t
26571 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26572 s&@top_srcdir@&$ac_top_srcdir&;t t
26573 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26574 s&@builddir@&$ac_builddir&;t t
26575 s&@abs_builddir@&$ac_abs_builddir&;t t
26576 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26577 s&@INSTALL@&$ac_INSTALL&;t t
26578 $ac_datarootdir_hack
26580 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26581 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26582 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26583 { (exit 1); exit 1; }; }
26585 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26586 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26587 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26588 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26589 which seems to be undefined. Please make sure it is defined." >&5
26590 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26591 which seems to be undefined. Please make sure it is defined." >&2;}
26593 rm -f "$tmp/stdin"
26594 case $ac_file in
26595 -) cat "$tmp/out" && rm -f "$tmp/out";;
26596 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26597 esac \
26598 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26599 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26600 { (exit 1); exit 1; }; }
26604 # CONFIG_HEADER
26606 if test x"$ac_file" != x-; then
26608 $as_echo "/* $configure_input */" \
26609 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26610 } >"$tmp/config.h" \
26611 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26612 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26613 { (exit 1); exit 1; }; }
26614 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26615 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26616 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26617 else
26618 rm -f "$ac_file"
26619 mv "$tmp/config.h" "$ac_file" \
26620 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26621 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26622 { (exit 1); exit 1; }; }
26624 else
26625 $as_echo "/* $configure_input */" \
26626 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26627 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26628 $as_echo "$as_me: error: could not create -" >&2;}
26629 { (exit 1); exit 1; }; }
26633 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26634 $as_echo "$as_me: executing $ac_file commands" >&6;}
26636 esac
26639 case $ac_file$ac_mode in
26640 "default":C)
26642 ### Make the necessary directories, if they don't exist.
26643 for dir in etc lisp ; do
26644 test -d ${dir} || mkdir ${dir}
26645 done
26647 # Build src/Makefile from ${srcdir}/src/Makefile.c
26648 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26649 # This must be done after src/config.h is built, since we rely on that file.
26651 echo creating src/epaths.h
26652 ${MAKE-make} epaths-force
26654 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26655 # `..' to `. .' unless invoked with -traditional
26657 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
26658 CPPFLAGS="$CPPFLAGS -traditional"
26661 echo creating lib-src/Makefile
26662 ( cd lib-src
26663 rm -f junk.c junk1.c junk2.c
26664 sed -e '/start of cpp stuff/q' \
26665 < Makefile.c > junk1.c
26666 sed -e '1,/start of cpp stuff/d'\
26667 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26668 < Makefile.c > junk.c
26669 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26670 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26671 cat junk1.c junk2.c > Makefile.new
26672 rm -f junk.c junk1.c junk2.c
26673 chmod 444 Makefile.new
26674 mv -f Makefile.new Makefile
26677 echo creating src/Makefile
26678 ( cd src
26679 rm -f junk.c junk1.c junk2.c
26680 sed -e '/start of cpp stuff/q' \
26681 < Makefile.c > junk1.c
26682 sed -e '1,/start of cpp stuff/d'\
26683 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26684 < Makefile.c > junk.c
26685 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26686 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26687 cat junk1.c junk2.c > Makefile.new
26688 rm -f junk.c junk1.c junk2.c
26689 chmod 444 Makefile.new
26690 mv -f Makefile.new Makefile
26693 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
26694 echo creating src/.gdbinit
26695 echo source $srcdir/src/.gdbinit > src/.gdbinit
26700 esac
26701 done # for ac_tag
26704 { (exit 0); exit 0; }
26705 _ACEOF
26706 chmod +x $CONFIG_STATUS
26707 ac_clean_files=$ac_clean_files_save
26709 test $ac_write_fail = 0 ||
26710 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26711 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26712 { (exit 1); exit 1; }; }
26715 # configure is writing to config.log, and then calls config.status.
26716 # config.status does its own redirection, appending to config.log.
26717 # Unfortunately, on DOS this fails, as config.log is still kept open
26718 # by configure, so config.status won't be able to write to it; its
26719 # output is simply discarded. So we exec the FD to /dev/null,
26720 # effectively closing config.log, so it can be properly (re)opened and
26721 # appended to by config.status. When coming back to configure, we
26722 # need to make the FD available again.
26723 if test "$no_create" != yes; then
26724 ac_cs_success=:
26725 ac_config_status_args=
26726 test "$silent" = yes &&
26727 ac_config_status_args="$ac_config_status_args --quiet"
26728 exec 5>/dev/null
26729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26730 exec 5>>config.log
26731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26732 # would make configure fail if this is the last instruction.
26733 $ac_cs_success || { (exit 1); exit 1; }
26735 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26736 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
26737 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}